GifImage.BinarizeBradley

GifImage.BinarizeBradley method

Binarization of an image using Bradley’s adaptive thresholding algorithm with integral image thresholding is a method for converting a grayscale image into a binary image. This algorithm calculates a local threshold for each pixel based on the average intensity of the surrounding pixels within a specified window. By adaptively adjusting the threshold based on local pixel intensities, Bradley’s method is effective at handling variations in lighting and contrast across the image.

public override void BinarizeBradley(double brightnessDifference)
ParameterTypeDescription
brightnessDifferenceDoubleThe brightness difference between pixel and the average of an s x s window of pixels centered around this pixel.

See Also