opencv on mbed
Global Motion Estimation
[Video Stabilization]
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 ¶ms=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:
-
points0 Source set of 2D points (32F). points1 Destination set of 2D points (32F). model Motion model (up to MM_AFFINE). rmse Final 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:
-
points0 Source set of 2D points (32F). points1 Destination set of 2D points (32F). model Motion model. See cv::videostab::MotionModel. params RANSAC method parameters. See videostab::RansacParams. rmse Final root-mean-square error. ninliers Final 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:
-
from Source frame index. to Destination frame index. motions Pair-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:
-
size Subset size. thresh Maximum re-projection error value to classify as inlier. eps Maximum ratio of incorrect correspondences. prob Required success probability.
Definition at line 121 of file motion_core.hpp.
Generated on Tue Jul 12 2022 16:42:42 by 1.7.2