• 大小: 1.94MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-04
  • 语言: 其他
  • 标签:

资源简介

基于OPENCV库,实现两幅图像中目标轮廓匹配,利用对应关键点附近轮廓段的曲率hausdorff距离匹配。

资源截图

代码片段和文件信息

// dd.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “dd.h“

#include “MainFrm.h“
#include “ddDoc.h“
#include “ddView.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDdApp

BEGIN_MESSAGE_MAP(CDdApp CWinApp)
//{{AFX_MSG_MAP(CDdApp)
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()

/////////////////////////////////////////////////////////////////////////////
// CDdApp construction

CDdApp::CDdApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CDdApp object

CDdApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CDdApp initialization

BOOL CDdApp::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(CDdDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CDdView));
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;
}


/////////////////////////////////////////////////////////

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      51712  2007-12-05 10:28  contuorline_hausdorff\dd.opt

     文件       4948  2007-11-26 10:31  contuorline_hausdorff\dd.dsp

     文件       1139  2007-12-05 09:11  contuorline_hausdorff\haus.cpp

     文件        393  2007-12-05 10:04  contuorline_hausdorff\haus.h

     文件       2648  2007-12-05 10:28  contuorline_hausdorff\dd.clw

     文件       4215  2007-11-12 14:57  contuorline_hausdorff\ReadMe.txt

     文件       1312  2007-11-12 14:57  contuorline_hausdorff\dd.h

     文件       4137  2007-11-12 14:57  contuorline_hausdorff\dd.cpp

     文件       1054  2007-11-12 14:57  contuorline_hausdorff\StdAfx.h

     文件        204  2007-11-12 14:57  contuorline_hausdorff\StdAfx.cpp

     文件       1581  2007-11-12 14:57  contuorline_hausdorff\MainFrm.h

     文件       2503  2007-11-12 14:57  contuorline_hausdorff\MainFrm.cpp

     文件       2028  2007-12-05 09:19  contuorline_hausdorff\ddView.h

     文件      13305  2007-12-05 10:23  contuorline_hausdorff\ddView.cpp

     文件        394  2007-11-12 14:57  contuorline_hausdorff\res\dd.rc2

     文件       1078  2007-11-12 14:57  contuorline_hausdorff\res\ddDoc.ico

     文件       1078  2007-11-12 14:57  contuorline_hausdorff\res\dd.ico

     文件       1078  2007-11-12 14:57  contuorline_hausdorff\res\Toolbar.bmp

     文件        527  2007-11-12 14:57  contuorline_hausdorff\dd.dsw

     文件      74752  2007-12-05 10:28  contuorline_hausdorff\dd.ncb

     文件       7380  2007-11-26 09:20  contuorline_hausdorff\Debug\dd.res

     文件     246784  2007-12-05 10:25  contuorline_hausdorff\Debug\vc60.idb

     文件    5510208  2007-11-26 09:20  contuorline_hausdorff\Debug\dd.pch

     文件     389120  2007-12-05 10:23  contuorline_hausdorff\Debug\vc60.pdb

     文件     105944  2007-11-26 09:20  contuorline_hausdorff\Debug\StdAfx.obj

     文件      19920  2007-11-26 09:20  contuorline_hausdorff\Debug\MainFrm.obj

     文件      17151  2007-11-26 09:20  contuorline_hausdorff\Debug\HistogramDlg.obj

     文件      21238  2007-11-26 09:20  contuorline_hausdorff\Debug\ddDoc.obj

     文件     135223  2007-12-05 10:23  contuorline_hausdorff\Debug\dd.exe

     文件     476160  2007-12-05 10:23  contuorline_hausdorff\Debug\dd.pdb

............此处省略18个文件信息

评论

共有 条评论

相关资源