Open CV Stereo – Depth image generation and filtering with python 3+, ximgproc and OpenCV 3+

How to generate a depth image using 2 stereo images. I know that there exists a tutorial in the OpenCV – docs. Although the functions of OpenCV are implemented quite well in python, there seem to be some misunderstandings in how exactly to port the code. I will present to you the code step by step. In the bottom of the post you can find the complete code to copy/paste.

Continue reading