mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
1 parent
45db2bcfab
commit
6c2bfad931
2 files changed
+6
-3
No files matched your search
@@ -42,7 +42,7 @@ class CameraState:
|
||||
|
||||
|
||||
def get_camera(
|
||||
camera_state: CameraState, image_height: int, image_width: Optional[Union[int, float]] = None
|
||||
camera_state: CameraState, image_height: int, image_width: Optional[Union[int, float]] = None, time: float = 0.0
|
||||
) -> Cameras:
|
||||
"""Returns the camera intrinsics matrix and the camera to world homogeneous matrix.
|
||||
|
||||
@@ -74,7 +74,7 @@ def get_camera(
|
||||
cy=pp_h,
|
||||
camera_type=camera_state.camera_type,
|
||||
camera_to_worlds=camera_state.c2w.to(torch.float32)[None, ...],
|
||||
times=torch.tensor([0.0], dtype=torch.float32),
|
||||
times=torch.tensor([time], dtype=torch.float32),
|
||||
)
|
||||
return camera
|
||||
|
||||
|
||||
Reference in new issue
Block a user