<< Chapter < Page
  Image coding   Page 1 / 1
Chapter >> Page >
This module introduces a fast algorithms for the DCT.

The basic n -point DCT requires n 2 multiplications and n n 1 additions to calculate y T x (64 mults and 56 adds for n 8 ).

From the figure in our discussion of DCT, it is clear that symmetries exist in the DCT basis functions. These can beexploited to reduce the computation load of the DCT.

All the odd rows of T in this equation from our discussion of DCT possess even symmetry about their centres and all the evenrows possess odd symmetry. Hence we may form:

i i 1 4 u i x i x 9 i v i x i x 9 i
and then form the odd and even terms in y from two 4 4 transforms:
y 1 y 3 y 5 y 7 T left , odd u y 2 y 4 y 6 y 8 T left , even v
where T left , odd and T left , even are the 4 x 4 matrices formed by the left halves of the odd and even rows of T .

This reduces the computation to 8 add/subtract operations for and 2 16 mults and 2 12 adds for - almost halving the total computation load.

The matrix T left , even cannot easily be simplified much further, but T left , odd can, as it possesses the same symmetries as T (it is equivalent to a 4-point DCT matrix). Hence we may use the same technique onthis matrix to reduce the 16 mults and 12 adds for this product to 4 add/subtract operations followed by a pair of 2 x 2 matrix products, requiring 2 4 mults and 2 2 adds. Finally two of these mults may be saved since one of the 2 x 2 matrices is just a scaled add/subtractmatrix (like the Haar transform).

The total computation load for the 8 8 DCT then becomes:

  • 8 12 4 2 2 28 add/subtract operations;
  • 16 4 2 22 multiply operations.
More complicated algorithms exist (JPEG Book, sections 4.3.2 to 4.3.5) which reduce the number of multiplies further. Howeverthese all require more intermediate results to be stored. In modern DSP chips this can cost more CPU cycles than the extramultiplications which can often be done simultaneously with additions. Hence the simple approach given above is frequentlyoptimal.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Image coding. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10206/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Image coding' conversation and receive update notifications?

Ask