pub trait KeypointBasedMotionEstimatorTrait: ImageMotionEstimatorBaseTrait + KeypointBasedMotionEstimatorTraitConst {
// Required method
fn as_raw_mut_KeypointBasedMotionEstimator(&mut self) -> *mut c_void;
// Provided methods
fn set_motion_model(&mut self, val: MotionModel) -> Result<()> { ... }
fn set_detector(&mut self, val: Ptr<Feature2D>) -> Result<()> { ... }
fn set_optical_flow_estimator(
&mut self,
val: Ptr<ISparseOptFlowEstimator>,
) -> Result<()> { ... }
fn set_outlier_rejector(&mut self, val: Ptr<IOutlierRejector>) -> Result<()> { ... }
fn set_frame_mask(&mut self, mask: &impl ToInputArray) -> Result<()> { ... }
fn estimate_mat(
&mut self,
frame0: &impl MatTraitConst,
frame1: &impl MatTraitConst,
ok: &mut bool,
) -> Result<Mat> { ... }
fn estimate_mat_def(
&mut self,
frame0: &impl MatTraitConst,
frame1: &impl MatTraitConst,
) -> Result<Mat> { ... }
fn estimate(
&mut self,
frame0: &impl ToInputArray,
frame1: &impl ToInputArray,
ok: &mut bool,
) -> Result<Mat> { ... }
fn estimate_def(
&mut self,
frame0: &impl ToInputArray,
frame1: &impl ToInputArray,
) -> Result<Mat> { ... }
}
Expand description
Mutable methods for crate::videostab::KeypointBasedMotionEstimator
Required Methods§
fn as_raw_mut_KeypointBasedMotionEstimator(&mut self) -> *mut c_void
Provided Methods§
fn set_motion_model(&mut self, val: MotionModel) -> Result<()>
fn set_detector(&mut self, val: Ptr<Feature2D>) -> Result<()>
fn set_optical_flow_estimator( &mut self, val: Ptr<ISparseOptFlowEstimator>, ) -> Result<()>
fn set_outlier_rejector(&mut self, val: Ptr<IOutlierRejector>) -> Result<()>
fn set_frame_mask(&mut self, mask: &impl ToInputArray) -> Result<()>
Sourcefn estimate_mat(
&mut self,
frame0: &impl MatTraitConst,
frame1: &impl MatTraitConst,
ok: &mut bool,
) -> Result<Mat>
fn estimate_mat( &mut self, frame0: &impl MatTraitConst, frame1: &impl MatTraitConst, ok: &mut bool, ) -> Result<Mat>
§C++ default parameters
- ok: 0
Sourcefn estimate_mat_def(
&mut self,
frame0: &impl MatTraitConst,
frame1: &impl MatTraitConst,
) -> Result<Mat>
fn estimate_mat_def( &mut self, frame0: &impl MatTraitConst, frame1: &impl MatTraitConst, ) -> Result<Mat>
§Note
This alternative version of KeypointBasedMotionEstimatorTrait::estimate_mat function uses the following default values for its arguments:
- ok: 0
Sourcefn estimate(
&mut self,
frame0: &impl ToInputArray,
frame1: &impl ToInputArray,
ok: &mut bool,
) -> Result<Mat>
fn estimate( &mut self, frame0: &impl ToInputArray, frame1: &impl ToInputArray, ok: &mut bool, ) -> Result<Mat>
§C++ default parameters
- ok: 0
Sourcefn estimate_def(
&mut self,
frame0: &impl ToInputArray,
frame1: &impl ToInputArray,
) -> Result<Mat>
fn estimate_def( &mut self, frame0: &impl ToInputArray, frame1: &impl ToInputArray, ) -> Result<Mat>
§Note
This alternative version of KeypointBasedMotionEstimatorTrait::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.