public class AdaptiveBinarizer extends Object implements IImagePreprocessor
Performs the adaptive image binarization.
| Constructor and Description |
|---|
AdaptiveBinarizer()
Initializes a new instance of the AdaptiveBinarizer class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOffset()
Gets or sets the value to subtract from mean of the window to define the binarization threshold.
|
int |
getWindowSize()
Gets or sets window size.
|
byte[] |
preprocess(byte[] image,
int width,
int height)
Processes the image bytes representing as array in B, G, R order.
|
void |
setOffset(int value)
Gets or sets the value to subtract from mean of the window to define the binarization threshold.
|
void |
setWindowSize(int value)
Gets or sets window size.
|
public AdaptiveBinarizer()
Initializes a new instance of the AdaptiveBinarizer class.
public final int getWindowSize()
Gets or sets window size.
public final void setWindowSize(int value)
Gets or sets window size.
public final int getOffset()
Gets or sets the value to subtract from mean of the window to define the binarization threshold.
public final void setOffset(int value)
Gets or sets the value to subtract from mean of the window to define the binarization threshold.
public final byte[] preprocess(byte[] image,
int width,
int height)
Processes the image bytes representing as array in B, G, R order.
preprocess in interface IImagePreprocessorimageData - Image data.width - Width of the image.height - Height of the image.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.