Struct opencv::sfm::libmv_CameraIntrinsicsOptions

source ·
#[repr(C)]
pub struct libmv_CameraIntrinsicsOptions {
Show 14 fields pub distortion_model: i32, pub image_width: i32, pub image_height: i32, pub focal_length_x: f64, pub focal_length_y: 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,
}
Expand description

Data structure describing the camera model and its parameters.

§Parameters

  • _distortion_model: Type of camera model.
  • _focal_length_x: focal length of the camera (in pixels).
  • _focal_length_y: 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: i32§image_width: i32§image_height: i32§focal_length_x: f64§focal_length_y: f64§principal_point_x: f64§principal_point_y: f64§polynomial_k1: f64§polynomial_k2: f64§polynomial_k3: f64§polynomial_p1: f64§polynomial_p2: f64§division_k1: f64§division_k2: f64

Implementations§

source§

impl libmv_CameraIntrinsicsOptions

source

pub fn new( _distortion_model: i32, _focal_length_x: f64, _focal_length_y: 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>

§C++ default parameters
  • _distortion_model: 0
  • _focal_length_x: 0
  • _focal_length_y: 0
  • _principal_point_x: 0
  • _principal_point_y: 0
  • _polynomial_k1: 0
  • _polynomial_k2: 0
  • _polynomial_k3: 0
  • _polynomial_p1: 0
  • _polynomial_p2: 0
source

pub fn new_def() -> Result<libmv_CameraIntrinsicsOptions>

§Note

This alternative version of [new] function uses the following default values for its arguments:

  • _distortion_model: 0
  • _focal_length_x: 0
  • _focal_length_y: 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§

source§

impl Clone for libmv_CameraIntrinsicsOptions

source§

fn clone(&self) -> libmv_CameraIntrinsicsOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for libmv_CameraIntrinsicsOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for libmv_CameraIntrinsicsOptions

source§

fn eq(&self, other: &libmv_CameraIntrinsicsOptions) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for libmv_CameraIntrinsicsOptions

source§

impl StructuralPartialEq for libmv_CameraIntrinsicsOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.