Image Binarization
Function: Performs binarization processing on the input image.
Input Parameters:
Name | Type | Valid Range | Default Value | Meaning |
---|---|---|---|---|
Grayscale |
MonoImage |
None |
None |
Single-channel grayscale chart. |
Output Parameters:
Name | Type | Valid Range | Default Value | Meaning |
---|---|---|---|---|
Mask image |
BinaryImage |
None |
None |
Single channel image after binarization. |
Parameter Settings:
Name | Type | Valid Range | Default Value | Meaning |
---|---|---|---|---|
Binarization threshold |
Integer |
[0, 255] |
120 |
Binarization threshold. |
Binarization method |
String |
['Binary', 'BinaryInv', 'BinaryOTSU', 'BinaryTriangle'] |
Binary |
Binary is standard binarization, the prime value is greater than or equal to the threshold value will be set to 255, less than the threshold value is set to 0; BinaryInv is reverse binarization, the pixel value is greater than or equal to the threshold value is set to 0, less than the threshold value is set to 255; BinaryOTSU is Ozu method, adaptive threshold, this method will automatically calculate the best threshold (by maximizing the variance between classes to select the threshold); BinaryTriangle is a triangle rule to calculate the best threshold. |