# US 2020/0404343 A1 · Methods and apparatuses for encoding an hdr images, and methods and apparatuses for use of such encoded images

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

- Number: US 2020/0404343 A1
- Document ID: US20200404343A1
- Status: Published application
- Kind: A1
- Application number: 17/010,923
- Filed: 2020-09-03
- Published: 2020-12-24
- Earliest claimed: 2014-05-28
- Assignees: Koninklijke Philips N.V.
- Applicants: Koninklijke Philips N.V.
- Inventors: Renatus Josephus VAN DER VLEUTEN; Mark Jozef Willem MERTENS
- Web page: https://patentgrep.com/patent/US20200404343A1

## CPC

- H04N 19/98: Adaptive-dynamic-range coding [ADRC]
- G06T 5/92: based on global image properties
- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- G09G 3/2003: {Display of colours (specific for liquid crystal displays G09G3/3607)}
- G09G 5/10: Intensity circuits
- H04N 5/20: Circuitry for controlling amplitude response
- H04N 7/0117: {involving conversion of the spatial resolution of the incoming video signal (for graphics images G09G2340/0407)}
- 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/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- G06T 2207/10024: Color image
- G06T 2207/20208: High dynamic range [HDR] image processing
- G09G 2320/0271: Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
- G09G 2320/0276: for the purpose of adaptation to the characteristics of a display device, i.e. gamma correction
- G09G 2320/0673: for control of gamma adjustment, e.g. selecting another gamma curve
- G09G 2340/02: Handling of images in compressed format, e.g. JPEG, MPEG
- G09G 2340/06: Colour space transformation
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

To enable a good HDR image or video coding technology, being able to yield high dynamic range images as well as low dynamic range images, we invented a method of encoding a high dynamic range image (M_HDR), comprising the steps of: converting the high dynamic range image to an image of lower luminance dynamic range (LDR_o) by applying a) scaling the high dynamic range image to a predetermined scale of the luma axis such as [0,1], b) applying a sensitivity tone mapping which changes the brightnesses of pixel colors falling within at least a subrange comprising the darker colors in the high dynamic range image, c) applying a gamma function, and d) applying an arbitrary monotonically increasing function mapping the lumas resulting from performing the steps b and c to output lumas of the lower dynamic range image (LDR_o); and outputting in an image signal (S_im) a codification of the pixel colors of the lower luminance dynamic range image (LDR_o), and outputting in the image signal (S_im) values encoding the functional behavior of the above color conversions as metadata, or values for the inverse functions, which metadata allows to reconstruct a high dynamic range image (Rec_HDR) from the lower luminance dynamic range image (LDR_o).

## Claims

### Claim 1

A method of encoding a high dynamic range image, comprising:
converting the high dynamic range image to a lower luminance dynamic range image by applying:
normalization of the high dynamic range image to a scale of the luma axis being (0,1) yielding a normalized high dynamic range image with normalized colors having normalized luminances;
calculating a loggamma function on the normalized luminances yielding loggamma-converted lumas;
applying an arbitrary strictly monotonically increasing tone mapping function, wherein the arbitrary strictly monotonically increasing tone mapping function maps the loggamma-converted lumas to output lumas of the lower dynamic range image;
outputting in an image signal data a codification of the pixel colors of the lower luminance dynamic range image; and
outputting in the image signal data values encoding the arbitrary strictly monotonically increasing tone mapping function, as metadata, or values of its inverse functions, wherein the metadata allows a receiver to reconstruct a reconstructed high dynamic range image from the lower luminance dynamic range image.

### Claim 2 (depends on 1)

The method as claimed in claim 1,
wherein the loggamma function is composed of a first tone mapping, and a second tone mapping
wherein the first tone mapping is defined as
v
=
log

(
1
+
(
RHO
-
1
)
*
xg
)
log

(
RHO
)
,
wherein the second mapping is a power function with an exponent;
wherein RHO has a predetermined value,
wherein the value of RHO is outputted in the metadata.

### Claim 3 (depends on 1)

The method as claimed in claim 1,
wherein the loggamma function is composed of a first tone mapping, and a second tone mapping
wherein the first tone mapping is defined as
v
=
log

(
1
+
(
RHO
-
1
)
*
xg
)
log

(
RHO
)
,
wherein the second mapping which is a power function with an exponent;
wherein RHO has a predetermined value,
wherein a value which is related to the value of RHO is outputted in the metadata.

### Claim 4 (depends on 1)

The method as claimed in claim 1, wherein the gamma function calculation uses a gamma value equal to 1/(2.4).

### Claim 5 (depends on 1)

The method as claimed in claim 1, further comprising:
determining a gain value, wherein the gain value is arranged to map the maximum luma of the lower dynamic range image to a specific value of the possible values in the reconstructed high dynamic range image; and
encoding the gain value in the image signal data.

### Claim 6 (depends on 5)

The method as claimed in claim 5, further comprising:
applying a technical tone mapping to determine a second lower dynamic range image after applying one or more of the arbitrary monotonically increasing tone mapping function and the mapping the maximum luma of the lower dynamic range image to a specific value of the possible values to determine the lower dynamic range image,
wherein the second lower dynamic range image can be used to drive LDR displays as an alternative driving image alternative to the lower luminance dynamic range image,
wherein technical tone mapping is determined by:
determining a first geometrical region of the lower luminance dynamic range image for which the visibility of banding in the corresponding reconstructed high dynamic range image is above an acceptable level,
determining a first range of lumas for the first geometrical region;
determining a second range of lumas adjacent on the luma axis to the first range of lumas,
wherein the second range of lumas is identified to fulfill the conditions that it has a number of lumas above a minimum number,
wherein the second range of lumas corresponds to a second geometrical region,
wherein the second geometrical region contains a texture which can be represented using less than the minimum number of codes in an LDR image upon which to apply the functions yielding a reconstructed high dynamic range image of sufficient visual quality for that second geometrical region; and
determining a redistribution mapping function, wherein the redistribution mapping function redistributes the lumas of the first range of lumas and the second range of lumas, so that additional codes are available for the first range of lumas; and
outputting in the image signal data values encoding the function shape of the inverse redistribution mapping function.

### Claim 7 (depends on 5)

The method as claimed in claim 5, further comprising:
applying a technical tone mapping to determine a second lower dynamic range image after applying one or more of the arbitrary monotonically increasing tone mapping function and the mapping the maximum luma of the lower dynamic range image to a specific value of the possible values to determine the lower dynamic range image,
wherein the second lower dynamic range image can be used to drive LDR displays as an alternative driving image alternative to the lower luminance dynamic range image,
wherein technical tone mapping is determined by:
determining a first geometrical region of the lower luminance dynamic range image for which the visibility of banding in the corresponding reconstructed high dynamic range image is above an acceptable level;
determining a first range of lumas for the first geometrical region;
determining a second range of lumas adjacent on the luma axis to the first range of lumas,
wherein the second range of lumas is identified to fulfill the conditions that it has a number of lumas above a minimum number,
wherein the second range of lumas corresponds to a second geometrical region,
wherein the second geometrical region contains a texture which can be represented using less than the minimum number of codes in an LDR image upon which to apply the functions yielding a reconstructed high dynamic range image of sufficient visual quality for that second geometrical region; and
determining a redistribution mapping function, wherein the redistribution mapping function redistributes the lumas of the first range of lumas and the second range of lumas, so that additional codes are available for the first range of lumas; and
outputting in the image signal data values encoding the function shape of the redistribution mapping.

### Claim 8 (depends on 7)

The method as claimed in claim 7, wherein the amount of additional codes for the first range of lumas is determined based on a banding visibility criterion for the first geometrical region.

### Claim 9 (depends on 5, 7)

The method as claimed in claim 7,
wherein an identification of the first geometrical region is performed by a human grader via a user interface circuit,
wherein the amount of banding of the first geometrical region in the reconstructed high dynamic range image, and the visual quality of reconstruction of the second geometrical region in the reconstructed high dynamic range image are judged by the human grader as acceptable or unacceptable,
wherein in case of the acceptable judgement the values encoding the function shape of the redistribution mapping function or its inverse are encoded in the image signal data, or in case of the inacceptable judgement the steps as claimed in claim 5 are repeated—with different parameters to come to an alternative redistribution mapping function.

### Claim 10 (depends on 9)

The method as claimed in claim 9,
wherein the pixel colors of the lower luminance dynamic range image are encoded as a luma channel,
wherein and u′ and v′ color coordinates are calculated as
u
′
=
4

X
X
+
15

Y
+
3

Z
,
and


v
′
=
9

Y
X
+
15

Y
+
3

Z
,
with X, Y and Z being the device independent 1931 CIE color coordinates which are derivable for any RGB representation.

### Claim 11

An image encoder comprising:
a dynamic range conversion circuit, wherein the dynamic range conversion circuit is arranged to convert the high dynamic range image to an image of lower luminance dynamic range, wherein the dynamic range conversion circuit comprises:
a normalizer circuit, wherein the normalizer circuit is arranged to normalize the high dynamic range image to a luma axis ranging over (0,1) and to output normalized luminances;
a loggamma conversion circuit, wherein the loggamma conversion circuit is arranged to apply a loggamma function to the normalized luminances and to output loggamma-converted lumas;
an arbitrary tone mapping circuit,
wherein the arbitrary tone mapping circuit is arranged to apply an arbitrary strictly monotonically increasing function which maps the loggamma-converted lumas to output lumas of the lower dynamic range image,
wherein the loggamma conversion circuit is connected to the normalizer circuit, and wherein the arbitrary tone mapping circuit is connected to the loggamma conversion circuit wherein the image encoder comprises an image compressor circuit,
wherein the image compressor circuit is arranged to apply a data reduction transformation to the colors of the lower dynamic range image,
wherein pixel colors are organized in component images,
wherein the data reduction transformation involves at least applying a DCT transform to blocks of adjacent color component values, yielding a compressed codification of the pixel colors of the lower luminance dynamic range image; and wherein the image encoder comprises a formatter circuit,
wherein the formatter circuit is arranged to output the compressed codification in an image signal data,
wherein the formatter circuit is arranged to output in the image signal data values encoding the function shape of the arbitrary monotonically increasing function as metadata,
wherein the metadata allows a receiver to reconstruct a high dynamic range image based upon the lower luminance dynamic range image.

### Claim 12 (depends on 11)

The image encoder as claimed in claim 11,
wherein the loggamma conversion circuit is arranged to apply a sequence of
calculating a tone mapping,
wherein the tone mapping is defined by the equation
v
=
log

(
1
+
(
RHO
-
1
)
*
xg
)
log

(
RHO
)
,
wherein RHO has a predetermined value,
and subsequently calculating a power function with an exponent gamma.

### Claim 13

A non-transitory medium comprising a high dynamic range image signal, the high dynamic range image signal comprising:
a pixellized lower dynamic range image with encoded pixel colors;
a senstivity value;
a gamma value;
a gain value; and
a set of values specifying an arbitrary monotonically increasing tone mapping function shape.

### Claim 14 (depends on 11)

A non-transitory medium as claimed in claim 11,
wherein the high dynamic range image signal further comprises an indicator,
wherein the indicator specifies that an image of high dynamic range has been encoded in it such that an image of low dynamic range is directly usable without a need for further tone mapping, for rendering on a LDR display.
