tfg.rendering.volumetric.emission_absorption.render
Stay organized with collections
Save and categorize content based on your preferences.
Renders a voxel grid using the emission-absorption model, as described in "Escaping Plato's Cave: 3D Shape From Adversarial Rendering" (Henzler 2019).
tfg.rendering.volumetric.emission_absorption.render(
voxels: type_alias.TensorLike,
absorption_factor: tf.float32 = 0.1,
cell_size: tf.float32 = 1.0,
axis: int = 2,
name: str = 'emission_absorption_render'
) -> tf.Tensor
Note |
In the following, A1 to An are optional batch dimensions.
|
Args |
voxels
|
A tensor of shape [A1, ..., An, Vx, Vy, Vz, Vd] , where Vx, Vy, Vz
are the dimensions of the voxel grid and Vd the dimension of the
information stored in each voxel (e.g. 3 for RGB color).
|
absorption_factor
|
A scalar representing the density of the volume.
|
cell_size
|
A scalar representing the size of a cell.
|
axis
|
An index to the projection axis (0 for X, 1 for Y or 2 for Z).
|
name
|
A name for this op. Defaults to "emission_absorption_render".
|
Returns |
A tensor of shape [A1, ..., An, Vx, Vy, Vd] representing images of size
(Vx,Vy).
|
Raises |
ValueError
|
If the shape of the input tensors are not supported.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[]]