Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _cpp_star_dist3D(lbl, rays, grid=(1,1,1)):
dz, dy, dx = rays.vertices.T
grid = _normalize_grid(grid,3)
return c_star_dist3d(lbl.astype(np.uint16, copy=False),
dz.astype(np.float32, copy=False),
dy.astype(np.float32, copy=False),
dx.astype(np.float32, copy=False),
int(len(rays)), *tuple(int(a) for a in grid))