Better Skeletonization
The files in this package comprise the Matlab implementation of a method for skeletonizing binary images. These are my own implementation
of a skeletonization method communicated to me by Alex Telea
(http://www.win.tue.nl/~alext/). See his papers for more details.
Skeletonization is (roughly speaking) the "thinning" of a binary image or silhouette to a one-pixel width spine. The image processing toolbox provides support for skeletonization via the bwmorph function, but its results do not always conform with our intuition. I have found that the approach used herein usually generates a more pleasing result.
There is also a routine for locating endpoints and junctions in skeletonized images.
(Note: This code has not been optimized for speed.)
Bug fix 7/18/07: In rare instances, isolated points would incorrectly be assigned an infinite value for skg.
Cite As
Nicholas Howe (2025). Better Skeletonization (https://www.mathworks.com/matlabcentral/fileexchange/11123-better-skeletonization), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Morphological Operations >
Tags
Acknowledgements
Inspired: tree labelling, Vessel branch segmentation, Matlab-Walking-Fish, Anaskel written in Matlab
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Bug fix. In rare instances, isolated points would incorrectly be assigned an infinite value for skg. |