Home Matlab code - DCT based grayscale image
Reply: 0

Matlab code - DCT based grayscale image

Valerina E. Vale
1#
Valerina E. Vale Published in 2017-12-07 22:21:53Z

When I execute this code on Matlab, appears to many errors, can someone help me what is wrong with this code?

% perform DCT in 2 dimensions over blocks of 8x8 in the given      picture
dct_8x8_image_of_128x128{idx+1} = image_8x8_block_dct(
input_image_128x128 );
if (mod(idx,2)==0)
figure;
 end
subplot(2,2,mod(idx,2)*2+1);
imshow(input_image_128x128);
title( sprintf('image #%d',idx) );
subplot(2,2,mod(idx,2)*2+2);
imshow(dct_8x8_image_of_128x128{idx+1});
title( sprintf('8x8 DCT of image #%d',idx) );
end
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300953 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO