Ask Your Question
0

camera pose estimation

asked 2013-10-21 04:46:14 -0600

HSV gravatar image

updated 2013-10-25 14:14:49 -0600

berak gravatar image

I have used opencv to calibrate a stereo camera pair.

Using the determined Rotation matrix and Translation vector, I would like to be able to calculate the pose of the second(R) camera, given the pose of the first(L) camera.

I have a scene where I use solvePnP to calculate the pose of the Left camera, rvec and tvec. How can I determine the rvec and tvec of the Right camera?

Thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-10-25 13:51:32 -0600

HSV gravatar image

the best answer to the question I got was from Francesco Callari over on stackoverflow best answer yet

edit flag offensive delete link more
1

answered 2013-10-21 15:44:50 -0600

antonio gravatar image

updated 2013-10-21 15:46:22 -0600

Note sure if I got it correctly but If you have a stereo camera pair, then why don't you just apply solvePnP for the image captured by the 'second' (say the Right) camera. This way you'll get the R+T for this camera. Note that the 'distCoeffs' may well be different to that of the 1st camera, and obviously it has to be known to use the solvePnP function.

In case you want the R+T of the 2nd camera with respect to the 1st camera, then I think you have to multiply the R+T matrix of the 1st camera with the inverse R+T matrix found for the second camera, where R+T matrix is the transformation matrix in homogeneous coordinates (for example, see here, or here). OpenCV has function for affine transformations (look here)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-21 04:46:14 -0600

Seen: 802 times

Last updated: Oct 25 '13