Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The ThresholdMask node converts a mask to a binary mask by applying a threshold value. It compares each pixel in the input mask against the specified threshold value and creates a new mask where pixels above the threshold become 1 (white) and pixels below or equal to the threshold become 0 (black).

Inputs

ParameterData TypeRequiredRangeDescription
maskMASKYes-The input mask to be processed
valueFLOATYes0.0 - 1.0The threshold value for binarization (default: 0.5)

Outputs

Output NameData TypeDescription
maskMASKThe resulting binary mask after thresholding