English

Memory-efficient and fast implementation of local adaptive binarization methods

Computer Vision and Pattern Recognition 2019-08-01 v3

Abstract

Binarization is widely used as an image preprocessing step to separate object especially text from background before recognition. For noisy images with uneven illumination such as degraded documents, threshold values need to be computed pixel by pixel to obtain a good segmentation. Since local threshold values typically depend on moment-based statistics such as mean and variance of gray levels inside rectangular windows, integral images which are memory consuming are commonly used to accelerate the calculation. Observed that moment-based statistics as well as quantiles in a sliding window can be computed recursively, integral images can be avoided without neglecting speed, more binarization methods can be accelerated too. In particular, given a H×WH\times W input image, Sauvola's method and alike can run in Θ(HW)\Theta (HW) time independent of window size, while only around 6min{H,W}6\min\{H,W\} bytes of auxiliary space is needed, which is significantly lower than the 16HW16HW bytes occupied by the two integral images. Since the proposed technique enable various well-known local adaptive binarization methods to be applied in real-time use cases on devices with limited resources, it has the potential of wide application.

Keywords

Cite

@article{arxiv.1905.13038,
  title  = {Memory-efficient and fast implementation of local adaptive binarization methods},
  author = {Chungkwong Chan},
  journal= {arXiv preprint arXiv:1905.13038},
  year   = {2019}
}

Comments

8 pages, 4 figures, corrected typos and added reference to source code

R2 v1 2026-06-23T09:33:07.227Z