1. An image processing method which sets correction conditions for correcting components regarding brightness of image data on the basis of a histogram corresponding to the components regarding image brightness represented by the image data, and corrects the image data according to the set correction conditions, said method comprising the steps of: calculating a ratio of the components included within a predetermined range in the histogram; and setting the correction conditions on the basis of the calculated ratio.