ROI
1) Goal: Draw & process multiple ROIs interactively within an image, which output area, mean, std, min, max, median and roicenter [x, y].
2) Usage: ROI(img, nroi), where 'img' is your image, and 'nroi' is a total number to ROIs to be processed. The opened image will be processed BY DEFAULT. A prefered procedure is as follows:
a) img = imread(...);
b) imh = imshow(img) and
c) ROI(img, nroi).
Alternatively, if there is no image in your WorkSpace, you MUST use square brackets to occupy the argument space for img, such as, ROI([],5), will let you open a new image and process with 5 ROIs.
3) Since getline('closed') is used to get the polygon interactively, please click left mouse button to select, and right button to finish up a ROI (Backspace to delete the lastest click). You may repeat this process till all ROIs were processed. For more infos, please ma