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])
Citar como
Geoffrey Schivre (2024). cleanSkel (https://www.mathworks.com/matlabcentral/fileexchange/69278-cleanskel), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2018a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Matrices and Arrays en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.