Topology Preserving Skeletonization

61 concepts50 papers1 proposal

Imagine trying to analyze the complex branching structure of a blood vessel network, the intricate pathways of neurons in the brain, or the load-bearing paths of an engineered bracket. In their raw form, these structures are captured as dense, multi-pixel or multi-voxel shapes. Directly calculating properties like total length, curvature, or connectivity from a thick volumetric mass is computationally messy and geometrically ambiguous.

To solve this, we use skeletonization (or thinning): reducing a thick shape down to a wireframe centerline that is exactly one pixel or voxel wide.

However, a naive reduction can easily destroy the structural meaning of an object. If you peel away layers indiscriminately, you might break a thin bridge, splitting one object into two, or accidentally punch a hole through a solid surface. In medical imaging, breaking a vessel connection means simulating a completely different anatomy. In structural engineering, breaking a load path means a catastrophic failure in simulation.

The core challenge of topology-preserving skeletonization is simple: How do we shrink a shape to its absolute minimum thickness while guaranteeing that we never alter its fundamental connectivity, loops, or holes?


The Core Dilemma: Why Naive Erosion Fails

The classic mental model for skeletonization is the "grassfire analogy." Imagine setting fire to the boundaries of a shape simultaneously. The fire moves inward at a uniform speed. The places where the fire fronts meet and extinguish themselves form the "medial axis" or skeleton of the shape.

In a digital grid (pixels or voxels), we simulate this grassfire by iteratively eroding the boundary layers. But digital space is discrete, not continuous. If we simply delete every boundary pixel at each step, we run into severe topological errors.

Consider a thin bridge of pixels connecting two larger shapes. If the bridge is only two pixels wide, a uniform erosion step from both sides will delete both pixels simultaneously. The bridge vanishes, and a single connected component splits into two.

To prevent this, algorithms must distinguish between pixels that merely contribute to the thickness of a shape and pixels that are structurally vital. The latter are known as simple points. A point is considered "simple" if its removal does not change the topology of the image—meaning it does not change the number of connected components, holes, or cavities in either the object or its background.


Guarding Topology with Local Rules

How can an algorithm efficiently determine if a pixel is a simple point without scanning the entire image at every step? The answer lies in local neighborhood analysis. Because topological changes like splitting or merging must happen at the exact location of the deleted pixel, we can determine global topological safety using purely local checks.

In 2D, this involves analyzing a pixel's immediate $3 \times 3$ neighborhood. By calculating local topological invariants, such as the Euler characteristic, algorithms can instantly verify whether removing the center pixel will alter the connectivity of the local structure. As shown by Pavel Dimitrov et al., enforcing these local neighborhood checks during iterative thinning guarantees that the global structure remains homotopic (topologically equivalent) to the original object.

Sequential Thinning:
[Step 1: Check 3x3 Neighborhood] -> Is it a simple point? 
                                    YES -> Safe to delete.
                                    NO  -> Preserve to maintain connectivity.
[Step 2: Move to next boundary pixel]

When moving from 2D images to 3D volumes, the complexity increases dramatically. A voxel's neighborhood expands to a $3 \times 3 \times 3$ grid (26 neighbors), and we must safeguard not just lines and holes, but also internal cavities and tunnels.

To maintain efficiency, parallel thinning algorithms attempt to delete many boundary pixels at the same time. However, two adjacent pixels might each be "simple" individually, but deleting them simultaneously can still break a connection. To solve this, Antoine Manzanera et al. demonstrated that 3D topological integrity can be preserved in parallel by using a concise set of structural "hit-or-miss" patterns. One family of patterns identifies removable surface points, while a secondary family acts as a topological safeguard, freezing voxels that are critical to maintaining mutual connectivity.


Centering the Skeleton via Flux and Distance Fields

While local topological checks ensure that the skeleton doesn't break, they do not guarantee that the skeleton will be perfectly centered or geometrically accurate. If an algorithm erodes pixels from the left faster than from the right, the skeleton will drift.

To achieve perfectly centered skeletons, modern frameworks guide the thinning process using a distance transform. For every pixel inside the shape, the distance transform calculates its shortest distance to the boundary. The peaks of this distance field naturally correspond to the centerlines of the shape.

To formalize this, researchers integrate physics-inspired vector fields. If you calculate the gradient of the distance transform, you get vectors that point inward, away from the boundaries. Where these inward-flowing vectors collide—at the exact center of the shape—their directions oppose one another.

Boundary ->  --->  |  <---  <- Boundary
Boundary ->  --->  |  <---  <- Boundary
                   ^
             Collision Line 
         (Net Outward Flux << 0)

By calculating the net outward flux (the divergence) of this gradient field, we can pinpoint the skeleton. At the centerlines, the flux drops sharply because the vectors are crashing into each other. Pavel Dimitrov et al. demonstrated that by ordering the iterative thinning process based on these flux values—deleting high-flux pixels first and preserving low-flux regions—the algorithm naturally and accurately converges on a subpixel-precise, perfectly centered medial axis.


Taming the Noise: Topology-Preserving Pruning

One of the notorious properties of skeletonization is its extreme sensitivity to boundary noise. Imagine a perfectly smooth cylinder. If its boundary has even a tiny, single-pixel bump, the grassfire simulation will see that bump as a distinct peninsula. As the fire burns inward, this bump creates its own local fire front, resulting in a long, erroneous skeletal branch called a spur.

   Smooth Object:               Object with Noise:
     _________                     ____/\___
    [_________]                   [_________]
         |                             |
  True Skeleton:                Spurious Branch:
    -----------                    ----|----
                                       |

If we leave these spurs untouched, our structural model becomes cluttered with false branches. But if we blindly chop off short branches, we risk violating our core promise of topology preservation.

To clean up the noise safely, algorithms employ topology-preserving pruning. As detailed by Julia Gierke, this process simplifies a skeleton by iteratively removing branches starting strictly from their endpoints (leaf nodes). Because it only deletes points with a single neighbor, it shortens the branches without ever fragmenting the main structure or closing existing loops.

Another approach, utilized by Thiemo Dunkel et al., leverages geodesic distance transforms. By measuring the longest topological paths across the skeletonized object, the algorithm identifies the primary structural "spine" of the shape. Minor branches that deviate from this dominant path can then be safely pruned away, effectively separating true structural features from background noise.


From Pixels to Structural Graphs

Once an image or volume has been successfully thinned down to a topology-preserving, one-pixel-wide skeleton, a powerful transformation becomes possible: we can convert raw pixel data into a mathematical graph (a network of nodes and edges).

In this graph representation:

  • Endpoints and Junctions (where multiple skeletal lines meet) become Nodes.
  • Centerline segments connecting these junctions become Edges.

This abstraction unlocks precise quantitative analysis across diverse fields:

  • Biomedical Engineering: In vascular research, Alexander Radbruch et al. and Nathaniel Braman et al. utilize 3D skeletonization to isolate individual vessel branches from MRI and CT scans. This allows them to automatically calculate geometric properties like branch density, torsion, and curvature to quantify tumor architectures.
  • Industrial Design and CAD: In structural optimization, Ge Yin et al. use homotopic thinning to convert messy, voxelized density fields from physics simulations into clean, editable parametric CAD models, ensuring that critical load paths are never broken during conversion.
  • Material and Fiber Analysis: For complex overlapping structures like yarn fibers, Zhongmin Deng et al. demonstrate that reducing multi-pixel widths to single-pixel paths allows tracking algorithms to follow individual lines through intersections, enabling accurate length and structural measurements.

By combining local topological safeguards with distance-field geometry, topology-preserving skeletonization bridges the gap between raw, unstructured spatial data and clean, actionable topological models.

Key Foundational Work

Conjectures on the Perception of Elongation (1971) — contributed 1 concept elements to this direction.
Neural Network Recognizer for Hand-Written Zip Code Digits (1988) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_topological_skeletonization_topology_pre_92e3f021,
  title = {topological skeletonization (topology-preserving thinning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/topological-skeletonization-topology-preserving-thinning/rdr_92e3f021f56f48ae9df0bf1b5c459bf2},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_topological_skeletonization_topology_pre_92e3f021_v1,
  title = {topological skeletonization (topology-preserving thinning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/topological-skeletonization-topology-preserving-thinning/rdr_92e3f021f56f48ae9df0bf1b5c459bf2/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake