# US 2017/0287148 A1 · Macropixel processing system, method and article

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

- Number: US 2017/0287148 A1
- Document ID: US20170287148A1
- Status: Published application
- Kind: A1
- Application number: 15/088,923
- Filed: 2016-04-01
- Published: 2017-10-05
- Earliest claimed: 2016-04-01
- Assignees: STMicroelectronics (Grenoble 2) SAS
- Applicants: STMicroelectronics (Grenoble 2) SAS
- Inventors: Mathieu Thivin; Maurizio Colombo
- Web page: https://patentgrep.com/patent/US20170287148A1

## CPC

- G06T 7/90: Determination of colour characteristics
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- H04N 9/646: {for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters}
- H04N 9/77: Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase (circuits for matrixing H04N9/67)
- H04N 23/10: for generating image signals from different wavelengths
- H04N 25/447: by preserving the colour pattern with or without loss of information
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A digital image processing circuit processes macro-pixels of a digital image. A gain control parameter of each pixel of the macro-pixel of the digital image is determined based on a location of the pixel in the digital image. Relative pixel positions of the pixels of the macro-pixel are determined, the relative pixel positions representing pixel positions with respect to color grids. A gain value of each pixel of the macro-pixel is determined based on the relative pixel positions. The gain values are modified based on the gain control parameters. The modified gains are applied to the pixels of the macro-pixel.

## Claims

### Claim 1

A method, comprising:
determining, using digital image processing circuitry, a gain control parameter of each pixel of a macro-pixel of a digital image based on a location of the pixel in the digital image;
determining, using the digital image processing circuitry, relative pixel positions of the pixels of the macro-pixel, the relative pixel positions representing pixel positions with respect to color grids;
determining, using the digital image processing circuitry, a gain value of each pixel of the macro-pixel based on the determined relative pixel positions;
modifying, using the digital image processing circuitry, the determined gain value of each pixel of the macro-pixel based on the determined gain control parameter of the pixel; and
applying to each pixel of the macro-pixel, using the digital image processing circuitry, the modified gain value of the pixel.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
determining the gain control parameter of a first pixel of the macro-pixel based on a function of the location of the pixel.

### Claim 3 (depends on 2)

The method of claim 2 wherein the function f(x,y) of the location of the pixel is:
f(x,y)=1−C×R(x,y)2
where C is an adjustable parameter, x and y are coordinates of the first pixel from a center of the image, and:
R(x,y)2=x2+y2.

### Claim 4 (depends on 3)

The method of claim 3, comprising:
determining values of x2 and of y2 of the top-left pixel of the macro-pixel; and
determining the gain control parameters of other pixels of the macro-pixel based on the determined values of x2 and of y2 of the top-left pixel of the macro-pixel.

### Claim 5 (depends on 1)

The method of claim 1 wherein determining the gain control parameter of a first pixel of the macro-pixel comprises determining an interim value based on the location of the pixel in the digital image, and the method comprises:
determining the gain control parameters of other pixels of the macro-pixel based on the determined interim value.

### Claim 6 (depends on 5)

The method of claim 5 wherein determining the gain control parameters of the pixels of the macro-pixel comprises applying a function based on the determined interim value.

### Claim 7 (depends on 5)

The method of claim 5 wherein determining relative pixel positions of the pixels of the macro-pixel comprises:
determining a relative pixel position of one of the pixels of the macro-pixel; and
determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel.

### Claim 8 (depends on 7)

The method of claim 7 wherein the determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel comprises setting the relative pixel positions of the other pixels to the determined relative pixel position of the one pixel.

### Claim 9 (depends on 1)

The method of claim 1 wherein determining relative pixel positions of the pixels of the macro-pixel comprises:
determining a relative pixel position of one of the pixels of the macro-pixel; and
determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel.

### Claim 10 (depends on 9)

The method of claim 9 wherein the determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel comprises setting the relative pixel positions of the other pixels to the determined relative pixel position of the one pixel.

### Claim 11 (depends on 10)

The method of claim 10 wherein:
the macro-pixel comprises a green-in-red pixel, a red pixel, a blue pixel and a green-in-blue pixel; and
the relative pixel positions represent:
a relative pixel position of the green-in-red pixel with respect to a green-red color grid;
a relative pixel position of the red pixel with respect to a red color grid;
a relative pixel position of the blue pixel with respect to a blue color grid; and
a relative pixel position of the green-in-blue pixel with respect to a green-blue color grid.

### Claim 12

A device, comprising:
an input configured to receive a macro-pixel of a digital image; and
digital image processing circuitry, which, in operation:
determines a gain control parameter of each pixel of a macro-pixel of a digital image based on a location of the pixel in the digital image;
determines relative pixel positions of the pixels of the macro-pixel, the relative pixel positions representing pixel positions with respect to color grids;
determines a gain value of each pixel of the macro-pixel based on the determined relative pixel positions;
modifies the determined gain value of each pixel of the macro-pixel based on the determined gain control parameter of the pixel; and
applies, to each pixel of the macro-pixel, the modified gain value of the pixel.

### Claim 13 (depends on 12)

The device of claim 12 wherein the digital image processing circuitry, in operation, determines the gain control parameter of a top-left pixel of the macro-pixel based on a function of the location of the top-left pixel.

### Claim 14 (depends on 13)

The device of claim 13 wherein the function is:
f(x,y)=1−C×R(x,y)2
where C is an adjustable parameter, x and y are coordinates of the first pixel from a center of the image, and:
R(x,y)2=x2+y2.

### Claim 15 (depends on 14)

The device of claim 14 wherein the digital image processing circuitry, in operation:
determines values of x2 and of y2 of the first pixel of the macro-pixel; and
determines the gain control parameters of other pixels of the macro-pixel based on the determined values of x2 and of y2.

### Claim 16 (depends on 12)

The device of claim 12 wherein the digital image processing circuitry, in operation:
determines the gain control parameter of a first pixel of the macro-pixel by determining an interim value based on the location of the pixel in the digital image; and
determines the gain control parameters of other pixels of the macro-pixel based on the determined interim value.

### Claim 17 (depends on 16)

The device of claim 16 wherein the digital image processing circuitry, in operation, determines relative pixel positions of the pixels of the macro-pixel by:
determining a relative pixel position of one of the pixels of the macro-pixel; and
determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel.

### Claim 18 (depends on 17)

The device of claim 17 wherein the digital image processing circuitry, in operation, sets the relative pixel positions of the other pixels to the determined relative pixel position of the one pixel.

### Claim 19 (depends on 12)

The device of claim 12 wherein the digital image processing circuitry, in operation,
determines a relative pixel position of one of the pixels of the macro-pixel; and
determines relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel.

### Claim 20 (depends on 19)

The device of claim 19 wherein the digital image processing circuitry, in operation, sets the relative pixel positions of the other pixels to the determined relative pixel position of the one pixel.

### Claim 21

A system, comprising:
one or more image sensors; and
digital image processing circuitry, which, in operation:
determines a gain control parameter of each pixel of a macro-pixel of a digital image based on a location of the pixel in the digital image;
determines relative pixel positions of the pixels of the macro-pixel, the relative pixel positions representing pixel positions with respect to color grids;
determines a gain value of each pixel of the macro-pixel based on the determined relative pixel positions;
modifies the determined gain value of each pixel of the macro-pixel based on the determined gain control parameter of the pixel; and
applies, to each pixel of the macro-pixel, the modified gain value of the pixel.

### Claim 22 (depends on 21)

The system of claim 21 wherein the digital image processing circuitry, in operation:
determines the gain control parameter of a first pixel of the macro-pixel by determining an interim value based on the location of the pixel in the digital image; and
determines the gain control parameters of other pixels of the macro-pixel based on the determined interim value.

### Claim 23 (depends on 21)

The system of claim 21 wherein the digital image processing circuitry, in operation, determines relative pixel positions of the pixels of the macro-pixel by:
determining a relative pixel position of one of the pixels of the macro-pixel; and
determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel.

### Claim 24

A non-transitory computer-readable medium having contents which cause digital image processing circuitry to perform a method, the method comprising:
determining a gain control parameter of each pixel of a macro-pixel of a digital image based on a location of the pixel in the digital image;
determining relative pixel positions of the pixels of the macro-pixel, the relative pixel positions representing pixel positions with respect to color grids;
determining a gain value of each pixel of the macro-pixel based on the determined relative pixel positions;
modifying the determined gain value of each pixel of the macro-pixel based on the determined gain control parameter of the pixel; and
applying, to each pixel of the macro-pixel, the modified gain value of the pixel.

### Claim 25 (depends on 24)

The non-transitory computer-readable medium of claim 24 wherein the method comprises:
determining the gain control parameter of a first pixel of the macro-pixel by determining an interim value based on the location of the pixel in the digital image; and
determining the gain control parameters of other pixels of the macro-pixel based on the determined interim value.

### Claim 26 (depends on 25)

The non-transitory computer-readable medium of claim 25 wherein the method comprises:
determining a relative pixel position of one of the pixels of the macro-pixel; and
determining relative pixel position of other pixels of the macro-pixel based on the determined relative pixel position of the one pixel.
