PreprocessingFilter

PreprocessingFilter class

Base class for image processing commands.

Base class for image processing commands.

public class PreprocessingFilter : IEnumerable

Constructors

NameDescription
PreprocessingFilter()The default constructor.

Properties

NameDescription
static Default { get; }Default filters collection contain AutoSkew filter
static Empty { get; }Empty filters collection

Methods

NameDescription
static AutoDenoising()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.
static AutoDenoising(Rectangle)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.
static AutoDewarping()Automatically corrects geometric distortions in the image. Extremely resource intensive!
static AutoSkew()Enables the automatic image skew correction.
static AutoSkew(Rectangle)Enables the automatic image part skew correction.
static 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.
static Binarize(Rectangle)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.
static ContrastCorrectionFilter()Contrast correction filter.
static ContrastCorrectionFilter(Rectangle)Contrast correction filter for the part of the image.
static Dilate()Dilation adds pixels to the boundaries of objects in an image.
static Dilate(Rectangle)Dilation adds pixels to the boundaries of objects in a part of the image.
static Invert()Automatically inverts colors in a document image.
static Invert(Rectangle)Automatically inverts colors in a part of the image.
static Median()The median filter run through each element of the image and replace each pixel with the median of its neighboring pixels.
static Median(Rectangle)The median filter run through each element of the image part and replace each pixel with the median of its neighboring pixels.
static Resize(int, int)Rescale image - Upscale or downscale image resolution. InterpolationFilterType = Lanczos8
static Resize(int, int, InterpolationFilterType)Rescale image - Upscale or downscale image resolution.
static Rotate(float)Rotate original image.
static Rotate(float, Rectangle)Rotate a part of the image.
static Scale(float)Rescale image - Upscale or downscale image resolution. InterpolationFilterType = Lanczos8
static Scale(float, InterpolationFilterType)Rescale image - Upscale or downscale image resolution.
static Threshold(int)Create a binary image based on setting a threshold value on the pixel intensity of the original image.
static Threshold(int, Rectangle)Create a binary part of the image based on setting a threshold value on the pixel intensity of the original image part.
static ToGrayscale()Converts an image to grayscale image. Grayscale image have 256 level of light in image (0 to 255).
Add(PreprocessingFilter)Add the new filter to the collection to further run all operations. Consistency in the collection matters.
GetEnumerator()For IEnumarable interface realization.

See Also