Joint forward and backward neural network optimization in image processing
Through the joint forward and backward optimization framework of neural networks, the problem of low dynamic range conversion efficiency in video codecs is solved, high-quality image reconstruction between different dynamic ranges and color spaces is achieved, and support for multiple display devices is achieved. Rendering capabilities.
Patent Information
- Application Number
- CN202180015927.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-19
- Filing Date
- 2021-02-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-02-17
AI Technical Summary
Existing technologies make it difficult to effectively optimize the mapping between forward and backward paths in video codecs, resulting in low dynamic range conversion efficiency in video transmission and display, and difficulty in achieving high quality between different dynamic ranges and color spaces. image reconstruction.
Adopting a joint forward and backward optimization framework based on neural networks, through joint optimization of forward and backward paths, the neural network cost function is used to adjust the quality of the forward and backward paths to achieve an end-to-end video transmission and consumption system. , generate and encode image metadata to support image rendering with different dynamic ranges and color spaces.
It improves the efficiency of dynamic range conversion in video transmission and display, achieves high-quality image reconstruction between different dynamic ranges and color spaces, supports display devices with multiple image rendering capabilities, and reduces redundant data in the encoding stream. Improved video quality.
Smart Images

Figure CN115152212B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Application No. 62 / 978,638 and European Patent Application No. 20158278.0, both filed on February 19, 2020, each of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates generally to image processing operations. More specifically, embodiments of the present disclosure relate to video codecs. Background Art
[0004] As used herein, the term "dynamic range (DR)" may relate to the ability of the human visual system (HVS) to perceive a range of intensities (e.g., brightness, luminance) in an image, e.g., from the darkest black (dark colors) to the brightest white (highlights). In this sense, DR is related to "scene-referred" intensities. DR may also relate to the ability of a display device to adequately or approximately render a range of intensities of a particular breadth. In this sense, DR is related to "display-referred" intensities. Unless a particular sense is explicitly specified at any point in the description herein to have a particular meaning, it should be inferred that the term may be used in either sense, e.g., interchangeably.
[0005] As used herein, the term "high dynamic range (HDR)" refers to a DR width that spans approximately 14 to 15 or more orders of magnitude across the human visual system (HVS). In practice, the DR over a wide range of intensity ranges that humans can simultaneously perceive may be slightly truncated relative to HDR. As used herein, the terms "enhanced dynamic range (EDR) or visual dynamic range (VDR)" may be individually or interchangeably related to a DR that can be perceived within a scene or image by the human visual system (HVS) including eye movement, thereby allowing for some light-adaptive changes across the scene or image. As used herein, EDR may refer to a DR that spans 5 to 6 orders of magnitude. Although HDR may be slightly narrower relative to a reference real scene, EDR represents a wide DR width and may also be referred to as HDR.
[0006] In practice, an image includes one or more color components (e.g., luminance Y and chrominance Cb and Cr) of a color space, wherein each color component is represented by n bits of precision per pixel (e.g., n=8). Using nonlinear light intensity coding (e.g., gamma coding), an image where n≤8 (e.g., a color 24-bit JPEG image) is considered an image of standard dynamic range, while an image where n>8 can be considered an image of enhanced dynamic range.
[0007] The reference electro-optical transfer function (EOTF) for a given display characterizes the relationship between the color values (e.g., luminance) of an input video signal and the output screen color values (e.g., screen luminance) produced by the display. For example, ITU Rec. ITU-R BT. 1886, "Reference electro-optical transfer function for flat panel displays used in HDTV studio production" (March 2011) defines a reference EOTF for flat panel displays, the contents of which are incorporated herein by reference in their entirety. Given a video stream, information about its EOTF may be embedded in the bitstream as (image) metadata. The term "metadata" herein refers to any auxiliary information that is transmitted as part of the encoded bitstream and that assists a decoder in rendering a decoded image. Such metadata may include, but is not limited to, color space or gamut information, reference display parameters, and auxiliary signal parameters as described herein.
[0008] As used herein, the term "PQ" refers to the quantization of the perceived brightness amplitude. The human visual system responds to the increased light level in a very nonlinear manner. The ability of humans to observe stimuli is affected by the following factors: the brightness of the stimuli, the size of the stimuli, the spatial frequency that constitutes the stimuli, and the brightness level that the eyes have adapted to at the specific moment of viewing the stimuli. In some embodiments, the perception quantizer function maps the linear input grayscale to the output grayscale that better matches the contrast sensitivity threshold in the human visual system. In SMPTE ST 2084:2014 "High Dynamic Range EOTF of Mastering Reference Displays" (hereinafter referred to as "SMPTE"), an example PQ mapping function is described, which is incorporated herein by reference in its entirety, wherein, given a fixed stimulus size, for each brightness level (e.g., stimulus level, etc.), the minimum visible contrast step at the brightness level is selected according to the most sensitive adaptation level and the most sensitive spatial frequency (according to the HVS model).
[0009] Supports 200 to 1,000 cd / m 2A display with a brightness of 1,000 nits or less represents a lower dynamic range (LDR) associated with EDR (or HDR), also known as standard dynamic range (SDR). EDR content can be displayed on an EDR display that supports a higher dynamic range (e.g., from 1,000 nits to 5,000 nits or more). Such a display can be defined using an alternative EOTF that supports high brightness capabilities (e.g., 0 to 10,000 nits or more). Examples of such EOTFs are defined in SMPTE 2084 and Rec.ITU-R BT.2100, "Image parameter values for high dynamic range television for use inproduction and international programme exchange" (06 / 2017). As the inventors understand herein, it is expected that improved techniques for synthesizing video content data can be used to support the display capabilities of various SDR and HDR display devices.
[0010] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art simply by virtue of their inclusion in this section. Similarly, it should not be assumed that the problems identified with respect to one or more approaches have been identified in any prior art based on this section, unless otherwise indicated. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Embodiments of the invention are illustrated by way of example and not limitation in the accompanying drawings and in which like reference numerals refer to similar elements and in which:
[0012] Figure 1 Depicts an example process of a video transmission pipeline;
[0013] Figure 2A An example joint forward and backward optimization framework for single-layer backward compatible coding (SLBC) is illustrated; Figure 2B An example joint forward and backward optimization framework for progressive SLBC coding or single-layer progressive coding (SLPC) is illustrated;
[0014] FIG. 3A to FIG. 3E An example of joint forward and backward path optimization is illustrated;
[0015] Figure 4A and Figure 4B illustrates an example process flow; and
[0016] Figure 5 Illustrated is a simplified block diagram of an example hardware platform upon which a computer or computing device as described herein may be implemented. DETAILED DESCRIPTION
[0017] In the following description, for the purpose of explanation, many specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent that the present disclosure can be practiced without these specific details. In other cases, in order to avoid unnecessarily obscuring, obscuring or confusing the present disclosure, well-known structures and devices are not described in detail.
[0018] Overview
[0019] This paper describes a joint forward and backward neural network optimization framework that can be implemented in various video transmission and display applications, including but not limited to applications supporting single-layer backward compatible (SLBC) codecs.
[0020] Under some approaches, a forward shaping path that generates forward shaped (e.g., SDR, etc.) color levels from a source (e.g., HDR, etc.) color level and a backward shaping path that generates a reconstructed image of a target or source (e.g., SDR, HDR, etc.) color level are optimized separately. For example, when a forward mapping that maps source color levels to target color levels is generated on the encoder side, quality considerations of the source color levels mapped back from the target color levels by the backward mapping on the decoder side are not incorporated into the optimization problem formulation for the forward mapping. Thus, while the forward mapping may be optimized, the backward mapping may not be optimized.
[0021] Given the highly nonlinear structure of luma (e.g., 8-segment 2nd order polynomial group, etc.) and chroma image content mapping used to map between different color levels in the forward shaping path and the backward shaping path, separate optimization (or individual optimizations) of the forward shaping path and the backward shaping path may be beneficial. However, separate optimization of the forward shaping path and the backward shaping path may result in an end-to-end optimization problem combining the forward shaping path and the backward shaping path being relatively difficult to construct, let alone produce a closed-form solution to the end-to-end optimization problem. Separate optimization of the forward shaping path and the backward shaping path may also result in difficulty in achieving a desired tradeoff between the forward shaping path and the backward shaping path. As a result, the predicted (e.g., SDR, HDR, etc.) image from both the separately optimized forward shaping path and the backward shaping path may be suboptimal.
[0022] In contrast, under the technology described herein, using the fact that neural networks are universal function approximators, neural network-based solutions can be used to provide a better fit in each of the forward path and the backward path. In addition, the layer-by-layer structure of the neural network can be used to cascade both the forward path and the backward path to form an end-to-end video transmission and / or consumption system including neural networks in both the forward path and the backward path. Under the joint forward and backward path optimization method, feedback from the backward path such as error or cost can be provided to the forward path. The cost function (or loss function) in the joint forward and backward path optimization problem can be established in a manner including separate cost contributions (or separate loss contributions) from the forward shaping path and from the backward shaping. These separate cost contributions in the loss function can be weighted or assigned using different weighting factors so as to adjust the quality of the forward path and the backward path according to the desired tradeoff. Therefore, the operating parameters of these neural networks used in the end-to-end video transmission and / or consumption system can be obtained as an overall solution to the joint optimization problem of the cascaded forward path and the backward path.
[0023] Additionally, optionally, or alternatively, some or all of these techniques may be extended to cover a variety of image processing / rendering applications, for example to allow a single layer progressive (SLPC) codec to incorporate a neural network-based solution to optimize video quality for multiple different color levels.
[0024] Neural networks as described herein may be used to generate sets of corresponding images depicting the same scene (or the same semantic content) at different dynamic range levels, different color spaces (or different color gamuts), etc. Some or all of these neural networks with operating parameters generated under a joint optimization framework may be used to map one image in a set of corresponding images to other images in the same set of corresponding images.
[0025] An image of a specific dynamic range level, a specific color space (or a specific color gamut), etc. in a corresponding image set of different dynamic range levels, different color space sizes (or different color gamuts), etc. may be encoded as base layer (BL) image data in an encoded bitstream and image metadata specifying some or all operating parameters of the forward neural network and / or the backward neural network. The base layer (BL) image data and the image metadata may be provided to a receiving decoding and playback device, which may directly render the BL image data on a display supporting rendering of images at a specific dynamic range level, a specific color space, etc. after decoding. Additionally, optionally, or alternatively, the BL image data and the image metadata may be provided to a receiving decoding and playback device, which may reconstruct image data at a different dynamic range level, a different color space (or a different color gamut) from the decoded BL image data and the image metadata, and render the reconstructed image data on a display supporting rendering of images at a different dynamic range level, a different color space (or a different color gamut).
[0026] Thus, image data encoded in an encoded bitstream for rendering with some display devices can be used to generate reconstructed image data for rendering with some other display devices without including other image data specifically encoded for the other display devices in the encoded bitstream. Thus, an encoded stream generated under the techniques described herein can support a variety of display device types with various image rendering capabilities.
[0027] Example embodiments described herein relate to generating and encoding image metadata for image reconstruction. A source image at a source color level and a target image at a target color level are received as input to an end-to-end image mapping pipeline including a forward path and a backward path, the forward path including one or more forward neural networks, and the backward path including a backward neural network. The source image at the source color level is forward shaped using the one or more forward neural networks in the forward path to generate a forward shaped image at the target color level. The forward shaped image at the target color level is backward shaped using the one or more backward neural networks in the backward path to generate a backward shaped image at the source color level. A neural network cost function is specified (jointly) for the forward path and the backward path. The neural network cost function includes a forward cost portion (e.g., a forward cost term) that calculates a first difference between the forward shaped image and the target image and a backward cost portion (e.g., a backward cost term) that calculates a second difference between the backward shaped image and the source image. The operating parameters of the one or more forward neural networks and the one or more backward neural networks are determined by back propagation using the neural network cost function, for example, by calculating the cost as an output of the neural network cost function and using the calculated cost in the back propagation. Optionally, the image data of the selected color level generated from the forward path is encoded in the video signal together with the image metadata. The image metadata includes at least a subset of the operating parameters of the subset of the one or more forward neural networks and / or the one or more backward neural networks. This enables a receiving device of the video signal to use the image metadata and the image data of the selected color level to generate reconstructed image data of a different color level.
[0028] Example embodiments described herein relate to decoding image metadata for use in image reconstruction and rendering. Image data at color levels generated from a forward path implemented in an upstream video encoder is decoded from a video signal together with the image metadata. The image metadata includes at least a subset of operating parameters of a subset of one or more forward neural networks in the forward path and / or one or more backward neural networks in the corresponding backward path implemented in the upstream encoder. One or more forward neural networks and / or a subset of one or more backward neural networks having the subset of operating parameters are applied to the color-level image data to generate reconstructed image data at different color levels. A display image resulting from the reconstructed image at different color levels is rendered using a display device.
[0029] Example Video Transmission Processing Pipeline
[0030] Figure 1An example process of a video transmission pipeline (100) is depicted, which shows various stages from video capture to video content display. An image generation block (105) is used to capture or generate a sequence of video frames (102). The video frames (102) can be digitally captured (e.g., by a digital camera, etc.) or generated by a computer (e.g., using computer animation, etc.) to provide video data (107). Additionally, optionally or alternatively, the video frames (102) can be captured on film by a film camera. The film can be converted to a digital format to provide video data (107). In a production stage (110), the video data (107) is edited to provide a video production stream (112).
[0031] The video data of the production stream (112) is then provided to a processor for post-production editing (115). Post-production editing (115) may include adjusting or modifying the color or brightness in specific areas of the image to enhance the image quality or achieve a specific look of the image according to the creative intent of the video creator. This is sometimes referred to as "color adjustment (colortiming)" or "color grading (color grading)". Other edits (e.g., scene selection and sequencing, manual and / or automatic scene cut information generation, image cropping, adding computer-generated visual effects, etc.) may be performed in post-production editing (115) to produce one, two or more color grades of the image through content mapping and / or color grading. These color grades include corresponding sets of images depicting the same scene or semantic content, but may differ in one or more of the following aspects: different dynamic range levels, different color spaces, different EOTFs, different color space types, etc.
[0032] The color grade may include a source color grade and one or more target color grades. Each of the source color grade and the target color grade depicts the same set of visual scenes or semantic content. The target color grade may be obtained from the source color grade by content mapping and / or color grading performed manually, automatically, or a combination of manual and automatic image processing operations. In some operating scenarios, during post-production editing (115), some or all color grades of an image are viewed and color graded by a colorist, for example, on different reference displays that support rendering images with different dynamic range levels, different color spaces, different EOTFs, different color space types, etc. (e.g., directly, etc.).
[0033] For purposes of illustration only, the color grade includes the color grade of an HDR image (117-1) or an SDR (or relatively narrow dynamic range) image (117) (e.g., SDR, etc.). The SDR image (117) may be content mapped from the HDR image (117-1). In some embodiments, during post-production editing (115), the HDR image (117-1) is viewed on a reference HDR display supporting high dynamic range by a colorist who is performing post-production editing operations on the HDR image (117-1). Additionally, optionally, or alternatively, during post-production editing (115), the SDR image (117) is viewed on a reference display (125) supporting standard dynamic range (or relatively narrow dynamic range) by a colorist who is performing post-production editing operations on the SDR image (117).
[0034] The encoding block (120) may implement some or all of the joint forward and backward neural network optimization operations as described herein to generate a plurality of sets of operating parameters for the forward neural network and / or the backward neural network for mapping between or among source color levels and target color levels of an image. The forward shaped SDR image may be compressed / encoded into an encoded bitstream (122) by the encoding block (120). The plurality of sets of operating parameters for the forward neural network and / or the backward neural network may be included or encoded in the same encoded bitstream as part of the image metadata.
[0035] By way of example and not limitation, the HDR image (117-1) may represent a source color grade, while the SDR image (117) may represent one of the target color grades. The encoding block (120) receives the HDR image (117-1) from the post-production editor (115) and forward shapes the HDR image (117-1) into a (forward) shaped SDR image. The forward shaped SDR image may closely approximate the SDR image (117) from the color grading operation. The encoding block (120) generates an encoded bitstream that includes the SDR image (e.g., the forward shaped SDR image, etc.) and image metadata that includes a set of operating parameters of a neural network used by a receiving device of the encoded bitstream to reconstruct an HDR image from the SDR image.
[0036] The encoding block (120) may include audio and video encoders, such as those defined by ATSC, DVB, DVD, Blu-ray, and other transmission formats, to generate an encoded bitstream (122).
[0037] In some operating scenarios, the encoded bitstream (122) may represent a video signal (e.g., an 8-bit SDR video signal, a 10-bit SDR video signal, etc.) that is backward compatible with a variety of SDR display devices (e.g., an SDR display, etc.). In a non-limiting example, the video signal encoded using the shaped SDR image may be a single-layer backward-compatible video signal. Here, a "single-layer backward-compatible video signal" may refer to a video signal that carries an SDR image that is specifically optimized or color-graded for an SDR display in a single signal layer. Example single-layer video encoding operations are described in U.S. Patent Application Publication 2019 / 0110054, "Encoding and decoding reversible production-quality single-layer video signals," by GM. Su et al., the entire contents of which are incorporated herein by reference as if fully set forth herein.
[0038] A plurality of operation parameter sets of the feed-forward neural network and / or the backward neural network may be decoded by a receiving device of a video signal or a coded bitstream and used in a prediction operation to generate a reconstructed image of one or more other color levels from a decoded image of one color level. One or more different video quality levels may be generated for the reconstructed image using a prediction operation (e.g., a backward shaping operation, an inverse tone mapping operation, etc.) with a plurality of operation parameter sets of the feed-forward neural network and / or the backward neural network generated by the (upstream) coding block (120). At the encoder side, these different video quality levels may correspond to one or more different color levels (e.g., a source color level and / or a target color level, etc.), respectively.
[0039] In some operational scenarios, the decoded image represents an SDR image that is forward shaped by an upstream video encoder (e.g., using an encoding block (120) or the like) from a color graded HDR image (117-1) to approximate a color graded SDR image (117). A reconstructed image generated from the decoded image using a neural network with a corresponding set of operational parameters in image metadata transmitted in an encoded bitstream (122) represents an HDR image that approximates the color graded HDR image (117-1) at the encoder side.
[0040] In some operational scenarios, the (input) color levels used as (or designated as) input to a video encoding (e.g., encoding block (120), etc.) for the purpose of generating an encoded bitstream (e.g., 122, etc.) may be sorted or arranged in a particular order. For example, one of the color levels may be designated as a source color level, used as an input or starting point for a (e.g., sorted, etc.) forward neural network sequence. The remaining (input) color levels may be sorted into a sequence of target color levels. The source color levels may be forward shaped by the forward neural network sequence to generate a sequence of forward shaped color levels corresponding to the sequence of target color levels. Each forward shaped color level in the sequence of forward shaped color levels corresponds to (or is the same as) a corresponding target color level in the sequence of target color levels. As used herein, a forward neural network refers to a neural network in the forward neural network sequence that shapes or converts a given source color level or a previous forward shaped color level into a forward shaped color level.
[0041] A forward neural network sequence may be followed by a corresponding backward neural network sequence to reconstruct an image of target color levels and source color levels. A backward neural network refers to a neural network that converts or backward reshapes a forward-shaped image output by the forward neural network or a previous backward-shaped image to generate a reconstructed (or backward-shaped) image of an image that is similar to the target color levels or the source color levels. In some operating scenarios, when the forward neural network sequence continuously converts or forward reshapes the source color levels into a forward-shaped color level sequence that is similar to the target color level sequence, the corresponding backward neural network sequence continuously reconstructs or backward reshapes the output from the forward neural network sequence into a reconstructed image of an image that is similar to the target color level sequence and the source color levels.
[0042] Example reshaping operations are described in US Pat. No. 10,080,026 to GM. Su et al., "Signal reshaping approximation," which is incorporated herein by reference in its entirety as if fully set forth herein.
[0043] Additionally, optionally or alternatively, the encoded bitstream (122) is encoded with additional image metadata, including but not limited to display management (DM) metadata, which can be used by a downstream decoder to perform display management operations on the decoded image or the backward-shaped image to generate a display image optimized for rendering on a target display.
[0044] The encoded bitstream (122) is then transmitted downstream to a receiver such as a decoding and playback device, a media source device, a media streaming client device, a television (e.g., a smart TV, etc.), a set-top box, a movie theater, etc. In the receiver (or downstream device), the encoded bitstream (122) is decoded by a decoding block (130) to generate a decoded image 182, which may be the same as the image (e.g., a forward-shaped SDR image, etc.) encoded into the bitstream (122) by the encoding block (120), but is affected by quantization errors generated in the compression performed by the encoding block (120) and the decompression performed by the decoding block (130).
[0045] In an operating scenario where the receiver operates with (or is attached to or operably linked to) a target display 140 that supports rendering of a decoded image (182), the decoding block (130) can decode an image (182) from an encoded bitstream (122) (e.g., a single layer in the encoded bitstream, etc.) and use the decoded image (182) directly or indirectly (e.g., a forward-shaped SDR image, etc.) for rendering on the target display (140).
[0046] In some operating scenarios, the target display (140) has similar characteristics to the SDR reference display (125), and the decoded image (182) is a forward-shaped SDR image that is directly viewable on the target display (140).
[0047] In some embodiments, the receiver operates with (or is attached to or operably linked to) a target display having different display capabilities than a reference display for which the decoded image (182) has been optimized. Some or all of the plurality of sets of operating parameters for the forward neural network and / or the backward neural network in the image metadata (or synthesizer metadata) may be used to synthesize or reconstruct an image from the decoded image (182) optimized for the target display.
[0048] For example, the receiver may operate with an HDR target display 140-1 that supports a high dynamic range (e.g., 100 nits, 200 nits, 300 nits, 500 nits, 1,000 nits, 4,000 nits, 10,000 nits, or more) compared to the decoded image (182). The receiver may extract image metadata from the encoded bitstream (122) (e.g., one or more metadata containers in the encoded bitstream, etc.) and synthesize or reconstruct an image 132-1 from the decoded image (182) (e.g., a forward-shaped SDR image) using a plurality of sets of operating parameters of a forward neural network and / or a backward neural network in the image metadata (or synthesizer metadata).
[0049] In some operational scenarios, the reconstructed image (132-1) represents a reconstructed HDR image optimized for viewing on an HDR (e.g., reference, etc.) display that is the same as or comparable to an HDR target display with which the receiver operates. The receiver may directly use the reconstructed image (132-1) for rendering on the HDR target display.
[0050] In some operational scenarios, the reconstructed image (132-1) represents a reconstructed HDR image optimized for viewing on an HDR (e.g., reference, etc.) display different from an HDR target display (140-1) operating in conjunction with the receiver. A display management block (e.g., 135-1, etc.), which may be located in the receiver, in the HDR target display (140-1), or in a separate device, further adjusts the reconstructed image (132-1) to adapt to the characteristics of the HDR target display (140-1) by generating a display mapping signal (137-1) adapted to the characteristics of the HDR target display (140-1). The display image or the adjusted reconstructed image may be rendered on the HDR target display (140-1).
[0051] Joint Optimization Framework for SLBC
[0052] Under a separate optimization approach, an SDR image predicted from a source HDR image using forward shaping (e.g., often many-to-one HDR-SDR mapping, etc.) may be relatively free of visual artifacts relative to the source HDR image. However, an HDR image predicted / reconstructed from a decoded SDR image from backward shaping (e.g., often via one-to-many SDR-HDR mapping, etc.) (which may be the same as the predicted SDR image affected by quantization or encoding errors introduced in compression / encoding and decompression / decoding) may be relatively prone to containing visual artifacts relative to the source HDR image or decoded SDR image. These artifacts from backward shaping are caused by the one-to-many SDR-HDR mapping in the backward shaping that maps SDR pixel values to inaccurate HDR pixel values. As long as the forward and backward paths are still optimized separately, these visual artifacts cannot be prevented even if a neural network is used as a universal function approximator.
[0053] In contrast, under the joint forward and backward optimization method as described herein, the cost function can be used to ensure that the (overall) end-to-end mapping from the forward path to the backward path is (or close to) one-to-one. Therefore, under the technology as described herein, the source pixel can be guided back to its initial value by this end-to-end system or pipeline including both the forward path and the backward path. By way of illustration and not limitation, the joint forward and backward optimization technique can be applied to allow the SLBC codec to be incorporated into a neural network-based solution.
[0054] Figure 2AAn example joint forward and backward optimization framework for SLBC encoding is illustrated. The framework may be implemented, but is not limited to, using a SLBC codec in one or more of the following: a video encoder, a video transcoder, a video streaming server, etc. As shown, the SLBC codec (e.g., Figure 1 The input received by the encoding block (120) of the encoding block (120, etc.) may include two different types of input images belonging to a source color level (expressed as “Src Grade (YCbCr 444)”, where “YCbCr” and “444” respectively refer to the color space and color sampling format of the source color level) and a target color level (expressed as “Dst Grade (YCbCr 444)”, where “YCbCr” and “444” respectively refer to the color space and color sampling format of the target color level).
[0055] For illustration purposes only, the input images of the SLBC codec may include an HDR image as an input image of a source color level (e.g., an HDR color level, etc.) and include an SDR image as an input image of a target color level (e.g., an SDR color level, etc.). Both the SDR image and the HDR image depict the same scene (or the same visual semantic content) but with different quality levels, such as different dynamic ranges.
[0056] A joint optimization framework is implemented by the SLBC codec to find (1) a forward shaping function for converting an input image at a source color level (or an HDR image in this example) to a forward shaped image at a forward shaped color level corresponding to (or the same as) a target color level (e.g., a predicted SDR image generated by the forward shaping function, etc.), and (2) a backward shaping function for converting the forward shaped image at the target color level to a reconstructed image at the source color level (e.g., a predicted or reconstructed HDR image generated by the backward shaping function, etc.).
[0057] In some operating scenarios, input SDR and HDR images may be represented / encoded in a YCbCr color space with a 444 color sampling format. Each pixel in each input image may include component pixel values in the 3 (color space) channels / components (Y / Cb / Cr) of the YCbCr color space.
[0058] The component pixel values for each pixel in each input image can be concatenated into a vector.
[0059] For example, the component pixel values (in Y / Cb / Cr channels or components) of (e.g., each) pixel in an input image of a source color level (or a source domain corresponding to a source color level) may be concatenated into a single (input source) vector. This vector may then be used as input to one or more feed-forward neural networks for forward shaping the input image of the source color level into a forward shaped image of the target color level. More specifically, the feed-forward neural network uses the vector as input to predict the component pixel values of corresponding pixels in the forward shaped image.
[0060] The feed-forward neural network includes three subsets of feed-forward neural networks corresponding to the Y / Cb / Cr channels / components, respectively. These subsets of feed-forward neural networks can be used to predict the component pixel values of the corresponding pixels in the Y / Cb / Cr channels or components. The input source vector (e.g., a YUV vector including component input values in the three color channels or components, etc.) is fed to each subset of the feed-forward neural network for each color component. These subsets of feed-forward neural networks output component prediction values of the corresponding pixels in the forward shaped image of the target color level (or target domain).
[0061] like Figure 2A As illustrated, the first of the three subsets of the feedforward neural network (denoted as “ForwardNetY”) can be used to obtain predicted Y pixel values (denoted as “Pred Dst Y”) for corresponding pixels in the forward shaped image. The second of the three subsets of the feedforward neural network (denoted as “ForwardNet Cb”) can be used to obtain predicted Cb pixel values (denoted as “Pred Dst Cb”) for corresponding pixels in the forward shaped image. The third of the three subsets of the feedforward neural network (denoted as “ForwardNet Cr”) can be used to obtain predicted Cr pixel values (denoted as “Pred Dst Cr”) for corresponding pixels in the forward shaped image.
[0062] The predicted component pixel values of corresponding pixels in the forward shaped image generated by the forward neural network can be cascaded into a (prediction target) vector. The prediction target vector can be used to drive the backward neural network in the backward path and used as a basis for calculating the forward shaping cost portion in the total cost function of the end-to-end system including both the forward path and the backward path. The total cost function can be used to obtain operating parameters (e.g., neural network coefficients, etc.) of the forward neural network and the backward neural network in the end-to-end system.
[0063] In the backward path, the predicted target vector may be used as input to one or more backward neural networks, which are used to backward reshape the forward reshaped image at the target color level into a reconstructed (or backward reshaped) image at the source color level.
[0064] More specifically, the backward neural network uses a vector (including predicted component pixel values generated by the forward neural network) as input to predict component pixel values of corresponding pixels in a reconstructed (or backward-shaped) image of a source color level (or source domain).
[0065] The backward neural network includes three subsets of backward neural networks corresponding to the Y / Cb / Cr channels or components, respectively. The predicted target vector (e.g., a YUV vector including component prediction values in the three color channels or components, etc.) is fed to each subset of the backward neural network for each color component. These subsets of backward neural networks output the component prediction (source) values of the corresponding pixels in the reconstructed (or backward-shaped) image of the source color level (or source domain).
[0066] As illustrated, the first of the three subsets of the backward neural network (denoted as “BackwardNet Y”) can be used to obtain the predicted Y pixel value (denoted as “Pred Src Y”) of the corresponding pixel in the backward shaped image. The second of the three subsets of the backward neural network (denoted as “BackwardNet Cb”) can be used to obtain the predicted Cb pixel value (denoted as “Pred Src Cb”) of the corresponding pixel in the backward shaped image. The third of the three subsets of the backward neural network (denoted as “BackwardNet Cr”) can be used to obtain the predicted Cr pixel value (denoted as “Pred Src Cr”) of the corresponding pixel in the backward shaped image.
[0067] The predicted component pixel values of corresponding pixels in the backward shaped image generated by the backward neural network can be concatenated into a (prediction source) vector. The prediction source vector can be used as the basis for calculating the backward shaping cost portion in the total cost function of the end-to-end system including both the forward path and the backward path.
[0068] The forward shaping cost portion of the total cost function may be calculated based at least in part on the difference (e.g., calculated by a subtraction operation, calculated by a division operation, etc.) between the original target data in the input target image and the predicted target data in the forward shaped image. The backward shaping cost portion of the total cost function may be calculated based at least in part on the difference (e.g., calculated by a subtraction operation, calculated by a division operation, etc.) between the original source data in the input source image and the predicted source data in the backward shaped image. The total cost function (denoted as "cost") may be formed as a weighted combination of the forward shaping cost portion and the backward shaping cost portion by weighting factors (denoted as "weighting factors"). The weighting factors may include source color level weighting factors (corresponding to or assigned to source color levels) and target color level weighting factors (corresponding to or assigned to target color levels). As described herein, example weighting factors assigned to a given color level may include, but are not necessarily limited to, any of the following ranges: (0, 1), [0.2, 0.8], [0.3, 0.4], [0.4, 0.6], etc. In various embodiments, these weighting factors may or may not be normalized.
[0069] This cost function can be used in back-propagation to calculate or generate operating parameters of both the forward neural network and the backward neural network (e.g., each of the two neural networks, etc.).
[0070] Forward Path Neural Network
[0071] Let triples and Represent the normalized Y, C0 (or Cb), and C1 (or Cr) component pixel values of the i-th pixel in the j-th source image and the target (or destination) image, respectively. The normalized Y, C0, and C1 component pixel values of all P pixels of the source image (frame) can be collected to form three input source vectors of the three color space channels / components Y, C0, and C1, respectively, as shown below:
[0072] as well as
[0073] Similarly, the normalized Y, C0, and C1 component pixel values of all P pixels of the target image (frame) can be collected to form three input target vectors of the three color space channels / components Y, C0, and C1, respectively, as shown below:
[0074] as well as
[0075] The input source vector and input target vector in expressions (1) and (2) can be concatenated or merged into two Px3 matrices, respectively, as shown below:
[0076]
[0077]
[0078] The three color components of each pixel in the source or destination image can be read out in a merged or concatenated form from the corresponding rows in the corresponding merge matrix of the Px3 matrix as follows:
[0079]
[0080]
[0081] The color component of each pixel in the source image can be used as an input to one or more cross-color (or cross-channel) forward neural networks in the forward path as described herein. As used herein, "cross-color" or "cross-channel" refers to a mapping operation that maps multiple components (e.g., two or more components of Y, C0, and C1, the components in the above expression (5), etc.) to a single component (e.g., a specific component of Y, C0, and C1, etc.).
[0082] For illustration purposes only, one or more feedforward neural networks are implemented as a multi-layer neural network in the forward path. The multi-layer neural network includes three component multi-layer neural networks for Y, C0 and C1 channels or components, respectively. The first component multi-layer neural network (e.g., Figure 2A The second component multilayer neural network (e.g., Figure 2A The third component multilayer neural network (e.g., Figure 2A ) to generate forward-shaped C1 or Cr component pixel values.
[0083] The lth layer of the multi-layer neural network in the forward path can be defined or specified for Y, C0, and C1 as follows:
[0084]
[0085]
[0086]
[0087] in, Respectively represent the forward neural network weighting matrices for Y, C0 and C1 channels or components; Respectively represent the forward neural network bias vectors for Y, C0, and C1 channels or components; Respectively represent the forward neural network activation functions for Y, C0, and C1 channels or components; Represent the input of the current lth layer (output from the previous (l-1)th layer) to the Y, C0, and C1 channels or components respectively; Represent the output of the current l-th layer of the Y, C0, and C1 channels or components, respectively. For the first layer of the multilayer neural network in the forward path, all three components of the multilayer neural network in the forward path receive a common input as vj,i in the above expression (5). Example activation functions may include, but are not necessarily limited to, any of the following: Sigmoid function, monotonically decreasing or increasing nonlinear function with well-defined derivatives, piecewise linear segments, step functions, etc.
[0088] The total number of (input, hidden, and output) layers of a multi-layer neural network in the forward path is denoted by (L F +1). The forward shaped or predicted component pixel values in the forward shaped color level corresponding to (or identical to) the target color level (or target domain) output from the corresponding component multilayer neural network in the forward path can be given as follows:
[0089]
[0090]
[0091]
[0092] in, represents the end-to-end function, where for l = 0…L F Design (or operating) parameters and Represents the neural network weight matrices and bias vectors for a specific layer of a component multilayer neural network in the forward path.
[0093] For each pixel, the forward shaped or predicted component pixel values output from the corresponding component multilayer neural network in the forward path can be represented in a cascaded or merged form as follows:
[0094]
[0095] The color components output from the corresponding component multilayer neural networks in the forward path for each pixel in the forward reshaped image can be used as inputs to one or more cross-color (or cross-channel) backward neural networks in the backward path as described herein, and can be used as inputs to the total loss function of joint forward and backward optimization in an end-to-end system including both the forward path and the backward path.
[0096] The forward shaped or predicted Y, C0 and C1 component pixel values of all P pixels of the forward shaped image (frame) may be collected to form three predicted target vectors for the three color space channels / components Y, C0 and C1, respectively, as shown below:
[0097] as well as
[0098] Backward Path Neural Network
[0099] For illustration purposes only, one or more backward neural networks are implemented as a multi-layer neural network in the backward path. The multi-layer neural network includes three component multi-layer neural networks for Y, C0 and C1 channels or components, respectively. The first component multi-layer neural network (e.g., Figure 2A The second component multilayer neural network (e.g., Figure 2A The third component multilayer neural network (e.g., Figure 2A ) to generate reconstructed or backward-shaped C1 or Cr component pixel values.
[0100] The lth layer of the multi-layer neural network in the backward path can be defined or specified for Y, C0, and C1 as follows:
[0101]
[0102]
[0103]
[0104] in, Respectively represent the backward neural network weighting matrices for Y, C0 and C1 channels or components; Respectively represent the backward neural network bias vectors for Y, C0, and C1 channels or components; Respectively represent the backward neural network activation functions for Y, C0, and C1 channels or components; Represent the input of the current lth layer (output from the previous (l-1)th layer) to the Y, C0, and C1 channels or components respectively; Respectively represent the output of the current lth layer of the Y, C0, and C1 channels or components. For the first layer of the multilayer neural network in the backward path, all three components of the multilayer neural network in the backward path receive a common input as the above expression (9)
[0105] The total number of (input, hidden, and output) layers of a multi-layer neural network in the backward path is denoted by (L B +1). The reconstructed or backward-shaped component pixel values output from the corresponding component multilayer neural network in the backward path in the backward-shaped color level corresponding to (mostly identical to) the source color level (or source domain) can be given as follows:
[0106]
[0107]
[0108]
[0109] in, represents the end-to-end function, where for l = 0…L B Design (or operating) parameters and Represents the layer-specific neural network weight matrices and bias vectors of the component multilayer neural network in the backward path.
[0110] For each pixel, the backward-shaped or reconstructed component pixel values output from the corresponding component multilayer neural network in the backward path can be represented in a cascaded or merged form as follows:
[0111]
[0112] The color components output from the corresponding component multilayer neural network in the backward path for each pixel in the backward reshaped or reconstructed image can be used as input to the overall loss function of joint forward and backward optimization in an end-to-end system including both the forward path and the backward path.
[0113] The backward shaped or reconstructed Y, C0 and C1 component pixel values of all P pixels of the backward shaped or reconstructed image (frame) can be collected to form three prediction target vectors for the three color space channels / components Y, C0 and C1, respectively, as shown below:
[0114] as well as
[0115] End-to-end Problem Formulation
[0116] The end-to-end optimization problem for an end-to-end system or pipeline including the described forward path and backward path can be formulated as follows:
[0117]
[0118] The total cost function for the joint forward and backward path optimization can be formulated as a weighted combination of the forward path loss part and the backward loss part, which represent the distortion of each color channel / component Y, C0, and C1 of each of the forward and backward paths, as follows:
[0119]
[0120] in, Represent the forward path (loss function) weighting factors of Y, C0 and C1 respectively; Denote the backward path (loss function) weighting factors for Y, C0, and C1, respectively. These loss function weighting factors represent design variables for controlling the desired tradeoff or desired preference between the source color grade and the target color grade. More specifically, the higher the forward path (loss function) weighting factor is compared to the backward path (loss function) weighting factor, the better the target (or forward shaped) color grade looks, and the worse the source (or backward shaped) color grade looks. Conversely, the smaller the forward path (loss function) weighting factor is compared to the backward path (loss function) weighting factor, the worse the target (or forward shaped) color grade looks, and the better the source (or backward shaped) color grade looks. In some operational scenarios, all forward and backward (loss function) weighting factors assigned to all differences or distortions in the loss function (e.g., expression (16) above, etc.) calculated between all reshaped images and all input (source and / or target) images as described herein are normalized to one (1).
[0121] The operating parameters of the forward neural network and the backward neural network can be obtained using (e.g., minimizing, etc.) the loss function specified in the above expression (16), as shown below:
[0122] For l = 0 ... L F , and
[0123] For l = 0 ... L B , and
[0124] These operating parameters or neural network coefficients can be solved using back propagation based on minimizing the loss function in the above expression (16). The above formulated optimization problem can be iteratively solved via a (e.g., standard, proprietary, enhanced, commercially available, specially developed, etc.) neural network optimization solver.
[0125] In some operational scenarios, the forward shaped images generated from the forward path may be encoded in the encoded bitstream along with image metadata specifying operational parameters of the backward path (as indicated by expression (17-2) above). Additionally, optionally, or alternatively, operations as described herein may be performed in a training phase and an encoding phase. For example, forward shaped images may be generated in a training phase. Some or all forward shaped images may be encoded in an encoding phase.
[0126] For purposes of illustration only, it has been described that an input vector comprising a single pixel value may be used, at least in part, to drive the forward and backward neural networks and the joint forward and backward path optimization as described herein. It should be noted that in various embodiments, other ways of driving the forward and backward neural networks and the joint forward and backward path optimization may be implemented or performed. For example, in addition to or in lieu of the pixel-based problem formulation in which the input vector comprises a single pixel value as described above, an input vector comprising aggregated pixel values (such as aggregated values obtained based on a three-dimensional mapping table (3DMT) or a three-dimensional (3D) color cube) may be used, at least in part, to drive the forward and backward neural networks and the joint forward and backward path optimization as described herein. An example 3DMT description is described in PCT application PCT / US2019 / 031620, “High-fidelity full reference and high-efficiency reduced reference encoding in end-to-end single layer backward-compatible encoding pipeline,” filed by Q. Song et al. on May 9, 2019 and published as WO 2019 / 217751, the entire contents of which are incorporated herein by reference as if fully set forth herein.
[0127] Joint Optimization of Single-Layer Progressive Codecs
[0128] The joint forward and backward path optimization can be extended to support more color levels than source and target color levels depicting the same scene or visual semantic content.
[0129] Figure 2B An example joint forward and backward optimization framework for progressive SLBC coding or single-layer progressive coding (SLPC) is illustrated. The framework can be implemented, but is not limited to, using a progressive SLBC codec in one or more of the following: a video encoder, a video transcoder, a video streaming server, etc. As shown, a progressive SLBC codec (e.g., Figure 1 The input received by the encoding block (120) of the encoding block (120, etc.) may include two different types of input images belonging to a source color level (expressed as "Src Grade (YCbCr444)") and multiple target color levels (expressed as "Dst Grade 0 (YCbCr 444)" to "Dst Grade K-1 (YCbCr444)"); wherein K represents the total number of target color levels in the multiple target color levels.
[0130] For illustration purposes only, the input images of the progressive SLBC codec may include a source image as an input image of a source color level (e.g., an HDR color level, etc.) and a plurality of target images as input images of a target color level. All source images and target images depict the same scene (or the same visual semantic content) but have different quality levels, such as different dynamic ranges.
[0131] A joint optimization framework is implemented by a progressive SLBC codec to find (1) a plurality of forward shaping functions for converting a source image of a source color level into a plurality of forward shaped images of a plurality of forward shaped color levels corresponding to (or identical to) a plurality of target color levels, and (2) a plurality of backward shaping functions for converting a forward shaped image of a selected target color level (e.g., the last target color level, target color level K-1, etc.) of the plurality of forward shaped images of the plurality of target color levels into a reconstructed image of the source color level and other reconstructed images of other target color levels (e.g., target color levels 0 to (K-2), etc., except the selected target color level) of the plurality of target color levels.
[0132] In some operating scenarios, the source image and the target image may be encoded or represented in a YCbCr color space having a 444 color sampling format. Each pixel in each of the source image and the target image may include component pixel values in the three (color space) channels / components (Y / Cb / Cr) of the YCbCr color space.
[0133] The component pixel values for each pixel in each of the source image and the target image may be concatenated into a vector.
[0134] For example, component pixel values (in Y / Cb / Cr channels or components) of (e.g., each etc.) pixel in a source image of a source color level (or a source domain corresponding to a source color level) may be concatenated into a single (input source) vector. This vector may then be used as an input to a plurality of one or more sets of feed-forward neural networks for forward shaping the source image of the source color level into a plurality of forward shaped images of a plurality of target color levels. More specifically, the plurality of sets of feed-forward neural networks use the vector as input to predict component pixel values of a plurality of corresponding pixels in a plurality of forward shaped images.
[0135] Each of the plurality of feedforward neural network sets includes three subsets of feedforward neural networks corresponding to Y / Cb / Cr channels (or components), respectively. These subsets of feedforward neural networks can be used to predict component pixel values of corresponding pixels in Y / Cb / Cr channels or components of corresponding forward shaped images in the plurality of forward shaped images.
[0136] A first set of multiple forward neural network sets (denoted as "ForwardNet YCbCr 0") can be used to output a first forward reshaped image (e.g., "Dest Grade 0 (YCbCr444)") of multiple forward reshaped images. An input source vector (e.g., a YUV vector including component input values in 3 color channels or components, etc.) is fed to each forward neural network subset for each color component in the first set of multiple forward neural network sets ("ForwardNet YCbCr 0"). These forward neural network subsets in the first set of multiple forward neural network sets ("ForwardNet YCbCr0") output component prediction values for corresponding pixels in the first forward reshaped image of a first target color level (or target domain).
[0137] A second set of the plurality of sets of forward neural networks (denoted as “ForwardNet YCbCr 1”) can be used to output a second forward shaped image (e.g., “Dest Grade 1 (YCbCr444)”) of the plurality of forward shaped images. Component prediction values for corresponding pixels in the first forward shaped image are fed to each subset of forward neural networks for each color component in the second set of the plurality of sets of forward neural networks (“ForwardNet YCbCr 1”). These subsets of forward neural networks in the second set of the plurality of sets of forward neural networks (“ForwardNet YCbCr 1”) output component prediction values for corresponding pixels in the second forward shaped image of a second target color level (or target domain).
[0138] The foregoing operations may be repeated by other sets of the plurality of forward neural network sets to output or predict component pixel values of corresponding pixels in other forward reshaped images of the plurality of forward reshaped images of the plurality of target color levels until the last set of the plurality of forward neural network sets at the end of the forward path (denoted as “ForwardNet YCbCr K-1”) outputs or predicts component pixel values of corresponding pixels in the last forward reshaped image of the last target color level (“Dest Grade K-1(YCbCr444)”).
[0139] The prediction component pixel values of the corresponding pixels in the last forward-shaped image generated at the end of the plurality of forward neural network sets in the forward path can be concatenated into a (last prediction target) vector. The last prediction target vector can be used to drive the backward neural network in the backward path and as a basis for calculating the forward-shaped cost portion in the total cost function of the end-to-end system including both the forward path and the backward path. The total cost function can be used to obtain the operating parameters (e.g., neural network coefficients, etc.) of the forward neural network and the backward neural network in the end-to-end system.
[0140] In the backward path, the last predicted target vector may be used as input to a plurality of one or more backward neural network sets for backward-shaping the last forward-shaped image of the last target color level into reconstructed (or backward-shaped) images of target color levels other than the last target color level and reconstructed (or backward-shaped) images of the source color levels.
[0141] More specifically, the backward neural network uses the last predicted target vector (including the predicted component pixel values last generated by the plurality of forward neural network sets) as input to predict the component pixel values of corresponding pixels in the reconstructed (or backward reshaped) images of the target color levels other than the last target color level and the reconstructed (or backward reshaped) images of the source color levels.
[0142] A first set of the plurality of sets of backward neural networks (denoted as "BackwardNet YCbCr K-1") may be used to output a first backward-shaped color level in a set of color levels (e.g., not in Figure 2BThe first reconstructed (or backward-shaped) image of the first color level group (e.g., "Dest GradeK-2 (YCbCr 444)", etc.) is prepared by feeding a prediction vector (e.g., a YUV vector including component input values in 3 color channels or components, etc.) to each backward neural network subset for each color component in a first set ("BackwardNet YCbCr K-1") of multiple sets of backward neural networks. These backward neural network subsets in the first set ("BackwardNet YCbCr K-1") of multiple sets of backward neural networks output component prediction values in corresponding pixels in the first reconstructed (or backward-shaped) image of the first backward-shaped color level.
[0143] A second set of the plurality of sets of backward neural networks may be used to output a second backward-shaped color level in the set of color levels (e.g., not in Figure 2B The invention further comprises a second reconstructed (or backward shaped) image of a first color level (shown in , etc.), the color level group including other target color levels and source color levels except the last target color level. Component prediction values in corresponding pixels in the first reconstructed image of the first backward shaped color level are fed to each backward neural network subset for each color component in a second set of multiple sets of backward neural networks. These backward neural network subsets in the second set of multiple sets of backward neural networks output component prediction values in corresponding pixels in the second reconstructed (or backward shaped) image of the second backward shaped color level.
[0144] The foregoing operation may be repeated by other sets of the plurality of backward neural network sets to output or predict component pixel values of corresponding pixels in other backward-shaped images of the plurality of backward-shaped images for a color level group including target color levels other than the last target color level and source color levels until the last set of the plurality of backward neural network sets at the end of the backward path (denoted as “BackwardNetYCbCr 0”) outputs or predicts component pixel values of corresponding pixels in the reconstructed image of the source level (“Src Grade (YCbCr 444)”).
[0145] like Figure 2B As shown, the penultimate set (denoted as "BackwardNet YCbCr 1") before the last set ("BackwardNetYCbCr0") in the multiple backward neural network sets outputs or predicts the component pixel values of the corresponding pixels in the reconstructed image of the last target grade (Dest Grade 0 (YCbCr 444)).
[0146] like Figure 2B As illustrated, progressive SLBC encoding may divide the forward path into a plurality of subnetworks represented by a plurality of forward neural network sets (e.g., "ForwardNet YCbCr 0" to "ForwardNet YCbCr K-1", etc.), wherein each of the plurality of subnetworks is represented by a corresponding forward neural network set in a plurality of forward neural network sets. In some operating scenarios, each subnetwork or forward neural network set may include relatively few layers (e.g., one hidden layer, two hidden layers, etc.). These subnetworks may continuously forward shape a relatively high quality color level (e.g., a dynamic range of 10,000 nits or more, etc.) into a series of color levels of successively reduced quality (e.g., a dynamic range from 10,000 nits to 600 nits and even to 100 nits or less, etc.).
[0147] Likewise, progressive SLBC encoding may divide the backward path into a plurality of subnetworks represented by a plurality of sets of backward neural networks (e.g., "BackwardNet YCbCr K-1" to "BackwardNet YCbCr 0", etc.), wherein each of the plurality of subnetworks is represented by a corresponding set of backward neural networks in a plurality of sets of backward neural networks. In some operating scenarios, each subnetwork or set of backward neural networks may include relatively few layers (e.g., one hidden layer, two hidden layers, etc.). These subnetworks may continuously backward shape a relatively low color level (e.g., a lowest color level with a dynamic range of 100 nits or less, etc.) into a series of color levels with continuously increasing quality (e.g., a dynamic range from 100 nits or less to 600 nits and even to 10,000 nits or more, etc.).
[0148] In some operational scenarios, the predicted component pixel values of corresponding pixels in each of the multiple backward shaped images for the multiple target color levels generated by the multiple backward neural network sets in the backward path can be concatenated into a (prediction source) vector. Each such prediction source vector for each of the multiple target color levels can be used as a partial basis for calculating the backward shaping cost portion in the total cost function of the end-to-end system including both the forward path and the backward path.
[0149] The forward integration cost portion in the total cost function of progressive SLBC encoding can be calculated at least in part based on the difference (e.g., calculated by subtraction operation, calculated by division operation, etc.) between the initial target data in the (K-1)th target image of the last target color level ("Dst Grade YCbCr K-1") and the last predicted target data of the last target color level ("DstGrade YCbCr K-1") generated at the end of the forward path.
[0150] The backward integration cost portion in the total cost function of progressive SLBC encoding can be calculated at least in part based on the difference (e.g., calculated by a subtraction operation, calculated by a division operation, etc.) between a reconstructed image of a color level group (including source levels and all target color levels except the last target color level) and an input image (or input source and target images) of the same color level group.
[0151] The total cost function (expressed as "cost") of progressive SLBC coding can be formed as a weighted combination of a forward shaping cost portion and a backward shaping cost portion by weighting factors (expressed as "weighting factors"). The weighting factors may include a source color level weighting factor (corresponding to or assigned to the source color level) and a plurality of target color level weighting factors (corresponding to or assigned to a plurality of target color levels). Each of the plurality of target color level weighting factors corresponds to or is assigned to a corresponding target color level in the plurality of target color levels.
[0152] This cost function of progressive SLBC encoding can be used for back propagation to calculate or generate operating parameters of both a plurality of forward neural network sets and a plurality of backward neural network sets (e.g., each neural network in both, etc.). A source image representing the input of the neural network and a target image representing the output of the neural network and a loss function can be provided to a neural network solver (such as commercially available Google Tensorflow) to obtain the operating parameters of the neural network by back propagation implemented in the neural network solver. Additionally, optionally or alternatively, an enhanced neural network solver can be used. In some operating scenarios, back propagation can be implemented in a series of multiple stages of the neural network. Different cost parts in the loss function can be used to drive back propagation separately in different stages in a series of multiple stages of the neural network.
[0153] Progressive Coding Problem Formulation
[0154] let A 3-color target vector for the i-th pixel at the j-th image (frame) representing the K-th target (or reference) color level among a plurality of target color levels, where K represents an integer from 0 to (K-1). Some or all of the target color levels may be content mapped and / or color graded by one or more colorists to serve as the desired appearance for corresponding reference display devices having different display capabilities (e.g., in terms of multiple quality levels, multiple different dynamic ranges, multiple different color spaces or gamuts, etc.).
[0155] Let ΦF denote a feedforward neural network based mapping function (or forward path) that performs a neural network operation / mapping to convert or transform a 3-color source vector (denoted as vj,i) for the ith pixel at the jth image (frame) at the source level to a 3-color predicted target vector (denoted as ) for the ith pixel at the jth image (frame) at the (K-1)th target (or reference) color level. ), as follows:
[0156]
[0157] The forward path can be divided into K subnetworks. As shown below:
[0158]
[0159] The 3-color predicted target vector output from each of the K subnetworks It can be given as follows:
[0160]
[0161] For k = 0, the right-hand side is vj,i.
[0162] For k = K-1, the left-hand side for
[0163] Let ΦB denote a mapping function (or backward path) based on a backward neural network that performs the neural network operation / mapping to transform the 3-color source vector (denoted as) of the ith pixel at the jth image (frame) at the last target color level to ) is converted or transformed into a backward-shaped vector of the 3-color prediction of the i-th pixel at the j-th image (frame) of the source color level (expressed as ). The backward path can be divided into K subnets, As shown below:
[0164]
[0165] The backward-shaped vector of 3-color predictions output from each of the K subnetworks It can be given as follows:
[0166]
[0167] For k = K-1, the right-hand side for
[0168] For k = 0, the left-hand side for
[0169] The total cost function of the joint forward and backward path optimization of progressive SLBC can be formulated as a weighted combination of the forward path loss part and the backward loss part, which represent the distortion of each color channel / component Y, C0 and C1 in each of the forward and backward paths, as follows:
[0170]
[0171] Among them, w F and is a (loss function) weighting factor for each of the source and target color grades. These loss function weighting factors represent design variables for controlling the desired tradeoff or desired preference between the source color grade and the target color grade. More specifically, the higher the (loss function) weighting factor of the reconstructed color grade is compared to the (loss function) weighting factors of the other color grades, the better the reconstructed color grade looks. In some operational scenarios, all loss function weighting factors assigned to all differences or distortions in the loss function (e.g., the above expression (23), etc.) calculated between all reshaped images and all input (source and / or target) images as described herein are normalized to one (1). In various embodiments, loss function weighting factors of different grade levels may be assigned to different color grades in the loss function. These grade level loss function weighting factors may be selected to emphasize the quality level of one or more selected color grades from a plurality of available color grades. Additionally, optionally or alternatively, for each color grade, a path level loss function weighting factor may be selected to emphasize the quality level of the forward reshaped image of the color grade or the quality level of the backward reshaped image of the color grade.
[0172] The operating parameters of the forward neural network and the backward neural network can be obtained by using (e.g., minimizing, etc.) the loss function specified in the above expression (23). These operating parameters include the operating parameters of the backward neural network in the backward path, for l = 0 ... L B , expressed as and
[0173] These operating parameters or neural network coefficients can be solved using back propagation based on minimizing the loss function in the above expression (23). The above formulated optimization problem can be iteratively solved via a (e.g., standard, proprietary, enhanced, commercially available, specially developed, etc.) neural network optimization solver.
[0174] For purposes of illustration only, the forward shaped image that is finally generated at the end of the forward path and the backward shaped image that is generated throughout the backward path (e.g., as shown in FIG. Figure 2B , etc.) can be used in a loss function as described herein. In an operating scenario where a receiving device is to generate a backward-shaped image, such a loss function used by an upstream video encoder can better match the content to be generated by the receiving device. It should be noted that in various embodiments, in addition to or in place of the backward-shaped images that run through the backward path, the forward-shaped images generated through the forward path can be used in a loss function as described herein. In an operating scenario where a receiving device is to generate a forward-shaped image, such a loss function used by an upstream video encoder can better match the content to be generated by the receiving device.
[0175] Pure backward neural network at the decoder
[0176] In some operating scenarios, such as Figure 3A As illustrated, the source color level (denoted “Src Grade”) may be forward shaped by a video encoder as described herein through one or more sets of one or more feed-forward neural networks (denoted “ForwardNet Y / Cb / Cr 0” through “ForwardNet Y / Cb / Cr K-1”).
[0177] The forward-shaped image of the last target color level output at the end of the forward path is encoded as a coded bit stream (eg, Figure 1 122 in ). Some or all operation parameters corresponding to some or all backward neural networks in the backward path (denoted as “BackwardNet Y / Cb / Cr K-1” to “BackwardNet Y / Cb / Cr 0”) may be generated by the video encoder ( Figure 3A Not shown; see Figure 2A or Figure 2B ) and is encoded into the coded bitstream as picture metadata (denoted as “RPU”).
[0178] A receiving device of a coded bitstream, including but not limited to a video decoder, may decode picture metadata and forward-shaped images of intermediate color levels from the coded bitstream, and use operating parameters of a subset of backward neural networks and a subset of forward neural networks in the picture metadata ("RPU") to generate backward-shaped or forward-shaped images of color levels other than the intermediate color levels by backward-shaped or forward-shaped forward-shaped images of the intermediate color levels decoded from the coded bitstream using some or all of the backward neural networks or forward neural networks having the operating parameters received in the coded bitstream. These backward-shaped or forward-shaped images represent reconstructed images of color levels other than the intermediate color levels (which have been encoded in the coded bitstream).
[0179] More specifically, the video decoder can use the backward neural network subset to convert intermediate color levels to higher color levels. Similarly, the video decoder can use the forward neural network subset to convert intermediate color levels to lower color levels. A non-limiting example is that the base layer is encoded using a 1000 nit HDR 10PQ color level. The backward neural network subset can be used to reconstruct images with source color levels up to a 4000 nit (e.g., Dolby Vision, etc.) color level, while the forward neural network subset can be used to forward reshape images as low as R.709 100 nit color level.
[0180] Depending on which color level is selected to be used as a base layer in the encoded bitstream or to provide image data encoded by a video encoder in the base layer, the image metadata carried by the encoded bitstream may be different. By way of illustration and not limitation, Figure 3C As shown, a target color level represented as "Dst Grade 1" is selected as a base layer of the encoded bitstream or provides image data encoded by the video encoder in the base layer. The video encoder may further encode image metadata into the encoded bitstream to allow a receiving device of the encoded bitstream to use the image metadata to reconstruct images of one or more different color levels other than the target color level without encoding image data of these color levels in the encoded bitstream.
[0181] like Figure 3C As shown, the image metadata may include a first set of operating parameters (or Backward Net 1 coefficients) of a first set of backward neural networks. The receiving device may apply the first set of backward neural networks with the first set of operating parameters to image data of a target color level "Dst Grade 1" decoded from an encoded bitstream to generate or predict reconstructed image data (e.g., a reconstructed image, etc.) of a target color level "Dst Grade 0".
[0182] In some operating scenarios, the image metadata may further include a second set of operating parameters (or Backward Net 0 coefficients) for a second set of backward neural networks. The receiving device may further apply the second set of backward neural networks with the second set of operating parameters to the reconstructed image data of the target color grade "Dst Grade0" generated or predicted from the first set of backward neural networks to generate or predict the reconstructed image data of the source grade (e.g., a reconstructed image, etc.).
[0183] Additionally, optionally or alternatively, the image metadata may include one or more operation parameter sets of one or more forward neural network sets (e.g., Forward Net 2 coefficients, Forward Net 3 coefficients . . . Forward Net K-2 coefficients, Forward Net K-1 coefficients, etc.). The receiving device may apply some or all of the one or more forward neural network sets having some or all of the one or more operation parameter sets to image data of a target color level “Dst Grade 1” decoded from the encoded bitstream to generate or predict reconstructed image data (e.g., a reconstructed image, etc.) of a target color level other than the target color level “Dst Grade 1” (e.g., “Dst Grade K-2”, “Dst Grade K-1”, etc.).
[0184] Thus, in a hybrid joint optimization, operating parameters of both the forward neural network and the backward neural network can be generated by a video encoder and encoded in an encoded bitstream as described herein to enable generation or prediction of reconstructed images at color levels other than the color levels encoded in the image data in the encoded bitstream.
[0185] In some operating scenarios, the neural network coefficients included in the image metadata as described herein may refer to weighting factors and biases used in the activation function of the neural network. In some operating scenarios, the neural network coefficients included in the image metadata as described herein may refer to operating parameters other than weighting factors and biases used in the activation function of the neural network. By way of example and not limitation, the upstream video encoder that generates the image metadata and the receiving video decoder that uses the image metadata may adopt one or more of the same specific types (e.g., preconfigured, pre-fixed, etc.) of activation function types. Therefore, the video encoder may not (e.g., not need to, etc.) signal the activation function type. Additionally, optionally or alternatively, the upstream video encoder that generates the image metadata and the receiving video decoder that uses the image metadata may select one or more specific types of activation function types from a plurality of available activation function types. Therefore, the video encoder may include operating parameters other than or in addition to the weighting factors and biases used in the activation function to (e.g., dynamically, adaptively, etc.) identify one or more selected activation function types and / or other parameters used therein. The coding syntax may be specified and implemented by video codecs, such as video encoders and video decoders, to encode operating parameters into or decode operating parameters from picture metadata.
[0186] 2D forward and backward neural networks at the decoder
[0187] In some operational scenarios, a pure or hybrid architecture of joint forward and backward path optimization can be extended to target color levels represented in a two-dimensional (2D) grid. The 2D grid can include target color levels where a first dimension indicates different color spaces (or different color gamuts) and a second dimension indicates different dynamic ranges with different maximum brightness.
[0188] like Figure 3DAs illustrated, source color levels (denoted as "Src Grade") may be used as input to the forward path on the encoder side. The source color levels may be forward shaped by a video encoder as described herein through a 2D set of one or more forward neural networks (denoted as "ForwardNet Y / Cb / Cr 0,0", "ForwardNet Y / Cb / Cr 0,1" ... "ForwardNetY / Cb / Cr 0,K-2", "ForwardNet Y / Cb / Cr 0,K-1" ... "ForwardNet Y / Cb / Cr M-1,0", "ForwardNet Y / Cb / Cr M-1,1" ... "ForwardNet Y / Cb / Cr M-1,K-2" ... "ForwardNet Y / Cb / CrM-1,K-1") to generate forward shaped color levels corresponding to (or identical to) the target color levels represented in the 2D grid.
[0189] Each of the 2D sets of the forward neural network in the forward path can be indicated by two indexes, a first index of the two indexes can indicate a different color space, and a second index of the two indexes can indicate a different dynamic range. In some operating scenarios, the higher the value of the first index of the two indexes, the smaller the corresponding color space. Similarly, the higher the value of the second index of the two indexes, the smaller the corresponding dynamic range. Therefore, at the end of the forward path, a color level with a minimum color space (e.g., a color space with a minimum color gamut) and a lowest dynamic range is generated or predicted.
[0190] In addition to applying the forward neural network in the forward path, in the corresponding backward path on the encoder side, the color level with the smallest color space and the lowest dynamic range generated or predicted at the end of the forward path can be backward-shaped by the video encoder as described herein through a 2D set of one or more backward neural networks (denoted as "BackwardNet Y / Cb / Cr M-1,K-1", "BackwardNet Y / Cb / Cr M-1,K-2" ... "BackwardNet Y / Cb / Cr M-1,1", "BackwardNet Y / Cb / Cr M-1,0" ... "BackwardNet Y / Cb / Cr 0,K-1", "BackwardNet Y / Cb / Cr0,K-2" ... "BackwardNet Y / Cb / Cr 0,1", "BackwardNet Y / Cb / Cr 0,0") to generate or predict a reconstructed image of a color level group that includes the source color levels and other target color levels except the color level with the smallest color space and the lowest dynamic range. At the end of the backward path, a reconstructed image of the source color levels is generated or predicted.
[0191] In some operation scenarios (e.g., pure backward neural network, etc.), image data of a color level with the smallest color space and the lowest dynamic range can be encoded by a video encoder into a base layer of an encoded bitstream. Operational parameters of some or all 2D sets of backward neural networks, such as those generated by optimizing a total cost function using cost portions from all color levels, can be delivered / transmitted together with the image data of the color level with the smallest color space and the lowest dynamic range in the encoded bitstream. A receiving device of the encoded bitstream can use these operation parameters to generate or predict a reconstructed image of a color level in a color level group, the color level group including source color levels and other target color levels except the color level with the smallest color space and the lowest dynamic range. More specifically, while applying a 2D set of backward neural networks along one dimension (e.g., corresponding to a first dimension of a 2D grid, etc.) to change or replace the color space, a 2D set of backward neural networks along other dimensions (e.g., corresponding to a second dimension of a 2D grid, etc.) is applied to increase the dynamic range. Example color spaces may include, but are not necessarily limited to, any of the following: Rec.709, P3, P5, various triangles or polygons enclosed by different sets of primary colors implemented in a display device.
[0192] In some operating scenarios (e.g., hybrid forward and backward neural networks, etc.), image data for intermediate color levels (other than source color levels and target color levels with the smallest color space and lowest dynamic range) may be encoded by a video encoder into a base layer of an encoded bitstream. Operational parameters of some or all 2D sets of forward and backward neural networks, such as those generated by optimizing a total cost function using cost portions from all color levels, may be passed / transmitted with the image data for the intermediate color levels in the encoded bitstream. A receiving device of the encoded bitstream may use these operating parameters to generate or predict reconstructed images for color levels other than the intermediate color levels.
[0193] In some operating scenarios, such as Figure 3E As illustrated, image data of a color level (other than the source color level and the target color level having the smallest color space and the lowest dynamic range) having the largest color space (e.g., the color space having the widest color gamut) and the highest dynamic range (e.g., corresponding to the source color level) can be encoded by a video encoder into a base layer of an encoded bitstream. Operational parameters of some or all of a 2D set of forward or backward neural networks, such as generated by optimizing a total cost function using cost portions from all color levels, can be communicated / transmitted together with the image data of the color level having the largest color space and the highest dynamic range in the encoded bitstream. A receiving device of the encoded bitstream can use these operational parameters to generate or predict forward-shaped images of color levels other than the color level having the largest color space and the highest dynamic range. Thus, in these operational scenarios, the base layer of the encoded bitstream includes image data having the largest color space and the highest dynamic range. When a forward or backward neural network is applied along one dimension, the maximum color space of the encoded image data is continuously reduced in the generated or predicted image data; when a forward or backward neural network is applied along another dimension, the maximum dynamic range of the encoded image data is continuously reduced in the generated or predicted image data.
[0194] Color levels other than the selected color level may be generated by a series of forward or backward neural network sets representing paths in the 2D grid from the selected color level for which image data is encoded in the encoded bitstream as described herein to the desired color level. Different paths in the 2D grid may be implemented depending on the starting point (or the selected color level encoded in the encoded bitstream) and / or depending on the color level that one prefers to have the lowest computation to reconstruct on the decoder side.
[0195] For purposes of illustration only, it has been described that a joint optimization framework may be implemented using a forward neural network and a backward neural network to process image data represented in a YCbCr color space type. It should be noted that in various embodiments, some or all of the techniques as described herein may be, but are not necessarily limited to, application to different color space types, such as RGB (red, green, blue) color space type, IPT color space type, ICtCp color space type, etc. Additionally, optionally, or alternatively, a neural network implemented in a forward path and / or a backward path as described herein may be used to generate forward-shaped and / or backward-shaped image data represented in a different color space type (e.g., RGB, etc.) from source image data represented in a source color space type (e.g., YCbCr, etc.). Color space conversion may be implemented by a neural network in the forward path and / or the backward path and / or using one or more image processing blocks (of a video codec) external to the neural network.
[0196] In some operating scenarios, a linear segment based structure may be used to compute / generate / include a backward shaping map in the image metadata to maintain temporal stability of the image metadata. An example linear segment based structure is described in U.S. Patent 10,397,576, "Reshaping curve optimization in HDR coding," by H. Kadu and GM. Su, the entire contents of which are incorporated herein by reference as if fully set forth herein.
[0197] Some or all of the techniques as described herein may be implemented and / or performed as part of a real-time operation to produce color grades for video content for broadcast video applications, real-time streaming applications, etc. Additionally, optionally, or alternatively, some or all of the techniques as described herein may be implemented and / or performed as part of a delayed or offline operation to produce color grades for video content suitable for non-real-time streaming applications, cinema applications, etc.
[0198] Example process flow
[0199] Figure 4AAn example process flow according to an embodiment is illustrated. In some embodiments, one or more computing devices or components (e.g., encoding device / module, transcoding device / module, decoding device / module, inverse tone mapping device / module, tone mapping device / module, media device / module, reverse mapping generation and application system, etc.) can perform this process flow. In block 402, an image processing system receives a source image at a source color level and a target image at a target color level as input to an end-to-end image mapping pipeline including a forward path and a backward path, the forward path including one or more forward neural networks, and the backward path including a backward neural network.
[0200] In block 404 , the image processing system applies one or more forward neural networks in a forward path to forward shape the source image at the source color level to generate a forward shaped image at the target color level.
[0201] In block 406 , the image processing system applies one or more backward neural networks in a backward path to backward-reshape the forward-reshaped image at the target color level to generate a backward-reshaped image at the source color level.
[0202] In block 408, the image processing system generates a cost for the neural network cost function specified for the forward path and the backward path. The cost includes a forward cost portion calculated based on a first difference between the forward shaped image and the target image, and a backward cost portion calculated based on a second difference between the backward shaped image and the source image.
[0203] In block 410, the image processing system determines operating parameters of one or more feed-forward neural networks and one or more feed-backward neural networks using the costs generated from the neural network cost function as part of a basis.
[0204] In block 412, the image processing system encodes the image data of the selected color level generated from the forward path in the video signal along with image metadata. The image metadata includes at least a subset of operating parameters of a subset of one or more forward neural networks and one or more backward neural networks. This enables a receiving device of the video signal to use the image metadata and the image data of the selected color level to generate reconstructed image data of a different color level. In some operating scenarios, some or all of the operations in block 412 are optional and may or may not be performed.
[0205] In an embodiment, the video signal represents a single layer backward compatible signal.
[0206] In an embodiment, one or more forward neural networks convert a source image at a source color level into a plurality of forward reshaped images at a plurality of target color levels; and one or more backward neural networks convert a forward reshaped image last generated in the forward path into a plurality of backward reshaped images at a plurality of target color levels.
[0207] In an embodiment, the forward shaped image of the target color level is the last forward shaped image generated in the forward path.
[0208] In an embodiment, the forward shaped image of the target color level is not the last forward shaped image generated in the forward path.
[0209] In an embodiment, the image metadata does not include operating parameters of one or more feed-forward neural networks.
[0210] In an embodiment, the image metadata includes operating parameters of a mixture of one or more feed-forward neural networks and one or more feed-backward neural networks.
[0211] In an embodiment, one or more feed-forward neural networks reshape a source image at source color levels into a plurality of corresponding images at a plurality of target color levels; the plurality of target color levels forming a two-dimensional grid, wherein a first dimension indicates different color spaces and a second dimension indicates different dynamic ranges.
[0212] In an embodiment, the selected color level is a selected target color level having a higher dynamic range than all other target color levels generated from the forward path and having a higher color space than all other target color levels generated from the forward path.
[0213] In an embodiment, the selected color level is a selected target color level having a lower dynamic range than all other target color levels generated from the forward path and having a lower color space than all other target color levels generated from the forward path.
[0214] Figure 4BAn example process flow according to an embodiment of the present invention is illustrated. In some embodiments, one or more computing devices or components (e.g., encoding device / module, transcoding device / module, decoding device / module, inverse tone mapping device / module, tone mapping device / module, media device / module, prediction model and feature selection system, reverse mapping generation and application system, etc.) can perform this process flow. In box 452, the video decoding system decodes color-graded image data generated from a forward path implemented in an upstream video encoder together with image metadata from a video signal. The image metadata includes at least a subset of operating parameters of a subset of one or more forward neural networks in the forward path and one or more backward neural networks in the corresponding backward path implemented in the upstream encoder.
[0215] In block 454, the video decoding system applies the one or more feed-forward neural networks and the subset of the one or more feed-backward neural networks having the subset of operating parameters to the color-level image data to generate reconstructed image data at a different color level.
[0216] In block 456 , the video decoding system causes a display image derived from the reconstructed image at the different color levels to be rendered using a display device.
[0217] In an embodiment, image data of a forward reshaped image including color levels is selected from a plurality of forward reshaped images generated by one or more forward neural networks for a plurality of target color levels; and one or more backward neural networks convert the forward reshaped image last generated in the forward path into a plurality of backward reshaped images for the plurality of target color levels.
[0218] In an embodiment, a computing device such as a display device, a mobile device, a set-top box, a multimedia device, etc. is configured to perform any of the aforementioned methods. In an embodiment, an apparatus includes a processor and is configured to perform any of the aforementioned methods. In an embodiment, a non-transitory computer-readable storage medium stores software instructions that, when executed by one or more processors, cause any of the aforementioned methods to be performed.
[0219] In an embodiment, a computing device includes one or more processors and one or more storage media storing a set of instructions that, when executed by the one or more processors, causes performance of any of the foregoing methods.
[0220] Note that although separate embodiments are discussed herein, any combination of embodiments and / or portions of embodiments discussed herein may be combined to form further embodiments.
[0221] Example Computer System Implementation
[0222] Embodiments of the present invention may be implemented using a computer system, a system configured with electronic circuits and components, an integrated circuit (IC) device such as a microcontroller, a field programmable gate array (FPGA) or another configurable or programmable logic device (PLD), a discrete time or digital signal processor (DSP), an application specific IC (ASIC), and / or an apparatus including one or more of such systems, devices, or components. The computer and / or IC may execute, control, or implement instructions related to adaptive perceptual quantization of images with enhanced dynamic range, such as those described herein. The computer and / or IC may calculate any of the various parameters or values related to the adaptive perceptual quantization process described herein. The image and video embodiments may be implemented in hardware, software, firmware, and various combinations thereof.
[0223] Certain embodiments of the present invention include a computer processor that executes software instructions that cause the processor to perform the method of the present disclosure. For example, one or more processors in a display, an encoder, a set-top box, a transcoder, etc. can implement methods related to adaptive perceptual quantization of HDR images as described above by executing software instructions in a program memory accessible to the processor. Embodiments of the present invention can also be provided in the form of a program product. The program product may include any non-transient medium carrying a set of computer-readable signals, the set of computer-readable signals including instructions that, when executed by a data processor, cause the data processor to perform the method of an embodiment of the present invention. The program product according to an embodiment of the present invention may take any of a variety of forms. The program product may include, for example, a physical medium, such as a magnetic data storage medium including a floppy disk, a hard disk drive, an optical data storage medium including a CD ROM, a DVD, an electronic data storage medium including a ROM, a flash memory RAM, etc. The computer-readable signal on the program product may be optionally compressed or encrypted.
[0224] Where components (e.g., software modules, processors, components, devices, circuits, etc.) are mentioned above, unless otherwise indicated, reference to the component (including reference to a "module") should be interpreted to include any component that performs the function of the described component as an equivalent (e.g., functionally equivalent) to the component, including components that are not structurally equivalent to the disclosed structure that performs the functions in the illustrated example embodiments of the invention.
[0225] According to one embodiment, the technology described herein is implemented by one or more special computing devices. Special computing devices can be hard-wired to perform the technology, or can include a digital electronic device that is permanently programmed to perform the technology, such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs), or can include one or more general-purpose hardware processors that are programmed to perform the technology according to program instructions in firmware, memory, other storage devices, or combinations. This special computing device can also combine customized hard-wired logic, ASICs or FPGAs with custom programming to implement the technology. Special computing devices can be desktop computer systems, portable computer systems, handheld devices, networking devices, or any other equipment that merges hard wiring and / or program logic to implement the technology.
[0226] For example, Figure 5 is a block diagram illustrating a computer system 500 upon which embodiments of the present invention may be implemented. Computer system 500 includes a bus 502 or other communication mechanism for communicating information, and a hardware processor 504 coupled to bus 502 for processing information. Hardware processor 504 may be, for example, a general purpose microprocessor.
[0227] Computer system 500 also includes a main memory 506, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 502 for storing information and instructions to be executed by processor 504. Main memory 506 may also be used to store temporary variables or other intermediate information during execution of instructions to be executed by processor 504. Such instructions, when stored in a non-transitory storage medium accessible to processor 504, render computer system 500 into a special-purpose machine customized to perform the operations specified in the instructions.
[0228] Computer system 500 further includes a read only memory (ROM) 508 or other static storage device coupled to bus 502 for storing static information and instructions for processor 504. A storage device 510, such as a magnetic disk or optical disk, is provided and coupled to bus 502 for storing information and instructions.
[0229] The computer system 500 may be coupled to a display 512, such as a liquid crystal display, via the bus 502 for displaying information to a computer user. An input device 514, including alphanumeric and other keys, is coupled to the bus 502 for communicating information and command selections to the processor 504. Another type of user input device is a cursor control 516, such as a mouse, trackball, or cursor direction keys, for communicating direction information and command selections to the processor 504 and for controlling cursor movement on the display 512. Typically, this input device has two degrees of freedom in two axes, a first axis (e.g., an x-axis) and a second axis (e.g., a y-axis), which allows the device to specify a position in a plane.
[0230] The computer system 500 may implement the techniques described herein using custom hard-wired logic, one or more ASICs or FPGAs, firmware, and / or program logic that, in combination with the computer system, enables the computer system 500 to be a dedicated machine or programs the computer system 500 to be a dedicated machine. According to one embodiment, the computer system 500 performs the techniques described herein in response to the processor 504 executing one or more sequences of one or more instructions contained in the main memory 506. Such instructions may be read into the main memory 506 from another storage medium, such as the storage device 510. Executing the sequences of instructions contained in the main memory 506 causes the processor 504 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions.
[0231] The term "storage medium" as used herein refers to any non-transitory medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 510. Volatile media include dynamic memory, such as main memory 506. Common forms of storage media include, for example, floppy disks, diskettes, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage medium, CD-ROMs, any other optical data storage medium, any physical medium with a pattern of holes, RAM, PROMs and EPROMs, flash EPROMs, NVRAMs, any other memory chips or cartridges.
[0232] Storage media are distinct from but can be used in conjunction with transmission media. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the wires that comprise bus 502. Transmission media can also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.
[0233] Various forms of media may be involved in carrying one or more sequences of one or more instructions to the processor 504 for execution. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to the computer system 500 may receive the data on the telephone line and convert the data into an infrared signal using an infrared transmitter. An infrared detector may receive the data carried in the infrared signal, and appropriate circuitry may place the data on the bus 502. The bus 502 carries the data to the main memory 506, from which the processor 504 retrieves and executes the instructions. The instructions received by the main memory 506 may optionally be stored on the storage device 510 before or after execution by the processor 504.
[0234] Computer system 500 also includes a communication interface 518 coupled to bus 502. Communication interface 518 provides bidirectional data communication coupled to network link 520, which is connected to local network 522. For example, communication interface 518 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem for providing a data communication connection to a telephone line of a corresponding type. As another example, communication interface 518 can be a local area network (LAN) card for providing a data communication connection to a compatible LAN. A wireless link can also be implemented. In any such implementation, communication interface 518 sends and receives an electrical signal, an electromagnetic signal, or an optical signal carrying a digital data stream representing various types of information.
[0235] The network link 520 typically provides data communication to other data devices through one or more networks. For example, the network link 520 can provide a connection to a host computer 524 or to data equipment operated by an Internet Service Provider (ISP) 526 through a local network 522. The ISP 526 in turn provides data communication services through the global packet data communication network now commonly referred to as the "Internet" 528. Both the local network 522 and the Internet 528 use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 520 and through the communication interface 518 (which carry the digital data to and from the computer system 500) are example forms of transmission media.
[0236] Computer system 500 can send messages and receive data, including program code, through one or more networks, network link 520 and communication interface 518. In the Internet example, server 530 can transmit request code for an application program through Internet 528, ISP 526, local network 522 and communication interface 518.
[0237] The received code may be executed by processor 504 as it is received and / or stored in storage device 510, or other non-volatile storage, for later execution.
[0238] Equivalents, extensions, alternatives and miscellaneous
[0239] In the foregoing description, embodiments of the present invention have been described with reference to many specific details, which may vary depending on the implementation. Therefore, the only and exclusive indication of the claimed embodiments of the present invention and the claimed embodiments of the present invention desired by the applicant is the set of claims issued in a specific form according to the present application, wherein such claim issuance includes any subsequent amendments. Any definition explicitly set forth herein for the terms contained in such claims should govern the meaning of such terms as used in the claims. Therefore, limitations, elements, characteristics, features, advantages or attributes not explicitly stated in the claims should not limit the scope of such claims in any way. Therefore, this specification and drawings should be viewed in an illustrative rather than a restrictive sense.
[0240] Various aspects of the present invention may be understood from the following enumerated example embodiments (EEE):
[0241] EEE 1. A method comprising:
[0242] receiving a source image at a source color level and a target image at a target color level as input to an end-to-end image mapping pipeline comprising a forward path and a backward path, the forward path comprising one or more forward neural networks, and the backward path comprising one or more backward neural networks;
[0243] applying the one or more feed-forward neural networks in the forward path to forward shape the source image at the source color level to generate a forward shaped image at the target color level;
[0244] applying the one or more backward neural networks in the backward path to backward shape the forward shaped image at the target color level to generate a backward shaped image at the source color level;
[0245] generating a cost of a neural network cost function specified for the forward path and the backward path, wherein the cost includes a forward cost portion calculated based on a first difference between the forward shaped image and the target image, wherein the cost includes a backward cost portion calculated based on a second difference between the backward shaped image and the source image; and
[0246] using costs generated from the neural network cost function as part of a basis for determining operating parameters of the one or more feed-forward neural networks and the one or more backward neural networks;
[0247] And optionally:
[0248] Image data of a selected color level generated from the forward path is encoded in a video signal together with image metadata, wherein the image metadata includes at least a subset of operating parameters of a subset of the one or more forward neural networks and / or the one or more backward neural networks, wherein a receiving device of the video signal is caused to use the image metadata and the image data of the selected color level to generate reconstructed image data of a different color level.
[0249] EEE 2. The method of EEE 1, wherein the video signal represents a single-layer backward compatible signal. EEE 2. The method of EEE 1, wherein the video signal represents a single-layer backward compatible signal.
[0250] EEE 3. A method as described in EEE 1 or 2, wherein the one or more forward neural networks convert the source image of the source color level into a plurality of forward reshaped images of a plurality of target color levels; wherein the one or more backward neural networks convert the forward reshaped image last generated in the forward path into a plurality of backward reshaped images of the plurality of target color levels.
[0251] EEE 4. The method as described in any one of EEE 1 to 3, wherein the forward shaped image of the target color level is the last forward shaped image generated in the forward path.
[0252] EEE 5. The method as described in any one of EEE 1 to 3, wherein the forward shaped image of the target color level is not the last forward shaped image generated in the forward path.
[0253] EEE 6. A method as described in any one of EEE 1 to 5, wherein the image metadata only includes operating parameters of the one or more backward neural networks.
[0254] EEE 7. A method as described in any one of EEE 1 to 5, wherein the image metadata includes operating parameters of a mixture of the one or more forward neural networks and the one or more backward neural networks.
[0255] EEE 8. A method as described in any one of EEE 1 to 7, wherein the one or more forward neural networks reshape the source image of the source color level into multiple corresponding images at multiple target color levels; wherein the multiple target color levels form a two-dimensional grid, the two-dimensional grid having a first dimension indicating different color spaces and a second dimension indicating different dynamic ranges.
[0256] EEE 9. A method as described in any one of EEE 1 to 8, wherein the selected color level is a selected target color level, the dynamic range of the selected target color level is higher than the dynamic range of all other target color levels generated from the forward path and / or the color space of the selected target color level is higher than the color space of all other target color levels generated from the forward path.
[0257] EEE 10. A method as described in any one of EEE 1 to 8, wherein the selected color level is a selected target color level, the dynamic range of the selected target color level is lower than the dynamic range of all other target color levels generated from the forward path and / or the color space of the selected target color level is lower than the color space of all other target color levels generated from the forward path.
[0258] EEE 11. A method comprising:
[0259] Decoding from a video signal image data of a color level generated from a forward path implemented in an upstream video encoder together with image metadata, wherein the image metadata comprises at least a subset of operating parameters of a subset of one or more forward neural networks in the forward path and a corresponding one or more backward neural networks in a backward path implemented in the upstream video encoder;
[0260] applying the one or more feed-forward neural networks and a subset of the one or more feed-backward neural networks having the subset of operating parameters to the image data at the color level to generate reconstructed image data at a different color level;
[0261] A display image derived from the reconstructed image data at the different color levels is rendered using a display device.
[0262] EEE 12. A method as described in EEE 11, wherein the image data of the forward-reshaped image including the color level is selected from a plurality of forward-reshaped images generated by the one or more forward neural networks for a plurality of target color levels; wherein the one or more backward neural networks convert the forward-reshaped image last generated in the forward path into a plurality of backward-reshaped images of the plurality of target color levels.
[0263] EEE 13. A system comprising a processor and configured to perform any of the methods described in EEE 1 to 12.
[0264] EEE 14. An apparatus comprising a processor and configured to perform any of the methods as described in EEE 1 to 12.
[0265] EEE 15. A non-transitory computer-readable storage medium having computer-executable instructions stored thereon for executing a method using one or more processors according to any of the methods described in EEE 1 to 12. EEE 16.
Claims
1. A computer-implemented method comprising: receiving a source image at a source color level and a target image at a target color level as input to an end-to-end image mapping pipeline including a forward path and a backward path; Dividing the forward path into a plurality of subnetworks represented by a plurality of sets of forward neural networks, wherein each subnetwork of the plurality of subnetworks in the forward path is represented by a corresponding set of forward neural networks in the plurality of sets of forward neural networks; dividing the backward path into a plurality of subnetworks represented by a plurality of sets of backward neural networks, wherein each of the plurality of subnetworks in the backward path is represented by a corresponding set of backward neural networks in the plurality of sets of backward neural networks, and wherein the forward path and the backward path are cascaded together; applying the plurality of sets of forward neural networks in the forward path to forward shape the source image at the source color level to generate a forward shaped image at the target color level; applying the plurality of sets of backward neural networks in the backward path to backward shape the forward shaped image at the target color level to generate a backward shaped image at the source color level; calculating a joint neural network cost function specified for both the forward path and the backward path, wherein the joint neural network cost function includes a forward cost portion that calculates a first difference between the forward reshaped image and the target image, wherein the joint neural network cost function further includes a backward cost portion that calculates a second difference between the backward reshaped image and the source image; and The operating parameters of the plurality of sets of forward neural networks and the plurality of sets of backward neural networks are determined by back propagation using the joint neural network cost function, wherein the plurality of sets of forward neural networks convert the source image at the source color level into a series of consecutive forward reshaped images at a plurality of target color levels of successively reduced quality, wherein the plurality of sets of backward neural networks convert the last forward reshaped image generated in the series of consecutive forward reshaped images in the forward path into a plurality of backward reshaped images at the plurality of target color levels of successively reduced quality, and wherein the last forward reshaped image generated in the series of consecutive forward reshaped images in the forward path and the plurality of backward reshaped images are used for the joint neural cost function.
2. The method of claim 1, further comprising: Image data of a selected color level generated from the forward path is encoded in a video signal together with image metadata, wherein the image metadata includes at least a subset of operating parameters of a subset of the plurality of forward neural network sets and / or the plurality of backward neural network sets, such that a receiving device of the video signal uses the image metadata and the image data of the selected color level to generate reconstructed image data of a color level different from the selected color level.
3. The method of claim 2, wherein: The selected color level is a selected target color level having a higher dynamic range than all other target color levels generated from the forward path and / or having a larger color space than all other target color levels generated from the forward path.
4. The method of claim 2, wherein: The selected color level is a selected target color level having a lower dynamic range than all other target color levels generated from the forward path and / or having a smaller color space than all other target color levels generated from the forward path.
5. The method according to any one of claims 2 to 4, wherein: The image metadata only includes the operating parameters of the plurality of sets of backward neural networks.
6. The method according to any one of claims 2 to 4, wherein: The image metadata includes operating parameters of a mixture of the plurality of forward neural network sets and the plurality of backward neural network sets.
7. The method according to any one of claims 2 to 4, wherein: The video signal represents a single layer backward compatible signal.
8. The method according to any one of claims 1 to 4, wherein: The forward shaped image at the target color level is the last forward shaped image generated in the forward path.
9. The method according to any one of claims 1 to 4, wherein: The forward shaped image at the target color level is not the last forward shaped image generated in the forward path.
10. The method according to any one of claims 1 to 4, wherein: The plurality of feed-forward neural network sets reshape the source image at the source color levels into a plurality of corresponding images at a plurality of target color levels; wherein the plurality of target color levels form a two-dimensional grid having a first dimension indicating different color spaces and a second dimension indicating different dynamic ranges.
11. The method according to any one of claims 1 to 4, wherein: The joint neural network cost function is formed as a weighted combination of the forward cost part and the backward cost part through a weighting factor.
12. The method of claim 11, wherein: The weighting factors include a source color level weighting factor corresponding to the source color level and a target color level weighting factor corresponding to the target color level.
13. A method for rendering a display image, comprising: decoding from a video signal image data of a target color level generated from a plurality of sets of feed-forward neural networks in a forward path implemented in an upstream video encoder together with image metadata, wherein the image metadata comprises at least a subset of operating parameters of a subset of the plurality of sets of feed-forward neural networks in the forward path and a corresponding plurality of sets of backward neural networks in a backward path implemented in the upstream video encoder, wherein the operating parameters are determined according to a method as claimed in any one of the preceding claims; applying the plurality of sets of forward neural networks and a subset of the plurality of sets of backward neural networks having the subset of operating parameters to the image data at the target color level to generate reconstructed image data at a color level different from the target color level; Caused to render, using a display device, the display image obtained from the reconstructed image data at the color level different from the target color level, wherein the image data including the forward shaped image at the target color level is selected from a series of consecutive forward shaped images, the series of consecutive forward shaped images being generated by the plurality of forward neural network sets for a plurality of target color levels of successively reduced quality.
14. An electronic system comprising a processor and configured to perform the method as claimed in any one of claims 1 to 13.
15. A computer program product having instructions which, when executed by a computing device or system, cause the computing device or system to perform the method of any one of claims 1 to 13.
16. A computer-readable storage medium storing a program, the program comprising instructions, which when executed by a computing device or system, cause the computing device or system to perform the method according to any one of claims 1 to 13.
