www.pudn.com > UltraSound.rar > UltraSoundView.h
// UltraSoundView.h : interface of the CUltraSoundView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ULTRASOUNDVIEW_H__BF284761_159B_4933_9EC2_4D687FEB669B__INCLUDED_)
#define AFX_ULTRASOUNDVIEW_H__BF284761_159B_4933_9EC2_4D687FEB669B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CUltraSoundView : public CScrollView
{
protected: // create from serialization only
CUltraSoundView();
DECLARE_DYNCREATE(CUltraSoundView)
// Attributes
public:
CUltraSoundDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUltraSoundView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
IplImage* m_EndImg;
int m_BlockHeight;
int m_BlockWidth;
int m_Dx;
int m_Dy;
int m_GlobalDx;
int m_GlobalDy;
int m_ImageWidth;
int m_ImageHeight;
int m_GlobalHeight;
int m_GlobalWidth;
float m_GlobalOffsetX;
float m_GlobalOffsetY;
int* m_dx;
int* m_dy;
int m_totaldx;
int m_totaldy;
float* m_sub;
float* m_DstImageMat;//size of it is changing
float* m_OldImageMat;//size of it is changing
float* m_ShowImageMat;//with of it is the multiple of four.
float* m_HalfOldImageMat;
// float* m_OldWrapImageMat;
float* m_CurImageMat;
float* m_HalfCurImageMat;
float* m_AddImageMat;//m_AddImageMat = m_HalfCurImageMat + m_HalfOldImageMat
BOOL m_MotionDir;
float* Matrix(IplImage* img, float* Matrix);
float* Matrix1(IplImage* img, float* Matrix);
void Mosacing(int i);
CPoint LeastSquare(int i);
void ShowImage();
void ShowImageGray(IplImage* pImage, int xpos, int ypos);
virtual ~CUltraSoundView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CUltraSoundView)
afx_msg void OnStart();
afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
afx_msg void OnContextMenu(CWnd*, CPoint point);
afx_msg void OnFilePrintPreview();
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in UltraSoundView.cpp
inline CUltraSoundDoc* CUltraSoundView::GetDocument()
{ return (CUltraSoundDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ULTRASOUNDVIEW_H__BF284761_159B_4933_9EC2_4D687FEB669B__INCLUDED_)