Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

According to the reference manual when I use the command:

import cv2.cv as cv a=cv.Subdiv2DLocate(subdiv,(x,y))

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.

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

According to the reference manual when I use the command:

import cv2.cv as cv cv

a=cv.Subdiv2DLocate(subdiv,(x,y))

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.

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

According to the reference manual when I use the command:

import cv2.cv as cv

a=cv.Subdiv2DLocate(subdiv,(x,y))

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.