pub trait MotionEstimatorBaseTrait: MotionEstimatorBaseTraitConst {
// Required method
fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void;
// Provided methods
fn set_motion_model(&mut self, val: MotionModel) -> Result<()> { ... }
fn estimate(
&mut self,
points0: &impl ToInputArray,
points1: &impl ToInputArray,
ok: &mut bool,
) -> Result<Mat> { ... }
fn estimate_def(
&mut self,
points0: &impl ToInputArray,
points1: &impl ToInputArray,
) -> Result<Mat> { ... }
}Expand description
Mutable methods for crate::videostab::MotionEstimatorBase
Required Methods§
fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void
Provided Methods§
Sourcefn set_motion_model(&mut self, val: MotionModel) -> Result<()>
fn set_motion_model(&mut self, val: MotionModel) -> Result<()>
Sourcefn 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>
Sourcefn 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.
§Parameters
- points0: Source set of 2D points (32F).
- points1: Destination set of 2D points (32F).
- ok: Indicates whether motion was estimated successfully.
§Returns
3x3 2D transformation matrix (32F).
§Note
This alternative version of MotionEstimatorBaseTrait::estimate function uses the following default values for its arguments:
- ok: 0
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.