MATLAB: I want to find DCT of a gray scale image. How to do it dct2 The gray scale image is divided into 8*8 blocks. How to find DCT of EACH 8*8 block and display dct of one block? Further, how to quantize the dct of each block? Best Answer blockproc() the dct2() call. Related SolutionsMATLAB: How to divide an image into 8*8 non overlapping blocks. reshape(a,8,8,[]) MATLAB: Anyone suggest me a code for dct2() and blockproc() Hi, You should have just continued the post that you started here:http://www.mathworks.com/matlabcentral/answers/49323-how-to-apply-8x8-dct-on-a-imageDid you read the help for dct2() and blockproc()?fun = @(block_struct) dct2(block_struct.data);RGB = imread('autumn.tif');I = rgb2gray(RGB);Y = blockproc(I,[8 8],fun); Related QuestionDct (8*8)Error while using blockproc. Matrix dimensions must agree.
Best Answer