[][src]Trait cv::Bearing

pub trait Bearing {
    fn bearing_unnormalized(
        &self
    ) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>;
fn from_bearing_vector(
        bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
    ) -> Self; fn bearing(
        &self
    ) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>> { ... }
fn from_bearing_unit_vector(
        bearing: Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
    ) -> Self { ... } }

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
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>

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: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> 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<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>

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<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
) -> Self

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 NormalizedKeyPoint[src]

Loading content...

Implementors

Loading content...