Recovers the parameters used to contruct a right handed projection matrix.
tfg.rendering.camera.perspective.parameters_from_right_handed(
projection_matrix, name=None
)
Note:
In the following, A1 to An are optional batch dimensions.
Args |
projection_matrix
|
A tensor of shape [A1, ..., An, 4, 4] , containing
matrices of right handed perspective-view frustum.
|
name
|
A name for this op. Defaults to
'perspective_parameters_from_right_handed'.
|
Raises |
InvalidArgumentError
|
if projection_matrix is not of the expected shape.
|
Returns |
Tuple of 4 tensors of shape [A1, ..., An, 1] , where the first tensor
represents the vertical field of view used to contruct projection_matrix,
the second tensor represents the ascpect ratio used to construct projection_matrix, and the third and fourth parameters repectively
represent the near and far clipping planes used to construct projection_matrix`.
|