We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1adee commit bf1079cCopy full SHA for bf1079c
flamingo_tools/segmentation/postprocessing.py
@@ -377,6 +377,10 @@ def components_sgn(
377
Returns:
378
Subgraph components as lists of label_ids of dataframe.
379
"""
380
+ if keyword not in table:
381
+ distance_avg = nearest_neighbor_distance(table, n_neighbors=100)
382
+ table[keyword] = list(distance_avg)
383
+
384
centroids = list(zip(table["anchor_x"], table["anchor_y"], table["anchor_z"]))
385
labels = [int(i) for i in list(table["label_id"])]
386
0 commit comments