Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Skeletonization / thinning issue

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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!


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default 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.

  3. #3
    Junior Member
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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!
    Attached Images Attached Images

  4. #4
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Skeletonization / thinning issue

    Can u give the source code for thinning the image character

Similar Threads

  1. Chessboard filling issue
    By olemagro in forum AWT / Java Swing
    Replies: 7
    Last Post: January 23rd, 2010, 07:07 PM
  2. Process Builder Issue
    By javameanslife in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 20th, 2010, 09:13 PM
  3. i do not know how to solve this issue
    By javastupi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 20th, 2010, 08:28 PM
  4. url pattern issue - please help me...
    By bharathik in forum JavaServer Pages: JSP & JSTL
    Replies: 2
    Last Post: November 9th, 2009, 04:28 AM
  5. Issues with Tomcat 6.0
    By sanyog24681 in forum Java Servlet
    Replies: 0
    Last Post: October 21st, 2008, 07:55 AM