What is the easiest way for camera post estimation
I have two images from slighly different viewpoints. For one image I know the camera position.
What is the easiest way with OpenCV to compute the camera position of the second image?
The result does not need to be that accurate. Basically I would like to compute the movement of a phone from the video frames.
You shall detect some features (FAST or GFTT) in the 2 images and then you shall match them, and compute the mean direction of the whole object (phone). Now you have the vector of movement. Now you can compute the new position of the camera
Thanks - if this is the most straightforward approach then I'll try it. But when I first looked on OpenCV I think I saw a function that computes the camera position from the images directly without feature detection - and thus might be easier to use. Unfortunately I do not find it anymore. It was something with image pyramids and it reached 12 Hz on the developers machine.
OK, found it - I saw rgbdodometry. It seems to do everything in a single call. Unfortunately it requires depth information from a Kinect sensor.