Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add depth_to_3d docs

edgarriba139a1b226da3
diff --git a/docs/source/geometry.depth.rst b/docs/source/geometry.depth.rst
new file mode 100644
index 000000000..ef71fb4f7
--- /dev/null
+++ b/docs/source/geometry.depth.rst
@@ -0,0 +1,7 @@
+kornia.geometry.depth
+=====================
+
+.. currentmodule:: kornia.geometry.depth
+
+
+.. autofunction:: depth_to_3d
diff --git a/docs/source/geometry.rst b/docs/source/geometry.rst
index dfdd9157e..186cf2081 100644
--- a/docs/source/geometry.rst
+++ b/docs/source/geometry.rst
@@ -8,6 +8,7 @@ kornia.geometry
geometry.camera
geometry.conversions
+ geometry.depth
geometry.linalg
geometry.transform
geometry.warp
diff --git a/kornia/geometry/depth.py b/kornia/geometry/depth.py
index c1f16f526..9756b3628 100644
--- a/kornia/geometry/depth.py
+++ b/kornia/geometry/depth.py
@@ -15,8 +15,8 @@ def depth_to_3d(depth: torch.Tensor, camera_matrix: torch.Tensor) -> torch.Tenso
camera_matrix (torch.Tensor): tensor containing the camera intrinsics.
Shape:
- - Input: `:math:(B, 1, H, W)` and `:math:(B, 3, 3)`
- - Output: `math:(B, 3, H, W)`
+ - Input: :math:`(B, 1, H, W)` and :math:`(B, 3, 3)`
+ - Output: :math:`(B, 3, H, W)`
Return:
torch.Tensor: tensor with a 3d point per pixel of the same resolution as the input.