Class AdaptiveThresholdProcessor
Performs Bradley Adaptive Threshold filter against an image.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Binarization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class AdaptiveThresholdProcessor : IImageProcessor
Remarks
Implements "Adaptive Thresholding Using the Integral Image", see paper: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.420.7883&rep=rep1&type=pdf
Constructors
| Improve this Doc View SourceAdaptiveThresholdProcessor()
Initializes a new instance of the AdaptiveThresholdProcessor class.
Declaration
public AdaptiveThresholdProcessor()
AdaptiveThresholdProcessor(Color, Color)
Initializes a new instance of the AdaptiveThresholdProcessor class.
Declaration
public AdaptiveThresholdProcessor(Color upper, Color lower)
Parameters
Type | Name | Description |
---|---|---|
Color | upper | Color for upper threshold. |
Color | lower | Color for lower threshold. |
AdaptiveThresholdProcessor(Color, Color, Single)
Initializes a new instance of the AdaptiveThresholdProcessor class.
Declaration
public AdaptiveThresholdProcessor(Color upper, Color lower, float thresholdLimit)
Parameters
Type | Name | Description |
---|---|---|
Color | upper | Color for upper threshold. |
Color | lower | Color for lower threshold. |
Single | thresholdLimit | Threshold limit. |
AdaptiveThresholdProcessor(Single)
Initializes a new instance of the AdaptiveThresholdProcessor class.
Declaration
public AdaptiveThresholdProcessor(float thresholdLimit)
Parameters
Type | Name | Description |
---|---|---|
Single | thresholdLimit | Threshold limit. |
Properties
| Improve this Doc View SourceLower
Gets or sets lower color limit for threshold.
Declaration
public Color Lower { get; set; }
Property Value
Type | Description |
---|---|
Color |
ThresholdLimit
Gets or sets the value for threshold limit.
Declaration
public float ThresholdLimit { get; set; }
Property Value
Type | Description |
---|---|
Single |
Upper
Gets or sets upper color limit for thresholding.
Declaration
public Color Upper { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
Image<TPixel> | source | The source image. Cannot be null. |
Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
Type | Description |
---|---|
IImageProcessor<TPixel> |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |