1. A method for generating a tone mapped image captured by a camera comprising: accessing an image captured by an image sensor, the accessed image comprising, for each image pixel of the accessed image, a corresponding set of luminance values each representative of a color component of the pixel; generating a first histogram for aggregate luminance values of the image; accessing a target histogram for the image representative of a desired global image contrast; computing a transfer function based on the first histogram and the target histogram such that when the transfer function is applied to the aggregate luminance values of the image to create a set of modified aggregate luminance values, a histogram of the modified aggregate luminance values is within a threshold similarity of the target histogram; modifying the accessed image by applying the transfer function to the set of luminance values corresponding to each pixel of the image to produce a tone mapped image; and outputting the modified image.