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 2 of 2

Thread: Finding the edges of object in photo

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Finding the edges of object in photo

    Hi all!

    I'm searching photos for a white ball. Once I find something white, I want to search inside that pixel blob to see if it is round enough to be the ball I'm looking for. I know that its diameter must be between 10 and 100 pixels.

    What would be a good way to follow the edge between white and non-white pixels? And checking that the object is solid white?

    Consider it in monochrome, a pitch black image with perfectly white shapes in it. What would an efficient algorithm look like which finds all of the edge pixels of the shapes? I can solve this ad hoc with nested for loops, but its not pretty and I'm sure there's an optimal solution out there somewhere. (Once I have a list of the coordinates of the edge pixels, I can mathematically fit a circle to the data and find out if it could be a ball or not, no problem there).

    Regards


  2. #2
    Member
    Join Date
    Jan 2012
    Posts
    33
    My Mood
    Confused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Finding the edges of object in photo

    check for dramatic change in hue and/or saturation

Similar Threads

  1. Reading from ResultSet to Object and from object Object Array
    By anmaston in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 7th, 2011, 06:11 AM
  2. finding the end of ram
    By timmin in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 3rd, 2011, 09:42 AM
  3. finding pi
    By gonfreecks in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: November 2nd, 2010, 05:15 PM
  4. finding the largest object help
    By nickypass in forum Object Oriented Programming
    Replies: 4
    Last Post: October 16th, 2010, 05:48 PM
  5. 2D Object makes my object smaller, Why?
    By MassiveResponse in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 15th, 2010, 02:33 PM