Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Fix depth to 3d docs (#2569)

Edgar Ribab3fb804961a4
diff --git a/docs/source/geometry.depth.rst b/docs/source/geometry.depth.rst
index 614838125..382c44482 100644
--- a/docs/source/geometry.depth.rst
+++ b/docs/source/geometry.depth.rst
@@ -5,7 +5,7 @@ kornia.geometry.depth
.. autofunction:: depth_from_disparity
.. autofunction:: depth_to_3d
-.. autofunction:: depth_to_3d_v3
+.. autofunction:: depth_to_3d_v2
.. autofunction:: unproject_meshgrid
.. autofunction:: depth_to_normals
.. autofunction:: warp_frame_depth
diff --git a/kornia/geometry/depth.py b/kornia/geometry/depth.py
index 01b5e9885..42298bc95 100644
--- a/kornia/geometry/depth.py
+++ b/kornia/geometry/depth.py
@@ -88,7 +88,7 @@ def depth_to_3d_v2(
Example:
>>> depth = torch.rand(4, 4)
>>> K = torch.eye(3)
- >>> depth_to_3d(depth, K).shape
+ >>> depth_to_3d_v2(depth, K).shape
torch.Size([4, 4, 3])
"""
KORNIA_CHECK_SHAPE(depth, ["*", "H", "W"])