Trait opencv::prelude::MotionEstimatorBaseTrait
source · 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
Object Safety§
This trait is not object safe.