Patent ID: 7834915

Claim:
An image processing apparatus that processes input image data, the image processing apparatus comprising: an exposure-correction-value acquiring unit that acquires exposure correction values at plural stages with respect to an exposure control value during imaging of the input image data; an illumination-component generating unit that generates illumination components on the basis of the input image data; a gain-amount calculating unit that multiplies each of plural weighting coefficients, which are set by the number of stages of the exposure correction values acquired by the exposure-correction-value acquiring unit and set according to brightness of pixels in an identical position of the illumination components such that a total value of the exposure coefficients in the pixels in the identical position is 1, with a multiplication coefficient corresponding to the exposure correction value corresponding to the weighting coefficient and adds up multiplied values to calculate a gain amount; and a gain applying unit that applies, for each of the pixels, the gain amount calculated by the gain-amount calculating unit to the input image data.