estimateFundamentalMatrix
ステレオ イメージ内の対応する点から基礎行列を推定
構文
説明
estimateFundamentalMatrix は、ステレオ イメージ内の対応する点から基礎行列を推定します。この関数は、対応するすべての点を使用するか、または外れ値を排除するように構成できます。Random-sample consensus (RANSAC) などのロバストな推定手法を使用して、外れ値を排除できます。ロバストな推定を使用すると、アルゴリズムのランダム性のために、すべての実行で結果が同一にならない場合があります。
は、ステレオ イメージ内のマッチした特徴点から、最小二乗中央値 (LMedS) 法を使用して、3 行 3 列の基礎行列 F = estimateFundamentalMatrix(matchedPoints1,matchedPoints2)F を返します。
[ はさらに、基礎行列の計算に使用されるインライアに対して、論理インデックス F,inliersIndex] = estimateFundamentalMatrix(matchedPoints1,matchedPoints2)inliersIndex を返します。inliersIndex 出力は、M 行 1 列のベクトルです。対応する点が基礎行列の計算に使用されている場合、関数がベクトルの要素を true に設定します。使用されていない場合、要素は false に設定されます。
[ はさらに、ステータス コードを返します。F,inliersIndex,status] = estimateFundamentalMatrix(matchedPoints1,matchedPoints2)
[ は、前の構文にある引数の任意の組み合わせに加えて、名前と値の引数を 1 つ以上使用してオプションを指定します。たとえば、F,inliersIndex,status] = estimateFundamentalMatrix(matchedPoints1,matchedPoints2,Name=Value)estimateFundamentalMatrix( は、基礎行列を計算する手法として MSAC を指定します。matchedPoints1,matchedPoints2,Method="MSAC")
例
入力引数
名前と値の引数
出力引数
ヒント
カメラの内部パラメーターがわかっている場合には、estimateEssentialMatrix を使用します。内部パラメーターは、カメラ キャリブレーター アプリを使用して取得できます。そうでない場合、カメラの内部パラメーターを必要としない関数 estimateFundamentalMatrix を使用できます。基礎行列は共面ワールド ポイントから推定できないことに注意してください。
アルゴリズム
参照
[1] Hartley, R., A. Zisserman, Multiple View Geometry in Computer Vision, Cambridge University Press, 2003.
[2] Rousseeuw, P., A. Leroy, Robust Regression and Outlier Detection, John Wiley & Sons, 1987.
[3] Torr, P. H. S., and A. Zisserman, MLESAC: A New Robust Estimator with Application to Estimating Image Geometry, Computer Vision and Image Understanding, 2000.
拡張機能
バージョン履歴
R2012b で導入

