Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

comment unused create_pinhole from main API

edgarriba1737f479af55
diff --git a/torchgeometry/utils.py b/torchgeometry/utils.py
index 0cebb3265..bf8fbd0f8 100644
--- a/torchgeometry/utils.py
+++ b/torchgeometry/utils.py
@@ -98,6 +98,8 @@ def tensor_to_image(tensor):
return tensor.contiguous().cpu().detach().numpy()
+# TODO: evaluate wether to include it to the main API.
+'''
def create_pinhole(intrinsic, extrinsic, height, width):
pinhole = torch.zeros(12)
pinhole[0] = intrinsic[0, 0] # fx
@@ -109,4 +111,4 @@ def create_pinhole(intrinsic, extrinsic, height, width):
pinhole[6:9] = tgm.rotation_matrix_to_angle_axis(
torch.tensor(extrinsic))
pinhole[9:12] = torch.tensor(extrinsic[:, 3])
- return pinhole.view(1, -1)
+ return pinhole.view(1, -1)'''