Struct opencv_ros_camera::Distortion[][src]

pub struct Distortion<R: RealField>(_);

Specifies distortion using the Brown-Conrady “plumb bob” model.

Implementations

impl<R: RealField> Distortion<R>[src]

pub fn from_opencv_vec(v: Vector5<R>) -> Self[src]

build from vector ordered [radial1, radial2, tangential1, tangential2, radial3]

pub fn opencv_vec(&self) -> &Vector5<R>[src]

OpenCV ordered vector of distortion terms.

The order is [radial1, radial2, tangential1, tangential2, radial3].

pub fn zero() -> Self[src]

Construct a zero distortion model.

pub fn radial1(&self) -> R[src]

The first radial distortion term, sometimes called k1.

pub fn radial1_mut(&mut self) -> &mut R[src]

The first radial distortion term, sometimes called k1 (mutable reference).

pub fn radial2(&self) -> R[src]

The second radial distortion term, sometimes called k2.

pub fn radial2_mut(&mut self) -> &mut R[src]

The second radial distortion term, sometimes called k2 (mutable reference).

pub fn tangential1(&self) -> R[src]

The first tangential distortion term, sometimes called p1.

pub fn tangential1_mut(&mut self) -> &mut R[src]

The first tangential distortion term, sometimes called p1 (mutable reference).

pub fn tangential2(&self) -> R[src]

The second tangential distortion term, sometimes called p2.

pub fn tangential2_mut(&mut self) -> &mut R[src]

The second tangential distortion term, sometimes called p2 (mutable reference).

pub fn radial3(&self) -> R[src]

The third radial distortion term, sometimes called k3.

pub fn radial3_mut(&mut self) -> &mut R[src]

The third radial distortion term, sometimes called k3 (mutable reference).

pub fn is_linear(&self) -> bool[src]

Return true if there is approximately zero distortion, else false.

Trait Implementations

impl<R: Clone + RealField> Clone for Distortion<R>[src]

impl<R: Debug + RealField> Debug for Distortion<R>[src]

impl<'de, R: RealField> Deserialize<'de> for Distortion<R> where
    R: Deserialize<'de>, 
[src]

impl<R: PartialEq + RealField> PartialEq<Distortion<R>> for Distortion<R>[src]

impl<R: RealField> Serialize for Distortion<R> where
    R: Serialize
[src]

impl<R: RealField> StructuralPartialEq for Distortion<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Distortion<R> where
    R: RefUnwindSafe

impl<R> Send for Distortion<R>

impl<R> Sync for Distortion<R>

impl<R> Unpin for Distortion<R> where
    R: Unpin

impl<R> UnwindSafe for Distortion<R> where
    R: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.