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


// SBD.h: interface for the SBD class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_SBD_H__B614C901_C70D_4387_9C1F_31792651B352__INCLUDED_) 
#define AFX_SBD_H__B614C901_C70D_4387_9C1F_31792651B352__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "MyRGB.h" 
#include "MyHSV.h" 
#include "vfw.h" 
 
//经典的镜头边界检测算法类 
class SBD   
{ 
public: 
	MyHSV m_HSVframe,m_HSVframe1,m_HSVframe2; 
	MyRGB m_RGBframe,m_RGBframe1,m_RGBframe2; 
	int *sb; 
	int sbnumber; 
	float *D; 
	PGETFRAME gapgf; 
	int m_frameW,m_frameH,length; 
 
	void sbd2(); 
	void sbd1(); 
	void OutputFile(CString filename, float *d, int start, int end); 
	float CompFrameByHSVHistogram(MyHSV f1, MyHSV f2); 
	float CompFrameByX2HSVHistogram(MyHSV f1, MyHSV f2); 
	float CompFrameByRGBPixel(MyRGB f1, MyRGB f2); 
	SBD(PGETFRAME g1,int W,int H,int l,int number); 
	virtual ~SBD(); 
 
}; 
 
#endif // !defined(AFX_SBD_H__B614C901_C70D_4387_9C1F_31792651B352__INCLUDED_)