Binarize with limits

Binarize with limits

Transforms any gray-level image to a binary image. A pixel's value is set to one if its value is between lowLevel and highLevel (inclusive).

Inputs

image
Input image
lowLevel
Thresholding lower limit (inclusive)
highLevel
Thresholding upper limit (inclusive)
invert
Inverts the result if this flag is set to true.

Outputs

image
Binary image