Image Math
The Image Math command applies a pixel-wise mathematical operation between the current pipeline image and a second image. The second image can come from a specific image channel or from a previously cached image.
Parameters
| Parameter | Description |
|---|---|
| Operand | The mathematical operation to apply (Add, Subtract, Multiply, Divide, Min, Max, And, Or, …) |
| Second image address | Channel and plane of the second operand |
| Swap operands | If enabled, the second image is used as the first operand of the operation |
Second Image Source
The second image is specified by an ImageAddress:
- Image channel — loads the specified channel/Z/T plane from the current image file.
- From cache — loads an image previously stored by an Image Cache step.
When loading from cache, the image channel settings are ignored.
When to use
Common uses:
- Subtract a background channel from a signal channel.
- Add or Multiply to amplify co-stained regions.
- Min/Max to create composite masks from multiple channels.