Performance Analysis of DCT, Hadamard, and PCA in Block-Based Image Compression
Yashika Ahlawat
TL;DR
This study systematically compares fixed transforms (DCT, Hadamard) with a learned transform (PCA) for block-based image compression across multiple block sizes and rates. By evaluating PSNR, rate–distortion, and energy compaction, the work shows that PCA only outperforms fixed transforms when block dimensionality is large enough to support reliable covariance estimation, while the DCT remains near-optimal for standard $8\times8$ blocks and low bitrates. The Hadamard transform consistently performs worst due to poor energy concentration. The findings explain the persistent dominance of DCT in practical codecs and highlight the limitations of block-wise learned transforms, suggesting future work on training with larger datasets and additional transforms.
Abstract
Block based image compression relies on transform coding to concentrate signal energy into a small number of coefficients. While classical codecs use fixed transforms such as the Discrete Cosine Transform (DCT), data driven methods such as Principal Component Analysis (PCA) are theoretically optimal for decorrelation. This paper presents an experimental comparison of DCT, Hadamard, and PCA across multiple block sizes and compression rates. Using rate distortion and energy compaction analysis, we show that PCA outperforms fixed transforms only when block dimensionality is sufficiently large, while DCT remains near optimal for standard block sizes such as $8\times8$ and at low bit rates. These results explain the robustness of DCT in practical codecs and highlight the limitations of block wise learned transforms.
