tfg.rendering.camera.perspective.project
Projects a 3d point onto the 2d camera plane.
tfg.rendering.camera.perspective.project(
point_3d: type_alias.TensorLike,
focal: type_alias.TensorLike,
principal_point: type_alias.TensorLike,
name: str = 'perspective_project'
) -> tf.Tensor
Projects a 3d point to a 2d point onto the
image plane with
where is the focal length and the principal
point.
Note |
In the following, A1 to An are optional batch dimensions that must be
broadcast compatible.
|
Args |
point_3d
|
A tensor of shape [A1, ..., An, 3] , where the last dimension
represents a 3d point to project.
|
focal
|
A tensor of shape [A1, ..., An, 2] , where the last dimension
represents a camera focal length.
|
principal_point
|
A tensor of shape [A1, ..., An, 2] , where the last
dimension represents a camera principal point.
|
name
|
A name for this op that defaults to "perspective_project".
|
Returns |
A tensor of shape [A1, ..., An, 2] , where the last dimension represents
a 2d point.
|
Raises |
ValueError
|
If the shape of point_3d , focal , or principal_point is 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.
[null,null,["Last updated 2022-10-28 UTC."],[],[]]