Source: http://of2.free.fr/of-2d/file/method-graph1112.pdf