OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Fri, 04 Sep 2015 09:27:44 -0500Getting real 3D points from disparity maphttp://answers.opencv.org/question/70025/getting-real-3d-points-from-disparity-map/ Hi,
I need to get the real 3D points from the disparity map i got (after stereo calibrating and rectifying). I tried to use reprojectImageTo3D, but the coordinates i get don't make sense, even the sign of them (positive/negative).
Are the points i get from the function are real coordinates in the world coordinate system i use (a chess board is attached to the photo so the coordinate system i use is according to it).
This is the code i used after calculating the disparity map:
disp.convertTo(disp, CV_32F, 1.0 / 16.0);
Mat xyz;
reprojectImageTo3D(disp, xyz, Q, true);
Thanks,
OlegThu, 03 Sep 2015 01:33:45 -0500http://answers.opencv.org/question/70025/getting-real-3d-points-from-disparity-map/Comment by Oleg_k for <p>Hi,
I need to get the real 3D points from the disparity map i got (after stereo calibrating and rectifying). I tried to use reprojectImageTo3D, but the coordinates i get don't make sense, even the sign of them (positive/negative).
Are the points i get from the function are real coordinates in the world coordinate system i use (a chess board is attached to the photo so the coordinate system i use is according to it).
This is the code i used after calculating the disparity map:</p>
<p>disp.convertTo(disp, CV_32F, 1.0 / 16.0);
Mat xyz;
reprojectImageTo3D(disp, xyz, Q, true);</p>
<p>Thanks,
Oleg</p>
http://answers.opencv.org/question/70025/getting-real-3d-points-from-disparity-map/?comment=70134#post-id-70134no one knows? :(Fri, 04 Sep 2015 09:27:44 -0500http://answers.opencv.org/question/70025/getting-real-3d-points-from-disparity-map/?comment=70134#post-id-70134