A C++ Implementation of Otsu’s Image Segmentation Method
Juan Pablo Balarini, Sergio Nesmachnow
→ BibTeX
@article{ipol.2016.158,
    title   = {{A C++ Implementation of Otsu’s Image Segmentation Method}},
    author  = {Balarini, Juan Pablo and Nesmachnow, Sergio},
    journal = {{Image Processing On Line}},
    volume  = {6},
    pages   = {155--164},
    year    = {2016},
    doi     = {10.5201/ipol.2016.158},
}
% if your bibliography style doesn't support doi fields:
    note    = {\url{https://doi.org/10.5201/ipol.2016.158}}
published
2016-07-10
reference
Juan Pablo Balarini, and Sergio Nesmachnow, A C++ Implementation of Otsu’s Image Segmentation Method, Image Processing On Line, 6 (2016), pp. 155–164. https://doi.org/10.5201/ipol.2016.158

Communicated by Miguel Colom
Demo edited by Juan Pablo Balarini

Abstract

This article presents a functional implementation of the Otsu’s segmentation method and a case study using multiple images. Otsu’s method performs nonparametric and unsupervised image thresholding, usually used on image segmentation. The algorithm finds an optimal threshold of an image by minimizing the within-class variance, using only the gray-level histogram of the image. The proposed implementation is conceived emphasizing the role of mathematics as a source for algorithm design and the reproducibility of the research, according to the Image Processing On Line (IPOL) philosophy.

Download