資源簡介
細胞識別。經過一系列數字圖像處理步驟后,可以把血液圖中每個細胞都標識出來,并得出細胞數目,平均半徑和平均面積。VC6.0源碼,Debug里有生成的應用程序,打開附帶的BMP圖像后點擊cell-processing按順序進行圖像處理最終可實現細胞計數。
代碼片段和文件信息
//?asdf.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“asdf.h“
#include?“MainFrm.h“
#include?“ChildFrm.h“
#include?“asdfDoc.h“
#include?“asdfView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAsdfApp
BEGIN_MESSAGE_MAP(CAsdfApp?CWinApp)
//{{AFX_MSG_MAP(CAsdfApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CAsdfApp?construction
CAsdfApp::CAsdfApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAsdfApp?object
CAsdfApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAsdfApp?initialization
BOOL?CAsdfApp::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.
CMultiDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CMultiDocTemplate(
IDR_ASDFTYPE
RUNTIME_CLASS(CAsdfDoc)
RUNTIME_CLASS(CChildframe)?//?custom?MDI?child?frame
RUNTIME_CLASS(CAsdfView));
AddDocTemplate(pDocTemplate);
//?create?main?MDI?frame?window
CMainframe*?pMainframe?=?new?CMainframe;
if?(!pMainframe->Loadframe(IDR_MAINframe))
return?FALSE;
m_pMainWnd?=?pMainframe;
//?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;
//?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1327158??2006-04-17?20:34??cell\Blood.bmp
?????文件?????414390??2006-04-17?20:33??cell\Blood1.bmp
?????文件??????30240??2009-03-05?17:46??cell\cell\asdf.aps
?????文件???????3000??2009-03-12?17:41??cell\cell\asdf.clw
?????文件???????4352??2007-09-07?15:55??cell\cell\asdf.cpp
?????文件???????4762??2008-01-07?11:33??cell\cell\asdf.dsp
?????文件????????514??2007-09-07?15:55??cell\cell\asdf.dsw
?????文件???????1334??2007-09-07?15:55??cell\cell\asdf.h
?????文件?????340992??2009-03-12?17:41??cell\cell\asdf.opt
?????文件????????242??2009-03-12?17:41??cell\cell\asdf.plg
?????文件??????13959??2008-01-14?16:21??cell\cell\asdf.rc
?????文件????????873??2008-03-13?13:35??cell\cell\asdf.sln
????..A..H.?????27648??2009-03-25?14:02??cell\cell\asdf.suo
?????文件???????9268??2009-02-08?13:32??cell\cell\asdf.vcproj
?????文件???????1411??2009-02-08?13:34??cell\cell\asdf.vcproj.BAOJING.kaka.user
?????文件???????1401??2009-03-25?14:02??cell\cell\asdf.vcproj.BJ.a.user
?????文件???????1405??2008-03-13?13:42??cell\cell\asdf.vcproj.KAKA.baojing.user
?????文件???????1815??2008-01-17?09:55??cell\cell\asdfDoc.cpp
?????文件???????1483??2007-09-07?16:03??cell\cell\asdfDoc.h
?????文件??????41764??2008-03-20?02:35??cell\cell\asdfView.cpp
?????文件???????2673??2008-01-15?15:17??cell\cell\asdfView.h
?????文件??????16590??2007-09-07?15:35??cell\cell\cdib.cpp
?????文件???????1942??2007-09-07?11:12??cell\cell\cdib.h
?????文件???????1531??2007-09-07?15:55??cell\cell\ChildFrm.cpp
?????文件???????1397??2007-09-07?15:55??cell\cell\ChildFrm.h
?????文件?????167984??2009-02-27?09:10??cell\cell\Debug\asdf.exe
?????文件???????2521??2007-09-07?15:55??cell\cell\MainFrm.cpp
?????文件???????1545??2008-01-14?16:54??cell\cell\MainFrm.h
?????文件??????24952??2008-01-15?00:41??cell\cell\RCa00676
?????文件???????4712??2007-09-07?15:55??cell\cell\ReadMe.txt
............此處省略15個文件信息
- 上一篇:用VC 編寫的基于SNMP的路由器拓撲程序
- 下一篇:c 制作的RPG小游戲
評論
共有 條評論