简体   繁体   English

solvePnP:获取旋转平移矩阵

[英]solvePnP: Obtaining the rotation translation matrix

I am trying to image coordinates to 3D coordinates. 我正在尝试将坐标成像为3D坐标。 Using the solvePnP function (in C++)has given me 3X1 rotation matrix and 3X1 translation matrix. 使用solvePnP函数(在C ++中)为我提供了3X1旋转矩阵和3X1平移矩阵。 But isn't the [R|t] matrix supposed to be 3X4? 但是[R | t]矩阵不应该是3X4吗?

Any help will be greatly appreciated! 任何帮助将不胜感激!

Reading the (excellent) OpenCV documentation for solvePnP might help: 阅读(优秀的)OpenCV文档中的solvePnP可能会有所帮助:

  • "rvec – Output rotation vector (see Rodrigues() ) that, together with tvec , brings points from the model coordinate system to the camera coordinate system." “ rvec –输出旋转向量(请参阅Rodrigues()),它与tvec一起将点从模型坐标系带到摄像机坐标系。”

And following the link to Rodrigues (): 并链接到Rodrigues ():

  • src – Input rotation vector (3x1 or 1x3) or rotation matrix (3x3). src –输入旋转向量(3x1或1x3)或旋转矩阵(3x3)。
  • dst – Output rotation matrix (3x3) or rotation vector (3x1 or 1x3), respectively. dst –分别输出旋转矩阵(3x3)或旋转矢量(3x1或1x3)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM