Public Member Functions | Public Attributes
FaceRecognitionLib Class Reference

List of all members.

Public Member Functions

IplImage * convertFloatImageToUcharImage (const IplImage *srcImg)
IplImage * convertImageToGreyscale (const IplImage *imageSrc)
IplImage * cropImage (const IplImage *img, const CvRect region)
CvRect detectFaceInImage (const IplImage *inputImg, const CvHaarClassifierCascade *cascade)
void doPCA ()
 FaceRecognitionLib ()
int findNearestNeighbor (float *projectedTestFace)
int findNearestNeighbor (float *projectedTestFace, float *pConfidence)
bool learn (const char *szFileTrain)
int loadFaceImgArray (const char *filename)
int loadTrainingData (CvMat **pTrainPersonNumMat)
IplImage * resizeImage (const IplImage *origImg, int newWidth, int newHeight)
bool retrainOnline (void)
void storeEigenfaceImages ()
void storeTrainingData ()
 ~FaceRecognitionLib (void)

Public Attributes

bool database_updated
CvMat * eigenValMat
IplImage ** eigenVectArr
CvHaarClassifierCascade * faceCascade
int faceHeight
IplImage ** faceImgArr
int faceWidth
int nEigens
int nPersons
int nTrainFaces
IplImage * pAvgTrainImg
vector< string > personNames
CvMat * projectedTrainFaceMat
int SAVE_EIGENFACE_IMAGES
CvMat * trainPersonNumMat

Detailed Description

Definition at line 39 of file face_recognition_lib.cpp.


Constructor & Destructor Documentation

D.Portugal: needed in case you "rosrun" from another folder

Definition at line 73 of file face_recognition_lib.cpp.

Definition at line 116 of file face_recognition_lib.cpp.


Member Function Documentation

IplImage * FaceRecognitionLib::convertFloatImageToUcharImage ( const IplImage *  srcImg)

Definition at line 278 of file face_recognition_lib.cpp.

IplImage * FaceRecognitionLib::convertImageToGreyscale ( const IplImage *  imageSrc)

Definition at line 198 of file face_recognition_lib.cpp.

IplImage * FaceRecognitionLib::cropImage ( const IplImage *  img,
const CvRect  region 
)

Definition at line 246 of file face_recognition_lib.cpp.

CvRect FaceRecognitionLib::detectFaceInImage ( const IplImage *  inputImg,
const CvHaarClassifierCascade *  cascade 
)

Definition at line 145 of file face_recognition_lib.cpp.

Definition at line 523 of file face_recognition_lib.cpp.

int FaceRecognitionLib::findNearestNeighbor ( float *  projectedTestFace)
int FaceRecognitionLib::findNearestNeighbor ( float *  projectedTestFace,
float *  pConfidence 
)

Definition at line 485 of file face_recognition_lib.cpp.

bool FaceRecognitionLib::learn ( const char *  szFileTrain)

Definition at line 343 of file face_recognition_lib.cpp.

int FaceRecognitionLib::loadFaceImgArray ( const char *  filename)

Definition at line 564 of file face_recognition_lib.cpp.

int FaceRecognitionLib::loadTrainingData ( CvMat **  pTrainPersonNumMat)

Definition at line 391 of file face_recognition_lib.cpp.

IplImage * FaceRecognitionLib::resizeImage ( const IplImage *  origImg,
int  newWidth,
int  newHeight 
)

Definition at line 215 of file face_recognition_lib.cpp.

Definition at line 648 of file face_recognition_lib.cpp.

Definition at line 307 of file face_recognition_lib.cpp.

Definition at line 450 of file face_recognition_lib.cpp.


Member Data Documentation

Definition at line 57 of file face_recognition_lib.cpp.

Definition at line 53 of file face_recognition_lib.cpp.

Definition at line 52 of file face_recognition_lib.cpp.

CvHaarClassifierCascade* FaceRecognitionLib::faceCascade

Definition at line 55 of file face_recognition_lib.cpp.

Definition at line 47 of file face_recognition_lib.cpp.

Definition at line 44 of file face_recognition_lib.cpp.

Definition at line 46 of file face_recognition_lib.cpp.

Definition at line 50 of file face_recognition_lib.cpp.

Definition at line 48 of file face_recognition_lib.cpp.

Definition at line 49 of file face_recognition_lib.cpp.

Definition at line 51 of file face_recognition_lib.cpp.

Definition at line 45 of file face_recognition_lib.cpp.

Definition at line 54 of file face_recognition_lib.cpp.

Definition at line 43 of file face_recognition_lib.cpp.

Definition at line 56 of file face_recognition_lib.cpp.


The documentation for this class was generated from the following file:


face_recognition
Author(s): Pouyan Ziafati
autogenerated on Thu Jun 6 2019 18:29:22