Playing with lossy image compression based on tile prediction and the discrete wavelet transformation
Quick start:
Encode PNM picture file to encoded.itw
:
./itwenc smpte.ppm encoded.itw
Decode encoded.itw
file to decoded.ppm
picture file:
./itwdec encoded.itw decoded.ppm
Watch decoded.ppm
picture file in feh:
feh decoded.ppm
Use quantization values instead of the default 128 32 32
values:
./itwenc smpte.ppm encoded.itw 64 32 16
Use the reversible integer Haar wavelet instead of the default 0
CDF 9/7 wavelet for lossless compression:
./itwenc smpte.ppm encoded.itw 128 32 32 1