svd_gray_test, an Octave code which calls svd_gray(), which reads a file containing a grayscale image and uses the singular value decomposition (SVD) to compute and display a series of low rank approximations to the image.
The computer code and data files described and made available on this web page are distributed under the MIT license
svd_gray, an Octave code which reads a gray scale image, computes the Singular Value Decomposition (SVD), and constructs a series of low rank approximations to the image.
Approximations were made using 1, 2, 5, 10, 20, 40, and 80 optimal columns: