public class PreprocessingFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static PreprocessingFilter |
Empty |
| Constructor and Description |
|---|
PreprocessingFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PreprocessingFilter filter)
Add the new filter to the collection to further run all operations.
|
static PreprocessingFilter |
AutoDenoising()
Enables the use of an additional neural network to improve the image - reduce noise.
|
static PreprocessingFilter |
AutoDenoising(Rectangle area)
Enables the use of an additional neural network to improve the part of the image - reduce noise.
|
static PreprocessingFilter |
AutoDewarping()
Automatically corrects geometric distortions in the image.
|
static PreprocessingFilter |
AutoSkew()
Enables the automatic image skew correction.
|
static PreprocessingFilter |
AutoSkew(Rectangle area)
Enables the automatic image part skew correction.
|
static PreprocessingFilter |
Binarize()
Converts an image to black-and-white image.
|
static PreprocessingFilter |
Binarize(Rectangle area)
Converts a part of the image to black-and-white image.
|
static PreprocessingFilter |
BinarizeAndDilate()
Dilation adds pixels to the boundaries of objects in an image.
|
static PreprocessingFilter |
BinarizeAndDilate(Rectangle area)
Dilation adds pixels to the boundaries of objects in a part of the image.
|
static PreprocessingFilter |
ContrastCorrection()
Contrast correction filter.
|
static PreprocessingFilter |
ContrastCorrection(Rectangle area)
Contrast correction filter for the part of the image.
|
static PreprocessingFilter |
Invert()
Automatically inverts colors in a document image.
|
static PreprocessingFilter |
Invert(Rectangle area)
Automatically inverts colors in a part of the image.
|
static PreprocessingFilter |
Median()
The median filter run through each element of the image and replace each pixel with the median of its neighboring pixels.
|
static PreprocessingFilter |
Median(Rectangle area)
The median filter run through each element of the part of the image and replace each pixel with the median of its neighboring pixels.
|
static PreprocessingFilter |
Resize(int width,
int height)
Rescale image - Upscale or downscale image resolution.
|
static PreprocessingFilter |
Resize(int width,
int height,
InterpolationFilterType type)
Rescale image - upscale or downscale image resolution.
|
static PreprocessingFilter |
Rotate(float angle)
Rotate original image.
|
static PreprocessingFilter |
Rotate(float angle,
Rectangle area)
Rotate the part of the image.
|
static PreprocessingFilter |
Scale(float ratio)
Rescale image - Upscale or downscale image resolution.
|
static PreprocessingFilter |
Scale(float ratio,
InterpolationFilterType type)
Rescale image - Upscale or downscale image resolution.
|
static PreprocessingFilter |
Threshold(int value)
Create a binary image based on setting a threshold value on the pixel intensity of the original image.
|
static PreprocessingFilter |
Threshold(int value,
Rectangle area)
Create a binary image part based on setting a threshold value on the pixel intensity of the original image part.
|
static PreprocessingFilter |
ToGrayscale()
Converts an image to grayscale image.
|
public static final PreprocessingFilter Empty
public static PreprocessingFilter Binarize()
public static PreprocessingFilter Binarize(Rectangle area)
area - Rectangle to preprocess.public static PreprocessingFilter Resize(int width, int height, InterpolationFilterType type)
width - The new width of the image.height - The new height of the image.type - InterpolationFilterType @see InterpolationFilterTypepublic static PreprocessingFilter Resize(int width, int height)
InterpolationFilterTypewidth - The new width of the image.height - The new height of the image.public static PreprocessingFilter BinarizeAndDilate()
public static PreprocessingFilter BinarizeAndDilate(Rectangle area)
area - Rectangle to preprocess.public static PreprocessingFilter Invert()
public static PreprocessingFilter Invert(Rectangle area)
area - Rectangle to preprocess.public static PreprocessingFilter Rotate(float angle)
angle - Angle of rotation. Value from -360 to 360.public static PreprocessingFilter Rotate(float angle, Rectangle area)
angle - Angle of rotation. Value from -360 to 360.area - Rectangle to preprocess.public static PreprocessingFilter Scale(float ratio)
InterpolationFilterTyperatio - The scaling factor. Recommended value from 0.1 to 1 to shrink. From 1 to 10 to enlarge.public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)
ratio - The scaling factor. Recommended value from 0.1 to 1 to shrink. From 1 to 10 to enlarge.type - InterpolationFilterType @see InterpolationFilterTypepublic static PreprocessingFilter ToGrayscale()
public static PreprocessingFilter Threshold(int value)
value - The max value.public static PreprocessingFilter Threshold(int value, Rectangle area)
value - The max value.area - Rectangle to preprocess.public static PreprocessingFilter Median()
public static PreprocessingFilter Median(Rectangle area)
area - Rectangle to preprocess.public static PreprocessingFilter AutoDenoising()
public static PreprocessingFilter AutoDewarping()
public static PreprocessingFilter AutoDenoising(Rectangle area)
area - Rectangle to preprocess.public static PreprocessingFilter AutoSkew()
public static PreprocessingFilter AutoSkew(Rectangle area)
area - Rectangle to preprocess.public static PreprocessingFilter ContrastCorrection()
public static PreprocessingFilter ContrastCorrection(Rectangle area)
area - Rectangle to preprocess.public void add(PreprocessingFilter filter)
filter - New operation to add to filter list.Copyright © 2025 Aspose. All rights reserved.