Search Results for

    Show / Hide Table of Contents

    Class BinaryThresholdFilter

    A filter to applied the binarization to the image splitting the pixels at the given threshold with Luminance as the color component to be compared to threshold.

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

    Constructors

    BinaryThresholdFilter()

    Initializes a new instance of the BinaryThresholdFilter class.

    Declaration
    public BinaryThresholdFilter()

    BinaryThresholdFilter(Color, Color, Single)

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

    Declaration
    public BinaryThresholdFilter(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.

    BinaryThresholdFilter(Color, Color, Single, CropRectangle)

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

    Declaration
    public BinaryThresholdFilter(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.

    BinaryThresholdFilter(Single)

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

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

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

    Properties

    Lower

    The color to use for pixels that are below the threshold.

    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

    The threshold to apply binarization of the image. Must be between 0 and 1. Default = 0.4.

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

    Upper

    The color to use for pixels that are above the threshold.

    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.