OpenCV中是否存在用于Delaunay三角剖分的C ++ API? [英] Is there C++ API for Delaunay triangulation in OpenCV?

查看:130
本文介绍了OpenCV中是否存在用于Delaunay三角剖分的C ++ API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现一种主动外观模型(AMM),并且在其中一个步骤中,我需要获取三角剖分的人脸网格,例如:

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三角剖分似乎很适合此任务(如果有更好的选择,请更正我),并且OpenCV具有

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.

推荐答案

OpenCV具有用于Delaunay三角剖分的C ++ API,但不幸的是,该文档没有记录.

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

这是 Subdiv2D 实现的类delaunay算法和用法示例.

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

这篇关于OpenCV中是否存在用于Delaunay三角剖分的C ++ API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆