Skip to content

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

License

Notifications You must be signed in to change notification settings

Boubker10/JPEG_compression_decompression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JPEG Compression and Decompression in MATLAB

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.

Table of Contents

Installation

  1. Clone the repository:
    git clone https://github.com/Boubker10/JPEG_compression_decompression/.git
  2. Open MATLAB and navigate to the cloned repository folder.

Usage

To compress and decompress an image, run the following command in MATLAB:

jpeg_com_decom('path/to/image.jpg', 'quality');

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages