The ImageArithmetics operator provides simple mathematical operations on images.
The operator differentiates between operations taking two input images, one input image and one scalar input as well as a single image only. All operations are elementwise, i.e. per pixel.
The following operations require that the first and second input image are specified. These images have to be of equal size.
The value of arithmetic operation can be chosen from:
ADD: Sum of pixel values
SUB: Subtraction of pixel values (input1 - input2)
MULT: Multiplication of pixel values
DIV: Division of pixel values (input1 / input2)
MIN: Minimum of pixel values
MAX: Maximum of pixel values
AND: Logical AND of pixel values. Pixel values are interpreted as binary, i.e. value > 0 is interpreted as 1!!
OR: Logical OR of pixel values. Note that pixel values are interpreted as binary, i.e. value > 0 is interpreted as 1!!
ABS DIFF: Absolute difference of pixel values
The following operations require that the first input image is specified together with a scalar value for input constant.
The value of arithmetic operation can be chosen from:
ADD_CONST: Adds the constant to each pixel
MULT_CONST: Multiplies each pixel with the constant
POW_CONST: Raise each pixel to the power of the constant
The following operations require that the first input image is specified.
The value of arithmetic operation can be chosen from:
INV: Invert pixel values
ABS: Absolute value of pixel values