📄 thresholddlg.h
字号:
#if !defined(AFX_THRESHOLDDLG_H__5273DBC1_648C_11D3_8B6A_0000E83F643B__INCLUDED_)
#define AFX_THRESHOLDDLG_H__5273DBC1_648C_11D3_8B6A_0000E83F643B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ThresholdDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CThresholdDlg dialog
class CThresholdDlg : public CDialog
{
// Construction
public:
CThresholdDlg(CWnd* pParent = NULL); // standard constructor
int m_nThresholdLevel;
DWORD *m_pdwHistogram;
private:
int m_nPosition;
BOOL m_bSelect;
int m_nDelta;
// Dialog Data
//{{AFX_DATA(CThresholdDlg)
enum { IDD = IDD_THRESHOLDDLG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CThresholdDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CThresholdDlg)
afx_msg void OnPaint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CPosterizeDlg dialog
class CPosterizeDlg : public CDialog
{
// Construction
public:
CPosterizeDlg(CWnd* pParent = NULL); // standard constructor
BYTE m_lpPoint[256]; //分割点数组
int m_nNum; //分割等级数 = 分割点数 - 1
DWORD * m_pdwHistogram; //单波段影象的直方图
private:
int m_nPosition; //记录亮度指针的位置
BOOL m_bSelect; //鼠标是否选中指针
int m_nDelta;
int m_nPointNum; //分割点数
// Dialog Data
//{{AFX_DATA(CPosterizeDlg)
enum { IDD = IDD_POSTERIZEDLG };
CListBox m_PointList;
BOOL m_bEqualDistance;
int m_nPoint;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPosterizeDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPosterizeDlg)
afx_msg void OnSelchangePointlist();
afx_msg void OnAddpoint();
afx_msg void OnDeletepoint();
afx_msg void OnEqualDistance();
afx_msg void OnChangeNum();
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnModifypoint();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_THRESHOLDDLG_H__5273DBC1_648C_11D3_8B6A_0000E83F643B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -