我遇到了openCV的三角测量功能的一个奇怪问题。对于我的双视姿势估计测试,我这样做:
案例1:单个相机从两个视图拍摄场景,然后计算基本矩阵并对场景进行三角测量:效果相当好。
案例2:我试图用两个相机(都经过校准)来做这个,但是三角测量失败了。对于来自相同姿势的图像对,三角测量点应该或多或少相同(实际上它们在情况1中),但现在,它们正在漂移。
示例:
t1 = [0.9950924870426178, 0.0518147862900856, -0.08429810290303305] (cam 2 at 0, 0, 0)
Homogenized feature match: (-0.1558, -0.1504, 1); (-0.0574, -0.1619, 1);
Triangulated point: [-4.8177, -4.6760, 30.92588]
t2 = [0.9962326376676536, 0.05676863562110455, -0.08508433760191333] (approx. the same as before)
Homogenized feature match: (-0.1557, -0.1504, 1); (-0.0574, -0.1619, 1); (approx. the same)
Triangulated point: [-2.3599, -2.3053, 15.1603]
我在这里做错了什么?对于下一组点,triangulatePoints会出现另一个奇怪的估计。