www.pudn.com > backmode824.rar > backmodelView.h
// backmodelView.h : interface of the CBackmodelView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_BACKMODELVIEW_H__7F217B07_A662_44D6_B4C6_62FCC9BBFD2F__INCLUDED_) #define AFX_BACKMODELVIEW_H__7F217B07_A662_44D6_B4C6_62FCC9BBFD2F__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "imageprocess.h" #include "memory.h" #include "Afxwin.h" #include "Rgb.h" #include "cv.h" #includeusing std::vector ; //const int NTEMP=3; class CBackmodelView : public CView { protected: // create from serialization only CBackmodelView(); DECLARE_DYNCREATE(CBackmodelView) // Attributes public: CImageProcess m_ImageProcess; CMemory m_Memory; BOOL m_bInitSuccess; BOOL m_bHaveBack; //打开背景frame BOOL m_bHaveObject; //打开目标frame BOOL m_bHaveSub; //减去后的图像 // IplImage *pTempf[NTEMP]; // 32 x 1 temp images int m_iShowImageMode; double m_dShowScale;//显示比例 int m_iShowNumber;//显示图像数量 //只有采用 均值方法建立模型的时候使用 int m_iFrameNo; //当前打开object图像 属于第几桢 以便根据此进行背景模型的建立 CString m_sPath; // 图像路径 CString m_sFileName; //图像名称 int m_iThreshold;//图像差分阈值 int m_iPointX; int m_iPointY; int m_iCurFrame; vector m_vMyXY; //vector m_vJobSize; // 保存作业的规模 CBackmodelDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBackmodelView) 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 ~CBackmodelView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif public: //----user define---------------- void capturePoint(); void drawCurve(CDC* pDC); void drawXY(CDC* pDC); protected: // Generated message map functions protected: //{{AFX_MSG(CBackmodelView) afx_msg void OnFileOpenobject(); afx_msg void OnFileOpenback(); afx_msg void OnImageDiff(); afx_msg void OnImageMedian(); afx_msg void OnImageDiffcluster(); afx_msg void OnImageMixgauss(); afx_msg void OnVideoHistogram(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnFileOpenvideo(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in backmodelView.cpp inline CBackmodelDoc* CBackmodelView::GetDocument() { return (CBackmodelDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BACKMODELVIEW_H__7F217B07_A662_44D6_B4C6_62FCC9BBFD2F__INCLUDED_)