|
Algorithm 1. DCT Algorithm |
-
1.
The input image is N by M;
-
2.
f(i,j) is the intensity of the pixel in row i and column j;
-
3.
F(u,v) is the DCT coefficient in row u and column v of the DCT matrix:
where, and
-
4.
For most images, much of the signal energy lies at low frequencies; these appear in the upper left corner of the DCT.
-
5.
Compression is achieved since the lower right values represent higher frequencies, and are often small - small enough to be neglected with little visible distortion.
-
6.
The DCT input is an 8 by 8 array of integers. This array contains each pixel’s grayscale level;
-
7.
8-bit pixels have levels from 0 to 255.
|