Rotation and Translation from Essential Matrix incorrect

ぃ、小莉子 提交于 2019-12-03 16:09:12

When you decompose the essential matrix into R and t you get 4 different solutions. Three of them project the points behind one or both cameras, and one of them is correct. You have to test which one is correct by triangulating some sample points.

There is a function in the Computer Vision System Toolbox in MATLAB called cameraPose, which will do that for you.

Sumukha Manjunatha

Should it be not C1-C2 = transpose([v2 -v1] * transpose([t s]). This works.

Checked your code and found that the determinants of both R1 and R2 are -1, which is incorrect because as a rotation matrix R should have a determinant equal to 1. Just take R=-R and try again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!