The DCT is similar to the Fourier transform, but uses only cosines. This means it only handles real coefficients.

For a 2D image of size , this would be:

The DCT is particularly useful for image compression, as we can remove coefficients with small frequency values without severely impacting image clarity.