Skip to main content

Computing the Component-Labeling and the Adjacency Tree of a Binary Digital Image in Near Logarithmic-Time

  • Conference paper
  • First Online:
Computational Topology in Image Context (CTIC 2019)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11382))

Included in the following conference series:

Abstract

Connected component labeling (CCL) of binary images is one of the fundamental operations in real time applications. The adjacency tree (AdjT) of the connected components offers a region-based representation where each node represents a region which is surrounded by another region of the opposite color. In this paper, a fully parallel algorithm for computing the CCL and AdjT of a binary digital image is described and implemented, without the need of using any geometric information. The time complexity order for an image of \(m \times n\) pixels under the assumption that a processing element exists for each pixel is near \(O(log(m+n))\). Results for a multicore processor show a very good scalability until the so-called memory bandwidth bottleneck is reached. The inherent parallelism of our approach points to the direction that even better results will be obtained in other less classical computing architectures.

This work has been supported by the Spanish research projects MTM2016-81030-P (AEI/FEDER, UE) and TEC2012-37868-C04-02 of Ministerio de Economía y Competitividad and the VPPI of the University of Seville.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Bhattacharya, P.: Connected component labeling for binary images on a reconfigurable mesh architecture. J. Syst. Arch. 42(4), 309–313 (1996)

    Article  Google Scholar 

  2. Buneman, O.P.: A grammar for the topological analysis of plane figures. Mach. Intell. 15, 383–393 (1969)

    MATH  Google Scholar 

  3. Chiavetta, F., Di Gesù, V.: Parallel computation of the Euler number via connectivity graph. Pattern Recognit. Lett. 14, 849–859 (1993)

    Article  Google Scholar 

  4. Diaz-del-Rio, F., Real, P., Onchis, D.: A parallel homological spanning forest framework for 2D topological image analysis. Pattern Recognit. Lett. 83, 49–58 (2016)

    Article  Google Scholar 

  5. Cohn, A., Bennett, B., Gooday, J., Gotts, N.: Qualitative spacial representation and reasoning with the region connection calculus. GeoInformatica 1(3), 275–316 (1997)

    Article  Google Scholar 

  6. Costanza, E., Robinson, J.: A region adjacency tree approach to the detection and design of fiducials. Video Vis. Graph., 63–99 (2003)

    Google Scholar 

  7. Cucchiara, R., Grana, C., Prati, A., Seidenari, S., Pellacani, G.: Building the topological tree by recursive FCM color clustering. In: 16th IEEE ICPR, vol. 1, pp. 759–762 (2002)

    Google Scholar 

  8. Gupta, S., Palsetia, D., Patwary, M.M.A., Agrawal, A., Choudhary, A.N.: A new parallel algorithm for two-pass connected component labeling. In: IEEE IPDP Symposium, pp. 1355–1362 (2014)

    Google Scholar 

  9. Heijmans, H.J.: Connected morphological operators for binary images. Comput. Vis. Imag. Understand. 73(1), 99–120 (1999)

    Article  MathSciNet  Google Scholar 

  10. Kalentev, O., Rai, A., Kemnitz, S., Schneider, R.: Connected component labeling on a 2D grid using CUDA. J. Parallel Distrib. Comput. 71, 615–620 (2011)

    Article  Google Scholar 

  11. Kovalevsky, V.: Algorithms in digital geometry based on cellular topology. In: Klette, R., Žunić, J. (eds.) IWCIA 2004. LNCS, vol. 3322, pp. 366–393. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-30503-3_27

    Chapter  Google Scholar 

  12. Keshet, R.: Shape-tree semilattice. J. Math. Imag. Vis. 22(2–3), 309–331 (2005)

    Article  MathSciNet  Google Scholar 

  13. Murty, A., Natarajan, V., Vadhiyar, S.: Efficient homology computations on multicore and manycore systems. In: 20th Annual International Conference on High Performance Computing, pp. 333–342 (2013)

    Google Scholar 

  14. Oxley, J.G.: Matroid Theory, vol. 3. Oxford University Press, Oxford (2017). NVIDIA, Cuda C best practices guide version. http://developer.nvidia.com/

  15. Patwary, M., Ali, M., Refsnes, P., Manne, F.: Multi-core spanning forest algorithms using the disjoint-set data structure. In: 26th IEEE IPDP Symposium, pp. 827–835 (2012)

    Google Scholar 

  16. Institute of Computer Science, Jagiellonian University (2017). REDHOM, Redhom. http://redhom.ii.uj.edu.pl/

  17. Ranwez, V., Soille, P.: Order independent homotopic thinning for binary and grey tone anchored skeletons. Pattern Recognit. Lett. 23(6), 687–702 (2002)

    Article  Google Scholar 

  18. Rosenfeld, A.: Adjacency in digital pictures. Inf. Control 26, 24–33 (1974)

    Article  MathSciNet  Google Scholar 

  19. Serra, J.: Image Analysis and Mathematical Morphology. Academic Press, Cambridge (1982)

    MATH  Google Scholar 

  20. Stell, J., Worboys, M.: Relations between adjacency trees. Theor. Comput. Sci. 412(34), 4452–4468 (2011)

    Article  MathSciNet  Google Scholar 

  21. Williams, S., Waterman, A., Patterson, D.A.: Roofline: an insightful visual performance model for multicore architectures. Commun. ACM 52, 65–76 (2009)

    Article  Google Scholar 

  22. YACCLAB - Yet Another Connected Components Labeling Benchmark (2017). https://github.com/prittt/YACCLAB

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Helena Molina-Abril .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Díaz del Río, F., Molina-Abril, H., Real, P. (2019). Computing the Component-Labeling and the Adjacency Tree of a Binary Digital Image in Near Logarithmic-Time. In: Marfil, R., Calderón, M., Díaz del Río, F., Real, P., Bandera, A. (eds) Computational Topology in Image Context. CTIC 2019. Lecture Notes in Computer Science(), vol 11382. Springer, Cham. https://doi.org/10.1007/978-3-030-10828-1_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-10828-1_7

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-10827-4

  • Online ISBN: 978-3-030-10828-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics