OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Sun, 13 Jan 2013 07:35:18 -0600Recovering relative translation/rotation from fundamental matrixhttp://answers.opencv.org/question/5997/recovering-relative-translationrotation-from-fundamental-matrix/Hello,
I am trying to do 3d reconstruction using multiple views of an object.
What I have up to now is the following:
1.) Camera Intrinsics are known, so undistort() all images.
2.) Do SIFT on all images.
3.) Match all keypoints. (results visually tested, seem very good)
4.) Use findfundamentalmat(), reprojection error is also very good, and epilines look right.
5.) Extract 4 possible solutions from f using SVD, as stated in [Wikipedia](http://en.wikipedia.org/wiki/Essential_matrix)
6.) Build a unit cube, translate along z, and reproject it to all images, relative to the first.
Also compute the epilines to the points of the cube using computed f.
The problem I have now is, by my understanding, the four possible solutions should let the reprojected cube lie on it's matching epilines from the first images. But they do not. The transformation "seems" right, but even trying interactively different scalings of the translation the points of the reprojected cube are never on the epilines.
Here are some screenshot to illustrate the situation. The epilines seem right to me.
Image 0: (R|t) = (0|0)
![image0](http://imageshack.us/a/img690/9125/bildschirmfoto20130113u.png)
image 1 : (R|t) = computed transformation according to wikipedia (already picked the "right" solution)
![image1](http://imageshack.us/a/img194/9125/bildschirmfoto20130113u.png)
I know this seems to be a problematic thing, I found lots of thread about similar problems but no solutions... :/
please help!Sun, 13 Jan 2013 07:35:18 -0600http://answers.opencv.org/question/5997/recovering-relative-translationrotation-from-fundamental-matrix/