OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Sun, 15 Jun 2014 23:00:30 -0500Rotation Vectors and Translation Vectorshttp://answers.opencv.org/question/14256/rotation-vectors-and-translation-vectors/Hii , I am using cvCalibrateCamera2(....) function in opencv . Here one of the output that I get is the rotation_vectors which is Nx3 matrix . I have seen the documentation and it says look at cvRodrigues2() function for further details . And I have understood that cvRodrigues2() function converts the a 1x3 rotation vector to a 3x3 rotation matrix . My question is which 1x3 rotation vector out of the N , should be inputted to cvRodrigues2() function for calculating the Rotation Matrix ?? Thu, 30 May 2013 00:03:41 -0500http://answers.opencv.org/question/14256/rotation-vectors-and-translation-vectors/Comment by SHIMNA M for <p>Hii , I am using cvCalibrateCamera2(....) function in opencv . Here one of the output that I get is the rotation_vectors which is Nx3 matrix . I have seen the documentation and it says look at cvRodrigues2() function for further details . And I have understood that cvRodrigues2() function converts the a 1x3 rotation vector to a 3x3 rotation matrix . My question is which 1x3 rotation vector out of the N , should be inputted to cvRodrigues2() function for calculating the Rotation Matrix ?? </p>
http://answers.opencv.org/question/14256/rotation-vectors-and-translation-vectors/?comment=18302#post-id-18302hi..
I have to convert image space coordinates to object space coordinates. I would like to know how you determined rotation and translation matrix. Thank you in advance.
Tue, 06 Aug 2013 08:49:38 -0500http://answers.opencv.org/question/14256/rotation-vectors-and-translation-vectors/?comment=18302#post-id-18302Answer by rafaoc for <p>Hii , I am using cvCalibrateCamera2(....) function in opencv . Here one of the output that I get is the rotation_vectors which is Nx3 matrix . I have seen the documentation and it says look at cvRodrigues2() function for further details . And I have understood that cvRodrigues2() function converts the a 1x3 rotation vector to a 3x3 rotation matrix . My question is which 1x3 rotation vector out of the N , should be inputted to cvRodrigues2() function for calculating the Rotation Matrix ?? </p>
http://answers.opencv.org/question/14256/rotation-vectors-and-translation-vectors/?answer=35108#post-id-35108Hi, the parameter rvecs from cvCalibrateCamera2 is a vector of rotation vectors. It means, for each image you use for the camera calibration you will get one vector rotation. So, when you use rodrigues() you have to input each vector in order to get the matrix rotation for each image.
Later you can do a minimization using the LM (Levenberg-Marquardt) algorithm to optimize the results and get R.Sun, 15 Jun 2014 23:00:30 -0500http://answers.opencv.org/question/14256/rotation-vectors-and-translation-vectors/?answer=35108#post-id-35108