13,051,413 members (61,076 online)
Rate this:
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 8-Apr-13 11:00am

Rate this:

## Solution 1

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
Hard_Rockz 9-Apr-13 1:40am

Thank you so much....

My pleasure.
Good lick, call again.
—SA

Top Experts
Last 24hrsThis month
 OriginalGriff 483 Graeme_Grant 151 Sheila Pontes 110 Afzaal Ahmad Zeeshan 110 ppolymorphe 85
 OriginalGriff 5,431 RickZeeland 1,944 ppolymorphe 1,838 F-ES Sitecore 1,606 Dave Kreskowiak 1,409