find_boundaries#
- omnipose.utils.find_boundaries(labels, connectivity=1, use_symmetry=False)[source]#
Compute boundaries of labeled instances in an N-dimensional array. Replicates the behavior of skimage.segmentation.find_boundaries with mode='inner', but is much faster.
Decreasing the steps by leveraging symmetry seems not to matter, as we still end up with two logical operations and two updates to the boundary matrix. Keeping for further testing.