Prunning skeletons [closed]

asked 2016-06-01 09:23:41 -0500

manatttta gravatar image


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.

image description

image description

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-03 06:20:21.229356


You can try a dilatation/erosion (closing) or a dilatation before skeletonization.

Generally morphological operators can be easily combined to get the desired result.

kbarni gravatar imagekbarni ( 2016-06-01 09:28:26 -0500 )edit

Can't get quite the result I was expecting (no branches). Will investigate better, thank you!!

manatttta gravatar imagemanatttta ( 2016-06-02 04:12:26 -0500 )edit