estimateWorldCameraPose
(非推奨) 3 次元から 2 次元への対応関係からカメラの姿勢を推定
estimateWorldCameraPose は推奨されません。代わりに関数 estworldpose を使用してください。詳細については、バージョン履歴を参照してください。
構文
説明
[ は、キャリブレートされたカメラの方向と位置をワールド座標系で返します。入力 worldOrientation,worldLocation] = estimateWorldCameraPose(imagePoints,worldPoints,cameraParams)worldPoints は、ワールド座標系で定義しなければなりません。
この関数は、透視 3 点 (P3P) アルゴリズムを使用して透視 n 点 (PnP) 問題を解きます[1]。関数は、M-estimator sample consensus (MSAC) アルゴリズムを使用して、外れ値の誤った対応関係を排除します。インライアは、カメラの姿勢の計算に使用されるイメージ ポイントとワールド ポイントの間の対応関係です。
[___, は、前の構文の引数に加え、カメラの姿勢の計算に使用されたインライアのインデックスを返します。inlierIdx] = estimateWorldCameraPose(imagePoints,worldPoints,cameraParams)
[___, はさらに、点の数が十分であったかどうかを示すステータス コードを返します。status] = estimateWorldCameraPose(imagePoints,worldPoints,cameraParams)
[___] = estimateWorldCameraPose(___, は、前述の構文のいずれかを使用し、Name,Value)Name,Value ペアの引数を 1 つ以上指定したオプションを追加で使用します。
例
入力引数
名前と値の引数
出力引数
参照
[1] Gao, X.-S., X.-R. Hou, J. Tang, and H.F. Cheng. "Complete Solution Classification for the Perspective-Three-Point Problem." IEEE Transactions on Pattern Analysis and Machine Intelligence. Volume 25,Issue 8, pp. 930–943, August 2003.
[2]
