I\'ve implemented an image/video transformation technique called discrete cosine transform. This technique is used in MPEG video encoding. I based my algorithm on the ideas pr
If I remember correctly, this matrix allows you to save the data to a file with compression.
If you read further down, you'll find the zig-zag pattern of data to read from that final matrix. The most important data are in the top left corner, and least important in the bottom right corner. As such, if you stop writing at some point and just consider the rest as 0's, even though they aren't, you'll get a lossy approximation of the image.
The number of values you throw away increases compression at the cost of image fidelity.
But I'm sure someone else can give you a better explanation.