Extract region of interest
out = iroi(im,rect) is a subimage of the image im described by the rectangle rect=[umin,umax; vmin,vmax].
out = iroi(im,C,s) as above but the region is centered at C=(U,V) and has a size s. If s is scalar then W=H=s otherwise s=(W,H).
out = iroi(im) as above but the image is displayed and the user is prompted to adjust a rubber band box to select the region of interest.
[out,rect] = iroi(im) as above but returns the coordinates of the selected region of interest rect=[umin umax;vmin vmax].
[out,u,v] = iroi(im) as above but returns the range of u and v coordinates in the selected region of interest, as vectors.
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.