1 | initial version |
Python is just calling the C++ functions, so it's essentially identical. http://docs.opencv.org/master/dd/d53/tutorial_py_depthmap.html
Anything beyond this is theory, and beyond the realm of OpenCV tutorials. I'm sure googling Stereo disparity image or something similar will find lots of relevant results.