資源簡(jiǎn)介
該代碼實(shí)現(xiàn)了遙感影像的變化檢測(cè)功能,另外也附上了適用圖片供各位進(jìn)行測(cè)試。

代碼片段和文件信息
//?changedetection.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“changedetection.h“
#include?“MainFrm.h“
#include?“changedetectionDoc.h“
#include?“changedetectionView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChangedetectionApp
BEGIN_MESSAGE_MAP(CChangedetectionApp?CWinApp)
//{{AFX_MSG_MAP(CChangedetectionApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CChangedetectionApp?construction
CChangedetectionApp::CChangedetectionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChangedetectionApp?object
CChangedetectionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChangedetectionApp?initialization
BOOL?CChangedetectionApp::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(CChangedetectionDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CChangedetectionView));
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?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????30048??2014-05-07?20:06??changedetection\changedetection.aps
?????文件???????3136??2014-05-09?19:41??changedetection\changedetection.clw
?????文件???????4371??2012-06-04?12:02??changedetection\changedetection.cpp
?????文件???????4908??2012-06-04?16:33??changedetection\changedetection.dsp
?????文件????????536??2012-06-04?12:02??changedetection\changedetection.dsw
?????文件???????1455??2012-06-04?12:02??changedetection\changedetection.h
?????文件??????82944??2014-05-09?19:49??changedetection\changedetection.ncb
?????文件??????52736??2014-05-09?19:49??changedetection\changedetection.opt
?????文件???????2209??2014-05-09?19:39??changedetection\changedetection.plg
?????文件??????12722??2012-06-05?12:29??changedetection\changedetection.rc
?????文件??????25052??2012-06-06?00:25??changedetection\changedetectionDoc.cpp
?????文件???????1793??2012-06-05?18:02??changedetection\changedetectionDoc.h
?????文件???????6039??2012-06-05?12:29??changedetection\changedetectionView.cpp
?????文件???????2070??2012-06-05?12:22??changedetection\changedetectionView.h
?????文件?????147551??2014-05-09?19:39??changedetection\Debug\changedetection.exe
?????文件?????356316??2014-05-09?19:39??changedetection\Debug\changedetection.ilk
?????文件??????23672??2014-05-09?19:39??changedetection\Debug\changedetection.obj
?????文件?????369664??2014-04-19?21:07??changedetection\Debug\changedetection.pdb
?????文件???????7840??2014-04-19?21:07??changedetection\Debug\changedetection.res
?????文件??????58450??2014-05-09?19:39??changedetection\Debug\changedetectionDoc.obj
?????文件??????35581??2014-05-09?19:39??changedetection\Debug\changedetectionView.obj
?????文件??????19607??2014-05-09?19:39??changedetection\Debug\InputDlg.obj
?????文件??????20150??2014-05-09?19:39??changedetection\Debug\MainFrm.obj
?????文件?????105873??2014-05-09?19:39??changedetection\Debug\StdAfx.obj
?????文件?????222208??2014-05-09?19:39??changedetection\Debug\vc60.idb
?????文件?????380928??2014-04-19?21:07??changedetection\Debug\vc60.pdb
?????文件?????106539??2009-02-19?21:33??changedetection\DIB.dll
?????文件???????3936??2009-02-19?21:33??changedetection\DIB.lib
?????文件???????1799??2012-06-04?12:26??changedetection\InputDlg.cpp
?????文件???????1221??2012-06-04?12:25??changedetection\InputDlg.h
............此處省略24個(gè)文件信息
評(píng)論
共有 條評(píng)論