Effect of Range Reduction in Video/Image Compression

Range reduction demonstration using JPEG codecs.


Updated 31 Oct 2009

View License

This script demonstrates the influence of range reduction algorithm at low bitrate encoding using JPEG encode. The range [0-255] of pixel values is mapped to [64-235] in this script using a look-up-table. Subsequently, the file is compressed to achieve the same bit-rate (file size) as that of the compressed full range image. (The quality factor chosen may need adjustment if changing the input image.) The compressed files are uncompressed for quality comparison. In case of range reduction, the range is restored back on uncompression. SSIM is used for quality metrics.

The effect of range reduction is to increase spatial correlation of neighborhood pixels and thereby improving compression ratio.

Cite As

Fitzgerald Archibald (2023). Effect of Range Reduction in Video/Image Compression (https://www.mathworks.com/matlabcentral/fileexchange/25697-effect-of-range-reduction-in-video-image-compression), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes