[][src]Struct cv_core::CameraIntrinsics

pub struct CameraIntrinsics {
    pub focals: Vector2<f32>,
    pub principal_point: Point2<f32>,
    pub skew: f32,

This contains intrinsic camera parameters as per this Wikipedia page.

For a high quality camera, this may be sufficient to normalize image coordinates. Undistortion may also be necessary to normalize image coordinates.


focals: Vector2<f32>principal_point: Point2<f32>skew: f32


impl CameraIntrinsics[src]

pub fn identity() -> Self[src]

Creates camera intrinsics that would create an identity intrinsic matrix. This would imply that the pixel positions have an origin at 0,0, the pixel distance unit is the focal length, pixels are square, and there is no skew.

pub fn focals(self, focals: Vector2<f32>) -> Self[src]

pub fn focal(self, focal: f32) -> Self[src]

pub fn principal_point(self, principal_point: Point2<f32>) -> Self[src]

pub fn skew(self, skew: f32) -> Self[src]

pub fn matrix(&self) -> Matrix3<f32>[src]

Trait Implementations

impl Clone for CameraIntrinsics[src]

impl Copy for CameraIntrinsics[src]

impl Debug for CameraIntrinsics[src]

impl PartialEq<CameraIntrinsics> for CameraIntrinsics[src]

impl PartialOrd<CameraIntrinsics> for CameraIntrinsics[src]

impl StructuralPartialEq for CameraIntrinsics[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Error = Infallible

The type returned in the event of a conversion error.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,