Video Compression: What is discrete cosine transform?

后端 未结 6 588
一向
一向 2021-02-05 11:42

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

6条回答
  •  不知归路
    2021-02-05 12:38

    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.

提交回复
热议问题