Compute 2-D discrete cosine transform (DCT)
Computer Vision Toolbox / Transforms
The 2-D DCT block calculates the two-dimensional discrete cosine transform of an image. Suppose f(x,y) is the input image of dimension M-by-N, the equation for the 2-D DCT is
where for and otherwise.
The number of rows and columns of the input image must be power of 2. You can also use this block to compute 1-D DCT of a vector.
Data Types |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
[1] Chen, W.H, C.H. Smith, and S.C. Fralick, “A fast computational algorithm for the discrete cosine transform,” IEEE Trans. Communications, 25 (1977): 1004-1009.
[2] Wang, Z. “Fast algorithms for the discrete W transform and for the discrete Fourier transform,” IEEE Trans. Acoust., Speech, Signal Processing, 32 (August 1984): 803-816.