1. An imaging apparatus comprising: determination means for determining whether a capture image is a frontlit image or a backlit image; detecting means for detecting a flesh-color area in the capture image; calculation means for setting weights, in a luminance histogram on the flesh-color area, on luminance of pixels included in a high-luminance area having a relatively high luminance value and luminance of pixels included in a low-luminance area having a relatively low luminance value in accordance with a determination result from the determination means, and calculating modified luminance produced by modifying luminance on the flesh-color area on the basis of the weights; and correcting means for correcting brightness of the capture image on the basis of the modified luminance, wherein after the determination result indicates that the capture image is a frontlit image, the weights are set such that the modified luminance is greater than an average luminance on the flesh-color area before the modification, and after the determination result indicates that the capture image is a backlit image, the weights are set such that the modified luminance is less than the average luminance on the flesh-color area before the modification.