Image math

Applies a mathematical operation to all pixels of the input image stack.

Description

Applies a mathematical operation to all pixels of the input image stack. Operations that can be performed are: Absolute, Add, Divide, Multiply, Square, Squareroot, Subtract

Parameters

ParameterDescription
Input imageImage from workspace to apply calculation to. This image can be of any bit depth.
Apply to input imageWhen selected, the post-operation image will overwrite the input image in the workspace. Otherwise, the image will be saved to the workspace with the name specified by the "Output image" parameter.
Output imageIf "Apply to input image" is not selected, the post-operation image will be saved to the workspace with this name.
Output 32-bit imageWhen enabled, the calculation will be performed on 32-bit float values. This is useful if the calculation is likely to create negative or decimal values. The output image will also be stored in the workspace as a 32-bit float image.
CalculationControls the mathematical operation being applied to all pixels of this image. Choices are: Absolute, Add, Divide, Multiply, Square, Squareroot, Subtract
Value sourceFor calculations that require a specific value (i.e. addition, subtraction, etc.) this parameter controls how the value is defined:
  • "Fixed value" A fixed value is specified using the "Value" parameter. This value is the same for all images processed by this module..
  • "Image measurement value" The value is taken from a measurement associated with the input image. Values obtained in this way can be different from image to image.
Image for measurementIf "Value source" is set to "Image measurement value", this is the image that the measurement will be taken from. It can be any image in the workspace, not necessarily the image to which the math operation is being applied.
MeasurementIf "Value source" is set to "Image measurement value", this is the measurement associated with the image specified by "Image for measurement" that will be used in the calculation.
ValueIf "Value source" is set to "Fixed value", this is the value that will be used in the calculation.