Struct opencv_ros_camera::Distortion
source · pub struct Distortion<R: RealField>(/* private fields */);Expand description
Specifies distortion using the Brown-Conrady “plumb bob” model.
Implementations§
source§impl<R: RealField> Distortion<R>
impl<R: RealField> Distortion<R>
sourcepub fn from_opencv_vec(v: Vector5<R>) -> Self
pub fn from_opencv_vec(v: Vector5<R>) -> Self
build from vector ordered [radial1, radial2, tangential1, tangential2, radial3]
sourcepub fn opencv_vec(&self) -> &Vector5<R>
pub fn opencv_vec(&self) -> &Vector5<R>
OpenCV ordered vector of distortion terms.
The order is [radial1, radial2, tangential1, tangential2, radial3].
sourcepub fn radial1_mut(&mut self) -> &mut R
pub fn radial1_mut(&mut self) -> &mut R
The first radial distortion term, sometimes called k1 (mutable reference).
sourcepub fn radial2_mut(&mut self) -> &mut R
pub fn radial2_mut(&mut self) -> &mut R
The second radial distortion term, sometimes called k2 (mutable reference).
sourcepub fn tangential1(&self) -> R
pub fn tangential1(&self) -> R
The first tangential distortion term, sometimes called p1.
sourcepub fn tangential1_mut(&mut self) -> &mut R
pub fn tangential1_mut(&mut self) -> &mut R
The first tangential distortion term, sometimes called p1 (mutable reference).
sourcepub fn tangential2(&self) -> R
pub fn tangential2(&self) -> R
The second tangential distortion term, sometimes called p2.
sourcepub fn tangential2_mut(&mut self) -> &mut R
pub fn tangential2_mut(&mut self) -> &mut R
The second tangential distortion term, sometimes called p2 (mutable reference).
sourcepub fn radial3_mut(&mut self) -> &mut R
pub fn radial3_mut(&mut self) -> &mut R
The third radial distortion term, sometimes called k3 (mutable reference).
Trait Implementations§
source§impl<R: Clone + RealField> Clone for Distortion<R>
impl<R: Clone + RealField> Clone for Distortion<R>
source§fn clone(&self) -> Distortion<R>
fn clone(&self) -> Distortion<R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de, R> Deserialize<'de> for Distortion<R>where
R: Deserialize<'de> + RealField,
impl<'de, R> Deserialize<'de> for Distortion<R>where
R: Deserialize<'de> + RealField,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<R: PartialEq + RealField> PartialEq for Distortion<R>
impl<R: PartialEq + RealField> PartialEq for Distortion<R>
source§fn eq(&self, other: &Distortion<R>) -> bool
fn eq(&self, other: &Distortion<R>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<R> Serialize for Distortion<R>
impl<R> Serialize for Distortion<R>
impl<R: RealField> StructuralPartialEq for Distortion<R>
Auto Trait Implementations§
impl<R> Freeze for Distortion<R>where
R: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.