1. A computer processor programmed to perform an image processing method, the method comprising: obtaining an image representative of a physical scene and comprising image histogram metadata; calculating a first image processing parameter based at least in part on the distribution of the image histogram metadata; determining first and second slope values of a tone mapping curve, wherein the first and second slope values are based at least in part on the calculated first image processing parameter, and wherein the first and second slope values are representative of the slope of the tone mapping curve at a first and second endpoint, respectively; and transforming the image according to the tone mapping curve having the first and second slope values.