資源簡介
很詳細的Canny算子代碼,程序可以運行

代碼片段和文件信息
//?Canny.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Canny.h“
#include?“MainFrm.h“
#include?“CannyDoc.h“
#include?“CannyView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCannyApp
BEGIN_MESSAGE_MAP(CCannyApp?CWinApp)
//{{AFX_MSG_MAP(CCannyApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?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
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCannyApp?construction
CCannyApp::CCannyApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCannyApp?object
CCannyApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCannyApp?initialization
BOOL?CCannyApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CCannyDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CCannyView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????43788??2015-07-03?16:55??Canny\Canny.aps
?????文件???????2255??2015-07-03?16:56??Canny\Canny.clw
?????文件???????4191??2015-07-03?16:52??Canny\Canny.cpp
?????文件???????4619??2015-07-03?17:05??Canny\Canny.dsp
?????文件????????535??2015-07-03?16:52??Canny\Canny.dsw
?????文件???????1345??2015-07-03?16:52??Canny\Canny.h
?????文件??????50176??2015-07-03?17:05??Canny\Canny.ncb
?????文件????????244??2015-07-03?17:05??Canny\Canny.plg
?????文件??????11669??2015-07-03?16:55??Canny\Canny.rc
?????文件???????1722??2015-07-03?16:52??Canny\CannyDoc.cpp
?????文件???????1464??2015-07-03?16:52??Canny\CannyDoc.h
?????文件???????9319??2015-07-03?17:03??Canny\CannyView.cpp
?????文件???????2049??2015-07-03?17:03??Canny\CannyView.h
?????文件?????122926??2015-07-03?17:03??Canny\Debug\Canny.exe
?????文件?????316360??2015-07-03?17:03??Canny\Debug\Canny.ilk
?????文件??????22981??2015-07-03?17:03??Canny\Debug\Canny.obj
?????文件????6121472??2015-07-03?16:55??Canny\Debug\Canny.pch
?????文件?????336896??2015-07-03?17:03??Canny\Debug\Canny.pdb
?????文件???????7260??2015-07-03?16:55??Canny\Debug\Canny.res
?????文件??????14757??2015-07-03?16:55??Canny\Debug\CannyDoc.obj
?????文件??????33107??2015-07-03?17:03??Canny\Debug\CannyView.obj
?????文件??????20006??2015-07-03?16:55??Canny\Debug\MainFrm.obj
?????文件?????109080??2015-07-03?16:55??Canny\Debug\StdAfx.obj
?????文件?????246784??2015-07-03?17:05??Canny\Debug\vc60.idb
?????文件?????397312??2015-07-03?17:03??Canny\Debug\vc60.pdb
?????文件??????36492??2015-05-04?20:23??Canny\lena.jpg
?????文件???????2506??2015-07-03?16:52??Canny\MainFrm.cpp
?????文件???????1581??2015-07-03?16:52??Canny\MainFrm.h
?????文件???????4287??2015-07-03?16:52??Canny\ReadMe.txt
?????文件???????1078??2015-07-03?16:52??Canny\res\Canny.ico
............此處省略12個文件信息
- 上一篇:藍牙4.0 協議棧 開源代碼
- 下一篇:Fatfs R0.13b 版本官方源碼
評論
共有 條評論