Skeletonization#
Main routines for fast 3d skeletonization.
Note
Supported algorithsm are:
ClearMap.ImageProcessing.Skeletonization.PK12
- parallel 3d 12 sub-iteration thinning algorithm by Palagyi and Kuba [Palagy1999].RC6 - parallel 3d 6 sub-iteration istmus-based thinning algorithms [Raynal2000].
References
Palagyi & Kuba, A Parallel 3D 12-Subiteration Thinning Algorithm, Graphical Models and Image Processing 61, 199-221 (1999).
Raynal and M. Couprie, Istmus-Based 6-Directional Parallel Thinning Algorithms.
- skeletonize(source, sink=None, points=None, method='PK12i', steps=None, in_place=False, verbose=True, **kwargs)[source]#
Skeletonize 3d binary arrays.
Arguments
- sourcearray or source
Binary image to skeletonize.
- sinksink specification
Optional sink.
- pointsarray or None
Optional point list of the foreground points in the binary.
- methodstr
‘PK12’ or faster index version ‘PK12i’.
- stepsint or None
Number of maximal iteration steps. If None, maximal thinning.
- in_placebool
If True, the skeletonization is done directly on the input array.
Returns
- skeletonSource
The skeletonized array.