bwskel
Reduce all objects to lines in 2-D binary image or 3-D binary volume
Description
reduces all objects in the 2-D binary image B
= bwskel(A
)A
to 1-pixel wide
curved lines, without changing the essential structure of the image. This process,
called skeletonization, extracts the centerline while
preserving the topology and Euler number (also known as the Euler characteristic) of
the objects.
Examples
Input Arguments
Output Arguments
Tips
While both
bwskel
andbwmorph
can skeletonize 2-D images, you can get different results usingbwmorph
than when usingbwskel
. Because they use different algorithms, thebwskel
function uses 4-connectivity with 2-D images;bwmorph
uses 8-connectivity.bwskel
assumes that foreground objects in the binary image are white (logicaltrue
). If your image has a white background and black objects, then use the complement of your image as the input tobwskel
. You can compute the complement by usingimcomplement
.
Algorithms
The
bwskel
function uses the medial axis transform.
References
[1] Ta-Chih Lee, Rangasami L. Kashyap and Chong-Nam Chu. Building skeleton models via 3-D medial surface/axis thinning algorithms. Computer Vision, Graphics, and Image Processing, 56(6):462-478, 1994.
[2] Kerschnitzki, M, Kollmannsberger, P, Burghammer, M. et al. Architecture of the osteocyte network correlates with bone material quality. Journal of Bone and Mineral Research, 28(8):1837-1845, 2013.