pub struct MotionEstimatorRansacL2 { /* private fields */ }Expand description
Describes a robust RANSAC-based global 2D motion estimation method which minimizes L2 error.
Implementations§
Source§impl MotionEstimatorRansacL2
impl MotionEstimatorRansacL2
Sourcepub fn new(model: MotionModel) -> Result<MotionEstimatorRansacL2>
pub fn new(model: MotionModel) -> Result<MotionEstimatorRansacL2>
§C++ default parameters
- model: MM_AFFINE
Sourcepub fn new_def() -> Result<MotionEstimatorRansacL2>
pub fn new_def() -> Result<MotionEstimatorRansacL2>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- model: MM_AFFINE
Trait Implementations§
Source§impl Boxed for MotionEstimatorRansacL2
impl Boxed for MotionEstimatorRansacL2
Source§unsafe fn from_raw(
ptr: <MotionEstimatorRansacL2 as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <MotionEstimatorRansacL2 as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <MotionEstimatorRansacL2 as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <MotionEstimatorRansacL2 as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(
&self,
) -> <MotionEstimatorRansacL2 as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <MotionEstimatorRansacL2 as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <MotionEstimatorRansacL2 as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <MotionEstimatorRansacL2 as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for MotionEstimatorRansacL2
impl Debug for MotionEstimatorRansacL2
Source§impl Drop for MotionEstimatorRansacL2
impl Drop for MotionEstimatorRansacL2
Source§impl From<MotionEstimatorRansacL2> for MotionEstimatorBase
impl From<MotionEstimatorRansacL2> for MotionEstimatorBase
Source§fn from(s: MotionEstimatorRansacL2) -> Self
fn from(s: MotionEstimatorRansacL2) -> Self
Converts to this type from the input type.
Source§impl MotionEstimatorBaseTrait for MotionEstimatorRansacL2
impl MotionEstimatorBaseTrait for MotionEstimatorRansacL2
fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void
Source§fn set_motion_model(&mut self, val: MotionModel) -> Result<()>
fn set_motion_model(&mut self, val: MotionModel) -> Result<()>
Sets motion model. Read more
Source§fn estimate(
&mut self,
points0: &impl ToInputArray,
points1: &impl ToInputArray,
ok: &mut bool,
) -> Result<Mat>
fn estimate( &mut self, points0: &impl ToInputArray, points1: &impl ToInputArray, ok: &mut bool, ) -> Result<Mat>
Estimates global motion between two 2D point clouds. Read more
Source§fn estimate_def(
&mut self,
points0: &impl ToInputArray,
points1: &impl ToInputArray,
) -> Result<Mat>
fn estimate_def( &mut self, points0: &impl ToInputArray, points1: &impl ToInputArray, ) -> Result<Mat>
Estimates global motion between two 2D point clouds. Read more
Source§impl MotionEstimatorBaseTraitConst for MotionEstimatorRansacL2
impl MotionEstimatorBaseTraitConst for MotionEstimatorRansacL2
fn as_raw_MotionEstimatorBase(&self) -> *const c_void
Source§fn motion_model(&self) -> Result<MotionModel>
fn motion_model(&self) -> Result<MotionModel>
Returns Read more
Source§impl MotionEstimatorRansacL2Trait for MotionEstimatorRansacL2
impl MotionEstimatorRansacL2Trait for MotionEstimatorRansacL2
fn as_raw_mut_MotionEstimatorRansacL2(&mut self) -> *mut c_void
fn set_ransac_params(&mut self, val: &impl RansacParamsTraitConst) -> Result<()>
fn set_min_inlier_ratio(&mut self, val: f32) -> Result<()>
Source§fn estimate(
&mut self,
points0: &impl ToInputArray,
points1: &impl ToInputArray,
ok: &mut bool,
) -> Result<Mat>
fn estimate( &mut self, points0: &impl ToInputArray, points1: &impl ToInputArray, ok: &mut bool, ) -> Result<Mat>
C++ default parameters Read more
Source§fn estimate_def(
&mut self,
points0: &impl ToInputArray,
points1: &impl ToInputArray,
) -> Result<Mat>
fn estimate_def( &mut self, points0: &impl ToInputArray, points1: &impl ToInputArray, ) -> Result<Mat>
Note Read more
Source§impl MotionEstimatorRansacL2TraitConst for MotionEstimatorRansacL2
impl MotionEstimatorRansacL2TraitConst for MotionEstimatorRansacL2
fn as_raw_MotionEstimatorRansacL2(&self) -> *const c_void
fn ransac_params(&self) -> Result<RansacParams>
fn min_inlier_ratio(&self) -> Result<f32>
impl Send for MotionEstimatorRansacL2
Auto Trait Implementations§
impl Freeze for MotionEstimatorRansacL2
impl RefUnwindSafe for MotionEstimatorRansacL2
impl !Sync for MotionEstimatorRansacL2
impl Unpin for MotionEstimatorRansacL2
impl UnwindSafe for MotionEstimatorRansacL2
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<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat or another similar object. By passing
a mutable reference to the Mat to this function your closure will get called with the read reference and a write references
to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold. Read more