Patent ID: 8472712

Claim:
A method for applying lens shading correction to image data, comprising: using an image processor: receiving an input pixel of the image data, wherein the image data is acquired using an image sensor; determining a color component of the input pixel; determining the location of the input pixel relative to a gain grid comprising a plurality of grid points distributed in horizontal and vertical directions, wherein each of the plurality of grid points is associated with a lens shading gain selected based upon the color of the input pixel; if the location of the input pixel corresponds directly to one of the plurality of grid points, applying the lens shading gain associated with the directly corresponding grid point to the input pixel; if the location of the input pixel does not correspond directly to one of the plurality of grid points, identifying a nearest set of grid points that enclose the input pixel, determining a lens shading gain by interpolating the lens shading gains associated with each of the set of grid points, and applying the interpolated lens shading gain to the input pixel; selecting a global gain parameter based on a color channel that corresponds to the input pixel, wherein the color channel corresponds to one of a plurality of color channels for a color filter array, and wherein each of the plurality of color channels for the color filter array corresponds to a respective global gain parameter; and applying a radial lens shading gain to the input pixel, wherein the radial lens shading gain is determined by multiplying the selected global gain parameter by a radial distance between a center pixel in the gain grid and the input pixel.