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])
引用格式
Geoffrey Schivre (2024). cleanSkel (https://www.mathworks.com/matlabcentral/fileexchange/69278-cleanskel), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2018a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Matrices and Arrays 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!