Class AdaptiveThresholdExtensions
Extensions to perform AdaptiveThreshold through Mutator.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class AdaptiveThresholdExtensions
Methods
| Edit this page 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 current image processing context. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
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 current image processing context. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
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 current image processing context. |
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 |
AdaptiveThreshold(IImageProcessingContext, Color, Color, float)
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 current image processing context. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
float | thresholdLimit | Threshold limit (0.0-1.0) to consider for binarization. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
AdaptiveThreshold(IImageProcessingContext, Color, Color, float, 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 current image processing context. |
Color | upper | Upper (white) color for thresholding. |
Color | lower | Lower (black) color for thresholding. |
float | thresholdLimit | Threshold limit (0.0-1.0) to consider for binarization. |
Rectangle | rectangle | Rectangle region to apply the processor on. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
AdaptiveThreshold(IImageProcessingContext, float)
Applies Bradley Adaptive Threshold to the image.
Declaration
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, float thresholdLimit)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
float | thresholdLimit | Threshold limit (0.0-1.0) to consider for binarization. |
Returns
Type | Description |
---|---|
IImageProcessingContext |