How to use the stardist.polyhedron_to_label function in stardist

To help you get started, we’ve selected a few stardist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mpicbg-csbd / stardist / tests / test_nms3D.py View on Github external
def test_nms_and_label(n_rays = 32, nms_thresh=0.1):
    points, rays, disti = test_nms(n_rays, nms_thresh)
    lbl = polyhedron_to_label(disti,points, rays, shape = (33,44,55))
    return lbl
github mpicbg-csbd / stardist / tests / test_nms3D.py View on Github external
def test_label():
    n_rays = 32 
    dist = 20*np.ones((1,n_rays))
    rays = Rays_GoldenSpiral(dist.shape[-1])
    points = [[20,20,20]]
    return polyhedron_to_label(dist,points, rays, shape = (33,44,55))