From 4430633bd83a6263974c154571f79576f8309ae6 Mon Sep 17 00:00:00 2001 From: William Silversmith Date: Wed, 22 May 2024 14:28:00 -0400 Subject: [PATCH] feat: expose connectivity parameter in roll_invalidation_ball_inside_component --- ext/skeletontricks/skeletontricks.pyx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/skeletontricks/skeletontricks.pyx b/ext/skeletontricks/skeletontricks.pyx index da45ce6..b6ccdd7 100644 --- a/ext/skeletontricks/skeletontricks.pyx +++ b/ext/skeletontricks/skeletontricks.pyx @@ -377,6 +377,7 @@ def roll_invalidation_ball_inside_component( anisotropy, path, voxel_connectivity_graph = None, + connectivity = 26, ): cdef int64_t sx, sy, sz sx = labels.shape[0] @@ -395,9 +396,7 @@ def roll_invalidation_ball_inside_component( path = [ coord[0] + sx * coord[1] + sxy * coord[2] for coord in path if tuple(coord) - ] - - connectivity = 26 + ] cdef uint32_t* vcg = NULL cdef cnp.ndarray[uint32_t, ndim=3] vcg_arr