www.pudn.com > CBVRtest.rar > CBVRtestsystemView.h
// CBVRtestsystemView.h : interface of the CCBVRtestsystemView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CBVRTESTSYSTEMVIEW_H__54958996_A257_4C60_A3E7_BDA6982F5042__INCLUDED_)
#define AFX_CBVRTESTSYSTEMVIEW_H__54958996_A257_4C60_A3E7_BDA6982F5042__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyRGB.h"
#include "MyHSV.h"
#include "vfw.h"
class CCBVRtestsystemView : public CScrollView
{
protected: // create from serialization only
CCBVRtestsystemView();
DECLARE_DYNCREATE(CCBVRtestsystemView)
// Attributes
public:
CCBVRtestsystemDoc* GetDocument();
//------------------------------------------
int m_frameH;//图象高
int m_frameW;//图象宽
CString filename;//文件名
CBitmap bmp1;
int m_RGB,m_HSV;
int m_frameNumber,m_frameNF,m_frameNB;
long m_maxFrame,cbBuffer;
BYTE* pData,*lpBuffer;//存储图象数据
PAVISTREAM pavi;//AVI流
PAVIFILE pfile;//AVI文件指针
AVIFILEINFO * pfi; //AVI信息
PGETFRAME gapgf;
CString m_printInfor; //记录输出的文本信息
MyRGB m_RGBframe1,m_RGBframe2; //定义两个MyRGB对象,存放帧
MyHSV m_HSVframe1,m_HSVframe2; //定义两个MyHSV对象,存放帧
float *m_eigenValue; //记录特征比较的数组
int m_kfnum; //记录当前算法关键帧的数量
int *m_kf; //关键帧序列
int m_sbnum; //记录当前算法镜头边界的数量
int *m_sb; //镜头边界序列
int m_misbdnum;
int *m_light;
int m_lightnum;
BOOL m_vPlay,m_vPause,m_vStop,m_vStepBack,m_vStepForward,m_vToFrame;
//------------------------------------------
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCBVRtestsystemView)
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:
int Point[2];
float CompFrameByHSVHistogram(MyHSV f1,MyHSV f2);
float CompFrameByRGBPixel(MyRGB f1,MyRGB f2);
void DrawAviByNum(int position_x, int position_y, int framenumber);
virtual ~CCBVRtestsystemView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CCBVRtestsystemView)
afx_msg void OnVideoOpen();
afx_msg void OnSbd2();
afx_msg void OnSbd1();
afx_msg void OnUpdateColorHsv(CCmdUI* pCmdUI);
afx_msg void OnColorRgb();
afx_msg void OnColorHsv();
afx_msg void OnUpdateColorRgb(CCmdUI* pCmdUI);
afx_msg void OnUpdateVideoPlay(CCmdUI* pCmdUI);
afx_msg void OnUpdateVideoPause(CCmdUI* pCmdUI);
afx_msg void OnUpdateVideoStepback(CCmdUI* pCmdUI);
afx_msg void OnUpdateVideoStepforward(CCmdUI* pCmdUI);
afx_msg void OnUpdateVideoStop(CCmdUI* pCmdUI);
afx_msg void OnVideoPause();
afx_msg void OnVideoPlay();
afx_msg void OnVideoStepback();
afx_msg void OnVideoStepforward();
afx_msg void OnVideoStop();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnVideoToframe();
afx_msg void OnUpdateVideoToframe(CCmdUI* pCmdUI);
afx_msg void OnKfe1();
afx_msg void OnKfe2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in CBVRtestsystemView.cpp
inline CCBVRtestsystemDoc* CCBVRtestsystemView::GetDocument()
{ return (CCBVRtestsystemDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CBVRTESTSYSTEMVIEW_H__54958996_A257_4C60_A3E7_BDA6982F5042__INCLUDED_)