43
#ifndef OPENCV_VIDEOSTAB_MOTION_CORE_HPP
44
#define OPENCV_VIDEOSTAB_MOTION_CORE_HPP
47
#include "opencv2/core.hpp"
62
MM_TRANSLATION_AND_SCALE = 1,
87
RansacParams(
int
size,
float
thresh,
float
eps,
float
prob);
94
return
static_cast<
int
>(
105
if
(model == MM_TRANSLATION)
107
if
(model == MM_TRANSLATION_AND_SCALE)
109
if
(model == MM_ROTATION)
111
if
(model == MM_RIGID)
113
if
(model == MM_SIMILARITY)
115
if
(model == MM_AFFINE)
121
inline
RansacParams::RansacParams(
int
_size,
float
_thresh,
float
_eps,
float
_prob)
122
: size(_size), thresh(_thresh), eps(_eps), prob(_prob) {}
CV_EXPORTS_W void pow(InputArray src, double power, OutputArray dst)
Raises every array element to a power.
CV_EXPORTS_W void log(InputArray src, OutputArray dst)
Calculates the natural logarithm of every array element.
#define CV_Assert(expr)
Checks a condition at runtime and throws exception if it fails
Definition:
base.hpp:342
MotionModel
Describes motion model between two point clouds.
Definition:
motion_core.hpp:60
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Describes RANSAC method parameters.
Definition:
motion_core.hpp:74
float eps
max outliers ratio
Definition:
motion_core.hpp:77
int size
subset size
Definition:
motion_core.hpp:75
float thresh
max error to classify as inlier
Definition:
motion_core.hpp:76
static RansacParams default2dMotion(MotionModel model)
Definition:
motion_core.hpp:102
float prob
probability of success
Definition:
motion_core.hpp:78
int niters() const
Definition:
motion_core.hpp:92