Skip to content

Commit 5729688

Browse files
Remove deprecation decorator from depth_to_3d function (kornia#3142)
* Remove deprecation decorator from depth_to_3d function * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 21de81d commit 5729688

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

kornia/geometry/depth.py

-9
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE
2929
from kornia.filters.sobel import spatial_gradient
3030
from kornia.utils import create_meshgrid
31-
from kornia.utils.helpers import deprecated
3231

3332
from .camera import PinholeCamera, cam2pixel, pixel2cam, project_points, unproject_points
3433
from .conversions import normalize_pixel_coordinates, normalize_points_with_intrinsics
@@ -136,14 +135,6 @@ def depth_to_3d_v2(
136135
return points_xyz * depth[..., None] # HxWx3
137136

138137

139-
@deprecated(
140-
replace_with="depth_to_3d_v2",
141-
version="0.8.0",
142-
extra_reason=(
143-
" This function will be replaced with the `depth_to_3d_v2` behaviour, where the that does not require the"
144-
" creation of a meshgrid. The return shape can be not backward compatible between these implementations."
145-
),
146-
)
147138
def depth_to_3d(depth: Tensor, camera_matrix: Tensor, normalize_points: bool = False) -> Tensor:
148139
"""Compute a 3d point per pixel given its depth value and the camera intrinsics.
149140

0 commit comments

Comments
 (0)