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
getBinarizationThreshold()Gets or sets threshold value for fixed threshold binarization method.
setBinarizationThreshold(int value)Gets or sets threshold value for fixed threshold binarization method.
getBinarizationMethod()Gets or sets the binarization method.
setBinarizationMethod(int value)Gets or sets the binarization method.

ImageBinarizationOptions()

public ImageBinarizationOptions()

Initializes a new instance of the ImageBinarizationOptions class.

getBinarizationThreshold()

public final int getBinarizationThreshold()

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

Returns: int

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

getBinarizationMethod()

public final int getBinarizationMethod()

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

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