?? orthtransformview.h
字號:
// orthTransformView.h : interface of the CorthTransformView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_orthTransformVIEW_H__E011F286_55C5_4614_BBAF_0773E3030C64__INCLUDED_)
#define AFX_orthTransformVIEW_H__E011F286_55C5_4614_BBAF_0773E3030C64__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <complex>
using namespace std;
class CorthTransformView : public CView
{
protected: // create from serialization only
CorthTransformView();
DECLARE_DYNCREATE(CorthTransformView)
public:
CString m_szFileName;
CString m_szFilePathName;
LPSTR pFileName;
unsigned char * m_pImageData;
double *ReconImage;
long m_Width,m_Height;
BITMAP * pBmp;
BITMAPFILEHEADER bmpFileHeader;
LPBITMAPINFO bmpInfo;
CBitmap * m_pBitmap;
CDC * m_pdcMemory;
CSize m_sizeSource,m_sizeDest;
double *HHHL;
double *LLLH;
// Attributes int nFrameNum; //處理的幀序號
unsigned char * pNewGrayData;
unsigned char * pOldGrayData;
unsigned char * pGrayData;
unsigned char * pReconstructData;
double *finalImage;
unsigned char * pMotionBlock;
double * ImageToRe;
long m_orgWidth;
long m_orgHeight;
int m_Type;
// MotionVector pMV;
public:
CorthTransformDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CorthTransformView)
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:
void IFFT(complex<double> * FD, complex<double> * TD, int r);
void FFT(complex<double> * TD, complex<double> * FD, int r);
void IFDT(double * coeff, double * block);
void FDT(double * block, double * coeff);
void IDCT(double *F, double *f, int r);
void DCT(double *f, double *F, int r);
void DCTtransform(BYTE *Image, long ww, long hh, BOOL reconstruct,int n);
void FFTtransform(BYTE *Image, long ww, long hh,BOOL reconstruct);
double PNSR(BYTE *orgImage,double *reImage,long w,long h);
double* SubReconstruct2(double Lo_R[], int Lo_R0, int Lo_R_l, double Hi_R[], int Hi_R0, int Hi_R_l, double *Image, long ww, long hh, int p);
double* RealReconstruct2(double Hi_R[], int Hi_R0, int Hi_R_l, double Lo_R[], int Lo_R0, int Lo_R_l, double *Image, long www, long hhh, int loop);
void Reconstruct2(double Hi_R[], int Hi_R0, int Hi_R_l, double Lo_R[], int Lo_R0, int Lo_R_l, double *Image, long ww, long hh,int level,char tp[],BOOL disp);
void DisplayInfoBox(char tp[],int level,char method[],long timespan,BOOL ReCon);
double* RealMallat(double h[], int h0, int ln_h, double g[], int g0, int ln_g, double *Image, long ww, long hh,bool Low);
void GeneralMallat4(double h[],int h0,int ln_h,double g[],int g0,int ln_g,BYTE *Image,long ww,long hh,int level,char tp[],BOOL disp,BOOL reconstruct);
void DisplayImage(long w,long h,int offset,bool orgImg,double *Image);
BYTE* OpenImageFile(CString szFilePathName, long *width, long *height, int nType);
virtual ~CorthTransformView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CorthTransformView)
afx_msg void OnOpenButton();
afx_msg void OnTrans2();
afx_msg void OnTransFFT();
afx_msg void OnTransDCT();
afx_msg void OnTransDCT2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in orthTransformView.cpp
inline CorthTransformDoc* CorthTransformView::GetDocument()
{ return (CorthTransformDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_orthTransformVIEW_H__E011F286_55C5_4614_BBAF_0773E3030C64__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -