How to remove small spurs (branches) from a 'thinned' image?
Show older comments
I've binarized and thinned an image using
bwmorph(image, 'thin', Inf)
However, I'm left with a small spur at the end. The spur forms an intersection (of three branches) which has to be avoided in my case. How to remove it?
Below is the binarized image.

And this is the thinned image. The spur to be removed is mentioned with red mark.

Answers (1)
Tarun Mudgal
on 13 May 2017
Edited: Tarun Mudgal
on 13 May 2017
1 vote
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!