⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radius.cpp

📁 matlab版图像数字处理这本书的配套代码
💻 CPP
字号:
// Radius.cpp : implementation file
//

#include "stdafx.h"
#include "ImageProcessing.h"
#include "Radius.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRadius dialog


CRadius::CRadius(CWnd* pParent /*=NULL*/)
	: CDialog(CRadius::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRadius)
	m_radius = 15.0f;
	m_gain = 0.5f;
	m_coefficient = 2.0f;
	m_select = 0;
	//}}AFX_DATA_INIT
}


void CRadius::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRadius)
	DDX_Control(pDX, IDC_EDITB, m_B);
	DDX_Control(pDX, IDC_EDITA, m_A);
	DDX_Text(pDX, IDC_EDIT1, m_radius);
	DDX_Text(pDX, IDC_EDITA, m_gain);
	DDX_Text(pDX, IDC_EDITB, m_coefficient);
	DDX_Radio(pDX, IDC_RADIO1, m_select);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRadius, CDialog)
	//{{AFX_MSG_MAP(CRadius)
	ON_BN_CLICKED(IDC_RADIO1, OnRadioGassian)
	ON_BN_CLICKED(IDC_RADIO2, OnRadioHighButterworth)
	ON_BN_CLICKED(IDC_RADIO3, OnRadioHighEmphasis)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRadius message handlers

void CRadius::OnRadioGassian() 
{
	// TODO: Add your control notification handler code here
	
	
		m_A.SetReadOnly();
		m_B.SetReadOnly();
	
	
}

void CRadius::OnRadioHighButterworth() 
{
	// TODO: Add your control notification handler code here
//	UpdateData(false);CEdit
	m_A.SetReadOnly();
	m_B.SetReadOnly();
	
}

void CRadius::OnRadioHighEmphasis() 
{
	// TODO: Add your control notification handler code here
	m_A.SetReadOnly(false);
	m_B.SetReadOnly(false);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -