Get "discrete cosine transform (DCT)" and "discrete Fourier transform (DFT)" of image