1 | initial version |
The sample ''stereo_match.py'' in OpenCV samples is writing a 3D points cloud in ply format. If you already have the disparity, you have done most of the work, just reproject the disparity with cv2.reprojectImageTo3D. You can find prototypes of C++ function in the doc.