BRIEF DESCRIPTION OF THE DRAWINGS
Preferred embodiments of the present invention will be described in detail based on the following figures, wherein:
FIG. 1 is a block diagram showing the configuration of a digital camera which is an embodiment of the present invention;
FIG. 2 is a flowchart showing flow of calculation of a WB gain;
FIG. 3 is a view showing an example result of determination of a light source;
FIG. 4 is a view showing an example reference gain table;
FIG. 5 is a flowchart showing flow of calculation of the degree of a first contribution;
FIG. 6 shows an example table of the degree of tentative contribution according to a position;
FIG. 7 shows an example peripheral block;
FIG. 8 is a view showing an example function between a distance to a subject and the degree of second contribution;
FIG. 9 is a view showing an example function between the degree of third contribution and a difference between environment brightness achieved before firing of strobe light and that achieved after firing of strobe light; and
FIG. 10 is a view showing an example result of determination of a light source.