A DWT based lossless gray Image Compression

版本 1.1.0.0 (233.6 KB) 作者: Said BOUREZG
a technique of gray image compression using the discrete wavelet transform is presented in this code
3.0K 次下载
更新时间 2015/2/28

查看许可证

In this code, a new hybrid technique using the discrete wavelet transform (DWT) is presented. We show evaluation using the Power Signal to Noise Ratio (PSNR) as a measure of quality, we show that DWT with threshold, Quantization, and combination of RLE and Huffman as coding stage, provides a better performance than JPEG in terms of PSNR and we can get an important CR.
Our Algorithm is like that:
Reading image-->DWT transformation-->Thresholding-->Quantization-->RLE encoding--> Huffman encoding-->Save a compressed image in file (*.Hdwt)
in decompression steps we should open file(*.Hdwt) aafter that the steps will be like that: Huffman decoding-->RLE decoding--> Quantization inverse-->IDCT transformation-->Open image as Bmp image
Files:
compdwt.m:
main code to compress an image we only run compdct.m
decompdwt.m:
To reconstruct our image we mean here if we want to decompress the file obtained before (.Hdwt) only we run this code and chose the file interested.
resize.m:
proba.m: frequency calculation.
rle.m: Run length encoding
irle.m: Inverse Run length encoding
abais.m: reduce value big than 255

引用格式

Said BOUREZG (2024). A DWT based lossless gray Image Compression (https://www.mathworks.com/matlabcentral/fileexchange/49856-a-dwt-based-lossless-gray-image-compression), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Any one can improve this code by adding a Arithmetic coding stage or removing RLE.

1.0.0.0