JPEG image compression
Version 1.0.0 (2.52 KB) by
Soroush Mirmobini
You can compress color (RGB) images using this function. it relies on the well-known JPEG algorithm.
JPEG Algorithm:
0. Loading and initializing the raw image
- Convert RGB image to YIQ or YCbCr image
- Down-sampling the image
- Forward Discrete Cosine Transform (DCT)
- Quantization
- Huffman Encoding: Compressed data
- Decoding
- De-quantization
- Inverse Discrete Cosine Transform (IDCT)
- Up-sampling
- Convert YIQ to RGB image: Compressed image
Cite As
Soroush Mirmobini (2024). JPEG image compression (https://www.mathworks.com/matlabcentral/fileexchange/122932-jpeg-image-compression), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |