OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Wed, 22 Jan 2014 01:59:29 -0600solvepnp(), transformation output from which coordinate system?http://answers.opencv.org/question/26893/solvepnp-transformation-output-from-which-coordinate-system/The documentation of solvepnp is a bit unclear to me. Is the output tvec (translation) the distance from the checkerboard to the camera coordinate system? And rvec the rotation of the camera coordinate system relative to the checkerboard coordinate system?
In other words how can I use the rvec and tvec to get the position of the checkerboard frame in the camera coordinate system?Tue, 21 Jan 2014 07:30:28 -0600http://answers.opencv.org/question/26893/solvepnp-transformation-output-from-which-coordinate-system/Answer by JohannesZ for <p>The documentation of solvepnp is a bit unclear to me. Is the output tvec (translation) the distance from the checkerboard to the camera coordinate system? And rvec the rotation of the camera coordinate system relative to the checkerboard coordinate system? </p>
<p>In other words how can I use the rvec and tvec to get the position of the checkerboard frame in the camera coordinate system?</p>
http://answers.opencv.org/question/26893/solvepnp-transformation-output-from-which-coordinate-system/?answer=26943#post-id-26943rvec and tvec are standing for the transformation from the object coordinate system to the camera coordinate system. It is also called a rigid motion. You need to use the formula of ridriguez to build a rotation matrix from rvec. then, you can combine the rotation matrix and translation vector to a 4X4 matrix for exmaple.Wed, 22 Jan 2014 01:59:29 -0600http://answers.opencv.org/question/26893/solvepnp-transformation-output-from-which-coordinate-system/?answer=26943#post-id-26943