# US 10,958,920 B2 · Single-channel inverse mapping for image/video processing

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

- Number: US 10,958,920 B2
- Document ID: US10958920B2
- Status: Granted
- Kind: B2
- Application number: 16/630,520
- Filed: 2018-07-24
- Published: 2020-05-28
- Granted: 2021-03-23
- Earliest claimed: 2017-07-24
- Assignees: Dolby Laboratories Licensing Corporation
- Applicants: Dolby Laboratories Licensing Corporation
- Inventors: Guan-Ming Su; Tao Chen; Qian Chen
- Web page: https://patentgrep.com/patent/US10958920B2

## CPC

- H04N 19/30: using hierarchical techniques, e.g. scalability (H04N19/63 takes precedence)
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/1887: {the unit being a variable length codeword}
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

In some embodiments, an encoder device is disclosed to generate single-channel standard dynamic range/high dynamic range content predictors. The device receives a standard dynamic range image content and a representation of a high dynamic range image content. The device determines a first mapping function to map the standard dynamic range image content to the high dynamic range image content. The device generates a single channel prediction metadata based on the first mapping function, such that a decoder device can subsequently render a predicted high dynamic range image content by applying the metadata to transform the standard dynamic range image content to the predicted high definition image content.

## Claims

### Claim 1

A method for generating single channel prediction metadata for rendering a predicted high dynamic range, HDR, image from a standard dynamic range, SDR, image, such that a decoder can subsequently render the predicted HDR image by using the single channel prediction metadata to reconstruct a backward reshaping function for transforming at least one color channel of the SDR image to a corresponding at least one color channel of the predicted HDR image, the method comprising:
receiving image content, said image content being received in both an SDR representation and an HDR representation;
accessing a pre-reshaping function for scaling the at least one color channel of the SDR representation;
applying the pre-reshaping function to the at least one color channel of the SDR representation to obtain at least one pre-reshaped color channel for transmission to the decoder;
determining a first mapping function for mapping input codewords to output codewords, comprising:
generating a first and a second cumulative distribution functions (CDFs) representing the cumulative distribution of codewords of the at least one color channel of the SDR representation and the cumulative distribution of codewords of the corresponding at least one color channel of the HDR representation respectively, wherein the first and second CDFs associate each codeword with a corresponding CDF value; and
applying a cumulative distribution function matching based on the first and the second CDFs, comprising matching each codeword of the first CDF to a codeword of the second CDF that has a CDF value that matches the CDF value of said codeword of the first CDF, wherein the codewords of the first CDF define the input codewords of the first mapping function and the matched codewords of the second CDF define the output codewords of the first mapping function;
determining the backward reshaping function by function decomposition of H=T(F(b)) wherein H represents the determined first mapping function, T represents the backward reshaping function to be determined by the decomposition, F represents the pre-reshaping function and b represents input of the pre-reshaping function; and
generating the single channel prediction metadata representative of the backward reshaping function.

### Claim 2

A method for generating single channel prediction metadata for rendering a predicted high dynamic range, HDR, image from a standard dynamic range, SDR, image, such that a decoder can subsequently render the predicted HDR image by using the single channel prediction metadata to reconstruct a backward reshaping function for transforming at least one color channel of the SDR image to a corresponding at least one color channel of the predicted HDR image, the method comprising:
receiving image content, said image content being received in both an SDR representation and an HDR representation;
accessing a pre-reshaping function for scaling the at least one color channel of the SDR representation;
applying the pre-reshaping function to the at least one color channel of the SDR representation to obtain at least one pre-reshaped color channel for transmission to the decoder;
determining a first mapping function for mapping input codewords to output codewords, comprising:
generating a first and a second cumulative distribution functions (CDFs) based on the cumulative distribution of codewords of the at least one pre-reshaped color channel and the cumulative distribution of codewords of the corresponding at least one color channel of the HDR representation respectively, wherein the first and second CDFs associate each codeword with a corresponding CDF value; and
applying a cumulative distribution function matching based on the first and the second CDFs, comprising matching each codeword of the first CDF to a codeword of the second CDF that has a CDF value that matches the CDF value of said codeword of the first CDF, wherein the codewords of the first CDF define the input codewords of the first mapping function and the matched codewords of the second CDF define the output codewords of the first mapping function;
determining the backward reshaping function based on the first mapping function; and
generating the single channel prediction metadata representative of the backward reshaping function.

### Claim 3 (depends on 1)

The method of claim 1, wherein the pre-reshaping function for a luma channel of the SDR representation comprises a first transformation and the pre-reshaping function for a chroma channel of the SDR representation comprises a second transformation, wherein the second transformation is a different transformation than the first transformation.

### Claim 4 (depends on 1)

The method of claim 1, further comprising converting the SDR representation and the HDR representation into a predetermined color space.

### Claim 5 (depends on 4)

The method of claim 4, wherein the predetermined color space is the IPT color space or the ICTCP color space.

### Claim 6 (depends on 1)

The method of claim 1, wherein the single channel prediction metadata comprises a one-dimensional lookup table for each color channel of a multi-channel color space mapping SDR image content to predicted HDR image content for the respective color channel.

### Claim 7 (depends on 6)

The method of claim 6, wherein the one-dimensional lookup table is represented by an 8-piece second order polynomial such that three coefficients of the second order polynomial in each piece are used to approximate the mapping of the one-dimensional lookup table.

### Claim 8 (depends on 1)

The method of claim 1, further comprising applying a color space transformation to adjust colors of image frames.

### Claim 9 (depends on 8)

The method of claim 8, wherein the color space transformation is applied to the at least one color channel of the SDR representation before applying the pre-reshaping function to the at least one color channel of the SDR representation.

### Claim 10 (depends on 8)

The method of claim 8, wherein the color space transformation is applied to at least one backward-reshaped pre-reshaped color channel to estimate the corresponding color channel of the HDR representation.

### Claim 11 (depends on 10)

The method of claim 10, further comprising determining the parameters of the color space transformation by minimizing a cost function of a distance between pixels of the HDR representation and corresponding pixels of the estimated HDR representation for each of the color channels.

### Claim 12 (depends on 1)

A non-transitory machine readable medium storing instructions which when executed by a data processing system cause the system to perform a method as in claim 1.

### Claim 13 (depends on 1)

A data processing system which includes a memory and a processor configured to perform a method as in claim 1.
