Renders the density values (alpha) for points along a ray, as described in "NeRF Representing Scenes as Neural Radiance Fields for View Synthesis".
tfg.rendering.volumetric.ray_density.compute_density(
density_values, distances, name=None
)
Note |
In the following, A1 to An are optional batch dimensions.
|
Args |
density_values
|
A tensor of shape [A1, ..., An, N, 1] ,
where N are the samples on the ray.
|
distances
|
A tensor of shape [A1, ..., An, N] containing the distances
between the samples, where N are the samples on the ray.
|
name
|
A name for this op. Defaults to "ray_radiance".
|
Returns |
A tensor of shape [A1, ..., An, 1] for the estimated density values,
and a tensor of shape [A1, ..., An, N] for the sample weights.
|