Patent ID: 8588521

Claim:
An image processing apparatus that corrects a color shift in a captured image including a plurality of color planes, comprising: an obtaining unit configured to obtain an amount of color shift of a second color plane with respect to a first color plane on an edge portion of an image included in the captured image; and a correction unit configured to correct a pixel value of the second color plane using correction data generated from the amount of color shift, wherein said obtaining unit includes a color difference calculation unit configured to calculate a color difference between the first color plane and the second color plane for a plurality of pairs of pixels in regions of interest including the edge portion, at each of a plurality of positions to which the region of interest of the second color plane is moved relative to the first color plane, and obtains, as the amount of color shift of the second color plane with respect to the first color plane, from among distances at which a magnitude of change between (i) a color difference calculated by said color difference calculation unit without moving the region of interest of the second color plane and (ii) a color difference calculated by said color difference calculation unit upon moving the region of interest of the second color plane falls within a predetermined range, a distance of the second color plane at which a sum of absolute values of color differences between pixels in the regions of interest is minimized.