📄 bmpdemodoc.h
字号:
// bmpDemoDoc.h : interface of the CBmpDemoDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_BMPDEMODOC_H__D2A54E30_86D0_11D3_B73A_006008403496__INCLUDED_)
#define AFX_BMPDEMODOC_H__D2A54E30_86D0_11D3_B73A_006008403496__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "memBitmap.h"
#include "ModuleDlg.h"
#include "dft.h"
#include "ImageCT.h"
class CBmpDemoDoc : public CDocument
{
protected: // create from serialization only
CBmpDemoDoc();
DECLARE_DYNCREATE(CBmpDemoDoc)
// Attributes
public:
afx_msg void OnHchange(); //水平镜向
afx_msg void OnVchange(); //垂直镜向
afx_msg void OnRevert(); //重新读图
afx_msg void OnCw(); //旋转90度
afx_msg void OnCcw(); //旋转-90度
afx_msg void OnModule(); //模板运算
afx_msg void OnGrayize(); //变为灰度
afx_msg void OnHistogram(); //求直方图
afx_msg void OnZftjhs(); //直方图均衡化
afx_msg void OnBrighten(); //增亮
afx_msg void OnDarken(); //变暗
afx_msg void OnDft(); //DFT
afx_msg void OnNdft(); //逆DFT
afx_msg void OnFft(); //FFT
afx_msg void OnNfft(); //逆FFT
afx_msg void OnHpfilter(int var);//理想高通滤波
afx_msg void OnLpfilter(int var);//理想低通滤波
afx_msg void OnBpfilter(int var1,int var2);//理想带通滤波
afx_msg void OnSpeed(CDC *dc); //空
afx_msg void OnThpfilter(int var1,int var2);//梯形高通
afx_msg void OnTlpfilter(int var1,int var2);//梯形低通
afx_msg void OnExphpfilter(int var); //指数高通
afx_msg void OnExplpfilter(int var); //指数低通
afx_msg void OnEnlarge(int src1,int des1,int src2,int des2);
//对比度拉伸
afx_msg void OnNegative();//负片
afx_msg void OnSinNoise(double Re,double Im,int dis,double jd,int flag);//正弦噪声
afx_msg void OnZhongZhiFilter(BYTE flag);
afx_msg void OnGreyDuiShuBianHuan(int var);
afx_msg void OnRotate(int jd1);
afx_msg void OnImageproperty(int cx,int cy);
private:
BOOL IsMiOf2(int x);
// Operations
public:
memBITMAP m_mBmp,m_mOriBmp;
memBITMAP m_mViewBmp;
memBITMAP m_mOldBmp;
BOOL UndoFlag;
class ModuleDlg m_ModuleDialog;
BYTE *m_bData;
wComplex *m_Data;
BOOL flag;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBmpDemoDoc)
public:
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual BOOL OnNewDocument();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBmpDemoDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CBmpDemoDoc)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BMPDEMODOC_H__D2A54E30_86D0_11D3_B73A_006008403496__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -