opencv::hub_prelude

Trait 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

Required Methods§

Provided Methods§

Source

fn set_motion_model(&mut self, val: MotionModel) -> Result<()>

Sets motion model.

§Parameters
  • val: Motion model. See cv::videostab::MotionModel.
Source

fn estimate( &mut self, points0: &impl ToInputArray, points1: &impl ToInputArray, ok: &mut bool, ) -> 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).

§C++ default parameters
  • ok: 0
Source

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.

Implementors§