OpenCV 4.5.3(日本語機械翻訳)
クラス | 列挙型 | 関数
Global Motion Estimation

クラス

class cv::videostab::MotionEstimatorBase
すべてのグローバルモーション推定手法の基底クラス.[【詳解】(英語]
class cv::videostab::MotionEstimatorRansacL2
を最小化する,ロバストなRANSACベースの大域的2Dモーション推定手法を説明します.L2誤差を最小化するグローバルな2Dモーション推定手法を説明します.[【詳解】(英語]
class cv::videostab::MotionEstimatorL1
誤差を最小化するような,大域的な2Dモーション推定手法を記述します.L1誤差を最小化するグローバルな2Dモーション推定手法を説明します.[【詳解】(英語]
class cv::videostab::ImageMotionEstimatorBase
フレームを入力とするグローバル2Dモーション推定法のベースクラスです。[【詳解】(英語]
class cv::videostab::FromFileMotionReader
class cv::videostab::ToFileMotionWriter
class cv::videostab::KeypointBasedMotionEstimator
キーポイント検出とオプティカルフローをマッチングに使用する,大域的な 2D モーション推定法について説明します.[【詳解】(英語]
struct cv::videostab::RansacParams
RANSAC法のパラメータを記述する。[【詳解】(英語]
class cv::videostab::IMotionStabilizer
class cv::videostab::MotionStabilizationPipeline
class cv::videostab::MotionFilterBase
class cv::videostab::GaussianMotionFilter
class cv::videostab::LpMotionStabilizer

列挙型

enum cv::videostab::MotionModel {
MM_TRANSLATION = 0 , MM_TRANSLATION_AND_SCALE = 1 , MM_ROTATION = 2 , MM_RIGID = 3 ,
MM_SIMILARITY = 4 , MM_AFFINE = 5 , MM_HOMOGRAPHY = 6 , MM_UNKNOWN = 7
}
2つの点群間の運動モデルを記述する。

関数

CV_EXPORTS Mat cv::videostab::estimateGlobalMotionLeastSquares (InputOutputArray points0, InputOutputArray points1, int model=MM_AFFINE, float *rmse=0)
2つの2D点群間の最適なグローバルモーションを最小二乗法で推定します。[【詳解】(英語]
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)
2つの2D点群間の最適なグローバルモーションをロバストに推定する(RANSACメソッドを使用)。[【詳解】(英語]
CV_EXPORTS Mat cv::videostab::getMotion (int from, int to, const std::vector< Mat > &motions)
すべての中間モーションが既知であると仮定して、2つのフレーム間のモーションを計算します。[【詳解】(英語]
CV_EXPORTS Mat cv::videostab::ensureInclusionConstraint (const Mat &M, Size size, float trimRatio)
CV_EXPORTS float cv::videostab::estimateOptimalTrimRatio (const Mat &M, Size size)
cv::videostab::RansacParams::RansacParams (int size, float thresh, float eps, float prob)
コンストラクタ[【詳解】(英語]
cv::videostab::GaussianMotionFilter::GaussianMotionFilter (int radius=15, float stdev=-1.f)

詳解

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.

@defgroup videostab_marching Fast Marching Method

The Fast Marching Method [Telea04] is used in of the video stabilization routines to do motion and color inpainting. The method is implemented is a flexible way and it's made public for other users.

@}

関数詳解

estimateGlobalMotionLeastSquares()

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

2つの2D点群間の最適なグローバルモーションを最小二乗法で推定します。

覚え書き
インプレースで動作し、入力点群を変更することができます。
引数
points0 2Dポイントのソースセット(32F)。
points1 2Dポイントのデスティネーションセット(32F)。
model モーションモデル(MM_AFFINEまで)。
rmse 最終的な二乗平均平方根の誤差
戻り値
3x3の2D変換行列(32F)。

estimateGlobalMotionRansac()

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
)

2つの2D点群間の最適なグローバルモーションをロバストに推定する(RANSACメソッドを使用)。

引数
points0 2Dポイントのソースセット(32F)。
points1 2Dポイントのデスティネーションセット(32F)。
model モーションモデル.cv::videostab::MotionModel を参照してください.
params RANSACメソッドのパラメータ 参照videostab::RansacParams.
rmse 最終的な二乗平均平方根の誤差
ninliers 最終的なインライアの数。

getMotion()

CV_EXPORTS Mat cv::videostab::getMotion ( int from,
int to,
const std::vector< Mat > & motions
)

すべての中間モーションが既知であると仮定して、2つのフレーム間のモーションを計算します。

引数
from ソースフレームのインデックス。
to デスティネーションフレームのインデックス。
motions motions[i]はフレームiからフレームi+1へのモーションを表す。
戻り値
Source frameからDestination frameへのモーション。

RansacParams()

cv::videostab::RansacParams::RansacParams ( int size,
float thresh,
float eps,
float prob
)
inline

コンストラクタ

引数
size サブセットのサイズ
thresh インライアとして分類するための最大再投影誤差値。
eps 不適切な対応関係の最大比率。
prob 必要な成功確率