[][src]Trait opencv::viz::prelude::CameraTrait

pub trait CameraTrait {
    pub fn as_raw_Camera(&self) -> *const c_void;
pub fn as_raw_mut_Camera(&mut self) -> *mut c_void; pub fn get_clip(&self) -> Result<Vec2d> { ... }
pub fn set_clip(&mut self, clip: Vec2d) -> Result<()> { ... }
pub fn get_window_size(&self) -> Result<Size> { ... }
pub fn set_window_size(&mut self, window_size: Size) -> Result<()> { ... }
pub fn get_fov(&self) -> Result<Vec2d> { ... }
pub fn set_fov(&mut self, fov: Vec2d) -> Result<()> { ... }
pub fn get_principal_point(&self) -> Result<Vec2d> { ... }
pub fn get_focal_length(&self) -> Result<Vec2d> { ... }
pub fn compute_projection_matrix(&self, proj: &mut Matx44d) -> Result<()> { ... } }

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

Loading content...

Provided methods

pub fn get_clip(&self) -> Result<Vec2d>[src]

pub fn set_clip(&mut self, clip: Vec2d) -> Result<()>[src]

pub fn get_window_size(&self) -> Result<Size>[src]

pub fn set_window_size(&mut self, window_size: Size) -> Result<()>[src]

pub fn get_fov(&self) -> Result<Vec2d>[src]

pub fn set_fov(&mut self, fov: Vec2d) -> Result<()>[src]

pub fn get_principal_point(&self) -> Result<Vec2d>[src]

pub fn get_focal_length(&self) -> Result<Vec2d>[src]

pub fn compute_projection_matrix(&self, proj: &mut Matx44d) -> Result<()>[src]

Computes projection matrix using intrinsic parameters of the camera.

Parameters

  • proj: Output projection matrix with the following form block formula
Loading content...

Implementors

impl CameraTrait for Camera[src]

Loading content...