Skeletonization / thinning issue
Hi all!
First : im working on a skeletonized picture
After skeletonization the lines are "snaky" and not straight.
My problem:
1. how to straighten out the lines?
2. how to remove the small unwanted branches sticking out everywhere?
Anyone got some ideas for this or know about some good reading on the topic?
Thanks in advance!
Re: Skeletonization / thinning issue
You'll have to tell us what you mean by "skeletonized".
If your picture is in some sort of bitmap form, you can use an anti-aliasing algorithm to "smooth" out the diagonal lines, giving them the appearance of being straight.
1 Attachment(s)
Re: Skeletonization / thinning issue
Hi again and thank you for your answer!
Skeletonization is a morphological algorithm based up the morphological oprations erosion and dilation. You have a binary image(black and white) on which you have performed erosion / dilation and you thin/skeletonzie the wanted areas to a width of one pixel.
As you can see from the image attatched, the lines are not straight which gives me a problem if i want to plot them using Line2D. as for the small branches, they are unwanted "noise" which i somehow need to remove.
Thanks again for your help!
Re: Skeletonization / thinning issue
Can u give the source code for thinning the image character