First time here? Check out the FAQ!

Ask Your Question
0

Reduce line thickness - skeletonization and canny related

asked Oct 6 '13

Phoeniyx gravatar image

updated Oct 6 '13

berak gravatar image

Hey guys. I have a set of shapes with varying border thicknesses. How can I reduce their thickness to the smallest amount? (i.e. a trace of each shape with 1 pixel thickness).

When I use the "canny" method, I get the usual double border issue b/c of the large thickness of the original shape's border. When I use a skeletonization approach, I am not really sure how to implement "when to stop" the skeletonization process. The erosion & opening sequence reduces the border thickness nicely on each iteration, but if you don't stop at the right moment, then some shapes just disappear. If you stop too early, then some shapes will still be "too thick". In fact, you can't find an iteration that is satisfactory to all shapes. May have to do the skeletonization a shape at a time - then it still leaves the issue of when to stop.

Do you guys have any ideas what other techniques I can use? Thanks.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
3

answered Oct 6 '13

Guanta gravatar image
Preview: (hide)

Comments

Great, thank you. Will review that algorithm. I did search, but didn't find this post.

Phoeniyx gravatar imagePhoeniyx (Oct 6 '13)edit

Question Tools

Stats

Asked: Oct 6 '13

Seen: 8,370 times

Last updated: Oct 06 '13