Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Delaunay triangulation - edge flip?

I used this code: http://www.learnopencv.com/delaunay-triangulation-and-voronoi-diagram-using-opencv-c-python/ for Delaunay triangulation, now I'm trying to figure out how to flip edges like this: http://i.imgur.com/RqAQKN5.png.

I found that there is a member function of subdiv2d called "swapedges" which potentionally does exactly what I need but I don't know how it's supposed to be used, I'm pretty new at C++ and OpenCV and if there's anyone who could help me by showing an example of how it should work, I would be very thankful.

Thanks in advance.