摘要 |
A local region determining section determines a region above a face, detected by a face detecting section, to be a local region, which is a part of a shadowless background region. An extraction executing section extracts regions adjacent to the local region and constituted by pixels of a similar color to that of the local region, as the shadowless background region. A shadow region extracting section extracts a region adjacent to the shadowless background region and constituted by pixels, of which: differences in hue and saturation from the average hue and the average saturation of the local region are within predetermined threshold values; the brightness is lower than the average brightness of the local region; and the difference in the brightnesses exceeds a predetermined threshold value, as a shadow region. A correcting section corrects the brightness of the shadow region to match that of the local region, to remove a shadow.
|