spatial_affinity# omnipose.core.spatial_affinity(affinity_graph, coords, shape)[source]# Convert affinity graph in (S,N) format to (S,*DIMS) format.