0
得到顶点索引我使用OpenCV的3.1和想知道如何得到一个边缘的顶点指数在Subdiv2D Delaunay三角,不仅顶点坐标? 我想使用此索引来保留进一步插值的顶点值。如何从Subdiv2D Delaunay三角
例如:
cv::Subdiv2D subdiv(rect);
// Insert some points to subdiv....
cv::Point2f org, dst;
subdiv.edgeOrg(edge, &org); // starting point of edge
这让我只能在org
顶点的坐标。
我已经看到,在OpenCV 2.4中,我们可以使用CvSubdiv2DPoint
类型,除了标准Point32f
之外,还保留了id。 在OpenCV 3.1中,我找不到这个结构,它看起来像因为某些原因被删除了。