www.pudn.com > BMPChange.rar > DSP.h


#if !defined(AFX_DSP_H__07FC7680_E273_11D5_B668_0010DCA65D26__INCLUDED_) 
#define AFX_DSP_H__07FC7680_E273_11D5_B668_0010DCA65D26__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DSP.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CDSP window 
 
#define PI 3.141593 
 
typedef struct tagComplex{ 
	float Re; 
	float Im; 
}Complex; 
 
class CDSP : public CWnd 
{ 
// Construction 
public: 
	CDSP(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDSP) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void DFT_2D_IFFT(unsigned char *D, int W, int H,Complex* U); 
	void DFT_IFFT(Complex *A, int M); 
	void DFT_2D_FFT(unsigned char* D,int W,int H,Complex* U); 
	void DFT_FFT(Complex *A, int M); 
	void ReverseOrder(Complex *A, int N); 
	virtual ~CDSP(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CDSP) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DSP_H__07FC7680_E273_11D5_B668_0010DCA65D26__INCLUDED_)