Class ImageProcessing
Provides managed wrappers around the native image processing pipeline, exposing document correction and binarization helpers.
public class ImageProcessing : IDisposable
Method
CorrectDocument(MetaImage, Corners)
Performs perspective correction using detected document corners.
public MetaImage CorrectDocument(MetaImage sourceBitmap, Corners corners)
DetectDocumentCorners(MetaImage)
Detects document corners for the supplied image.
public Corners DetectDocumentCorners(MetaImage sourceBitmap)
Dispose()
Disposes of native resources retained by the processing instance. No-op because the wrapper does not own handles.
public void Dispose()
ImageBWBinarization(MetaImage)
Produces a high-contrast black-and-white rendition of the supplied image.
public MetaImage ImageBWBinarization(MetaImage sourceBitmap)
ImageColorBinarization(MetaImage)
Produces a color-enhanced binarised copy suitable for preserving highlights in colour documents.
public MetaImage ImageColorBinarization(MetaImage sourceBitmap)
ImageGrayBinarization(MetaImage)
Produces a grayscale binarised copy that retains tonal detail while enhancing readability.
public MetaImage ImageGrayBinarization(MetaImage sourceBitmap)
ImageOriginal(MetaImage)
Applies orientation compensation to the provided MetaImage and returns a refined copy.
public MetaImage ImageOriginal(MetaImage sourceBitmap)
ImageWithoutRotation(MetaImage)
Returns the original image without applying additional rotation (legacy helper).
[Obsolete("Deprecated")]
public MetaImage ImageWithoutRotation(MetaImage sourceBitmap)
SupportImageSize(PxlPoint)
Returns the supplied size unchanged. Kept for API compatibility with legacy platforms.
public PxlPoint SupportImageSize(PxlPoint imageSize)