[][src]Trait opencv::hub_prelude::MotionEstimatorBase

pub trait MotionEstimatorBase {
    fn as_raw_MotionEstimatorBase(&self) -> *const c_void;
fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void; fn set_motion_model(&mut self, val: MotionModel) -> Result<()> { ... }
fn motion_model(&self) -> Result<MotionModel> { ... }
fn estimate(
        &mut self,
        points0: &dyn ToInputArray,
        points1: &dyn ToInputArray,
        ok: &mut bool
    ) -> Result<Mat> { ... } }

Base class for all global motion estimation methods.

Required methods

Loading content...

Provided methods

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

Sets motion model.

Parameters

  • val: Motion model. See cv::videostab::MotionModel.

fn motion_model(&self) -> Result<MotionModel>

Returns

Motion model. See cv::videostab::MotionModel.

fn estimate(
    &mut self,
    points0: &dyn ToInputArray,
    points1: &dyn 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
Loading content...

Implementors

Loading content...