2013-05-29 13:12:32 -0600 | received badge | ● Editor (source) |
2013-05-29 13:11:42 -0600 | asked a question | 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. |