Thursday, October 13, 2011

a13

Image Compression

Image to be compressed and then we convert it to grayscale (89.9KB)
Then we cut the image into 10 x 10 blocks and reshape this block into a 1-D array. We'll have an n x p matrix where n is the number of 10 x 10 blocks and p is the number of elements per block (100 in this case). Next we use the PCA method in scilab.

The figure below shows the correlation circle
Eigenvalues
The new correlation circle
New eigenvalues
Image using 3 out of 100 eigenvectors (19.6KB)
Image using 50 out of 100 eigenvectors (20.1KB)
Image using 100 out of 100 eigenvectors (22.6KB)

score: 8/10. i was able to do the activity, unfortunately, I posted late

No comments:

Post a Comment