I am using
[X,Y,I2,rect] = imcrop(…)
function to get my sub-image.
1- I want first to zoom in my image and then crop my image. How it will work?
Using imtool i can first zoom in and then crop my image but i can export store rect coordinates.
regards,
This is supported out of the box: after you call IMCROP, a figure opens up with the image displayed. From the toolbar, use the pan/zoom tools as usual, once done disable them and you would be back to the mode where you specify the draggable rectangle. Make your selection and double-click it to accept.
Here is an example: