我使用的是立体系统,所以我试图通过三角测量获得一些点的世界坐标。
我的相机呈现一个角度,Z轴方向(深度方向)不垂直于我的曲面。这就是为什么当我观察平面时,我得到的不是恒定的深度,而是一个“线性”变化,对吗?我想要基线方向的深度。我怎样才能重新设计?
我的投影数组和三角函数的一段代码:
#C1 and C2 are the cameras matrix (left and rig)
#R_0 and T_0 are the transformation between cameras
#Coord1 and Coord2 are the correspondant coordinate