From: vp153 Date: Wed, 31 Mar 2010 19:04:59 +0000 (+0000) Subject: added useExtrnisicGuess parameter description; added useExtrinsicGuess parameter... X-Git-Url: https://rtime.felk.cvut.cz/gitweb/opencv.git/commitdiff_plain/7ae6d90f566c321bfee3d60bd22989118d6182a8 added useExtrnisicGuess parameter description; added useExtrinsicGuess parameter to the Python wrapper for FindExtrinsicCameraParams2 function git-svn-id: https://code.ros.org/svn/opencv/trunk@2963 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08 --- diff --git a/opencv/doc/cv_calibration_3d.tex b/opencv/doc/cv_calibration_3d.tex index 5a69e14c..640db870 100644 --- a/opencv/doc/cv_calibration_3d.tex +++ b/opencv/doc/cv_calibration_3d.tex @@ -606,8 +606,8 @@ the function \cvCross{FindCornerSubPix}{cornerSubPix}. \fi Finds the object pose from the 3D-2D point correspondences -\cvdefC{void cvFindExtrinsicCameraParams2( \par const CvMat* objectPoints,\par const CvMat* imagePoints,\par const CvMat* cameraMatrix,\par const CvMat* distCoeffs,\par CvMat* rvec,\par CvMat* tvec );} -\cvdefPy{FindExtrinsicCameraParams2(objectPoints,imagePoints,cameraMatrix,distCoeffs,rvec,tvec)-> None} +\cvdefC{void cvFindExtrinsicCameraParams2( \par const CvMat* objectPoints,\par const CvMat* imagePoints,\par const CvMat* cameraMatrix,\par const CvMat* distCoeffs,\par CvMat* rvec,\par CvMat* tvec, \par int useExtrinsicGuess=0);} +\cvdefPy{FindExtrinsicCameraParams2(objectPoints,imagePoints,cameraMatrix,distCoeffs,rvec,tvec,useExtrinsicGuess=0)-> None} \cvdefCpp{void solvePnP( const Mat\& objectPoints,\par const Mat\& imagePoints,\par const Mat\& cameraMatrix,\par @@ -621,6 +621,7 @@ Finds the object pose from the 3D-2D point correspondences \cvarg{distCoeffs}{The input 4x1, 1x4, 5x1 or 1x5 vector of distortion coefficients $(k_1, k_2, p_1, p_2[, k_3])$. If it is NULL, all of the distortion coefficients are set to 0} \cvarg{rvec}{The output rotation vector (see \cvCross{Rodrigues2}{Rodrigues}) that (together with \texttt{tvec}) brings points from the model coordinate system to the camera coordinate system} \cvarg{tvec}{The output translation vector} +\cvarg{useExtrinsicGuess}{If true (1), the function will use the provided \texttt{rvec} and \texttt{tvec} as the initial approximations of the rotation and translation vectors, respectively, and will further optimize them.} \end{description} The function estimates the object pose given a set of object points, their corresponding image projections, as well as the camera matrix and the distortion coefficients. This function finds such a pose that minimizes reprojection error, i.e. the sum of squared distances between the observed projections \texttt{imagePoints} and the projected (using \cvCross{ProjectPoints2}{projectPoints}) \texttt{objectPoints}. diff --git a/opencv/interfaces/python/api b/opencv/interfaces/python/api index b0ebc371..c92a87fd 100644 --- a/opencv/interfaces/python/api +++ b/opencv/interfaces/python/api @@ -1324,6 +1324,7 @@ FindExtrinsicCameraParams2 CvMat distCoeffs CvMat rvec CvMat tvec + int useExtrinsicGuess 0 FindFundamentalMat int CvMat points1 CvMat points2