20060811-Discrete cosine transforms, JPEG, and software compatibility
2014-05-11 22:20
232 查看
原文: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, including
Two-Dimensional Signal and Image Processing by Lim. This book contains the following one-dimensional DCT equation:
![](http://latex.codecogs.com/gif.latex?C_x%28k%29%3D%5Csum_%7Bn%3D0%7D%5E%7BN-1%7D%202x%28n%29%20%5Ccos%20%5Cfrac%7B%5Cpi%7D%7B2N%7D%20k%282n+1%29%2C%200%20%5Cleq%20k%20%5Cleq%20N-1)
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.
![](http://latex.codecogs.com/gif.latex?S%28u%29%3D%5Cfrac%7BC%28u%29%7D%7B2%7D%5Csum_%7Bx%3D0%7D%5E7%20s%28x%29%20%5Ccos%20%5B%282x+1%29u%20%5Cpi/16%5D)
where
![](http://latex.codecogs.com/gif.latex?C%28u%29%3D%5Cleft%5C%7B%5Cbegin%7Bmatrix%7D%201/%20%5Csqrt%7B2%7D%20%26%20%5Ctextrm%7Bfor%7D%20%5C%20u%3D0%20%5C%5C%201%20%26%20%5Ctextrm%7Bfor%7D%20%5C%20u%3E0%20%5Cend%7Bmatrix%7D%5Cright.)
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.
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, including
Two-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.
相关文章推荐
- JPEG————Forward Transform(Discrete Cosine Transform)
- GPS北斗软件接收机/跟踪捕获定位输出/A GPS software receiver【All of acq track nav filter and other NMEA】*嵌入式GPS导航代码*
- DCC Software and Graphics System
- 离散余弦变换(Discrete Cosine Transform)
- 现实世界的Windows Azure:Quest Software and OnDemand Migration for Email
- install new software长时间停留在calculating requirements and dependencies 的解决方案
- SAMATE - Software Assurance Metrics And Tool Evaluation
- Software and Language about Machine Learning
- "Computer Science" is Not Science and "Software Engineering" is Not Engineering
- Modern Software Review: Techniques and Technologies
- Software Exorcism: A Handbook for Debugging and Optimizing Legacy Code
- Design pattern and Software design interview questions for Programmers
- In-memory Computing with SAP HANA读书笔记 - 第三章:Software components and data replication methods
- List of free and open source SCADA software
- win7 - troubleshooting and install incompatible software
- Service-Oriented Software System Engineering Challenges and Practices
- 检测使用 three.js 时的 WebGL 和浏览器兼容性(Detecting WebGL and browser compatibility with three.js)(转)
- 更新 是 可用的 针对 安卓 软件开发包和工具 Updates are available for android software development packages and tools
- IT Essentials: PC Hardware and Software Labs and Study Guide (3rd Edition)
- 嵌入式软件的安全可靠性控制(Embedded Software Safety and Reliability Control)