最終更新:2019-02-22 (金) 06:36:08 (1893d)  

cv::findHomography
Top / cv::findHomography

Mat findHomography(InputArray srcPoints, InputArray dstPoints, int method=0, double ransacReprojThreshold?=3, OutputArray? mask=noArray() )

http://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html?highlight=findhomography

パラメータ

  • srcPoints – 元平面の点群の座標. CV_32FC2 型の行列,あるいは vector<Point2f> .
  • dstPoints – 目的平面の点群の座標. CV_32FC2 型の行列,あるいは vector<Point2f> .
  • method –
    • ホモグラフィ行列を求めるための手法:以下の内の1つ:
    • 0 : 点の組をすべて利用する通常の手法
    • CV_RANSAC RANSAC : アルゴリズムに基づくロバストな手法
    • CV_LMEDS LMedS推定(Least-Median)によるロバストな手法
    • ransacReprojThreshold?
    • 点の組を,インライア値(外れ値ではないもの)として扱うために許容される逆投影誤差の最大値(これは,RANSACメソッドでのみ利用されます).つまり,もし \| \texttt{dstPoints} _i - \texttt{convertPointsHomogeneous?} ( \texttt{H} \texttt{srcPoints} _i) \| > \texttt{ransacReprojThreshold?}
  • であれば,点 i は外れ値であるとみなされます. srcPoints と dstPoints がピクセル単位で表されているならば,このパラメータは1から10の範囲内の値が妥当です.
  • status – ロバスト手法( CV_RANSAC または CV_LMEDS )を利用した場合に,オプションとして出力されるマスク. 入力マスク値は無視されることに注意してください.

参考