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).


  • image: Input image

  • lowLevel: Thresholding lower limit (inclusive)

  • highLevel: Thresholding upper limit (inclusive)

  • invert: Inverts the result if this flag is set to true.


  • image: Binary image