@@ -100,6 +100,10 @@ def __init__(
100100 Segment IDs that can be assigned to nodes. This argument accounts
101101 for segments that were been removed due to some type of filtering.
102102 Default is None.
103+ use_anisotropy : bool, optional
104+ Indication of whether coordinates in fragment SWC files should be
105+ converted from physical to image coordinates using the given
106+ anisotropy. Default is False.
103107 verbose : bool, optional
104108 Indication of whether to printout updates. Default is True.
105109 """
@@ -343,9 +347,10 @@ def detect_splits(self):
343347 p_split = 100 * n_split_edges / n_before
344348 rl = np .sum (self .graphs [key ].run_lengths ())
345349 gt_rl = self .graphs [key ].run_length
350+ split_rate = rl / n_splits if n_splits > 0 else np .nan
346351
347352 self .metrics .at [key , "# Splits" ] = n_splits
348- self .metrics .at [key , "Split Rate" ] = rl / max ( n_splits , 1 )
353+ self .metrics .at [key , "Split Rate" ] = split_rate
349354 self .metrics .loc [key , "% Split Edges" ] = round (p_split , 2 )
350355 self .metrics .at [key , "% Omit Edges" ] = round (p_omit , 2 )
351356 self .metrics .loc [key , "SWC Run Length" ] = round (gt_rl , 2 )
@@ -428,7 +433,7 @@ def is_fragment_merge(self, key, label, kdtree):
428433 for leaf in gutil .get_leafs (fragment_graph ):
429434 voxel = fragment_graph .voxels [leaf ]
430435 gt_voxel = util .kdtree_query (kdtree , voxel )
431- if self .physical_dist (gt_voxel , voxel ) > 50 :
436+ if self .physical_dist (gt_voxel , voxel ) > 40 :
432437 self .find_merge_site (
433438 key , kdtree , fragment_graph , leaf , visited
434439 )
0 commit comments