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 aPointUndirectedGraph
instance will be returned. IfFalse
, then anUndirectedGraph
instance will be returned.
- Returns
graph (
UndirectedGraph
orPointUndirectedGraph
) – The generated graph.