資源簡介
使用Canny算子對img格式的遙感影像進行分割,并生成shp文件
代碼片段和文件信息
//?Canny.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Canny.h“
#include?“CannyDlg.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)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?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
CCannyDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????4842677??2008-12-24?16:45??Canny(C++)\aa.img
?????文件?????????98??2009-03-27?16:00??Canny(C++)\Canny(C+.dbf
?????文件????????100??2009-03-27?16:00??Canny(C++)\Canny(C+.shp
?????文件????????100??2009-03-27?16:00??Canny(C++)\Canny(C+.shx
?????文件??????21140??2009-02-11?09:39??Canny(C++)\Canny.aps
?????文件???????1388??2009-02-11?14:00??Canny(C++)\Canny.clw
?????文件???????2049??2005-10-10?11:50??Canny(C++)\Canny.cpp
?????文件???????4141??2005-10-10?11:50??Canny(C++)\Canny.dsp
?????文件????????533??2005-10-10?11:50??Canny(C++)\Canny.dsw
?????文件???????1313??2005-10-10?11:50??Canny(C++)\Canny.h
?????文件??????91136??2009-03-27?16:01??Canny(C++)\Canny.ncb
?????文件??????53760??2009-03-27?16:01??Canny(C++)\Canny.opt
?????文件???????1075??2009-02-11?09:52??Canny(C++)\Canny.plg
?????文件???????5625??2005-08-16?10:22??Canny(C++)\Canny.rc
?????文件??????22011??2009-02-11?09:52??Canny(C++)\CannyDlg.cpp
?????文件???????2443??2005-08-16?10:46??Canny(C++)\CannyDlg.h
?????文件?????131135??2009-02-11?09:52??Canny(C++)\Debug\Canny.exe
?????文件?????256432??2009-02-11?09:52??Canny(C++)\Debug\Canny.ilk
?????文件??????14142??2009-02-11?09:40??Canny(C++)\Debug\Canny.obj
?????文件????5566068??2009-02-11?09:40??Canny(C++)\Debug\Canny.pch
?????文件?????451584??2009-02-11?09:52??Canny(C++)\Debug\Canny.pdb
?????文件???????2764??2009-02-11?09:40??Canny(C++)\Debug\Canny.res
?????文件??????82329??2009-02-11?09:52??Canny(C++)\Debug\CannyDlg.obj
?????文件?????105561??2009-02-11?09:40??Canny(C++)\Debug\StdAfx.obj
?????文件?????214016??2009-03-27?15:59??Canny(C++)\Debug\vc60.idb
?????文件?????372736??2009-02-11?09:52??Canny(C++)\Debug\vc60.pdb
?????目錄??????????0??2009-03-19?13:56??Canny(C++)\Debug
?????文件???????3561??2005-10-10?11:50??Canny(C++)\ReadMe.txt
?????文件???????1078??2005-10-10?11:50??Canny(C++)\res\Canny.ico
?????文件????????397??2005-10-10?11:50??Canny(C++)\res\Canny.rc2
............此處省略8個文件信息
- 上一篇:BIOS開機LOGO修改
- 下一篇:win7開機動畫合集
評論
共有 條評論