BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram showing the structure of the main part of an image pickup apparatus according to an embodiment of the present invention;
FIG. 2 is a flowchart showing the overall flow of exposure control and flash emission control;
FIG. 3 is a flowchart showing a procedure for calculating an importance level of a face;
FIG. 4 is a graph showing the correspondence between the face proportion and the face size importance level factor;
FIG. 5 is a diagram showing a method for calculating the distance between the screen center region and the face;
FIG. 6 is a diagram showing a method for calculating the included angle;
FIGS. 7A and 7B are graphs showing a method for calculating the face position importance level factor and a method for calculating the position-posture importance level factor, respectively;
FIGS. 8A and 8B are diagrams showing methods for setting a detection frame on the basis of face detection results;
FIG. 9 is a flowchart showing the flow of a process for determining a peak of histogram data;
FIG. 10 is a graph showing a first example of the detection of brightness histogram data of the face and the background;
FIG. 11 is a graph showing a second example of the detection of brightness histogram data of the face and the background;
FIG. 12 is a graph showing a third example of the detection of brightness histogram data of the face and the background;
FIG. 13 is a flowchart showing the flow of a process for setting a target brightness range;
FIG. 14 is a graph showing the relationship between the amount of external light and the shift amount of the target brightness range;
FIG. 15 is a graph showing the relationship between the importance level of the face and the adjustment ratio for the width of the target brightness range;
FIG. 16 is a flowchart showing a first portion of the flow of a process for re-calculating the amount of exposure control and flash control information;
FIG. 17 is a flowchart showing a second portion of the flow of the process for re-calculating the amount of exposure control and flash control information;
FIG. 18 is a diagram showing histogram data obtained when the adjustment amount is applied in step S511 in the state shown in FIG. 12;
FIG. 19 is a correction curve to be used in step S513 shown in FIG. 17;
FIG. 20 is a diagram showing histogram data obtained when an adjustment amount is applied in the state shown in FIG. 12 after gradation correction is performed;
FIG. 21 is a diagram showing histogram data obtained when the adjustment amount is applied in the state shown in FIG. 10;
FIG. 22 is a diagram showing histogram data obtained when an adjustment amount lower than the determined adjustment amount is applied in the state shown in FIG. 10;
FIG. 23 is a correction curve used in step S520 shown in FIG. 17;
FIG. 24 is a diagram showing histogram data obtained when a corrected adjustment amount is used in the state shown in FIG. 10 and gradation correction is performed; and
FIG. 25 is a diagram showing an example of the setting of an eye detection region.