Source: https://info.usherbrooke.ca/hlarochelle/ift615/ift615-14.4-vision-contours-images.pdf