class cv::videostab::KeypointBasedMotionEstimator

Describes a global 2D motion estimation method which uses keypoints detection and optical flow for matching.

#include <global_motion.hpp>

class KeypointBasedMotionEstimator: public cv::videostab::ImageMotionEstimatorBase
{
public:
    // construction

    KeypointBasedMotionEstimator(Ptr<MotionEstimatorBase> estimator);

    // methods

    Ptr<FeatureDetector>
    detector() const;

    virtual
    Mat
    estimate(
        const Mat& frame0,
        const Mat& frame1,
        bool* ok = 0
        );

    Mat
    estimate(
        InputArray frame0,
        InputArray frame1,
        bool* ok = 0
        );

    virtual
    MotionModel
    motionModel() const;

    Ptr<ISparseOptFlowEstimator>
    opticalFlowEstimator() const;

    Ptr<IOutlierRejector>
    outlierRejector() const;

    void
    setDetector(Ptr<FeatureDetector> val);

    virtual
    void
    setMotionModel(MotionModel val);

    void
    setOpticalFlowEstimator(Ptr<ISparseOptFlowEstimator> val);

    void
    setOutlierRejector(Ptr<IOutlierRejector> val);
};

Inherited Members

public:
    // methods

    virtual
    Mat
    estimate(
        const Mat& frame0,
        const Mat& frame1,
        bool* ok = 0
        ) = 0;

    virtual
    MotionModel
    motionModel() const;

    virtual
    void
    setMotionModel(MotionModel val);