From 46d7e6a72a61b4c07c46bb2854f933fc6b984a34 Mon Sep 17 00:00:00 2001 From: Anna Grim <108307071+anna-grim@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:43:20 -0700 Subject: [PATCH] Update skeleton_metric.py --- src/segmentation_skeleton_metrics/skeleton_metric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/segmentation_skeleton_metrics/skeleton_metric.py b/src/segmentation_skeleton_metrics/skeleton_metric.py index 566ade2..de29ec2 100644 --- a/src/segmentation_skeleton_metrics/skeleton_metric.py +++ b/src/segmentation_skeleton_metrics/skeleton_metric.py @@ -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 ---------- @@ -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