[][src]Trait cv_core::Bearing

pub trait Bearing {
    fn bearing_unnormalized(&self) -> Vector3<f64>;
fn from_bearing_vector(bearing: Vector3<f64>) -> Self; fn bearing(&self) -> Unit<Vector3<f64>> { ... }
fn from_bearing_unit_vector(bearing: Unit<Vector3<f64>>) -> Self
    where
        Self: Sized
, { ... } }

Describes the direction that the projection onto the camera's optical center came from. It is implemented on projection items from different camera models. It is also implemented for Unit<Vector3<f64>> if you want to pre-compute the normalized bearings for efficiency or to turn all camera models into a unified type.

Required methods

fn bearing_unnormalized(&self) -> Vector3<f64>

Returns the unnormalized bearing which has direction point towards the direction that the signal entered the camera's center. The magnitude of this vector is unknown. Use this if you are sure that you do not need a normalized bearing. This may be faster.

fn from_bearing_vector(bearing: Vector3<f64>) -> Self

Converts a bearing vector back into this bearing type.

This is useful if you would like to go backwards from reconstruction space to image space. See CameraModel::uncalibrate for how to then convert the camera bearing into image coordinates.

Loading content...

Provided methods

fn bearing(&self) -> Unit<Vector3<f64>>

Returns a unit vector of the direction that the projection created by the feature projects out of the optical center of the camera. This is defined as the the position delta of the feature from the optical center of the camera.

fn from_bearing_unit_vector(bearing: Unit<Vector3<f64>>) -> Self where
    Self: Sized

Converts a bearing unit vector back into this bearing type.

This is useful if you would like to go backwards from reconstruction space to image space. See CameraModel::uncalibrate for how to then convert the camera bearing into image coordinates.

Loading content...

Implementations on Foreign Types

impl Bearing for Unit<Vector3<f64>>[src]

Loading content...

Implementors

Loading content...