BitMaskConvert

MLModule
genre Image
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLFilter2
definition mlFilter2.def
see also BitConvert
keywords invert, value, and, or, xor, exclusive

Purpose

The module BitConvert sets or disables bit planes of an input image by using the Boolean operators AND, OR and XOR.

If an optional mask image is attached, the bit operation is only performed on a voxel if the according mask voxel’s value is unequal 0.

Windows

Default Panel

../../../Modules/ML/MLFilter2/mhelp/Images/Screenshots/BitMaskConvert._default.png

Input Fields

input0

name: input0, type: Image

Original scalar input image.

input1

name: input1, type: Image

Optional mask image.

Output Fields

output0

name: output0, type: Image

Bit-manipulated scalar image.

Parameter Fields

Field Index

0-7: Bool Apply: Trigger Set All: Trigger
16-23: Bool Auto apply: Bool  
24-31: Bool bitSize16: Bool  
32-39: Bool bitSize32: Bool  
40-47: Bool bitSize64: Bool  
48-55: Bool bitSize8: Bool  
56-63: Bool Clear All: Trigger  
8-15: Bool Mode: Enum  

Visible Fields

Clear All

name: clearAll, type: Trigger

If pressed, all bit fields are set to false.

Set All

name: setAll, type: Trigger

If pressed, all bit fields are set to true.

Apply

name: submit, type: Trigger

If pressed, the output image is computed anew.

Mode

name: mode, type: Enum, default: AND

Sets the computation mode.

Values:

Title Name
And AND
Or OR
Xor XOR

0-7

name: bit00, type: Bool, default: FALSE

Available if the input is a 8, 16, 32 or 64 bit image.

8-15

name: bit08, type: Bool, default: FALSE

Available if the input is a 16, 32 or 64 bit image.

16-23

name: bit16, type: Bool, default: FALSE

Available if the input is a 32 or 64 bit image.

24-31

name: bit24, type: Bool, default: FALSE

Available if the input is a 32 or 64 bit image.

32-39

name: bit32, type: Bool, default: FALSE

Available if the input is a 64 bit image.

40-47

name: bit40, type: Bool, default: FALSE

Available if the input is a 64 bit image.

48-55

name: bit48, type: Bool, default: FALSE

Available if the input is a 64 bit image.

56-63

name: bit56, type: Bool, default: FALSE

Available if the input is a 64 bit image.

Auto apply

name: autoApply, type: Bool, default: TRUE

If checked, all changes to any field lead to a new computation.

Hidden Fields

bitSize8

name: bitSize8, type: Bool, default: FALSE

bitSize16

name: bitSize16, type: Bool, default: FALSE

bitSize32

name: bitSize32, type: Bool, default: FALSE

bitSize64

name: bitSize64, type: Bool, default: FALSE