Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwu2620 authored Jul 17, 2020
1 parent b3d76d1 commit fd7dfda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lab_1/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The dataset you need is under `Face_dataset/` directory, which contains 56×46 p
1. Perform PCA on the **training set**. Save the **mean face** and the first **three** eigenfaces.
- save to [mean.png], [1.png], [2.png], [3.png]
- Be careful the values in eigenvectors after PCA ! (*cv2.PCACompute()*)
- Bonus: you can implement your own PCA function !!
- hint:  255 * (shifted **x**/ max(shifted **x**))

2. Take **7_2.png**, and project it onto the above PCA eigenspace. Reconstruct this image using the first n = 3, 100 eigenfaces. For each n, compute the mean square error (MSE) between the reconstructed face image and **7_2.png**. Please save these reconstructed images, and record the corresponding MSE values.
Expand Down

0 comments on commit fd7dfda

Please sign in to comment.