Source: https://math.unice.fr/~auroux/Work/HDR/expose_HDR.pdf