How to get an edge associated to a vertex in a Delaunay triangulation?

asked 2013-05-29 13:11:42 -0500

pdpcosta gravatar image

updated 2015-09-30 09:16:03 -0500

According to the reference manual when I use the command:

import as cv


if the point (x,y) is a vertex from the triangulation, the function does not return an edge, but a tuple with a "cvsubdiv2dpoint".

How is it possible to get the information of one of the edges that are connected to this vertex?

I tried to access the field "first" from the "cvsubdiv2dpoint" structure, but the Python shell restarts (crashes).

I am using Python 2.7, OpenCV 2.4.4 on Linux Ubuntu machine.

edit retag flag offensive close merge delete