Binarize Method of the ImageProcessingTools Object
This method converts an image to black and white.
Syntax
Visual Basic .NET
Function Binarize( _ Image As Image, _ Mode As BinarizationModeEnum, _ IsPhoto As Boolean, _ SmoothTexture As Boolean, _ Threshold As Integer _ ) As Image
C++
HRESULT Binarize(
IImage* Image,
BinarizationModeEnum Mode,
VARIANT_BOOL IsPhoto,
VARIANT_BOOL SmoothTexture,
int Threshold,
IImage** Result
);
Parameters
- Image
- [in] This variable refers to the Image object which is to be binarized.
- Mode
- [in] Specifies the mode of binarization. See the description of the BinarizationModeEnum constants.
- IsPhoto
- [in] Specifies whether the image is a photo. The value of this parameter can be TRUE, only if the value of the mode parameter is BM_Default or BM_Version9.
- SmoothTexture
- [in] Specifies whether a texture should be smoothed during binarization. The value of this parameter can be TRUE, only if the value of the mode parameter is BM_Default.
- Threshold
- [in] Specifies the threshold for binarization. The parameter is only used if the mode of binarization is BM_ByThreshold. By default, the value of this parameter is 0.
- Result
- [out, retval] A pointer to the IImage* pointer variable that provides access to the black-and-white image.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
See also
15.08.2023 13:19:30