简体   繁体   English

Matlab:从视差图到3D坐标

[英]Matlab: From Disparity Map to 3D coordinates

I copied the matlab code from: http://www.mathworks.fr/fr/help/vision/ug/stereo-image-rectification.html I can compute the 3D coordinates but I am not sure if it is the correct one. 我从以下网址复制了matlab代码: http : //www.mathworks.fr/fr/help/vision/ug/stereo-image-rectification.html我可以计算3D坐标,但不确定是否正确。

Starting from the disparity map and calculating the 3D coordinates, how do we take into account of the warping tform1 and tform2 ? 从视差图开始并计算3D坐标,我们如何考虑翘曲的tform1tform2

The problem here is that you are using uncalibrated cameras. 这里的问题是您使用的是未经校准的相机。 In this case you can get up-to-scale reconstruction, but if you want the 3D points in world units, you would need to know actual distances to some points in the world. 在这种情况下,您可以进行大规模的重建,但是如果要以世界单位表示3D点,则需要知道到世界上某些点的实际距离。

I think you would be better off calibrating your stereo system. 我认为您最好校准立体声系统。 Please see this example . 请看这个例子

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

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