Patent ID: 8780107

Claim:
An image processing apparatus comprising: an obtaining unit configured to obtain a histogram of the image for the left eye and a histogram of the image for the right eye; a determination unit configured to compare a frequency of each gradation range of the histogram of the image for the left eye with a frequency of each gradation range of the histogram of the image for the right eye and determine which frequency is larger in each gradation range; a generation unit configured to generate a histogram using at least a larger one of the frequency of each gradation range in the histogram of the image for the left eye and the frequency of each gradation range of the histogram of the image for the right eye based on a result determined by the determination unit; a setting unit configured to set a gradation correction parameter based on the generated histogram; a correction unit configured to correct the gradations of both the image for the left eye and the image for the right eye using the gradation correction parameter set by the setting unit; wherein the generation unit generates the generated histogram without using a smaller one of the frequency of each gradation range of the histogram of the image for the left eye and the frequency of each gradation range of the histogram of the image for the right eye based on the result determined by the determination unit; and an output unit configured to output the image for the left eye and the image for the right eye each corrected by the correction unit.