The algorithm works in the following way:
For additional information see Digital Image Processing, Gonzalez/Woods. Ch.10 page:599.
The filter accepts 8 and 16 bpp grayscale images for processing.
Sample usage:
// create filter IterativeThreshold filter = new IterativeThreshold( 2, 128 ); // apply the filter Bitmap newImage = filter.Apply( image );
Initial image:
Result image (calculated threshold is 102):