Remove space around generated image
2 views (last 30 days)
Show older comments
I am encrypting an image and have generated the encrypted image matrix of dimension (183x275x3). But when I display the image (seen as dots in the attached file) it has some extra white space around it which alters its dimensions to (415x253). How do I get rid of the white space? Original image also attached...
0 Comments
Answers (1)
Jan
on 12 Feb 2017
Edited: Jan
on 12 Feb 2017
It is very starnge, that you get a 415x253 image after encrypting an 183x275x3 array. I guess, that you display the encrypted image using imshow or image and take a screenshot afterwards, which is taked as indexed image. This does not sound convincing.
Please post any details. I assume, the output of the encryption function is the wanted encrypted image already and you do not need the indirection of displaying it at first. Then there is no need to remove a border.
See Also
Categories
Find more on Image Processing Toolbox 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!