Histogram Equalization

Equalizes the histogram of a grayscale or color image, thereby normalizing the brightness and improving the contrast. The channel index to be equalized must be specified. The value -1 expects an RGB image, converts it to YCbCr, equalizes the Y channel and then converts the image back to RGB. If no RGB image is provided, automatic conversion takes place internally.
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
Channel Idx: (Optional) Index of the image channel to be equalized. -1 expects an RGB image, converts it to YCbCr, equalizes the Y channel and then converts back to RGB.
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.