2D DWT detailed "compression" example #2
Load gray-scale image
Display image
Define wavelet filter
Compression example (Daubechies-4, 5-level)
DWT output size
Define filter, levels, output options
DWT
Eliminate progressively more small wavelet coefficients
Count number of nonzero wavelet coefficients as threshold is increased
Show compressed DWTs
Take inverse DWTs
Show compressed images
Created by Mathematica (February 16, 2004)