1. A method for determining a pixel transformation function that maximizes backlight dimming while maintaining a pre-specified distortion level comprising: determining a minimum dynamic range of pixel values in a transformed image based on an original image and the pre-specified distortion level; and determining the pixel transformation function, wherein the pixel transformation function takes a histogram of the original image to a uniform distribution histogram having the minimum dynamic range.