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
source
IImageProcessingContextThe 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
source
IImageProcessingContextThe current image processing context.
upper
ColorUpper (white) color for thresholding.
lower
ColorLower (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
source
IImageProcessingContextThe current image processing context.
upper
ColorUpper (white) color for thresholding.
lower
ColorLower (black) color for thresholding.
rectangle
RectangleRectangle 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
source
IImageProcessingContextThe current image processing context.
upper
ColorUpper (white) color for thresholding.
lower
ColorLower (black) color for thresholding.
thresholdLimit
floatThreshold 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
source
IImageProcessingContextThe current image processing context.
upper
ColorUpper (white) color for thresholding.
lower
ColorLower (black) color for thresholding.
thresholdLimit
floatThreshold limit (0.0-1.0) to consider for binarization.
rectangle
RectangleRectangle 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
source
IImageProcessingContextThe current image processing context.
thresholdLimit
floatThreshold limit (0.0-1.0) to consider for binarization.