[][src]Trait opencv::videostab::MotionEstimatorBase

pub trait MotionEstimatorBase {
    pub fn as_raw_MotionEstimatorBase(&self) -> *const c_void;
pub fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void; pub fn set_motion_model(&mut self, val: MotionModel) -> Result<()> { ... }
pub fn motion_model(&self) -> Result<MotionModel> { ... }
pub 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

pub fn set_motion_model(&mut self, val: MotionModel) -> Result<()>[src]

Sets motion model.

Parameters

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

pub fn motion_model(&self) -> Result<MotionModel>[src]

Returns

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

pub fn estimate(
    &mut self,
    points0: &dyn ToInputArray,
    points1: &dyn ToInputArray,
    ok: &mut bool
) -> Result<Mat>
[src]

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...