how to reshape a single image
Show older comments
hey experts , i just wanna ask how to reshape a single matrix to an image in coding like this
dhsig2 = huffmandeco(hcode1,handles.dict);
hsl3=uint8(reshape(dhsig2));
thanks
Accepted Answer
More Answers (1)
Image Analyst
on 22 Sep 2016
0 votes
You have to pass in the number of rows and columns that you want the final array to be to the reshape() function. Otherwise how can it know what shape/dimensions you want? It won't know unless you tell it.
1 Comment
Jean Marcellino
on 24 Sep 2016
Categories
Find more on Display 2-D Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!