Skip to main content
Log in

Topological hierarchy-contour tracing algorithm for nests of interconnected contours

  • ORIGINAL ARTICLE
  • Published:
The International Journal of Advanced Manufacturing Technology Aims and scope Submit manuscript

Abstract

As a simple meaningful external illustration, a group of boundary contours is commonly used for representing the physical appearance of an object of interest on a 2D plane (e.g., a part drawing, CT scan image, a sliced layer, tile pattern). The illustration is understood from the composition of the contours and their attributes that include their shapes, sizes, locations and relationships. Therefore, not only is geometrical information important for contours to be useful in subsequent operations but their topological hierarchy relationships also are essential. Presented in this paper is a topological hierarchy-contour tracing algorithm that is capable of tracing nests of interconnected contours often found in practice and of identifying their topological hierarchy relationships automatically during contour tracing. The algorithm organizes contours by family rather than by group or as individual. However, contours are traced across families generation by generation instead of going deep with one family branch at a time. The outputs of the algorithm are ordered sequences of boundary pixels representing all closed contours and their topological hierarchy relationships. The algorithm has been implemented on LabVIEW, and tested with several samples to illustrate its applications.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Flower J, Howse J, Taylor J (2003) Nesting in Euler diagrams. Electron Notes Theor Comput Sci 72:93–102

    Article  Google Scholar 

  2. Gonzalez RC, Woods RE, Eddins SL (2004) Digital image processing using Mathlab. Pearson Prentice-Hall, New Jersey

    Google Scholar 

  3. Pratt WK (1991) Digital image processing. Wiley-Interscience, New York

    MATH  Google Scholar 

  4. Ghuneim AG (2009) Contour tracing. http://www.imageprocessingplace.com/ downloads_V3/root_downloads/tutorials/contour_tracing_Abeer_George_Ghuneim/alg.html. Accessed 01 Oct 2009

  5. Mirante A, Weingarten N (1982) The radial sweep algorithm for constructing triangulated irregular networks. IEEE Comput Graph 2(3):11–21

    Article  Google Scholar 

  6. Pavlidis T (1982) Algorithm for graphics and image processing. Computer Science, Rockville

    Book  Google Scholar 

  7. Kass M, Witkin A, Terzopoulos D (1988) Snakes: active contour models. Int J Comput Vis 321–331

  8. Iannizzotto G, Vita L (2000) Fast and accurate edge-based segmentation with no contour smoothing in 2-D real images. IEEE Trans Image Process 9:1232–1237

    Article  Google Scholar 

  9. Strathy NW, Said F, Suen CY (1994) A sequential method of extracting contour chains from an image. Proceedings of the 12th IAPR International Conference on Pattern Recognition 2:580–582

  10. Park SC, Choi BK (2001) Boundary extraction algorithm for cutting area detection. Comput Aided Des 33:571–579

    Article  Google Scholar 

  11. Ablameyko S, Pridmore T (2000) Machine interpretation of line drawing images. Springer, London

    Book  Google Scholar 

  12. Chen J, Qiao C, Zhao R (2004) A Voronoi interior adjacency-based approach for generating a contour tree. Comput Geosci 30:355–367

    Article  Google Scholar 

  13. Choi SH, Kwok KT (2002) Hierarchical slice contours for layered-manufacturing. Comput Ind 48:219–239

    Article  Google Scholar 

  14. Choi SH, Cheung HH (2009) A topological hierarchical-based approach to layered manufacturing of functionally graded multi-material objects. Comput Ind 60:349–363

    Article  Google Scholar 

  15. Volpato N, Franzoni A, Luvizon DC, Schramm JM (2013) Identifying the directions of a set of 2D contours for additive manufacturing process planning. Int J Adv Manuf Technol 68(1–4):33–43

    Article  Google Scholar 

  16. Fonseca MJ, Ferreira A, Jorge JA (2009) Sketch-based retrieval of complex drawings using hierarchical topology and geometry. Comput Aided Des 41:1067–1081

    Article  Google Scholar 

  17. Kuagoolkijgarn P, Koomsap P, Chansri N (2010) A new algorithm for tracing nests of interconnected contours. Int J Adv Manuf Technol 50(5–8):717–727

    Article  Google Scholar 

  18. Egenhofer MJ, Franzosa RD (1991) Point-set topological spatial relations. Int J Geogr Inf Syst 5(2):161–174

    Google Scholar 

  19. Guilbert E (2013) Multi-level representation of terrain features on a contour map. Geoinformatica 17:301–324

    Article  Google Scholar 

  20. Ma W, Chu KY (2000) Extracting geometric features from a virtual environment. J Mater Process Technol 107:24–30

    Article  Google Scholar 

  21. Cronin T (2000) Classifying hills and valleys in digitized terrain. Photogramm Eng Remote Sens 66(9):1129–1137

    Google Scholar 

  22. Choi SH, Samavedam S (2001) Visualisation of rapid prototyping. Rapid Prototyp J 7(2):99–114

    Article  Google Scholar 

  23. Chen LJ, Liu TG, Chen JJ, Zhu JC, Deng JJ (2006) Location algorithm for seal imprints on Chinese bank-checks based on region growing. Optoelectron Lett 2(2):155–157

    Article  Google Scholar 

  24. Roubal J, Poiker T (1985) Automated contour labeling and the contour tree. Proceedings of Auto-Carto 7:472–481

    Google Scholar 

  25. Kovalevsky VA (1989) Finite topology as applied to image analysis. Comput Vision Graph 46(2):141–161

    Article  Google Scholar 

  26. Maire C, Datcu M (2005) Object and topology extraction from remote sensing images. Proceedings of IEEE International Conference on Image Processing: II-193-II-196

  27. Kim DK, Lee DR, Pham TC, Nguyen TT, Jeon JW (2007) Real-time component labeling and boundary tracing system based on FPGA. Proceedings of the 2007 I.E. International Conference on Robotics and Biomimetics 189–194

  28. Chang F, Chen CJ (2003) A component-labeling algorithm using contour tracing technique. Proceedings of the 7th International Conference on Document Analysis and Recognition

  29. Chang F, Chen CJ, Lu CJ (2004) A linear-time component-labeling algorithm using contour tracing technique. Comput Vision Image Underst (CVIU) 93:206–220

    Article  Google Scholar 

  30. Codrea MC, Nevalainen OS (2005) Note: an algorithm for contour-based region filling. Comput Graph 29:441–450

    Article  Google Scholar 

  31. Sunanon P, Koomsap P, Nachaisit S (2005). Image processing for rapid prototyping technology. Proceedings of the 2005 International Conference on Simulation and modeling, pp 249–253

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Pisut Koomsap.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Koomsap, P., Chansri, N. Topological hierarchy-contour tracing algorithm for nests of interconnected contours. Int J Adv Manuf Technol 70, 1247–1266 (2014). https://doi.org/10.1007/s00170-013-5330-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00170-013-5330-1

Keywords

Navigation