PreprocessingFilter

PreprocessingFilter class

Base class for image processing commands.

The PreprocessingFilter type exposes the following members:

Constructors

NameDescription
PreprocessingFilter()Initializes a new instance of the PreprocessingFilter class

Properties

NameDescription
defaultDefault filters collection contain AutoSkew filter
emptyEmpty filters collection

Methods

NameDescription
binarize()Converts an image to black-and-white image.
Binary images are images whose pixels have only two possible intensity values.
They are normally displayed as black and white. Numerically, the two values are often 0 for black, and 255 for white.
Binary images are produced by auto thresholding an image.
binarize(area)
resize(width, height, type)
resize(width, height)
dilate()Dilation adds pixels to the boundaries of objects in an image.
dilate(area)
invert()Automatically inverts colors in a document image.
invert(area)
rotate(angle)
rotate(angle, area)
scale(ratio)
scale(ratio, type)
threshold(value)
threshold(value, area)
median()The median filter run through each element of the image and replace each pixel with the median of its neighboring pixels.
median(area)
auto_denoising()Enables the use of an additional neural network to improve the image - reduce noise.
Useful for images with scan artifacts, distortion, spots, flares, gradients, foreign elements.
auto_denoising(area)
auto_skew()Enables the automatic image skew correction.
auto_skew(area)
contrast_correction_filter()Contrast correction filter.
contrast_correction_filter(area)
to_grayscale()Converts an image to grayscale image.
Grayscale image have 256 level of light in image (0 to 255).
auto_dewarping()Automatically corrects geometric distortions in the image.
Extremely resource intensive!
add(filter)Add the new filter to the collection to further run all operations.
Consistency in the collection matters.

See Also