简体   繁体   中英

Hulls merging in opencv

Suppose you have two hulls H1 and H2 and you want to merge them into H. (See the picture). 在此处输入图片说明

Is there an algorithm on that? Maybe opencv has one already built-in? Could anyone provide a code snippet?

Thanks!!!

There is an algorithm for merging two convex hulls in O(n1+n2) time.You just need to find upper and lower tangent for the given hulls and then exclude the points inside the upper and lower tangents.

Check out Tangents between two Convex Polygons , it has code snippet too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM