Summary: This module introduces the Haar transform.
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
Probably the simplest useful energy compression process is the
Haar transform. In 1-dimension, this transforms a 2-element
vector
Note that
If
|
It is clear from Figure 1(b) that most of the energy is contained in the top left (Lo-Lo) subimage and the least energy is in the lower right (Hi-Hi) subimage. Note how the top right (Hi-Lo) subimage contains the near-vertical edges and the lower left (Lo-Hi) subimage contains the near-horizontal edges.
The energies of the subimages and their percentages of the total are:
| Lo-Lo | Hi-Lo | Lo-Hi | Hi-Hi |
|---|---|---|---|
|
|
|
|
|
| 96.5% | 2.2% | 0.9% | 0.4% |
Total energy in Figure 1(a) and Figure 1(b) =
We see that a significant compression of energy into the Lo-Lo subimage has been achieved. However the energy measurements do not tell us directly how much data compression this gives.
A much more useful measure than energy is the entropy of the subimages after a given amount of quantisation. This gives the minimum number of bits per pel needed to represent the quantised data for each subimage, to a given accuracy, assuming that we use an ideal entropy code. By comparing the total entropy of the 4 subimages with that of the original image, we can estimate the compression that one level of the Haar transform can provide.