Ask Your Question
0

Opencv remove convexity defects from convex Hull

asked 2014-09-06 13:06:16 -0600

cmc gravatar image

I have an image with a convexHull drawn on it (seen here: http://imgur.com/BPsiIgm). How would I change the grey convex hull line so that, rather than being straight lines to each point in the hull, they conform more to the boundary/contours of the objects within the convex hull?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-07 07:16:04 -0600

What you want sounds more like the contour of the object and not the convex hull. A generalization of the convex-hull is the alpha-shape ( http://doc.cgal.org/latest/Alpha_shapes_2/index.html ) Maybe this could be more what you want (do you have an image of your wanted contour?)

edit flag offensive delete link more

Comments

This seems closer to what I would like. Is there a way to achieve this in opencv?

cmc gravatar imagecmc ( 2014-09-07 08:42:54 -0600 )edit
1

I haven't seen any implementation of it in OpenCV...

FooBar gravatar imageFooBar ( 2014-09-07 10:11:25 -0600 )edit

Hmm, yeah. Thanks for tip anyway. Got some reading to do now.

cmc gravatar imagecmc ( 2014-09-07 12:23:00 -0600 )edit

Question Tools

Stats

Asked: 2014-09-06 13:06:16 -0600

Seen: 1,155 times

Last updated: Sep 07 '14