Reputation: 1124
I need to calculate 3D points from corresponding images points. The algorithm to do this is explained here: http://en.wikipedia.org/wiki/Essential_matrix. It is not working for me, I receive wrong results. 1. Procedure utilize "normalized image coordinates" - how can I calculate them? 2. R and T matrices (calculated from essential matrix) are the same as these which outputs from cv::stereocalibrate procedure?
This is what i am doing now:
Rest operations are based on this article http://en.wikipedia.org/wiki/Essential_matrix in section: 3D points from corresponding image points
Thanks for your help.
Upvotes: 5
Views: 12391
Reputation: 3052
OpenCV has a function that does just that -- cv::undistortPoints. Given the points, the camera matrix, and the camera's distortion coefficients, the "normalized" points will be output. You can read more on the page describing that function.
Upvotes: 4