A closed-form solution to multi-level image thresholding

Abstract

This paper proposes an analytical formulation relying on the least square error. Similar results were also found for the cross correlation, within-class, and between-class variance. At first, a continuous distribution is hypothesized (for derivation purposes only) to produced a modified form of the well-known OTSU method. This hypothesis is “identical” to Otsu in terms of output performance and the need for an exhaustive search. However, apart from being derived from the continuous form, the proposed scheme requires less computational power. It turns out that the optimum threshold equals the average of the adjacent regions’ means. For some images, the scheme can result in multi-level thresholdeds. A direct form was then suggested to obtain a non-exhaustive solution. The idea is simply to approximate the non-continuous error function (used by the least square formulation and OTSU) with a forth order polynomial defined in the normalized gray intensity range [0,1]. The optimum threshold can then be found as a function of the roots of a second order polynomial whose coefficients are the solution of a 2x2 linear system. The performance of the proposed non-exhaustive solution is slightly inferior to OTSU in general, however; some images produced improved performance. Nevertheless, The proposed scheme can be easily generalized to the multi-level case without the need for an exhaustive search. For n+1 levels (i.e. n thresholds), the output is obtained by solving an nxn linear system followed by finding the roots of a n-order polynomial. The computational cost is clearly superior to the exhaustive search. In addition, as validated with some images, the performance is encouraging. Extension to the general clustering case is highly envolved with the exception of the two-level case (for any dimension) that has been successfully derived in this work.

Downloads

Download data is not yet available.

References

M. Sezgin, and B. Sankur, “Survey over image thresholding techniques and quantitative performance evaluation”, J. Electronic Imag., 13: pp 146-165, 2004. DOI: 10.1117/1.1631315.

N. Otsu, “A threshold selection method from gray-level histograms”, IEEE Trans. Syst. Man Cybernet., 9: pp 62-66, 1979. DOI: 10.1109/TSMC.1979.4310076.

J. Kapur, P. Sahoo and A. Wong, “A new method for gray-level picture thresholding using the entropy of the histogram”, Comput. Vis. Graph. Image Process., 29: 273-285, 1985. DOI: 10.1016/0734-189X(85)90125-2

J. Zhang, and J. Hu, “Image segmentation based on 2D Otsu method with histogram analysis”, Proceedings of the International Conference on Computer Science and Software Engineering, Dec. 2008, IEEE Xplore Press, Hubei, China, pp: 105-108. DOI: 10.1109/CSSE.2008.206.

A. Abutaleb, “Automatic thresholding of gray-level pictures using two-dimensional entropy”, Comput. Vis. Graph. Image Process., 47: 22-32, 1989. DOI: 10.1016/0734-189X(89)90051-0.

X. Zheng, H. Ye and Y. Tang, “Image bi-level thresholding based on gray level-local variance histogram”, Entropy, 19: pp 1-8, 2017. DOI: 10.3390/e19050191.

D. Liu, and J. Yu, “Otsu method and k-means”, Proceedings of the 9th International Conference on Hybrid Intelligent Systems, Aug. 2009, IEEE Xplore Press, Shenyang, China, pp: 344-349. DOI: 10.1109/HIS.2009.74.

S. Ameer, “Histogram Matching Schemes for Image Thresholding”, American Journal of Engineering and Applied Sciences, pp 413 – 419, 2019. https://thescipub.com/pdf/ajeassp.2019.413.419.pdf

S. Ameer, “An Eigen Structure Involving the Histogram for Image Thresholding”, IET-Image Processing, 2020, pp 1–4. DOI: 10.1049/iet-ipr.2019.1428.

S. Ameer, “Image Thresholding Using the Complement Feature”, American Journal of Engineering and Applied Sciences, 2020, pp 311 – 317. https://thescipub.com/pdf/ajeassp.2020.311.317.pdf.

Published
2021-10-29
How to Cite
Ameer, S. (2021). A closed-form solution to multi-level image thresholding. ITEGAM-JETIA, 7(31), 11-17. https://doi.org/10.5935/jetia.v7i31.777
Section
Articles