Patent ID: 8064110

Claim:
An imaging system comprising: electronics configured to identify potentially gray pixels by determining if the pixel components fall within a range of values and comprising a first filter for identifying potentially gray pixels; electronics configured to generate a gain for a component of an image format, the gain at least partially dependent on the brightness of a light source illuminating a scene when an image of the scene was generated, the gain useable to correct the component for a color shift in the image caused by the light source; electronics configured to identify gray regions and comprising a second filter for identifying potentially gray regions; and wherein the gain is generated from a weighted average comprising a plurality of potential gray components that are each associated with a potential light source, each potential gray component in the weighted average being weighted by a factor indicating the probability that a potential light source associated with that potential gray component is a light source illuminating the scene at the time the image was generated, wherein at least a first subset of the potential gray components are associated with a first potential light source and a second subset of the potential gray components are associated with a second potential light source.