# US 2024/0334073 A1 · Multi-illumination white balance circuit with thumbnail image processing

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

- Number: US 2024/0334073 A1
- Document ID: US20240334073A1
- Status: Published application
- Kind: A1
- Application number: 18/127,296
- Filed: 2023-03-28
- Published: 2024-10-03
- Earliest claimed: 2023-03-28
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Muge Wang; David R. Pope; Roberto Montagna
- Web page: https://patentgrep.com/patent/US20240334073A1

## CPC

- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- H04N 1/608: {within the L, C1, C2 colour signals}
- H04N 23/85: for matrixing
- H04N 23/86: for controlling the colour saturation of colour signals, e.g. automatic chroma control circuits
- H04N 1/6027: {Correction or control of colour gradation or colour contrast (H04N1/6058 takes precedence)}
- H04N 1/62: Retouching, i.e. modification of isolated colours only or in isolated picture areas only
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image processing circuit for multi-illumination white balance with thumbnail processing. The image processing circuit determines a set of initial weights for a source pixel in a thumbnail image by determining component values for multiple color channels of the source pixel. The image processing circuit determines a set of weights for the source pixel in a weight map for the thumbnail image. Each weight in the set of weights is determined based on corresponding initial weights from the set of initial weights. Each weight in the set of weights represents an intensity level of a respective chrominance class of multiple chrominance classes for the source pixel. The image processing circuit applies the set of weights to values of the color channels of the source pixel to generate color component values of the color channels of a target pixel in a target thumbnail image.

## Claims

### Claim 1

An image processing circuit, comprising:
a weights determination circuit configured to determine a set of initial weights for a source pixel in a version of a thumbnail image by determining component values for a plurality of color channels of the source pixel;
a weight map calculation circuit coupled to the weights determination circuit and configured to determine a set of weights for the source pixel in a weight map for the version of the thumbnail image, each weight in the set of weights determined based on corresponding initial weights from the set of initial weights, each weight in the set of weights representing an intensity level of a respective chrominance class of a plurality of chrominance classes for the source pixel; and
a target thumbnail generator circuit coupled to the weight map calculation circuit and configured to apply the set of weights to values of the color channels of the source pixel to generate color component values of the color channels of a target pixel in a target thumbnail image.

### Claim 2 (depends on 1)

The image processing circuit of claim 1, further comprising:
a global weights calculation circuit coupled to the weight map calculation circuit and configured to determine global weights for the source pixel by applying the set of the weights to color component values of the source pixel, each of the global weights representing an intensity level of a respective global chrominance class of a plurality of global chrominance classes for the source pixel; and
a gain calculation circuit coupled to the global weights calculation circuit and configured to determine a gain for each global chrominance class of the plurality of global chrominance classes for the source pixel by processing the global weights for the source pixel and a corresponding white balance gain for the source pixel.

### Claim 3 (depends on 2)

The image processing circuit of claim 2, further comprising:
a thumbnail output direct memory access (DMA) circuit coupled to the weight map calculation circuit and the target thumbnail generator circuit, the thumbnail output DMA circuit configured to store at least one of an illumination map, the target thumbnail image, and the thumbnail image, the illumination map including the weight map and the gain for each global chrominance class.

### Claim 4 (depends on 2)

The image processing circuit of claim 2, further comprising:
a mixing circuit coupled to the global weights calculation circuit and the gain calculation circuit, the mixing circuit configured to mix each of the global weights for the source pixel with a corresponding mixing value for the source pixel to generate a white gain for each global chrominance class of the plurality of global chrominance classes for the source pixel, wherein
the gain calculation circuit is further configured to determine the gain for each global chrominance class of the plurality of global chrominance classes for the source pixel by clipping the white gain for each global chrominance class of the plurality of global chrominance classes for the source pixel.

### Claim 5 (depends on 1)

The image processing circuit of claim 1, further comprising:
a chroma adjustment circuit coupled to the weights determination circuit and configured to adjust chroma component values of the source pixel to generate adjusted chroma component values of the source pixel; and
a chroma components calculation circuit coupled to the chroma adjustment circuit and configured to determine a first chroma component value and a second chroma component value of the source pixel using the adjusted chroma component values, wherein
the weights determination circuit is further configured to determine the set of initial weights for the source pixel using the first chroma component value and the second chroma component value.

### Claim 6 (depends on 1)

The image processing circuit of claim 1, further comprising:
a color space conversion circuit coupled to the weights determination circuit and configured to perform color space conversion of pixel values of the thumbnail image in a first color format to generate the version of the thumbnail image in a second color format.

### Claim 7 (depends on 1)

The image processing circuit of claim 1, further comprising:
a spatial filtering circuit coupled to the weights determination circuit and configured to perform spatial filtering of pixel values of the thumbnail image to generate the version of the thumbnail image.

### Claim 8 (depends on 1)

The image processing circuit of claim 1, further comprising:
a chroma adjustment circuit coupled to the weights determination circuit and configured to adjust chroma component values of pixels of the version of the thumbnail image to generate a chroma-adjusted version of the thumbnail image, wherein
the weights determination circuit is further configured to determine the set of initial weights for each pixel in the chroma-scaled version of the thumbnail image using the adjusted chroma component values.

### Claim 9 (depends on 8)

The image processing circuit of claim 8, wherein the weight map calculation circuit is further configured to:
determine the weight map by computing a set of full weights for each pixel in the chroma-scaled version of the thumbnail image using the set of initial weights for each pixel in the chroma-scaled version of the thumbnail image.

### Claim 10 (depends on 1)

The image processing circuit of claim 1, further comprising:
a spatial filtering circuit coupled to the weight map calculation circuit and configured to generate a filtered multi-channel weight map by applying spatial filtering to the weight map, the filtered multi-channel weight map including a plurality of weights, each weight of the plurality of weights representing an intensity level of the respective chrominance class for each pixel in the thumbnail image.

### Claim 11

A method for image processing, the method comprising:
determining a set of initial weights for a source pixel in a version of a thumbnail image by determining component values for a plurality of color channels of the source pixel;
determining a set of weights for the source pixel in a weight map for the version of the thumbnail image, each weight in the set of weights determined based on corresponding initial weights from the set of initial weights, each weight in the set of weights representing an intensity level of a respective chrominance class of a plurality of chrominance classes for the source pixel; and
applying the set of weights to values of the color channels of the source pixel to generate color component values of the color channels of a target pixel in a target thumbnail image.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
determining global weights for the source pixel by applying the set of the weights to color component values of the source pixel, each of the global weights representing an intensity level of a respective global chrominance class of a plurality of global chrominance classes for the source pixel;
determining a gain for each global chrominance class of the plurality of global chrominance classes for the source pixel by processing the global weights for the source pixel and a corresponding white balance gain for the source pixel; and
storing at least one of an illumination map, the target thumbnail image, and the thumbnail image in a thumbnail output direct memory access (DMA) circuit, the illumination map including the weight map and the gain for each global chrominance class.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
mixing each of the global weights for the source pixel with a corresponding mixing value for the source pixel to generate a white gain for each global chrominance class of the plurality of global chrominance classes for the source pixel; and
determining the gain for each global chrominance class of the plurality of global chrominance classes for the source pixel by clipping the white gain for each global chrominance class of the plurality of global chrominance classes for the source pixel.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
adjusting chroma component values of the source pixel to generate adjusted chroma component values of the source pixel;
determining a first chroma component value and a second chroma component value of the source pixel using the adjusted chroma component values; and
determining the set of initial weights for the source pixel using the first chroma component value and the second chroma component value.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
performing color space conversion of pixel values of the thumbnail image in a first color format to generate the version of the thumbnail image in a second color format.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
performing spatial filtering of pixel values of the thumbnail image to generate the version of the thumbnail image.

### Claim 17 (depends on 11)

The method of claim 11, further comprising:
adjusting chroma component values of pixels of the version of the thumbnail image to generate a chroma-adjusted version of the thumbnail image;
determining the set of initial weights for each pixel in the chroma-scaled version of the thumbnail image using the adjusted chroma component values; and
determining the weight map by computing a set of full weights for each pixel in the chroma-scaled version of the thumbnail image using the set of initial weights for each pixel in the chroma-scaled version of the thumbnail image.

### Claim 18

An image processing circuit, comprising:
a thumbnail image processing circuit including:
a weights determination circuit configured to determine a set of initial weights for a source pixel in a version of a thumbnail image by determining component values for a plurality of color channels of the source pixel,
a weight map calculation circuit coupled to the weights determination circuit and configured to determine a set of weights for the source pixel in a weight map for the version of the thumbnail image, each weight in the set of weights determined based on corresponding initial weights from the set of initial weights, each weight in the set of weights representing an intensity level of a respective chrominance class of a plurality of chrominance classes for the source pixel, and
a target thumbnail generator circuit coupled to the weight map calculation circuit and configured to apply the set of weights to values of the color channels of the source pixel to generate color component values of the color channels of a target pixel in a target thumbnail image; and
a reintegration circuit coupled to the thumbnail image processing circuit and configured to:
apply the weight map to a set of coefficients to generate a weighted set of coefficients, and
apply the weighted set of coefficients to pixel values in an input image to generate an output image.

### Claim 19 (depends on 18)

The image processing circuit of claim 18, wherein the thumbnail image processing circuit further comprises:
a global weights calculation circuit coupled to the weight map calculation circuit and configured to determine global weights for the source pixel by applying the set of the weights to color component values of the source pixel, each of the global weights representing an intensity level of a respective global chrominance class of a plurality of global chrominance classes for the source pixel;
a gain calculation circuit coupled to the global weights calculation circuit and configured to determine a gain for each global chrominance class of the plurality of global chrominance classes for the source pixel by processing the global weights for the source pixel and a corresponding white balance gain for the source pixel; and
a thumbnail output direct memory access (DMA) circuit coupled to the weight map calculation circuit and the target thumbnail generator circuit, the thumbnail output DMA circuit configured to store at least one of an illumination map, the target thumbnail image, and the thumbnail image, the illumination map including the weight map and the gain for each global chrominance class.

### Claim 20 (depends on 18)

The image processing circuit of claim 18, wherein the thumbnail processing circuit further comprises:
a chroma adjustment circuit coupled to the weights determination circuit and configured to adjust chroma component values of the source pixel to generate adjusted chroma component values of the source pixel; and
a chroma components calculation circuit coupled to the chroma adjustment circuit and configured to determine a first chroma component value and a second chroma component value of the source pixel using the adjusted chroma component values, wherein
the weights determination circuit is further configured to determine the set of initial weights for the source pixel using the first chroma component value and the second chroma component value.
