Source: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/11/AutoExposure_ECCV2012.pdf