Source: https://icube-miv.unistra.fr/fr/img_auth.php/a/af/TD2201.pdf