Removing small horizontal lines

Hi,

Attache is my skeletonised image. I need to get rid of the small horizontal spikes. Can anyone help me in getting rid of small spikes and just keeping the long vertical lines?

The general term for this process is ‘pruning.’ There are a few threads on this forum devoted to this topic, so I would recommend browsing those for solutions. For instance:

1 Like