add_maxima_to_rag

compute.add_maxima_to_rag(G, maxima, maxima_radii, shape, ase_atoms)

Attach watershed maxima indices, coordinates, and radii to each RAG node.

Parameters

Name Type Description Default
G the graph required
maxima the indices of the maxima (2nd output of regions_from_grid routine) required
maxima_radii the radius of the maxima required
shape the shape of the image required
ase_atoms The atoms object from ASE required

Returns

Name Type Description
The graph with the maxima added to the nodes