Back to module list
Image math
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
- Input image (default = "") Image from workspace to apply calculation to. This image can be of any bit depth.
- Apply to input image (default = "true") When 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 image (default = "") If "Apply to input image" is not selected, the post-operation image will be saved to the workspace with this name.
- Calculation (default = "Add") Controls the mathematical operation being applied to all pixels of this image. Choices are: Absolute, Add, Divide, Multiply, Square, Squareroot, Subtract
- Value source (default = "Fixed value") For 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..
- "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.
- Measurement (default = "") If "Value source" is set to "Measurement value", this is the measurement associated with the input image that will be used in the calculation.
- Value (default = "1.0") If "Value source" is set to "Fixed value", this is the value that will be used in the calculation.