Wavelet Compression of ''Lena''
 | Download
this example as a
Mathematica
notebook. |
A standard image used in testing two-dimensional signal processing algorithms
is ''Lena''. The data is contained in the variable lenaData.
![[Graphics:Images/index_gr_1.gif]](index_gr_1.gif)
We will explore wavelet compression of "Lena" with a Daubechies extremal
phase filter of order 4.
![[Graphics:Images/index_gr_3.gif]](index_gr_3.gif)
The cumulative energy can be used to generate the curve for the relative
error versus the compression ratio or, equivalently, the number of retained
wavelet coefficients. For the choice of relative errors 0.03, 0.05, 0.07,
and 0.1 we can compute the number of wavelet coefficients that we must
retain. Here are the results.
For each of these compression ratios, we show the resulting image obtained
from applying the inverse wavelet transform to the compressed data.
![[Graphics:Images/index_gr_5.gif]](index_gr_5.gif)
![[Graphics:Images/index_gr_6.gif]](index_gr_6.gif)
Converted by Mathematica
September 1, 1999 |