• 大小: 6.85MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-17
  • 语言: C/C++
  • 标签: 机器视觉  代码  c++  

资源简介

【数字图像处理预机器视觉(Visual C++与Matlab实现)第2版】 书中【光盘】-part2。 包含内容: part1:每一章的代码(VC++和MATLAB) part2-1: DIPDemo_vc6 part2-2: DIPDemo_vs2010&2012

资源截图

代码片段和文件信息

// cDlgMorphClose.cpp : implementation file
//

#include “stdafx.h“
#include “DIPDemo.h“
#include “cDlgMorphClose.h“

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

/////////////////////////////////////////////////////////////////////////////
// cDlgMorphClose dialog


cDlgMorphClose::cDlgMorphClose(CWnd* pParent /*=NULL*/)
: CDialog(cDlgMorphClose::IDD pParent)
{
//{{AFX_DATA_INIT(cDlgMorphClose)
m_nMode = -1;
m_nStructure1 = -1;
m_nStructure2 = -1;
m_nStructure3 = -1;
m_nStructure4 = -1;
m_nStructure5 = -1;
m_nStructure6 = -1;
m_nStructure7 = -1;
m_nStructure8 = -1;
m_nStructure9 = -1;
//}}AFX_DATA_INIT
}


void cDlgMorphClose::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(cDlgMorphClose)
DDX_Control(pDX IDC_Structure9 m_Control9);
DDX_Control(pDX IDC_Structure8 m_Control8);
DDX_Control(pDX IDC_Structure7 m_Control7);
DDX_Control(pDX IDC_Structure6 m_Control6);
DDX_Control(pDX IDC_Structure5 m_Control5);
DDX_Control(pDX IDC_Structure4 m_Control4);
DDX_Control(pDX IDC_Structure3 m_Control3);
DDX_Control(pDX IDC_Structure2 m_Control2);
DDX_Control(pDX IDC_Structure1 m_Control1);
DDX_Radio(pDX IDC_Hori m_nMode);
DDX_Radio(pDX IDC_Structure1 m_nStructure1);
DDX_Radio(pDX IDC_Structure2 m_nStructure2);
DDX_Radio(pDX IDC_Structure3 m_nStructure3);
DDX_Radio(pDX IDC_Structure4 m_nStructure4);
DDX_Radio(pDX IDC_Structure5 m_nStructure5);
DDX_Radio(pDX IDC_Structure6 m_nStructure6);
DDX_Radio(pDX IDC_Structure7 m_nStructure7);
DDX_Radio(pDX IDC_Structure8 m_nStructure8);
DDX_Radio(pDX IDC_Structure9 m_nStructure9);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(cDlgMorphClose CDialog)
//{{AFX_MSG_MAP(cDlgMorphClose)
ON_BN_CLICKED(IDC_Hori OnHori)
ON_BN_CLICKED(IDC_Vert OnVert)
ON_BN_CLICKED(IDC_custom Oncustom)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// cDlgMorphClose message handlers


void cDlgMorphClose::Oncustom() 
{
m_Control1.EnableWindow(TRUE);
m_Control2.EnableWindow(TRUE);
m_Control3.EnableWindow(TRUE);
m_Control4.EnableWindow(TRUE);
m_Control5.EnableWindow(TRUE);
m_Control6.EnableWindow(TRUE);
m_Control7.EnableWindow(TRUE);
m_Control8.EnableWindow(TRUE);
m_Control9.EnableWindow(TRUE);

}

void cDlgMorphClose::OnVert() 
{
m_Control1.EnableWindow(FALSE);
m_Control2.EnableWindow(FALSE);
m_Control3.EnableWindow(FALSE);
m_Control4.EnableWindow(FALSE);
m_Control5.EnableWindow(FALSE);
m_Control6.EnableWindow(FALSE);
m_Control7.EnableWindow(FALSE);
m_Control8.EnableWindow(FALSE);
m_Control9.EnableWindow(FALSE);

}

void cDlgMorphClose::OnHori() 
{
m_Control1.EnableWindow(FALSE);
m_Control2.EnableWindow(FALSE);
m_Control3.EnableWindow(FALSE);
m_Control4.EnableWindow(FALSE);
m_Control5.Enabl

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

     文件       3161  2009-01-14 18:02  DIPDemo_vc6\cDlgMorphClose.cpp

     文件       1675  2000-12-28 14:25  DIPDemo_vc6\cDlgMorphClose.h

     文件       3202  2009-01-14 18:02  DIPDemo_vc6\cDlgMorphDilation.cpp

     文件       1708  2000-12-22 14:39  DIPDemo_vc6\cDlgMorphDilation.h

     文件       3189  2009-01-14 18:02  DIPDemo_vc6\cDlgMorphErosion.cpp

     文件       1697  2001-02-14 19:20  DIPDemo_vc6\cDlgMorphErosion.h

     文件       3144  2009-01-14 18:02  DIPDemo_vc6\cDlgMorphOpen.cpp

     文件       1664  2000-12-22 16:47  DIPDemo_vc6\cDlgMorphOpen.h

     文件       1881  2009-02-19 12:28  DIPDemo_vc6\ChildFrm.cpp

     文件       1451  2009-02-19 12:28  DIPDemo_vc6\ChildFrm.h

     文件      60706  2009-08-12 15:21  DIPDemo_vc6\Debug\cdib.obj

     文件          0  2009-08-12 15:23  DIPDemo_vc6\Debug\cdib.sbr

     文件      29340  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphClose.obj

     文件          0  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphClose.sbr

     文件      29475  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphDilation.obj

     文件          0  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphDilation.sbr

     文件      29400  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphErosion.obj

     文件          0  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphErosion.sbr

     文件      29175  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphOpen.obj

     文件          0  2009-09-22 19:34  DIPDemo_vc6\Debug\cDlgMorphOpen.sbr

     文件      26892  2009-09-22 19:34  DIPDemo_vc6\Debug\ChildFrm.obj

     文件          0  2009-09-22 19:34  DIPDemo_vc6\Debug\ChildFrm.sbr

     文件      27198  2009-08-12 13:06  DIPDemo_vc6\Debug\DIBAPI.obj

     文件          0  2009-08-12 13:06  DIPDemo_vc6\Debug\DIBAPI.sbr

     文件    4948992  2009-09-23 11:13  DIPDemo_vc6\Debug\DIPDemo.bsc

     文件     405579  2009-09-23 11:13  DIPDemo_vc6\Debug\DIPDemo.exe

     文件     714724  2009-09-23 11:13  DIPDemo_vc6\Debug\DIPDemo.ilk

     文件      40274  2009-09-22 19:34  DIPDemo_vc6\Debug\DIPDemo.obj

     文件    6894656  2009-09-22 19:34  DIPDemo_vc6\Debug\DIPDemo.pch

     文件    1049600  2009-09-23 11:13  DIPDemo_vc6\Debug\DIPDemo.pdb

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

评论

共有 条评论