Using SVD to approximate a data matrix in lower dimensions has application in image compression
Grayscale images can be represented as \(n\times p\) matrices of decimals
1 = full white
0 = full black
Full-color images are, when represented in rgb format, simply 3 \(n\times p\) matrices with decimals representing amount of red, green, and blue in each pixel - this is called a \(n \times p \times 3\)array.
Images as matrices
The magick package is excellent for image analysis in R
We’ll work with a creative commons licensed image from here