Search for question
Question

3. (Implementation of PCA) Extract one subject in the data file 'yaleBfaces.zip' which includes a number of 64 images. Denote them as X = [x₁,,xn] with n = 64 and each image contains 50 x 50 = 2500 pixels, i.e., x, Є Rd with d = 2500. (a) Depict two images from your extracted images. (b) Use PCA to find the first 10 principal component wk for k = 1, 2,..., 10. Calculate n 10 - ||x(xi, wk) wk || 23. i=1 k=1 (c) Reconstruct your selected two images in (a) using the first 10 principal com- ponents and plot them.

Fig: 1