Patent attributes
Both a specific target and the background thereof in the image of a subject are caused to take on brightnesses that are relatively appropriate. Preliminary image sensing is performed to obtain a preliminary image of the subject. The image of a face is detected from within the preliminary image of the subject and the representative luminance of the face image is calculated. If the representative luminance calculated is not appropriate, then amount of exposure is adjusted so as to make the face image slightly darker than the appropriate brightness. Regular image sensing is then carried out. If the representative luminance of the face image in the image of the subject obtained by regular image sensing is not appropriate, a tone adjustment is applied utilizing a tone curve. Thus there is obtained an image of the subject in which both the face image and its background exhibit brightnesses that are relatively appropriate.