20060811-Discrete cosine transforms, JPEG, and software compatibility

来源:互联网 发布:尼康官方调焦软件 编辑:程序博客网 时间:2024/05/22 12:15
原文:http://blogs.mathworks.com/steve/2006/08/11/discrete-cosine-transforms-jpeg-and-software-compatibility/

The function dct2, which computes the two-dimensional discrete cosine transform (DCT), appeared in the original 1993 version of the toolbox. The authors of the toolbox relied on several authoritative references, includingTwo-Dimensional Signal and Image Processing by Lim. This book contains the following one-dimensional DCT equation:


The original implementation of dct2 used this formula.

At roughly the same time as the first toolbox release, the newly-standardized JPEG image compression method and format was becoming popular. The DCT is the mathematical heart of the JPEG algorithm. Here's the 8-point one-dimensional DCT equation that appears in JPEG: Still Image Data Compression Standard by Pennebaker and Mitchell.


where


The variable name differences are trivial, but the scale factor differences are very important! The JPEG DCT is an orthonormal transform, whereas the DCT defined in Lim's book is not.


0 0
原创粉丝点击