Source: https://dbloisi.github.io/corsi/lezionisi/3.1-opencv.pdf