The discrete cosine transform (see the article
"From the Fourier transform to the discrete cosine transform"), a numerical process directly inspired by Fourier transforms, converts this pixel data into a spectral representation: a matrix of numbers associated with pairs of predetermined frequencies. The particular form chosen for this matrix is no accident: in the matrix of DCT coefficients (
i,
j) associated with each pixel block, the coefficient DCT (0, 0) and its neighbors correspond to the lowest frequencies (values of
i and
j that are "close to zero" in the formula), whereas DCT (7, 7) and its neighbors correspond to the highest frequencies (values of
i and
j that are "close to the maximum," here 7). An 8 × 8 pixel block I(
u,
v), with
u and
v ranging from 0 to 7, is thus converted into another block using the following formula: