get_rag_from_regions_and_grid

alternate skimage mean-color RAG builder; main flow builds RAGs from connections instead. Use rag_from_connections instead.

compute.get_rag_from_regions_and_grid(regions, dgrid, ase_atoms, maxima=None)

Build a skimage mean-color RAG from regions with centroid and optional maxima node properties.

Parameters

Name Type Description Default
regions the regions that we computed from the distance grid required
dgrid the distance grid required
ase_atoms the atoms object from ase required

Returns

Name Type Description
A region adjacency graph