Lab 3: PCA-Based Face Recognition

lab代写 In this lab, we will use PCA to extract eigen-faces as features from a dataset of face images. Using the dataset, we will construct a subspace…

In this lab, we will use PCA to extract eigen-faces as features from a dataset of face images. Using the dataset, we will construct a subspace with dimensionality (k) less than or equal to the dimensionality (d) of the dataset such that this subspace has the maximum dispersion for the projections. We will do that by taking the eigenvectors with k largest eigenvalues. lab代写

We will use the ORL database, available to download on AT&T’s website. This database contains photographs showing the faces of 40 people. Each one of them was photographed 10 times. These photos are stored as grayscale images with 112 x 92 pixels.

The Database is kept in a folder called ‘orlfaces’ in the compressed file provided for this lab. For every person, 9 of the 10 images are used in the training set and 1 image is kept for the test set. The pictures belonging to the 40 people are kept in 40 different folders called s1, s2, …, s40 for both training and testing.

lab代写
lab代写

For this lab, first we will perform PCA on the training data and observe some of the eigenfaces. Then we will reconstruct a training image using k = {10, 20, 30, 40} eigenfaces to see how taking more eigenfaces affect the reconstruction. Finally, we will predict the identity of the test images using k eigenfaces by comparing the projections of the test images with the projections of the training images.

All the instructions are provided in the template ‘Lab3.m’.

Submission instructions: lab代写

Deliverables:

– Lab3.m (your code)

– ‘Results’ folder with all the figures mentioned in the template with proper titles

Compress the deliverables into one zip file and name it ‘lab3_<your JHED id>’. Submit the zip file on Canvas.