ehmm.h

来自「face recognition using hmm. first versio」· C头文件 代码 · 共 58 行

H
58
字号
/*
/*	Description: Implements an embedded hidden markov model
*/

#ifndef _EHMM_H_
#define _EHMM_H_

//Disable OpenCv type cast warning
#pragma warning( disable : 4312 )

#include <string>
#include <cxcore.h>
#include <cv.h>
#include <cvaux.h>

#pragma warning( default : 4312 )

class EHMM
{
public:

	EHMM( );

	virtual ~EHMM( );

	void Create( int *noStates, int *noMix, int vecSize );

	void Load( const std::string &fileName );

	void Save( const std::string &fileName );

	void Release( );

	bool GetTrained( );

	void SetTrained( bool trained );

	void GetNoStates( int *noStates ) const;

	void GetNoMix( int *noMix ) const;

	int GetVecSize( ) const;

	CvEHMM* GetCvEHMM( );

private:

	//Hidden markov model
	CvEHMM* _ehmm;

	//Size of the vector that is used as input
	int _vecSize;

	//If the ehmm is trained or not
	bool _trained;
};

#endif //_EHMM_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?