Karhunen-Loeve Decomposition for Statistical Recognition and Detection

Karhunen-Loeve Decomposition for Face Recognition


Updated 7 Nov 2005

No License

This MATLAB script implements Karhunen-Loeve decomposition which is classical algorithm for face recognition and detection. Script uses ATT faces database http://www.uk.research.att.com/facesataglance.html
which can be downloaded from

Computing Eigenvalues and Eigenvectors of images set
Encoding Face Images with a Linear Combination Key (KL decomposition)
Decoding a Key into an Image (reconstruction)
Comparing images using key, searching for similar images.

Cite As

Alex Chirokov (2023). Karhunen-Loeve Decomposition for Statistical Recognition and Detection (https://www.mathworks.com/matlabcentral/fileexchange/6995-karhunen-loeve-decomposition-for-statistical-recognition-and-detection), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Code was updated to find the most similar and the most different faces. Also distance map of face database is now computed and shown.