ImageBinarizationOptions

Inheritance: java.lang.Object

public class ImageBinarizationOptions

Options for image’s binarization.

Constructors

ConstructorDescription
ImageBinarizationOptions()Initializes a new instance of the ImageBinarizationOptions class.

Methods

MethodDescription
getBinarizationMethod()Gets or sets the binarization method.
getBinarizationThreshold()Gets or sets threshold value for fixed threshold binarization method.
setBinarizationMethod(int value)Gets or sets the binarization method.
setBinarizationThreshold(int value)Gets or sets threshold value for fixed threshold binarization method.

ImageBinarizationOptions()

public ImageBinarizationOptions()

Initializes a new instance of the ImageBinarizationOptions class.

getBinarizationMethod()

public final int getBinarizationMethod()

Gets or sets the binarization method. The default value is BinarizationMethod.FixedThreshold.

Returns: int

getBinarizationThreshold()

public final int getBinarizationThreshold()

Gets or sets threshold value for fixed threshold binarization method. The default value is 128.

Returns: int

setBinarizationMethod(int value)

public final void setBinarizationMethod(int value)

Gets or sets the binarization method. The default value is BinarizationMethod.FixedThreshold.

Parameters:

ParameterTypeDescription
valueint

setBinarizationThreshold(int value)

public final void setBinarizationThreshold(int value)

Gets or sets threshold value for fixed threshold binarization method. The default value is 128.

Parameters:

ParameterTypeDescription
valueint