cleanSkel

Remove branches in skeleton.
163 Downloads
Updated 7 Feb 2019

View License

Simple function to remove spurious branches out of a skeleton. Also allow to precise which branches to keep by entering linear indices of their endpoints (use sub2ind function to find linear indices).
Example : cleanskel = cleanSkel(bwmorph(imread('circles.png'),'skel',Inf),[]);
imshow([imread('circles.png'),bwmorph(imread('circles.png'),'skel',Inf),cleanskel])

Cite As

Geoffrey Schivre (2026). cleanSkel (https://uk.mathworks.com/matlabcentral/fileexchange/69278-cleanskel), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Matrices and Arrays in Help Center and MATLAB Answers
Version Published Release Notes
9.4.1

Correct protEnd input to always be a column vector
Add modification to allow the algorithm to be used on 3d skeleton

9.4.0