1. An image processing apparatus comprising: extraction means for extracting a highlight area on the basis of a color distribution of an input image; calculation means for calculating white balance of the input image on the basis of pixels having luminances less than a predetermined highlight point in the highlight area; and setting means for setting a gradation correction condition on the basis of the white balance and the highlight point.