資源簡(jiǎn)介
本代碼是作者自己編寫,采用MFC框架,運(yùn)用C++語(yǔ)言對(duì)常用邊緣提取算法進(jìn)行實(shí)現(xiàn),代碼包中含有示例圖片,從圖片處理效果可以看出該代碼穩(wěn)定可靠,能為圖像處理算法初學(xué)者帶來(lái)一定啟發(fā)。

代碼片段和文件信息
//?EdgeDetection.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“EdgeDetection.h“
#include?“EdgeDetectionDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CEdgeDetectionApp
BEGIN_MESSAGE_MAP(CEdgeDetectionApp?CWinApp)
//{{AFX_MSG_MAP(CEdgeDetectionApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CEdgeDetectionApp?construction
CEdgeDetectionApp::CEdgeDetectionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CEdgeDetectionApp?object
CEdgeDetectionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CEdgeDetectionApp?initialization
BOOL?CEdgeDetectionApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CEdgeDetectionDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????824790??2009-12-22?15:57??邊緣檢測(cè)\32.bmp
?????文件???????6598??2008-09-01?10:44??邊緣檢測(cè)\CxImage\cximage.dsp
?????文件????????537??2001-08-06?17:19??邊緣檢測(cè)\CxImage\cximage.dsw
?????文件????2237440??2009-10-20?15:26??邊緣檢測(cè)\CxImage\cximage.ncb
?????文件??????51712??2009-10-20?15:26??邊緣檢測(cè)\CxImage\cximage.opt
?????文件???????5024??2009-10-20?15:26??邊緣檢測(cè)\CxImage\CxImage.plg
?????文件??????18164??2009-04-27?16:33??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageCrtDll.aps
?????文件????????282??2003-03-23?15:26??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageCrtDll.cpp
?????文件???????8356??2004-10-03?14:34??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageCrtDll.dsp
?????文件??????24214??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageCrtDll.plg
?????文件???????3031??2004-10-17?09:40??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageCrtDll.rc
?????文件???????2998??2003-04-06?13:33??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageDll.dsw
?????文件????1033216??2009-04-27?16:36??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageDll.ncb
?????文件??????70144??2009-04-27?16:36??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageDll.opt
?????文件??????17980??2008-12-03?22:29??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageMfcDll.aps
?????文件????????364??2003-03-23?14:55??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageMfcDll.clw
?????文件???????1817??2003-03-23?14:55??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageMfcDll.cpp
?????文件???????7544??2004-10-03?14:34??邊緣檢測(cè)\CxImage\CxImageDLL\cximagemfcdll.dsp
?????文件???????1330??2003-03-23?14:55??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageMfcDll.h
?????文件???????3029??2004-10-17?09:39??邊緣檢測(cè)\CxImage\CxImageDLL\CxImageMfcDll.rc
?????文件??????78548??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\cximagecrtd.exp
?????文件?????133590??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\cximagecrtd.lib
?????文件??????25600??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\cximagecrtd.pdb
?????文件???????6228??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\CxImageCrtDll.obj
?????文件????????972??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\CxImageCrtDll.res
?????文件??????49956??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\tif_xfile.obj
?????文件?????159744??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\vc60.pdb
?????文件??????53846??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\ximabmp.obj
?????文件?????163071??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\ximadsp.obj
?????文件?????134301??2008-07-10?12:31??邊緣檢測(cè)\CxImage\CxImageDLL\Debug\ximaenc.obj
............此處省略476個(gè)文件信息
評(píng)論
共有 條評(píng)論