[]
In-place effect that converts a monochromatic (grayscale) image to bi-level image using Bradley and Roth's method of adaptive image thresholding.
public class BradleyThresholdingEffect : BaseInplaceEffect
Applies the effect to a part of the specified GcBitmap.
protected override void Apply(GcBitmap bitmap, int x, int y, int width, int height)
bitmap
GcBitmapThe target GcBitmap.
x
intThe x-coordinate of the target rectangle, in pixels.
y
intThe y-coordinate of the target rectangle, in pixels.
width
intThe width of the target rectangle, in pixels.
height
intThe height of the target rectangle, in pixels.
Applies the effect to the specified GcBitmap.
protected override void Apply(GcBitmap bitmap)
Returns an instance of the BradleyThresholdingEffect class.
public static BradleyThresholdingEffect Get(int sDivider = 8, int t = 15)
sDivider
intA divider of the image width to calculate the value of s.
t
intThe value of t parameter.