Invert Image Color

Inverts the color of an image. In the case of signed integers or negative floating point values, only the sign is reversed. If the image contains only positive floating point values, each pixel value is subtracted from the maximum available pixel value or from 1.0, whichever is greater.
Optionally, a Boolean signal can be selected for the Enable Execution input so that the algorithm is only active if the value of the selected signal is TRUE.
Configuration options
- Max Value: Maximum pixel value if, for example, a 16 bit image contains 12 bit values. -1 uses the default values.
Output values
- Count Results: Is incremented when a new result is provided.
- hr: HRESULT error code that outputs the result of the processing.
- Image: Initial image of the algorithm.
- New Result: (Optional) TRUE if a new result is provided.