Search Results for

    Show / Hide Table of Contents

    Class AdaptiveThresholdFilter

    A filter to applied the Bradley Adaptive Threshold to the image.

    Inheritance
    System.Object
    AdaptiveThresholdFilter
    Implements
    IImageFilter
    Namespace: IronBarCode
    Assembly: IronBarCode.dll
    Syntax
    public class AdaptiveThresholdFilter : Object, IImageFilter

    Constructors

    AdaptiveThresholdFilter()

    Initializes a new instance of the AdaptiveThresholdFilter class.

    Declaration
    public AdaptiveThresholdFilter()

    AdaptiveThresholdFilter(Color, Color, Single)

    Initializes a new instance of the AdaptiveThresholdFilter class with the specified Upper, Lower and Threshold.

    Declaration
    public AdaptiveThresholdFilter(Color Upper, Color Lower, float Threshold)
    Parameters
    Type Name Description
    IronSoftware.Drawing.Color Upper

    Upper (white) color for thresholding.

    IronSoftware.Drawing.Color Lower

    Lower (black) color for thresholding.

    System.Single Threshold

    Threshold limit (0.0-1.0) to consider for binarization.

    AdaptiveThresholdFilter(Color, Color, Single, CropRectangle)

    Initializes a new instance of the AdaptiveThresholdFilter class with the specified Upper, Lower, Threshold and Rectangle.

    Declaration
    public AdaptiveThresholdFilter(Color Upper, Color Lower, float Threshold, CropRectangle Rectangle)
    Parameters
    Type Name Description
    IronSoftware.Drawing.Color Upper

    Upper (white) color for thresholding.

    IronSoftware.Drawing.Color Lower

    Lower (black) color for thresholding.

    System.Single Threshold

    Threshold limit (0.0-1.0) to consider for binarization.

    IronSoftware.Drawing.CropRectangle Rectangle

    Rectangle region to apply the processor on.

    AdaptiveThresholdFilter(Single)

    Initializes a new instance of the AdaptiveThresholdFilter class with the specified Threshold.

    Declaration
    public AdaptiveThresholdFilter(float Threshold)
    Parameters
    Type Name Description
    System.Single Threshold

    Threshold limit (0.0-1.0) to consider for binarization.

    Properties

    Lower

    Lower (black) color for thresholding.

    Declaration
    public Color Lower { get; set; }
    Property Value
    Type Description
    IronSoftware.Drawing.Color

    Rectangle

    Rectangle region to apply the processor on.

    Declaration
    public CropRectangle Rectangle { get; set; }
    Property Value
    Type Description
    IronSoftware.Drawing.CropRectangle

    Threshold

    Threshold limit (0.0-1.0) to consider for binarization. Default = 0.4.

    Declaration
    public float Threshold { get; set; }
    Property Value
    Type Description
    System.Single

    Upper

    Upper (white) color for thresholding.

    Declaration
    public Color Upper { get; set; }
    Property Value
    Type Description
    IronSoftware.Drawing.Color

    Implements

    IImageFilter
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronBarcode to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronBarcode free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.