320 likes | 898 Views
Image Compression using Singular Value Decomposition. Math 320 Kristen Cunanan Michael Tzen. Reading a matrix into Matlab. Command: data=imread(“title”,”format”). Singular Value Decomposition. SVD in Matlab.
E N D
Image Compression using Singular Value Decomposition Math 320 Kristen Cunanan Michael Tzen
Reading a matrix into Matlab Command: data=imread(“title”,”format”)
SVD in Matlab we must do svd p times on each “page” of the array. Command: = svd(data(:,:,:i) i=1…p
Process • Is person X in the “training” group of M=50? • SVD on manipulated pictures • Is Euclidean distance in the threshold?
Prep Work Image I Data matrix “Training Set” of images
Subtracting the Mean • Compute the Mean of S = Training set • Subtract Mean from ea. face/vector in S
Covariance Matrix • Get the Covariance Matrix of S
SVD on C = • SVD method on C to get the eigenvalues/eigenvectors • Gives us the “important” values/vectors corresponding to each difference vector
Eigenvector = Eigenface • The eigenvectors obtained, are called Eigenfaces • Any can be written as a linear combination of the eigenfaces
.87 + .2 = + .10 + .1
Conclusion • If Value (Specified) • Human Face ~ 1500 range • McMillen = Bradd Pitt