Ask Your Question

Rotation Vectors and Translation Vectors

asked 2013-05-30 00:03:41 -0600

sachin_rt gravatar image

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 ??

edit retag flag offensive close merge delete


hi.. 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.

SHIMNA M gravatar imageSHIMNA M ( 2013-08-06 08:49:38 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-06-15 23:00:30 -0600

rafaoc gravatar image

updated 2014-06-16 00:48:26 -0600

Hi, 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.

edit flag offensive delete link more

Question Tools


Asked: 2013-05-30 00:03:41 -0600

Seen: 3,014 times

Last updated: Jun 16 '14