This project demonstrates a JPEG-like image compression and decompression process using MATLAB. The main function loads an image, processes it using Discrete Cosine Transform (DCT), applies quantization based on the specified quality, and then reconstructs the image. The decompressed image is saved to disk, and metrics such as PSNR and SSIM are calculated to evaluate the compression quality.
- Clone the repository:
git clone https://github.com/Boubker10/JPEG_compression_decompression/.git
- Open MATLAB and navigate to the cloned repository folder.
To compress and decompress an image, run the following command in MATLAB:
jpeg_com_decom('path/to/image.jpg', 'quality');