🔢 SVD Image Compression (2D)

Real singular value decomposition — rank-k image reconstruction, live error & spectrum

Test image
Rank
Statistics
Rank used
8
Variance captured
—
Compression ratio
—
Reconstruction error
—
SVD: any matrix A = UΣVᵀ. The rank-k reconstruction uses only the top k singular values: Ak = Σᵢ₌₁ᵏ σᵢ uᵢ vᵢᵀ. Compression ratio = k(m+n+1)/(mn). By the Eckart–Young theorem this is the mathematically optimal rank-k approximation in the Frobenius norm.
rank 8/32 · error — · ratio —