Apex › Storage & databases

How SVD compresses an image (low rank)

Any matrix — an image — is A = UΣVᵀ, a sum of rank-1 layers σᵢuᵢvᵢᵀ ordered by importance. Keep the top k layers and you get a rank-k approximation that, by the Eckart–Young theorem, is the BEST possible rank-k picture — the image sharpens from a blur to exact as k grows, from k(m+n+1) numbers instead of m·n. Verified in node (one-sided Jacobi) four ways: reconstruction to 3e-15, orthonormal U/V, Σσ²=‖A‖²_F, and Eckart–Young ‖A−A_k‖²_F=Σσ². SVD is the stable way to do PCA. Slide the rank dial.

More in Storage & databases