Function Index
BinarySkeleton
BinarySkeleton[
img
]
returns a skeleton of a binary image
img
.
BinarySkeleton[
img, s
]
returns a skeleton of a binary image
img
, using structuring element
s
.
The default structuring element is a 3 × 3 array of ones.
The option
Method
selects between the following two thinning algorithms:
Method
→
"
morphology
"
uses a recursive morphological algorithm (the default).
Method
→
"
Zhang
"
uses an iterative border thinning algorithm [
Zha84
].
If a structuring element
s
is defined, the default morphological thinning algorithm is used.
The option
MaxRecursion
→
15
sets an upper limit for number of iterations of the morphological algorithm.
The argument
img
may be a matrix or
ImageData
expression.
See also User's Guide
6.5
.
Examples
This loads the package.
In[1]:=
This loads and applies the threshold operation to an example image.
In[2]:=
This shows two skeletons of binary image
A
using recursive morphology and two different structuring elements.
In[3]:=
This shows a skeleton of the binary image
A
using
Zhang
'
s
algorithm.
In[4]:=
© 2008 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: