SpiderSkel: Sub-Pixel Multi-Tangent 2D Skeletonization from Inscribed-Disc Geometry
Authors: Zhexian Zhou, Lian Ren, Xiao Feng, Sebastian Scherer
Organizations: Robotics Institute, Carnegie Mellon University, Pittsburgh, PA 15213 USA · Department of Electrical and Computer Engineering, Carnegie Mellon University, Pittsburgh, PA 15213 USA · National Key Laboratory of Wireless Communications, University of Electronic Science and Technology of China, Chengdu, Sichuan 610054, China
Skeletonization reduces a binary shape to a compact medial representation, but pixel-grid discretization perturbs the boundary-contact geometry underlying the medial axis, creating tension among connectivity, reconstruction fidelity, and skeleton compactness. SpiderSkel is a family of training-free two-dimensional skeletonization methods built on multi-tangent inscribed-disc geometry. A tie-aware exact Euclidean distance transform retains tied nearest boundary sites rather than collapsing them to a single label; medial candidates are localised to sub-pixel positions from the inscribed disc's tangent contacts, filtered by the angular span of those contacts, and completed by connectivity-aware refinement. Across nineteen public benchmarks comprising 11,323 images of shapes, retinal vessels, cracks and roads, and document images, a single operating point fixed across datasets yields skeletons that, on every image, have exact skeleton topology under the component/hole certificate, remain fully connected, and have exact per-object reconstruction topology. The three SpiderSkel variants are the only evaluated methods to satisfy all three properties across every category; within each category, every variant is Pareto-optimal with respect to all twenty-two baselines in strict sub-pixel reconstruction Dice versus reduction rate. Incremental engines for all three variants reproduce the skeleton of a complete recomputation exactly across 23,040 verified edit steps, with median update latencies of 15.4-18.1 ms per foreground edit and 4.3-4.4 ms per canvas edit, and speedups reaching 33.0-fold on canvas edits.
Figures & tables
Fig. 1: Diagnostic qualitative comparison across the four benchmark categories. Columns: SpiderSkel-N8 and one representative each of the medial-axis, thinning, flux-based and learned families; the gray silhouette in every cell is the input mask. Geometric skeletons are coloured by local radius, from thick to thin, with junctions in red and endpoints in blue; the Attention U-Net column shows the raw network output, without thinning post-processing. Orange marks mask pixels the reconstruction misses. Scores below each cell are computed on the rendered cell: SkelReconQS (printed SRQS), strict sub-pixel reconstruction Dice (Dice sp ) and Reduction Rate (Reduct.), all %, defined in Section IV-A3 . Thin-structure rows are shown at higher magnification. All rows are held out from the learned baseline’s training data and are hand-picked for illustration; Table II gives the quantitative comparison.
Hesselink (2007) [ 13 ]
Hesselink–Roerdink (2008) [ 15 ]
Luo–Guibas–Zhao (2011) [ 14 ]
This work
Computed output
Exact feature-transform set
Exact IMA skeleton
Closest-point skeleton
Exact distances + tangent set
Treatment of ties
All nearest sites
One lexical minimiser
Approximate; multiplicity inferred
All tied nearest sites
Complexity
Linear time
Linear time
Iterative fast sweeping
O(N+T) ; T = tie mass
Dimension
Arbitrary
Arbitrary (2D/3D shown)
2D/3D
2D study
Memory
Linear arrays plus feature lists
Coordinate vector per point
Distance, closest-point grids
O(N+NfNmax)
Interpolation
No
No
No
Yes, multi-tangent subpixel
TABLE I: Claim-by-claim scope comparison with the nearest exact feature-transform and closest-point skeleton literature ( N pixels, Nf foreground, Nmax cap). Exact feature transforms are prior work; ours differs in the steps that follow
Fig. 2: The reported 2D pipeline ( Eq. 13 ) at the default operating point (ϕl,ϕh)=(0,13π/16) : nine panels trace the SpiderSkel-N8 path, input mask to skeleton, one execution of the implementation on a constructed exemplar not drawn from any benchmark dataset; SpiderSkel-DualC and SpiderSkel-Scaffold diverge as Section III-F specifies. (a) Input mask. (b) Exact EDT, multi-valued nearest-site pixels marked, zooming one tied pixel P , its working set and its geometry-adaptive stencil ( Section III-C ). (c) Subpixel interpolation, each kept candidate P~ at its interpolated position with anchor threads to its two tangent sites; inset: the adaptive neighbourhood’s tangent-line schematic. (d) The tangent-angle span field, cutoffs ϕl,ϕh on the colourbar ( Eq. 11 ). (e) Support-sampling verdicts, green (pass) and red (fail) insets replaying Section III-E2 (square: integer pixel; diamond: sampling centre P~ ; dots count toward support, crosses do not). (f) Connect-aware offsetting, realising the offset ratio of Eq. 9 as moves to lattice neighbours. (g) Topology-aware refinement, insets zooming one guard-kept junction source (removal would disconnect) and one removed non-champion fragment. (h) DT-ordered thinning (halo: removed width). (i) The final skeleton; zoom insets show raw pixels on the lattice.
Per category
Aggregate
Shape matching
Retinal vessel
Crack & road
Document bin.
Method
SRQS ↑
Reduct. ↑
Dice sp↑
SRQS ↑
Reduct. ↑
Dice sp↑
SRQS ↑
Reduct. ↑
Dice sp↑
SRQS ↑
Reduct. ↑
Dice sp↑
Overall ↑
SpiderSkel
N8
96.47 [-2pt] 1.0 / 1.0
95.71 [-2pt] 1.0
99.82 [-2pt] 1.0
79.71 [-2pt] 1.0 / 1.0
76.15 [-2pt] 1.0
99.51 [-2pt] 1.0
83.68 [-2pt] 1.0 / 1.0
82.42 [-2pt] 1.0
99.91 [-2pt] 1.0
82.89 [-2pt] 1.0 / 1.0
82.13 [-2pt] 1.0
99.83 [-2pt] 1.0
91.09 ∗∗ ( ± 0.11) [-2pt] 1.0 / 1.0
DualC
96.47 [-2pt] 1.0 / 1.0
95.70 [-2pt] 1.0
99.82 [-2pt] 1.0
79.70 [-2pt] 1.0 / 1.0
76.12 [-2pt] 1.0
99.51 [-2pt] 1.0
83.68 [-2pt] 1.0 / 1.0
82.41 [-2pt] 1.0
99.91 [-2pt] 1.0
82.88 [-2pt] 1.0 / 1.0
82.11 [-2pt] 1.0
99.83 [-2pt] 1.0
91.09 ∗∗ ( ± 0.11) [-2pt] 1.0 / 1.0
Scaffold
96.22 [-2pt] 1.0 / 1.0
94.91 [-2pt] 1.0
99.87 [-2pt] 1.0
79.73 [-2pt] 1.0 / 1.0
75.68 [-2pt] 1.0
99.51 [-2pt] 1.0
83.79 [-2pt] 1.0 / 1.0
82.12 [-2pt] 1.0
99.92 [-2pt] 1.0
82.64 [-2pt] 1.0 / 1.0
81.31 [-2pt] 1.0
99.91 [-2pt] 1.0
90.94 ∗∗ ( ± 0.11) [-2pt] 1.0 / 1.0
Distance transform
medial_axis [ 1 ]
92.18 [-2pt] 0.65 / 1.0
94.90 [-2pt] 1.0
99.23 [-2pt] 1.0
76.98 [-2pt] 0.26 / 1.0
75.74 [-2pt] 1.0
97.29 [-2pt] 1.0
82.46 [-2pt] 0.62 / 1.0
82.09 [-2pt] 1.0
98.43 [-2pt] 1.0
61.38 [-2pt] 0.21 / 0.99
82.33 [-2pt] 1.0
97.56 [-2pt] 1.0
86.62 ( ± 0.30) [-2pt] 0.56 / 0.99
TABLE II: Category-wise comparison, scores in %, higher is better. SRQS is SkelReconQS, the composite skeleton-reconstruction quality score ( Eq. 14 ); Reduct. is the Reduction Rate, the fraction of foreground the skeleton discards; Dice sp is strict sub-pixel reconstruction Dice (Section IV-A3 defines all three). SRQS cells additionally stack Tskel / Trecon , the skeleton-topology and reconstruction-topology certificates, on a [0,1] scale; a bold green 1.0 denotes exactly one. The top three SRQS entries per column carry a green gradient ( best bold, second underlined); Reduct. and Dice sp are unranked. Overall is the equal-weight macro-mean over the nineteen datasets, (±h) its 95% confidence half-width; stars mark Holm-corrected significance against the highest-scoring baseline in the Overall column ( ∗p<0.05 , ∗∗p<0.01 ). Ties break at full precision (SpiderSkel-N8 and SpiderSkel-DualC, 0.004 pp apart in Overall, are effectively tied); implementations: Supplementary Table
Fig. 3: Macro-median end-to-end wall-clock (log scale, x -axis) against the Overall SkelReconQS of Table II ( y -axis). The three SpiderSkel variants nearly coincide at this scale; the dense iterative-thinning cluster is keyed T1–T9 below the plot. The two learned methods appear as their released models.
Δ SkelReconQS (pp, Overall)
Component
Substitution
SpiderSkel-N8
SpiderSkel-DualC
SpiderSkel-Scaffold
Affected diagnostics
Geometry-adaptive neighbourhood
removed (center only)
−82.55
−82.76
−29.11
Tskel 0.888/0.705/1; Dice sp −68.4 pp
main axis only
−24.67
−25.34
−0.04
Tskel 0.927/0.867/1; Dice sp −2.0 pp
fixed 4-neighbourhood
−0.90
−0.90
−0.04
Tskel 0.990/0.990/1
all 8 neighbours
+0.01
+0.01
+0.10
reduction −0.2 pp
Multi-label tangent set
single label
−0.04
−0.04
+0.08
–
TABLE III: Component substitutions: each advocated shared-core component replaced by a simpler or denser alternative, all else fixed, for the three SpiderSkel variants, componentwise on all 11,323 benchmark images. Unmodified runs reproduce the main benchmark’s skeletons image for image. “Affected diagnostics” lists the exact-topology fraction Tskel (N8/DualC/Scaffold), skeleton density (Reduction), and strict sub-pixel reconstruction Dice (Dice sp ), the latter two worst-of-three. The Scaffold variant has no offset-safety dial: its offset construction is the anchor architecture itself
Fig. 4: Absolute SkelReconQS (%) under the twelve-condition robustness protocol on the paired 2,715-image subset, per benchmark category. Each degradation axis has three severities: Perturb (amplitude a=0.5,1.0,2.0 ), Dilate (radius k=1,3,5 ), Resol. (factor 2×,4×,8× ) and Rotate ( 15∘,30∘,45∘ ); lines are not joined across axis groups. The y axis is the logit log(s/(100−s)) of the score s , ticks labelled in score units; panels use independent y limits, and vertical distances compare only within a panel. Red line: SpiderSkel-N8; band: the three variants’ min–max envelope.
Perturb.
Dilat.
Resol.
Rot.
Method
Mil.
Mod.
Sev.
Mil.
Mod.
Sev.
Mil.
Mod.
Sev.
Mil.
Mod.
Sev.
N8
94.2
94.2
94.5
95.5
96.9
97.5
94.9
94.3
95.6
93.9
93.8
93.7
DualC
94.2
94.2
94.5
95.5
96.9
97.5
94.9
94.3
95.6
93.9
93.8
93.7
Scaffold
94.0
93.8
94.2
95.6
96.9
97.5
94.8
94.3
95.6
92.9
92.5
92.1
guo-hall
87.1
87.3
87.1
86.4
85.7
85.1
87.0
84.3
81.6
88.0
87.5
86.5
hjs
91.2
90.0
89.1
94.8
95.8
96.1
93.5
93.6
94.6
91.1
91.3
90.8
TABLE IV: SkelReconQS (%) under the four degradation axes ( Perturb. = boundary perturbation, Dilat. , Resol. , Rot. ) at three severities each, on the deterministic 2,715-image evaluation subset. Bold shaded rows are the SpiderSkel variants N8 , DualC and Scaffold. Each cell is the pooled mean of the method’s per-image scores on the degraded input; the dataset-macro view is Fig. 4
Foreground edits
Canvas edits
Method
Paired [-2pt] [CI 95 ]
Update [-2pt] [ms]
Text [-2pt] stratum
Paired [-2pt] [CI 95 ]
Update [-2pt] [ms]
Marginal
N8
1.55 × [-2pt] [1.52,1.58]
18.1
17.37 ×
26.35 × [-2pt] [25.31,27.25]
4.4
19.71 ×
DualC
2.61 × [-2pt] [2.42,2.79]
16.4
29.06 ×
32.96 × [-2pt] [31.66,34.01]
4.4
27.46 ×
Scaffold
1.67 × [-2pt] [1.63,1.71]
15.4
15.95 ×
21.14 × [-2pt] [20.51,21.94]
4.3
16.16 ×
TABLE V: Paired incremental timing of the no-reduce variants over the fixed stratified sample, for foreground and canvas edit workloads. Paired: median speedup of the incremental update over the complete recomputation ( × , with 95% confidence interval); Update: the incremental update’s pooled per-step median wall-clock (ms); the Text-stratum and Marginal columns are defined in the text
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Paper name
Implementation / version
Configuration
lee
scikit-image 0.24.0, skeletonize(method=’lee’)
Defaults.
zhang b
scikit-image 0.24.0, skeletonize(method=’zhang’)
Defaults.
medial_axis
This work’s deterministic C++ port of scikit-image 0.24.0 medial_axis
Reference defaults, with a fixed raster-index tie-break in place of the reference’s PRNG shuffle over equal-key pixels ( rng=None ), so the scored skeleton is reproducible.
thinning
scikit-image 0.24.0, thin (Guo–Hall)
Defaults; same algorithm as guo-hall , independent implementation.
sitk
SimpleITK 2.5.3, BinaryThinning
Defaults; array round trip.
guo-hall
OpenCV 4.11.0.86, ximgproc.thinning
Input scaled to {0,255} ; THINNING_GUOHALL .
Appendix
TABLE S1: Baseline implementation audit. Package versions are those of the paper environment; vendored adapters are pinned by repository snapshot 174362d . Unless a row says otherwise, the adapter accepts and returns a two-dimensional Boolean mask
Method
SkelReconQS
Tskel
Trecon
Conn
Reduct.
Dice sp
SpiderSkel-N8
96.59
1.000
1.000
1.000
94.99
99.77
SpiderSkel-DualC
96.59
1.000
1.000
1.000
94.99
99.77
SpiderSkel-Scaffold
96.50
1.000
1.000
1.000
94.70
99.80
Medial axis
93.88
0.206
1.000
1.000
92.58
99.59
Zhang
90.14
1.000
0.999
1.000
96.09
98.02
Lee
86.88
1.000
1.000
1.000
96.47
97.15
Appendix
TABLE S2: Learned-skeletonizer comparison under SkelReconQS on the held-out shape test split ( N=1208 images, twelve datasets; one frozen split and preprocessing for every method). SkelReconQS and its terms use the common integer decoder for every method; only Dice sp decodes SpiderSkel at its sub-pixel centres. Best per column in bold
Automatic extraction of vessel skeletons is crucial for many clinical applications. However, achieving topologically faithful delineation of thin vessel skeletons remains highly challenging, primarily due to frequent discontinuities and the presence of spurious skeleton segments. To address these difficulties, we propose TopoVST, a topology-fidelitious vessel skeleton tracker. TopoVST constructs multi-scale sphere graphs to sample the input image and employs graph neural networks to jointly estimate tracking directions and vessel radii. The utilization of multi-scale representations is enhanced through a gating-based feature fusion mechanism, while the issue of class imbalance during training is mitigated by embedding a geometry-aware weighting scheme into the directional loss. In addition, we design a wave-propagation-based skeleton tracking algorithm that explicitly mitigates the generation of spurious skeletons through space-occupancy filtering. We evaluate TopoVST on two vessel datasets with different geometries. Extensive comparisons with state-of-the-art baselines demonstrate that TopoVST achieves competitive performance in both overlapping and topological metrics. Our source code is available at: https://github.com/EndoluminalSurgicalVision-IMR/TopoVST.
Yaoyu Liu, Minghui Zhang, Junjun He +1
Institute of Medical Robotics, Shanghai Jiao Tong University, Shanghai, China. · School of Automation and Intelligent Sensing, Shanghai Jiao Tong University, Shanghai, China. · Shanghai AI Lab, Shanghai, China.
Advancements in 3D curve skeletonization are accelerating progress across a wide range of applications. However, developing robust skeletonization algorithms that capture intricate object details remains challenging. Skeletonization via Local Separators (LS) offers an efficient graph-based approach but suffers from representation inaccuracies due to its discrete nature. To address this, we introduce CSCD, a novel framework for Curve Skeletonization in the Continuous Domain, generalizing LS to manifolds. Specifically, we present two realizations: CSCD-M for meshes and CSCD-PC for point clouds. CSCD-M leverages the intrinsic triangulation of a mesh for resilience to noise and improved topological preservation, while CSCD-PC employs tufted Laplacians for enhanced robustness. To our knowledge, CSCD-M is the first intrinsic method for curve skeletonization. Our results show CSCD-M matches LS performance across diverse meshes and outperforms LS (TOG'21) on benchmarks like Thingi10k dataset. CSCD-PC qualitatively outperforms CoverageAxis++ (Eurographics'24) and EPCS (CAG'23). Finally, we demonstrate the efficacy of CSCD in a few downstream tasks: object classification, shape segmentation, identifying handles, tunnels, and constrictions in objects. Project Website: https://cscd-skel.pages.dev
Existing natural-scene skeleton detectors follow an RGB-representation-based feature encoding paradigm: they locate skeletons within the RGB appearance space, in which the skeleton's shape and topology can only be inferred implicitly from entangled color and texture cues. Despite notable progress, this encoding paradigm degrades markedly on complex scenes such as cluttered or occluded ones, where appearance distractors overwhelm the weak structural signal. We observe that depth images are inherently insensitive to color and texture and provide clear regional contours and inter-region spatial relationships, which naturally eases the difficulty of skeleton detection in complex scenes. Motivated by this, we propose for the first time a novel skeleton detection paradigm built on depth-representation-dominant feature encoding, in which depth dominates and RGB serves as the auxiliary, and present a model, DDSkel, under this paradigm. DDSkel adopts an asymmetric encoder design that fuses the feature representation of RGB images into that of depth images, with the RGB branch containing only 23% of the parameters of the depth branch. DDSkel has a simple structure without intricate designs. Nevertheless, with only about 19% of the trainable parameters of the largest state-of-the-art methods, DDSkel attains the highest F-measure scores on four mainstream benchmarks, namely SK506, SK-LARGE, WH-SYMMAX, and SymPASCAL. Extensive experiments suggest that for natural-image skeleton detection, the depth-dominant paradigm is a more suitable choice than the RGB-based paradigm, achieving better performance with substantially fewer parameters.
Chengkun Rao, Xinrong Hu, Min Li +7
School of Computer Science and Artificial Intelligence, Wuhan Textile University