RectMaskImage

MacroModule
genre Generators
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition Geometry.def
see also ConstantImage, TestPattern, SubImage
keywords Rectangle

Purpose

The module RectMaskImage generates a synthetic mask image of the same size as its input image.

The mask image consists of a rectangular region and the surrounding border. The size of the rectangle and the position of its center can be specified relative to the image size, in absolute voxels or in mm (for the spatial dimensions).

The voxel values for the rectangular region and the border can be specified as the image’s minimum or maximum value or by user defined values.

The mask image inherits the input image’s data type and world matrix and optionally its C-, T-, and U-dimension info.

Usage

Connect an input image.

Specify the position of the rectangular region’s center in the Position fields, using either Relative coordinates (i.e. the interval [0, 1] represents the full image range), or Absolute voxel coordinates.

Specify the size of the rectangular region in the Size fields, using either Relative or Voxel coordinates. For the spatial dimensions x, y, and z, you can also specify the size in mm.

Specify the voxel values for the rectangular region and the surrounding border by selecting either the image’s minimum or maximum value or a user defined value.

Finally, select whether you want to copy C-, T- and U-dimension info from the input image to the output image.

Windows

Default Panel

../../../Modules/Macros/Geometry/mhelp/Images/Screenshots/RectMaskImage._default.png

Input Fields

inImage

name: inImage, type: Image, deprecated name: imageIn,imageIn

Output Fields

outImage

name: outImage, type: Image, deprecated name: imageOut