samples/IFaceTest/FaceRegistrationUtility.cpp
////////////////////////////////////////////////////////////////////////////////////////
/// This routine is a function of the Face Registration Utility
///  written by Ren Haibing 
///  
/// Acknowledge		:
///
/// Function name	: FaceRegistration_AddUser
/// Description	    : register the user with the template array  
///
/// Argument		:	sUserName -- user name
/// Argument		:	m_FaceTemplate -- face template array
/// Argument		:	nTotalFaceNum -- valid face template size
///
/// Return type		: 
///
/// Create Time		: 2014-11-18  10:45
///
///
/// Side Effect		: 
///
///////////////////////////////////////////////////////////////////////////////////////////////
This routine is a function of the Face Registration Utility
written by Ren Haibing

Acknowledge            .

Function name  : FaceRegistration_AddUser
Description        : register the user with the template array



Return type            .



Side Effect            .
This routine is a function of the Face Registration Utility written by Ren Haibing Acknowledge . Function name : FaceRegistration_AddUser Description : register the user with the template array Return type . Side Effect .
void FaceRegistration_AddUser(const char *str_facesetxml, char *sUserName, IplImage *m_FaceTemplate[FACE_TEMPLATE_MAX_NUM], int nTotalFaceNum)
{
	int nFaceSetIdx = -1;
	nFaceSetIdx = m_faceAnalyzer->insertEmptyFaceSet(sUserName);
	for(int i = 0; i < nTotalFaceNum; ++i)
	{
		m_faceAnalyzer->tryInsertFace(m_FaceTemplate[i], nFaceSetIdx,  true);
	}
	m_faceAnalyzer->saveFaceModelXML(str_facesetxml);	
}
void FaceRegistration_AddUser ( const char * str_facesetxml , char * sUserName , IplImage * m_FaceTemplate [ FACE_TEMPLATE_MAX_NUM ] , int nTotalFaceNum ) { int nFaceSetIdx = -1 ; nFaceSetIdx = m_faceAnalyzer -> insertEmptyFaceSet ( sUserName ) ; for ( int i = 0 ; i < nTotalFaceNum ; ++ i ) { m_faceAnalyzer -> tryInsertFace ( m_FaceTemplate [ i ] , nFaceSetIdx , true ) ; } m_faceAnalyzer -> saveFaceModelXML ( str_facesetxml ) ; }
This routine is a function of the Face Registration Utility
written by Ren Haibing
This routine is a function of the Face Registration Utility written by Ren Haibing
//int nFaceSetID = -1; //nFaceSetID = m_faceAnalyzer->getFaceSetID(nFaceSetIdx);