Performing DCT Transformation with Zigzag-Order Coefficient Retention
Read a 256*256 image, divide it into 8*8 pixel blocks, apply DCT transformation to each block, retain specified coefficients in zigzag order, reconstruct the image using IDCT, and calculate the signal-to-noise ratio of the reconstructed output