Skip to content

Color Threshold

The Color Threshold node applies a threshold filter to an image. Given a Threshold numerical value, it sets the value of each channel either to 0 (minimum value) or 1 (maximum value) depending whether the same channel in the input image has a value that is smaller or larger than the given Threshold.

Inputs and Outputs

Inputs:

  • Image (Image): The input image.
  • Threshold (Float): The threshold value. If a give channel of the input image has a value that is smaller than the threshold, it gets set to 0 in the output image. Otherwise, it gets set to its maximum value, 1.

Outputs:

  • Output (Image): The output image.

Example

Here is a small example of this node in action: