MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / ray

Function ray

mapping/src/functions/render_helpers.py:7–20  ·  view source on GitHub ↗

Calculate the coordinates of the sampling point in the world coordinate system according to the light origin, direction and depth value of the sampling point Args: ray_start (tensor, N_rays*1*3): ray's origin coordinates in world coordinate. ray_dir (tensor, N_rays

(ray_start, ray_dir, depths)

Source from the content-addressed store, hash-verified

5
6
7def ray(ray_start, ray_dir, depths):
8 """
9 Calculate the coordinates of the sampling point in the world coordinate system according to the light origin,
10 direction and depth value of the sampling point
11
12 Args:
13 ray_start (tensor, N_rays*1*3): ray's origin coordinates in world coordinate.
14 ray_dir (tensor, N_rays*1*3): ray's dir in world coordinate.
15 depths (tensor, N_rays*N_points*1): depths of sampling points along the ray.
16
17 Returns:
18 ray_start+ray_dir*depth (tensor, N_rays*N_points*3): sampling points in world
19 """
20 return ray_start + ray_dir * depths
21
22
23def fill_in(shape, mask, input, initial=1.0):

Callers 2

render_raysFunction · 0.85
bundle_adjust_framesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected