Class AdaptiveThresholdExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Extensions to perform AdaptiveThreshold through Mutator.
public static class AdaptiveThresholdExtensions
- Inheritance
-
AdaptiveThresholdExtensions
- Inherited Members
Methods
AdaptiveThreshold(IImageProcessingContext)
Applies Bradley Adaptive Threshold to the image.
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source)
Parameters
sourceIImageProcessingContextThe current image processing context.
Returns
AdaptiveThreshold(IImageProcessingContext, Color, Color)
Applies Bradley Adaptive Threshold to the image.
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower)
Parameters
sourceIImageProcessingContextThe current image processing context.
upperColorUpper (white) color for thresholding.
lowerColorLower (black) color for thresholding.
Returns
AdaptiveThreshold(IImageProcessingContext, Color, Color, Rectangle)
Applies Bradley Adaptive Threshold to the image.
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower, Rectangle rectangle)
Parameters
sourceIImageProcessingContextThe current image processing context.
upperColorUpper (white) color for thresholding.
lowerColorLower (black) color for thresholding.
rectangleRectangleRectangle region to apply the processor on.
Returns
AdaptiveThreshold(IImageProcessingContext, Color, Color, float)
Applies Bradley Adaptive Threshold to the image.
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower, float thresholdLimit)
Parameters
sourceIImageProcessingContextThe current image processing context.
upperColorUpper (white) color for thresholding.
lowerColorLower (black) color for thresholding.
thresholdLimitfloatThreshold limit (0.0-1.0) to consider for binarization.
Returns
AdaptiveThreshold(IImageProcessingContext, Color, Color, float, Rectangle)
Applies Bradley Adaptive Threshold to the image.
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower, float thresholdLimit, Rectangle rectangle)
Parameters
sourceIImageProcessingContextThe current image processing context.
upperColorUpper (white) color for thresholding.
lowerColorLower (black) color for thresholding.
thresholdLimitfloatThreshold limit (0.0-1.0) to consider for binarization.
rectangleRectangleRectangle region to apply the processor on.
Returns
AdaptiveThreshold(IImageProcessingContext, float)
Applies Bradley Adaptive Threshold to the image.
public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, float thresholdLimit)
Parameters
sourceIImageProcessingContextThe current image processing context.
thresholdLimitfloatThreshold limit (0.0-1.0) to consider for binarization.