struct cv::videostab::RansacParams

Overview

Describes RANSAC method parameters. More…

#include <motion_core.hpp>

struct RansacParams
{
    // fields

    float eps;
    float prob;
    int size;
    float thresh;

    // construction

    RansacParams();

    RansacParams(
        int size,
        float thresh,
        float eps,
        float prob
        );

    // methods

    int
    niters() const;

    static
    RansacParams
    default2dMotion(MotionModel model);
};

Detailed Documentation

Describes RANSAC method parameters.

Fields

float eps

max outliers ratio

float prob

probability of success

int size

subset size

float thresh

max error to classify as inlier

Construction

RansacParams(
    int size,
    float thresh,
    float eps,
    float prob
    )

Constructor.

Parameters:

size Subset size.
thresh Maximum re-projection error value to classify as inlier.
eps Maximum ratio of incorrect correspondences.
prob Required success probability.

Methods

int
niters() const

Returns:

Number of iterations that’ll be performed by RANSAC method.

static
RansacParams
default2dMotion(MotionModel model)

Parameters:

model Motion model. See cv::videostab::MotionModel.

Returns:

Default RANSAC method parameters for the given motion model.