资源简介
索引表细化算法,固定阈值二值化算法,只能打开BMP图片,用CDIB类实现的。
代码片段和文件信息
// design2.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “design2.h“
#include “design2Dlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDesign2App
BEGIN_MESSAGE_MAP(CDesign2App CWinApp)
//{{AFX_MSG_MAP(CDesign2App)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDesign2App construction
CDesign2App::CDesign2App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CDesign2App object
CDesign2App theApp;
/////////////////////////////////////////////////////////////////////////////
// CDesign2App initialization
BOOL CDesign2App::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
CDesign2Dlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5505 2009-05-04 23:06 design2\design2.rc
文件 1318 2009-05-05 14:19 design2\design2.clw
文件 3597 2009-05-03 14:27 design2\ReadMe.txt
文件 1335 2009-05-03 14:27 design2\design2.h
文件 2077 2009-05-03 14:27 design2\design2.cpp
文件 56832 2009-05-05 14:19 design2\design2.opt
文件 35668 2009-05-04 23:06 design2\design2.aps
文件 5152 2009-05-05 08:53 design2\Dib.h
文件 1054 2009-05-03 14:27 design2\StdAfx.h
文件 209 2009-05-03 14:27 design2\StdAfx.cpp
文件 399 2009-05-03 14:27 design2\res\design2.rc2
文件 1078 2009-05-03 14:27 design2\res\design2.ico
文件 31939 2009-05-05 08:57 design2\Dib.cpp
文件 66560 2009-05-05 14:19 design2\design2.ncb
文件 869 2009-05-04 23:06 design2\Resource.h
文件 1614 2009-05-05 08:43 design2\design2Dlg.h
文件 7743 2009-05-05 12:27 design2\design2Dlg.cpp
文件 248 2009-05-05 14:18 design2\design2.plg
文件 4295 2009-05-03 15:06 design2\design2.dsp
文件 537 2009-05-03 15:06 design2\design2.dsw
目录 0 2009-05-03 14:27 design2\res
目录 0 2009-05-03 14:27 design2
----------- --------- ---------- ----- ----
228029 22
评论
共有 条评论