nerfbaselines.render_trajectory

class nerfbaselines.render_trajectory.Trajectory(cameras: nerfbaselines.cameras.Cameras, fps: float)[source]

Bases: object

cameras: Cameras
fps: float
classmethod from_json(data: Dict[str, Any] | IO) Trajectory[source]
nerfbaselines.render_trajectory.read_nerfstudio_trajectory(data: Dict[str, Any]) Trajectory[source]
nerfbaselines.render_trajectory.render_frames(method: Method, cameras: Cameras, output: Path, fps: float, description: str = 'rendering frames', output_type: Literal['color', 'depth'] = 'color', ns_info: dict | None = None) Iterable[Dict][source]
nerfbaselines.render_trajectory.three_js_perspective_camera_focal_length(fov: float, image_height: int)[source]

Returns the focal length of a three.js perspective camera.

Parameters:
  • fov – the field of view of the camera in degrees.

  • image_height – the height of the image in pixels.

See:

https://github.com/nerfstudio-project/nerfstudio/blob/1aba4ea7a29b05e86f5d223245a573e7dcd86caa/nerfstudio/viewer_legacy/server/utils.py#L52