M-File Help: iroi View code for iroi

iroi

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 selected region of interest rect=[umin umax;vmin vmax].

See also

idisp


 

© 1990-2012 Peter Corke.