A magnification chromatic aberration included in image data in a color
filter array captured by an imaging device is corrected by performing a
coordinate transformation with respect to each pixel in the image data. A
defective pixel due to the color filter array is compensated with respect
to magnification-chromatic-aberration-corrected image data.