Implemented Principal Components Analysis algorithm in MATLAB for face recognition. Compared two faces by projecting the images into Eigenface space and measure the Euclidean distance between them
Run whole program by runing this script. Construct 2D matrix from all of the 1D image vectors in the training data file Compute the covariance matrix. Use the "svd" function to compute the eigenvectors and eigenvalues of the covariance matrix. Set Threshold value whatever you like to picks eigenvalues. Project the selected test image and all of the training images into Eigenfaces space. Compare the Euclidean distances between them and find the index of image who gets minmum Euclidean distances. Show the maxmum nine pictures of Eigenfaces.Test Result 1
Test Result 2
Test Result 3
Eigenfaces