Patent ID: 7423674

Claim:
An electronic camera comprising: an imaging section capturing an image of an object; an imaging control section generating a test image and a main image by controlling said imaging section, the test image being captured without a flash, the main image being captured with a flash; a histogram calculating section calculating a histogram distribution for each of the test image and the main image; a histogram correlation judging section judging correlation between two histogram distributions calculated by said histogram calculating section; a white balance calculating section determining a white balance adjustment value, placing importance on a color temperature of a flash, when judging that a flash has not illuminated an object evenly according to a histogram correlation judging section's judgment that the correlation is low, and determining a white balance adjustment value, placing importance on a color temperature of the main image, when judging that a flash has illuminated an object evenly or a flash has not reached an object evenly according to a histogram correlation judging section's judgment that the correlation is high; and a white balance adjusting section adjusts a white balance of the main image in accordance with the white balance adjustment value determined by said white balance calculating section.