Skip to main content

Module camera

Module camera 

Source
Expand description

Camera: projection (intrinsic) × position/orientation (extrinsic).

A port of silx silx.gui.plot3d.scene.camera. silx caches matrices behind a change-notifier; here every matrix is rebuilt on demand (a 4×4 build per frame is negligible), so the observer machinery is dropped.

Structs§

Camera
Combination of camera projection and extrinsic pose. Port of Camera.
CameraExtrinsic
Camera position and orientation (the view matrix). Port of CameraExtrinsic.
Orthographic
Orthographic projection with optional aspect-ratio preservation. Port of transform.Orthographic.
Perspective
Perspective projection by field-of-view + aspect. Port of transform.Perspective.

Enums§

CameraDirection
Rotation direction relative to the image plane, for CameraExtrinsic::orbit and CameraExtrinsic::rotate. Mirrors silx’s 'up'/'down'/'left'/'right'.
CameraFace
Pre-defined camera orientations, for CameraExtrinsic::reset. Mirrors _RESET_CAMERA_ORIENTATIONS.
CameraMove
Translation direction relative to the image plane, for CameraExtrinsic::move_to. Mirrors silx’s six move directions.
Projection
Camera intrinsic: either perspective or orthographic projection.