Image Binarization
Description
This operator is used to convert an input grayscale image into a binary image (i.e., an image containing only black and white pixels). By setting a threshold and method, pixels in the image are classified based on their grayscale values; some pixels become pure white (pixel value 255), and others become pure black (pixel value 0), thereby highlighting the image contours or specific regions.
Scenarios
-
Image simplification and preprocessing: As a preprocessing step for subsequent complex algorithms, reducing computational load and excluding unimportant background information.
-
Object segmentation: When there is a distinct grayscale difference between the target object and the background, binarization can quickly separate the target from the background to generate a mask image.
Inputs and Outputs
Inputs |
Grayscale image: The single-channel grayscale image to be processed. |
Outputs |
Mask image: The mask image generated after binarization processing, which is a single-channel binary image. |
Parameters
Binarization Threshold
Description |
Sets a grayscale threshold used to determine whether each pixel should become black or white. Available when |
Standard Binarization |
or |
Inverted Binarization |
is selected as the binarization method. |
Tuning Instructions |
|
Parameter Range |
[0, 255], default value: 120 |
Parameter Range |
Values/Range: [0, 255] Default: 120 |
Binarization Method
Description |
Selects the specific algorithm used to perform binarization. |
Tuning Instructions |
|
Parameter Range |
Values/Range:
Default: Standard Binarization |