1. A method, comprising: generating an input brightness histogram of an input image; based at least on the input brightness histogram, determining a classification category for the input image, the determined classification category from a plurality of classification categories; specifying a target brightness histogram corresponding to the classification category of the input image; generating a transformation function based at least on the input brightness histogram and the target brightness histogram; and producing an output image from the input image based at least on the transformation function.