delaunay_graph

menpo.shape.delaunay_graph(shape, return_pointgraph=True)[source]

Returns a graph with the edges being generated by Delaunay triangulation.

Parameters
  • shape (PointCloud or subclass) – The shape instance that defines the landmarks configuration based on which the graph will be created.

  • return_pointgraph (bool, optional) – If True, then a PointUndirectedGraph instance will be returned. If False, then an UndirectedGraph instance will be returned.

Returns

graph (UndirectedGraph or PointUndirectedGraph) – The generated graph.