class cv::videostab::MotionEstimatorRansacL2

Overview

Describes a robust RANSAC-based global 2D motion estimation method which minimizes L2 error. Moreā€¦

#include <global_motion.hpp>

class MotionEstimatorRansacL2: public cv::videostab::MotionEstimatorBase
{
public:
    // construction

    MotionEstimatorRansacL2(MotionModel model = MM_AFFINE);

    // methods

    virtual
    Mat
    estimate(
        InputArray points0,
        InputArray points1,
        bool* ok = 0
        );

    float
    minInlierRatio() const;

    RansacParams
    ransacParams() const;

    void
    setMinInlierRatio(float val);

    void
    setRansacParams(const RansacParams& val);
};

Inherited Members

public:
    // methods

    virtual
    Mat
    estimate(
        InputArray points0,
        InputArray points1,
        bool* ok = 0
        ) = 0;

    virtual
    MotionModel
    motionModel() const;

    virtual
    void
    setMotionModel(MotionModel val);

Detailed Documentation

Describes a robust RANSAC-based global 2D motion estimation method which minimizes L2 error.

Methods

virtual
Mat
estimate(
    InputArray points0,
    InputArray points1,
    bool* ok = 0
    )

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