[−][src]Struct opencv::sfm::libmv_CameraIntrinsicsOptions
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: i32
image_width: i32
image_height: 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
division_k1: f64
division_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]
_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>
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]
fn clone(&self) -> libmv_CameraIntrinsicsOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<libmv_CameraIntrinsicsOptions> for libmv_CameraIntrinsicsOptions
[src]
fn eq(&self, other: &libmv_CameraIntrinsicsOptions) -> bool
[src]
fn ne(&self, other: &libmv_CameraIntrinsicsOptions) -> bool
[src]
impl Copy for libmv_CameraIntrinsicsOptions
[src]
impl Debug for libmv_CameraIntrinsicsOptions
[src]
Auto Trait Implementations
impl Unpin for libmv_CameraIntrinsicsOptions
impl Sync for libmv_CameraIntrinsicsOptions
impl Send for libmv_CameraIntrinsicsOptions
impl UnwindSafe for libmv_CameraIntrinsicsOptions
impl RefUnwindSafe for libmv_CameraIntrinsicsOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,