# US 2017/0289512 A1 · Lens Shading Modulation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0289512 A1
- Document ID: US20170289512A1
- Status: Published application
- Kind: A1
- Application number: 15/626,629
- Filed: 2017-06-19
- Published: 2017-10-05
- Earliest claimed: 2013-09-09
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Yingjun Bai; Michael Chin; Touraj Tajbakhsh
- Web page: https://patentgrep.com/patent/US20170289512A1

## CPC

- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- H04N 1/60: Colour correction or control {(H04N1/54 takes precedence)}
- H04N 1/6086: {by scene illuminant, i.e. conditions at the time of picture capture, e.g. flash, optical filter used, evening, cloud, daylight, artificial lighting, white point measurement, colour temperature}
- H04N 23/73: by influencing the exposure time
- H04N 25/61: the noise originating only from the lens unit, e.g. flare, shading, vignetting or "cos4"
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

This disclosure pertains to systems, methods, and computer readable media for performing lens shading correction (LSC) operations that modulate gains based on scene lux level and lens focus distance. These gains compensate for both color lens shading (i.e., the deviation between R, G, and B channels) and vignetting (i.e., the drop off in pixel intensity around the edges of an image). As scene illuminance increases, the sensor captures more signal from the actual scene, and the lens shading effects begin to appear. To deal with the situation, the lens shading gains are configured to adaptively ‘scale down’ when scene lux approaches zero and ‘scale up’ when scene lux changes from near zero to become larger. The lens shading gain may also be modulated based on the focus distance. For optical systems without zoom, the inventors have discovered that the amount of lens shading fall off changes as focus distance changes.

## Claims

### Claim 1

A non-transitory program storage device, readable by a programmable control device and comprising instructions stored thereon to cause the programmable control device to:
obtain a first image of a scene, wherein the first image comprises a first plurality of pixels;
determine a lens shading correction level based, at least in part, on a focal distance of a lens used to capture the first image; and
apply the determined lens shading correction level to the first image,
wherein the determined lens shading correction level encompasses both color shading gain and vignetting gain.

### Claim 2 (depends on 1)

The non-transitory program storage device of claim 1, wherein the instructions to determine a lens shading correction level further comprise instructions to:
determine a lens shading correction curve, wherein the lens shading correction curve comprises a blended combination of a first curve and a second curve.

### Claim 3 (depends on 2)

The non-transitory program storage device of claim 2, wherein respective contributions of the first curve and second curve to the blended combination are based, at least in part, on the focal distance.

### Claim 4 (depends on 2)

The non-transitory program storage device of claim 2, wherein the first curve comprises a function obtained from a calibration at a macro lens setting of the lens used to capture the first image.

### Claim 5 (depends on 2)

The non-transitory program storage device of claim 2, wherein the second curve comprises a function obtained from a calibration at an infinity focus lens setting of the lens used to capture the first image.

### Claim 6 (depends on 1)

The non-transitory program storage device of claim 1, wherein the vignetting gain is applied equally to each color channel of an image sensor used to capture the first image.

### Claim 7 (depends on 1)

The non-transitory program storage device of claim 1, wherein the lens shading correction level is a function of normalized diagonal field position from a center of a lens used to capture the first image.

### Claim 8 (depends on 1)

The non-transitory program storage device of claim 1, further comprising instructions stored thereon to cause the programmable control device to characterize an optical system of the lens used to capture the first image.

### Claim 9

A system, comprising:
an image capture device comprising a lens;
a memory operatively coupled to the image capture device and having, stored therein, computer program code; and
a programmable control device operatively coupled to the memory and comprising instructions stored thereon to cause the programmable control device to execute the computer program code to:
obtain a first image of a scene, wherein the first image comprises a first plurality of pixels;
determine a lens shading correction level based, at least in part, on a focal distance used to capture the first image; and
apply the determined lens shading correction level to the first image,
wherein the determined lens shading correction level encompasses both color shading gain and vignetting gain.

### Claim 10 (depends on 9)

The system of claim 9, wherein the instructions to cause the programmable control device to execute the computer program code to determine a lens shading correction level further comprise instructions to:
determine a lens shading correction curve, wherein the lens shading correction curve comprises a blended combination of a first curve and a second curve.

### Claim 11 (depends on 10)

The system of claim 10, wherein respective contributions of the first curve and second curve to the blended combination are based, at least in part, on the focal distance.

### Claim 12 (depends on 10)

The system of claim 10, wherein the first curve comprises a function obtained from a calibration at a macro lens setting of the lens used to capture the first image.

### Claim 13 (depends on 10)

The system of claim 10, wherein the second curve comprises a function obtained from a calibration at an infinity focus lens setting of the lens used to capture the first image.

### Claim 14 (depends on 9)

The system of claim 9, wherein the vignetting gain is applied equally to each color channel of an image sensor used to capture the first image.

### Claim 15 (depends on 9)

The system of claim 9, wherein the lens shading correction level is a function of normalized diagonal field position from a center of a lens used to capture the first image.

### Claim 16 (depends on 9)

The system of claim 9, wherein the memory further comprises instructions stored thereon to cause the programmable control device to execute the computer program code to characterize an optical system of the lens used to capture the first image.

### Claim 17

A method comprising:
obtaining a first image of a scene, wherein the first image comprises a first plurality of pixels;
determining a lens shading correction level based, at least in part, on a focal distance used to capture the first image; and
applying the determined lens shading correction level to the first image,
wherein the determined lens shading correction level encompasses both color shading gain and vignetting gain.

### Claim 18 (depends on 17)

The method of claim 17, wherein determining a lens shading correction level further comprises:
determining a lens shading correction curve, wherein the lens shading correction curve comprises a blended combination of a first curve and a second curve.

### Claim 19 (depends on 18)

The method of claim 18, wherein respective contributions of the first curve and second curve to the blended combination are based, at least in part, on the focal distance.

### Claim 20 (depends on 17)

The method of claim 17, wherein the first curve comprises a function obtained from a calibration at a macro lens setting of the lens used to capture the first image, and wherein the second curve comprises a function obtained from a calibration at an infinity focus lens setting of the lens used to capture the first image.
