Abstract:In order to settle the failure of the gray world algorithm when the image is occupied by one or two main color blocks,an auto white balance algorithm based on color-temperature estimation is applied in this paper,which is processed in the RGB domain.The R/G and B/G distributions of different light resources have to be researched as the groundwork.During the adjustment,the light resource of the current image is estimated based on the pixels′ raw R/G and B/G firstly,and then R,G,B gain can be calculated;finally the whole image is adjusted according to the elicited gain.The experiment result shows that when the image color is abundance,the color temperature estimation based algorithm outperforms gray world algorithm to some extent,and the average hue of the image is reduced by 19.2%.When the image is occupied by a few main color blocks,the average hue of the image is reduced by 42.8%,and the failure that the gray world algorithm faced is avoided effectively.Compared with the processing in other color domains,the result of this algorithm is better,and the precision error introduced by the changing between the color domains is eliminated.As the raw data is used,the number of the data to be processed is reduced to 1/8 of the previous.This algorithm is easy to implement,the hardware consumption is small,and it can meets the requirement of practical applications well.