Is there C++ API for Delaunay triangulation in OpenCV?

安稳与你 提交于 2019-11-27 02:48:07

问题


I'm trying to implement one of active appearance models (AMM) and on one of the steps I need to get triangulated mesh of a face, e.g.:

Delaunay triangulation seems to be a good fit for this task (correct me if there are better options), and OpenCV has C API for it. But is there C++ API for Delaunay triangulation? Of course if is not a big deal to write a wrapper for C version if there's really no C++ API, but it's possible that's just lack of my knowledge of API, and not the API itself. In this case I will definitely prefer native OpenCV implementation.


回答1:


OpenCV has C++ API for delaunay triangulation, but unfortunately it is not documented.

Here are the class Subdiv2D implementing delaunay algorithm and usage example.



来源:https://stackoverflow.com/questions/11170564/is-there-c-api-for-delaunay-triangulation-in-opencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!