I have a straightforward (I guess) problem to solve with opencv:
- I have 3 non-colinear Points in the 3D system given in cm:
Point A = Point(.., .., ..);
Point B = Point(.., .., ..);
Point C = Point(.., .., ..);
- I have the respective 2D Points relative to an image with height H and width W, everything given in pixels:
Point A_proj = Point(.., ..);
Point B_proj = Point(.., ..);
Point C_proj = Point(.., ..);
- The camera from which the image was grabbed has focal length f 3.67 mm
How can I estimate the 6-dof camera position (translation and rotation) from those data using OpenCV? Is that possible?
Example
This is the coordinates of points in 3D system:
This is the a 640x480 image taken from some camera pose I want to estimate: