Source: https://www.massey.ac.nz/~gjrowlan/stereo2/lecture2.pdf