www.pudn.com > ImgFFT.zip > Pro2View.h


// Pro2View.h : interface of the CPro2View class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_PRO2VIEW_H__DF46DDFD_F797_43F1_BEB9_A8019B3FC253__INCLUDED_) 
#define AFX_PRO2VIEW_H__DF46DDFD_F797_43F1_BEB9_A8019B3FC253__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
const double hCoef[10][20]= 
{ 
	{.707106781187,.707106781187}, 
 
	{.482962913145,.836516303738,.224143868042,-.129409522551}, 
 
	{.332670552950,.806891509311,.459877502118, 
	-.135011020010,-.085441273882,.035226291882}, 
 
	{.230377813309,.714846570553,.630880767930,-.027983769417, 
	-.187034811719,.030841381836,.032883011667,-.010597401785}, 
 
	{.16002397974,.603829269797,.724308528438,.138428145901,-.242294887066, 
	-.032244869585,.077571493840,-.006241490213,-.012580751999,.003335725285}, 
 
//	{}, 
//	{}, 
//	{}, 
//	{}, 
//	{} 
}; 
 
#include "StatChart.h" 
#include "Definition.h" 
 
#include  
using namespace std; 
 
class CPro2View : public CView 
{ 
protected: // create from serialization only 
	CPro2View(); 
	DECLARE_DYNCREATE(CPro2View) 
 
// Attributes 
public: 
	CPro2Doc* GetDocument(); 
 
	CFile* pFile; 
	double *m_pDbImage; 
	CDib Dib; 
	int m_nDWTCurDepth; 
	int m_nSupp; 
	int m_nInv; 
	BOOL m_bOne; 
	int m_nRGBBit; 
	CString m_sFile; 
	CStatChart m_Chart; 
	CDefinition m_Defin; 
	BYTE m_bal[256]; 
 
// Operations 
public: 
	BYTE FloatToByte(double f); 
	char FloatToChar(double f); 
 
	BOOL DIBDWTStep(CDib* pDib,int nInv); 
	BOOL Linear(CDib* pDib,int Upper1,int Lower1,int Upper2,int Lower2); 
	BOOL StatChart(CDib* pDib); 
	BOOL Balance(CDib* pDib); 
	BOOL GeneralTemplate(CDib* pDib,int nTempWidth,int nTempHeight,int nTempCenX,int nTempCenY,double* pdbTemp,double dbCoef); 
	BOOL Filter(CDib* pDib); 
	BOOL FFT(CDib* pDib); 
	BOOL IFFT(CDib* pDib); 
	BOOL DefinFun1(CDib* pDib); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPro2View) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CPro2View(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CPro2View) 
	afx_msg void OnLinear(); 
	afx_msg void OnStatistic(); 
	afx_msg void OnBalance(); 
	afx_msg void OnSmooth(); 
	afx_msg void OnMixfilter(); 
	afx_msg void OnDefinition(); 
	afx_msg void OnPicfile(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in Pro2View.cpp 
inline CPro2Doc* CPro2View::GetDocument() 
   { return (CPro2Doc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_PRO2VIEW_H__DF46DDFD_F797_43F1_BEB9_A8019B3FC253__INCLUDED_)