ImLab Scilab Function
Last update :
imroi - image region of interest extraction
Calling Sequence
-
[mask] = imroi(image_data,type)
Parameters
-
image_data
: image pixel values
-
type
: character corresponding to the shape of the region to select. 'type' can take the following values :
-
'r': rectangle region selection. Click left on the top-left and the bottom-right point to select it.
-
'c': circular region selection. Click left on the top-left and the bottom-right point of the square which surround the circle to select it. The x-coordinate variation is used to compute the diametre value.
-
'e': ellipsoidal region selection. Click left on the top-left and the bottom-right point of the rectangle which surround the ellipse to select it.
-
'p': polygonal region selection. Click left on every node of the polygone you want to select and click right to end the selection. It will automatically be closed.
-
'u': user defined region selection. Click left to begin the selection, then select the points surrounding your region and click left to end your selection. It will automatically be closed.
-
mask
: matrix containing zeros on coordinates corresponding to a point out of the area selected or ones on others
Description
This function allows to select an region of interest in an image, it returns a mask that can be put on the image to keep the region we want using function 'immask'