A Novel Algorithm for Skeleton Extraction From Images Using Topological Graph Analysis

Liping Yang, Diane Oyen, Brendt WohlbergWorkshops @ CVPR 2019

Abstract

Image skeletonization, or "thinning," is a critical preprocessing step in computer vision tasks such as character recognition and vectorization. Traditional raster-based algorithms are often iterative and computationally intensive, especially as image resolution increases. This paper presents a non-iterative, geometry-based approach that leverages polygon kernels and topological graphs to extract skeletons efficiently. By shifting from pixel-level operations to vector-based geometric analysis, the proposed method achieves faster processing speeds while preserving the essential topology of shapes with straight-line boundaries.

Introduction

Skeletonization reduces a shape to a one-pixel-wide representation that captures its fundamental structure. Most standard techniques, such as the Zhang-Suen algorithm, are iterative: they repeatedly remove outer layers of pixels until only the central spine remains. While effective, this "peeling" process is computationally expensive because it requires multiple passes over every pixel in the image.

Researchers from Los Alamos National Laboratory have developed a faster alternative. Instead of treating an image as a grid of pixels, their approach treats shapes as geometric polygons. This allows for a non-iterative extraction process that is significantly more efficient for high-resolution imagery.

Methodology

The algorithm's core innovation is the use of computational geometry—specifically the concept of polygon kernels—to define the skeleton's structure.

1. Identifying Kernels and Local Kernels

The "kernel" of a polygon is the set of all internal points from which the entire interior is visible. For convex shapes, identifying the kernel is straightforward. However, many real-world shapes are concave. For these, the authors introduced a method to identify "local kernels"—sub-regions that can "see" their immediate surroundings.

Visualization of (a) the central kernel for an 'X' shape and (b) the local kernels for a concave 'W' shape.

As shown in the figure above, the algorithm identifies these critical visibility regions. For a concave polygon, the process involves iterating through concave nodes to calculate visibility polygons and their respective kernels, effectively subdividing the complex shape into manageable convex components.

2. Graph Construction and Skeleton Generation

Once the kernels are identified, the image is subdivided into neighboring convex polygons. This structure is represented as a topological graph where nodes correspond to polygons and links represent shared edges. The skeleton is then generated by connecting the centroids of these polygons. To ensure the skeleton reaches the shape's extremities, lines are extended from the "leaf nodes" of the graph to the polygon boundaries. This dual-graph approach allows the skeleton to be extracted in a single pass.

Key Results and Evaluation

The proposed algorithm was evaluated against industry-standard benchmarks, including the Zhang-Suen, Lu-Wang, and Kumar-Teja algorithms. Testing was performed on representative binary images such as geometric characters ('X', 'W', 'H') and complex patterns.

Extracted skeletons for (a) 'X' and (b) 'W' using the proposed geometric approach.

Performance and Accuracy

The results demonstrate two primary advantages:

  • Efficiency: By avoiding iterative pixel-stripping, the algorithm is significantly faster than traditional raster-based methods.
  • Topological Integrity: The method produces clean, centered skeletons that accurately reflect the symmetry and branching of the input shapes. It effectively preserves "holes" and structural junctions without the noise often introduced by pixel-based thinning.

Conclusion

By bridging computational geometry and image processing, this research provides a robust framework for real-time shape analysis. While the current implementation is optimized for polygons with straight-line boundaries, it lays the groundwork for more complex applications. Future work will focus on handling organic curves by integrating polyline simplification algorithms (like Douglas-Peucker) or utilizing Bézier curves within the graph structure to model curved skeletons more naturally.

Summary updated

BibTeX
@inproceedings{yang2019novel,
  author = {Liping Yang and Diane Oyen and Brendt Wohlberg},
  title = {{A Novel Algorithm for Skeleton Extraction From Images Using Topological Graph Analysis}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00152},
}
Figure