Prunning skeletons [closed]

asked Jun 1 '16

manatttta gravatar image

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.

image description

image description

Preview: (hide)

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

Comments

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 (Jun 1 '16)edit

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

manatttta gravatar imagemanatttta (Jun 2 '16)edit