RGB Image Compression

The code computes the spatial compression on R G B components for a RGB image.

You are now following this Submission

The code uses the following function to compute the final result:

1. Encode the Luma and Croma components using independent quantization tables.
2. Run length encoding and decoding is performed
3. Decode the Luma and Croma components using independent quantization tables.

Running the code:
Iinput=imread('SFU.jpg);
[Ioutput]= compressimage(Iinput);
Imshow(Ioutput);

Cite As

Amarjot (2026). RGB Image Compression (https://www.mathworks.com/matlabcentral/fileexchange/40668-rgb-image-compression), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0