cropcv
Crops an image to the specified region of interest.
Syntax
R = cropcv(handle, regionofinterest)
Inputs
- handle
- Handle of an image.
- regionofinterest
- Real vector representing [startx, starty, endx, endy] of the region of interest.
Outputs
- R
- Handle of the resulting cropped image.
Example
handle = imreadcv('image1.jpg');
roi = [150, 100, 300 500];
croppedhandle = cropcv(handle, roi);