PreviousNext

Operator Set to MASKSHIFT

When Operator is set to MASKSHIFT, MaskShiftSetup is inserted into the Job by the ImageArith Tool. MaskShiftSetup allows you to specify a mask value to bitwise-operate on each pixel. The MaskShiftSetup property page is shown in Figure 13-9.

FIGURE 13-9. 

MaskShiftSetup Properties Page

  • Mask Operator - There are two options, OR and AND. Perform bitwise AND or OR operation on the pixels from the two input ROIs.
  • C = a&b for AND
  • C = a|b for OR
  • C = a^b for XOR

Both input images are unsigned. Clip Input Overflow is provided. Arithmetic-operated image is as unsigned.

  • Mask - Denotes the mask value.
  • Shift - Denotes the number of shifts:

Left Shift - Negative entry in the Shift field.

Right shift - Positive entry in the Shift field.

Range: -7 to 7

The shift operation multiplies (left shift) or divides (right shift) the masked result by 2 the number of shift times.

For example:

  • C = (a & mask) »shift for mask AND and right shift
  • C = (a | mask) »shift for mask OR and right shift
  • C = (a & mask) «shift for mask AND and left shift
  • C = (a | mask) «shift for mask OR and left shift

PreviousNext