A method includes capturing an optical image to form raw data indicative of the
optical image and using a look-up table to transform the raw data into transformed
data that indicates a second image. A white color balance of the second image is
computed, and the values in the look-up table are modified based on the computed
white color balance.