Prunning skeletons [closed]
Hello,
I have a mask image (binary mask) and I want to skeletonize it. I have some solutions for it, but all of them return some features I'd like to remove, namely small branches and circles (see the images below). How can I do this?
I want my skeleton to be a simple continuous line with no branches nor circles.
You can try a dilatation/erosion (closing) or a dilatation before skeletonization.
Generally morphological operators can be easily combined to get the desired result.
Can't get quite the result I was expecting (no branches). Will investigate better, thank you!!