# US 2022/0295020 A1 · Electro-optical transfer function conversion and signal legalization

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

- Number: US 2022/0295020 A1
- Document ID: US20220295020A1
- Status: Published application
- Kind: A1
- Application number: 17/630,901
- Filed: 2020-07-27
- Published: 2022-09-15
- Earliest claimed: 2019-07-30
- Assignees: Dolby Laboratories Licensing Corporation
- Applicants: Dolby Laboratories Licensing Corporation
- Inventors: Guan-Ming SU; Harshad KADU; Neeraj J. GADGIL; Qing SONG; Yoon Yung LEE
- Web page: https://patentgrep.com/patent/US20220295020A1

## CPC

- H04N 25/6153: {for colour signals}
- G06T 5/40: using histogram techniques
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/92: based on global image properties
- G06T 7/90: Determination of colour characteristics
- H04N 1/60: Colour correction or control {(H04N1/54 takes precedence)}
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/30: using hierarchical techniques, e.g. scalability (H04N19/63 takes precedence)
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N 19/98: Adaptive-dynamic-range coding [ADRC]
- G06T 2207/10016: Video; Image sequence
- G06T 2207/10024: Color image
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A device includes an electronic processor configured to define a first set of sample pixels from a set of sample pixels determined from received video data according to a first electro-optical transfer function (EOTF) in a first color representation of a first color space; convert the first set of sample pixels to a second EOTF via a mapping function, producing a second set of sample pixels according to the second EOTF; convert the first and second set of sample pixels from the first color representation to a second color representation of the first color space; determine a backward reshaping function by repeatedly applying and adjusting a sample backward reshaping function so as to minimize a difference between predicted pixel values obtained by applying the sample backward reshaping function to the pixels of the converted first set and the pixels of the converted second set.

## Claims

### Claim 1

A device for determining a backward reshaping function, comprising:
an electronic processor configured to
determine a set of sample pixels from received video data;
define, from the set of sample pixels, a first set of sample pixels according to a first electro-optical transfer function in a first color representation of a first color space;
convert the first set of sample points according to the first electro-optical transfer function to a second electro-optical transfer function in the first color representation of the first color space via a mapping function, producing, from the first set of sample pixels, a second set of sample pixels according to the second electro-optical transfer function;
convert the first set of sample pixels and the second set of sample pixels from the first color representation to a second color representation of the first color space;
determine a backward reshaping function based on the converted first set of sample pixels and the converted second set of sample pixels; wherein the electronic processor is configured to determine the backward reshaping function by repeatedly applying and adjusting a sample backward reshaping function so as to minimize a difference between predicted pixel values obtained by applying the sample backward reshaping function to the pixels in the converted first set of sample pixels, and the pixels in the converted second set of sample pixels.

### Claim 2 (depends on 1)

The device of claim 1, wherein the received video data comprise one or more first image in a first dynamic range and the second set of sample pixels belong to one or more second images in a second dynamic range, the first dynamic range being lower than the second dynamic range, and wherein the electronic processor is further configured to determine
a first cumulative density function based on a first histogram generated from a first distribution of codewords in the one or more first images,
a second cumulative density function based on a second histogram generated from a second distribution of codewords in the one or more second images, and
a histogram transfer function based on the first cumulative density function and the second cumulative density function for determining the backward reshaping function.

### Claim 3 (depends on 1)

The device according to claim 1, wherein the electronic processor is further configured to determine the predicted values by applying a predictor for minimizing the mean squared error.

### Claim 4 (depends on 2)

The device according to claim 2, wherein the electronic processor is configured to map each codeword from the first distribution of codewords to the second distribution of codewords using the predictor to determine the histogram transfer function.

### Claim 5 (depends on 3)

The device of claim 3, wherein a plurality of parameters of the minimum mean squared error predictor are determined based on a multi-channel multiple regression model.

### Claim 6 (depends on 2)

The device of claim 2, wherein the backward reshaping function is a luminance backward reshaping function.

### Claim 7 (depends on 5)

The device of claim 5, wherein the backward reshaping function is a chroma backward reshaping function.

### Claim 8 (depends on 1)

The device of claim 1, wherein the electronic processor is further configured to determine the backward reshaping function based on a smoothed equal weight backwards look up table.

### Claim 9 (depends on 1)

The device of claim 1, wherein the electronic processor is configured to determine the set of sample pixels as a three dimensional pixel array of sample pixels qijk, wherein i indicates the pixel location of a corresponding one dimensional pixel array qi with M samples and wherein j and k are the frame index and depth of the pixel.

### Claim 10 (depends on 1)

The device of claim 1, wherein converting the first set of sample pixels according to the first electro-optical transfer function to the second electro-optical transfer function via the mapping function includes applying a signal legalization function to the first set of sample pixels for forcing a range of the first set of sample pixels to be within a predetermined range.

### Claim 11 (depends on 10)

The device of claim 10, wherein the signal legalization function is one of
a clipping function comprising clipping the sample pixels of the first set outside the predetermined range,
a piecewise linear function, or
a sigmoid curve function.

### Claim 12 (depends on 1)

The device of claim 1, wherein the first electro-optical transfer function is hybrid log gamma.

### Claim 13 (depends on 1)

The device of claim 1, wherein the second electro-optical transfer function is perceptual quantizer.

### Claim 14 (depends on 1)

The device of claim 1, wherein defining the first set of sample pixels according to the first electro-optical transfer function includes
producing, from the set of data pixels, a third set of sample pixels according to a third electro-optical transfer function in the first color representation of a second color space, and
producing the first set of sample pixels according to the first electro-optical transfer function based on the third set of sample pixels according to the third electro-optical transfer function of the second color space, wherein the second color space is smaller than the first color space.

### Claim 15 (depends on 14)

The device of claim 14, wherein defining the first set of sample pixels according to the first electro-optical transfer function includes interpolating the third set of sample pixels according to the third electro-optical transfer function in the first color representation of the second color space and a fourth set of sample pixels according to a fourth electro-optical transfer function in the first color representation of a third color space such that the first set of sample pixels according to the first electro-optical transfer function includes a weighed combination of the third set of sample pixels according to the third electro-optical transfer function of the second color space and the fourth set of sample pixels according to the fourth electro-optical transfer function of the third color space.

### Claim 16 (depends on 14)

The device of claim 14, wherein the electronic processor is configured to convert the third electro-optical transfer function in the first color representation of the second color space to a container of the first electro-optical transfer function in the first color representation of the first color space.

### Claim 17 (depends on 15)

The device of claim 15, wherein the electronic processor is configured to convert the fourth electro-optical transfer function of the third color space to a container of the first electro-optical transfer function in the first color representation of the first color space.

### Claim 18 (depends on 1)

The device claim 1, wherein the device is an encoder or a decoder.

### Claim 19

A method for determining a backward reshaping function, comprising:
determining a set of sample pixels from received video data;
defining, from the set of sample pixels, a first set of sample pixels according to a first electro-optical transfer function in a first color representation of a first color space;
converting the first set of sample pixels according to the first electro-optical transfer function to a second electro-optical transfer function in the first color representation of the first color space via a mapping function, producing, from the first set of sample pixels, a second set of sample pixels according to the second electro-optical transfer function;
converting the first set of sample pixels and the second set of sample pixels from the first color representation to a second color representation of the first color space, and
determining a backward reshaping function based on the converted first set of sample pixels and the converted second set of sample pixels wherein determining the backward reshaping function includes repeatedly applying and adjusting a sample backward reshaping function so as to minimize a difference between predicted pixel values obtained by applying the sample backward reshaping function to the pixels in the converted first set of sample pixels and, and the pixels in the converted second set of sample pixels.

### Claim 20 (depends on 19)

The method of claim 19, wherein converting the first set of sample pixels according to the first electro-optical transfer function to the second electro-optical transfer function via the mapping function includes applying a signal legalization function to the first set of sample pixels for forcing a range of the first set of sample pixels to be within a predetermined range.

### Claim 21 (depends on 19)

The method of claim 19, wherein the signal legalization function is one of
a clipping function comprising clipping the sample pixels of the first set outside the predetermined range,
a piecewise linear function, or
a sigmoid curve function.

### Claim 22 (depends on 19)

The method of claim 19, wherein the first electro-optical transfer function is hybrid log gamma.

### Claim 23 (depends on 19)

The method of claim 19, wherein the second electro-optical transfer function is a perceptual quantizer.

### Claim 24 (depends on 19)

The method of claim 19, wherein defining the first set of sample pixels according to the first electro-optical transfer function includes
producing, from the set of data pixels, a third set of sample pixels according to a third electro-optical transfer function in the first color representation of a second color space, and
producing the first set of sample pixels according to the first electro-optical transfer function based on the third set of sample pixels according to the third electro-optical transfer function in the second color space, wherein the second color space is smaller than the first color space.

### Claim 25 (depends on 24)

The method of claim 24, wherein defining the first set of sample pixels according to the first electro-optical transfer function includes interpolating the third set of sample pixels according to the third electro-optical transfer function in the first color representation of the second color space and a fourth set of sample pixels according to a fourth electro-optical transfer function in the first color representation of a third color space such that the first set of sample pixels according to the first electro-optical transfer function includes a weighed combination of the third set of sample pixels according to the third electro-optical transfer function of the second color space and the fourth set of sample pixels according to the fourth electro-optical transfer function in the third color space.

### Claim 26 (depends on 24)

The method of claim 24, further comprising converting the third electro-optical transfer function of the first color representation of the second color space to a container of the first electro-optical transfer function in the first color representation of the first color space.

### Claim 27 (depends on 25)

The method of claim 25, further comprising converting the fourth electro-optical transfer function of the third color space to a container of the first electro-optical transfer function in the first color representation of the first color space.

### Claim 28 (depends on 19)

The method of claim 19, wherein the predicted values of the sample backward reshaping function are determined by applying a predictor for minimizing a mean squared error.

### Claim 29 (depends on 19)

A non-transitory computer-readable medium storing instructions that, when executed by a processor of a computer, cause the computer to perform a method according to claim 19.
