libface 0.2
Public Member Functions | Public Attributes

libface::Eigenfaces::EigenfacesPriv Class Reference

List of all members.

Public Member Functions

double rms (const IplImage *img1, const IplImage *img2)
void learn (int index, IplImage *newFace)
string stringify (unsigned int x) const

Public Attributes

std::vector< IplImage * > faceImgArr
std::vector< int > indexMap
std::string configFile
double CUT_OFF
double UPPER_DIST
double LOWER_DIST
double THRESHOLD
double RMS_THRESHOLD
int FACE_WIDTH
int FACE_HEIGHT

Member Function Documentation

void libface::Eigenfaces::EigenfacesPriv::learn ( int  index,
IplImage *  newFace 
)

Performs PCA on the current training data, projects the training faces, and stores them in a DB.

Performs PCA on the current training data, projects the training faces, and stores them in a DB.

Parameters:
index- Index of the previous image to be merged with.
newFace- A pointer to the new face to be merged with previous one stored at index.
double libface::Eigenfaces::EigenfacesPriv::rms ( const IplImage *  img1,
const IplImage *  img2 
)

Calculates Root Mean Squared error between 2 images.

Calculates Root Mean Squared error between 2 images. The method doesn't modify input images. N.B. only 1 channel is used at present.

Parameters:
img1- first input image to compare with.
img2- second input image to compare with.
Returns:
Returns RMS between 2 images.
string libface::Eigenfaces::EigenfacesPriv::stringify ( unsigned int  x) const [inline]

Converts integer to string, convenience function. TODO: Move to Utils

Parameters:
xThe integer to be converted to std::string
Returns:
Stringified version of integeer

The documentation for this class was generated from the following file:
 All Classes Files Functions