Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok, so take your vector (and your two angles make a 3D line of sight, which is a vector). It's a Mat(3,1,CV_64F)

Arbitrarily define your camera matrix as the identity matrix. (If you have an actual camera, you'd use that here) Mat(3,3,CV_64F)

Multiply your vector by the camera matrix. LOS = camMat*LOS;

Now divide your LOS by is now your x value, and (1) is your y.

You can put these into solvePnP with the identity camera matrix and I think you'll get good results.