image thumbnail

Better Skeletonization

version (10.8 KB) by Nicholas Howe
Provides an alternative to the image toolbox skeletonization implemented in bwmorph.


Updated 19 Jul 2007

View License

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
( 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 (2022). Better Skeletonization (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!