image thumbnail

Sauvola local image thresholding

version (6.33 KB) by Jan Motl
Sauvola binarization method is well suited for ill illuminated or stained documents.


Updated 08 May 2013

View License

The implemented Sauvola method uses integral images for fast computation of the threshold function.

The Sauvola method is described in:

J. Sauvola and M. Pietikainen, Adaptive document image binarization, Pattern Recognition 33, 2000. -

The modification which uses integral images providing a 20-fold speedup (according to the paper) is described in this paper:

F. Shafait, D. Keysers, and T. M. Breuel, Efficient implementation of local adaptive thresholding techniques using integral images, Document Recognition and Retrieval XV, 2008 -

A paper evaluating binarization methods:

P. Stathis, E. Kavallieratou and N. Papamarkos - An Evaluation Technique for Binarization Algorithms, Journal of Universal Computer Science, 2008, -

Cite As

Jan Motl (2021). Sauvola local image thresholding (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!