Patent ID: 8498031

Claim:
A method for correcting an image captured by an image sensor, the captured image comprising a plurality of pixels, each of the pixels being associated with first, second, and third color indicators and with light intensity values for each of the color indicators, the method comprising the steps of: scanning at least a part of the pixels in the captured image and selecting each scanned pixel having at least one associated light intensity value greater than an intensity threshold value, on the basis of a comparison between the light intensity values for the respective color indicators associated with the scanned pixel; obtaining first, second, and third correction information items by summing the light intensity values associated with the pixels respectively selected by color indicator; and determining a correction of the white balance deviation affecting the captured image, on the basis of the first, second, and third correction information items, wherein in the scanning step, a scanned pixel is selected only if the difference between a mean light intensity value for the color indicators associated with the scanned pixel and a lowest light intensity value for the color indicators associated with the scanned pixel is less than a difference threshold value, and the difference between a highest light intensity value for the color indicators associated with the scanned pixel and the mean light intensity value for the color indicators associated with the scanned pixel is less than the difference threshold value.