資源簡介
基于opencv的圓心坐標提取,親測可完成

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“圓心坐標提取.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????18975??2013-01-16?22:09??圓心坐標提取\1.jpg
?????文件??????20330??2013-01-17?18:15??圓心坐標提取\Debug\MainFrm.obj
?????文件??????????0??2013-01-17?18:15??圓心坐標提取\Debug\MainFrm.sbr
?????文件?????106053??2013-01-17?18:15??圓心坐標提取\Debug\StdAfx.obj
?????文件????1374953??2013-01-17?18:15??圓心坐標提取\Debug\StdAfx.sbr
?????文件?????271360??2013-01-17?19:10??圓心坐標提取\Debug\vc60.idb
?????文件?????438272??2013-01-17?19:08??圓心坐標提取\Debug\vc60.pdb
?????文件??????72285??2013-01-17?18:15??圓心坐標提取\Debug\vision_relate.obj
?????文件??????????0??2013-01-17?18:15??圓心坐標提取\Debug\vision_relate.sbr
?????文件????4244480??2013-01-17?19:08??圓心坐標提取\Debug\圓心坐標提取.bsc
?????文件?????163907??2013-01-17?19:08??圓心坐標提取\Debug\圓心坐標提取.exe
?????文件?????380860??2013-01-17?19:08??圓心坐標提取\Debug\圓心坐標提取.ilk
?????文件??????23178??2013-01-17?18:15??圓心坐標提取\Debug\圓心坐標提取.obj
?????文件????7066516??2013-01-17?18:15??圓心坐標提取\Debug\圓心坐標提取.pch
?????文件?????549888??2013-01-17?19:08??圓心坐標提取\Debug\圓心坐標提取.pdb
?????文件???????7352??2013-01-12?20:45??圓心坐標提取\Debug\圓心坐標提取.res
?????文件??????????0??2013-01-17?18:15??圓心坐標提取\Debug\圓心坐標提取.sbr
?????文件??????14966??2013-01-17?18:15??圓心坐標提取\Debug\圓心坐標提取Doc.obj
?????文件??????????0??2013-01-17?18:15??圓心坐標提取\Debug\圓心坐標提取Doc.sbr
?????文件??????45905??2013-01-17?19:08??圓心坐標提取\Debug\圓心坐標提取View.obj
?????文件??????????0??2013-01-17?19:08??圓心坐標提取\Debug\圓心坐標提取View.sbr
?????文件???????2513??2013-01-12?20:38??圓心坐標提取\MainFrm.cpp
?????文件???????1581??2013-01-12?20:38??圓心坐標提取\MainFrm.h
?????文件???????4385??2013-01-12?20:38??圓心坐標提取\ReadMe.txt
?????文件???????1078??2013-01-12?20:38??圓心坐標提取\res\Toolbar.bmp
?????文件???????1078??2013-01-12?20:38??圓心坐標提取\res\圓心坐標提取.ico
?????文件????????404??2013-01-12?20:38??圓心坐標提取\res\圓心坐標提取.rc2
?????文件???????1078??2013-01-12?20:38??圓心坐標提取\res\圓心坐標提取Doc.ico
?????文件????????690??2013-01-12?20:45??圓心坐標提取\resource.h
?????文件????????214??2013-01-12?20:38??圓心坐標提取\StdAfx.cpp
............此處省略27個文件信息
評論
共有 條評論