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.

The cropped image is saved in the variable varname and is added to the list of variables of fraclab.
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.

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.
The current figure is closed once the operation is done.