PANDORE Version 6 | GREYC-IMAGE |
padaptivemeanbinarization is an adaptative binarization based on local contrast analysis. The algorithm is to slide a window and compute the mean value of the pixels inside the window. If the central pixel is greater than the specified percent of the mean value of the neighbors than the pixel becomes white otherwise it becomes black.
The algorithm is:
im_out(x,y) = 0 if im_in(x,y) <= mean(window(f(x,y), x,y, radius)) * (1-p/100) = 255 otherwise
Returns SUCCESS or FAILURE.
Binarization of the image page.pan :
padaptivemeanbinarization 16 16 0 15 examples/page.pan bin.pan
Binarisation de l'image par adaptation locale basée sur la moyenne.
B. Bradleya and G. Rothb, "Adaptive Thersholding using the Integral Image", Journal of Graphics, GPU, and Game Tools, 12(2), pp. 13-21, 2007.
Author: Sébastien Bernery