A system and a method are provided for correcting the effect of
non-uniform illumination on a reproduced image of a 2-D object. An image
of a reference card in an illuminated setting is captured by an image
capturing device. A 2-D object is placed in the same illuminated setting
and the image of the object is captured. Next, a smoothing function for
the reference card image is generated. The smoothing function is used to
generate a smoothed reference card image. The smoothed reference card
image is processed to compute inverse correction values, which are
mathematical inverse of the pixel values in the smoothed reference card
image. A pixel-by-pixel correction is then applied to the captured image
of the 2-D object using the inverse correction values.