Method and device for encoding images
By modifying the color component values in HDR videos, the problem of visual artifacts when distributing HDR videos is solved, ensuring high fidelity and visual effects of the image.
Patent Information
- Application Number
- CN201980045789.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2039-07-02
AI Technical Summary
When existing technology distributes HDR video, there is a problem of visual artifacts, especially in the case of very saturated reds and blues, resulting in the internal chroma component accuracy having to be limited to 9 bits, introducing accuracy loss and visual artifacts.
By obtaining the chrominance component of the output image from the color component of the input image, if the value of the pixel in at least one chrominance component exceeds a given value, modify the value of the corresponding color component to make it less than or equal to the given value to avoid Cropping and precision loss.
Effectively reduces the saturation of very saturated colors, avoiding the appearance of visual artifacts while maintaining high image fidelity.
Smart Images

Figure CN112425168B_ABST
Abstract
Description
Technical Field
[0001] The present embodiments are directed to distributing HDR video while maintaining high fidelity of the resulting video. Background Art
[0002] This section is intended to introduce the reader to various aspects of the art that may be relevant to various aspects of the present embodiments described and / or claimed below. This discussion is considered helpful in providing the reader with background information to help better understand the various aspects of the present embodiments. Therefore, it should be understood that these statements should be read in this light and not as admissions of prior art.
[0003] In the following, image data refers to one or several arrays of samples (pixels) of a specific image / video format, which specifies all information related to the pixel values of the image (or video) and all information that can be used by a display and / or any other device, for example, to visualize and / or decode the image (or video). An image includes a first component in the form of a first array of samples, which usually represents the brightness (or luminance) of the image, and a second component and a third component in the form of other arrays of samples, which usually represent the chrominance (or chrominance) of the image. Alternatively, equivalently, the same information can be represented by a set of arrays of color samples, such as the traditional three-color RGB representation.
[0004] A pixel value is represented by a vector of C values, where C is the number of components. Each value of the vector is represented by a number of bits that defines the dynamic range of the pixel value.
[0005] A standard dynamic range image (SDR image) is an image whose brightness values are represented with a limited number of bits (usually 8 bits). This limited representation does not allow small signal variations to be rendered correctly, especially in the dark and bright brightness range. In a high dynamic range image (HDR image), the signal representation is extended to keep the signal high precision over the entire range. In HDR images, pixel values are usually represented in floating point format (usually at least 10 bits per component, i.e. float or half float), the most popular format being the openEXR half float format (16 bits per RGB component, i.e. 48 bits per pixel) or integers with a long representation, usually at least 16 bits.
[0006] The emergence of the High Efficiency Video Coding (HEVC) standard (ITU-T H.265ITU Telecommunication Standardization Sector (02 / 2018), Series H: Audiovisual and Multimedia Systems, Infrastructure of Audiovisual Services - Coding of Motion Video, High Efficiency Video Coding, Recommendation ITU-T H.265) enables the deployment of new video services with enhanced viewing experience, such as Ultra High Definition services. In addition to the increase in spatial resolution, Ultra High Definition formats can also bring wider color gamut (WCG) and higher dynamic range (HDR) compared to the standard color gamut (SCG) and standard dynamic range (SDR) of currently deployed HD formats. Different solutions for HDR / WCG video representation and encoding have been proposed, such as the perceptual transfer function perceptual quantizer (PQ) (SMPTE ST 2084, "High Dynamic Range Electro-Optical Transfer Function of Mastering Reference Displays, or Diaz, R., Blinstein, S. and Qu, S. "Integrating HEVC Video Compression with a High Dynamic Range Video Pipeline", SMPTE Motion Imaging Journal, Vol. 125, Issue 1. February 2016, pp. 14-21). Typically, SMPTE ST 2084 allows the use of only 10 or 12 bits to represent HDR video signals up to 10000 cd / m2 peak brightness.
[0007] Backward compatibility of SDR with decoding and rendering devices is an important feature in certain video distribution systems (e.g. broadcast or multicast systems). Solutions based on a single-layer encoding / decoding process can be backward compatible, e.g., SDR compatible, and can leverage existing legacy distribution networks and services.
[0008] This single-layer based distribution solution enables high-quality HDR presentation on HDR-enabled consumer electronics (CE) devices, while providing high-quality SDR presentation on SDR-enabled CE devices. Such a solution is based on an encoded signal, such as an SDR signal, and associated metadata (only a few bytes per video frame or scene), which can be used to reconstruct another signal, such as an SDR or HDR signal, from the decoded signal.
[0009] An example of a single-layer based distribution solution can be found in ETSI Technical Specification TS 103 433-1 V1.2.1 (August 2017). This single-layer based distribution solution is denoted SL-HDR1 in the following.
[0010] In addition, an HDR distribution system (workflow, as well as decoding and rendering equipment) may have been deployed. In fact, there are many global video service providers that provide HDR content. However, the distributed HDR material may be presented in a format or with characteristics that do not match the characteristics of the consumer terminal device. Typically, the consumer terminal device adapts the decoded material to its own characteristics. However, due to the differences between the characteristics of the consumer terminal device and the mastering display device used to grade the original content in the production environment, the diversity of technologies used in HDR TV causes important differences in presentation. For content producers, the fidelity of artistic intent and its reproduction to consumers is crucial. Therefore, when the decoded signal is to be adapted to the characteristics of the terminal device, the "display adaptation" metadata generated either at the production stage of the grading process or under the control of the quality inspection operator before distribution can convey the artistic intent to the consumer.
[0011] An example of a single-layer based distribution solution combined with display adaptability can be found in ETSI Technical Specification TS 103 433-2 V1.1.1 (January 2018). This single-layer based distribution solution is denoted SL-HDR2 in the following.
[0012] This single layer based distribution solution SL-HDR1 or SL-HDR2 generates metadata as parameters for signal reconstruction. The metadata can be static or dynamic.
[0013] Static metadata refers to parameters representing video content or their format remaining unchanged for a video (set of images) and / or a program.
[0014] Static metadata are valid for the entire video content (scene, movie, clip...) and may depend on the image content itself or the representation format of the image content. They may define, for example, the image format or the color space, the color gamut. For example, SMPTE ST 2086:2014, "Mastering Display Color Volume Metadata Supporting HighLuminance and Wide Color Gamut Images" is such static metadata, which describes the master display used for grading material in a production environment. The Master Display Color Volume (MDCV) SEI (Supplementary Enhancement Information) message is a distribution style of ST 2086 for H.264 / AVC ("Advanced video coding for generic audiovisual Services", SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMS, Recommendation ITU-T H.264, Telecommunication Standardization Sector of ITU, April 2017) and HEVC video codecs.
[0015] Dynamic metadata is information that is content-dependent, so the metadata may vary with the image / video content, for example, for each image or each group of images. As an example, the SMPTE ST 2094:2016 standard series "Dynamic Metadata for Color Volume Transform" is dynamic metadata that is usually generated in the production environment. Due to the use of the Color Remapping Information (CRI) SEI message, SMPTE ST 2094-30 can be distributed in accordance with HEVC and AVC coded video streams.
[0016] Basically, a single-layer based distribution solution comprises a format adaptation step to adapt the format of an input image (video) to the following input: a pre-processing step aimed at generating an output image (video) associated with metadata, an encoding step of the output image (video) and metadata, a decoding step of the output image (video) and metadata and a post-processing step aimed at reconstructing the image (video) from the decoded output image (video) and, optionally, from the decoded metadata.
[0017] The post-processing steps are usually implemented using integers instead of floating point values. Such integer implementation involves limiting the values of internal variables used in the post-processing steps to a maximum value that defines the precision of these internal variables. However, it may happen that when the values of these internal variables exceed the maximum value, the values of the internal variables are clipped, resulting in a loss of precision of these internal variables, thereby introducing visual artifacts in the output image of the post-processing. Typically, in some SL-HDR1 or SL-HDR2 implementations, the internal chroma component precision has to be limited to 9 bits (+ sign bit). When this clipping occurs, visual artifacts are introduced, especially for very saturated red and blue colors. Summary of the invention
[0018] The following presents a brief summary of the present embodiment to provide a basic understanding of some aspects of the present embodiment. This content is not a broad overview of the present embodiment. It is not intended to identify the key or important elements of the present embodiment. The following content only presents some aspects of the present embodiment in a simplified form as a preface to the more detailed description provided below.
[0019] The present embodiment aims to remedy at least one of the shortcomings of the prior art through a method, which method includes: obtaining a chrominance component representing a chrominance component of an output image from a color component representing an input image, wherein the output image is intended to be obtained by applying decoding and post-processing to the encoded image itself, and the encoded image is obtained by applying pre-processing and encoding to the input image, and the post-processing is equivalent to the inverse process of the function of the pre-processing; and if the value of a pixel in at least one of the chrominance components exceeds a given value, modifying the value of the pixel in at least one of the color components so that the value of the pixel in the at least one of the chrominance components is less than or equal to the given value.
[0020] According to one embodiment, the given value depends on the maximum integer value of said pixel before clipping the value of said pixel in at least one of said chrominance components.
[0021] According to one embodiment, the value of the pixel in the first chrominance component of the at least one chrominance component is compared with a first given value, and the value of the pixel in the second chrominance component of the at least one chrominance component is compared with a second given value, and the first and second given values are different values.
[0022] According to one embodiment, the value of the pixel in a single color component is modified.
[0023] According to one embodiment, the value of the pixel in at least one of the color components is modified by replacing the value of the pixel in a single color component with a value obtained when the value of the pixel in the chrominance component is less than or equal to the given value.
[0024] According to one embodiment, when the value of the pixel in the first chrominance component is equal to a first given value, a first value is obtained, and when the value of the pixel in the second chrominance component is equal to a second given value, a second value is obtained, and then, if the first value is greater than the second value, the maximum value of the pixel is determined as the first value, otherwise it is determined as the second value, and the value of the pixel in at least one of the color components is modified by replacing the value of the pixel in a single color component with the maximum value.
[0025] According to one embodiment, if the maximum value is strictly greater than 0 and strictly greater than the value of the pixel in the single color component, the value of the pixel in the single color component is replaced by the maximum value.
[0026] According to one embodiment, the single color component is regarded as the first color component, the value of the pixel in the second color component is also modified, the second color component is determined based on the first and second values, the first value is obtained when the value of the pixel in the first chrominance component is equal to a first given value, and the second value is obtained when the value of the pixel in the second chrominance component is equal to a second given value.
[0027] According to one embodiment, the value of the pixel in the second color component is modified by multiplying the value of the pixel in the second color component by the ratio of the maximum value to the value of the pixel in the first color component, and if the first value is greater than the second value, the maximum value of the pixel is determined as the first value, otherwise it is determined as the second value.
[0028] According to one embodiment, the value of the pixel in the second color component is modified only if the maximum value is greater than a given value.
[0029] According to one embodiment, the value of the pixel in the second color component is modified only if the value of the pixel in the input image is smaller than the value of the pixel in the first color component.
[0030] According to another aspect, the present embodiment relates to a computer program product, comprising program code instructions for executing the steps of the above method when the program is executed on a computer.
[0031] According to another aspect, the present embodiment relates to a non-transitory processor-readable medium, whose program code instructions are used to perform the steps of the above method when the program is executed on a computer.
[0032] The specific nature of the present embodiment as well as other objects, advantages, features and uses of the present embodiment will become apparent from the following description of examples taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In the accompanying drawings, an example of this embodiment is shown. It shows:
[0034] Figure 1 A high-level representation of an example end-to-end workflow supporting content delivery to a display with improved display adaptation features according to the present embodiment is shown;
[0035] Figure 2 An example of an end-to-end processing workflow supporting content delivery to both HDR and SDR CE displays according to a single-layer based distribution solution is shown;
[0036] Figure 3 Shows Figure 2 A specific implementation of the workflow;
[0037] Figure 4a A graphical representation of the perceptual transfer function is shown;
[0038] Figure 4b An example of a piecewise curve for mapping is shown;
[0039] Figure 4c An example of a curve for converting a perceptually uniform signal back to the linear light domain is shown;
[0040] Figure 5 An exemplary embodiment of the architecture of an apparatus is shown, which can be configured to implement a combination of Figures 1 to 4c the methods described; and
[0041] Figure 6 A diagram showing steps of a method for encoding an image according to an exemplary embodiment of the present embodiment.
[0042] Similar or identical elements are denoted by the same reference numerals. DETAILED DESCRIPTION
[0043] The present embodiment will be described more fully below with reference to the accompanying drawings, in which examples of the present embodiment are shown. However, the present embodiment may be embodied in many alternative forms and should not be construed as being limited to the examples set forth herein. Therefore, although the present embodiment is susceptible to various modifications and alternative forms, specific examples thereof are shown by way of example in the figures and will be described in detail herein. However, it should be understood that it is not intended to limit the present embodiment to the specific form disclosed, but rather, the present disclosure will cover all modifications, equivalents, and substitutions within the spirit and scope of the present embodiment as defined in the claims.
[0044] The terms used herein are only for the purpose of describing specific examples, and are not intended to limit the present embodiment. As used herein, the singular forms "one", "a kind of" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that when used in this specification, the terms "comprise", "comprising", "include" and / or "including" specify the existence of stated features, integers, steps, operations, elements and / or components, but do not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. In addition, when an element is referred to as "responding" or "connected" to another element, it can directly respond to or be connected to other elements, or there can be intermediate elements. On the contrary, when an element is referred to as "directly responding" or "directly connected" to other elements, there is no intermediate element. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items, and can be abbreviated as " / ". It will be understood that although the terms first, second, etc. can be used here to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, without departing from the teaching of the present embodiment, the first element may be referred to as the second element, and similarly, the second element may be referred to as the first element. Although some figures contain arrows on the communication path to show the main direction of communication, it should be understood that communication may occur in the opposite direction of the arrows depicted. Some examples are described about block diagrams and operation flow charts, in which each box represents a circuit element, a module, or a partial code of one or more executable instructions for implementing (multiple) specified logical functions. It should also be noted that in other implementations, the (multiple) functions annotated in the box may not occur in the order of the annotations. For example, depending on the functions involved, the two boxes shown in succession can actually be executed substantially simultaneously, or the boxes can sometimes be executed in the opposite order. "According to an example" or "in an example" mentioned herein means that the specific features, structures or characteristics described in conjunction with the example may be included in at least one implementation of the present embodiment. The expressions "according to an example" or "in an example" appearing everywhere in the specification do not necessarily refer to the same example, nor are they necessarily separate or alternative examples mutually exclusive with other examples. Reference numerals appearing in the claims are by way of illustration only and shall have no limiting effect on the scope of the claims.The present examples and variations may be employed in any combination or sub-combination even if not explicitly described.
[0045] Generally, two different images have different brightness dynamic ranges. The brightness dynamic range of an image is the ratio of the maximum value to the minimum value of the brightness value of the image.
[0046] Generally, when the dynamic range of the brightness of an image is below 1000 (for example, 500, i.e. 100 cd / m 2 and 0.2cd / m 2 The image is represented as a standard dynamic range (SDR) image, and when the brightness dynamic range of the image is equal to or greater than 1000 (for example, 10000, i.e. 1000cd / m 2 and 0.1cd / m 2 The image is represented as an HDR image. The unit of brightness is candela per square meter (cd / m 2 ). This unit replaces the term "nit" (although it is deprecated in the International System of Units), which may also be used.
[0047] This embodiment is described for preprocessing, encoding, decoding and post-processing images, but since each image in a sequence is preprocessed, encoded, decoded and post-processed in turn, as described below, this embodiment is extended to preprocessing, encoding, decoding and post-processing a series of images (videos).
[0048] In the following, the weight represents the components m of image n. These components Represents an image of a specific image format n Typically, image formats are characterized by color capacity (eg, chroma and dynamic range), color encoding system (eg, RGB, YCbCr), and so on.
[0049] Figure 1 A high-level representation of an end-to-end workflow according to an example of the present embodiment is shown, which supports content delivery to a display with improved display adaptation features. Device A1 is configured to implement a method for pre-processing and encoding an image or video stream, device A2 is configured to implement a method for decoding and post-processing an image or video stream, as described below, and device A3 is configured to display the decoded and post-processed image or video stream. Two remote devices A1 and A2 communicate via a distribution network NET, which is configured to provide at least an encoded image or video stream from device A1 to device A2.
[0050] The apparatus A1 comprises at least one device configured to implement the preprocessing and / or encoding method as described below. The at least one device belongs to a group of devices including a mobile device, a communication device, a gaming device, a tablet (or a tablet), a computer device such as a laptop, a still image camera, a video camera, an encoding chip, a still image server, and a video server (e.g., a broadcast server, a video on demand server, or a web server).
[0051] The apparatus A2 comprises at least one device configured to implement the decoding and / or post-processing method as described below. The at least one device belongs to a group of devices including mobile devices, communication devices, gaming devices, computer devices and set-top boxes.
[0052] The apparatus A3 comprises at least one device configured to implement the display method. The at least one device belongs to a group of devices including a television (or TV), a tablet (or tablet), a computer device such as a laptop, a display, a head-mounted display, and a rendering / display chip.
[0053] According to one example, the network is a broadcast network adapted to broadcast still images or video images from the device A1 to a plurality of devices A2. Networks based on DVB and ATSC are examples of such broadcast networks.
[0054] According to another example, the network is a broadband network adapted to transfer still images or video images from the device A1 to the plurality of devices A2. An Internet based network, a GSM network or a TV based IP network are examples of such broadband networks.
[0055] In one exemplary embodiment, the end-to-end workflow uses a broadcast server for device A1, a set-top box for device A2, a television set for device A3, and a DVB terrestrial broadcast network.
[0056] In an alternative embodiment, means A2 and A3 are combined in a single device, for example in a television integrating set-top box decoding and post-processing functionality.
[0057] In an alternative embodiment, the distribution network NET is replaced by a physical packaged medium storing the encoded images or video streams.
[0058] Physical packaged media include optical packaged media, such as Blu-ray Disc and Ultra HD Blu-ray, and storage-based packaged media, such as those used for OTT and VoD services.
[0059] Figure 2 An example of an end-to-end processing workflow supporting content delivery to both HDR and SDR CE displays according to a single-layer based distribution solution is shown.
[0060] Basically, the single-layer based distribution solution can address SDR direct backward compatibility, that is, it leverages already existing SDR distribution networks and services and enables high-quality HDR presentation on HDR-enabled CE devices, including high-quality SDR presentation on SDRCE devices.
[0061] SL-HDR1 is an example of such a single-layer based distribution solution.
[0062] However, the single-layer based distribution solution may also involve a solution used on a distribution network that delivers display adaptive dynamic metadata together with the PQ HDR video signal. PQ refers to "perceptual quantization" as specified in Rec.ITU-R BT.2100 "Recommendation ITU-R BT.2100-1, Image parameter values for high dynamic range television for use in production and international programme exchange".
[0063] Figure 2 The workflow shown involves a single-layer based distribution solution with associated metadata and illustrates the three components used to reconstruct a representative input image. The three components Example of use of the method, the input image is derived from three decoded components representing the decoded image and the metadata as specified in, for example, SL-HDR1 or SL-HDR2.
[0064] The information data ID determines which single-layer based distribution solution must be considered. Typically, in practice, only one single-layer based distribution solution is instantiated and the information data ID is a fixed value. If more than one single-layer based distribution solution is instantiated, the information data ID indicates which of these single-layer based distribution solutions must be considered.
[0065] Typically, SL-HDR1 and SL-HDR2 may be instantiated and the information data ID indicates whether SL-HDR1 or SL-HDR2 has to be considered.
[0066] basically, Figure 2 The single-layer based distribution solution shown in comprises a pre-processing step 20 , an encoding step 23 , decoding steps 25 and 26 and a post-processing step 28 .
[0067] The input and output of the preprocessing step 20 are the components and The input and output of the post-processing step 28 are components and The triplet of .
[0068] Figure 2 The single-layer based distribution solution shown in FIG. 1 may include optional format adaptation steps 21, 22, 27, 29 to convert the three components The format is adapted to the input for further processing to be applied to these components.
[0069] For example, in step 21 (optional), the three components The format of can be adapted to a format suitable for the input format of the preprocessing step 20 or the input format of the encoding step 23, and in step 22 (optional), the three components The format of can also be adapted to a format that is suitable for the input format of the encoding step 23.
[0070] In step 27 (optional), the three components The format of can be adapted to a format suitable for the input of post-processing step 28, and in step 29, the three components The format of can be adapted to a format that can be defined from at least one characteristic of the target device (e.g., a set-top box, a connected TV, an HDR / SDR enabled CE device, an Ultra HD Blu-ray Disc player).
[0071] The format adaptation steps (21, 22, 27, 29) may include color space conversion and / or gamut mapping (and / or inverse gamut mapping). For example, when the three decoded components of the output image and three components Or the three components of the input image When the representation is in a different color space and / or gamut, inverse gamut mapping can be used.
[0072] The usual format adaptation processes can be used, such as R'G'B' to Y'CbCr or Y'CbCr to R'G'B' conversion, BT.709 to BT.2020 or BT.2020 to BT.709, down-sampling or up-sampling of chroma components, etc.
[0073] For example, SL-HDR1 may use the format adaptation process and inverse gamut mapping as specified in Annex D of ETSI Technical Specification TS 103 433-1 V1.2.1 (August 2017).
[0074] The input format adaptation step 21 may also include adjusting the three components Apply a transfer function, such as the PQ or HLG transfer function or its inverse (Recommendation ITU-R BT.2100), so that the three components The bit depth is adapted to, for example, a bit depth of 10 bits.
[0075] In the preprocessing step 20, the three components (equal to the three components before being adapted to the format in step 21 or equal to these three components when they have been adapted to the format of these components in step 21 The adapted version of (It may have been adapted to its format in step 22 to obtain three components ) and parameter set SP, and switching step 24 determines the three components Is it equal to three components? or
[0076] In step 23, the three components can be decoded using any video codec. The encoding is performed and a signal comprising the bit stream B is carried through the distribution network.
[0077] According to a variant of step 23 , the parameter sets SP and / or the information data ID are transmitted in the bitstream B as associated static and / or dynamic metadata.
[0078] According to a variant, the parameter set SP and / or the information data ID are transmitted as associated static and / or dynamic metadata on a specific channel.
[0079] Then, the aim is to Figure 1 The at least one signal decoded by the device A2 carries a bitstream B and accompanying metadata.
[0080] In a variant, the bitstream B is stored on a storage medium, such as a memory of a set-top box, a Blu-ray disc or a hard disk, for example.
[0081] In a variant, at least some of the accompanying associated metadata is stored on a storage medium, such as a memory of a set-top box, an Ultra HD Blu-ray disc or a hard disk.
[0082] Preferably, in step 23, the components are decoded using a video codec, such as the H.265 / HEVC codec or the H.264 / AVC codec. A sequence of at least one triplet of , where each component represents an image, and possibly associated metadata is encoded.
[0083] In step 25, a parameter set SP is obtained at least partially from the bitstream B or from another specific channel. At least one parameter in the parameter set SP may also be obtained from a separate storage medium.
[0084] In step 26, three decoded components are obtained from bitstream B
[0085] In a post-processing step 28, which is a near inverse of the pre-processing step 20, the three decoded components And the obtained parameter set SP reconstructs the three components
[0086] In more detail, the pre-processing step 20 includes steps 200-203.
[0087] In step 200, by The amount Apply the mapping function to get the components The amount Represents the brightness of the input image.
[0088] From a mathematical point of view,
[0089]
[0090] Where MF is a mapping function that can reduce or increase the dynamic range of image brightness. Note that its inverse function (denoted as IMF) can reversely increase or decrease the dynamic range of image brightness.
[0091] In step 202, by Apply the inverse mapping function to obtain the reconstructed components
[0092]
[0093] Among them, IMF is the inverse function of the mapping function MF. Therefore, the reconstruction component The value belongs to the component The dynamic range of the values.
[0094] In step 201, by and reconstruction component Corrects the component representing the chrominance of the input image and The derived component and
[0095] Step 201 allows control from three components The colors obtained and ensure that their perception matches the colors of the input image. and The correction of (usually expressed as chrominance components) can be kept under control by adjusting the parameters of the chrominance correction and inverse mapping steps. The color saturation and hue obtained are under control. Normally, such control is not possible when using a non-parametric mapping function (step 200).
[0096] Optionally, in step 203, the component Adjustments can be made to further control perceived saturation as follows:
[0097]
[0098] Where a and b are two parameters.
[0099] Step 203 allows controlling the brightness (by component To ensure that the three components The perceptual color match between the obtained colors (saturation and hue) and the colors of the input image.
[0100] The parameter set SP may include information data related to the mapping function or its inverse function (steps 200, 202 and 282), information data related to the chromaticity correction (steps 201 and 281), information related to the saturation adjustment function, specifically their parameters a and b (step 203), and information about the selective transformations used in the format adaptation stages 21, 22, 27, 29 (e.g., gamut mapping and / or inverse gamut mapping parameters).
[0101] The parameter set SP may also include information data ID and information features of the output image, such as representing the output image ( Figure 2 and 3 Step 29, and Figure 3 Step 284) of the three components format.
[0102] In more detail, the post-processing step 28 comprises steps 280 - 282 which take as input at least one parameter of the parameter set SP.
[0103] In optional step 280, the three components The amount in The output of step 27 can be adjusted as follows:
[0104]
[0105] Where a and b are two parameters in the parameter set SP.
[0106] For example, step 280 is performed when the information data ID indicates that SL-HDR1 must be considered, and step 280 is not performed when it indicates that SL-HDR2 must be considered.
[0107] In step 282, by or, alternatively, Apply the mapping function to obtain three components The amount in
[0108]
[0109] Wherein MF1 is a mapping function derived from at least one parameter in the parameter set SP.
[0110] In step 281, by or, alternatively, For three components The amount in Perform inverse correction to derive three components The amount
[0111] According to one embodiment, the components and Multiply by the chromaticity correction function β(.), which is defined by the parameters of the parameter set SP and whose value depends on the component or, alternatively,
[0112] From a mathematical point of view, the weight Given by:
[0113] https: / / patentlicensing.technicolor.com / IPTech / home /
[0114] or alternatively,
[0115]
[0116] Figure 3 express Figure 2 A hardware-friendly optimization of the single-layer based solution. The optimization includes two additional steps 283 and 284 and allows reducing the complexity of the hardware implementation by reducing the use of bus width.
[0117] In step 283, by considering the parameters in parameter set SP, from the components and The output of step 281 is obtained as three components represented by (R1, G1, B1):
[0118]
[0119] Where m0, m1, m2, m3 are the parameters of parameter set SP, and S0 is the and And other parameters of parameter set SP are derived.
[0120] In step 284, then according to the component The output of step 282 is to scale the three components (R1, G1, B1) to obtain three components
[0121]
[0122] in (Step 282).
[0123] according to Figure 2 or Figure 3 In a first exemplary embodiment of an end-to-end workflow, the information data ID indicates that SL-HDR1 must be considered.
[0124] The mapping function MF(.) in equation (1) then reduces the dynamic range of the input image brightness, and its inverse function IMF(.) in equation (2) increases the component The dynamic range of and the mapping function MF1(.) in equation (5) increases the component dynamic range.
[0125] According to a first variation of the first exemplary embodiment, the component is a nonlinear signal, denoted as brightness in the literature, which is obtained from the gamma-compressed RGB components of the input image by the following formula (step 21):
[0126]
[0127] where γ may be a gamma factor, preferably equal to 2.4.
[0128] Next, according to the first variant, the components are then obtained (step 21) by applying gamma compression to the RGB components of the input image.
[0129]
[0130] Where A=[A1A2A3] T is a standard 3x3 R'G'B'-Y'CbCr conversion matrix (e.g. depending on the color space recommendation ITU-R BT.2020-2 or ITU-R BT.709-6), and A1, A2, A3 are 1x3 matrices:
[0131] A1=[A 11 A 12 A 13 ]
[0132] A2=[A 21 A 22 A 23 ]
[0133] A3=[A 31 A 32 A 33 ]
[0134] Among them A mn (m=1,..,3,n=1,..3) are the matrix coefficients.
[0135] Next, in step 201, according to the first variant, from the component Reconstructed components with gamma compression and The ratio between the products of and
[0136]
[0137] in Depends on the quantity The value of can also depend on three components The constant value of the color primaries. For example, Can be equal to 1.2 in Recommendation BT.2020. Possibly, It may also depend on parameters as specified in ETSI TS 103 433-1 V.1.2.1 clause C.2.3. It can also be a parameter in parameter set SP.
[0138] Finally, according to the first variant, the three components A Y'CbCr 4:2:0 gamma transfer characteristic video signal can then be represented.
[0139] For example, control parameters related to the mapping function MF and / or its inverse function IMF and / or the mapping function MF1(.) may be determined in accordance with the provisions in clause C.3.2 (ETSI Technical Specification TS 103 433-1 V1.2.1). The chromaticity correction function β(.) and its parameters may be determined in accordance with the provisions in clauses C.2.3 and C.3.4 (ETSI Technical Specification TS 103 433-1 V1.2.1). Information data related to control parameters related to the mapping function or its inverse function and information data related to the chromaticity correction function β(.) and its parameters are parameters in the parameter set SP. For example, examples of numerical values of the parameters of the parameter set SP may be found in Annex F (Table F.1) (ETSI Technical Specification TS103 433-1 V1.2.1.).
[0140] The parameters m0, m1, m2, m3 and S0 may be determined in accordance with clause 6.3.2.6 (matrixCoefficient[i] defines m0, m1, m2, m3) and clause 6.3.2.8 (kCoefficient[i] is used to construct S0) of ETSI technical specification TS 103 433-1 V1.2.1 and their reconstructed use may be determined in accordance with clause 7.2.4 (ETSI technical specification TS 103 433-1 V1.2.1).
[0141] According to a second variation of the first exemplary embodiment, the component is the linear luminance component L obtained from the RGB components of the input image I1 by the following formula:
[0142]
[0143] Next, according to the second variant, the components are derived (step 21) by applying gamma compression to the RGB components of the input image I1.
[0144]
[0145] Next, according to the second variation, by Reconstructed components with gamma compression and The ratio of the product of To derive (step 201) the components
[0146]
[0147] in Depends on the quantity and may be obtained from the parameters specified in ETSI TS 103 433-1 V.1.2.1 clause C.3.4.2, where in equation (22)
[0148]
[0149] It can also be a parameter in parameter set SP.
[0150] Finally, according to the second variant, the three components A Y'CbCr 4:2:0 gamma transfer characteristic video signal can then be represented.
[0151] For example, the control parameters associated with the mapping function MF and / or its inverse function IMF and / or the mapping function MF1(.) may be determined in accordance with clause C.3.2 (ETSI Technical Specification TS 103 433-1 V1.2.1). The chromaticity correction function β(.) and its parameters may be determined in accordance with clause 7.2.3.2 (ETSI Technical Specification TS 103 433-2 V1.1.1), where equation (25) f sgf (Y n) = 1. The information data related to the control parameters related to the mapping function or its inverse mapping function and the information data related to the chromaticity correction function β(.) and its parameters are parameters of the parameter set SP.
[0152] The parameters m0, m1, m2, m3 and S0 may be determined as specified in clause 6.3.2.6 (matrixCoefficient[i] defines m0, m1, m2, m3) and clause 6.3.2.8 (kCoefficient[i] is used to construct S0) of ETSI technical specification TS 103 433-1 V1.2.1 and their use in the reconstruction may be determined as specified in clause 7.2.4 (ETSI technical specification TS 103 433-1 V1.2.1).
[0153] according to Figure 2 or Figure 3 In a second exemplary embodiment of an end-to-end workflow, the information data ID indicates that SL-HDR2 must be considered.
[0154] Then the three components can be Represented as a Y'CbCr 4:4:4 full range PQ10 (PQ 10 bit) video signal (specified in Recommendation ITU-R BT.2100). Three components are provided It is composed of three components The calculated PQ 10-bit image data (typically 10, 12 or 16 bits) and associated parameters are then encoded using, for example, the HEVC Main 10 profile coding scheme (step 23). Those parameters are set into a parameter set SP.
[0155] According to a variant, the mapping function MF1(.) in equation (5) can increase or decrease the component dynamic range.
[0156] For example, when the peak brightness of the connected HDR CE display is higher than the peak brightness of the content, the mapping function MF1(.) increases the dynamic range. When the peak brightness of the connected HDR or SDR CE display is lower than the peak brightness of the content, the mapping function MF1(.) reduces the dynamic range. For example, the peak brightness may be a parameter in the parameter set SP.
[0157] For example, the control parameters related to the mapping function MF1 may be determined according to clause C.3.2 (ETSI Technical Specification TS 103 433-1 V1.2.1). The chromaticity correction function β(.) and its parameters may be determined according to clause 7.2.3.2 (ETSI Technical Specification TS 103 433-2 V1.1.1), where equation (25) f sgf(Y n )=1. The information data related to the control parameters related to the mapping function and the information data related to the chromaticity correction function β(.) and its parameters are parameters of the parameter set SP. For example, examples of numerical values of the parameters of the parameter set SP can be found in Annex F (Table F.1) (ETSI Technical Specification TS 103 433-2 V1.1.1).
[0158] Parameters m0, m1, m2, m3 (defined by matrixCoefficient[i] in ETSI Technical Specification TS 103 433-2 V1.1.1) and S0 (constructed using kCoefficient[i] in ETSI Technical Specification TS 103 433-2 V1.1.1) may be determined as specified in clause 7.2.4 (ETSI Technical Specification TS 103 433-2 V1.1.1).
[0159] According to a first variant of the second exemplary embodiment, the three components representing the output image It is three components
[0160] According to a second variant of the second exemplary embodiment, in a post-processing step 28, after decoding (step 25), from the three components and the parameters in parameter set SP to reconstruct the three components
[0161] Then, the three components Can be used with SDR or HDR enabled CE displays. As mentioned above, the three components The format of may be adapted (step 29).
[0162] The mapping function MF(.) or MF1(.) is based on a perceptual transfer function, the goal of which is to transform the components of the input image into components of the output image so as to reduce (or increase) the dynamic range of their brightness values. Thus, the values of the components of the output image belong to a smaller (or larger) dynamic range than the values of the components of the input image. The perceptual transfer function uses a limited set of control parameters.
[0163] Figure 4a 1 shows a diagram of a perceptual transfer function that can be used to map the luminance component, but similar perceptual transfer functions for mapping the luminance component can be used. The mapping is determined by the master display peak luminance parameter (in Figure 4a Medium is equal to 5000cd / m 2 ) control. To better control the black and white levels, signal stretching is applied between the content-dependent black and white levels. The converted signal is then mapped using a piecewise curve constructed from three parts, such as Figure 4bAs shown. The lower and upper parts are linear, with the steepness determined by the shadowGain and highlightGain control parameters respectively. The middle part is a parabola that provides a continuous and smooth bridge between the two linear parts. The width of the intersection is determined by the midToneWidthAdjFactor parameter. All parameters of the control mapping can be transmitted as metadata, for example by using the SEI message specified in ETSI TS 103 433-1 Annex A.2 Metadata.
[0164] Figure 4c The perceptual transfer function TM ( Figure 4a ) to show how to display the maximum brightness based on the target conventional display (e.g. 100 cd / m 2 ) converts the perceptually optimized luminance signal back into the linear domain.
[0165] In step 25 ( Figure 2 Or 3), obtain the parameter set SP to obtain the three components Reconstructing three components These parameters may be obtained from metadata obtained from a bitstream (eg, bitstream B).
[0166] ETSI TS 103 433-1 V1.2.1 clause 6 and Annex A.2 provide examples of the syntax of the metadata. The syntax of the ETSI Recommendation is described for reconstructing HDR video from SDR video, but the syntax can be extended to reconstruct any image from any decoded component; for example, TS 103 433-2 V1.1.1 uses the same syntax to reconstruct the display of adapted HDR video from HDR video signals (with different dynamic ranges).
[0167] According to ETSI TS 103 433-1 V1.2.1, the dynamic metadata may be transmitted according to a so-called parameter-based mode or a table-based mode. The parameter-based mode may be of interest for distribution workflows, where the main goal is to provide a direct SDR backward compatible service with very low additional payload or bandwidth usage for carrying dynamic metadata. The table-based mode may be of interest for workflows equipped with low-end terminals or when a higher level of adaptation is required to correctly represent both HDR and SDR streams. In the parameter-based mode, the dynamic metadata to be transmitted are the brightness mapping parameters representing the inverse mapping function to be applied in the post-processing step, namely the tmInputSignalBlackLevelOffset; tmInputSignalWhiteLevelOffset; shadowGain; HighlightGain; midToneWidthAdjFactor; tmOutputFineTuning parameters.
[0168] In addition, other dynamic metadata to be transmitted are the color correction parameters (saturationGainNumVal, saturationGainX(i) and saturationGainY(i)) used to fine-tune the default chrominance correction function β(.) specified in clauses 6.3.5 and 6.3.6 of ETSI TS 103 433-1 V1.2.1. As described above, parameters a and b can be carried in the saturationGain function parameters, respectively. These dynamic metadata can be conveyed using the SEI message of the HEVC SL-HDR Information (SL-HDRI) User Data Registration (see ETSI TS 103 433-1 V1.2.1 Annex A.2) or another extended data mechanism such as specified in the AVS2 / IEEE1857.4 specification. Typical dynamic metadata payload size is less than 100 bytes per picture or scene.
[0169] return Figure 3 In step 25, the SL-HDRI SEI message is parsed to obtain at least one parameter in the parameter set SP.
[0170] In steps 282 and 202, an inverse mapping function (so-called lutMapY) is reconstructed (derived) from the obtained mapping parameters (for more details see ETSI TS 103 433-1 V1.2.1 clause 7.2.3.1, the same clause of TS 103 433-2 V1.1.1).
[0171] In steps 282 and 202, the chromaticity correction function β(.) (so-called lutCC) is also reconstructed (derived) from the obtained color correction parameters (for more details see ETSI TS 103 433-1 V1.2.1 clause 7.2.3.2, the same clause of TS 103 433-2 V1.1.1).
[0172] In table-based mode, the dynamic data to be transmitted are the pivot points of the piecewise linear curve representing the mapping function. For example, the dynamic metadata are luminanceMappingNumVal indicating the number of pivot points, luminanceMappingX indicating the abscissa (x) value of the pivot point, and luminanceMappingY indicating the ordinate (y) value of the pivot point (see ETSI TS 103 433-1 V1.2.1 clauses 6.2.7 and 6.3.7 for more details). In addition, other dynamic metadata to be transmitted may be the pivot points of the piecewise linear curve representing the chromaticity correction function β(.). For example, the dynamic metadata are colorCorrectionNumVal indicating the number of pivot points; colorCorrectionX indicating the x value of the pivot point; and colorCorrectionY indicating the y value of the pivot point (see ETSI TS 103 433-1 V1.2.1 clauses 6.2.8 and 6.3.8 for more details). These dynamic metadata may be delivered using HEVC SL-HDRI SEI messages (the mapping between clause 6 parameters and Annex A distribution metadata is provided in Annex A.2.3 of ETSI TS 103433-1 V1.2.1).
[0173] In step 25, the SL-HDRI SEI message is parsed to obtain the pivot point of the piecewise linear curve representing the inverse mapping function and the pivot point of the piecewise linear curve representing the chroma correction function β(.) and the chroma to luma injection parameters a and b.
[0174] In steps 282 and 202, the inverse mapping function is derived from those pivot points associated with the piecewise linear curve representing the inverse mapping function ITM (for more details see ETSI TS 103 433-1 V1.2.1 clause 7.2.3.3, - the same clause of ETSI TS103 433-2 V1.1.1).
[0175] In steps 281 and 201, the chromaticity correction function β(.) is also derived from those pivot points associated with the piecewise linear curve representing the chromaticity correction function β(.), (for more details see ETSI TS 103 433-1 V1.2.1 clause 7.2.3.4, - the same clause of ETSI TS 103 433-2 V1.1.1).
[0176] Note that static metadata used by post-processing steps may also be conveyed via SEI messages. For example, the selection of parameter-based mode or table-based mode may be carried by the payload mode information as specified in ETSI TS 103 433-1 V1.2.1 (clause A.2.2). Static metadata such as color primaries or maximum display master display luminance is conveyed by the Master Display Color Volume (MDCV) SEI message as specified in AVC, HEVC, or embedded in the SL-HDRI SEI message as specified in ETSI TS 103 433-1 V1.2.1 Annex A.2.
[0177] According to an embodiment of step 25, the information data ID is explicitly signaled by a syntax element in the bitstream and is thus obtained by parsing the bitstream. For example, the syntax element is part of a SEI message, such as the sl_hdr_mode_value_minus1 syntax element contained in the SL-HDRI SEI message.
[0178] According to one embodiment, said information data ID identifies what is the processing applied to the input image to process the set of parameters SP.
[0179] According to this embodiment, the information data ID can then be used to infer how to use the parameters to reconstruct the three components (Step 25).
[0180] For example, when equal to 1, the information data ID indicates that the parameter set SP has been obtained by applying the SL-HDR1 pre-processing step (step 20) to the input HDR image and the three components represents an SDR image. When equal to 2, the information data ID indicates that the parameters have been obtained by applying the SL-HDR2 pre-processing step (step 20) to the HDR 10-bit image (the input of step 20) and the three components Represents an HDR10 image.
[0181] This embodiment obtains components usually denoted as chrominance components from the color components representing the input image and It represents the chrominance components of the output image, and if the value of a pixel in at least one of the chrominance components exceeds a given value, the value of the pixel in at least one of the color components is modified so that the value of the pixel in the at least one of the chrominance components is less than or equal to the given value.
[0182] Determining whether the value of a pixel in at least one of the chrominance components exceeds a given value allows detection of very saturated colors of the output image, and modifying the value of the pixel in at least one of the color components so that the value of the pixel in the at least one of the chrominance components is less than or equal to the given value, reducing the saturation of the very saturated color within a range that does not perceptually affect the color presented on the display.
[0183] For example, assuming that the input image is represented in the RGB color space and the chromaticity components are the usual U and V chromaticity components, when the value of the U chromaticity component of a pixel is greater than a given value, the B component value of the pixel in the input image tends to be very high compared to the R and G component values of the pixel. Then, according to the present embodiment, the G (and possibly R) component value of the pixel is modified so that the value of the pixel in the U chromaticity component obtained from the modified color component is lower than or equal to the given value.
[0184] Likewise, when the value of the V chrominance component of a pixel is higher than a given value, the R component value of the pixel in the input image tends to be very high compared to the B and G component values of the pixel. Then, according to the present embodiment, the G (and possibly B) component value of the pixel is modified so that the value of the V chrominance component of the pixel obtained from the modified color component is lower than or equal to the given value.
[0185] Figure 6 A step diagram of a method for encoding an image according to an exemplary embodiment of the present embodiment is shown.
[0186] The method includes steps 60 to 62 .
[0187] The input of step 60 is a triplet representing the chrominance component values of the input image. In the following, the triplet of color components refers to the triplet of the well-known RGB color space, but any other triplet representing the value of the image can be used without limiting the scope of this embodiment.
[0188] As mentioned above Figure 2 and Figure 3 As described in, for the three components representing the input image Preprocessing (step 20) is performed to encode the three components of the output in the bit stream B (step 23), then by decoding (step 26) the bit stream B obtains three components Then, the three components representing the output image Either from three components directly, or from three components And the parameters of the parameter set SP obtained from the associated metadata (step 25) are reconstructed (step 28).
[0189] Step 28 is usually implemented by using integer values, that is, some of the internal values in this step are integer values belonging to a specific range defined by a lower limit value LBV and an upper limit value UBV. Typically, this range is defined with 9 bits and a sign bit, that is, the lower limit value LBV is equal to -512 and the upper limit value UBV is equal to 511.
[0190] During the post-processing step 28, the (Equation 6) or alternatively (Equation 6bis), by inversely correcting the three components of and Components, derive three components of and Quantity. The quantity and Represents the chromaticity of the output image, that is, they are usually represented as three components chrominance component.
[0191] In step 60, module M1 obtains the chrominance components representing the output image from the chrominance components representing the input image. and The chrominance component and
[0192] according to Figure 2 or Figure 3 A first variant of the first exemplary embodiment of an end-to-end workflow of the invention, namely, when considering SL-HDR1, the chrominance components and By obtaining equation (14) from equation (9)-equation (10):
[0193]
[0194] Assume encoding / decoding is not considered and (When considering equation 6bis, similar results are obtained when considering equation (6)).
[0195] according to Figure 2 or Figure 3A second exemplary embodiment of an end-to-end workflow of , i.e. when SL-HDR2 is considered, if the display adaptation function is not considered, i.e. when modFactor equals 0 in ETSI TS 103 433-2 V1.1.1 section 7.2.3.2, the chrominance components and Through equation (15), we get:
[0196]
[0197] Where R" = EOTFPQ(R), G" = EOTFPQ(G), B" = EOTFPQ(B) and EOTFPQ(.), where EOTFPQ(.) is specified in SMPTE ST 2084 and it is assumed that encoding / decoding does not take into account and (When considering equation 6bis, similar results are obtained when considering equation (6)).
[0198] In step 61, module M2 checks whether pixel p has and The value in or Whether it exceeds a given value.
[0199] According to one embodiment, the given value depends on the pixel p in at least one of the chrominance components and The value in or The maximum integer value before clipping.
[0200] The given value may be lower than or equal to the upper limit value UBV.
[0201] According to a variant of step 61, module M2 checks whether the pixel p has The value in If the pixel p exceeds the first given value, module M2 checks whether the pixel p has a chrominance component The value in Whether it exceeds a second given value, and the first and second given values are different values.
[0202] Defining different given values for the chrominance components will have an impact on the three components. The color obtained has a special effect because the three components The chrominance component and will not be processed in the same manner.
[0203] If pixel p is in the chrominance component or The value in or If the values of the pixel p and the chrominance component of the pixel are respectively greater than given values, then in step 62, module M3 modifies the value of the pixel p in at least one of the chrominance components so that the value of the pixel p in the at least one of the chrominance components is lower than or equal to the given value.
[0204] According to an embodiment of step 62, the value of said pixel p in a single color component is modified.
[0205] For example, assume that the input image is represented in the RGB color space and the G component is the single color component to be modified.
[0206] According to a variant of the embodiment of step 62, the value of the pixel p in a single color component is replaced by the value Val(p), wherein the value Val(p) is the value of the pixel p in the chrominance component (or ) (or ) is equal to the given value, that is, for example, when the given value is equal to UBV, (or )=UBV.
[0207] For example, when the G component is a single color component to be modified, when When it is lower than or equal to UBV, the value Val(p) is calculated as follows:
[0208]
[0209] Among them, when considering equation (14), EOTF(X)=X 1 / γ And invEOFT(Y)=Y γ , where, considering equation (15), EOTF(X)=EOTFPQ(X) and invEOTF(Y)=InvEOTFPQ(Y), invEOTF(Y) is the inverse function of EOTFPQ(.) function.
[0210] When the chroma component (representing the usual V chroma component) Below or equal to UBV, a similar equation can be obtained:
[0211]
[0212] Among them, when considering equation (14), EOTF(X)=X 1 / γ And invEOFT(Y)=Y γ , when considering equation (15), , EOTF(X)=EOTFPQ(X) and invEOTF(Y)=InvEOTFPQ(Y), where invEOTF(Y) is the inverse function of EOTFPQ(.) function.
[0213] According to another embodiment of step 62, when the pixel p has a first chrominance component The value in When the pixel p is equal to the first given value, the first value Val1(p) is obtained according to equation (16); when the pixel p is in the second chrominance component The value in When it is equal to the second given value, the second value Val2(p) is obtained according to equation (17).
[0214] Then, if the first value Val1(p) is greater than the second value Val2(p), the maximum value MaxVal(p) of the pixel p is determined as the first value Val1(p), otherwise it is determined as the second value Val2(p).
[0215] The first and second given values may be equal to different values UBV1 and UBV2, or equal to the same value, which is typically 511 when 9 bits (+1 sign bit) are used to represent the value, ie the given value is equal to the upper limit value UBV.
[0216] Finally, in step 62, the value of the pixel p in the single color component is replaced by the maximum value MaxVal(p) to modify the value of the pixel p in the single color component.
[0217] According to a variation in step 62, if the maximum value MaxVal(p) of the pixel p is strictly greater than 0 and strictly greater than the value of the pixel p in the single color component, the value of the pixel p in the single color component is replaced by the maximum value MaxVal(p).
[0218] According to an embodiment of step 62, as described above, the value of the pixel p in the first color component is modified, and also the value of the pixel p in the second color component is modified, the second color component being determined according to the first and second values Val1(p) and Val2(p).
[0219] For example, assuming that the input image is represented in the RGB color space and the chrominance components are the usual U and V chrominance components, the first value Val1(p) refers to the U chrominance component and the second value Val2(p) refers to the V chrominance component. When Val1(p)>Val2(p), the second color component is the R chrominance component, otherwise it is the B chrominance component.
[0220] According to an embodiment variant of step 62, the value of the pixel p in the second color component is modified by multiplying the value of the pixel p in the second color component by the ratio of the maximum value MaxVal(p) to the value of the pixel p in the first color component.
[0221] For example, assuming that the input image is represented in the RGB color space and the chrominance components are the usual U and V chrominance components, the first value Val1(p) refers to the U chrominance component and the second value Val2(p) refers to the V chrominance component. Then, if Val1(p) is greater than Val2(p), i.e., MaxVal(p) = Val1() and the very saturated color is due to the U chrominance component, the R component is the second color component to be modified as follows:
[0222] R(p)=R(p).Val1(p) / Value(p), where Value(p) is the value of pixel p in the first color component (eg, G) before the value of the pixel in the first color component is modified.
[0223] In this way, high values of the B component are compensated by increasing the R component value, resulting in an overall desaturation of the color of pixel p in the output image.
[0224] If Val1(p) is lower than Val2(p), i.e., MaxVal(p) = Val2() and the very saturated color is due to the V chrominance component, then the B component is the second color component to be modified as follows:
[0225] B(p)=B(p).Val2(p) / Value(p), where Value(p) is the value of pixel p in the first color component (e.g., G) before modifying the value of the pixel in the first color component.
[0226] In this way, high values of the R component are compensated by increasing the B component value, resulting in an overall desaturation of the color of pixel p in the output image.
[0227] According to a variant of step 62, the value of said pixel p in the second color component is modified only if MaxVal(p) is greater than a given value LOW (for example 25 when the range is defined in 9 bits).
[0228] This variant avoids introducing undesired color shifts on the reconstructed image I3, since even if val(p) is low, the ratio between MaxVal(p) / Val(p) does not take very high values.
[0229] According to another variant of step 62, the value of the pixel p in the second color component is modified only if the value val(p) of the pixel p in the input image is lower than the value of the pixel p in a single color component (or the first color component), for example, the G component.
[0230] This variant avoids introducing an unwanted color shift in the output image when the R (or B) color component is relatively high, because when applying the ratio MaxVal(p) / val(p) to the R (or B) color component, no overly high R (or B) color values that could introduce unwanted colors in the output image are generated.
[0231] According to another variant, when MaxVal(p) is lower than a given value LOW2, the gamma factor of the gamma-coded single color component is modified.
[0232] Typically, LOW2 = 1.0 and when MaxVal(p) < LOW2, the gamma factor is equal to 2.0, otherwise it is equal to 2.4.
[0233] The effect of this is that the brightness of extremely dark values is not overly amplified, thus avoiding certain unwanted colors from popping up in the output image.
[0234] In Figures 1 to 4c and Figure 6 a module is a functional unit, which may or may not be associated with a distinguishable physical unit. For example, these modules or some of them can be integrated in a unique component or circuit, or assist software in implementing functions. On the contrary, certain modules may consist of separate physical entities. Devices compatible with this embodiment are implemented using pure hardware, such as using dedicated hardware, such as ASIC, FPGA, or VLSI, which are "application-specific integrated circuit", "field-programmable gate array", "very large scale integration" respectively, or are implemented by several integrated electronic components embedded in the device, or are implemented by a hybrid of hardware and software components.
[0235] Figure 5 represents an exemplary embodiment of the architecture of the device 50, which can be configured to implement the method described in conjunction with Figures 1 to 4c .
[0236] The device 50 includes the following elements connected together by a data and address bus 51: a microprocessor 52 (or CPU), for example, a DSP (or digital signal processor); a ROM (or read-only memory) 53; a RAM (or random access memory) 54; an I / O interface 55 for receiving data to be sent from an application; and optionally a battery 56. According to one example, the battery 56 is external to the device. In each memory mentioned, the word "register" used in the specification can correspond to an area of small capacity (a few bits), or a very large area (such as an entire program or a large amount of received or decoded data). ROM 53 includes at least programs and parameters. ROM 53 can store algorithms and instructions to perform the technology according to the present embodiment. When powered on, CPU 52 uploads the program into RAM 54 and executes the corresponding instructions. RAM 54 includes in the registers the program executed by CPU 52 and uploaded after the device 50 is powered on, the input data in the registers, the intermediate data of different states of the method in the registers, and other variables for executing the method in the registers.
[0237] The embodiments described herein may be implemented, for example, as methods or processes, devices, software programs, data streams, or signals. Even if discussed only in the context of a single form of embodiment (e.g., discussed only as a method or device), the embodiments of the features discussed may also be implemented in other forms (e.g., programs). The device may be implemented, for example, in appropriate hardware, software, and firmware. The method may be implemented in a device such as a processor, which generally refers to a processing device, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as computers, mobile phones, portable / personal digital assistants ("PDAs"), and other devices that facilitate information communication between end users.
[0238] According to an example, an input video or an image of an input video is obtained from a source. For example, the source belongs to a set, which includes a local memory (53 or 54), such as a video memory or a RAM (or random access memory), a flash memory, a ROM (or read-only memory), a hard disk; a storage interface (55), such as an interface with a large-capacity memory, RAM, flash memory, ROM, an optical disk or a magnetic carrier; a communication interface (55), such as a wired interface (such as a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as an IEEE 802.11 interface or interface); and image capture circuitry (e.g., a sensor such as a CCD (or charge-coupled device) or a CMOS (or complementary metal-oxide semiconductor)).
[0239] According to one example, a bitstream carrying metadata is sent to a destination. As an example, the bitstream is stored in a local or remote memory, such as a video memory or RAM (54), a hard disk. In a variant, at least one bitstream is sent to a storage interface (55), such as an interface with a mass storage device, a flash memory, a ROM, an optical disk or a magnetic carrier, and / or is sent via a communication interface (55), such as an interface for a point-to-point link, a communication bus, a point-to-multipoint link or a broadcast network.
[0240] According to other examples, a bitstream carrying metadata is obtained from a source. Exemplarily, the bitstream is read from a local memory, such as a video memory (54), a RAM (54), a ROM (53), a flash memory (53) or a hard disk (53). In a variant, the bitstream is received from a storage interface (55), such as an interface with a mass storage device, RAM, ROM, flash memory, an optical disk or a magnetic carrier, and / or the bitstream is received from a communication interface (55), such as an interface of a point-to-point link, a bus, a point-to-multipoint link or a broadcast network.
[0241] According to one example, the device 50 configured to implement the method as described above belongs to a collection, which includes a mobile device, a communication device, a gaming device, a tablet (or tablet computer), a laptop computer, a still image camera, a video camera, an encoding / decoding chip, a television, a set-top box, a display, a still image server, and a video server (e.g., a broadcast server, a video on demand server, or a web server).
[0242] The various processes and features described herein may be implemented in various devices or applications. Examples of such devices include encoders, decoders, postprocessors for processing decoder outputs, preprocessors for providing input to encoders, video encoders, video decoders, video codecs, web servers, set-top boxes, laptop computers, personal computers, mobile phones, PDAs, and any other devices or other communication devices for processing images or videos. It should be clear that the device may be mobile and may even be installed in a mobile vehicle.
[0243] In addition, the method can be implemented by instructions executed by a processor, and such instructions (and / or data values generated by the implementation) can be stored on a computer-readable storage medium. The computer-readable storage medium can take the form of a computer-readable program product, which is embodied in one or more computer-readable media and has a computer-readable program code executable by a computer embodied therein. As used herein, a computer-readable storage medium is considered to be a non-transitory storage medium that is endowed with an inherent ability to store information therein and an inherent ability to retrieve information therefrom. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or apparatus or any suitable combination of the foregoing. It should be understood that the following, although providing examples of more specific computer-readable storage media to which the embodiments can be applied, is only illustrative and not exhaustive, as it is more readily recognized by those of ordinary skill in the art: a portable computer; a floppy disk; a hard disk; a read-only memory (ROM); an erasable programmable read-only memory (EPROM or flash memory); a portable compact disk read-only memory (CD-ROM); an optical storage device; a magnetic storage device; or any suitable combination of the foregoing.
[0244] The instructions may form an application program tangibly embodied on a processor-readable medium. The instructions may be in, for example, hardware, firmware, software, or a combination thereof. The instructions may be found in, for example, an operating system, a separate application, or a combination of both. Thus, a processor may be characterized as, for example, a device configured to perform a process and a device including a processor-readable medium (e.g., a storage device) having instructions for performing the process. In addition, the processor-readable medium may store, in addition to or in lieu of the instructions, data values generated by an embodiment.
[0245] As will be apparent to those skilled in the art, embodiments may generate various signals that are formatted to carry information that can be stored or transmitted, for example. The information may include, for example, instructions for executing a method or data generated by one of the embodiments. For example, a signal may be formatted to carry as data the rules for writing or reading the grammar of the example of the embodiment, or to carry as data the actual grammar values written by the example of the embodiment. Such a signal may be formatted as, for example, an electromagnetic wave (e.g., using the radio frequency portion of the spectrum) or a baseband signal. Formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information carried by the signal may be, for example, analog or digital information. As is well known, a signal may be sent over a variety of different wired or wireless links. The signal may be stored on a processor-readable medium.
[0246] A plurality of embodiments have been described. However, it should be understood that various modifications may be made. For example, elements of different embodiments may be combined, supplemented, modified, or removed to produce other embodiments. Additionally, it will be understood by those skilled in the art that other structures or processes may replace those disclosed structures or processes, and the resulting embodiments will perform at least substantially the same (multiple) functions in at least substantially the same (multiple) manners to achieve substantially the same (multiple) results as the disclosed embodiments. Therefore, the present application contemplates these and other embodiments.
Claims
1. A method comprising: derive chrominance components representing chrominance components of the output image from color components representing the input image, The output image is obtained by applying decoding and post-processing to a coded image, the coded image being obtained by applying pre-processing and encoding to the input image; In response to determining that the value of the pixel in at least one of the chrominance components exceeds a given value, generating a modified value of the pixel in at least one of the color components, the value of the pixel in at least one of the chrominance components obtained from the modified value of the pixel in at least one of the color components being less than or equal to the given value; as well as The modified value of the pixel in at least one of the color components is inserted into the input image.
2. The method according to claim 1, wherein: The given value depends on the maximum integer value of the pixel before clipping the value of at least one of the chrominance components.
3. The method according to claim 1, further comprising: comparing a value of the pixel in a first chrominance component of the at least one chrominance component with a first given value; as well as A value of the pixel in a second chrominance component of the at least one chrominance component is compared with a second given value, the first given value and the second given value being different values.
4. The method according to claim 1, wherein: Generating the modified value of the pixel in at least one of the color components includes generating the modified value of the pixel in a single color component.
5. The method according to claim 4, wherein: Generating the modified value of the pixel in at least one of the color components includes replacing the value of the pixel in a single color component with a value obtained when the value of the pixel in the at least one of the chrominance components is less than or equal to the given value.
6. The method according to claim 5, wherein: Generating the modified value of the pixel in at least one of the color components comprises: If the value of the pixel in the first chrominance component is equal to a first given value, obtaining a first value; If the value of the pixel in the second chrominance component is equal to a second given value, obtaining a second value; If the first value is greater than the second value, determining the maximum value of the pixel as the first value, otherwise determining it as the second value; and The value of the pixel in a single color component is replaced by the maximum value.
7. The method according to claim 6, wherein: The maximum value is greater than 0 and greater than the value of the pixel in the single color component.
8. The method according to claim 1, wherein: Generating the modified value of the pixel in at least one of the color components further comprises: Obtaining a value of the pixel in a first color component; Obtain the value of the pixel in the second color component, determine the second color component based on the first value and the second value, if the value of the pixel in the first chrominance component is equal to a first given value, obtain the first value, and if the value of the pixel in the second chrominance component is equal to a second given value, obtain the second value.
9. The method according to claim 8, wherein: Generating the modified value of the pixel in at least one of the color components also includes multiplying the value of the pixel in the second color component by the ratio of the maximum value to the value of the pixel in the first color component, and if the first value is greater than the second value, determining the maximum value of the pixel as the first value, otherwise determining it as the second value.
10. An apparatus comprising one or more processors configured to: - deriving chrominance components representing chrominance components of the output image from the color components representing the input image, The output image is obtained by applying decoding and post-processing to a coded image, the coded image being obtained by applying pre-processing and encoding to the input image; - in response to determining that the value of the pixel in at least one of the chrominance components exceeds a given value, generating a modified value of the pixel in at least one of the color components such that the value of the pixel in at least one of the chrominance components obtained from the modified value of the pixel in at least one of the color components is less than or equal to the given value; as well as The modified value of the pixel in at least one of the color components is inserted into the input image.
11. The device according to claim 10, wherein: The given value depends on the maximum integer value of the pixel before clipping the value of at least one of the chrominance components.
12. The device according to claim 10, wherein: The one or more processors are further configured to: comparing a value of the pixel in a first chrominance component of the at least one chrominance component with a first given value; and A value of the pixel in a second chrominance component of the at least one chrominance component is compared with a second given value, the first given value and the second given value being different values.
13. The device according to claim 10, wherein: Generating the modified value of the pixel in at least one of the color components includes generating the modified value of the pixel in a single color component.
14. The device according to claim 13, wherein: Generating the modified value of the pixel in at least one of the color components includes replacing the value of the pixel in a single color component with a value obtained when the value of the pixel in at least one of the chrominance components is less than or equal to the given value to modify the value of the pixel in at least one of the color components.
15. A non-transitory processor-readable medium having program code instructions for executing the steps of the method according to claim 1 when the program is executed on a computer.
