add_window_info_to_rag
compute.add_window_info_to_rag(rag, connections)Add window radii and positions from the connection list to the RAG edges.
It takes a RAG and a list of connections and adds the window information to the RAG as edge attributes
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| rag | the region adjacency graph | required | |
| connections | list of tuples, each tuple is a connection between two nodes, and contains the following information: | required |
Returns
| Name | Type | Description |
|---|---|---|
| The rag is being returned with the window information added to it. |