First time here? Check out the FAQ!

Ask Your Question
1

Rotation Vectors and Translation Vectors

asked May 30 '13

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

Preview: (hide)

Comments

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 (Aug 6 '13)edit

1 answer

Sort by » oldest newest most voted
0

answered Jun 16 '14

rafaoc gravatar image

updated Jun 16 '14

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.

Preview: (hide)

Question Tools

Stats

Asked: May 30 '13

Seen: 3,102 times

Last updated: Jun 16 '14