Testing eigenface recognition, using the images form the FERET face database.
The implementation computes:
- the average face
- the eigenfaces corresponding to the 10 largest eigenvalues
- the eigenfaces corresponding to the 10 smallest eigenvalues
- weight vectors of training faces and query images
Recognition is performed by computing the Mahalanobis distance.
OpenCV library
Compiles with:
g++ eigenfaces.cpp pkg-config --cflags --libs opencv