1 | initial version |
If you only have a mono camera you have to use some sort of Structure from Motion. Unfortunately, OpenCV provides you only with some building blocks but not with a complete solution for this problem and I would argue that this problem is sill not solved for all cases. By the way Goolge is trying to do similar things (Goolge Tango).
For two images you can try to do the following:
For image sequences it is getting a lot more complex (have a look at libmv there was also a project trying to make libmv compatible to opencv libmv2)