Summary: This module introduces the 2-dimensional DCT.
In the equation from our discussion of the Haar transform:
Hence the DCT may be extended into 2-D by this method.
E.g. the
The 2-D basis functions, from which
The result of applying the
Part(c) of Figure 1 shows the same
data, reordered into 64 subimages of
We see the major energy concentration to the subimages in the top left corner. (d) of Figure 1 is an enlargement of the top left 4 subimages of (c) of Figure 1 and bears a strong similarity to the group of third level Haar subimages in (b) of this figure. To emphasise this the histograms and entropies of these 4 subimages are shown in Figure 2.
Comparing Figure 2 with this
figure, the Haar
transform equivalent, we see that the Lo-Lo bands have identical
energies and entropies. This is because the basis functions are
identical flat surfaces in both cases. Comparing the other 3
bands, we see that the DCT bands contain more energy and entropy
than their Haar equivalents, which means
less energy (and so hopefully less entropy)
in the higher DCT bands (not shown) because the total energy is
fixed (the transforms all preserve total energy). The mean
entropy for all 64 subimages is 1.3622 bit/pel, which compares
favourably with the 1.6103 bit/pel for the 4-level Haar
transformed subimages using the same
![]() |
![]() |
![]() |
![]() |
This is a similar question to: What is the optimum number of levels for the Haar transform?
We have analysed Lenna using DCT sizes from
Figure 5 and Figure 6 show the mesh plots of the entropies of the subimages in Figure 4.
Figure 7 compares the total entropy per pel for the 4 DCT sizes with the equivalent 4 Haar transform sizes. We see that the DCT is significantly better than the rather simpler Haar transform.
As regards the optimum DCT size, from Figure 7, the
![]() |
![]() |
![]() |