Struct opencv_ros_camera::Distortion
source · [−]pub struct Distortion<R: RealField>(_);Expand description
Specifies distortion using the Brown-Conrady “plumb bob” model.
Implementations
sourceimpl<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
sourceimpl<R: Clone + RealField> Clone for Distortion<R>
impl<R: Clone + RealField> Clone for Distortion<R>
sourcefn clone(&self) -> Distortion<R>
fn clone(&self) -> Distortion<R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<R: Debug + RealField> Debug for Distortion<R>
impl<R: Debug + RealField> Debug for Distortion<R>
sourceimpl<'de, R: RealField> Deserialize<'de> for Distortion<R> where
R: Deserialize<'de>,
impl<'de, R: RealField> Deserialize<'de> for Distortion<R> where
R: Deserialize<'de>,
sourcefn 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
sourceimpl<R: PartialEq + RealField> PartialEq<Distortion<R>> for Distortion<R>
impl<R: PartialEq + RealField> PartialEq<Distortion<R>> for Distortion<R>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &Distortion<R>) -> bool
fn ne(&self, other: &Distortion<R>) -> bool
This method tests for !=.
sourceimpl<R: RealField> Serialize for Distortion<R> where
R: Serialize,
impl<R: RealField> Serialize for Distortion<R> where
R: Serialize,
impl<R: RealField> StructuralPartialEq for Distortion<R>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
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 more
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).
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.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self to the equivalent element of its superset.