SpiderSkel: Sub-Pixel Multi-Tangent 2D Skeletonization from Inscribed-Disc Geometry

Zhexian Zhou, Lian Ren, Xiao Feng, Sebastian SchererarXiv 2026

TL;DR

Finding the clean, central "spine" of a 2D shape—a process called skeletonization—usually forces an annoying trade-off: keep the skeleton compact, keep it connected, or keep enough detail to accurately rebuild the original shape. SpiderSkel breaks this compromise without needing neural networks or training data. By peeking between the pixels using exact circle-fitting geometry, it extracts skeletons across 11,323 diverse images without breaking a single loop or disconnecting a single branch—and updates in milliseconds when you edit the image.

What Problem Does This Paper Address?

Imagine lighting a grassfire simultaneously along the entire outer border of a shape; the lines where the firefronts meet and quench each other form the medial axis, or skeleton. It is a foundational representation in computer vision, used for everything from analyzing blood vessels to reading handwriting and animating 3D characters.

In continuous math, the medial axis is pristine: it is the path of centers of circles that touch the boundary in at least two places ("inscribed discs"). On a computer screen, however, shapes live on a rigid pixel grid. That grid acts like a funhouse mirror, jittering boundary positions and scrambling tangent points. Classical algorithms either iteratively peel away border pixels (which can accidentally snap thin connections or miss parts of the shape) or hunt for ridges in a distance map (which often creates noisy spurs or broken branches). Deep learning approaches exist, too, but require painstakingly hand-drawn ground-truth skeletons and still frequently break topological rules (like tearing a loop open).

The authors ask: can we rescue the exact continuous geometry from the pixel grid to get a skeleton that is compact, topologically faithful, and able to reconstruct the original shape?

Methods

SpiderSkel is a training-free, six-stage geometric pipeline (with three variants: N8, DualC, and Scaffold) built on top of an established tool called the Exact Euclidean Distance Transform (EDT), which measures the exact distance from every interior pixel to the nearest boundary.

The SpiderSkel pipeline tracing an input shape through exact distance ties, sub-pixel interpolation, angular filtering, and topology-aware thinning.

Here is how SpiderSkel innovates downstream of standard distance transforms:

  • Tie-Aware Working Sets: Standard distance transforms usually pick one arbitrary winner when multiple boundary pixels tie for "closest." SpiderSkel modifies Meijster’s linear-time EDT to catch all tied boundary contacts, keeping a deterministic set of representatives.
  • Sub-Pixel Multi-Tangent Interpolation: Because true medial points rarely sit dead-center on a pixel, SpiderSkel pairs tangent points across a geometry-adaptive neighborhood and finds the exact off-grid (sub-pixel) spot equidistant to them, keeping only contacts on the nearest distance shell.
  • Angular Span & Support Filtering: To tell true skeletal branches apart from tiny boundary bumps, it measures the angle spanned by the tangent contacts around a candidate point. Wide angles stay; narrow angles get pruned; borderline angles take a quick deterministic "support test" that samples an arc between tangents to check if solid foreground lies between them.
  • Connectivity-Aware Refinement: Finally, candidates are snapped back to integer pixels for the mask (while saving sub-pixel coordinates for high-precision reconstruction) and thinned. N8 and DualC use local topological guards so branches don't disconnect, while Scaffold erodes the shape directly onto anchored candidates using simple-point deletions—preserving connected components and holes by construction.
  • Incremental Engine: For interactive editing, SpiderSkel caches object crops and candidate fields so local brush strokes only recompute affected regions, guaranteeing the exact same output as a full re-run.

Datasets

Because SpiderSkel requires zero training, all 19 public benchmarks (11,323 images, 31,209 objects) are used strictly for evaluation across four domains:

  • Shape Matching (12 datasets): Animal2000, Articulated Shapes, EM200, Kimia216, Kimia99, MPEG400, MPEG7, Smithsonian Leaves, Swedish Leaves, Tari56, Tetrapod120, and WH-SYMMAX.
  • Retinal Vessels (3 datasets): CHASE_DB1, DRIVE, and STARE.
  • Cracks and Roads (3 datasets): CrackForest, DeepGlobe, and Massachusetts Roads.
  • Document Binarization (1 pooled benchmark): DIBCO / H-DIBCO (2009–2018 competitions).

No new datasets were introduced, though the authors propose a composite evaluation metric—SkelReconQS—that grades topological preservation, connectivity, compactness, and shape reconstruction accuracy simultaneously.

Key Insights and Ideas

  • One Knob Setting Rules Them All: Usually, geometric algorithms need delicate per-dataset tuning (what works on a fat horse silhouette fails on a 2-pixel-wide capillary). SpiderSkel fixes a single angular threshold across all 19 datasets and never breaks topology once.
  • Separation of Duties: Ablation experiments revealed a neat architectural split: sub-pixel interpolation does the heavy lifting for reconstruction accuracy (removing the adaptive neighborhood drops the quality score by over 82 percentage points!), whereas the angular filter and offset guards act as safety nets that protect topological perfection.
  • Aggregate Overlap Hides Deep Cuts: A skeleton can score 99% pixel overlap on reconstruction while still completely amputating a thin branch or road stub. Penalizing worst-case omission depth turns out to be critical for telling great thin-structure skeletons apart from flawed ones.

Key Results

  • 100% Topological Fidelity: Across all 11,323 images, all three SpiderSkel variants achieved a perfect 1.0 in skeleton topology, connectivity, and per-object reconstruction topology in every category—the only methods out of 25 total (3 variants + 22 baselines) to do so.
  • Quality & Pareto Optimality: SpiderSkel-N8 and DualC tied at 91.09% Overall SkelReconQS (Scaffold hit 90.94%), significantly beating the strongest baseline (medial_axis at 86.62%, $p < 0.01$). Every variant was Pareto-optimal against all 22 baselines in strict sub-pixel reconstruction Dice (99.51%–99.92%) vs. foreground reduction rate (75.68%–95.71%).
  • Rock-Solid Robustness: Under 12 degradation tests (boundary noise, dilation, downsampling, rotation), SpiderSkel ranked #1 in every condition. On noisy/rotated retinal vessels, where classic flux skeletons (hjs) collapsed by 45–50 points, SpiderSkel never dropped below 77.1%.
  • Fast, Exact Edits: Full runs take ~62–83 ms (4–7$\times$ slower than the fastest thinning baselines, but Pareto-optimal in speed vs. quality). Incremental updates matched full recomputations 100% of the time across 23,040 edits, taking just 15.4–18.1 ms for foreground edits and 4.3–4.4 ms for canvas edits (up to a 33.0$\times$ speedup).

Limitations and Future Work

  • Open Theoretical Proofs: While Scaffold preserves component and hole counts by construction, N8 and DualC rely on deterministic local heuristics. A formal digital-homotopy equivalence proof for the full pipeline—and a theoretical local-influence bound for the incremental engine—remain open math problems.
  • Boundary Roughness & Thin Shapes: Because evaluation rewards reconstructing every bump with discs, rough road masks can leave tiny terminal stubs, and silhouettes only 2–3 pixels wide can yield slightly denser skeletons than strict 1-pixel thinning (though an optional reduction pass is included in their code).
  • 2D Only (For Now): While the underlying math generalizes to higher dimensions, this work is strictly developed and tested in 2D; extending to 3D volumes and expanding their pilot skeleton-to-graph analysis tool are natural next steps.

Summary updated

BibTeX
@misc{zhou2026spiderskel,
  author = {Zhexian Zhou and Lian Ren and Xiao Feng and Sebastian Scherer},
  title = {{SpiderSkel: Sub-Pixel Multi-Tangent 2D Skeletonization from Inscribed-Disc Geometry}},
  year = {2026},
  eprint = {2611.33805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33805},
}
Figure