bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / morphology / _skeletonize_various_cy / _fast_skeletonize
cython_function_or_method
skimage.morphology._skeletonize_various_cy:_fast_skeletonize
Signature
def _fast_skeletonize ( image ) Summary
Optimized parts of the Zhang-Suen [1] skeletonization. Iteratively, pixels meeting removal criteria are removed, till only the skeleton remains (that is, no further removable pixel was found).
Extended Summary
Performs a hard-coded correlation to assign every neighborhood of 8 a unique number, which in turn is used in conjunction with a look up table to select the appropriate thinning criteria.
Parameters
image: numpy.ndarrayA binary image containing the objects to be skeletonized. '1' represents foreground, and '0' represents background.
Returns
skeleton: ndarrayA matrix containing the thinned image.
Aliases
-
skimage.morphology._skeletonize._fast_skeletonize