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.
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:
-
Method "MedialAxis" whether to return the reduced medial axis Padding 0 padding scheme - Possible settings for the Method option are "MedialAxis" and "ReducedMedialAxis".
Examples
open all close allBasic Examples (1)
Scope (2)
Options (3)
Method (2)
By default the full medial axis is returned:
SkeletonTransform[[image]]SkeletonTransform[[image], Method -> "ReducedMedialAxis"]Reduced medial axis of color shapes:
SkeletonTransform[ColorNegate@[image], 0.1, Method -> "ReducedMedialAxis"]Applications (1)
Properties & Relations (1)
InverseDistanceTransform gives the exact inverse of SkeletonTransform:
SkeletonTransform[[image]]InverseDistanceTransform[%]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_2026_skeletontransform, author="Wolfram Research", title="{SkeletonTransform}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/SkeletonTransform.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_skeletontransform, organization={Wolfram Research}, title={SkeletonTransform}, year={2014}, url={https://reference.wolfram.com/language/ref/SkeletonTransform.html}, note=[Accessed: 13-June-2026]}