Class AdaptiveThresholdFilter
A filter to apply adaptive thresholding to an 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.
Declaration
public AdaptiveThresholdFilter(Color upper, Color lower, float threshold)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IronSoftware.Drawing.Color | upper | The color to use for pixels that are above the threshold.  | 
      
| IronSoftware.Drawing.Color | lower | The color to use for pixels that are below the threshold.  | 
      
| System.Single | threshold | Threshold limit (0.0-1.0) to consider for binarization.  | 
      
AdaptiveThresholdFilter(Single)
Initializes a new instance of the AdaptiveThresholdFilter class.
Declaration
public AdaptiveThresholdFilter(float threshold)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | threshold | Threshold limit (0.0-1.0) to consider for binarization.  | 
      
AdaptiveThresholdFilter(Single, Color, Color, Rectangle)
Initializes a new instance of the AdaptiveThresholdFilter class.
Declaration
public AdaptiveThresholdFilter(float threshold, Color upper, Color lower, Rectangle rectangle)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | threshold | Threshold limit (0.0-1.0) to consider for binarization.  | 
      
| IronSoftware.Drawing.Color | upper | The color to use for pixels that are above the threshold.  | 
      
| IronSoftware.Drawing.Color | lower | The color to use for pixels that are below the threshold.  | 
      
| IronSoftware.Drawing.Rectangle | rectangle | Rectangular region to apply the threshold.  | 
      
AdaptiveThresholdFilter(Single, Rectangle)
Initializes a new instance of the AdaptiveThresholdFilter class.
Declaration
public AdaptiveThresholdFilter(float threshold, Rectangle rectangle)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | threshold | Threshold limit (0.0-1.0) to consider for binarization.  | 
      
| IronSoftware.Drawing.Rectangle | rectangle | Rectangular region to apply the adaptive threshold.  | 
      
Properties
Lower
The color to use for pixels that are below the threshold. Default = Black.
Declaration
public Color Lower { get; set; }
  Property Value
| Type | Description | 
|---|---|
| IronSoftware.Drawing.Color | 
Rectangle
Rectangle region to apply the filter 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 = 1.0.
Declaration
public float Threshold { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Single | 
Upper
The color to use for pixels that are above the threshold. Default = White.
Declaration
public Color Upper { get; set; }
  Property Value
| Type | Description | 
|---|---|
| IronSoftware.Drawing.Color |