pub trait MotionEstimatorBase: MotionEstimatorBaseConst {
    fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void;

    fn set_motion_model(&mut self, val: MotionModel) -> Result<()> { ... }
    fn estimate(
        &mut self,
        points0: &dyn ToInputArray,
        points1: &dyn ToInputArray,
        ok: &mut bool
    ) -> Result<Mat> { ... } }

Required Methods

Provided Methods

Sets motion model.

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

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

Implementors