how to convert 8x8 matrix into image?

3 views (last 30 days)
i am doing project in dct...i hav taken an image converted it into 8x8 matrix...and compressed it using dct...now i want to convert the dct 8x8 matrix output back to image...pls help me in writing the code.

Accepted Answer

Mohammad Abouali
Mohammad Abouali on 21 Jan 2015
Edited: Mohammad Abouali on 21 Jan 2015
do the inverse dct or idct().
  12 Comments
Image Analyst
Image Analyst on 23 Jan 2015
You can also set the 'InitialMagnification' parameter in imshow to something like 800 or 1600 to show it larger, instead of calling imresize.
Mohammad Abouali
Mohammad Abouali on 23 Jan 2015
Edited: Mohammad Abouali on 23 Jan 2015
Actually didn't know about that. That's very useful to know. Thank you.

Sign in to comment.

More Answers (2)

Abhinaya Rajasekaran
Abhinaya Rajasekaran on 22 Jan 2015
I got the point that image is matrix of numbers...but i hav to show the image as output..not the matrix....how to display the matrix as image in matlab??

Abhinaya Rajasekaran
Abhinaya Rajasekaran on 22 Jan 2015
I tried it i am not getting the image...getting some black grey and white colours only

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!