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 [image,t]
treats values above t as foreground.
Details and Options
- SkeletonTransform effectively gives the medial axis of foreground objects multiplied with the distance transform.
- 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.
- The inverse of SkeletonTransform can be computed using InverseDistanceTransform .
- For multichannel images, SkeletonTransform operates on the intensity averaged over all channels.
- SkeletonTransform [image] is equivalent to SkeletonTransform [image,0].
- The following options can be given:
- Possible settings for the Method option are "MedialAxis" and "ReducedMedialAxis".
Examples
open allclose allBasic Examples (1)
Skeleton transform of a binary image:
Scope (2)
Skeleton transform applied to text:
Skeletons of color shapes:
Options (3)
Method (2)
By default the full medial axis is returned:
Compute reduced medial axis:
Reduced medial axis of color shapes:
Padding (1)
By default, zero padding is assumed:
Specify a different padding scheme:
Applications (1)
Simplify a shape by pruning its skeleton:
Reconstruct the simplified shape:
Properties & Relations (1)
InverseDistanceTransform gives the exact inverse of SkeletonTransform :
Tech Notes
Related Guides
Text
Wolfram Research (2010), SkeletonTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/SkeletonTransform.html (updated 2014).
CMS
Wolfram Language. 2010. "SkeletonTransform." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/SkeletonTransform.html.
APA
Wolfram Language. (2010). SkeletonTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SkeletonTransform.html
BibTeX
@misc{reference.wolfram_2025_skeletontransform, author="Wolfram Research", title="{SkeletonTransform}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/SkeletonTransform.html}", note=[Accessed: 14-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_skeletontransform, organization={Wolfram Research}, title={SkeletonTransform}, year={2014}, url={https://reference.wolfram.com/language/ref/SkeletonTransform.html}, note=[Accessed: 14-April-2025 ]}