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

#[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: i32image_width: i32image_height: i32focal_length_x: f64focal_length_y: f64principal_point_x: f64principal_point_y: f64polynomial_k1: f64polynomial_k2: f64polynomial_k3: f64polynomial_p1: f64polynomial_p2: f64division_k1: f64division_k2: f64

Implementations

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.