SYSTEM AND METHOD FOR APPLYING LENS SHADING CORRECTION DURING IMAGE PROCESSING
First Claim
1. 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; and
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.
1 Assignment
0 Petitions
Accused Products
Abstract
Various techniques for lens shading correction are provided. In one embodiment, the location of a current pixel is determined relative to a gain grid having a plurality of grid points distributed in horizontal and vertical directions. If the location of the current pixel corresponds to a grid point, a lens shading gain associated with that grid point is applied to the current pixel. If the location of the current pixel is between four grid points, bi-linear interpolation is applied to the four grid points to determine an interpolated lens shading gain. In another embodiment, a radial gain grid may be provided, and lens shading gains may be interpolated based upon grid points neighboring a current pixel in the radial and angular directions. In a further embodiment, a radial lens shading gain is determined by determining a radial distance from the center of the image to the current pixel and multiplying the radial distance by a global gain parameter based upon the color of the current pixel. The radial lens shading gain is then applied to the current pixel, along with the determined lens shading grid gain or lens shading interpolated gain.
-
Citations
29 Claims
-
1. 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; and 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. 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 the location of the input pixel within a lens shading correction region defined within an imaging frame of the image sensor 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; determining an interpolated lens shading gain for the input pixel by interpolating the lens shading gains associated with a nearest set of grid points enclosing the input pixel in the horizontal and vertical directions; identifying a pixel corresponding to the center of the lens shading correction region; determining a radial distance between the center pixel and the input pixel; determining a radial lens shading gain based at least partially upon the radial distance; and applying the interpolated lens shading gain and the radial lens shading gain to the input pixel. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. An image signal processing circuit comprising:
-
an interface configured to receive image data acquired using an image sensor of an imaging device; and an image processing pipeline configured to perform a set of processing operations on the image data, wherein one of the set of processing operations is a lens shading correction operation, and wherein the image processing pipeline comprises lens shading correction logic configured to; receive an input pixel of the image data; determine the location of the input pixel within a lens shading correction region defined within an imaging frame of the image sensor relative to a gain grid having a plurality of grid points distributed horizontally and vertically, wherein each of the plurality of grid points is associated with a lens shading gain; determine an interpolated lens shading gain for the input pixel using bi-linear interpolation of the lens shading gains associated with a nearest set of grid points enclosing the input pixel; determine a radial lens shading gain as a function of a global gain parameter associated with the color of the input pixel and a radial distance between the center of the lens shading correction region and the location of the input pixel; and apply the interpolated lens shading gain and the radial lens shading gain to the input pixel. - View Dependent Claims (17, 18, 19, 20)
-
-
21. An electronic device, comprising:
-
an imaging device comprising an image sensor; and image processing circuitry configured to process image data acquired using the image sensor, wherein the image processing circuitry comprises; lens shading correction logic configured to; determine the location of an input pixel of the image data within a lens shading correction region defined within an imaging frame of the image sensor relative to a gain grid having a plurality of grid points distributed horizontally and vertically, wherein each of the plurality of grid points is associated with a lens shading gain; determine an interpolated lens shading gain for the input pixel using bi-linear interpolation of the lens shading gains associated with a nearest set of grid points enclosing the input pixel; determine a radial lens shading gain as a function of a global gain parameter associated with the color of the input pixel and a radial distance between the center of the lens shading correction region and the location of the input pixel; and apply the interpolated lens shading gain and the radial lens shading gain to the input pixel. - View Dependent Claims (22, 23, 24, 25, 26, 27)
-
-
28. One or more tangible computer-readable storage media having instructions encoded thereon for execution by a processor, the instructions comprising:
-
code to determine the location of an input pixel within a lens shading correction region defined within an imaging frame of an image sensor relative to a gain grid having a plurality of grid points distributed horizontally and vertically, wherein each of the plurality of grid points is associated with a lens shading gain; code to identify a set of grid points nearest to the location of the input pixel, wherein the set of grid points encloses the input pixel; code to compute a interpolated lens shading gain for the input pixel based upon the lens shading gains associated with the identified set of grid points; code to compute a radial lens shading gain based upon a radial distance between the center of the lens shading correction region and the location of the input pixel; and code to cause at least one of the interpolated lens shading gain or the radial lens shading gain to be applied to the input pixel. - View Dependent Claims (29)
-
Specification