Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 188.8.131.52 (184.108.40.206)
public class ThresholdWithCarry : BaseInPlacePartialFilter
The filter is similar to Threshold filter in the way, that it also uses threshold value for image binarization. Unlike regular threshold filter, this filter uses cumulative pixel value in comparing with threshold value. If cumulative pixel value is below threshold value, then image pixel becomes black. If cumulative pixel value is equal or higher than threshold value, then image pixel becomes white and cumulative pixel value is decreased by 255. In the beginning of each image line the cumulative value is reset to 0.
The filter accepts 8 bpp grayscale images for processing.
// create filter Threshold filter = new Threshold( 100 ); // apply the filter filter.ApplyInPlace( image );