Source: https://theses.hal.science/tel-00649851/file/ml-HDR-v8.pdf