Class AdaptiveThresholdFilter
A filter to applied the Bradley Adaptive Threshold to the image.
Inheritance
Implements
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, Rectangle)
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, Rectangle 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.Rectangle | 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 Rectangle Rectangle { get; set; }
Property Value
Type | Description |
---|---|
IronSoftware.Drawing.Rectangle |
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 |