ovl.thresholds.binary_threshold module¶
-
class
ovl.thresholds.binary_threshold.
BinaryThreshold
(threshold: int = None, upper_bound: int = None, threshold_type: Union[ovl.thresholds.binary_threshold.BinaryThresholdType, int] = <BinaryThresholdType.Binary: 0>, otsu=False)[source]¶ Bases:
ovl.thresholds.threshold.Threshold
Creates binary image (masks) from greyscale images (black and white images) The basic Binary Thresholding turns all pixels that are greater or equal to the threshold parameter and smaller or equal to the parameter upper_bound
For more information about the algorithms used: https://docs.opencv.org/trunk/d7/d4d/tutorial_py_thresholding.html