Ask Your Question

Revision history [back]

I think you can do something like this :

videostab::MotionModel mm = videostab::MM_AFFINE;
Ptr<videostab::MotionEstimatorL1> estimator= new videostab::MotionEstimatorL1(mm);
estimator->setMotionModel(mm);
videostab::KeypointBasedMotionEstimator kbme = videostab::KeypointBasedMotionEstimator(estimator);

I think MotionEstimatorBase is a virtual class you cannot use it. You must use MotionEstimatorRansacL2 or MotionEstimatorL1

I think you can do something like this :

videostab::MotionModel mm = videostab::MM_AFFINE;
Ptr<videostab::MotionEstimatorL1> estimator= new videostab::MotionEstimatorL1(mm);
estimator->setMotionModel(mm);
videostab::KeypointBasedMotionEstimator kbme = videostab::KeypointBasedMotionEstimator(estimator);

I think MotionEstimatorBase is a virtual class you cannot use it. You must use MotionEstimatorRansacL2 or MotionEstimatorL1

There is an example videostab