Code covered by the BSD License
Jan Motl (view profile)
18 Mar 2013
10 May 2013)
A traditional local image thresholding.
Watch this File
This is an implementation of a traditional Niblack local image thresholding with an integral image method, which guarantees constant computation time regardless of the neighborhood size.
The method can be described like:
if pixel > (mean + k * standard_deviation)
pixel = object;
pixel = background;
Better code illustration.