# US 2016/0364848 A1 · Global tone mapping

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

- Number: US 2016/0364848 A1
- Document ID: US20160364848A1
- Status: Published application
- Kind: A1
- Application number: 15/081,682
- Filed: 2016-03-25
- Published: 2016-12-15
- Earliest claimed: 2015-06-12
- Assignees: GoPro, Inc.
- Applicants: GoPro, Inc.
- Inventors: Bruno Cesar Douady-Pleven; Michael Serge André Kraak; Guillaume Matthieu Guerin; Thomas Nicolas Emmanuel Veit
- Web page: https://patentgrep.com/patent/US20160364848A1

## CPC

- G06T 3/4015: Image demosaicing, e.g. colour filter arrays [CFA] or Bayer patterns
- G06T 5/40: using histogram techniques
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/70: Denoising; Smoothing
- G06T 5/75: Unsharp masking
- G06T 5/92: based on global image properties
- G06T 5/94: based on local image properties, e.g. for local contrast enhancement
- H04N 5/213: Circuitry for suppressing or minimising impulsive noise (for suppressing or minimising disturbance in image signal generation H04N23/81)
- 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/741: by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
- H04N 23/81: for suppressing or minimising disturbance in the image signal generation
- H04N 25/618: for random or high-frequency noise
- H04N 25/626: Reduction of noise due to residual charges remaining after image readout, e.g. to remove ghost images or afterimages
- H04N 25/633: by using optical black pixels
- H04N 25/672: between adjacent sensors or output registers for reading a single image
- H04N 25/674: based on the scene itself, e.g. defocusing
- G06T 2207/10016: Video; Image sequence
- G06T 2207/10024: Color image
- G06T 2207/20182: Noise reduction or smoothing in the temporal domain; Spatio-temporal filtering
- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- H04N 2209/046: Colour interpolation to calculate the missing colour values
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system accesses an image with each pixel of the image having luminance values each representative of a color component of the pixel. The system generates a first histogram for aggregate luminance values of the image, and accesses a target histogram for the image representative of a desired global image contrast. The system computes a transfer function based on the first histogram and the target histogram such that when the transfer function is applied, a histogram of the modified aggregate luminance values is within a threshold similarity of the target histogram. The system modifies the image by applying the transfer function to the luminance values of the image to produce a tone mapped image, and outputs the modified image.

## Claims

### Claim 1

A method for generating a tone mapped image captured by a camera comprising:
accessing an image captured by an image sensor, the accessed image comprising, for each image pixel of the accessed image, a corresponding set of luminance values each representative of a color component of the pixel;
generating a first histogram for aggregate luminance values of the image;
accessing a target histogram for the image representative of a desired global image contrast;
computing a transfer function based on the first histogram and the target histogram such that when the transfer function is applied to the aggregate luminance values of the image to create a set of modified aggregate luminance values, a histogram of the modified aggregate luminance values is within a threshold similarity of the target histogram;
modifying the accessed image by applying the transfer function to the set of luminance values corresponding to each pixel of the image to produce a tone mapped image; and
outputting the modified image.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
computing, for each pixel of the accessed image, an aggregate luminance value based on a luminance function applied to the set of luminance values corresponding to each color component of the pixel.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
generating a histogram for each color channel of the accessed image; and
applying a black point to the image for each color channel based on the generated histograms for each color channel to establish a lower bounds for each color channel.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating an exposure correction curve based on a lookup table, the curve compensating for portions of the first histogram of the luminance values that are representative of an underexposure of the image within a corresponding portion of a color channel, the lookup table producing a linear output for brightness values below a threshold and a compressed non-linear output for brightness values above a threshold;
applying the exposure correction curve to a luminance value of each pixel in the image to generate exposure corrected luminance values of the image; and
transposing the transfer function from a post-gamma curve space to the original linear space of the image.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
adjusting the transfer function to remove above-threshold amplification of noise resulting from an application of the transfer function to the image.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
computing a derivative of the transfer function;
adjusting one of a high threshold area and a low threshold area of the derivative of the transfer function such that the high threshold area and the low threshold area are equal;
modifying the derivative by removing the high threshold area and the low threshold area from the derivative; and
computing a modified transfer function from the modified derivative.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
applying an unsharp mask to portions of the image that include areas of interest in order to increase local contrast.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining one or more changed image portions of the modified image that are one of compressed and amplified compared to the corresponding image portion of the accessed image; and
modifying these changed image portions to increase the local contrast in these changed image portions.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the accessed image is uniform by determining that a threshold number of the pixels of the accessed image are within a threshold level of each other, modifying the transfer function to be uniform.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
computing the gain in the linear domain equivalent to the transfer function previously estimated in the non-linear domain.

### Claim 11

A specially-configured hardware system for generating a tone mapped image configured to:
access an image captured by an image sensor, the accessed image comprising, for each image pixel of the accessed image, a corresponding set of luminance values each representative of a color component of the pixel;
generate a first histogram for aggregate luminance values of the image;
access a target histogram for the image representative of a desired global image contrast;
compute a transfer function based on the first histogram and the target histogram such that when the transfer function is applied to the aggregate luminance values of the image to create a set of modified aggregate luminance values, a histogram of the modified aggregate luminance values is within a threshold similarity of the target histogram;
modify the accessed image by applying the transfer function to the set of luminance values corresponding to each pixel of the image to produce a tone mapped image; and
output the modified image.

### Claim 12 (depends on 11)

The specially-configured hardware system of claim 11, further configured to:
compute, for each pixel of the accessed image, an aggregate luminance value based on a luminance function applied to the set of luminance values corresponding to each color component of the pixel.

### Claim 13 (depends on 11)

The specially-configured hardware system of claim 11, further configured to:
generate a histogram for each color channel of the accessed image; and
apply a black point to the image for each color channel based on the generated histograms for each color channel to establish a lower bounds for each color channel.

### Claim 14 (depends on 11)

The specially-configured hardware system of claim 11, further configured to:
generate an exposure correction curve based on a lookup table, the curve compensating for portions of the first histogram of the luminance values that are representative of an underexposure of the image within a corresponding portion of a color channel, the lookup table producing a linear output for brightness values below a threshold and a compressed non-linear output for brightness values above a threshold;
apply the exposure correction curve to a luminance value of each pixel in the image to generate exposure corrected luminance values of the image; and
transpose the transfer function from a post-gamma curve space to the original linear space of the image.

### Claim 15 (depends on 11)

The specially-configured hardware system of claim 11, further configured to:
adjust the transfer function to remove above-threshold amplification of noise resulting from an application of the transfer function to the image.

### Claim 16 (depends on 15)

The specially-configured hardware system of claim 15, further configured to:
compute a derivative of the transfer function;
adjust one of a high threshold area and a low threshold area of the derivative of the transfer function such that the high threshold area and the low threshold area are equal;
modify the derivative by removing the high threshold area and the low threshold area from the derivative; and
compute a modified transfer function from the modified derivative.

### Claim 17 (depends on 11)

The specially-configured hardware system of claim 11, further configured to:
apply an unsharp mask to portions of the image that include areas of interest in order to increase local contrast.

### Claim 18 (depends on 17)

The specially-configured hardware system of claim 17, further configured to:
determine one or more changed image portions of the modified image that are one of compressed and amplified compared to the corresponding image portion of the accessed image; and
modify these changed image portions to increase the local contrast in these changed image portions.

### Claim 19 (depends on 11)

The specially-configured hardware system of claim 11, further configured to:
in response to a determination that the accessed image is uniform by determining that a threshold number of the pixels of the accessed image are within a threshold level of each other, modify the transfer function to be uniform.

### Claim 20

A method for generating a tone mapped image captured by a camera comprising:
accessing an image captured by an image sensor, the accessed image comprising, for each image pixel of the accessed image, a corresponding set of luminance values each representative of a color component of the pixel;
accessing an image processing setting that, when applied to the accessed image, produces an image effect;
selecting a target histogram for the image based on the accessed image processing setting;
generating a first histogram for aggregate luminance values of the image;
computing a transfer function based on the first histogram and the target histogram such that when the transfer function is applied to the aggregate luminance values of the image to create a set of modified aggregate luminance values, a histogram of the modified aggregate luminance values is within a threshold similarity of the target histogram; and
applying the transfer function to the image.
