Source: https://cs.nyu.edu/~fergus/teaching/vision/9_10_Stereo.pdf