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)Converts a part of the 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.
resize(width, height, type)Rescale image - Upscale or downscale image resolution.
resize(width, height)Rescale image - Upscale or downscale image resolution.
dilate()Dilation adds pixels to the boundaries of objects in an image.
dilate(area)Dilation adds pixels to the boundaries of objects in a part of the image.
invert()Automatically inverts colors in a document image.
invert(area)Automatically inverts colors in a part of the image.
rotate(angle)Rotate original image.
rotate(angle, area)Rotate a part of the image.
scale(ratio)Rescale image - Upscale or downscale image resolution.
InterpolationFilterType = Lanczos8
scale(ratio, type)Rescale image - Upscale or downscale image resolution.
threshold(value)Create a binary image based on setting a threshold value on the pixel intensity of the original image.
threshold(value, area)Create a binary part of the image based on setting a threshold value on the pixel intensity of the original image part.
median()The median filter run through each element of the image and replace each pixel with the median of its neighboring pixels.
median(area)The median filter run through each element of the image part and replace each pixel with the median of its neighboring pixels.
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)Enables the use of an additional neural network to improve the image part - reduce noise.
Useful for images with scan artifacts, distortion, spots, flares, gradients, foreign elements.
auto_skew()Enables the automatic image skew correction.
auto_skew(area)Enables the automatic image part skew correction.
contrast_correction_filter()Contrast correction filter.
contrast_correction_filter(area)Contrast correction filter for the part of the image.
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