Module: MaskImage

Mask Image hides certain portions of an image (based on previously identified objects or a binary image) so they are ignored by subsequent mask-respecting modules in the pipeline.
This module masks an image and saves it in the handles structure for future use. The masked image is based on the original image and the masking object or image that is selected. If using a masking image, the mask is composed of the foreground (white portions); if using a masking object, the mask is composed of the area within the object.

Note that the image created by this module for further processing downstream is grayscale. If a binary mask is desired in subsequent modules, use the ApplyThreshold module instead of MaskImage.

See also ApplyThreshold, IdentifyPrimaryObjects, IdentifyObjectsManually.

Settings:

Select the input image

Select the image that you want to mask.

Name the output image

Enter the name for the output masked image.

Use objects or an image as a mask?

You can mask an image in two ways:

Select object for mask

(Used only if mask is to be made from objects)
Select the objects you would like to use to mask the input image.

Select image for mask

(Used only if mask is to be made from an image)
Select the image that you like to use to mask the input image.

Invert the mask?

This option reverses the foreground/background relationship of the mask.