Source: https://2gtr.weebly.com/uploads/1/1/3/7/11374864/chap4-dtection_de_contours.pdf