Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites

Wavelet Compression of ''Lena''

download notebookDownload 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]
[Graphics:Images/index_gr_2.gif]

We will explore wavelet compression of "Lena" with a Daubechies extremal phase filter of order 4.

[Graphics:Images/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.
 

[Graphics:Images/index_gr_4.gif]

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]
[Graphics:Images/index_gr_6.gif]
[Graphics:Images/index_gr_7.gif]

Converted by Mathematica      September 1, 1999



 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: