A person area is detected from an inputted image, a category to which a
person shown in the person area belongs is recognized, a correction area
is extracted from the person area, and the correction area is corrected
based on the recognized category. Thus, the inputted image is easily
corrected in an appropriate manner according to the category of the
person, that is, an object.