class cv::videostab::LpMotionStabilizer

Overview

#include <motion_stabilizing.hpp>

class LpMotionStabilizer: public cv::videostab::IMotionStabilizer
{
public:
    // construction

    LpMotionStabilizer(MotionModel model = MM_SIMILARITY);

    // methods

    Size
    frameSize() const;

    MotionModel
    motionModel() const;

    void
    setFrameSize(Size val);

    void
    setMotionModel(MotionModel val);

    void
    setTrimRatio(float val);

    void
    setWeight1(float val);

    void
    setWeight2(float val);

    void
    setWeight3(float val);

    void
    setWeight4(float val);

    virtual
    void
    stabilize(
        int size,
        const std::vector<Mat>& motions,
        std::pair<int, int> range,
        Mat* stabilizationMotions
        );

    float
    trimRatio() const;

    float
    weight1() const;

    float
    weight2() const;

    float
    weight3() const;

    float
    weight4() const;
};

Inherited Members

public:
    // methods

    virtual
    void
    stabilize(
        int size,
        const std::vector<Mat>& motions,
        std::pair<int, int> range,
        Mat* stabilizationMotions
        ) = 0;

Detailed Documentation

Methods

virtual
void
stabilize(
    int size,
    const std::vector<Mat>& motions,
    std::pair<int, int> range,
    Mat* stabilizationMotions
    )

assumes that [0, size-1) is in or equals to [range.first, range.second)