The invention discloses a white block
hypothesis based automatic white balance method of a
digital camera device. The white block
hypothesis based automatic white balance method comprises obtaining a raw image of a standard white
color code plate through the
digital camera device to be calibrated and dividing the obtained raw image into M*N division blocks; calculating average values of an R channel, a G channel and a
B channel of every division block and obtaining the current
gain; finding a definition area of the standard white under every
color temperature; dividing an image to be corrected into M*N division blocks, determining whether the
gain of every division block is contained in the definition area or not in turn and performing
color correction on the integral image through a default value if the
gain of any division block does not fall into the definition area range; accumulating the gain and the weight of the division blocks which fall into the definition area otherwise; dividing an obtained accumulated value by a
weight value corresponding to every division block respectively to obtain the gain of the image to be corrected; achieving the automatic white balance correction through the gain. The white block
hypothesis based automatic white balance method of the
digital camera device is high in robustness and accurate in white balance.