Skeletonization

Main routines for fast 3d skeletonization.

Note

Supported algorithsm are:

References

Palagy1999

Palagyi & Kuba, A Parallel 3D 12-Subiteration Thinning Algorithm, Graphical Models and Image Processing 61, 199-221 (1999).

Raynal2000
  1. 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.