Skip to content

Commit b37f0c5

Browse files
committed
Merge pull request opencv#8522 from zongwave:master
2 parents 2d05db6 + 1fc60e6 commit b37f0c5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

modules/videostab/include/opencv2/videostab/global_motion.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class CV_EXPORTS KeypointBasedMotionEstimator : public ImageMotionEstimatorBase
236236
Ptr<IOutlierRejector> outlierRejector() const { return outlierRejector_; }
237237

238238
virtual Mat estimate(const Mat &frame0, const Mat &frame1, bool *ok = 0);
239+
Mat estimate(InputArray frame0, InputArray frame1, bool *ok = 0);
239240

240241
private:
241242
Ptr<MotionEstimatorBase> motionEstimator_;

modules/videostab/src/global_motion.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,14 @@ KeypointBasedMotionEstimator::KeypointBasedMotionEstimator(Ptr<MotionEstimatorBa
710710

711711

712712
Mat KeypointBasedMotionEstimator::estimate(const Mat &frame0, const Mat &frame1, bool *ok)
713+
{
714+
InputArray image0 = frame0;
715+
InputArray image1 = frame1;
716+
717+
return estimate(image0, image1, ok);
718+
}
719+
720+
Mat KeypointBasedMotionEstimator::estimate(InputArray frame0, InputArray frame1, bool *ok)
713721
{
714722
// find keypoints
715723
detector_->detect(frame0, keypointsPrev_);

0 commit comments

Comments
 (0)