tfg.rendering.camera.perspective.parameters_from_right_handed
Stay organized with collections
Save and categorize content based on your preferences.
Recovers the parameters used to contruct a right handed projection matrix.
tfg.rendering.camera.perspective.parameters_from_right_handed(
projection_matrix: type_alias.TensorLike,
name: str = 'perspective_parameters_from_right_handed'
) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]
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`.
|
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."],[],[]]