Method and apparatus for encoding HDR images

The method and apparatus for encoding HDR images address the challenge of rendering on displays with varying peak brightness by using color mapping functions and metadata to ensure high-quality image reproduction across different display types.

JP7553153B2Active Publication Date: 2024-09-18KONINKLIJKE PHILIPS NV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023141256
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2015-03-19
Filing Date
2023-08-31
Publication Date
2024-09-18
Estimated Expiration
2035-07-21

AI Technical Summary

Technical Problem

Existing HDR image encoding techniques struggle to efficiently encode high dynamic range images for various display types with different peak brightness levels, often resulting in suboptimal rendering on displays with lower peak brightness due to insufficient luminance range and lack of flexibility in encoding methods.

Method used

A method and apparatus for encoding HDR images that includes specifying a set of color mapping functions and metadata to enable flexible conversion between different display peak brightness levels, allowing for optimal rendering on a range of displays from 100 nits to 5000 nits, while maintaining high-quality image texture and luminance.

Benefits of technology

Enables high-quality rendering of HDR images on a variety of displays with different peak brightness levels, ensuring accurate reproduction of image textures and luminance, and allowing for efficient transmission and decoding of HDR content across multiple display types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553153000003
    Figure 0007553153000003
  • Figure 0007553153000008
    Figure 0007553153000008
  • Figure 0007553153000009
    Figure 0007553153000009
Patent Text Reader

Abstract

To provide a method and a device for encoding a high dynamic range (HDR) image.SOLUTION: There is provided an encoder (301) for encoding an input HDR video set of images (Im_5000), with luminances lower than a first maximum luminance (L_max_M), into an encoded HDR video (Im_2000), in order to enable video transmission of the HDR video, and comprising: a re-grading unit (320) for making the encoding definition encode pixel color luminances up to a second maximum luminance (L_max_C), which is equal to or less than 50% of the first maximum luminance and applying a tone mapping function (F_2Tu, 601) for color mapping the encoded HDR video (Im_2000) of lower second maximum luminance (L_max_C) to a HDR video reconstruction (Im_5000*); and a formatter (330), arranged to write into a video signal (S_im) the encoded HDR video (Im_2000) and as metadata the at least a tone mapping function (F_2Tu, 601).SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technical system and method for encoding one (i.e. still) and preferably more (i.e. video) high dynamic range images, transmitting the necessary encoded image information to a receiving end, and a decoder for decoding the encoded images so that they can ultimately be displayed. [Background technology]

[0002] After many years of using classical image / video coding techniques, now called Low Dynamic Range (LDR) coding (starting with NTSC and continuing with MPEG2 through MPEG-HEVC), research and development has recently been initiated to determine the next generation of video codecs capable of processing so-called High Dynamic Range (HDR) images of HDR scenes.

[0003] This in turn requires the camera to capture an increased dynamic range, at least beyond 11 stops (e.g. ARRI's current cameras get about 14 stops), or preferably even beyond 16 stops. Some cameras use, for example, slow and fast exposures and mix these, others use beam splitting towards two or more sensors of different sensitivity.

[0004] In classical imaging, a lot of information is discarded (hard clipped), e.g. the outside of a room or a car, but current imaging systems can capture all such information, the question is then how to handle it, especially when rendering it on a display. 16 stops would already be enough to capture many (if not all) HDR scenes, but on a display it is not necessary, and typical displays cannot, to render e.g. a welding arc as bright as it is in a real scene compared to the average brightness. Higher dynamic range displays are now emerging with peak brightness higher than the currently typical 500 nits (or 100 nits reference monitor for grading) peak brightness (PB) of LDR displays, e.g. 800-1000 nits televisions are emerging, while SIM2 is making a 5000 nits monitor.

[0005] However, the LDR codec specifications are not able to encode enough details in HDR images for the receiver, especially when current typical limitations must also be taken into account, such as the word length in bits (e.g. 10 bits per color component may be desired at least in some video communication applications) of the code words representing luminance (such as the codes called luma) that must be processed by the various ICs, etc. Especially if a practical system is desired in the short term, it must not deviate too much from existing technology in the field, and yet still allow the encoding, processing and final display of images with a much nicer HDR appearance than LDR images (e.g. brighter lamps, realistic fires or contrasty scales of a lizard in the sun, etc.).

[0006] An HDR image is an image that encodes the texture of an HDR scene (which may typically include both very bright and dark regions, and perhaps even regions of intermediate brightness, together with a very large number of gray values ​​that ideally need to be rendered accurately) with enough information for high-quality encoding of the color texture of various captured objects in the scene, in the sense that a visually good rendering of the HDR scene can be performed on a high-quality HDR display with a high peak brightness, such as 5000 nits. Figure 1 shows a typical HDR image, such as a toy store at night, with brightly colored toys or boxes that are strongly lit compared to the average lighting (because some of these toys are close to the local lamp, while others are far away in the shadow area). In contrast to a daytime scene, where the sun and sky illuminate each point similarly, at night there may be only a few light sources that illuminate the scene in a quadratic attenuating manner. This creates bright areas 104 around the light sources themselves and dark areas in the far corners. For example, the sewer entrance 114 receives almost no light from anywhere, and therefore the sewer is very dark. That is, a night scene may simultaneously have image area luminances (or pixel luminances in these areas, if captured with a linear camera) of over 10,000 nits for the lamps themselves and a very small percentage of nits, such as 0.001 nits, for the dark areas, making the overall dynamic range tens of millions to 1. This is the theoretical range for the brightest to darkest pixels, and the useful dynamic range can of course be smaller since a few small lamps or a small dark spot behind the sewer entrance do not need to be accurately represented to the viewer, but the useful dynamic range of regular objects of interest in a typical HDR scene may well exceed 10,000:1 (or even 14 stops). Blindly mapping these luminances to a display with a peak luminance of 2000 nits without intelligently re-determining the peak luminance of objects to be rendered means that one should "theoretically" have a minimum (visible) black of at least 0.2 nits (assuming that peak white rendering is sufficient for good visual quality rendering of this example scene).

[0007] HDR video (or even still image) coding has only been explored very recently and has been a formidable challenge until now, but the typical belief of the research community is that it is necessary to go for significantly more bits to encode the luminance beyond the LDR range of scene objects (e.g., encoding the scene luminance independently), or some two-layer or similar decomposition method is required, for example, where there is an illumination boost image in addition to the object reflection image. An example of such a two-image-per-instant HDR video encoding system can be found in U.S. Pat. No. 8,248,486 or International Patent Application Publication No. WO2005 / 1040035.

[0008] The applicant recently proposed a very simple single image per instantaneous method, which is a parametric and functional way of encoding both HDR and LDR appearance images, because in addition to simply encoding a single HDR image (also called appearance or grading) that is typically suitable for displays with peak luminance (or indeed dynamic range) around a preselected reference value, such as 1500 nits, we also want to meet the demands of other displays with other dynamic ranges in the market within the framework, i.e., since there are also mobile displays with e.g. 500 or 100 nits, rather than blindly leaving it to the receiver how to change the encoded high dynamic range image into some moderately looking LDR image by automatic conversion, we co-encode into the color processing function (and parameters that characterize the functional shape) how to arrive at a suitable LDR image (e.g., an LDR image that the content creator can agree on) starting from the encoded HDR image.

[0009] By "High Dynamic Range (HDR)" we typically mean that 1) the captured image (or images) from the capture side has a high luminance contrast ratio (i.e., a contrast of 10,000:1 or more is achievable by all components of the image processing chain up to the encoding and rendering) compared to traditional LDR encoding; and 2) a luminance of captured objects in excess of at least 1000 nits should be encodable, or more specifically, given the playback environment, must be reproducible in excess of 1000 nits to produce some desired appearance, such as a bright light or sunny exterior. Or, that the rendering of such an image (or images) is HDR (i.e., the images must be suitable in that they contain sufficient information for high-quality HDR rendering, preferably in a manner that is easy to use technically), means that the image (or images) are rendered or intended to be rendered on a display having a peak luminance of at least 1000 nits (this does not mean that the images cannot be rendered on an LDR display of, for example, 100 nits peak luminance, typically after redetermining the luminance of the various image objects for an appropriate color mapping so that the luminance of the resulting objects is better suited to the dynamic range of the different display and possibly the viewing environment).

[0010] When designing a new HDR coating system, many issues must be studied and solved in succession until one can write down the details of any practical coating system for which there has been no good uniform view. First, what code assignment function should be used that maps scene object luminance to a luma, e.g. 10 bits (or 8 bits for lower quality systems, or e.g. 12 bits for professional quality), that actually encodes what should be rendered for that pixel. While the code that encodes the perceived brightness or rendered luminance of a pixel is called luma (because that is the name also given to LDR coding), the above code assignment function, which in this case differs significantly from at least the gamma 2.2 code assignment function of LDR video coding, can be one of the possible alternatives. Those skilled in the art will understand that when describing techniques related to luminance or equivalently luma behavior, in practical implementations, the processing can be performed on the luma itself, as in the case of using a Y'u'v' color representation, where Y' is the luma determined by a predefined code assignment function, and u' and v' are chromaticity coordinates, or equivalently on a linear or non-linear RGB representation. The choice of code assignment function can be equivalently defined as defining a master EOTF (electro-optical transfer function), which defines what the theoretical reference display model is that converts the luma code or luma of an HDR image into the luminance rendered on the reference display. The LDR variant was rather fortuitously determined from the physical behavior of the CRT electron gun to the 2.2 power law or so-called gamma function. The LDR variant happened to work psychovisually well on a type of display with a peak luminance of about 100 nits, especially for images captured according to the corresponding LDR capture philosophy with reasonably uniform illumination of the scene, correct exposure and omission of less important image areas.

[0011] Secondly, however, before we can define a code assignment function that distributes luminance to codes along a code range (e.g., 0 to 1013), we must define what can be called a master luminance range, which is the best range for encoding a typical HDR. This step should not be overlooked. In LDR, we happen to have a range by exposing to mid-grays and whites, and by what dynamic range the sensor had (and perhaps by ignoring that digital camera images may have clipping on the white side of the encoding and / or immersion in noise on the black side, while the gentle tilt of celluloid film may result in a fairly low-contrast image). Early researchers working on still images thought it made sense to simply make the master luminance range the linear range of typical luminance in the scene (i.e., from a very small fraction of a nit to billions of nits), but for video coding, where all practical aspects are taken into account, it makes little practical sense to make this master luminance range reach up to billions of nits of sunlight.

[0012] However, realizing that it would be necessary to define a new master luminance range for processing all typical HDR images (typical after appropriate artistic grading to object luminances that may be suitable for display, even high quality HDR displays), the expectation was that it would only be necessary to define a single sufficiently large HDR master luminance range that would be sufficient for all scenarios. Applications desiring an HDR look of a scene would then operate on received images encoded along this master luminance range (e.g., with luminance up to a maximum luminance of 10000 or 5000 nits).

[0013] International Patent Application Publication No. WO2014 / 009844 describes an example of such a master luminance range HDR video encoding system, similar to the embodiment described below, in that it follows the applicant's single image per instant encoding scheme, whereby in the teachings a single image is encoded for each instant of the video, which is a first LDR (i.e., 100 nits) look, and in addition a color processing function for converting to a HDR look (which may be a 5000 nits master graded reproduction) is encoded in the metadata associated with the single image. However, the teachings in this patent application follow the principles of a single fixed master luminance range technology design. Typically only a single LDR and HDR look is encoded (from this information, there may be other intermediate looks calculated at the receiving end (e.g., the LDR image can be upgraded to the look required for a 1200 nits connected display), but other intermediate lower HDR quality images are not taught to encode themselves (i.e., only the 100 nits LDR image is transmitted)). And this HDR look is a master look formed in a 5000 nit master luminance range, the LDR image is an image for a 100 nit reference display like in the LDR era, and the HDR image is actually encoded via a functional transformation from the only transmitted LDR image mentioned above, i.e., the master HDR, e.g., 5000 nit image (HDR_ORIG, HDR_FIN), is just taught in addition to the LDR look typically required for compatibility with legacy displays, etc.

[0014] Applicant's US Patent Application Publication No. 2014 / 097113 also teaches how to transmit an HDR image that may be the only HDR image received, from which other gradings can be calculated, but is silent on that aspect. What this prior art teaches is that several dynamic range appearances can be alternatively encoded into the same existing LDR coding container technology. In this case, the receiver must indicate which version was used so as not to be confused. For example, an image pixel has a color defined by three 16-bit R, G, and B color components according to the standard LDR coding definition (i.e., using the Rec. 709 code assignment function). In this case, the receiver knows that this is a grading for a 100 nits display, and will therefore display the image at a maximum luminance exactly or approximately equal to 100 nits, even if the display has a peak luminance of 2500 nits and can render the image that brightly. Instead, the same R, G, and B color components may contain the colors of, for example, a 5000 nit HDR image, which means that the relative values ​​of object pixel colors are different (e.g., a dark object may have a red component of 0.05 in LDR but 0.0005 in HDR). If a received LDR container encoded image actually contains an HDR image, that fact is indicated by metadata that describes to the receiver what the encoding actually is. Thus, the receiver can know how to best render it on a particular display by its own optimization process. For example, if a 5000 nit image is received and a 4500 nit display is connected, the image can be rendered directly without prior colorimetric conversion. However, if a 100 nit display is connected, such a received 5000 nit image must first be downgraded, whereas no downgrading is required if a suitable 100 nit image was already received.Thus, what is taught in the prior art is that the receiver may need to perform some color transformation on its side to make the received HDR image, e.g., 1000 nits, more suitable for, e.g., a 500 nits display, but the teachings do not teach how this should be done, much less whether or how it should be facilitated by more information being communicated from the sender. That is, apart from teaching how to encode and specify various possible HDR and LDR gradings, the document does not teach a system configuration that actually has at least two HDR encodings on the sender side, nor the recoverability of such encodings at the receiver side (in this prior art there is only one HDR image that can be considered equivalent to Applicant's master 5000 nits grading).

[0015] Although it may at first glance seem illogical to deviate from final HDR image encoding on a single master luminance range when formulating a generic HDR encoding system (among other things, why require anything other than the best possible grading of an HDR scene to arrive at what is the highest reasonably renderable object luminance, or why complicate things by having more ways to define HDR), the inventors felt that for certain applications there is a need for even more versatility regarding the definition of luma codes and which HDR luminances that lumas correspond to (or more precisely, to which luminances are to be rendered on one or more displays). Summary of the Invention [Problem to be solved by the invention]

[0016] It is an object of the present invention to provide a more future-proof and more versatile HDR video encoding technique. [Means for solving the problem]

[0017] The above object of having a more future-proof and more versatile HDR video coding technique is realized by an encoder (301) for encoding an input high dynamic range video having a set of images (Im_5000) having pixel colors with luminance less than or equal to a first maximum luminance (L_MAX_M) into an encoded high dynamic range video (Im_2000), characterized in that the luminance of any pixel in said encoded high dynamic range video (Im_2000) is less than or equal to a second maximum luminance (L_MAX_C) that is at least 900 nits, said first maximum luminance (L_MAX_M) being at least twice as large as said second maximum luminance (L_MAX_C), said encoder comprising: - a regrading unit (320) configured to enable a content creator to specify at least one tone mapping function (F_2Tu) for color mapping said encoded high dynamic range video (Im_2000) of a lower second maximum luminance (L_MAX_C) to a high dynamic range video reproduction (Im_5000*) of said high dynamic range video (Im_5000); - a formatter configured to write the encoded high dynamic range video (Im_2000) and, as metadata, the at least one tone mapping function (F_2Tu, 601) into a video signal (S_im); has.

[0018] This allows the grader to specify very precisely the color mapping specifications (F_2Tu) required to map, for example, a 5000 nit master grading into the available space on another 2000 nit reference range / gamut that is available for technical reasons, so contrary to what any prior art teaching or obvious logic would suggest, there are actually two HDR gradings: one that the grader can create arbitrarily and one that the grader needs to optimize for transmission to at least one receiver. The luminance of the first master grading goes up to, for example, 5000 nits. The luminance of the pixels of the HDR coding that are actually transmitted potentially goes up to a lower maximum value (L_MAX_C), making this a lower quality HDR grading in appearance. These maxima are associated with the graded image, e.g. typically the color data of the encoded high dynamic range image pixels is supplemented with a metadata indicator indicating that this is a grading with luminance up to a maximum possible value of 2000 nits (e.g. CODE_MAX=2000). Typically, there will also be a practical code assignment function, whose functional form can also be conveyed to the receiver in other metadata. The grader can also balance the quality of the encoding, which is particularly relevant if a 5000 nits display needs an approximation of the master grading Im_5000*, but in addition the receiver needs the appearance of Im_2000 to render on a display with a peak luminance of about 2000 nits. Whatever the grader chooses, the reversibility constraints of the regrading unit's toolset will ensure a commensurate reproduction of Im_5000*.That is, what would typically be transmitted at the same time is data specifying the exact calculation of a color mapping function to upgrade a received 2000 nit image to a 5000 nit image, which will result in a 5000 nit image that is sufficiently close to the 5000 nit image for a given application (i.e., the function is typically designed at the factory for the application so that, for example, banding or noise is appropriate in any case; in the present case, this is a family of color conversion functions with at least one tone mapping function that can be adjusted by the grader (i.e., the grader selects at least one of the above functions and then specifies parameters such as the slope of the linear segment, for example by means of a slider), and any receiver, once it receives the function, can easily calculate the required Im_5000*). Further embodiments may use elaborate engineering calculations to further assist the grader, whether the grader is made aware of this and involved in the fine-tuning, or is solely focused on creating his or her best Im_2000 based solely on his or her artistic judgment, to achieve the optimal balance of simultaneously encoding the 2000 nit and 5000 nit grading / looks into the same single encoded image.

[0019] Various implementations of the encoder 301 can use a pre-agreed value for the second maximum luminance (L_MAX_C) that is useful for the intended application (e.g., free videos from the Internet may have lower quality requirements). Values ​​for L_MAX_C can typically fall between 900 and 3500 nits, preferably e.g. 1000 or 2000 nits. These are seen as suitable maximum luminances for practical video encoding reusing MPEG technologies such as MPEG_HEVC / 265, among others, due to their match with the average expected peak luminance of displays most frequently deployed on the market in the near future.

[0020] An advantageous embodiment is an encoder for encoding an input high dynamic range video, the re-grading unit being configured to allow specification of the mapping function (F_2Tu) having a color mapping specification that applies an arbitrary shaped monotonically increasing tone mapping function and a luminance dependent chroma multiplication function, which are to be used for color processing that applies corresponding luminance and chroma modifications to pixel colors in the output image of the high dynamic range video playback (Im_5000*) while preserving the same hue as in the input image of the encoded high dynamic range video (Im_2000). This can be seen as the simplest yet most versatile aspect of color mapping compliant with the technology system, and as being straightforward in terms of encoder or decoder IC structure. It makes sense to use a process that keeps the hue constant, and then optimally transforms the luminance and chroma of the pixels to obtain the desired regraded look for the new rendering situation, specifically the peak luminance of the connected display to which the optimally regraded image is fed (equivalently, the luminance process can be designated as luma process, but this is not a detail that should be considered for the main idea of ​​the invention and its embodiments).The skilled reader will appreciate that due to the semantic complexity of the scene and its HDR effects, a grader may want to design a complex mapping between a low quality (2000 nits) HDR grade and a high quality one (a 5000 nits grade of the master), but typically these functional shapes are monotonically increasing since light-dark inversion is not desired.Also advantageous is an encoder 301 for encoding an input high dynamic range video as claimed in one of the claims, comprising a further grading unit 325 configured to specify at least one further color mapping function (F_2T1, F_d2d) for specifying how to color map said encoded high dynamic range video (Im_2000) to a third video optimized for rendering on a display having peak luminances (PL_1, PL_2) different from said first maximum luminance (L_MAX_M) and said second maximum luminance (L_MAX_C). For each grade of display on the market, this technical mechanism allows the grader to specify exactly the color processing required to obtain the most suitable appearance as the rendered display output. Or the grader could specify only a few gradings, say Im_2000 at 2000 nits, Im_5000* at 5000 nits, and Im_100 nits, and let the display figure out from this information what final processing to apply if the peak luminance of the display goes above or below 2000 nits. It would be beneficial if the grader could at least specify how to re-grade to one other reference situation, and more specifically to one LDR grading, since converting between various HDR gradings can be very different, both artistically and technically, from grading between HDR and LDR gradings. There, the grader can specify as many color mapping scenarios as desired with corresponding functions for the peak luminance of various displays, but typically, for effort and budget considerations, the grader will specify only a few key transformations of importance for each end of the range of display peak luminance that the coded video must meet, and let the receiver perform the final optimization of the required grading for a particular display (however, the coding techniques described herein make it possible to specify at least the minimum amount of required color mapping function information).

[0021] Advantageous is an embodiment of the encoder, in which the other grading unit is configured to specify that the at least one other color mapping function is a color mapping function for obtaining a 100 nits video from the encoded high dynamic range video (Im_2000).Typically, it is beneficial if the decoder can generate a legacy HDR stream as well, since a user still has some old devices (e.g., a user may want to share a video on his / her mobile phone some time during walking through the house to the car), which means that the encoder must enable the grader to specify how such an LDR grading should look, in particular how the LDR grading should relate to the HDR look, i.e. how the LDR grading should be derived from the 2000 nits received image by color processing at least varying different object luminances. Also, the color mapping, i.e., its functions and parameters, for one reference display of significantly lower peak luminance (typically a legacy 100 nits LDR display) to adjust for other gradings for displays of other peak luminance contains very useful information for a receiver to determine how to modify such functions to perform its own optimized color mapping for any required display peak luminance grading, but any receiver may wish to recalculate such mapping functions.

[0022] Also useful is an embodiment of the encoder 301 having a limit specification unit 389 configured to enable a content creator to specify at least one limit (LH_100, LL_100) of display peak luminance that identifies displays within a peak luminance range for which any video derived from said encoded high dynamic range video (Im_2000) or other video by applying the color mapping (F_2d2) is of sufficient visual quality according to the content creator. This configuration allows to specify for which range of displays the functional remapping definition is most suitable / optimal, an exemplary exact implementation is described below.

[0023] Also advantageous is a method of encoding an input high dynamic range video having a set of images (Im_5000) having pixel colors with luminance less than or equal to a first maximum luminance (L_MAX_M) as an encoded high dynamic range video (Im_2000), wherein the luminance of any pixel in said encoded high dynamic range video (Im_2000) is less than or equal to a second maximum luminance (L_MAX_C) that is at least 900 nits, said first maximum luminance (L_MAX_M) being at least twice as large as said second maximum luminance (L_MAX_C); - specifying a color mapping having at least one tone mapping function (F_2Tu) for color mapping the encoded high dynamic range video (Im_2000) of a second lower maximum luminance (L_MAX_C) to a high dynamic range video reproduction (Im_5000*) of the high dynamic range video (Im_5000); - writing said at least one tone mapping function (F_2Tu, 601) as pixel color data and metadata of said encoded high dynamic range video (Im_2000) into a video signal (S_im); It is a method having the following structure.

[0024] At the receiving end, mirroring the various encoder embodiments, there may be a video decoder 401 for decoding a high dynamic range video having a group of images (Im_5000) with pixels having luminance values ​​up to a first maximum luminance (L_MAX_M), the high dynamic range video being encoded as an encoded high dynamic range video (Im_2000), the luminance of any pixel in the encoded high dynamic range video (Im_2000) being less than or equal to a second maximum luminance (L_MAX_C) that is at least 900 nits, the first maximum luminance (L_MAX_M) being at least twice the second maximum luminance (L_MAX_C), the decoder comprising: - a video decompressor 403 configured to read compressed image data from a video signal (S_im) and to decompress said data to obtain said encoded high dynamic range video (Im_2000); - a metadata reading unit 477 configured to extract at least one color mapping specification (F_2Tu) from said video signal (S_im); - a color processing unit 410 configured to apply the color mapping specification to the encoded high dynamic range video (Im_2000) to obtain a reproduced high dynamic range video (Im_5000*) having a third maximum luminance that is at least twice as high as the second maximum luminance (L_MAX_C); has.

[0025] Thus, this video decoder can approximately reconstruct the original Im_5000, which was of a smaller luminance range (Im_2000) in the color grader's computer (even if it received a very differently graded image or group of images). Different applications in the field can be more or less ambitious about the ratio of the maximum luminance of the master grading to that of the encoding, but typically it can be said that the master grading must have a maximum value that is at least twice that of the encoding (L_MAX_C), although it can also be 10 times larger or even more (typically the mapping functions and / or parameters between the two HDR gradings can be somewhat different, but the same technical framework remains applicable). Typically, which L_MAX_C the grader uses is selectable at the sender, and the grader indeed creates its own master grading in such a way that it can be faithfully encoded into the coded high dynamic range video (or conversely, after creating its own master grading at a particular maximum value, the grader can choose from a set of codecs to inform the receiver which one can process such a master grading with sufficient accuracy). Once selected, the encoder encodes everything into the metadata, so any receiver knows exactly what pixel colors it is getting, and in particular what color mapping to use to reconstruct the Im_5000* image from the received Im_2000 image.

[0026] Advantageously, the video decoder 401 for decoding a high dynamic range video of a group of images, where the third maximum luminance is equal to the first maximum luminance (L_MAX_M). This is an accurate luminance reproduction, not e.g. a 6000 nit one. Of course, the decoder can also regrade to a peak luminance grading other than the master grading, e.g. an intermediate 3000 nit grading. The grader can do this by applying the group of color mapping functions exactly as received, or derive a final set of color mapping functions from at least some of all the received color mapping functions (e.g. when regrading between two HDR gradings, the receiver should check how the grader specified that it should regrade between the two HDR gradings it selected).

[0027] Also useful is a video decoder for decoding a high dynamic range video of a group of images having a logical processor 405 configured to determine which at least one display 452 having which peak luminance is connected and to which video needs to be supplied, and based on the peak luminance of the at least one display 452, determine what color processing (F_2Tu, F_d2d) should be applied to the encoded high dynamic range video (Im_2000) to obtain an output image (Im_x00, Im_5000*) for transmission to the display.

[0028] This logical processor allows the receiver to optimize the driving image to meet the requirements of a very wide range of potentially connected displays. The processor always starts from the object pixel color texture information defined in Im_2000 and reads and determines the appropriate function to apply.

[0029] The embodiment of the video decoder 401 can be connected to a wired video transmission connector 432 or a wireless video transmission connector 433 and has a transmission formatter 415 configured to format at least the output image (Im_x00, Im_5000*) according to what is required for a video transmission protocol available for video transmission via the wired video transmission connector 432 or the wireless video transmission connector 433. Thus, if for example the Wi-Fi standard requires HDR image transmission in a specific manner (e.g. with another maximum brightness of the reference range / gamut such as 1500 nits), the formatter can re-encode according to the format. What is important is that the original image information (Im_5000) and the artistic color scene that the creator had, i.e. what was encoded in Im_2000 and how it was processed, i.e. at least F_2Tu, can be determined at the receiving side and then optimally transformed to what is required for the specific local rendering situation.

[0030] An embodiment of the video decoder 401 may be characterized in that the logic processor is further adapted to read from the video signal (S_im) at least one limit of display peak luminance (LH_100, LL_100) and to determine which color processing (F_2Tu, F_d2d) should be applied based on the at least one limit of display peak luminance (LH_100, LL_100). In this way, the decoder can immediately check whether the display to which it has to supply an image falls within a certain range that it can serve by creating a regraded image, for example, by applying a third set of color mapping functions co-supplied with the video signal S_im (note that a person skilled in the art will understand that any mechanism can be considered equivalent to such a co-supply, if the receiver has all the information in time), or whether it has to calculate its own optimal color mapping function to derive the required regraded image to be transmitted to the display, for example by calculating it from the received Im_2000 image.

[0031] Also advantageous is a method of video decoding a high dynamic range video of a group of images with pixels having a luminance decodable up to a first maximum luminance (L_MAX_M), said high dynamic range video being encoded as an encoded high dynamic range video (Im_2000), wherein a luminance of any pixel in said encoded high dynamic range video (Im_2000) is less than or equal to a second maximum luminance (L_MAX_C) that is at least 900 nits, said first maximum luminance (L_MAX_M) being at least twice as large as said second maximum luminance (L_MAX_C); - reading and decompressing said encoded high dynamic range video (Im_2000) from a video signal (S_im); - extracting at least one color mapping specification (F_2Tu) from said video signal (S_im); - applying the color mapping specification to the encoded high dynamic range video (Im_2000) to obtain a reconstructed high dynamic range video (Im_5000*) having a third maximum luminance that is at least twice as high as the second maximum luminance (L_MAX_C); It is a method having the following structure.

[0032] These and other aspects of the method and apparatus according to the invention will become apparent from and will be elucidated with reference to the following implementations and embodiments and the accompanying drawings, which serve only as specific, non-limiting illustrations illustrating the more general concepts. [Brief description of the drawings]

[0033] [Figure 1] FIG. 1 shows diagrammatically how a grader can convert any HDR scene into a high-quality master encoding with a large luminance reference range, for example from 0 nits to 5000 nits. [Diagram 2] FIG. 2 shows diagrammatically how the master grading specified on the reference luminance range GRAD_MSTR can be redefined into an HDR coding to be transmitted to the receiver that has a significantly smaller maximum luminance (yet still captures all or most of the HDR aspects of the imaged scene), the maximum luminance M_COD_REF of said code being typically less than 80% of the original range (5000), e.g. 2000 nits, and sometimes at least twice as small. [Diagram 3] FIG. 3 shows a schematic diagram of a possible creator-side encoding technique with an encoder implementation according to the novel teachings described below that allows the grader to specify what the creator needs, for example a 2000-nit grading and a 5000-nit grading that is technically encoded in a parameter function manner together with the grading, along with a color processing function to reproduce a 5000-nit grading from a communicated 2000-nit grading. [Figure 4]FIG. 4 illustrates generally a possible receiver-side decoding and HDR image usage system that enables optimally graded video to be used for each connected display based on at least the display's peak luminance and other factors such as viewing environment, viewer preferences, etc. [Diagram 5] FIG. 5 shows a schematic diagram of possible color remapping according to the present color mapping specification (F_d2d) for two displays with peak luminance lower than the maximum luminance of the encoded and received image (Im_2000) serving in this example as the starting image, to which the above color mapping is applied to arrive at appropriately graded display driving images of the video image set for each display (with peak luminance PB of 400 or 100 nits), as well as an exemplary processing by relative brightening of some selected colors from the scene image of a scene such as a church interior or a dark basement, in which FIG. 5a shows a typical mapping to HDR for objects where both luminance and saturation are important, and FIG. 5b shows a possible method for processing outlying colors. [Figure 6] FIG. 6 shows diagrammatically possible color remapping to arrive at a video graded with a maximum brightness of 5000 nits from a 2000 nits grading (encoded into the video signal S_im), i.e., one that is substantially equivalent in appearance to the maximum of the master grading at the creator's site and time. [Figure 7] FIG. 7 shows generally another example of color remapping to go from a 2000 nits reference video to a 5000 nits reference video, for example to feed a display with a peak brightness of about 5000 nits or to store the higher quality video for later use. [Figure 8]FIG. 8 illustrates generally how the techniques described below can be used to encode an HDR image of any original quality (i.e., any maximum luminance of GRAD_MSTR, e.g., 5000 nits or 15000 nits) to be used on a display of any peak luminance or dynamic range capability, by being encoded for transmission by an HDR codec of significantly reduced dynamic range capability (i.e., a maximum luminance L_MAX_C, e.g., 2000 nits or 1200 nits, but of course with a maximum luminance high enough that the encoded image is still HDR coded, i.e., exceeds the peak luminance of the relevant reference display of at least 900 nits). [Figure 9] FIG. 9 shows diagrammatically how both a higher peak brightness HDR grading and an LDR grading can be derived from a received 2000 nit grading, and how the two can be technically of fundamentally different nature. [Figure 10] Figure 10 shows a schematic representation of a typical luma histogram for a HDR image. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0034] FIG. 1 shows an example of a typical HDR imaging scenario for an internally illuminated toy store at night. The example includes toys that are highly illuminated (compared to the dark exterior at night), which of course have a significantly lower peak luminance than the lamp itself as well as any reflective object, but can still have a relatively high luminance. And children's toys are also usually very colorful. And in contrast to the lamp 101, which can be easily rendered in a clipped state without the viewer having quality problems (although some of the structure between the lamp, the luminaire 102, and the area around the lamp 104 should ideally be faithfully encoded and preferably rendered at different gray values ​​if possible), clipping of the relevant information of the toy 106 can lead to a poorly rendered image. Before addressing the issue of code assignment, i.e. which luma value Y' should correspond to which camera captured or to-be-rendered luminance Y (assuming that these are rendered directly rather than further optimized for display), it is first necessary to address the issue of which luminances need to be captured in any such encoding, which can technically be done by specifying a reference luminance range. This reference luminance range will have a high enough maximum encodable luminance to realistically render all required object luminances for all HDR images, not just this example image. Let us assume that the general lighting in the store is, for example, 200 lux. A toy on the ceiling that is 10 times closer to the TL lamp will receive 100 times more illumination, i.e., 20,000 lux. Thus, the luminance of white as a reflective object color will be about 0.8*20,000 / pi=5000 nits. This will result in the luminance of such relatively brightly lit objects being close to the luminance of the lamp if the maximum value is 5000 nits, or at least the color of the bright object may be in the upper region of the gamut of possible colors defined, for example, by the reference luminance range of 5000 nits or the reference luminance range of 2000 nits (COD_REF).Of course, on the one hand, the colors for an optimal rendering do not have to be graded exactly with the values ​​in the real scene (because even if the average luminance of any particular viewing environment of the rendering were exactly the same as the average luminance of the imaged scene, this would still be a rendering that is somewhat approximate in nature), and on the other hand, as will be shown later, there may be mathematical techniques for encoding some luminances with other luminances, or more precisely luma codes that are presumed to encode other luminances. However, the calculations give an immediate perspective on the technical constraints that are desirable for an HDR coding system. Highly saturated colors, which for example in the case of a red toy, result in a luminance of about 30% of this, may be in the red corner in the top luminance region of the smaller gamut (however, they are mapped, whether strongly or gently clipped). This gives the characteristics of the desired HDR (native or derived) encoding of a scene, but still does not specify anything about any lower dynamic range appearance image for the same scene, which may be very different depending on its technical limitations, i.e. the very nature of the peak luminance of the intended medium dynamic range (MDR) rendering display.

[0035] The first problem in any HDR image coding chain is how to map the real scene luminance to the luminance of this reference luminance range GRAD_MSTR, which for simplicity we will assume is typically what the content creator wants to work with, i.e., to perform his final color grading that produces the desired artistic look. Ideally, a high quality display capable of rendering at least the luminances that need to be faithfully rendered (a grader wants to check his high quality master grading on a high quality reference display, and whatever the final display, his content will be shown to various viewers, so ideally some rendering will occur on a HDR display with a very high peak luminance and the content should still look good), i.e., one with a peak luminance of at least 5000 nits, should render the luminances of the reference range, and for simplicity we can assume that if the real viewing environment is identical to the defined reference viewing environment, this reference display will render the reference luminances from GRAD_MSTR exactly one-to-one. That is, if the specified luminance is, for example, 3200 nits, the reference display will render 3200 nits.

[0036] After fixing a reasonable reference luminance range GRAD_MSTR, once an appropriate reference range GRAD_MSTR has been selected, what must be determined is how to map scene references to the reference range. If one wants all the details in a very bright 20,000 nit TL tube to be accurately represented / coded, it is certainly not necessary for practical video coding to have an accurate encoding of a billion nits of the sun's surface. This first step is primarily a scene-dependent artistic optimization, where such high luminances are "distorted", i.e., such luminances are represented as reasonable substitutes on GRAD_MSTR. For example, the master grader can select and grade, for example, which extremely bright objects clip in its master HDR grading, so that the sun can be represented as white or a single high-luminance yellow (e.g., maximum yellow (R=G=100%, B=0%)) for any subsequent steps. Keeping in mind all the relevant factors in HDR images and especially video coding, a typical reference range GRAD_MSTR is for example 20000 nits, 10000 nits or 5000 nits, and in the remaining description of the embodiment, we assume that GRAD_MSTR covers luminance [0,5000], which is a good pragmatic choice in the technical sense. The value zero can indeed be a very small luminance, which may vary depending on the normalized code assignment function to be used, but for practical purposes it will be as small as possible to be equal to zero.

[0037] The second problem is how to map the captured scene luminance. This problem is not necessarily the same as how to render luminance on any display, since there may still be some rendering color transformations that operate on the reference luminance (and indeed the color, however, for simplicity of explanation, we will generally assume that the hue and saturation of the color stays the same throughout the imaging pipeline, and only the luminance of the color changes) to obtain the most suitable rendering for a particular display and typically also for some viewing environment. However, these are somewhat linked, and if we relate the reference range to some near- and mid-future display, we provide the display characteristics to the reference range itself. Since displays will typically not have peak luminances much above 20,000 nits, or even perhaps above 2,000 nits, for many years to come, and perhaps forever, it makes more sense to encode any scene luminance in terms of what can be rendered on the display, rather than in terms of encoding the exact scene. That is, the scene luminance can be "distorted". What helps with this are two factors: 1) the fact and insight that different representations can be derived from any encoding, as long as enough distinguishable information about the peak texture is coded (i.e., in the worst case, one can capture the texture of, say, a red quilt and recolor it pixel-by-pixel in software to a green quilt, and the same can be done for gray values ​​or luminance, but in that case, none of the different luminance or color values ​​that determine the pattern should be grouped into a single value); and 2) human vision is adaptive, and the brain can compensate for odd colors with imagination, especially when the viewer is not in the field and does not know the actual colors. The task of any HDR technique, and especially the encoding system, is to be able to create images that are more believable than those that are photometrically correct.

[0038] Thus, in general, a grader can map an HDR scene, such as a toy store or a sunlit view from inside a dark room, relatively faithfully according to his preferences onto a sufficiently large reference range GRAD_MSTR, even up to 5000 nits. The initial master grading has its own descriptive and artistic rules, but should not be confused with what happens in technical components further downstream in the image processing pipeline. In particular, it is not trivial how to map such an environment onto a smaller range, such as COD_REF, up to 2000 nits. However, for various reasons, there may be various techniques in the pipeline that use such a small range as their HDR reference range (typically from that point onwards or at least in parts of the pipeline).

[0039] The present application describes several embodiments for starting with a larger, better reference range GRAD_MSTR and typically the best quality image graded on that reference range, and proceeding to such an intermediate representation with a smaller reference range COD_REF.

[0040] FIG. 1 shows, by way of example, in detail how a grader would typically want to represent (assign) its scene luminance to the various available subranges of GRAD_MSTR. The TL tube or other lamp 101 itself would be what the grader would want to map to a maximum value L_max_M or very close to it (e.g. L1=4995). The luminaire 102 itself, typically a reflective metal, would contain some interesting patterns that would be at least hinted at by some distinguishing values ​​to render the luminaire more realistically than just a "white hole" (i.e., to code the luminaire within the very bright light range R_BL). These would probably be very desaturated, close to neutral if not achromatic, so that their pixel colors could fall within the typically narrow tent top of the RGB-codeable gamut. Below the very bright light range R_BL would be the range R_BO of bright objects, such as the toy 106, very close to the lamp. Such pixels of bright objects (in this example, the toy, but also e.g. the painted walls of a house or grass in the sun outdoors) are often (strongly) colored, so it is necessary to assign a range of the RGB gamut tent where bright colored colors can be represented, even if their coded values ​​can be at least somewhat desaturated compared to the original scene colors. Since correlations with real scenes exist, it may be sufficient to make them reasonably bright and reasonably colored. In FIG. 1A, we show a three-dimensional (or more precisely, a two-dimensional red-cyan-luminance cut from the three-dimensional) subset selection in the codable color gamut rather than a less explanatory 1D luminance view (note that in a practical implementation of the method, we may also use luminance correlations, e.g. Value=max(R,G,B), or perform some color processing to determine the selection). As can be seen, bright lamps, unless they are really colored (e.g. red TL tubes), can often be represented by very bright values ​​with reduced saturation, which the viewer tolerates. However, such pastelization should not be done on, for example, grass in the sun.Because this is precisely a kind of error that occurs in LDR coding. If chromatic colors are required, they can be graded into the bright reasonably chromatic subrange R_BO. For displays that can render higher saturation (e.g. multi-primary displays with dedicated primaries), the saturation can always be doubled without excessive image artifacts, even if the colors are coded at half the original saturation.

[0041] Having defined a good HDR reference display, say 5000 nits, we need to define the question of how to encode scene colors, or more specifically the luminance of such colors. Classical LDR imaging did not have extra consideration on this aspect. Whatever the scene illumination, the camera's auto exposure simply associated any bright color in the imaged scene to code white (actually, it maps it to mid-gray via some average color calculation). Now, reflecting on this with hindsight from HDR research, this is a very specific way of looking at the scene, which always works mathematically, but technically and artistically, it is best suited for well-lit environments without excessive contrast ratios, e.g., uniformly lit 1% to 100% reflective objects, recording even the darkest object colors that still happen to be faithfully represented in the sensor or encoding math above noise (the usual number given for any rendered luminance that an LDR image must accommodate is a pixel luminance of 0.1 nits to 100 nits). Some or many colors may be clipped, and the whitest faithfully coded white may be 20,000 nits for a sunny scene, and 50 nits for a long-exposed night scene. Also, the rendering side of the LDR image processing scheme is indifferent whether a theoretically optimal grading for 100 nits is actually viewed by a particular viewer on a 200 nit, 400 nit or 50 nit display, or whether the grading is viewed in a darkened room or on a train platform. For most images and for the usual non-demanding viewer, such a difference of perhaps 2-3 stops is not so significant, but at a certain point, for highly demanding HDR images and / or displays that differ from 100 nits by many stops in peak luminance, the difference becomes objectionable. It should be clear that the similarity of the final rendered look and the look intended by the creating artist can only be guaranteed if the viewing conditions do not differ too much from the theoretical reference conditions, even if they were clearly defined at the time of the LDR encoding in the first place.

[0042] However, in future oriented HDR image or video coding technologies, where images (whatever the complexity of the content) must be correctly interpretable to render reasonably in a variety of different rendering conditions in the field (display + environment), careful consideration must be given to not only the reference range and gamut but also how said range and gamut are used / filled by the scene colors being captured and represented.

[0043] Preferably, the assignment is not made completely relative as in LDR (i.e., whatever the scene in the LDR image, the white of the code is always mapped to the white of the display, whatever peak luminance the display has, and if it needs to render, for example, a dark scene, it takes advantage of the codes that encode a luminance lower than the peak luminance). Even for HDR coding systems there is some relativity in the final rendering, because the eye / brain is a relative color detector, and the rendering conditions can vary widely, but this variability can be handled at the receiving end, starting from a more mathematically accurate specification of intermediate colors in some color representation (which itself is no longer linked to one particular display technology, as NTSC and MPEG2 were linked to CRTs with gamma 2.2 and EBU primaries, which were the only displays on the market at one time).

[0044] However, the requirement of an exact one-to-one mapping of scene luminance to a reference luminance within a reference range of, for example, 5000 nits, on the one hand, and of said reference luminance to the luminance rendered on the display, on the other hand, is also a constraint for practical, easy and universal use.

[0045] Thus, one would typically like to have a reference range GRAD_MSTR that is constructed and filled such that most of the luminances are mapped approximately one-to-one, meaning that a particular scene luminance will ultimately match the luminance to be rendered on all types of receiving displays (thus it is not necessary that for some scenes, e.g. bright daylight or night scenes, the rendered luminance is equal to the scene luminance, since there may be some dimming factor between the luminance that can be physically observed in the scene and that on the display, which may also be somewhat display-dependent and can be determined initially for a typical display classification). This approximate identity of pixel luminances that are rendered darker on various displays typically applies to lower luminances in the scene that may be rendered on many (if not all) displays. However, at the bright end of the possible scene luminances, a more liberal assignment of scene luminances to reference luminances can be used, since at the upper end the luminance could theoretically be anything (possibly up to the luminance corresponding to the imaging laser beam illuminating the sensor, for example). This is because, for example, 50,000 nits (if it is already renderable on a sufficient amount of displays on the market in the first place) is too bright to be comfortable for a viewer (especially in dark viewing environments) and therefore needs to be converted to a luminance value that is more suitable to be rendered anyway (whatever the pixel luminance of the display to be rendered). According to the applicant, 10000 nits is also a good usable value, but 5000 nits would be a reasonable value for the upper end of the reference range.

[0046] In this case, some darker and less strongly lit toys / objects 108 can be assigned some luminance in the normal range R_N that can be rendered reasonably faithfully even on an LDR display, and the further away the objects 110 are from the lamps, i.e. the darker their pixel luminance is linearly measurable from the scene, the lower they are assigned to the reference range (here we assume a linear assignment method with L_ref=k*L_scene on GRAD_MSTR, k being equal to 1 or a scale factor (by the color grader) optimally chosen for some circumstances, e.g. 0.5, typically not too small to keep all pixel colors and especially the lower ones bright enough). Outside the toy store, i.e. on a street at night lit by a few lamps, there are very dark objects, which are mapped to a dark subrange R_D of the reference range. There, some non-linear code assignment can typically be used to make these objects somewhat brighter, but if there are enough codes for luminance (e.g. 10 bits), the linear assignment can continue with k having a selected value. In this case, such values ​​for, for example, the barely illuminated door 112 are coded with a sufficiently unique code that they are at least not clipped, even though these dark colors (can) be rendered harsh, i.e., relatively bright black, on a low-contrast LDR display. The same applies to the pixels of the dark gutter, but the pixels of the sewer 114 seen through the sewer grate will be dark and uninteresting enough that the grader can all map them to the lowest codeable value (e.g., luma 1 or 0), the code (minimum) black, and its corresponding luminance (if they were captured clearly and noiselessly enough by the camera in the first place).

[0047] While this mapping to the 5000 nit range may be reasonably straightforward to implement, and one could assume that a grader would perform such a mapping, directly mapping these values ​​to the smaller [0,2000] nit range may pose problems to the grader for at least some demanding scenes, i.e., these problems should not all be solved purely by the grader's artistic skill in selecting appropriate reference luminances for different scene objects, but rather the grader should have technical solutions to assist him or her. For example, if the lights and bright parts of the store are dimmed to map to the 1500-2000 subrange of COD_REF, what will happen to the dark parts due to this dimming? If the dimming uses a simple non-linear code (re)assignment, will these darker colors be too dark, at least in the case of simple direct use, for example by a renderer that displays the codes at a fixed EOTF? In particular, there is a conflict between aspects such as how many codes should be reserved for each object texture that could possibly be present (or is present in the real scene) along the luminance range on the one hand, and aspects such as the plausible appearance (appearance) of the image, i.e., plausible luminance values ​​for each object on at least one reference luminance range corresponding to one typical rendering scenario (which later requires only a second-order color transformation with little impact on the colorimetric appearance to adjust to a specific rendering scenario on a specific display). Some trade-offs can be assumed on the fly, but to get things done well, a guiding framework is always desirable.

[0048] In Figure 2 one can see an illustration of how to deal with the general problem of recoding pixel luminances (and in this regard luma, which is the word used for the actual code, e.g. a 10-bit word) along a master reference luminance range GRAD_MSTR into a significantly smaller (typically at least 1 / 2, which can also be written as 1 stop less) coded reference luminance range COD_REF, which is the technical coding actually used for example for the grader's master grading to [0,5000] nits and for storage on a memory, e.g. Blu-ray, or for transmission via network technologies by a video transmission coding technology with a standardized reference luminance range of e.g. [0,2000] nits.

[0049] The reallocation problem is technically a very different problem from the initial master grading of scene luminances into a rationally graded image defined on a master luminance range [0,5000], but of course there is some connection to the original reference representation (in GRAD_MSTR) and ultimately the original scene and objects contained in it with their colorimetric properties or a sufficiently faithful display rendering.

[0050] This involves two aspects: on the one hand, if we consider that both ranges have infinite coding precision (in which case, for simplicity, we can write the luminances along both ranges as real numbers in the renormalized [0,1] range of the normalized luminance, so that of course a luminance renormalized from a definition in [0,5000] will not have the same value for the same object as the corresponding luminance because it was defined in [0,2000]), then in principle, according to the present teachings, we can use a non-linear mapping function to map the luminances, and of course, some mappings are more preferable than others depending on the situation. For example, as a concept, we can use a linear stretch in principle, although it would probably not be optimal for various reasons. On the other hand, in this reassignment of luminance, we can deal with the coding precision problem that would have to arise if the luminance of COD_REF had to be represented by real (e.g. 10-bit) lumas. The amount of bits available to define a pixel luma depends on how the particular selected code assignment function allocates subranges and the amount of codes in the subranges to various objects along the luminance range, which always determines the precision of the coding of objects (e.g., those that are not brighter than 10% of peak luminance) and, in particular, whether there are enough codes for faithful rendering (e.g., a blue that smoothly varies grading between 20% and 30% of peak luminance, versus a complex textured part of a toy store in the background that may not require the highest coding and luminance / color reproduction precision).

[0051] In fact, since 10-bit luma can only encode 1024 different luminance ( / gray values) (ignoring the chrominance components for the moment), if we have a very high dynamic range scene that requires the highest accuracy everywhere (light color subrange, mid-upper gray, mid-lower gray, dark and very dark), we may need more than 1024 different values ​​to faithfully encode all image structures. This is what makes HDR image coding different from simple LDR imaging methods. In such a situation, it can be said that there is no possible solution that can faithfully encode the scene either in the 5000 nits or 2000 nits range. However, for all practical images, the amount of codes required for sufficient quality encoding can be relaxed. Perhaps spatially textured areas require fewer codes, leaving more codes for smooth gradients. In the worst case, one might even consider tolerating some banding from time to time and still be able to render all nice HDR effects at least on the HDR display (by having a master range and grading on that range the grader can have a good initial view of the quality of various subsequent receiving rendering scenarios).

[0052] At this point, we may need to take a pause to contemplate a new concept specifically for HDR encoding: there are two competing but interrelated concerns, specifically when one wants to use the 2000 nits remapping both as an image for rendering substantially directly (i.e. starting from a graded look with a 2000 nits coding, where the original look is still somehow imbued, although there may be some further remapping to get the optimal look for the final display, e.g. a 2800 nits display or a 1500 nits display; this is a two-step approach: image and look creation for the final image rendering, and all the further considerations and processing that may occur in that part of the HDR image processing chain), and at the same time as an ultimate (i.e. device-independent and use-independent for any future use) complete encoding of everything that was in the original HDR scene, i.e. as a sufficiently faithful representation of the colorimetric properties of all objects in the original scene, or at least a sufficient HDR quality representation of the scene. The former consideration is something that an artistic grader is typically concerned with, while the latter requirement is partly or primarily a technical issue.

[0053] Take as an example a linear compression of 5000 nits to 2000 nits and a 1:1 rendering of the 2000 nit range on an actual display (such as a monitor or TV or projector) with, say, a 2000 nit peak luminance or a 0-2000 nit sub-range of, say, a 5000 nit display (which may be different from a (re)stretching of a redefined scene luminance of 0-2000 nits to the full range of a display with a 5000 nit peak luminance).

[0054] Assuming that the hardware can be optimized taking into account the psychophysics of human vision well with respect to the available display, there may be some HDR rendering quality issues due to this inappropriate "accidentally chosen" mapping. For example, the HDR effect in bright areas may be suboptimal. That is, since an actual 5000 nits graded image is not available, one may want to perform some color processing operations to make the bright areas look psychovisually more HDR-like even on a 2000 nits display. However, what if a 5000 nits display is available? Would simply stretching these luminances (automatically in image processing software or hardware) (which can be done without any intelligent guidance regarding the mapping) be the best thing to do to render these luminances optimally on a 5000 nits display? Most likely not, at least for more demanding HDR scenes.

[0055] On the other hand, the grader may find some objects in the lower subrange of the directly rendered 2000 nit range to be too dark or of low contrast, and if the grader tries to adjust for this by, for example, brightening that subrange, the grader may even make the bright HDR range worse, for example by gently compressing it in the regrading / remapping.

[0056] On the other hand, if one defines an optimal code allocation function or EOTF for the 2000-nit range in a fixed way, for example in a specific video standard defined for a scenario (which may typically start from the assumption that certain luminance steps are still visible or not, resulting in some log-gamma-like function or similar as the optimal function, unevenly distributed over the 2000-nit range), one must also take care of the question of how many luma codes are available for each subrange, e.g. 1 / 10 of the range between Lc3 and L_max_C. If somehow too few codes are available, HDR scenes will not be optimally represented, because the subrange for scenes with significant very bright content that can be nicely rendered on a 10000-nit display, for example, cannot be encoded sufficiently in the 2000-nit coding. This may not be as visible an issue when rendering the 2000 nit grading 1:1 on a 2000 nit display, but will show up when mapping to, say, a 20,000 nit display.

[0057] Therefore, some mechanism is needed to handle this balance carefully, and the basic concept introduced in our technology to encode HDR scene images and to be able to properly serve not only a single reference display (e.g., 5000 nits) but all future displays on the market (through adjustable and redefinable appearance in scene coding) is very well suited to this problem, as shown below. To ensure that the reader understands the main points, two new nomenclatures can be used. On the one hand, there may be a final grading that can be determined automatically, typically by an optimization unit in the receiver, which adjusts to the specific display no matter what coded representation is received. The grading to be rendered on, for example, a 1250 nits display between two standard gradings at the ends of the display adjustment continuum, such as a 100 nits grading for a legacy LDR display with a peak luminance around 100 nits and a high-end HDR display with, for example, 5000 nits, is called a medium dynamic range (MDR) grading. In the following teachings, we also refer to intermediate encodings, i.e. encodings having an associated reference display of, for example, 1000 nits (also between the range ends 100 and 5000), which we call intermediate dynamic range (IDR). If for some reason a particular technique dictates that any dynamic range image of a scene (i.e. any original scene and how it is to be rendered) be encoded into an IDR encoding with, for example, a reference display peak luminance of 1000 nits, it should be understood that this can still be rendered, i.e., may need to be adjusted by further color conversion to various MDR gradings, for example for an actually connected 850 nit display or alternatively or in addition to a 1550 nit display, etc.

[0058] A first embodiment is described with reference to FIG. 3, which shows an encoder 301. The encoder 301 allows the grader to freely perform artistic grading of the 2000 nits without having to worry too much about what is happening and what has to happen technically since the encoder may need to use the 2000 nits image as a representative image of all looks. That is, the grader can focus on the look of the 2000 nits images, so that they will look optimal (e.g., bright enough that a person hiding in the dark is neither clearly visible nor invisible, enough local contrast that a person half hidden in fog looks dim, or bins look shiny, etc.) when applied directly to a display with a peak brightness of about 2000 nits. For example, assume there is an original RAW HDR video (e.g., originating from an HDR camera and with a linear color representation) coming from the storage memory 300 and inputting into the grading device 303. The skilled reader will of course appreciate that there may be different practical implementations of the invention or embodiments, such as having an encoder built directly into the camera.

[0059] The grader performs an initial grading, which in many embodiments is a master grading using an initial grading unit 310 and a user input controller 311 (which may be, for example, a grading console). The initial grading unit 310 may be a processor running grading software, such as Da Vinci's, which may, for example, perform global tone and color mapping functions, select moving dull local areas in the image scene and specify processing for these, etc. As an example, it may be assumed that the RAW video is a logarithmic video with poor inter-object and intra-object contrast, such as from an ARRI camera. The grader creates his master grading image (or images), Im_5000, in which he, among other things, specifies all object and pixel colors with appropriate luminance in the corresponding GRAD_MSTR reference range of 5000 nits. This would be a nice rendition of HDR video (which could then be video compressed, inter alia, by DCT encoding, etc.) only if some video transmission standard defines how to encode the 5000 nits reference video according to its own standard (transmission standard means, inter alia, both transmission via memory carriers, e.g. optical standards like video on BD, and transmission via networked standards like airline broadcast via DVB, or via device-to-device communication systems like internet feed or HDMI (registered trademark) cable communication).

[0060] However, the standard may want more freedom and specify, for example, that it only allows coded video defined with a peak luminance of 2000 nits. In that case, the grader cannot directly use his 5000 nit reference intra-coding but may need to re-encode, which may involve significant re-mapping (because in principle one could use any redefinition and encoded 5000 nit look within the 2000 nit appearance, not necessarily in the case that the colorimetric look of the 2000 nit grading must be optimal when rendered on a 2000 nit display). A possible scenario is that the grader focuses most of his time on creating the desired look of the 2000 nit grading, and a secondary task is focused on how the 5000 nit grading can be created from this. The reverse is also possible (basically, technically in both scenarios there is a low dynamic range HDR image that is transmitted and a function for this to be re-graded by the receiver to a high dynamic range HDR image), and the following discussion will describe this second scenario, i.e., a scenario in which the grader focuses most of his or her time on creating the desired 5000 nits HDR grade, and then secondarily (which he or she only has to tolerate or correct in order to save expensive grading time, and which can also be done partially automatically) define a good 2000 nits look (and typically a 100 nits LDR look as well, which can be defined from the 5000 nits look and converted to a redefinition from the 2000 nits look, but we will explain an example where the LDR look is not only defined but also created by grading starting from a 2000 nits graded image).

[0061] The grader performs a remapping of a large gamut HDR image (e.g., 5000 nits) to a small gamut HDR image (e.g., 2000 or 1200 nits) by a regrading unit 320. This unit 320 can perform color grading similarly to the initial grading unit 310, but with two fundamental differences: 1) only a limited set of regrading functions can be used (since this is a coding system of HDR appearance, it should form a language understandable by all receivers), and 2) they must be substantially visually reversible (more generally, the color conversion to a 2000 nits image should preserve substantially all high-quality large gamut HDR information, thus allowing it to be optimally used on any HDR rendering system after some display dependency mapping, and only the information that is less interesting from an image semantic point of view can be replaced (e.g., coarsely quantized) with values ​​that are significantly less relevant from a coding point of view). Substantially reversible means that a) some mathematical inverse of the applied function or remapping procedure from 5000 nits HDR to 2000 nits HDR can be calculated, and b) because the square rooted image is quantized, the re-squared image may look a little different from the original image, but should not have an overly significant visual difference (the amount of significance can be determined by the grader and / or an automated image analysis algorithm). For example, in textures, some quantization artifacts can be avoided because spatial patterns are more dominant information in the brain than very precise color values ​​of pixels. This means that mathematically, the function that color maps the received 2000 nits HDR grading to the final quality (e.g., a 5000 nits graded image) should be monotonically increasing with respect to luminance (or some equivalent representation such as luma or the maximum of linear R, G, and B components), otherwise upgrading the tone mapping function may be very complicated for some complex HDR scenes.

[0062] To make it more clear for the reader, a clear distinction is made between two other scenarios that should not be confused with the novel HDR image / video coding technique presented here: Even if an artistic grading is done that represents a nice looking image for a display with a peak luminance around the optimum intended one with a peak luminance of, say, 2000 or, say, 1000 nits, and even though the final appearance to the viewer of this resulting Im_2000 nits grading may be substantially the same as what would be obtained if the grader did not need to take into account any other displays or gradings (i.e., simply artistically create only a 2000 nits grading and do not need to worry about what other gradings may be derived from this image), the described technique needs to take into account further requirements rather than simply needing to address the situation where there is no simple (re)grading that produces a new Im_2000 image from an Im_5000 image. The original Im_5000 image (required for higher quality HDR rendering) that is optimal for getting a good HDR look on a display with a peak luminance significantly brighter than 2000 nits (i.e., with a corresponding display with a peak luminance of about 5000 nits, which could be a reference display 360 that the grader makes available to the content creator to check the actual HDR visual impact of what the grader is doing and that the grader can switch between 5000 nits max and 2000 nits max emulation modes) is not actually going to be stored or transmitted; rather, the encoder only stores or transmits the 2000 nit image of the HDR scene, since the standard specifies that a 2000 nit image be coded. This Im_2000 needs to contain sufficiently accurate information for all object textures to be rendered (i.e., color transformed) on the scene with whatever look they will ultimately have.

[0063] In addition to this Im_2000, the encoder tries to co-store some function F_2Yu that parametrically co-encodes additional information in Im_5000 that encodes the 5000 nit look (mostly what final average color the object should have rather than the exact geometric texture), i.e. how a sunny outdoor scene or lamp (or other high brightness HDR look effect) can be optimally evolved through the luminance axis or gamut color space with respect to different looks corresponding to the peak luminance of different displays, i.e. how it can be optimally rendered when having a brighter display compared to having at best a 2000 nit display or even a 1000 nit display, which is not very bright. This at least a set of additional functions F_2Tu allows re-grading (called display tuning) not only to the 5000 nit look itself, but also to other intermediate looks, e.g. between 2000 and 5000 nits (i.e. for displays to be served with an image that looks optimal with such peak luminance). Thus, we are not just talking about a technique for regrading multiple looks only at the transmitter side, but about a new way to encode a set of looks.

[0064] This technique should be clearly distinguished and not confused with yet another scenario where a 5000 nit display is directly fed with a 2000 nit image Im_2000 for rendering. The 2000 nit image is any HDR image with significant inter-object contrast, and therefore this image can be directly rendered, for example, on a 5000 nit display by using it in a so-called relative coding and rendering framework, i.e., rendering a white that should be 2000 nit as a 5000 nit white (whether this looks more visually appealing or is less desirable, e.g. because it is too bright for a given scene of a hazy landscape). If these were the only images needed at the consumer end, one could even imagine tricks to mimic such a final desired 5000 nit look, but with incorrect colorimetry (i.e. the color code is incorrect, which would indicate if one wanted to render these mimic images directly on a 2000 nit display), making it look like a 2000 nit look. In this scenario, the display at the receiving end only has Im_2000 (however, this was obtained for some selected artistic reasons) and has no information about what the original Im_5000 was. Thus, the receiver must make all kinds of blind assumptions in deriving the "optimal" driving image for, say, a 5000 or 6000 nits display at the receiving end. This does not seem optimal, especially for complex HDR scenes. While this technical imaging chain will optimally satisfy the percentage of users in the market with 2000 nits displays, users who have spent a lot of money on a higher quality 5000 nits display may not always automatically get the best quality for their money and certainly not what the original grader intended (the grader's optimized Im_5000 image). Thus, we need additional technology that can be delivered via some technical means that satisfies the entire potentially served market, i.e., whatever system a particular user has.This works in a scenario where a viewer purchases, for example, an HDRx version of a BD disc that can be read by some device with a BD reader and gets some additional color mapping metadata information on the disc, or alternatively some specific information via, for example, the internet, while the user wants to simultaneously display the video on two different displays, for example a high-end 6000 nit TV in their vacation home or luxury hotel where they are staying, and a 500 nit mobile phone 451 that their son uses at home.

[0065] The coding system must be able to satisfy various possible actual display peak luminances higher than those associated with the actually transmitted image of the reference display, but also lower ones, e.g. 200 nits. Therefore, typically on the content creation side, there is another grading unit 325, which is not the core of the invention, but will be described shortly. The coding scheme can also work with a single (HDR look only) coding, but preferably we want the grader to be able to describe something about the LDR look as well (i.e. how the HDR should be downgraded to be optimal for a display with a smaller luminance dynamic range capability). For this, the grader can specify at least one function F_2T1 (or typically a set of functions acting on both the luminance and chromaticity of a pixel, e.g. global and / or partially local saturation) that can be used to map the Im_2000 look coded into the image transfer technology to e.g. the 100 nits reference LDR.

[0066] The reader should understand that the 2000 nits HDR is still an HDR image, and therefore converting between 2000 and 5000 nits, and 2000 and 100 nits (and LDR appearance on the scene) can be technically and artistically very different. Furthermore, it is relevant whether the peak brightness of the reference range of the image (or images) actually transmitted is, for example, 1000 or 2000, or perhaps 4000. The former is (only) 10 times brighter (i.e., about 3 stops) than the 100 nits LDR, while the latter is already impressively 40 times brighter (this is a significant factor especially for images viewed in dim or dark viewing environments). Depending on the type of HDR scene to be encoded, some extra bright image areas can be allocated to the additionally available apertures for the above 3 additional stops compared to LDR. For 40 times (5 stops, i.e., another 2 additional stops), some amazing HDR effects can be created, such as extremely bright laser swords or explosions. Of course, the sword above could also be rendered at 2000 nits, but it wouldn't look nearly as fantastically bright.

[0067] For various illustrative examples, we assume that the color mapping is done in the relative luminance gamut, i.e., since images are typically quantized, e.g., from 0 to 1023 with 10-bit color component representation, and the maximum code 1023 corresponds to some reference maximum luminance for a particular codec, e.g., an input Im_2000 image and an output Im_100 for a 100 nit reference LDR display can both be specified on a relative gamut or graph with a normalized peak luminance physically codable / achievable to Lmax=1.0, which corresponds to 1023, and so any color mapping can be specified thereon.

[0068] Figure 9 shows an illustrative example of how an upward grading (and the information of said grading transmitted in F_2Tu) can be significantly different from a downward grading, i.e. a grading to a peak luminance lower than 2000 (encoded with at least one or a set of functions F_2T1 for regrading from 2000 to 100 nits for example, but the receiver can additionally be informed of other sets of functions for regrading to, for example, 800 nits, or there may be a mechanism for regrading based only on a set of color transformations that specify how the downward grading should be done in general). Note that there may be difficult or easy HDR scenes, but the system must of course be able to handle all of these in a reasonable manner. A big difference with classical video coding (which mainly deals with technical issues such as images having to be divided into DCT blocks, and apart from some block artifacts, can always be performed no matter what the scene being captured actually looks like, with moving water being perhaps the worst scene), is that this HDR appearance spectrum coding scheme requires that various appearances also look realistic or artistically desirable, which is a complex function of both the type of scene / image and the non-linear behavior of human vision adapted to a particular rendering environment. Thus, one can ask the question: what kind of object rendering can be HDR-effective in the 10xLDR range (i.e., up to 1000 nits) and the 15x range (and therefore also the part between 1000 and 1500 nits), etc. This is partly a relative question, since the visual brain can be highly adapted to the situation and interpretation of the image being viewed. Also, while there certainly is no large physical dynamic range between the canvas or the white paint and the black paint, for example in an old Van Schendel painting, painters can use tricks to mimic the high dynamic range effect that the brain gets from estimating bright light for example. So just take a street on a sunny day with some parts in shadow, some can be strict about how dark or not the shadow should be relative to the sunlit areas, while others can be tolerant of several possible renderings.There may be more disagreement, or even greater differences in optimal rendering, about how exactly the sunny areas should be. Of course, a 1000 nit peak brightness monitor cannot render the sunny street "correctly" if it must be optimally rendered at 2000 nits in the viewer's living room, but the roughly 1000 nit rendering is the best a 1000 nit display can make of the image, which is not a total failure (it's just a somewhat less impactful image that embeds more of a sunny experience in the viewer's mind than the full (from the correct brightness appearance) experience in reality). Figure 9 shows, with a nice example, how the grading for various points along the peak luminance range of the intended display can vary, i.e., with respect to the primary grading guidance scheme. Suppose we have a natural, more graphic image with a few whites (which may look like car headlights for example), street lights and lights through building windows, etc. Note that in HDR, as in real life, there may be several whites, in contrast to LDR. LDR has little room for its own whites and bright display, but in the real world, and in any coding with enough luminance range left beyond the main area of ​​interest diffuse white, there may be whites that are strongly lit from outside, for example by sunlight, or the white surface of a TL tube, etc., all of which may have significantly different average luminances. In a graphical rendering (think for example of the movie Sin City 2), we may even have objects that are artistically (unnaturally) whitened. For example, there may be a person with white glasses. In LDR these can be rendered with a peak brightness of 100 nits or, say, 500 nits without any issues, but if they are rendered in peak brightness white on, say, a 5000 nits display, the person will see lighthouse beams coming out of their eyes, which may be far from the original intent.Therefore, one would want to render these whites in HDR at a much lower luminance than, for example, a car's headlights, yet in LDR there is only gamut room for one and the same white.

[0069] Now suppose we look at Figure 9 from the receiving side. Graph 902 is a grade that can be derived from the transmitted grade 901, although at the sending side it might have been a 6000 nit master grade (whether direct from the camera, perhaps with the camera operator quickly tweaking the look with some adjustment buttons that changed some brightness and contrast values, or highly artistically graded offline). Some real world examples of HDR whites (or bright areas) are, for example, sunlight on an indoor carpet through a window, a brighter sky outdoors, and brighter sunlight on, for example, an outdoor metal roof.

[0070] Thus, the receiver obtains an image defined on a normalized luminance axis corresponding to a peak luminance of 2000 nits. The graph (here showing the transformation or diagonal as identity if the 2000 nits input on the x-axis has to be regraded to itself as output) consists of four parts. The darkest part reaches about 45% (i.e. the luminance to be rendered up to 900 nits, which can simulate, for example, a sunny outdoor rendered in a dim viewing environment) for normal scenes, i.e. reflective objects in a room or a street, etc. Above this range, there are three bright ranges, which for simplicity we assume are white ranges (i.e. they may have several different luminances depending on the object structure, but we assume no color). The lowest of these three are, for example, artistic very white spectacles of a person. The middle ones could be the interior of a pleasantly lit room seen from outside, while the highest ones could be, for example, a street, etc., or the headlight beams of a car, etc.

[0071] The reader can see that the regrading, i.e. what is done by the tone mapping encoded in F_2Tu towards a peak luminance higher than the transmitted Im_2000, is mainly about redistribution of light. Assume that the (lower) object colors should be rendered the same regardless of whether the viewer has a 2000 nit, 6000 nit or even 10000 nit display. That is, on the relative (linear) axis, the lower part of the curve 902 is one third of the curve 901. However, the bright areas in the 5000 nit grading (902) are placed in realistic absolute positions, i.e., all high quality renderings of the imaged scene must be visible. The grader realizes that to give the impression of good additional luminance, the second bright area should ideally be twice as bright on average as the first one (avL_2_6000=2*avL_1_6000). However, in the 2000 nit grading, this is not easily realizable. In this case, not only will some of the second bright area have to be clipped, but more importantly, there is simply no more room to encode the third bright area on the 2000 nits reference luminance axis; that is, they must be placed closer together by technical necessity. However, the grader may choose to do this in such a way that there is still some reasonable difference between avL_2_2000 and avL_1_6000 (i.e., some reasonable impression that this is still a different kind of light). Furthermore, if the receiver receives the correct function, it can recalculate the necessary relative luminance for the 5000 nits grading based on the peak luminance of the received image at 2000 nits. Of course, how something looks artistically optimal to the viewer in particular is a highly scene-dependent issue, and therefore to have a good HDR processing and encoding technique requires a system that can adequately handle all of these details. Note that in the case of downgrading, this is far from simply reversing the arrows of the color processing function.In this example, the grader chooses to spread these luminances across most of the available relative luminance range for a 100 nit grading (curve 903) rather than first boosting the lower part of curve 901 by a factor of 20, and then decides to make all three bright areas peak-luminance white. Thus, in contrast to the back-and-forth upward regrading, this is certainly not necessarily an inverse operation in this example.

[0072] Fig. 5a in Fig. 5 shows some details of a possible LDR mapping that needs to represent the HDR range image of a church with stained glass. The interior of the church is visually (i.e. how it looks) normally bright, but of course quite dark relative to white. This is because a margin is needed in the gamut for the bright stained glass window colors, i.e. the inter-object contrast CR_io between the church interior pixels (CD_HRD2000 or CD_LDR100) and the stained glass pixels (CR_HDR2000 or CR_LDR100) needs to be large (i.e. a large percentage of the luminance range of the codec gamut, so that when rendered the objects also differ sufficiently in average luminance) even in LDR grading (where the contrast is of course at most as large as is physically achievable and still reasonable, which means that the grader's preferred solution may sometimes include clipping or at least desaturation of colors). The gamut diagram, again with a red-cyan cross section to show both chromaticity behavior and lightening along the luminance axis, shows the results of mapping functions for mapping between HDR Im_2000 (as the (best encoded) starting image), a second intermediate representation MDR (e.g. for a 400 nits peak luminance display) and a typical reference LDR of 100 nits peak luminance (here it is not necessary to focus on the details of which generic multi-segment tone mapping functions, saturation control functions and local area selection functions etc. can be used, as these can generally be inferred by those skilled in the art and the present invention is rather concerned with a grading framework and an associated coding framework to allow this grading information to reach the receiver correctly, and the final corresponding correct rendering). Moving towards a darker peak luminance display is often typically accompanied by a lightening in the relative gamut.So this is also how you can typically see the difference between HDR and LDR images [apart from the fact that the encoded signals typically have metadata that describes what the encoded signals are, such as what peak luminance the image is for of the reference display and what code assignment function was used in generating the luma code (and the value of these peak luminances, if there are functions to convert to other peak luminances)]: LDR images often have a more evenly spread histogram (sometimes also called unimodal or "Gaussian" for shorthand) due to the uniform illumination of scene objects, while HDR may have much stronger lobes in the darker subranges and content in the brighter subranges, such as strongly lit areas and sometimes gaps of sparsely allocated luminance in between. 10 shows luma histograms of several exemplary HDR scenes: 1001 a bunker with view to the outside, 1002 a building with dark interiors seen from the sunny exterior, 1003 a stained glass window in a church, 1004 a building and shrubs against a sunset, and 1005 a building with a relatively dark interior and exterior seen through a relatively large window. For example, the sky is typically 2-3 stops brighter than the rest of the scene, and lamps (at least the lamps themselves) are of course typically significantly brighter than the rest of the scene. Directly rendering an image with a large number of pixels in the dark lobe (i.e., rendering an HDR image on an LDR display that is not suitable for an LDR display) typically results in an image that appears overly dark, as a large area or percentage of the pixels appear blackish, which is difficult to distinguish. That is, whatever precise color transformation the grader desires for each scene, LDR regrading will sometimes involve at least a lightening of dark pixels, e.g., via a multiplicative contrast stretching of the luminance histogram sidelobes. It is also useful for the reader to note what dynamic range generally means. Practitioners in the past would have answered in a very simple way that, for example, dynamic range is the luminance of the highest rendered color versus the luminance of the darkest one.This may be a reasonable enough measure for rendering, but says very little about the encoding. As mentioned before, an image may be encoded, for example, from 0.01 nits to 2000 nits (peak luminance of the reference display), i.e. it may appear as an encoding of a scene with a dynamic range of 200,000:1. However, if one can upgrade to a 5000 nit representation, one appears to have an encoding of a dynamic range of 500,000:1 in the same image. From an encoding point of view, the dynamic range, and more importantly the luminance complexity of an image, is rather determined by how many (and which, i.e. what their typically renderable average luminance should be) different grey value (or, typically, differently lit) sub-regions are present, and by the encoding quality of the complexity of the intra-object texture / geometric object features. For example, a person or monster partially hidden in fog is not only a matter of where its average luminance is located on the renderable luminance axis, psychovisually or artistically, but also what exact intra-object contrast is required to make the monster look exactly spooky. This luminance distribution specification shows why relative rendering (i.e., compression onto the gamut between the peak luminance of the display and the perceptible black of an LDR display) is often not a good way to handle HDR rendering (this way of rendering ignores aspects of the correct dynamic range or luminance distribution of this particular image and scene, and therefore renders a very incorrect dynamic range). Alternatively, a framework of technical elements could handle all these aspects, i.e., not only high-quality rendering of all the required pixel brightness (luminance) on, say, a 5000 nits display, but also a faithful approximation when rendering on a lower capability (i.e., lower peak luminance) display is required.This involves complex tradeoffs about which high quality aspects of the image of the scene, and in particular which HDR effects (e.g., the appearance of lamp brightness versus the contrast of a person emerging from the fog), need to be sacrificed to a particular degree at the lower display peak brightness, which in some cases can be performed in part by intelligent image analysis software, but is often artistically optimized by a human color grader.

[0073] Returning to the LDR regrading of the church in FIG. 5a in FIG. 5, if we want the color (CD) of the dark corner inside the church to look the same (i.e., rendered at the same display output luminance) to the extent possible on various displays, if a 2000 nits display is 20 times brighter than a 100 nits display for all colors (i.e., when driven relatively equally for example to peak white), then for the same output rendering, we must boost the driving luminance (or, indeed, the corresponding lumas R', G', B') for the LDR display (or its color CD_LDR100) by a factor of 20. Of course, this can only be done if possible given the gamut limitations of the LDR display, even if required to be able to see the church interior well. For example, if CD_HDR2000 has a luminance of 0.05, such an LDR conversion would not be practical. Because for LDR we end up with a luminance of 1.0, i.e. white, but of course in HDR coding, which can typically go down to very dark luminances, the relative luminance can be, for example, 1 / 10000 of the peak white or even less. Still, of course, when mapping CD_HDR2000 to CD_LDR100, the grader need not use exact output luminance equality as his criterion, but can use whatever mapping he finds visually pleasing. Note that the mapping to these lower dynamic range appearances does not need to be invertible, since it is only necessary to derive the LDR image from Im_2000 and not regrade it again. For simplicity, the mapping to MDR can be some interpolation of the mapping to LDR (midpoint on a psychovisual equidistant scale), but of course it can be anything, and the grader may even want to specify other dedicated functions to map from Im_2000 to MDR. The red color to be rendered in the stained glass in the scene can be highly saturated, yet very bright.This occurs for Im_2000 HDR images when encoding these close to the maximum luminance or drive value of the red primary R (e.g., 255 or 1023). Going downwards (e.g., MDR), the grader encounters the physical limits of the system and may want to balance the chromatic richness to get as much of the impression of window brightness as possible, i.e., maintain enough inter-object contrast (for the brain to interpret as a nice bright colorful window). This involves a mapping to CD_MDR400 that keeps the colors at the top of the gamut sufficiently saturated (i.e., still far enough away from the achromatic luminance axis), i.e., still low enough at the converging top of the gamut and as close as possible to the gamut boundary (i.e., without posterization due to adjacent colors in the texture becoming equal). For LDR, the grader chooses to continue the mapping (2000 to 400 is about 2 stops, and so is 400 to 100, so one could think of the grader doing the mapping over equal distances in the same direction, but in general this could be any mapping that balances luminance and saturation taking into account the psychovisual aspects of both displays (i.e., at what peak luminance for a higher peak luminance display certain lighting effects start to appear in the visual appearance, versus where the grader would have to overcrowd some HDR effects on a lower peak luminance display, such as one at 100 nits). In this example, we see that the grader's choice is to clip to (near) the white of CR_LDR100, leaving only a little bit of the stained-glass painting texture subtly visible in the LDR appearance. There can be various ways as to how to technically encode these downward mapping functions F_2T1. For example, a grader could specify on-disk functions to stay within the (valid) limited range [0,1] (i.e. the mapping to MDR is co-encoded as metadata for Im_2000) and use techniques from which the LDR appearance is mathematically extrapolated at the receiver, or the technology could allow color mapping to pseudocolor PCs defined in an extended gamut beyond the typical [0,1] gamut range.In that case, the LDR color PC can be specified precisely to obtain the appropriate MDR color CD_MDR 400 by interpolation, and the actual renderable LDR color CR_LDR 100 is determined by the decoder at the receiving end by applying a clipping mechanism (which can be fixed or specified, for example, by encoding a selection number from several selectable clipping methods). Figure 5b in Figure 5 shows one embodiment of how outlying values ​​can be encoded with respect to the image specification of the LDR grading. Some map to the full gamut 555 between 0.0 and 1.0, but some codes are reserved for colors that are not renderable in LDR (but are renderable if adjusted to MDR colors). The actual gamut of LDR renderable colors is 556 (i.e., how these colors should be rendered on an LDR display, possibly including the desired clipping), which can be specified by defining the maximum or white point CW to, for example, 0.85. Colors outside the gamut 556 are clipped to the gamut before rendering the LDR image by some fixed or transmitted clipping method. Some content creators may think that extrapolating the LDR look from the MDR encoding on the disk is a more conservative implementation since there are not a few colors for LDR object regions. Nevertheless, it ends up being a similar method because it actually defines the CW relatively by wrapping a larger gamut 555 tightly around the definition of most LDR out-of-gamut colors needed for the current image (or images). That is, it defines the texture data by the image with the largest occupancy, i.e. the least encoded image with no clipping. This therefore corresponds to putting some MDR image on the disk and applying a further mapping to produce the final LDR to be rendered, sometimes with clipping components.

[0074] In summary, in general, mapping between HDR representations typically involves relocating brighter objects along the relative luminance axis (e.g., to make these objects extra bright while balancing the display's ability to actually make those objects appear brighter in the image, taking advantage of the psycho-visual appearance of glow in addition to the appearance of brightness), whereas mapping to an LDR image involves resolving the gray value ranges of all objects together in some optimal manner, given the small gamut of renderable colors available, so these are two technically distinct tasks.

[0075] The idea behind this is the usefulness of encoding not only a single HDR image, but in fact also a set of looks for different rendering situations with different display peak luminances, which is not trivial, since for each look image it requires not only an optimization operation given all factors such as technical limitations like the word length of the agreed color code (in practice, the complexity of the computing ICs, the bit budget available for communication, and sometimes the possibility of embedding in older technologies like for example satellite video broadcasting), but of course always artistic considerations, but in fact all these requirements are optimized together (so we need a good technical framework so that for example a human color grader cannot create something that is artistically nice but does not map with the available technology and looks disappointing in the end).

[0076] For example, consider having a dynamically range complex scene (which may already be a complex scene to optimize on a 5000 nit reference luminance range or color gamut) that includes an interior room that is averagely illuminated but has some fairly dark areas, and also has a sunny exterior view through some apertures with some areas of critical color and / or luminance. In this case, the viewer will still correctly see the various somewhat darker areas inside the room, with the correct average luminance so that not only the visibility but also the mood of the scene is correct, but also the various bright areas that mimic the actual exterior areas. However, the problem now is how to keep all these variously illuminated areas distributed in a balanced manner (i.e., for rendering on a display with a smaller maximum luminance and a lower peak luminance) for all the smaller dynamic range views on the scene. A 2000 nit rendering may still have a very high quality HDR look, but one still has to determine how to redistribute the luminance that was, for example, between 3000 and 5000 nits to something lower than 2000 nits. For example, a grader might think that this should be done optimally and keep all interior luminance equal to that of a 5000 nit grading, and keep the exterior plenty bright and sunny, i.e., keep the exterior average luminance close to the 2000 nit maximum (or better, the maximum achievable subject to the constraint of sufficient color saturation for any objects outside), possibly sacrificing some in the reflective brightest parts of the area, for example.

[0077] At 1000 nits, bright areas may need to be regraded more severely, so that now one may consider darkening interior colors as well, in order to keep the contrast ratio between the average interior and exterior luminance high enough. At 700 nits, for example, the grader may consider having to significantly change the luminance of all indoor objects in order to resolve all such differently illuminated interior areas together within the smaller available luminance subrange, while still taking into account, for example, local and sub-global contrast, etc. Of course, here too, the grader may need to look at the luminance of outdoor objects.

[0078] A good technical framework for HDR coding needs to give the content creator enough freedom to allow different ways to re-color all objects at least along the luminance axis, given of course different scenarios required at the image consumer side.

[0079] Finally, the formatter 330 encodes the single, e.g. 2000 nit reference image Im_2000 into some prescribed format according to the selected video transmission coding standard for coding HDR images. We have developed a method that allows to largely reuse existing LDR image coding and communication techniques. Finally, even for HDR images, we can only have, e.g. normalized RGB values ​​and store these in a coding format that doesn't care what the pixels actually are (of course, the receiver needs metadata that explains what luma or nonlinear R'G'B' values ​​actually correspond to, otherwise it will render most of the pixels too dark on a display with low peak luminance, e.g. assuming the receiver receives an old LDR image). In the applicant's research, it has been shown that HDR images can be encoded with standard MPEG coding structures (e.g. YCrCb 10-bit), provided that the correct EOTF is used to define how the available 1024 codes are used to encode a particular luminance as luma, so typically DCT coding may be involved to obtain the encoded Im_2000C. Co-transmitted with this image should be all the required metadata that defines (or at least guides) how the derived images (i.e. grading or appearance) should be obtained from Im_2000, such as the F_2T1 function to calculate at least one low dynamic range image (e.g. typically 100 nits) to obtain a final driving image for a low dynamic range display (e.g. up to 300 nits). The above images and metadata can be placed on a BD disc or encoded as a video transmission coded signal, and can be transmitted, e.g. via a network connection, or stored for later transmission. In addition to this, according to the invention there is an additional set of metadata MET(F_2Tu), which in this description is described as a function F_2Tu for reconstructing a very close approximation of e.g. the Im_5000 nit grading from the Im_2000 nit image stored on the BD disc.So, in summary, the grading produced by unit 310 is a basic artistic grading that defines how the artist wants the real scene to be mapped onto a high quality (higher peak luminance) HDR image. A second grading unit 320 is typically used to map this optimal HDR representation under the direction of a grader to a lower peak luminance HDR image (a trade-off that still has sufficient coding quality of the region to allow optimal reconversion for a higher peak luminance display, but has less psycho-visual HDR effect since object luminances are mapped to a lower peak luminance range). Some encoder implementations can do this alone and serve receiver applications that only need to serve displays to render higher peak luminance scenarios than those agreed upon for image communication. However, it is typically useful to also have information on how to downgrade to a lower peak luminance. So, a third unit 325 is typically also present, allowing an automatic algorithm, or typically also a grader, to specify how a 2000 nits image should be downgraded to a typically 100 nits image. Finally, all data is formatted according to the requirements of the agreed upon storage or communication system.

[0080] Here we will explain some further embodiment aspects of what a grader can do with regard to mapping between 5000 nits and 2000 nits HDR encodings, and what technical aspects various technical embodiments must meet for this. As mentioned above, if one does not only grade the Im_2000 nits encoding that must be used by oneself, but also encodes the optimal grading Im_5000 of 5000 nits by the parameter function coding technique, grading to 2000 nits is actually always a balancing act between scene color representation (i.e., sufficiently accurate quantized characteristics of all HDR object textures) on the other hand and artistic appearance on the other hand, whether the grader understands and pays attention to it or not. Therefore, a good grading must take both of these constraints into account when optimizing. We start theoretically with one possible grading method in Figure 6. Suppose we have an HDR image consisting of two sub-regions of very different illumination (e.g. a dark brown pub interior and a bright exterior through the windows, or vice versa, a dark exterior at night and e.g. a brightly lit shop window interior). We at least conceptually separate these two regions by a luminance bounder Lt. In practice, the mapping can be technically realized and encoded in various equivalent ways, e.g. by simply specifying a complex mapping for the luminance of Im_2000 above Lt and a simple multiplicative scaling factor for the luminance below, or by specifying a single mapping over the entire luminance range of the input Im_2000 to be reconstructed into a 5000 nits grading. In this example, the grader has started his content creation by creating a nice look for the pub interior in a 5000 nits reference look (Im_5000). Now, the grader wants to copy the look to the Im_2000 nits grading (i.e. at the same luminance as it is rendered, i.e. at the same luminance in the reference luminance range) in order to encode and transmit the look. That is, in the region below Lt, the two gradings are related by a linear mapping with a scaling factor of 2.5.Of course, the skilled reader can understand that the grader could use all sorts of other mappings, for example darkening some parts of the lower subrange because in this case some brown chairs look better in the 2000 nit rendering compared to what they would do in the 5000 nit rendering / grading, which would give a small bump on the linear mapping curve 601, for example.

[0081] The grader can then focus on what to do for the higher luminance colors (for simplicity we will assume that the chromaticity of these colors remains the same for both HDR encodings, which means that the invention can be explained based on luminance behavior, but the skilled reader will understand how this should work for more general color mappings that may also change saturation or hue, such as a move towards yellow to simulate sunlight). If this is simply an encoding of various bright HDR textures, i.e., now ignoring the ideal luminance appearance requirement for these regions since they cannot be fully produced in 2000 nits anyway or can be post-processed, then a partial mapping curve 602 can be used for the rest of the image. That is, in this example, the normalized LN_2000 is mapped one-to-one to the same relative / normalized LN_5000 luminance above Lt (which of course will appear brighter to a colorimeter or photometer when rendered on a 5000 nits intended display, but how it appears to the human visual system will depend, among other things, on visual adaptation and the cognitive interpretation of the image by the human brain). That is, maybe the top of the exterior sunny area will appear brighter on a 5000 nits display, but it can and should. And the brain doesn't know or care how exactly the sun shines outside, but it expects "fairly bright" areas, at least as far as any display of a particular peak luminance will allow. So for some types of scenes, this is not a bad way of grading, with reasonable results. Although, this can seem a bit counterintuitive, since it still has a discontinuous, albeit invertible, mapping.Note that the reversibility criterion (i.e., if the grader reconstructs a "lower quality" 2000-nit coding from a higher quality 5000-nit grading by applying some functions, then at the receiver these functions must be applied inversely to reconstruct the 5000-nit grading from the received 2000-nit one) only requires that at the sender it is possible to define some F_2Tu function (or functions) to map Im_2000 to a reconstructed Im_5000* with sufficient visual closeness to Im_5000, and therefore in the description of this embodiment it is simply assumed that the encoder does not encode as metadata the downward mapping function itself, but rather the inverse function F_2Tu of the above function that is needed to reconstruct Im_5000* and which is typically monotonically increasing (in this case F_2T5 to reconstruct the 5000-nit grading).

[0082] Perhaps the grader may want to use other functions, for example because there are continuous functions in the limited grading toolset (e.g. multi-linear with adjustable segment positions). In that case, the grader may choose to use partial mapping 603 for the upper luminance (upper luminance range R_U) and grade Im_2000, for example, such that its luminance value is not just above Lt, but only in, for example, the last quarter of the input luminance range. However, the grader must balance various requirements continuously, and so if he wants to be able to derive a good 5000 nit grading, and especially if he wants to be accountable for its quality, he will typically check not only what he is doing for the 2000 nit grading, but also the 5000 nit reconstructed one. The grader can, for example, check these side by side, or toggle between them on his single display. The switch immediately shows areas of large changes, but the juxtaposition can also be used for other kinds of checks (e.g. sub-areas that are intentionally graded differently for some additional reason or effect). Furthermore, an automatic algorithm can perform a pre-analysis of areas that may be more severe in some visual aspect, e.g. banding, in which case these areas can be flashed red to make the grader look there more closely. Although both images must be HDR, they will of course have a somewhat different HDR appearance. The extension of the curve 603 may lead to some areas with banding etc. due to derivative values ​​D that are too large compared to the number of locally available codes N in the Im_2000 image, especially since the Im_5000 image has to be shown on a bright 5000 nit display. In this case the grader can readjust the curve to take this into account. For example, the grader may slightly reduce the slope of the curve, at least in that range, to obtain an N-shaped curve with smaller slope sections between higher slope sections, for curve 603, if at least visually acceptable.Or the grader could shift the curve slightly, giving it a smaller slope on average, but not as much as 602 (the grader might want to match the aperture height by determining a pleasing inter-object contrast for the outside regions compared to the inside, e.g. limiting light seepage into the pub interior around window borders). Or an automatic algorithm could do this for the grader. In that case some technically graded image Im_2000T could be stored on disk, and in this case there would typically be further mapping parameters such as F_2T2T that derive the artistic grade Im_2000 from Im_2000T as desired by the grader.

[0083] FIG. 7 shows a schematic of some general example of what a grader can do to relate two bright and dim HDR gradings by a function transformation. Instead of exact reproduction of the lower luminance interior area, the grader can add some additional grading effect to one of the two appearances because it thinks it looks better at 5000 nits, or is optimized in a smaller range of 2000 nits. For example, if the grader thinks that a typical 5000 nits display can render dark parts (or at least relatively dark parts, but perhaps also absolute dark parts with an ultra HDR display that renders even 0.005 or 0.0001 nits instead of 0.01 nits), i.e., can introduce some additional dark appearance that can be useful for images in horror movies, such as a dark basement or cave, or a forest at night, the grader can bend the mapping part of 701 slightly darker. Similarly, the grader can bend the upper partial mapping curve 703 to provide some more contrast and to emphasize certain brightness sub-regions, or vice versa to make them less noticeable. An example of local grading is also shown: whereas normally curve 701 is used for all pixels in image Im_2000 based on pixel brightness and not purely on spatial location, in this example curve 710 is used for some localized regions / objects (e.g. a second view on a bright exterior through a small window surrounded by a relatively dark interior). This means that in addition to the shape specification data of the color processing function, some location specific information is conveyed to allow the receiver to determine which pixels in image 710 it should be applied to. This means that for example some specific objects are given an additional non-average boost to make them look better in Im_2000, but this needs to be mitigated so as not to be excessive.It can also be appreciated that due to the locally adaptive nature of human vision, a portion of the sky seen through a small opening in a dark interior wall may be perceived as being of a different color than the larger remainder of the sky elsewhere in the image, even though they are colorimetrically exactly the same, and this can be corrected by local processing specifications. Or, this can be used because a grader finds it more advantageous to specify a local processing for some part of the scene rather than tinkering with the entire curve. All these required mapping functions are conceptually represented by F_2Tu for simplicity, and all the required parameters and other data are suitably encoded as metadata in a pre-standardized manner so that they can be understood by the receiver. Note that the grader could in principle even wish to co-encode how to map from the 5000 nits Im_5000* to a higher peak brightness display, and the function F_5TE could specify a capping operation, for example to never allow certain large areas, such as a pale overcast sky, to be overly bright even in the sun, but to allow small lamps to be extremely bright. These functions could be recalculated and stored on disk to directly calculate from Im_2000 to, say, a 20,000 nit grading. Of course, the grader could consider that the Im_5000 image is the brightest it cares about, and leave any further boosting, if any, to the preference of the TV or STB manufacturer, or to some receiving end image conversion device.

[0084] The encoding of the required color processing function metadata into the image signal S_im, e.g. for storage on an optical disc or for some television standard, can be done for example in the HDR image grading processing definition part by a specific indicator code value indicating that this is such type of information and a parameter encoding the processing context, in particular the shape of the required color mapping function. A descriptor can encode the processing of STB tables on the one hand and the definition of 2000 nit video on the other hand. For example a definition of which display's peak luminance the graded image is best suited to: Video_Type_definition_descriptor() { Peak Luminance of codec reference range EOTF } It can be said that:

[0085] The peak luminance written on the BD, in the illustrated example, is 2000 nits, and the EOTF would be defined in the Blu-ray spec (as a mathematical function or LUT), since whatever single or multiple variants are specified, in the multiple case they would use, for example, an integer, to indicate which one is used.

[0086] Of course, one could write 3000 nits and force some 3000 nit encoding with the specified 2000 nit definition (i.e., use EOTF for the 2000 nit encoding), but typically one follows the spec.

[0087] The process to play Im_5000* is, for example: Video_processing_descriptor(){ Characterizing type #2000_to_5000 K Number of linear segments for luma mapping The coordinates of the end point of the partial segment {(LN_2000_i, LN_5000_i)} for (i = 0; i < K; i++). LN_2000_i is, for example, the x - coordinate of the start point of the segment, and LN_5000_i is the y - coordinate. When LN_2000_i has the maximum value (typically 1), the last start point is the end point. The number of linear segments for the L luma - dependent chroma multiplier The coordinates of the luminance (or luma) along the axis starting or ending at the current linear segment {(LN_2000_j, MULT_SATJ)} for (j = 0; j < L; j++). In the y - direction, it is the chroma boost value, for example, a multiplier of 0.3 or 3.5. [Note: This graph can be encoded, for example, by scaling a standard range of, for example, 0.25 - 3.0 where the possible values of 8 - bit = 255 are distributed linearly or non - linearly as MULTSAT = f(mult_sat_code)=A*mult_sat_code + B by, for example, a SAT_SCAL_FACTOR of 2.0, so the chroma can be encoded up to 2.0*3.0] } can be defined as.

[0088] From this metadata (in a simpler HDR coding scenario), the receiving side has all the information it needs. That is, the receiving side checks how Im_2000 was specified, i.e., what it means colorimetrically as a device - independent (yet partially optimized for a group of rendering scenarios by grading the HDR effect optimally for a specific HDR display capability) encoding, and can further adjust if necessary to meet device - specific requirements. Also, the decoder can read the processing functions and load them into its color processing unit.

[0089] FIG. 4 shows diagrammatically an HDR image (or video) decoder 401 (which may for example be an IC or processing board, or software running on a processor in a device such as a TV, a STB with BD reader, a computer or a medical image receiving station) at the receiving end of an exemplary consumer home rendering configuration (of course, the reader understands that the embodiment may also be embodied as a professional system such as a digital cinema for movie theaters, mutatis mutandis).

[0090] The image signal S_im is read, for example, from a Blu-ray disc 340, resulting in a compressed image Im_2000C as a starting image, which the image decompressor 403 decompresses to an uncompressed image, for example by performing run-length decoding, inverse DCT, etc., to obtain, for example, a linear luminance CIE(X,Y,Z) encoding Im_2000. In addition to this, various metadata processing functions are read from the same disc and / or from secondary sources of metadata, for example the function F_d2d to obtain a 100 nits appearance image from Im_2000 and the function F_2Tu to reconstruct Im_5000*, which is of particular importance for explaining various embodiments of the present invention. The logic processor 405 determines, for example, what is the particular configuration of a set-top box (STB) with an internal decoder, and in particular which display (or displays) is currently connected (it can also further analyze other aspects of the rendering environment, for example the average viewing ambient lighting, viewing preferences stored by the viewer in the system via a remote control, etc.). If (only) a 2000 nit display 450 is currently connected, the logical processor can relay the unprocessed Im_2000 video directly to the display (as it is already artistically optimal for such a display). This is typically done via a transmission formatter 415 that can further format the image (without having to perform any colorimetric processing itself) to comply with some particular video transmission (or video storage, if memory is connected and video is provided) standard. For example, the display 450 can be connected via a cable connection output (e.g., an HDMI connector) 432 that is, for example, compliant with a fully HDR-capable version of HDMI. If metadata is to be transmitted, for example as useful information to enable the display to perform its own final colorimetric fine-tuning processing, this metadata can be transmitted in the agreed format of the HDMI specification. At the same time, the STB can also provide information to a portable display 451, for example a mobile phone or tablet.This can be done via a wireless connection via wireless output 433 (e.g. by streaming video via 802.11 Wi-Fi protocol or similar) with an image optimized for x*100 nits. Of course, a portable display with this significantly lower dynamic range capability (e.g. peak brightness 500 nits) must be fed with a processed signal with a different color / brightness appearance, i.e. a differently graded image. For this, the color processing unit 410 retrieves information from the correct processing function F_d2d and obtains the appropriate grading, for example typically by applying said function to Im_2000 (and the logic processor 405 delivers the required data, i.e. Im_2000 and F_d2d). Thus, the color processing unit 410 is configured to calculate the appropriate colorimetric transformation for each scenario (i.e., whatever the peak luminance of the received encoded image and whatever the peak luminance of the display on which the regraded image will be shown), either by directly applying the received function or by determining the appropriate color mapping function based on the regrading information encoded in the received image, to obtain a correctly graded output image and to transmit (directly or via a logical processor) the correctly graded, e.g., 100 nit image to the transmit formatter 415, or to transmit a 3200 nit image, etc. The transmit formatter 415 thus performs any reformatting required to make the required information transferable to the connected display, i.e., it sends images that comply with at least some pre-agreed image coding protocol (e.g., stores an 850 nit image in an LDR image coding container) and also transfers all or some of the color mapping functions in the metadata.

[0091] Logical processor 405 can determine whether or what color processing is needed to convert an image of a decoded video referenced at, for example, 1000 nits, into an image for a 1500 nit display.

[0092] To this end, the author can encode what rendering situation the color mapping function F_d2d is for, which is: Mapping_function_meaning { Starting_max_luminance 2000 nits optimal_max_luminance 100 nit [i.e. the mapping is to create, on average, a properly graded driving image for a 100 nit display] Upper_limit_max_luminance 500 nits Lower limit max luminance 40 nits } It can be executed as:

[0093] While the last two parameters are not required in all embodiments (they typically only encode up to at least the intended peak luminance of the display, given that the peak luminance of the transmitted image is predetermined, it may also be useful to write the encoded peak luminance, referred to here as Starting_max_luminance), it may also be useful to convey limits on appearance suitability so that the receiver can immediately determine whether it needs to re-grade the image for the connected display.

[0094] That is, if a content creator fills in not only the optimal output maximum luminance but also the limit, the creator defines what, according to him, is an LDR display that can use the color mapping starting from Im_2000 in this example. More precisely, the creator ensures that if the image is used on a display around 100 nits up to, say, 500 nits [i.e., even if the display itself does not perform its own improvement process and directly renders this LDR grading Im_100], the image will still look reasonable and will not look, for example, too bright. The creator may know, for example, that the image is not too dark and can be rendered with sufficient visual quality on a 50 nits display, but below 40 nits, the dark areas will be too dark for the average viewer to view comfortably, at least according to the grader's judgment. This may make it easier for the display or logical processor to estimate which of various possible functions to use for the prediction of Im_750 for, say, a 750 nits display. This could be for example an F_2000T400 function rather than an F_2000T1000 function, and the display could use both predictions and interpolate appropriately. These limits specify for which dynamic range appearance on HDR scenes the grader's artistic rendering choices are valid versus in which cases other optimizations of the luminance of various average objects along the range would be better.

[0095] A third example is when the STB owner or user has available a high-end HDR display with a peak brightness of, say, 6000 nits. This is close enough to 5000 nits that the display can be fed images graded at Im_5000* and can either render these images directly, slightly sub-optimally, or alternatively perform its own 5000 to 6000 color processing. In this example, the signal goes via output 431 and feeds into the Internet 420 (or this could be a local network, etc.). Those skilled in the art will appreciate that various third parties or additional technical elements may be involved via the Internet, for example if display 452 were fed an Im_2000 signal (instead of an image already optimized for the display) and would perform a 2000 to 5000 conversion, then the user could obtain the required F_2Tu function for the display via a third party on the Internet.

[0096] Since there are so many variables in the encoding framework (because we want to be able to process different LDR or HDR video captures with different codec definitions that have different reference luminance ranges for the codec gamut, while still being able to deliver optimal images for different displays), FIG. 8 again graphically summarizes some aspects of the invention.

[0097] Thus, what the grader has internally in the producing grading device, e.g., in some linear luminance encoding, e.g., a set of OpenEXR images that are not yet optimized for video transmission, is on the left axis, i.e., L_orig. As mentioned above, the pixel luminance in this master grading image is not the luminance in the actual scene itself, but this image encodes the final result from how they were captured by the device, e.g., two different exposures of an ARRI camera, and then appropriately graded to serve the majority of HDR displays in the not-too-distant future (of course, the grading can be as simple as what a cameraman configures on his own camera, in some instances). Applicant has provided an illustrative example in which the grader selects a reference luminance range with a maximum luminance of 5000 nits, for example, because this is the best reference display that could be obtained and brighter luminance cannot be seen anyway. Thus, if a consumer with sufficient funds were to purchase the same display, he would be able to see the original grading (the "director's version"). What is finally rendered (nothing is said yet about intermediate coding choices) is shown on the L_DISP axis, which shows how the display would render that luminance as output luminance, specifically simplified by rendering peak white (e.g. R'=G'=B'=1023).

[0098] However, this chain proceeds in this case through a much lower maximum luminance value of the codec (seen on the L_COD axis of possible normalized luminance maximums of the color gamut of the coding, which should not be confused with the color gamut / range of the image / camera and display on both sides, as mentioned above). That is, the codec is defined to have a peak luminance (L_MAX_C) of, for example, 2500 nits, and all coding must be performed taking this into account to obtain a correct pipeline communication. As mentioned above, when transmitting this set of video images Im_2500, for example via DVB or ATSC communication, a set of different color mapping functions, for example F_2T10, can be simultaneously provided, which the receiving color processing unit can apply to derive an optimally graded image of, for example, 10,000 nits starting from said Im_2500. These functions may also be specified indirectly, e.g. F_D1T05 maps to 50 nits of video for a display with peak brightness around 50 nits, but starting from a color-mapped 100 nits, which can be calculated at the receiver rather than directly from Im_2500.

[0099] The video signal can be conveyed in several ways on a memory product, for example a Blu-ray disc 340 or a solid-state memory product, and comprises an encoded high dynamic range video Im_2000 with a maximum luminance (L_MAX_C) between 900 and 3500 nits and preferably 2000 or 1000 nits, and a video signal S_im with a color mapping specification F_2Tu with at least a luminance mapping function for deriving a second video with pixels with a maximum luminance higher than said maximum luminance (L_MAX_C), preferably at least 1.25 times higher, by applying a color mapping to said encoded high dynamic range video Im_2000. The memory product optionally comprises at least one other color mapping specification F_2d2 and optionally at least one limit of display peak luminance (LH_100, LL_100) that can be used to indicate for which range of displays the encoded high dynamic range video Im_2000 or any video calculated from it by color processing is visually optimal. Visually optimal means that the image looks best (according to the content creator / grader) when directly rendered on a display with peak luminance in that range without further color processing (except perhaps minor processing such as RGB-based matrixing changes), while on, for example, a darker display some of the image may contain areas that are judged to be too dark or unsightly for comfortable viewing. In particular, the grader may have created colorimetrically accurate HDR effects, so that they are best viewed on a display with a peak luminance between, for example, 1000 and 2000 nits, and at, for example, 500 or 4000 nits other corresponding color processing must be performed, giving the areas a somewhat different look that makes the HDR render better on such displays of different dynamic range capabilities.

[0100] The algorithmic components disclosed herein may actually be implemented (fully or partially) in hardware (e.g., as parts of an application specific IC) or as software running on a specialized digital signal processor or a general purpose processor.

[0101] Those skilled in the art will be able to understand from this presentation which components may be optional improvements and can be implemented in combination with other components, as well as how the (optional) steps of the method correspond to the respective means of the apparatus and vice versa. The term "apparatus" in this application is used in the broadest sense, i.e. as a group of means making it possible to realize a specific purpose, and thus may be, for example, a (small part of) an IC, a dedicated device (such as a device with a display) or a part of a networked system, etc. The term "arrangement (apparatus)" is also intended to be used in the broadest sense, and thus may include, among others, a single device, a part of a device, a collection of (parts of) cooperating devices, etc.

[0102] The computer program product version of this embodiment in the explicit sense should be understood to include any physical realization of a set of commands enabling a general-purpose or dedicated processor, after a series of loading steps (which may include intermediate conversion steps such as translation into an intermediate language and a final processor language) to input these commands into the processor and to execute any of the characteristic functions of the invention. In particular, the computer program product can be realized as data on a carrier such as a disk or tape, data present in a memory, data transmitted via a wired or wireless network connection, or program code on paper. Apart from the program code, the characteristic data required for the program can also be embodied as a computer program product. It will be clear that any device capable of performing data calculations by a computer is meant, i.e. the computer can also be a mobile phone, for example. The device claims can also cover the computer implementation of the above-mentioned embodiments.

[0103] Some of the steps required for the operation of the method may already be present in the functionality of the processor instead of being described in a computer program product, such as data input and output steps.

[0104] It should be noted that the above-described embodiments are illustrative rather than limiting of the present invention. For the sake of brevity, not all of these options are mentioned in detail, if a person skilled in the art can easily realize the mapping of the presented examples to other areas of the claims. Apart from the combinations of the elements of the present invention combined in the claims, other combinations of elements are also possible. Any combination of elements can be realized in a single dedicated element.

[0105] Any reference signs between parentheses in the claims are not intended to limit the claim. The word "comprises" does not exclude the presence of elements or aspects not stated in the claims. The word "a" or "an" in the singular does not exclude the presence of a plurality of such elements. [Explanation of symbols]

[0106] 401 Video Decoder 403 Video Expander 405 Logical Processors 410 Color Processing Unit 415 Transmission Formatter 420 Internet 450 Display 451 Mobile Phones 452 Display 477 Metadata Reading Unit

Claims

1. 1. An encoder for encoding an input high dynamic range video comprising a set of images having pixel colors with luminances less than or equal to a first maximum luminance, the first maximum luminance being defined as the highest luminance that a pixel of the input high dynamic range video can have; the input high dynamic range video is encoded as encoded high dynamic range video; the encoded high dynamic range video has a second maximum luminance; the second maximum brightness having a value of at least 900 nits; the first maximum luminance is at least twice as high as the second maximum luminance; The encoder comprises: a re-grading unit configured to enable a content creator to generate a tone mapping function for deriving pixel luminances of the encoded high dynamic range video from luminances of the input high dynamic range video, and configured to derive the encoded high dynamic range video by applying the tone mapping function to pixels of the input high dynamic range video; a formatter configured to write the encoded high dynamic range video and, as metadata, data relating to the tone mapping function that can be used to calculate a reproduction of the input high dynamic range video from the encoded high dynamic range video into a video signal to be transmitted; Including the encoder.

2. 1. A method of encoding an input high dynamic range video comprising a set of images having pixel colors with luminances less than or equal to a first maximum luminance as an encoded high dynamic range video, wherein luminances of pixels in the encoded high dynamic range video are less than or equal to a second maximum luminance that is at least 900 nits, and the first maximum luminance is at least twice as large as the second maximum luminance; The method comprises: specifying a tone mapping function that maps luminance of the input high dynamic range video to luminance of the encoded high dynamic range video, and applying the tone mapping function to obtain the encoded high dynamic range video; writing into a video signal to be transmitted pixel color data of the encoded high dynamic range video and, as metadata, data relating to the tone mapping function that can be used to calculate a reproduction of the input high dynamic range video from the encoded high dynamic range video; The method includes:

3. 1. A video decoder for decoding into a reproduced high dynamic range video comprising a set of images having pixels having a luminance up to a first maximum luminance, wherein pixels of the reproduced high dynamic range video may have a luminance up to the first maximum luminance; the pixel data of the reproduced high dynamic range video is received as an encoded high dynamic range video that is a secondary HDR video, the luminance of pixels in the encoded high dynamic range video is less than or equal to a second maximum luminance having a value of at least 900 nits, and the first maximum luminance is at least two times greater than the second maximum luminance; The decoder comprises: a metadata reading unit configured to extract tone mapping function data from metadata received in a video signal; a video decompressor configured to read and decompress compressed image data from the video signal to obtain the encoded high dynamic range video; a color processing unit configured to map pixels of the encoded high dynamic range video to pixels of the reproduced high dynamic range video using the tone mapping function data; a video decoder including:

4. 1. A method of video decoding into a reconstructed high dynamic range video comprising a set of images having pixels having a luminance up to a first maximum luminance, the pixels of the reconstructed high dynamic range video having a luminance up to the first maximum luminance, The pixel data for the reproduced high dynamic range video is received as an encoded high dynamic range video that is a secondary HDR video, and the luminance of pixels in the encoded high dynamic range video is less than or equal to a second maximum luminance having a value of at least 900 nits, and the first maximum luminance is at least two times greater than the second maximum luminance; The method comprises: extracting tone mapping function data from metadata received in a video signal; reading and decompressing compressed image data from said video signal to obtain said encoded high dynamic range video; mapping pixels of the encoded high dynamic range video to pixels of the reproduced high dynamic range video using the tone mapping function data; The method includes:

Citation Information

Patent Citations

  • Apparatus and method for dynamic range transforming of images

    US20140210847A1