Click here to Skip to main content
15,887,361 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm a postgraduate researching the 3D-reconstruction with opencv.Suppose I have get the 2D-points from left and right cameras and want to calculate the 3D-point(X Y Z).In the book I know using the cvperspectivetransform(or someone say cvreprojectimageto3D) ,but I want know how the world coordinate comes(It seems nobody built it)?
Posted
Comments
BrainlessLabs.com 29-Dec-11 0:06am    
Are you talking about some example in the book "Learning OpenCV"?

1 solution

You have four 3D points in your problem.

You have the two camera points and the 2D points on the plane that represents the window coords. there should be a method that gives you the 3D point, on the window plane where the 2D point is found.

That is all you need to calculate two 3D lines.

Then find the intersection...

Jack Dingler
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900