DCT2
CosineTransformForwardMatrix_DCT2 Discrete Cosine Transform (DCT-II) matrix.
Declaration
matrix = DCT2(N)
Parameters
Ninput argumentN
Returns
matrixoutput valuematrix
Discussion
CosineTransformForwardMatrix_DCT2 Discrete Cosine Transform (DCT-II) matrix Forward scaling: 2/N (no extra endpoint halving here). With this choice, the inverse (DCT-III) is the plain cosine matrix with the DC (first) COLUMN halved. If X = CosineTransformForwardMatrix_DCT2(N) * x, then x = InverseCosineTransformMatrix_DCT2(N) * X. See also: InverseCosineTransformMatrix_DCT2