Mask¶
-
MLModule
¶ genre Image
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLMiscModules
definition MLMiscModules.def keywords original
,overlay
,extract
,blend
,merge
Purpose¶
The module Mask
masks the image of input one with the mask at input two.
Details¶
Possible output values are the original image of the first input, the original image of the second input, the masked original image, the masked original image on white background, the original image masked with the inverted mask or the original blended with the mask image.
The first input image must be of a scalar type for the three blending modes MaskOverOriginal, MaskInOriginal or InvMaskInOriginal. For all other modes the first input can also be of one of the default extended types: complex, vec2, vec3, vec6, mat2 or mat3.
The second input image must always be of a scalar type.
Parameter Fields¶
Visible Fields¶
Mode¶
-
name:
mode
, type:
Enum
, default:
MaskedOriginal
, deprecated name:
MaskMode
¶ Defines the masking algorithm.
Values:
Title | Name | Description |
---|---|---|
Original | Original | The original image from the first input is passed to the output. |
Mask | Mask | The original image from the second input is passed to the output. |
Inv Mask | InvMask | The image from the second input is inverted and passed to the output. |
Masked Original | MaskedOriginal | Original where Mask is non-zero and All pixels from the first input are passed unchanged to the output if non-zero values are found at their positions in the second input image. Otherwise |
Masked Original On White | MaskedOriginalOnWhite | All pixels from the first input are passed unchanged to the output if non-zero values are found at their positions in the second input image. Otherwise the images’ maximum value is passed to the output. |
Masked Original Inv | MaskedOriginalInv | Original where mask values are zero and background value elsewhere. All pixels from the first input are passed unchanged to the output if zero values are found at their positions in the second input image. Otherwise |
Mask Over Original | MaskOverOriginal | All mask pixels are blended with the original image with the given Blending weight. |
Mask In Original | MaskInOriginal | All non-zero mask pixels are blended with the original image with the given Original pixels at zero mask positions are not modified. |
Inv Mask In Original | InvMaskInOriginal | All pixels from the first input are passed unchanged to the output if non-zero values are found at their positions in the second input image. Otherwise the voxel from the first input is multiplied with |
Inv Original | InvOriginal | All pixels from the input image are subtracted from the image maximum and the image minimum is added. So the values are flipped between image minimum and image maximum value which leads to a visible inversion. |
Output Image Size¶
-
name:
outputImageSize
, type:
Enum
, default:
InvalidateOutputIfSizesDiffer
¶ Defines how the module reacts if the sizes of the input images differ.
Values:
Title | Name | Description |
---|---|---|
Use Smallest Input | UseSmallestInput | The image and the page extent of the smallest input image is used for the output image. |
Invalidate Output If Sizes Differ | InvalidateOutputIfSizesDiffer | If the image extents of the input images differ, the output image is invalidated. |