You are here : matlabImage Processingdctmtx

dctmtx() - Image Processing

D = dctmtx(n) returns the n-by-n DCT
(discrete cosine transform) matrix. D*A is the
DCT of the columns of A and D'*A is
the inverse DCT of the columns of A (when A is n-by-n).


Syntax

D = dctmtx(n)


Example

A = im2double(imread('rice.png'));
D = dctmtx(size(A,1));
dct = D*A*D';
figure, imshow(dct)


Output / Return Value


Limitations


Alternatives / See Also


Reference