Crop an image using mouse selection
y = imcropm(S)
Source Image
Subimage
This function allows user to select the region of interest interactively using mouse.
S = imread(fullpath(getIPCVpath() + "/images/puffin.png")); J = imcropm(S); scf; imshow(J);