Skip to content

Commit

Permalink
Update skeleton_metric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-grim authored Sep 3, 2024
1 parent a99871f commit 46d7e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/segmentation_skeleton_metrics/skeleton_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def count_merges(self, key, kdtree):
"""
Counts the number of label merges for a given graph key based on
whether the fragment graph corresponding to a label has a node that is
more that 100ums away from the nearest point in "kdtree".
more that 200ums away from the nearest point in "kdtree".
Parameters
----------
Expand All @@ -593,7 +593,7 @@ def count_merges(self, key, kdtree):
for label in self.get_graph_labels(key, inverse_bool=inverse_bool):
if label in self.fragment_arrays:
for xyz in self.fragment_arrays[label][::5]:
if kdtree.query(xyz, k=1)[0] > 100:
if kdtree.query(xyz, k=1)[0] > 200:
self.merge_cnt[key] += 1
self.merged_labels.add((key, label))
break
Expand Down

0 comments on commit 46d7e6a

Please sign in to comment.