opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Global Motion Estimation

The video stabilization module contains a set of functions and classes for global motion estimation between point clouds or between images. More...

Data Structures

class  MotionEstimatorBase
 Base class for all global motion estimation methods. More...
class  MotionEstimatorRansacL2
 Describes a robust RANSAC-based global 2D motion estimation method which minimizes L2 error. More...
class  MotionEstimatorL1
 Describes a global 2D motion estimation method which minimizes L1 error. More...
class  ImageMotionEstimatorBase
 Base class for global 2D motion estimation methods which take frames as input. More...
class  KeypointBasedMotionEstimator
 Describes a global 2D motion estimation method which uses keypoints detection and optical flow for matching. More...
struct  RansacParams
 Describes RANSAC method parameters. More...

Enumerations

enum  MotionModel
 

Describes motion model between two point clouds.

More...

Functions

CV_EXPORTS Mat estimateGlobalMotionLeastSquares (InputOutputArray points0, InputOutputArray points1, int model=MM_AFFINE, float *rmse=0)
 Estimates best global motion between two 2D point clouds in the least-squares sense.
CV_EXPORTS Mat estimateGlobalMotionRansac (InputArray points0, InputArray points1, int model=MM_AFFINE, const RansacParams &params=RansacParams::default2dMotion(MM_AFFINE), float *rmse=0, int *ninliers=0)
 Estimates best global motion between two 2D point clouds robustly (using RANSAC method).
CV_EXPORTS Mat getMotion (int from, int to, const std::vector< Mat > &motions)
 Computes motion between two frames assuming that all the intermediate motions are known.
 RansacParams (int size, float thresh, float eps, float prob)
 Constructor.

Detailed Description

The video stabilization module contains a set of functions and classes for global motion estimation between point clouds or between images.

In the last case features are extracted and matched internally. For the sake of convenience the motion estimation functions are wrapped into classes. Both the functions and the classes are available.


Enumeration Type Documentation

enum MotionModel

Describes motion model between two point clouds.

Definition at line 59 of file motion_core.hpp.


Function Documentation

CV_EXPORTS Mat cv::videostab::estimateGlobalMotionLeastSquares ( InputOutputArray  points0,
InputOutputArray  points1,
int  model = MM_AFFINE,
float *  rmse = 0 
)

Estimates best global motion between two 2D point clouds in the least-squares sense.

Note:
Works in-place and changes input point arrays.
Parameters:
points0Source set of 2D points (32F).
points1Destination set of 2D points (32F).
modelMotion model (up to MM_AFFINE).
rmseFinal root-mean-square error.
Returns:
3x3 2D transformation matrix (32F).
CV_EXPORTS Mat cv::videostab::estimateGlobalMotionRansac ( InputArray  points0,
InputArray  points1,
int  model = MM_AFFINE,
const RansacParams &  params = RansacParams::default2dMotion(MM_AFFINE),
float *  rmse = 0,
int *  ninliers = 0 
)

Estimates best global motion between two 2D point clouds robustly (using RANSAC method).

Parameters:
points0Source set of 2D points (32F).
points1Destination set of 2D points (32F).
modelMotion model. See cv::videostab::MotionModel.
paramsRANSAC method parameters. See videostab::RansacParams.
rmseFinal root-mean-square error.
ninliersFinal number of inliers.
CV_EXPORTS Mat cv::videostab::getMotion ( int  from,
int  to,
const std::vector< Mat > &  motions 
)

Computes motion between two frames assuming that all the intermediate motions are known.

Parameters:
fromSource frame index.
toDestination frame index.
motionsPair-wise motions. motions[i] denotes motion from the frame i to the frame i+1
Returns:
Motion from the frame from to the frame to.
RansacParams ( int  size,
float  thresh,
float  eps,
float  prob 
) [inherited]

Constructor.

Parameters:
sizeSubset size.
threshMaximum re-projection error value to classify as inlier.
epsMaximum ratio of incorrect correspondences.
probRequired success probability.

Definition at line 121 of file motion_core.hpp.