Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
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))