# US 2023/0069500 A1 · Tone mapping for image capture

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

- Number: US 2023/0069500 A1
- Document ID: US20230069500A1
- Status: Published application
- Kind: A1
- Application number: 17/890,676
- Filed: 2022-08-18
- Published: 2023-03-02
- Earliest claimed: 2021-08-19
- Assignees: GoPro, Inc.
- Applicants: GoPro, Inc.
- Inventors: Violaine Marie Mong-lan Sudret; Téo Marcin
- Web page: https://patentgrep.com/patent/US20230069500A1

## CPC

- H04N 23/741: by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
- H04N 23/71: Circuitry for evaluating the brightness variation
- H04N 23/76: by influencing the image signals
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Tone mapping for image capture may include accessing a first image detected using an image sensor; accessing an exposure parameter (exposure duration, or time, multiplied by ISO or gain) used to detect the first image; scaling pixel values of the first image by a scale factor inversely proportional to the exposure parameter to obtain a scaled image; determining a scene luminance based on an average of pixel values of the scaled image; determining a target luminance based on the scene luminance; determining a target histogram based on the target luminance; determining a first histogram of luminance values of the first image; determining a transfer function based on the first histogram and the target histogram; applying the transfer function to pixel values of the first image to produce a tone mapped image; and storing or transmitting an output image based on the tone mapped image.

## Claims

### Claim 1

A system comprising:
an image sensor configured to detect images; and
a processing apparatus that is configured to:
access a first image detected using the image sensor;
access an exposure parameter used to detect the first image;
scale pixel values of the first image by a scale factor inversely proportional to the exposure parameter to obtain a scaled image;
determine a scene luminance based on an average of pixel values of the scaled image;
determine a target luminance based on the scene luminance;
determine a target histogram based on the target luminance;
determine a first histogram of luminance values of the first image;
determine a transfer function based on the first histogram and the target histogram; and
apply the transfer function to pixel values of the first image to produce a tone mapped image.

### Claim 2 (depends on 1)

The system of claim 1, wherein the target histogram is determined based on a Gaussian function with a mean equal to the target luminance.

### Claim 3 (depends on 1)

The system of claim 1, wherein the target luminance is determined by an autoexposure module and the target histogram is determined by a global tone mapping module.

### Claim 4 (depends on 1)

The system of claim 1, wherein the scale factor is inversely proportional to one or more gain parameters used to detect the first image.

### Claim 5 (depends on 1)

The system of claim 1, wherein the processing apparatus is configured to:
determine an unregularized transfer function based on the first histogram and the target histogram;
determine an average luminance for an image determined by applying the unregularized transfer function to the first image;
compare the average luminance to the target luminance;
determine differences between adjacent values of the unregularized transfer function;
compare the differences to a threshold;
responsive to a difference between a lower value and a higher value adjacent to the lower value exceeding the threshold, select among the lower value and the higher value based on the comparison of the average luminance to the target luminance; and
adjust the selected value of the unregularized transfer function to obtain the transfer function with differences between adjacent values that are less than the threshold.

### Claim 6 (depends on 1)

The system of claim 1, wherein the processing apparatus is configured to:
determine a luminance uniformity score based on the first image;
determine a uniformity luminance range based on the first image; and
responsive to the luminance uniformity score meeting a threshold, set one or more slope of the transfer function within the uniformity luminance range to unity.

### Claim 7 (depends on 1)

The system of claim 1, wherein the processing apparatus is configured to:
set one or more gains of the transfer function to unity in a highest luminance range of a dynamic range of the first image.

### Claim 8 (depends on 1)

The system of claim 1, wherein the processing apparatus is configured to:
set one or more gains of the transfer function to unity in a lowest luminance range of a dynamic range of the first image.

### Claim 9

A method comprising:
accessing a first image detected using an image sensor;
accessing an exposure parameter used to detect the first image;
scaling pixel values of the first image by a scale factor inversely proportional to the exposure parameter to obtain a scaled image;
determining a scene luminance based on an average of pixel values of the scaled image;
determining a target luminance based on the scene luminance;
determining a target histogram based on the target luminance;
determining a first histogram of luminance values of the first image;
determining a transfer function based on the first histogram and the target histogram;
applying the transfer function to pixel values of the first image to produce a tone mapped image; and
storing or transmitting an output image based on the tone mapped image.

### Claim 10 (depends on 9)

The method of claim 9, wherein the target histogram is determined based on a Gaussian function with mean equal to the target luminance.

### Claim 11 (depends on 9)

The method of claim 9, wherein the target luminance is determined by an autoexposure module and the target histogram is determined by a global tone mapping module.

### Claim 12 (depends on 9)

The method of claim 9, wherein the scale factor is inversely proportional to one or more gain parameters used to detect the first image.

### Claim 13 (depends on 9)

The method of claim 9, wherein determining the transfer function comprises:
determining an unregularized transfer function based on the first histogram and the target histogram;
determining an average luminance for an image determined by applying the unregularized transfer function to the first image;
comparing the average luminance to the target luminance;
determining differences between adjacent values of the unregulatized transfer function;
comparing the differences to a threshold;
responsive to a difference between a lower value and a higher value adjacent to the lower value exceeding the threshold, selecting among the lower value and the higher value based on the comparison of the average luminance to the target luminance; and
adjusting the selected value of the unregularized transfer function to obtain the transfer function with differences between adjacent values that are less than the threshold.

### Claim 14 (depends on 9)

The method of claim 9, comprising:
determining a luminance uniformity score based on the first image;
determining a uniformity luminance range based on the first image; and
responsive to the luminance uniformity score meeting a threshold, setting one or more slope of the transfer function within the uniformity luminance range to unity.

### Claim 15 (depends on 9)

The method of claim 9, comprising:
setting one or more gains of the transfer function to unity in a highest luminance range of a dynamic range of the first image.

### Claim 16 (depends on 9)

The method of claim 9, comprising:
setting one or more gains of the transfer function to unity in a lowest luminance range of a dynamic range of the first image.

### Claim 17

A system comprising:
an image sensor configured to detect images; and
a processing apparatus that is configured to:
access a first image detected using the image sensor;
access an exposure parameter used to detect the first image;
scale pixel values of the first image by a scale factor inversely proportional to the exposure parameter to obtain a scaled image;
determine a scene luminance based on an average of pixel values of the scaled image;
determine a target luminance based on the scene luminance;
access an unregularized transfer function;
determine an average luminance for an image determined by applying the unregularized transfer function to the first image;
compare the average luminance to the target luminance;
determine differences between adjacent values of the unregularized transfer function;
compare the differences to a threshold;
responsive to a difference between a lower value and a higher value adjacent to the lower value exceeding the threshold, select among the lower value and the higher value based on the comparison of the average luminance to the target luminance;
adjust the selected value of the unregularized transfer function to obtain a transfer function with differences between adjacent values that are less than the threshold; and
apply the transfer function to pixel values of the first image to produce a tone mapped image.

### Claim 18 (depends on 17)

The system of claim 17, wherein the processing apparatus is configured to:
determine a luminance uniformity score based on the first image;
determine a uniformity luminance range based on the first image; and
responsive to the luminance uniformity score meeting a threshold, set one or more slope of the transfer function within the uniformity luminance range to unity.

### Claim 19 (depends on 17)

The system of claim 17, wherein the processing apparatus is configured to:
set one or more gains of the transfer function to unity in a highest luminance range of a dynamic range of the first image.

### Claim 20 (depends on 17)

The system of claim 17, wherein the processing apparatus is configured to:
set one or more gains of the transfer function to unity in a lowest luminance range of a dynamic range of the first image.
