MATLAB: Anyone suggest me a code for dct2() and blockproc() dct2matlab coder i take one image with any kind of size. for that image how to apply 8×8 dct. anyone suggest me what is the code for this? Best Answer 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 SolutionsMATLAB: I have divide an image into left half and right half.i want to combine this left half and right half into a single original image. Please help me to write the code fullImage = [leftHalf, rightHalf]; MATLAB: HOw to divide an Image into sub images Using MAT2TILES (Available Here)subImages = mat2tiles(Image_256x256,[64,64]);e.g., >> mat2tiles(rand(256),[64,64]) ans = [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] [64x64 double] Related QuestionBlockproc error…Combining image after diving it into blocks
Best Answer