Class AdaptiveThresholdExtensions
Extensions to perform AdaptiveThreshold through Mutator.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class AdaptiveThresholdExtensions
Methods
| Improve this Doc View SourceAdaptiveThreshold(IImageProcessingContext)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The Image<TPixel>. |
AdaptiveThreshold(IImageProcessingContext, Color, Color)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The Image<TPixel>. |
AdaptiveThreshold(IImageProcessingContext, Color, Color, Rectangle)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
Rectangle | rectangle | Rectangle region to apply the processor on. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The Image<TPixel>. |
AdaptiveThreshold(IImageProcessingContext, Color, Color, Single)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower, float thresholdLimit)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
Single | thresholdLimit | Threshold limit (0.0-1.0) to consider for binarization. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The Image<TPixel>. |
AdaptiveThreshold(IImageProcessingContext, Color, Color, Single, Rectangle)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower, float thresholdLimit, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
Single | thresholdLimit | Threshold limit (0.0-1.0) to consider for binarization. |
Rectangle | rectangle | Rectangle region to apply the processor on. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The Image<TPixel>. |
AdaptiveThreshold(IImageProcessingContext, Single)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, float thresholdLimit)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Single | thresholdLimit | Threshold limit (0.0-1.0) to consider for binarization. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The Image<TPixel>. |