MATLAB: How to stop image auto resize after using imcrop

guideimage processingImage Processing Toolboxmatlab gui

In a GUI I load a rgb image in axes1. After that I cropped one portion of the image and showing that cropped portion in axes2. But after cropping the size of the cropped portion is changed. Its zoomed. How to show the cropped porition in its actual size in axes2? Is there any option to stop that auto zoom?

Best Answer

In axes2, first display the original image, then put "hold on", and then display your cropped image. The axes will stay adjusted to what they were when you showed the first image.
Related Question