Abstract
In this article, we present two algorithms for robust binarization of images with variable lighting; we call them Image Binarization with Adaptive Averages and Image Binarization with Adaptive Windows. Both algorithms have a decision criterion based on the local properties of the image to be binarized. This criterion calculates the size of a square window in each pixel of the image on which the characteristics allow us to discriminate to which class each pixel of the image belongs. To calculate the window’s size, a function is optimized that limits the window’s size considering the edges of the light and dark regions. The function is optimized using binary search. In both algorithms, integral images were used to have algorithms with execution times of tenths of a second.
Similar content being viewed by others
References
Bernsen, J.: Dynamic thresholding of gray-level images. In: Proceedings of Eighth International Conference on Pattern Recognition, Paris (1986)
Bishop, C.M.: Pattern Recognition and Machine Learning. Springer, Berlin (2006)
Bradley, D., Roth, G.: Adaptive thresholding using the integral image. J. Graph. Tools 12(2), 13–21 (2007)
Calderon, F., Garnica-Carrillo, A., Flores, J.J.: Multi focus image fusion based on linear combination of images using incremental images. Revista Iberoamericana de Automatica e Informatica Industrial 13(4), 450–461 (2016)
Feng, M.L., Tan, Y.P.: Adaptive binarization method for document image analysis. In: 2004 IEEE International Conference on Multimedia and Expo (ICME)(IEEE Cat. No. 04TH8763), vol. 1, pp. 339–342. IEEE (2004)
Garnica-Carrillo, A., Calderon, F., Flores, J.: Multi-focus image fusion for multiple images using adaptable size windows and parallel programming. In: Signal, Image and Video Processing, pp. 1–8 (2020)
Gatos, B., Pratikakis, I., Perantonis, S.J.: Adaptive degraded document image binarization. Pattern Recogn. 39(3), 317–327 (2006)
Howe, N.R.: Document binarization with automatic parameter tuning. Int. J. Doc. Anal. Recognit. (IJDAR) 16(3), 247–258 (2013)
Khurshid, K., Siddiqi, I., Faure, C., Vincent, N.: Comparison of Niblack inspired binarization methods for ancient documents. In: Document Recognition and Retrieval XVI, vol. 7247, p. 72470U. International Society for Optics and Photonics (2009)
Lu, H., Kot, A.C., Shi, Y.Q.: Distance-reciprocal distortion measure for binary document images. IEEE Signal Process. Lett. 11(2), 228–231 (2004)
Michalak, H., Okarma, K.: Improvement of image binarization methods using image preprocessing with local entropy filtering for alphanumerical character recognition purposes. Entropy 21(6), 562 (2019)
Molina, E., Diaz, J., Hidalgo-Silva, H., Chávez, E.: Algoritmos de binarizacion robusta de imágenes con iluminación no uniforme. Revista iberoamericana de automática e informática industrial (RIAI) 15(3), 252–261 (2018)
Niblack, W.: An Introduction to Digital Image Processing, pp. 115–116. Englewood Cliffs (1986)
Otsu, N.: A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 9(1), 62–66 (1979)
Sauvola, J., Pietikäinen, M.: Adaptive document image binarization. Pattern Recogn. 33(2), 225–236 (2000)
Singh, T.R., Roy, S., Singh, O.I., Sinam, T., Singh, K., et al.: A new local adaptive thresholding technique in binarization. arXiv preprint arXiv:1201.5227 (2012)
Tensmeyer, C., Martinez, T.: Historical document image binarization: a review. SN Comput. Sci. 1, 1–26 (2020)
Valizadeh, M., Kabir, E.: Binarization of degraded document image based on feature space partitioning and classification. Int. J. Doc. Anal. Recognit. (IJDAR) 15(1), 57–69 (2012)
Wolf, C., Jolion, J.M., Chassaing, F.: Text localization, enhancement and binarization in multimedia documents. In: Object Recognition Supported by User Interaction for Service Robots, vol. 2, pp. 1037–1040. IEEE (2002)
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Calderon, F., Garnica-Carrillo, A. & Reyes-Zuñiga, C. Binarization of images with variable lighting using adaptive windows. SIViP 16, 1905–1912 (2022). https://doi.org/10.1007/s11760-022-02150-1
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11760-022-02150-1