The invention discloses a white balance adjusting method, belongs to the technical field of white balance adjustment, and aims at solving the problems of
large white point selection error, easy missing and accurate selection. The method comprises the steps of (1) acquiring a Bayer template RGB interpolation image, and converting the
RGB image into a YCbCb image; (2) dividing the YCbCb image into a plurality of brightness level areas in a YCbCb space according to a brightness component Y, and counting Y, Cb and Cr components; (3) counting the statistic value of the candidate
white point in each brightness level area and the quantity of the candidate white points falling in the area according to the counted Y, Cb and Cr components; (4) selecting white points from the top brightness level area by the double-threshold method; (5) acquiring average number of YCbCb through the selected white points; (6) converting the acquired YCbCb average number into R, G and B average values of the RGB space; (7) obtaining the
channel gain for white balance adjustment according to the R, G and B average values so as to achieve the white balance
processing of a
colored image. With the adoption of the method, the stability and accuracy of statistics of the white points can be improved.