Patent ID: 7532359

Claim:
A computer-implemented process for correcting the color of improperly colored pixels of an image having multi-level red (R), green (G), and blue (B) color channels, comprising using a computer to perform the following process actions: computing a histogram of the color levels of the image pixels for each of the color channels; computing the lowermost and uppermost color levels for each of the color channels that are consistent with the overall distribution of color levels for that channel; computing the per channel average color level for a group of the brightest pixels; comparing the color levels of the G and R color channel pair and the G and B color channel pair to determine if the color levels in each compared pair is balanced; and whenever the color levels of either compared color channel pair are determined not to be balanced, linearly expanding the dynamic range of the color channel with the narrower range to match the channel with the wider dynamic range to a desired degree for each of said channel pairs found to be out of balance.