🟠 Image Binarization
Function Description
This operator is used to convert input grayscale images to binary images (i.e., images containing only black and white pixels). Through set thresholds and methods, pixels in the image are divided based on their grayscale values, with some pixels becoming pure white (pixel value 255) and others becoming pure black (pixel value 0), thereby highlighting image contours or specific regions.
Usage Scenarios
-
Image simplification and preprocessing: Serves as a preprocessing step for subsequent complex algorithms, reducing computational load and excluding unimportant background information.
-
Target segmentation: When target objects have obvious grayscale differences from the background, binarization can quickly separate targets from background, generating mask images.
Input Output
Input |
Grayscale image: Single-channel grayscale image to be processed. |
Output |
Mask image: Mask image generated after binarization processing, which is a single-channel binary image. |
Parameter Description
Binarization Method
Parameter Description |
Select the specific algorithm used when performing binarization. |
Parameter Adjustment |
|
Binarization Threshold
Parameter Description |
Sets a grayscale value boundary line used to judge whether each pixel should become black or white. Available when selecting "Standard binarization" and "Inverse binarization" methods. |
Parameter Adjustment |
|
Parameter Range |
[0,255], default value: 120 |