pub trait CameraTraitConst {
    fn as_raw_Camera(&self) -> *const c_void;

    fn get_clip(&self) -> Result<Vec2d> { ... }
    fn get_window_size(&self) -> Result<Size> { ... }
    fn get_fov(&self) -> Result<Vec2d> { ... }
    fn get_principal_point(&self) -> Result<Vec2d> { ... }
    fn get_focal_length(&self) -> Result<Vec2d> { ... }
    fn compute_projection_matrix(&self, proj: &mut Matx44d) -> Result<()> { ... }
}
Expand description

This class wraps intrinsic parameters of a camera.

It provides several constructors that can extract the intrinsic parameters from field of view, intrinsic matrix and projection matrix. :

Required Methods

Provided Methods

Computes projection matrix using intrinsic parameters of the camera.

Parameters
  • proj: Output projection matrix with the following form block formula

Implementors