1 | initial version |
You need to have multiple views.
If you don't know anything about the relative rotation and translation, you use the SfM links Eduardo posted.
If you do, you can use a simpler method. I'm working on an OpenCV module to help with this: HERE.