|
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
¶ms=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()
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 |
必要な成功確率 |