This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

SkeletonTransform

SkeletonTransform[image]
gives the skeleton transform of image, in which the value of each skeleton pixel is its distance to the nearest background pixel.
SkeletonTransform
treats values above t as foreground.
  • SkeletonTransform gives an Image object in which the value of each nonzero pixel is the absolute Euclidean distance in pixels to the nearest pixel of background.
  • SkeletonTransform effectively gives the medial axis of foreground objects multiplied with the distance transform.
  • For multichannel images, SkeletonTransform operates on the intensity averaged over all channels.
  • A reduced medial axis can be obtained by setting True.
Skeleton transform of a binary image:
Skeleton transform of a binary image:
In[1]:=
Click for copyable input
Out[1]=
Skeleton transform applied to text:
Skeletons of color shapes:
Reduced medial axes:
Reduced medial axis of color shapes:
Simplify a shape by pruning its skeleton:
New in 8