Abstract
Connected-component labeling and Euler number computing are two essential processing tasks for extracting objects’ features in a binary image for the pattern recognition, image analysis, and computer (robot) vision. In general, the two processing tasks are usually executed independently by different algorithms in different scans. This paper proposes a combinational algorithm for labeling connected components in a binary image and computing the Euler number of the image simultaneously. In our algorithm, for the current pixel, the two processing tasks use the same information obtained from its neighbor pixels in the same scan. Moreover, the information obtained during processing the current pixel will be used for processing the next pixel. Our method is simple in principle and powerful in practice. Experimental results demonstrated that our method is much more efficient than conventional methods on various kinds of images, either in the case where the Euler number is calculated alone or in the case where both connected-component labeling and the Euler number computing are necessary.
Similar content being viewed by others
Notes
For an N × M-size binary image, a safe value of G is N × M/4.
References
Gonzalez, R.C., Woods, R.E.: Digital Image Processing, Third ed. edn, p. 07458. Pearson Prentice Hall, Upper Saddle River (2008)
Hashizume, A., Suzuki, R., Yokouchi, H., et al.: An algorithm of automated RBC classification and its evaluation. Jpn. J. Med. Electron. Bio. Eng. 28(1), 25–32 (1990) (in Japanese)
Srihari S.N. Document image understanding. In: Proceedings ACM/IEEE Joint Fall Computer Conference, Dallas, TX, November, pp.87–95 (1986)
Rosin P.L., Ellis T. Image difference Threshold strategies and shadow detection. In: Proceedings British Machine Vision Conference September, pp. 347–356 (1995)
Nayar, S.K., Bolle, R.M.: Reflectance-based object recognition. Int. J. Comput. Vision 17(3), 219–240 (1996)
Horn, B.P.K.: Robot Vision, pp. 73–77. McGraw-Hill, New York (1986)
Rosenfeld, A., Pfalts, J.L.: Sequential operations in digital picture processing. J. ACM 13(4), 471–494 (1996)
He, L., Chao, Y., Suzuki, K., Wu, K.: Fast connected-component labeling. Pattern Recogn. 42(9), 1977–1987 (2009)
He, L., Chao, Y., Suzuki, K.: An efficient first-scan method for label-equivalence-based labeling algorithms. Pattern Recogn. Lett. 31(1), 28–35 (2010)
He, L., Chao, Y., Suzuki, K.A.: Run-based two-scan labeling algorithm. IEEE Trans. Image Process. 17(5), 749–756 (2008)
Wu, K., Otoo, E., Suzuki, K.: Optimizing two-pass connected-component labeling algorithms. Pattern Anal. Appl. 12(2), 117–135 (2009)
Grana, C., Borghesani, D., Cucchiara, R.: Optimized block-based connected components labeling with decision trees. IEEE Trans. Image Process. 19(6), 1596–1609 (2010)
Chang, F., Chen, C.J., Lu, C.J.: A linear-time component-labeling algorithm using contour tracing technique. Comput. Vis. Image Underst. 93, 206–220 (2004)
Hu, Q., Qian, G., Nowinski, W.L.: Fast connected-component labeling in three-dimensional binary images based on iterative recursion. Comput. Vis. Image Underst. 99, 414–434 (2005)
Wolfe C., Nicholas T.C., Graham T., Pape J.A. Seeing through the fog: an algorithm for fast and accurate touch detection in optical tabletop surfaces. In: ACM International Conference on Interactive Tabletops and Surfaces (ITS ‘10), New York, NY, USA, November 2010, pp. 73–82
Abramov, A., Kulvicius, T., Wörgötter, F., Dellen, B.: Real-time image segmentation on a GPU facing the multicore-challenge. In: Keller, R., Kramer, D., Weiss, J.P. (eds.) Lecture Notes in Computer Science, 6310, pp. 131–142. Springer, Berlin (2011)
Chen, M.H., Yan, P.F.: A fast algorithm to calculate the Euler number for binary image. Pattern Recogn. Lett. 8(5), 295–297 (1988)
Juan, L.D.S., Juan, H.S.: On the computation of the Euler number of a binary object. Pattern Recogn. 29(3), 471–476 (1996)
Zenzo, S., Cinque, L., Levialdi, S.: Run-based algorithms for binary image analysis and processing. IEEE Trans. PAMI 18(1), 83–89 (1996)
Gray, S.B.: Local properties of binary images in two dimensions. IEEE Trans. Comput. 20, 551–561 (1971)
He, L., Chao, Y., Suzuki, K.: An algorithm for connected-component labeling, hole labeling and Euler number computing. J. Comput. Sci. Technol. 28(3), 468–478 (2013)
Otsu, N.A.: Threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybernet. 9, 62–66 (1979)
Acknowledgments
We thank the anonymous referees for their valuable comments that improved this paper greatly. We are grateful to the associate editor for his/her kind cooperation. This work was supported in part by the Grant-in-Aid for Scientific Research (C) of the Ministry of Education, Science, Sports and Culture of Japan under Grant No. 26330200, the Grant-in-Aid for Social Development Research Project of the Department of Science and Technology of Shaanxi Province of China under No. 2014K11-02-01-13, and the Grant-in-Aid for Scientific Research of Administration of Science and Technology of Xi’an of China under Grant No. CXY1343.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
He, L., Zhao, X., Yao, B. et al. A combinational algorithm for connected-component labeling and Euler number computing. J Real-Time Image Proc 13, 703–712 (2017). https://doi.org/10.1007/s11554-014-0433-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11554-014-0433-y