In the case where it is determined that the image is not an image in which the color balance of, for example, intermediate tones is destroyed, by performing a determination of whether an image is a sunset or a sunrise, it is possible to check whether the image is a backlight image in which the color balance of, for example, intermediate tones is destroyed, whether the image is a backlight image of