dct2d(M) Returns the 2D discrete cosine transform (type II) of matrix M.
idct2d(M) Returns the inverse 2D discrete cosine transform (type II) of matrix M.