Cropping out the image/generating image the same size as the matrix it comes from
Show older comments
Hello,
So I have a matrix that I display with imagesc(). I gray it in order to apply imcontour(), and plot this contour on the original image.
The issue is that I have an image bigger than my matrix, and I want it to be the same size. So I have 2 questions:
- Is there a way to save directly the image from the matrix, and have it the same size ?
- How to crop the black part of the image below in order to have a figure the same size as my matrix ?
Thanks for your help !

Accepted Answer
More Answers (0)
Categories
Find more on 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!