Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

3d point reconstruction

asked 2014-05-17 06:58:36 -0500

GiulSDU gravatar image

Hi, i have two 2d points from two rectified images, they match. How can i now compute the 3d point? I have both projection matrix. thank you

edit retag flag offensive close merge delete


  • if you have a stereo-rig, and did stereocalibration, you can build disparity via blockmatching, and use reprojectimageto3d

  • if you don't have a Q-matrix, you will need more than 2 images, and use triangulation

berak gravatar imageberak ( 2014-05-17 07:32:30 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-17 17:14:30 -0500

You could use cv::triangulatePoints:

It gives you homogeneous 3D points from two projection matrices and corresponding pixels.

edit flag offensive delete link more


that works fine thanks!! i tried to crop the original images a little bit and to use the same matching algorithm as before..the problem is that i get very different 3d-points coordinates...but the object is just the same....and i did not change the position..i just cropped the image..aren t i suppose to get the same 3d point regardless to the xy coordinate of the object in the image? can you see the error somewhere? thank you

GiulSDU gravatar imageGiulSDU ( 2014-05-18 08:37:35 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2014-05-17 06:58:36 -0500

Seen: 296 times

Last updated: May 17 '14