我正在使用 opencv 来估计立体对的相对位置。我通过计算基本矩阵,分解它,然后执行手性检查来做到这一点。后面的步骤包含在 opencv 的 recoverPose
API 中。
Mat E, R, t, mask;
E = findEssentialMat(points1, points2, focal, pp, RANSAC, 0.999, 1.0, mask);
recoverPose(E, points1, points2, R, t, focal, pp, mask);
我给这两种方法的焦距都大于1。我的问题是,为什么我得到的平移向量的范数总是等于1?
最佳答案
可以在 decomposeEssentialMat
的文档中找到其原因。
By decomposing E, you can only get the direction of the translation, so the function returns unit t.
关于opencv - 从 recoverPose 得到的翻译的范数总是 1 是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33382254/