Update docstrings and add missing types

This commit is contained in:
Matt Tancik authored and Matthew Tancik committed 2022-07-19 16:12:05 -07:00
1 parent b725d5dafa
commit f77d1fc110
7 files changed
+184 -136

No files matched your search

+7 -6
View File
@@ -187,22 +187,23 @@ class PinholeCamera(Camera):
return torch.tensor([self.cx, self.cy, self.fx, self.fy])
@classmethod
def fx_index(cls):
"""TODO(ethan): redo this in a better way.
def fx_index(cls) -> int:
"""Returns the index of the fx parameter in the intrinsics vector
TODO(ethan): redo this in a better way.
Ideally we can dynamically grab the focal length parameters depending on
Simple vs. not Simple Pinhole Model.
Returns:
_type_: _description_
x focal length index
"""
return 2
@classmethod
def fy_index(cls):
"""_summary_
def fy_index(cls) -> int:
"""Returns the index of the fy parameter in the intrinsics vector
Returns:
_type_: _description_
y focal length index
"""
return 3