π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
add depth_to_3d docs
edgarriba139a1b226da3
diff --git a/docs/source/geometry.depth.rst b/docs/source/geometry.depth.rstnew file mode 100644index 000000000..ef71fb4f7--- /dev/null+++ b/docs/source/geometry.depth.rst@@ -0,0 +1,7 @@+kornia.geometry.depth+=====================++.. currentmodule:: kornia.geometry.depth+++.. autofunction:: depth_to_3ddiff --git a/docs/source/geometry.rst b/docs/source/geometry.rstindex dfdd9157e..186cf2081 100644--- a/docs/source/geometry.rst+++ b/docs/source/geometry.rst@@ -8,6 +8,7 @@ kornia.geometrygeometry.camerageometry.conversions+ geometry.depthgeometry.linalggeometry.transformgeometry.warpdiff --git a/kornia/geometry/depth.py b/kornia/geometry/depth.pyindex 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.Tensocamera_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.