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 !