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

📄 usedlgs.h

📁 医学图象处理系统
💻 H
📖 第 1 页 / 共 2 页
字号:
#if !defined(AFX_USEDLGS_H__A65C0361_0781_11D3_B6E5_5254AB111C09__INCLUDED_)
#define AFX_USEDLGS_H__A65C0361_0781_11D3_B6E5_5254AB111C09__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// UseDlgs.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CHistBinDlg dialog

class CHistBinDlg : public CDialog
{
// Construction
public:
	CHistBinDlg(CImageLABDoc *_pDoc, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CHistBinDlg)
	enum { IDD = IDD_IMAGEPROC_BINARYTHREDDLG };
	CComboBox m_Combo1;
	//}}AFX_DATA
	CImageLABDoc *m_pDoc;
	CImageLABView *pView;
    int  HistogramR[256];
	int  HistogramG[256];
	int  HistogramB[256];
	int  HistogramSigma[256];
	int  HistogramRGB[256];
	int  MaxFrequencyR;
	int  MaxFrequencyG;
	int  MaxFrequencyB;
	int  MaxFrequencyRGB;
	int  MaxFrequencySigma;
	int  DrawType;
	CPoint StartPt;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHistBinDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CHistBinDlg)
	afx_msg void OnSelchangeCombo1();
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CWallisParam dialog

class CWallisParam : public CDialog
{
// Construction
public:
	CWallisParam(CImageLABDoc *_pDoc,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CWallisParam)
	enum { IDD = IDD_IMAGEPROCWALLISPARAM };
	double	m_a;
	int		m_mean;
	int		m_sigam;
	int		m_A;
	//}}AFX_DATA

	CImageLABDoc  *m_pDoc;
	CImageLABView *m_pView;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWallisParam)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CWallisParam)
	afx_msg void OnApply();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CEhanceLinearDlg dialog

class CEhanceLinearDlg : public CDialog
{
// Construction
public:
	CEhanceLinearDlg(CImageLABDoc *_pDoc,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CEhanceLinearDlg)
	enum { IDD = IDD_IMAGEPROC_ENHANCELINEAR };
	CSpinButtonCtrl	m_Spin2;
	CSpinButtonCtrl	m_Spin1;
	int		m_OutMaxGray;
	int		m_OutMinGray;
	//}}AFX_DATA

	CImageLABDoc  *m_pDoc;
	CImageLABView *m_pView;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEhanceLinearDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CEhanceLinearDlg)
	afx_msg void OnApply();
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CLineGrayInfoDlg dialog

class CLineGrayInfoDlg : public CDialog
{
// Construction
public:
	CLineGrayInfoDlg(CImageLABDoc *_pDoc,CPoint _p1,CPoint _p2, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CLineGrayInfoDlg)
	enum { IDD = IDD_IMAGEPROC_LINEGRAYINFO };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	CImageLABDoc  *m_pDoc;
	CPoint p1,  p2;
	int *LineGray;
	int *LineRed, *LineGreen , *LineBlue;
	int PtNum;
	int Height;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLineGrayInfoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CLineGrayInfoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	virtual void OnOK();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// CSusanPramDlg dialog
class CSusanPramDlg : public CDialog
{
// Construction
public:
	CSusanPramDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSusanPramDlg)
	enum { IDD = IDD_IMAGEPROC_SUSANPARAMDLG };
	int		m_bt;
	double	m_dt;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSusanPramDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSusanPramDlg)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CMaskSizeDlg dialog

class CMaskSizeDlg : public CDialog
{
// Construction
public:
	CMaskSizeDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CMaskSizeDlg)
	enum { IDD = IDD_IMAGEPROC_MASKSIZE };
	CSpinButtonCtrl	m_Spin1;
	int		m_MaskSize;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMaskSizeDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CMaskSizeDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnDeltaposSpin1(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CManualBinaryDlg dialog

class CManualBinaryDlg : public CDialog
{
// Construction
public:
	CManualBinaryDlg(CImageLABDoc *_pDoc,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CManualBinaryDlg)
	enum { IDD = IDD_IMAGEPROC_MANUALBINARYDIALOG1 };
	CSliderCtrl	m_Slide1;
	CSpinButtonCtrl	m_Spin1;
	int		m_BinaryType;
	BYTE	m_Threshold;
	//}}AFX_DATA

	CImageLABDoc *m_pDoc;
	CImageLABView *pView;
    int  HistogramR[256];
	int  MaxFrequencyR;
	CPoint triangleTopPoint, StartPt;
	CPoint p1, p2;
	BOOL   InitOk;

	CPen  dashPen,  BlackPen, *pOldPen;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CManualBinaryDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CManualBinaryDlg)
	afx_msg void OnChangeEdit1();
	virtual BOOL OnInitDialog();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnPaint();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	virtual void OnOK();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CMorphparam dialog

class CMorphparam : public CDialog
{
// Construction
public:
	CMorphparam(CImageLABDoc *_pDoc, BOOL IsBinary = true, CWnd* pParent = NULL);   // standard constructor
	
	CImageLABDoc *m_pDoc;
	CImageLABView *pView;
// Dialog Data
	//{{AFX_DATA(CMorphparam)
	enum { IDD = IDD_IMAGEPROC_BINARYMORPH };
	CSpinButtonCtrl	m_spin1;
	int		m_MaskSize;
	int		m_Type;
	int		m_whichGray;
	//}}AFX_DATA
	int MaxMaskSize;
	int radius;
	int  Ptx[15][15], Pty[15][15];
	BYTE TargetGray;
	BOOL Element[15][15], m_IsBinary;
	CButton *pApply;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMorphparam)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

⌨️ 快捷键说明

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