1. A method for operating on a set of image data representing an image, the method comprising: identifying a first portion of the set of image data as representing a bright region of the image, to which highlight recovery is to be applied; identifying a second portion of the set of image data as representing a dark region of the image, to which digital lighting is to be applied; performing digital lighting on the dark region of the image by treating the second portion of the set of image data with a digital lighting process; performing highlight recovery on the bright region of the image including: inverting the set of image data; after said inverting, treating the first portion of the set of image data with said digital lighting process; and after said inverting the set of image data and said treating the first portion, inverting the set of image data again.