Search Results for

    Show / Hide Table of Contents

    Class BinarizationMethod

    Methods for binarizing images.

    Inheritance
    System.Object
    BinarizationMethod
    Namespace: IronBarCode.Internals
    Assembly: IronBarCode.dll
    Syntax
    public sealed class BinarizationMethod : Enum

    BinarizationMethod selects how IronBarcode converts a grayscale image to black and white before reading, which sharpens the contrast a decoder relies on. It is set on BinaryThresholdFilter.BinarizationMethod or passed to that filter's constructor. Otsu computes a threshold from the image histogram and adapts to uneven lighting, while Simple applies a fixed threshold value for fast, predictable results on clean scans. The image orientation correction how-to covers preprocessing filters.

    var filter = new BinaryThresholdFilter(BinarizationMethod.Otsu);

    Fields

    Otsu

    Otsu's method for binarization.

    Declaration
    public const BinarizationMethod Otsu
    Field Value
    Type Description
    BinarizationMethod

    Simple

    Simple binarization based on a threshold value.

    Declaration
    public const BinarizationMethod Simple
    Field Value
    Type Description
    BinarizationMethod

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget