Crop image
subim = imcrop(im, rect)
rect=[x, y, width, height]
is a vector. (x, y)
is the top-left corner of the rentangle.subim
is the sub-region of the image im
.Crop image at regin rect
to subim
.
If rect
is not specified, a window which showing the image should be poped out,
and let the user to select the region using mouse.
http://sivp.sf.net