資源簡介
該程序能對圖片進行像素級,亞像素級別圖像處理,并對多條輪廓進行圓心擬合,計算各自圓心坐標,方便快捷,坐標數(shù)值以及處理后的圖像均能保存

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“realpoint.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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-01-07?11:23??計算圓心坐標程序\
?????目錄???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\
?????文件???????21802??2011-01-07?11:20??計算圓心坐標程序\Debug\DIBAPI.obj
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\DIBAPI.sbr
?????文件???????19879??2011-01-07?11:20??計算圓心坐標程序\Debug\MainFrm.obj
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\MainFrm.sbr
?????文件????????5858??2011-01-07?11:20??計算圓心坐標程序\Debug\Matrix.obj
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\Matrix.sbr
?????文件?????3253248??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.bsc
?????文件??????217164??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.exe
?????文件??????444844??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.ilk
?????文件???????24276??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.obj
?????文件?????6928080??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.pch
?????文件??????795648??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.pdb
?????文件????????7016??2009-12-11?14:08??計算圓心坐標程序\Debug\realpoint.res
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\realpoint.sbr
?????文件???????14847??2011-01-07?11:20??計算圓心坐標程序\Debug\realpointDoc.obj
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\realpointDoc.sbr
?????文件???????36221??2011-01-07?11:20??計算圓心坐標程序\Debug\realpointView.obj
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\realpointView.sbr
?????文件??????105590??2011-01-07?11:20??計算圓心坐標程序\Debug\StdAfx.obj
?????文件?????1369570??2011-01-07?11:20??計算圓心坐標程序\Debug\StdAfx.sbr
?????文件??????245371??2011-01-07?11:20??計算圓心坐標程序\Debug\SubPixel.obj
?????文件???????????0??2011-01-07?11:20??計算圓心坐標程序\Debug\SubPixel.sbr
?????文件??????205824??2011-01-07?11:21??計算圓心坐標程序\Debug\vc60.idb
?????文件??????397312??2011-01-07?11:20??計算圓心坐標程序\Debug\vc60.pdb
?????文件???????31178??2007-12-29?10:23??計算圓心坐標程序\DIBAPI.CPP
?????文件????????1928??2008-01-07?15:30??計算圓心坐標程序\DIBAPI.H
?????文件????????2510??2008-05-24?19:35??計算圓心坐標程序\MainFrm.cpp
?????文件????????1581??2008-05-24?19:35??計算圓心坐標程序\MainFrm.h
?????文件????????2671??2008-01-04?17:01??計算圓心坐標程序\Matrix.cpp
............此處省略29個文件信息
評論
共有 條評論