Table of Contents

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 IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

AdaptiveThreshold(IImageProcessingContext, Color, Color)

Applies Bradley Adaptive Threshold to the image.

public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, Color upper, Color lower)

Parameters

source IImageProcessingContext

The current image processing context.

upper Color

Upper (white) color for thresholding.

lower Color

Lower (black) color for thresholding.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

upper Color

Upper (white) color for thresholding.

lower Color

Lower (black) color for thresholding.

rectangle Rectangle

Rectangle region to apply the processor on.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

upper Color

Upper (white) color for thresholding.

lower Color

Lower (black) color for thresholding.

thresholdLimit float

Threshold limit (0.0-1.0) to consider for binarization.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

upper Color

Upper (white) color for thresholding.

lower Color

Lower (black) color for thresholding.

thresholdLimit float

Threshold limit (0.0-1.0) to consider for binarization.

rectangle Rectangle

Rectangle region to apply the processor on.

Returns

IImageProcessingContext

The IImageProcessingContext.

AdaptiveThreshold(IImageProcessingContext, float)

Applies Bradley Adaptive Threshold to the image.

public static IImageProcessingContext AdaptiveThreshold(this IImageProcessingContext source, float thresholdLimit)

Parameters

source IImageProcessingContext

The current image processing context.

thresholdLimit float

Threshold limit (0.0-1.0) to consider for binarization.

Returns

IImageProcessingContext

The IImageProcessingContext.