Patent ID: 8395640

Claim:
A method, comprising: receiving, by an imaging device, light data, wherein the light data includes information that pertains to an ambient light condition; determining, by the imaging device, a colormap based on the received light data, wherein the colormap is configured to compensate for the ambient light condition; and converting, by the imaging device, a received input colorspace into an output colorspace based on the determined colormap, wherein the received input colorspace is associated with data to be output by the imaging device, wherein determining a colormap based on the received light data comprises determining, by the imaging device, a weight value for each of a plurality of pre-generated colormaps, wherein the plurality of pre-generated colormaps are each generated with a different illuminant value, and wherein determining a weight value comprises determining a distance between (i) a white point of each of the plurality of pre-generated colormaps and (ii) an illuminant of the light data, and selecting, by the imaging device, the colormap from the plurality of pre-generated colormaps based on the weight values.