Transforms any gray-level or color image to a binary image using a static gray-level threshold.
- Input image
- Gray-level threshold. Every pixel with a gray level less than the threshold is regarded as background.
- Inversion flag. If this value is
true, inverts the result so that pixels whose gray level is less than level are regarded as foreground.
- Binary image. Background is zero, foreground one.