# US 9,357,193 B2 · Method and apparatus for compensating for color imbalance in image data

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

- Number: US 9,357,193 B2
- Document ID: US9357193B2
- Status: Granted
- Kind: B2
- Application number: 14/580,536
- Filed: 2014-12-23
- Published: 2015-07-09
- Granted: 2016-05-31
- Earliest claimed: 2014-01-09
- Assignees: Marvell World Trade Ltd.
- Applicants: Marvell World Trade Ltd.
- Inventors: Huai Dong Li
- Web page: https://patentgrep.com/patent/US9357193B2

## CPC

- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- H04N 9/646: {for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters}
- H04N 25/134: {based on three different wavelength filter elements}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of correcting color imbalance in a captured image includes deriving gradient data from a group of pixels in the captured image, determining a compensation value based on the gradient data, and applying that value to at least one pixel. Apparatus for correcting color imbalance includes a digital image processor that corrects color imbalance, in an image that is output by an image detector, according to the method. Each pixel may represent a color from a set of colors, with one particular color being a selected color, and each pixel to which the compensation value is applied representing the selected color. Where the group of pixels forms a rectangular shape, the gradient data may include horizontal and vertical gradients. The classifying may be performed according to a visual characteristic of a portion of the image, where determining the compensation value is based also on the visual characteristic.

## Claims

### Claim 1

A method of correcting color imbalance in a captured image, the method comprising:
deriving gradient data from a group of pixels in a portion of the captured image;
classifying the at least one pixel according to a visual characteristic of the portion of the captured image, wherein the visual characteristic is selected from the group consisting of vertical edge, horizontal edge, busy area and non-edge area;
determining a compensation value based on the gradient data and also on the visual characteristic; and
applying the compensation value to at least one pixel in the group of pixels.

### Claim 2 (depends on 1)

The method of claim 1 wherein:
each pixel in the captured image represents a color from a set of colors;
one particular color in the set of colors is a selected color; and
each of the at least one pixel to which the compensation value is applied represents the selected color.

### Claim 3 (depends on 2)

The method of claim 2 wherein the selected color has, among all colors in the set of colors, the greatest visual response.

### Claim 4 (depends on 3)

The method of claim 3 wherein:
the set of colors is red-green-blue; and
the selected color is green.

### Claim 5 (depends on 2)

The method of claim 2 wherein the applying comprises applying the compensation value to all pixels of the selected color in the group of pixels.

### Claim 6 (depends on 2)

The method of claim 2 wherein:
the at least one pixel is a single pixel of interest;
the group of pixels is selected based on proximity to the single pixel of interest; and
the applying comprises applying the compensation value to only the single pixel of interest.

### Claim 7 (depends on 1)

The method of claim 1 wherein:
the group of pixels forms a rectangular shape; and
the gradient data comprise a horizontal gradient and a vertical gradient.

### Claim 8

A method of correcting color imbalance in a captured image, wherein:
each pixel in the captured image represents a color from a set of colors; and
one particular color in the set of colors is a selected color; the method comprising, for every individual pixel in the captured image representing the selected color:
deriving horizontal and vertical gradient data from a group of pixels surrounding the individual pixel, the group of pixels being in a portion of the captured image;
classifying the individual pixel according to a visual characteristic of the portion of the captured image, wherein the visual characteristic is selected from the group consisting of vertical edge, horizontal edge, busy area and non-edge area;
determining a compensation value based on the gradient data and the visual characteristic; and
applying the compensation value to the individual pixel.

### Claim 9 (depends on 8)

The method of claim 8 further comprising, after carrying out the deriving, the classifying, the determining and the applying on every individual pixel in the captured image representing the selected color, carrying out a demosaic operation on the captured image.

### Claim 10

Image processing apparatus comprising:
a digital image processor that corrects color imbalance in an image that is output by an image detector, by:
deriving gradient data from a group of pixels in a portion of the image,
classifying the at least one pixel according to a visual characteristic of the portion of the image, wherein the visual characteristic is selected from the group consisting of vertical edge, horizontal edge, busy area and non-edge area,
determining a compensation value based on the gradient data and also on the visual characteristic, and
applying the compensation value to at least one pixel in the group of pixels.

### Claim 11 (depends on 10)

The apparatus of claim 10 wherein:
each pixel in the image represents a color from a set of colors;
one particular color in the set of colors is a selected color; and
each of the at least one pixel to which the compensation value is applied represents the selected color.

### Claim 12 (depends on 11)

The apparatus of claim 11 wherein the selected color has, among all colors in the set of colors, the greatest visual response.

### Claim 13 (depends on 12)

The apparatus of claim 12 wherein:
the set of colors is red-green-blue; and
the selected color is green.

### Claim 14 (depends on 11)

The apparatus of claim 11 wherein the applying comprises applying the compensation value to all pixels of the selected color in the group of pixels.

### Claim 15 (depends on 11)

The apparatus of claim 11 wherein:
the at least one pixel is a single pixel of interest;
the group of pixels is selected based on proximity to the single pixel of interest; and
the applying comprises applying the compensation value to only the single pixel of interest.

### Claim 16 (depends on 14)

The apparatus of claim 14 wherein:
the group of pixels forms a rectangular shape; and
the gradient data comprise a horizontal gradient and a vertical gradient.
