pub struct MotionEstimatorL1 { /* private fields */ }
Expand description
Describes a global 2D motion estimation method which minimizes L1 error.
Note: To be able to use this method you must build OpenCV with CLP library support. :
Implementations§
Source§impl MotionEstimatorL1
impl MotionEstimatorL1
Sourcepub fn new(model: MotionModel) -> Result<MotionEstimatorL1>
pub fn new(model: MotionModel) -> Result<MotionEstimatorL1>
§C++ default parameters
- model: MM_AFFINE
Sourcepub fn new_def() -> Result<MotionEstimatorL1>
pub fn new_def() -> Result<MotionEstimatorL1>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- model: MM_AFFINE
Trait Implementations§
Source§impl Boxed for MotionEstimatorL1
impl Boxed for MotionEstimatorL1
Source§unsafe fn from_raw(
ptr: <MotionEstimatorL1 as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <MotionEstimatorL1 as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <MotionEstimatorL1 as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <MotionEstimatorL1 as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <MotionEstimatorL1 as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <MotionEstimatorL1 as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <MotionEstimatorL1 as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <MotionEstimatorL1 as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for MotionEstimatorL1
impl Debug for MotionEstimatorL1
Source§impl Drop for MotionEstimatorL1
impl Drop for MotionEstimatorL1
Source§impl From<MotionEstimatorL1> for MotionEstimatorBase
impl From<MotionEstimatorL1> for MotionEstimatorBase
Source§fn from(s: MotionEstimatorL1) -> Self
fn from(s: MotionEstimatorL1) -> Self
Converts to this type from the input type.
Source§impl MotionEstimatorBaseTrait for MotionEstimatorL1
impl MotionEstimatorBaseTrait for MotionEstimatorL1
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 MotionEstimatorL1
impl MotionEstimatorBaseTraitConst for MotionEstimatorL1
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 MotionEstimatorL1Trait for MotionEstimatorL1
impl MotionEstimatorL1Trait for MotionEstimatorL1
fn as_raw_mut_MotionEstimatorL1(&mut self) -> *mut c_void
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 MotionEstimatorL1TraitConst for MotionEstimatorL1
impl MotionEstimatorL1TraitConst for MotionEstimatorL1
fn as_raw_MotionEstimatorL1(&self) -> *const c_void
impl Send for MotionEstimatorL1
Auto Trait Implementations§
impl Freeze for MotionEstimatorL1
impl RefUnwindSafe for MotionEstimatorL1
impl !Sync for MotionEstimatorL1
impl Unpin for MotionEstimatorL1
impl UnwindSafe for MotionEstimatorL1
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