Perceptual Dynamic Range for In-Camera Image Processing