opencv::prelude

Trait CameraTraitConst

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

    // Provided methods
    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

Constant methods for crate::viz::Camera

Required Methods§

Provided Methods§

source

fn get_clip(&self) -> Result<Vec2d>

source

fn get_window_size(&self) -> Result<Size>

source

fn get_fov(&self) -> Result<Vec2d>

source

fn get_principal_point(&self) -> Result<Vec2d>

source

fn get_focal_length(&self) -> Result<Vec2d>

source

fn compute_projection_matrix(&self, proj: &mut Matx44d) -> Result<()>

Computes projection matrix using intrinsic parameters of the camera.

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

Implementors§