FRACLAB Functions |
|
cropormask
Crops an image or creates a mask using a 2D signal (an image)
Syntax
cropormask(x,'varname')
cropormask(x,'varname','mask')
Description
cropormask(x,'varname') displays the image of x in a figure window and creates
an interactive image tool, associated with the image of x. The tool is a moveable, resizable
rectangle that is interactively placed and manipulated using the mouse.
By choosing Extract from the tool's context menu the user crops the image.
The cropped image is saved in the variable varname and is added to the list of variables of fraclab.
By choosing Modify the user can modify the tool at any time.
The current figure is closed once the operation is done.
cropormask(x,'varname','mask') displays the image of x in a figure window and creates
an interactive image tool, associated with the image of x. Using the tool's context menu,
the user creates a mask which has the same size of x.
By choosing Mask of ones the user keeps the region surrounded by the resizable rectangle
and put the rest of the image to zero.
By choosing Mask of zeros the user puts the region surrounded by the resizable rectangle
to zero and do not modify the rest of the image.
Once the type of mask is selected, it is displayed for a second the result of the combination
of the original image and the created mask.
By choosing Save the mask is saved in the variable varname
and is added to the list of variables of fraclab
By choosing Modify the user modifies the tool at any time.
By choosing Cancel the user restores the original image of x at any time.
The current figure is closed once the operation is done.
|
boxdim_listepoints | | dla |
 |