简体   繁体   English

给定点在立体图像中的位置,即可找到该点的3D位置的函数

[英]Function that finds 3D position of a point given its position in stereo images

Clarification: You have a point in 3D space and a stereo camera setup that captures the point in its left and right images. 澄清:您在3D空间中有一个点,并且有一个立体摄像机设置来捕获其左右图像中的点。 Is there a function that uses the pixel coordinates of the point in both images (along with the intrinsic/extrinsic parameters of the stereo rig) and outputs the 3D coordinates of the point? 是否有一个功能使用两个图像中点的像素坐标(以及立体装备的内部/外部参数)并输出该点的3D坐标?

I've looked through the EMGU library and tried googling others that might have it, but I've had no luck. 我浏览了EMGU库,并尝试使用其他可能拥有它的库,但是我没有运气。

Any help would be appreciated. 任何帮助,将不胜感激。

Assuming the images have been rectified 假设图像已校正

Z = (b * f) / (Xleft - Xright)

where 哪里

  • Z = point Z coordinate in 3D space Z = 3D空间中的Z点坐标
  • b = baseline = distance between stereo cameras b =基线=立体相机之间的距离
  • f = focal length f =焦距
  • Xleft = x coordinate of point in left image Xleft =左侧图像中点的x坐标
  • Xright = x coordinate of point in right image Xright =右侧图像中点的x坐标

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

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