Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Mathematical Morphology > Thinning >

Thinning

Thinning[image]
finds the skeletons of foreground regions in image by applying morphological thinning until convergence.
Thinning
performs n iterations of morphological thinning.
Thinning
treats values above t as foreground.
  • Thinning yields a binary image in which pixels representing the morphological skeleton have value 1 and others have value 0.
  • Thinning works with binary, grayscale, and arbitrary multichannel images, as well as real matrices.
  • Thinning takes a Padding option that specifies the values to assume for pixels outside the image. The default setting is Padding.
  • Thinning supports a Method option which specifies what thinning algorithm to be used. Possible settings include:
"Morphological"morphological thinning (default)
"MedialAxis"approximate medial axis
Morphological thinning of an image:
Morphological thinning of an image:
In[1]:=
Click for copyable input
Out[1]=
Applying the morphological thinning to a label matrix:
Thinning a grayscale image using a specific foreground threshold:
Find the approximate medial axis:
The padding value affects objects adjacent to the boundary:
Pad with the foreground value:
Simplify features in a fingerprint image:
Use the image skeleton to construct a graph:
Extract possible paths through a maze:
Find the approximate Voronoi diagram of the foreground objects:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF