BinarizeBradley

WebPImage.BinarizeBradley method

Apply binarization to the image using Bradley’s adaptive thresholding algorithm with integral image thresholding. This method dynamically computes local thresholds based on the image’s neighborhood, enhancing adaptability to varying lighting conditions and ensuring robust segmentation for subsequent processing tasks within your application.

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

See Also