MATLAB: Dct (8*8)

dct image transform

how to calculate Block-base DCT of an image ….

Best Answer

If you have the Image Processing Toolbox.
X = randn(100,100);
fun = @(block_struct) dct2(block_struct.data);
Y = blockproc(X,[8 8],fun);