tfg.rendering.camera.orthographic.unproject
Stay organized with collections
Save and categorize content based on your preferences.
Unprojects a 2d point in 3d.
tfg.rendering.camera.orthographic.unproject(
point_2d: type_alias.TensorLike,
depth: type_alias.TensorLike,
name: str = 'orthographic_unproject'
) -> tf.Tensor
Unprojects a 2d point \((x', y')\) to a 3d point \((x, y, z)\) given its
depth \(z\), with
\[
\begin{matrix}
x = x', & y = y', & z = z.
\end{matrix}
\]
Note |
In the following, A1 to An are optional batch dimensions.
|
Args |
point_2d
|
A tensor of shape [A1, ..., An, 2] , where the last dimension
represents a 2d point to unproject.
|
depth
|
A tensor of shape [A1, ..., An, 1] , where the last dimension
represents the depth of a 2d point.
|
name
|
A name for this op that defaults to "orthographic_unproject".
|
Returns |
A tensor of shape [A1, ..., An, 3] , where the last dimension represents
a 3d point.
|
Raises |
ValueError
|
If the shape of point_2d , depth 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."],[],[],null,["# tfg.rendering.camera.orthographic.unproject\n\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/camera/orthographic.py#L111-L156) |\n\nUnprojects a 2d point in 3d. \n\n tfg.rendering.camera.orthographic.unproject(\n point_2d: type_alias.TensorLike,\n depth: type_alias.TensorLike,\n name: str = 'orthographic_unproject'\n ) -\u003e tf.Tensor\n\nUnprojects a 2d point \\\\((x', y')\\\\) to a 3d point \\\\((x, y, z)\\\\) given its\ndepth \\\\(z\\\\), with\n\n\\\\\\[\n\\\\begin{matrix}\nx = x', \\& y = y', \\& z = z.\n\\\\end{matrix}\n\\\\\\]\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Note ---- ||\n|---|---|\n| In the following, A1 to An are optional batch dimensions. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|----------------------------------------------------------------------------------------------------|\n| `point_2d` | A tensor of shape `[A1, ..., An, 2]`, where the last dimension represents a 2d point to unproject. |\n| `depth` | A tensor of shape `[A1, ..., An, 1]`, where the last dimension represents the depth of a 2d point. |\n| `name` | A name for this op that defaults to \"orthographic_unproject\". |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A tensor of shape `[A1, ..., An, 3]`, where the last dimension represents a 3d point. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|-------------------------------------------------------|\n| `ValueError` | If the shape of `point_2d`, `depth` is not supported. |\n\n\u003cbr /\u003e"]]