資源簡介
這是一個用VC++寫的一些邊緣檢測和輪廓提取的代碼,讀取的是八位的灰度圖像,有需要的可以參考
代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“EdgeContour.h“
#include?“ChildFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
if(?!CMDIChildWnd::PreCreateWindow(cs)?)
return?FALSE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
void?CChildframe::Activateframe(int?nCmdShow)?
{
//?TODO:?Add?your?specialized?code?here?and/or?call?the?base?class
nCmdShow?=?SW_SHOWMAXIMIZED;
CMDIChildWnd::Activateframe(nCmdShow);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1738??2006-05-29?17:09??EdgeContour\ChildFrm.cpp
?????文件???????1456??2006-05-29?17:09??EdgeContour\ChildFrm.h
?????文件??????17390??2011-10-23?01:34??EdgeContour\Debug\ChildFrm.obj
?????文件??????????0??2011-10-23?01:34??EdgeContour\Debug\ChildFrm.sbr
?????文件?????118987??2011-10-23?02:10??EdgeContour\Debug\DibImage.obj
?????文件??????????0??2011-10-23?02:10??EdgeContour\Debug\DibImage.sbr
?????文件????3728384??2011-10-23?02:10??EdgeContour\Debug\EdgeContour.bsc
?????文件?????188520??2011-10-23?02:10??EdgeContour\Debug\EdgeContour.exe
?????文件?????457436??2011-10-23?02:10??EdgeContour\Debug\EdgeContour.ilk
-----------?---------??----------?-----??----
??????????????4513911????????????????????9
評論
共有 條評論