how does dctmtx work in matlab?
Calculate Discrete Cosine Transform Matrix Read an image into the workspace and cast it to class double . Calculate the discrete cosine transform matrix. D = dctmtx(size(A,1)); Multiply the input image A by D to get the DCT of the columns of A , and by D' to get the inverse DCT of the columns of A .