Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, in my program i was able to detect finger tips and valleys using ConvexHull() and cvConvexityDefects(). But there are more than 1 circles in each finger tip. now i want to remove unwanted circles and draw only one circle for each finger tip.how can i do that? i hope my question is clear :-) Thanx in advance
Posted

1 solution

I think that your circles you observe on the finger tip are all nested in each other. And I think that you want to have only the outer nested circle, remove all inner ones. If this so, you can develop a simple algorithm: find a convex hull of each "circle". Say, collect all hull points and choose the "leftmost" and "rightmost" point of each "circle" and create such an x-interval between those minimal/maximum x values. If I'm not much mistaken, the inner circle will always have the nested interval compared to an outer one. This way, you will be able to find out the most outer "circle".

—SA
 
Share this answer
 
Comments
Dilan Shaminda 9-Apr-13 1:40am    
Thank you so much....
Sergey Alexandrovich Kryukov 9-Apr-13 1:52am    
My pleasure.
Good lick, call again.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900