www.pudn.com > 3AdaBoost.rar > HarrFeature.h, change:2005-07-16,size:1166b


// HarrFeature.h: interface for the LBPFeature class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_LBPFEATURE_H__5577D2D8_EB02_4E25_8F39_CFB959486F0B__INCLUDED_) 
#define AFX_LBPFEATURE_H__5577D2D8_EB02_4E25_8F39_CFB959486F0B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "define.h" 
 
#define    E_MEAN          130 
#define    E_VARIANCE      56 
 
class HarrFeature   
{ 
public: 
	HarrFeature(); 
	virtual ~HarrFeature(); 
	void  SaveAllFeatures(CString strIntg, CString strFeature, bool); 
	DWORD GetFaceImageNum(); 
	DWORD GetNonfaceImageNum(); 
	DWORD GetFeatureNum(CString strFeature, bool isFace); 
	void  ReOrderFeatures(CString strSrcPath, CString strDstPath); 
private: 
	POINT  imageSize; 
	unsigned long featureNum; 
	DWORD  FaceImageNum; 
	DWORD  NonFaceImageNum; 
	void   GetFeatures(float *pIntgData, float *pFeatures); 
	float  GetOneFeatureValue(BYTE FeatureType, POINT FeatureStPos, POINT FeatureScale, 
		 		              float* pFaceData); 
	int    tempCount; 
}; 
 
#endif // !defined(AFX_LBPFEATURE_H__5577D2D8_EB02_4E25_8F39_CFB959486F0B__INCLUDED_)