摘要 |
A white balance adjustment method includes capturing a raw image by an image capturing device, setting an initial maximum and an initial minimum threshold values of each channels, and obtaining a reference white and a reference black. Color scale values of each R, G, and B channels are extracted and a minimum, a maximum, and an average values of the color scale values corresponding to each channels are obtained. A modulation factor of each channel is defined by using above defined three values, according to the modulation factor of each channels to re-define a new maximum threshold value as a reference white and a new minimum threshold value as a reference black. According to the obtained reference black and the reference white to complete the white balance adjustment of the image. |
主权项 |
1. A white balance adjustment method of an image capturing device, the method comprising:
S1: capturing a raw image using the image capturing device; S2: setting an initial maximum threshold value Rmax and minimum threshold value Rmin of each R, G, and B channels of the raw image, making Rmax=Rmin, wherein an average value of color scale within the maximum threshold value represents a reference white, and an average value of color scale within the minimum threshold value represents a reference black; S3: extracting color scale values of each R, G, and B channels of the raw image, and obtaining a minimum value “a”, a maximum value “b”, and an average value “c” of the color scale values corresponding to the channels; S4: defining a modulation factor “r”, r=(c−a)/(b−a) of each R, G, and B channels; S5: defining a new maximum threshold value Rmax′ and a new minimum threshold value Rmin′ of each R, G, and B channels; if r<0.5, then Rmin′=r×Rmin and Rmax′=(2.0−r)×Rmax; on the contrary, Rmin′=(2.0−r)×Rmin and Rmax′=r×Rmax; and S6: obtaining an average value of the color scale within the new maximum threshold value Rmax′ and the new minimum threshold value Rmin′ of each R, G, and B channels; and obtaining the reference black and the reference white corresponding to the channels; according to the reference black and the reference white of R, G, and B channels, a color histogram stretching (CHS) method is adapted to adjust the white balance of each corresponding channels. |