open3d.visualization.rendering.Camera#
- class open3d.visualization.rendering.Camera#
Camera object
- class FovType#
Enum class for Camera field of view types.
Members:
Vertical
Horizontal
- Horizontal = <FovType.Horizontal: 1>#
- Vertical = <FovType.Vertical: 0>#
- property value#
- class Projection#
Enum class for Camera projection types.
Members:
Perspective
Ortho
- Ortho = <Projection.Ortho: 1>#
- Perspective = <Projection.Perspective: 0>#
- property value#
- __init__(*args, **kwargs)#
- copy_from(self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: open3d.cpu.pybind.visualization.rendering.Camera) None #
Copies the settings from the camera passed as the argument into this camera
- get_far(self: open3d.cpu.pybind.visualization.rendering.Camera) float #
Returns the distance from the camera to the far plane
- get_field_of_view(self: open3d.cpu.pybind.visualization.rendering.Camera) float #
Returns the field of view of camera, in degrees. Only valid if it was passed to set_projection().
- get_field_of_view_type(self: open3d.cpu.pybind.visualization.rendering.Camera) open3d.cpu.pybind.visualization.rendering.Camera.FovType #
Returns the field of view type. Only valid if it was passed to set_projection().
- get_model_matrix(self: open3d.cpu.pybind.visualization.rendering.Camera) numpy.ndarray[numpy.float32[4, 4]] #
Returns the model matrix of the camera
- get_near(self: open3d.cpu.pybind.visualization.rendering.Camera) float #
Returns the distance from the camera to the near plane
- get_projection_matrix(self: open3d.cpu.pybind.visualization.rendering.Camera) numpy.ndarray[numpy.float32[4, 4]] #
Returns the projection matrix of the camera
- get_view_matrix(self: open3d.cpu.pybind.visualization.rendering.Camera) numpy.ndarray[numpy.float32[4, 4]] #
Returns the view matrix of the camera
- look_at(self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: numpy.ndarray[numpy.float32[3, 1]], arg1: numpy.ndarray[numpy.float32[3, 1]], arg2: numpy.ndarray[numpy.float32[3, 1]]) None #
Sets the position and orientation of the camera: look_at(center, eye, up)
- set_projection(*args, **kwargs)#
Overloaded function.
set_projection(self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: float, arg1: float, arg2: float, arg3: float, arg4: open3d.cpu.pybind.visualization.rendering.Camera.FovType) -> None
Sets a perspective projection. set_projection(field_of_view, aspect_ratio, far_plane, field_of_view_type)
set_projection(self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: open3d.cpu.pybind.visualization.rendering.Camera.Projection, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float, arg6: float) -> None
Sets the camera projection via a viewing frustum. set_projection(projection_type, left, right, bottom, top, near, far)
set_projection(self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: numpy.ndarray[numpy.float64[3, 3]], arg1: float, arg2: float, arg3: float, arg4: float) -> None
Sets the camera projection via intrinsics matrix. set_projection(intrinsics, near_place, far_plane, image_width, image_height)
- unproject(self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: float, arg1: float, arg2: float, arg3: float, arg4: float) numpy.ndarray[numpy.float32[3, 1]] #
unproject(x, y, z, view_width, view_height): takes the (x, y, z) location in the view, where x, y are the number of pixels from the upper left of the view, and z is the depth value. Returns the world coordinate (x’, y’, z’).
- Horizontal = <FovType.Horizontal: 1>#
- Ortho = <Projection.Ortho: 1>#
- Perspective = <Projection.Perspective: 0>#
- Vertical = <FovType.Vertical: 0>#