[][src]Struct opencv::sfm::libmv_CameraIntrinsicsOptions

#[repr(C)]
pub struct libmv_CameraIntrinsicsOptions {
    pub distortion_model: i32,
    pub image_width: i32,
    pub image_height: i32,
    pub focal_length: f64,
    pub principal_point_x: f64,
    pub principal_point_y: f64,
    pub polynomial_k1: f64,
    pub polynomial_k2: f64,
    pub polynomial_k3: f64,
    pub polynomial_p1: f64,
    pub polynomial_p2: f64,
    pub division_k1: f64,
    pub division_k2: f64,
}

Data structure describing the camera model and its parameters.

Parameters

  • _distortion_model: Type of camera model.
  • _focal_length: focal length of the camera (in pixels).
  • _principal_point_x: principal point of the camera in the x direction (in pixels).
  • _principal_point_y: principal point of the camera in the y direction (in pixels).
  • _polynomial_k1: radial distortion parameter.
  • _polynomial_k2: radial distortion parameter.
  • _polynomial_k3: radial distortion parameter.
  • _polynomial_p1: radial distortion parameter.
  • _polynomial_p2: radial distortion parameter.

Is assumed that modern cameras have their principal point in the image center.

In case that the camera model was SFM_DISTORTION_MODEL_DIVISION, it's only needed to provide _polynomial_k1 and _polynomial_k2 which will be assigned as division distortion parameters.

Fields

distortion_model: i32image_width: i32image_height: i32focal_length: f64principal_point_x: f64principal_point_y: f64polynomial_k1: f64polynomial_k2: f64polynomial_k3: f64polynomial_p1: f64polynomial_p2: f64division_k1: f64division_k2: f64

Methods

impl libmv_CameraIntrinsicsOptions[src]

pub fn new(
    _distortion_model: i32,
    _focal_length: f64,
    _principal_point_x: f64,
    _principal_point_y: f64,
    _polynomial_k1: f64,
    _polynomial_k2: f64,
    _polynomial_k3: f64,
    _polynomial_p1: f64,
    _polynomial_p2: f64
) -> Result<libmv_CameraIntrinsicsOptions>
[src]

C++ default parameters

  • _distortion_model: 0
  • _focal_length: 0
  • _principal_point_x: 0
  • _principal_point_y: 0
  • _polynomial_k1: 0
  • _polynomial_k2: 0
  • _polynomial_k3: 0
  • _polynomial_p1: 0
  • _polynomial_p2: 0

Trait Implementations

impl Clone for libmv_CameraIntrinsicsOptions[src]

impl PartialEq<libmv_CameraIntrinsicsOptions> for libmv_CameraIntrinsicsOptions[src]

impl Copy for libmv_CameraIntrinsicsOptions[src]

impl Debug for libmv_CameraIntrinsicsOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]