www.pudn.com > CBVRtest.rar > KFE.h


// KFE.h: interface for the KFE class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_KFE_H__59062008_758F_429E_AC17_44D5719C8C82__INCLUDED_) 
#define AFX_KFE_H__59062008_758F_429E_AC17_44D5719C8C82__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "vfw.h" 
#include "MyHSV.h" 
#include "MyRGB.h" 
//经典的关键帧提取算法类 
class KFE   
{ 
public: 
	MyHSV m_HSVframe,m_HSVframe1,m_HSVframe2; 
	MyRGB m_RGBframe,m_RGBframe1,m_RGBframe2; 
	int *kf; 
	int kfnumber; 
	PGETFRAME gapgf; 
	int m_frameW,m_frameH,length; 
 
	void kfe2(); 
	void kfe1(); 
	float CompFrameByHSVHistogram(MyHSV f1, MyHSV f2); 
	float CompFrameByRGBPixel(MyRGB f1, MyRGB f2); 
	KFE(PGETFRAME g1,int W,int H,int l,int number); 
	virtual ~KFE(); 
 
}; 
 
#endif // !defined(AFX_KFE_H__59062008_758F_429E_AC17_44D5719C8C82__INCLUDED_)