US20260112009A1
APPLYING IMAGE OVERLAYS ONTO HDR IMAGE
Publication
Application
Classifications
IPC Classifications
CPC Classifications
Applicants
Lemon Inc.
Inventors
Daniel Elwell, He Qin, Zongcheng Chu, Wenqing Jiang
Abstract
A computing system is provided for applying image overlays onto a High Dynamic Range (HDR) image. The system receives the HDR image, generates a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image, renders at least one overlay image to generate an SDR effects image buffer and an effects gain map, overlays the effects gain map and the first gain map to generate a second gain map, overlays the SDR image and the SDR effects image buffer to generate an edited SDR image, generates an edited HDR image based on the edited SDR image and the second gain map, and generate an output based on the edited HDR image.
Figures
Description
BACKGROUND
[0001]Imaging technologies have evolved to significantly advance visual quality, particularly with the advent of High Dynamic Range (HDR) photos. HDR photos provide a greater range of luminosity and color depth compared to Standard Dynamic Range (SDR) photos. For example, HDR is characterized by brighter whites, darker blacks, and a wider potential number of visible colors, which result in more vivid and true-to-life images. This increased color depth and expanded dynamic range make HDR superior in delivering more immersive visual experiences, particularly when compared to SDR photos, which operates within a more limited color gamut and narrower range of brightness levels.
[0002]With the growing adoption of HDR-enabled cameras and displays, especially in mobile devices, modern smartphones, tablets, and cameras now commonly support HDR photos, bringing a professional-grade viewing experience to the consumer market.
[0003]However, the proliferation of HDR photography has also presented challenges when attempting to apply image overlay effects designed for SDR photos onto an HDR photo. Applications (apps) and software that were originally developed for SDR photos are often not optimized to handle the increased color depth and dynamic range of HDR content. For example, when images designed to be overlaid onto SDR photos are overlaid onto an HDR photo, the mismatch between the two formats can lead to severe color distortions. These distortions can manifest as oversaturation or desaturation in certain color spaces, resulting in an unnatural or undesirable appearance of the photo.
SUMMARY
[0004]In view of the above, a computing system is provided for applying image overlays onto a High Dynamic Range (HDR) image. The computing system comprises processing circuitry and memory storing instructions that, when executed, cause the processing circuitry to receive an HDR image. Further, the processing circuitry is caused to generate a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image. Then the processing circuitry is caused to render at least one overlay image to generate an SDR effects image buffer and an effects gain map, overlay the effects gain map and the first gain map to generate a second gain map, overlay the SDR image and the SDR effects image buffer to generate an edited SDR image, generate an edited HDR image based on the edited SDR image and the second gain map, and generate an output based on the edited HDR image.
[0005]This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that solve any or all disadvantages noted in any part of this disclosure.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
DETAILED DESCRIPTION
[0014]
[0015]The computing system 100 further includes a camera 106 configured to capture the HDR image 110, which is subsequently transferred into the memory 104 for further processing by an HDR-to-SDR pipeline 114. The video data of the HDR image 110 may be initially processed by an image signal processor before being transferred to the memory 104. Alternatively, the HDR image 110 may be transferred directly into the memory 104 in real-time via a high-speed communication interface, such as Universal Serial Bus (USB), Thunderbolt, or high-definition multimedia interface (HDMI). The high-speed communication interface may implement wireless technology via Wi-Fi transmission, Bluetooth, wireless HDMI, or cellular networks, for example.
[0016]Alternatively, the HDR image 110 may be imported from various external sources by an image importer 108 and subsequently transferred into the memory 104. For example, the image importer 108 may be embodied as a capture hardware configured to capture HDR image 110 from external cameras and transfer the image data into the memory 104.
[0017]Turning to
[0018]Returning to
[0019]The effects rendering module 124 is configured to render at least one overlay image to generate an SDR effects image buffer 126. Examples of overlay images include, but are not limited to, stickers, emojis, virtual props, text effects, face masks, two-dimensional or three-dimensional objects, and particle effects. These overlay images may be rendered onto an empty SDR effects image buffer 126, such that only the pixels that are directly affected by the effects are modified, and pixels where no effects are present remain fully transparent pixels. When the overlay images are images such as stickers and emojis, the boundaries of the images are smaller than the boundaries of the HDR image 110.
[0020]A tone mapping function 128 is subsequently applied to the SDR effects image buffer 126 to generate an HDR effects image buffer 130 containing the overlay images. The tone mapping function 128 is configured to determine an adjustment factor of a given pixel of the SDR effects image buffer 126 based on a peak luminance of the display 152, and scale each color component of the given pixel based on the adjustment factor. Examples of the tone mapping function 128 that can be used to generate the HDR effects image buffer 130 include a linear function, a logarithmic function, an exponential function, Reinhard's formula, and filmic tone mapping operators, such as the Hable Tone Mapping Operator or the Academy Color Encoding System (ACES).
[0021]A gain map generator 132 computes and generates an effects gain map 134 using the HDR effects image buffer 130 and the SDR effects image buffer 126. The effects gain map 134 specifies how to adjust pixel values of the visual effects when converting from SDR format to HDR format or vice versa. Similarly to the first gain map 120, the effects gain map 134 is expressed as a scalar function in logarithmic space, relative to a maximum content boost value and a minimum content boost value, to define transitions in brightness levels between the SDR format and the HDR format. The minimum content boost value defines how much darker the edited HDR image 148 can become relative to the edited SDR image 140. The maximum content boost value defines how much brighter the edited HDR image 148 can become relative to the edited SDR image 140.
[0022]Turning to
[0023]Returning to
[0024]Turning to
[0025]Returning to
[0026]Additionally or alternatively, the effects rendering module 124 may be configured to render at least one overlay image on an HDR effects image buffer 130, as indicated by the dotted arrows in
[0027]
[0028]Step 204 may include step 206 of determining that a given pixel of the SDR effects image buffer is opaque. For example, step 206 may determine that the given pixel of the SDR effects image buffer has an alpha value of one. Responsive to determining that the given pixel of the SDR effects image buffer is opaque, at step 208, the given pixel of the SDR effects image buffer becomes a given pixel of the edited SDR image.
[0029]Step 204 may include step 210 of determining that the given pixel of the SDR effects image buffer is fully transparent. For example, step 210 may determine that the given pixel of the SDR effects image buffer has an alpha value of zero. Responsive to determining that the given pixel of the SDR effects image buffer is fully transparent, a step 212, a corresponding pixel of the unedited SDR image becomes the given pixel of the edited SDR image.
[0030]Step 204 may include step 214 of determining that the given pixel of the SDR effects image buffer is semi-transparent. For example, step 214 may determine that the given pixel of the SDR effects image buffer has an alpha value of greater than zero and less than one. Responsive to determining that the given pixel of the SDR effects image buffer is semi-transparent, at step 216, standard linear alpha blending is performed on the given pixel of the SDR effects image buffer to generate the given pixel of the edited SDR image. At step 220, the edited SDR image is encoded to generate the edited SDR image.
[0031]
[0032]Step 304 may include step 306 of determining that a given pixel of the effects gain map is opaque. For example, step 306 may determine that the given pixel of the effects gain map has an alpha value of one. Responsive to determining that the given pixel of the effects gain map is opaque, at step 308, the given pixel of the effects gain map becomes a given pixel of the second gain map.
[0033]Step 304 may include step 310 of determining that the pixel of the effects gain map is fully transparent. For example, step 310 may determine that the pixel of the effects gain map has an alpha value of zero. Responsive to determining that the pixel of the effects gain map is fully transparent, at step 312, a corresponding pixel of the first gain map becomes the pixel of the second gain map.
[0034]Step 304 may include step 314 of determining that the given pixel of the effects gain map is semi-transparent. For example, step 314 may determine that the given pixel of the effects gain map has an alpha value of greater than zero and less than one. Responsive to determining that the given pixel of the effects gain map is semi-transparent, at step 316, the alpha value of the given pixel of the effects gain map is fitted onto a logarithmic curve and, at step 318, standard linear alpha blending is performed on the given pixel of the effects gain map to generate the given pixel of the second gain map. At step 320, the second gain map is encoded.
[0035]
[0036]The example method 400 includes, at step 410, overlaying the SDR image and the SDR effects image buffer to generate an edited SDR image. The example method 400 includes, at step 414, generating an edited HDR image based on the edited SDR image, the second gain map, and the gain map metadata. At step 418, the method 400 includes generating an output based on the edited HDR image.
[0037]At step 406, the method 400 includes rendering at least one overlay image to generate an SDR effects image buffer. At step 408, the method 400 includes applying a tone mapping function to the SDR effects image buffer to generate an HDR effects image buffer. At step 412, the method 400 includes generating an effects gain map using the SDR effects image buffer and the HDR effects image buffer. At step 416, the method 400 includes overlaying the effects gain map and the first gain map to generate a second gain map.
[0038]Additionally or alternatively, the method 400 may include step 420 of rendering at least one overlay image on an HDR effects image buffer, step 422 of applying an inverse tone mapping function to the HDR effects image buffer to generate the SDR effects image buffer, and step 412 of generating the effects gain map using the SDR effects image buffer and the HDR effects image buffer. The SDR effects image buffer generated in step 422 may be used in step 410 to generate the edited SDR image.
[0039]As described throughout herein, by converting an HDR image into SDR and then applying image overlays, users can retain the high-quality image overlay effects originally designed for SDR content while ensuring compatibility with the broader color and dynamic range associated with the HDR format. This approach allows apps and software, which were initially developed for SDR image processing, to be used effectively on HDR content without introducing visual artifacts or distortions, such as oversaturation or desaturation in certain color spaces. Consequently, this system enhances the viewing experience of published HDR images with added image overlay effects, maintaining the integrity of the visual quality of the original HDR images. Furthermore, the quality of photos created with HDR-enabled cameras can be increased to meet high standards of visual fidelity and consistency across a range of devices and platforms.
[0040]In some embodiments, the methods and processes described herein may be tied to a computing system of one or more computing devices. In particular, such methods and processes may be implemented as a computer-application program or service, an Application Program Interface (API), a library, and/or other computer-program product. In some embodiments, the methods and processes described herein may be tied to a computing system of one or more computing devices. In particular, such methods and processes may be implemented as a computer-application program or service, an API, a library, and/or other computer-program product.
[0041]
[0042]Computing system 500 includes processing circuitry 502, volatile memory 504, and a non-volatile storage device 506. Computing system 500 may optionally include a display subsystem 508, input subsystem 510, communication subsystem 512, and/or other components not shown in
[0043]Processing circuitry typically includes one or more logic processors, which are physical devices configured to execute instructions. For example, the logic processors may be configured to execute instructions that are part of one or more applications, programs, routines, libraries, objects, components, data structures, or other logical constructs. Such instructions may be implemented to perform a task, implement a data type, transform the state of one or more components, achieve a technical effect, or otherwise arrive at a desired result.
[0044]The logic processor may include one or more physical processors configured to execute software instructions. Additionally or alternatively, the logic processor may include one or more hardware logic circuits or firmware devices configured to execute hardware-implemented logic or firmware instructions. Processors of the processing circuitry 502 may be single-core or multi-core, and the instructions executed thereon may be configured for sequential, parallel, and/or distributed processing. Individual components of the processing circuitry optionally may be distributed among two or more separate devices, which may be remotely located and/or configured for coordinated processing. For example, aspects of the computing system disclosed herein may be virtualized and executed by remotely accessible, networked computing devices configured in a cloud-computing configuration. In such a case, these virtualized aspects are run on different physical logic processors of various different machines, it will be understood. These different physical logic processors of the different machines will be understood to be collectively encompassed by processing circuitry 502.
[0045]Non-volatile storage device 506 includes one or more physical devices configured to hold instructions executable by the processing circuitry to implement the methods and processes described herein. When such methods and processes are implemented, the state of non-volatile storage device 506 may be transformed—e.g., to hold different data.
[0046]Non-volatile storage device 506 may include physical devices that are removable and/or built in. Non-volatile storage device 506 may include optical memory, semiconductor memory, and/or magnetic memory, or other mass storage device technology. Non-volatile storage device 506 may include nonvolatile, dynamic, static, read/write, read-only, sequential-access, location-addressable, file-addressable, and/or content-addressable devices. It will be appreciated that non-volatile storage device 506 is configured to hold instructions even when power is cut to the non-volatile storage device 506.
[0047]Volatile memory 504 may include physical devices that include random access memory. Volatile memory 504 is typically utilized by processing circuitry 502 to temporarily store information during processing of software instructions. It will be appreciated that volatile memory 504 typically does not continue to store instructions when power is cut to the volatile memory 504.
[0048]Aspects of processing circuitry 502, volatile memory 504, and non-volatile storage device 506 may be integrated together into one or more hardware-logic components. Such hardware-logic components may include field-programmable gate arrays (FPGAs), program- and application-specific integrated circuits (PASIC/ASICs), program- and application-specific standard products (PSSP/ASSPs), system-on-a-chip (SOC), and complex programmable logic devices (CPLDs), for example.
[0049]The terms “module,” “program,” and “engine” may be used to describe an aspect of computing system 500 typically implemented in software by a processor to perform a particular function using portions of volatile memory, which function involves transformative processing that specially configures the processor to perform the function. Thus, a module, program, or engine may be instantiated via processing circuitry 502 executing instructions held by non-volatile storage device 506, using portions of volatile memory 504. It will be understood that different modules, programs, and/or engines may be instantiated from the same application, service, code block, object, library, routine, API, function, etc. Likewise, the same module, program, and/or engine may be instantiated by different applications, services, code blocks, objects, routines, APIs, functions, etc. The terms “module,” “program,” and “engine” may encompass individual or groups of executable files, data files, libraries, drivers, scripts, database records, etc.
[0050]When included, display subsystem 508 may be used to present a visual representation of data held by non-volatile storage device 506. The visual representation may take the form of a graphical user interface (GUI). As the herein described methods and processes change the data held by the non-volatile storage device, and thus transform the state of the non-volatile storage device, the state of display subsystem 508 may likewise be transformed to visually represent changes in the underlying data. Display subsystem 508 may include one or more display devices utilizing virtually any type of technology. Such display devices may be combined with processing circuitry 502, volatile memory 504, and/or non-volatile storage device 506 in a shared enclosure, or such display devices may be peripheral display devices.
[0051]When included, input subsystem 510 may comprise or interface with one or more user-input devices such as a keyboard, mouse, touch screen, camera, or microphone.
[0052]When included, communication subsystem 512 may be configured to communicatively couple various computing devices described herein with each other, and with other devices. Communication subsystem 512 may include wired and/or wireless communication devices compatible with one or more different communication protocols. As non-limiting examples, the communication subsystem may be configured for communication via a wired or wireless local- or wide-area network, broadband cellular network, etc. In some embodiments, the communication subsystem may allow computing system 500 to send and/or receive messages to and/or from other devices via a network such as the Internet.
[0053]The following paragraphs provide additional description of the subject matter of the present disclosure. One aspect provides a computing system for applying image overlays onto a High Dynamic Range (HDR) image, the computing system comprising processing circuitry and memory storing instructions that, when executed, cause the processing circuitry to receive an HDR image, generate a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image, render at least one overlay image to generate an SDR effects image buffer and an effects gain map, overlay the effects gain map and the first gain map to generate a second gain map, overlay the SDR image and the SDR effects image buffer to generate an edited SDR image, generate an edited HDR image based on the edited SDR image and the second gain map, and generate an output based on the edited HDR image.
[0054]In this aspect, additionally or alternatively, the processing circuitry may be further caused to render the at least one overlay image on the SDR effects image buffer, apply a tone mapping function to the SDR effects image buffer to generate an HDR effects image buffer, and generate the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
[0055]In this aspect, additionally or alternatively, the edited HDR image may be outputted for rendering on a display, and the tone mapping function may be configured to determine an adjustment factor of a given pixel of the SDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
[0056]In this aspect, additionally or alternatively, when the SDR image and the SDR effects image buffer are overlaid together, when a given pixel of the SDR effects image buffer is opaque, the given pixel of the SDR effects image buffer may become a given pixel of the edited SDR image, when the given pixel of the SDR effects image buffer is fully transparent, a corresponding pixel of the SDR image may become the given pixel of the edited SDR image, and when the given pixel of the SDR effects image buffer is semi-transparent, standard linear alpha blending may be performed on the given pixel of the SDR effects image buffer to generate the given pixel of the edited SDR image.
[0057]In this aspect, additionally or alternatively, the processing circuitry may be further caused to render the at least one overlay image on an HDR effects image buffer, apply an inverse tone mapping function to the HDR effects image buffer to generate the SDR effects image buffer, and generate the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
[0058]In this aspect, additionally or alternatively, the edited HDR image may be outputted for rendering on a display, and the inverse tone mapping function may be configured to determine an adjustment factor of a given pixel of the HDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
[0059]In this aspect, additionally or alternatively, when the effects gain map and the first gain map are overlaid together, when a given pixel of the effects gain map is opaque, the given pixel of the effects gain map may become a given pixel of the second gain map, when the given pixel of the effects gain map is fully transparent, a corresponding pixel of the first gain map may become the given pixel of the second gain map, and when the given pixel of the effects gain map is semi-transparent, an alpha value of the given pixel of the effects gain map may be fitted to a logarithmic curve, and standard linear alpha blending may be further performed on the given pixel of the effects gain map to generate the given pixel of the second gain map.
[0060]In this aspect, additionally or alternatively, the at least one overlay image may include at least one of a sticker, an emoji, a virtual prop, text effects, a face mask, an object, or particle effects.
[0061]In this aspect, additionally or alternatively, a tone mapping algorithm may be applied to each pixel in the HDR image to further generate gain map metadata.
[0062]In this aspect, additionally or alternatively, the gain map metadata may describe a dynamic range and a resolution of the HDR image.
[0063]Another aspect provides a computing method for applying image overlays onto a High Dynamic Range (HDR) image, the computing method comprising receiving an HDR image, generating a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image, rendering at least one overlay image to generate an SDR effects image buffer and an effects gain map, overlaying the effects gain map and the first gain map to generate a second gain map, overlaying the SDR image and the SDR effects image buffer to generate an edited SDR image, generating an edited HDR image based on the edited SDR image and the second gain map, and generating an output based on the edited HDR image.
[0064]In this aspect, additionally or alternatively, the computing method may further comprise rendering the at least one overlay image on the SDR effects image buffer, applying a tone mapping function to the SDR effects image buffer to generate an HDR effects image buffer, and generating the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
[0065]In this aspect, additionally or alternatively, the edited HDR image may be outputted for rendering on a display, and the tone mapping function may be configured to determine an adjustment factor of a given pixel of the SDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
[0066]In this aspect, additionally or alternatively, when the SDR image and the SDR effects image buffer are overlaid together, when a given pixel of the SDR effects image buffer is opaque, the given pixel of the SDR effects image buffer may become a given pixel of the edited SDR image, when the given pixel of the SDR effects image buffer is fully transparent, a corresponding pixel of the SDR image may become the given pixel of the edited SDR image, and when the given pixel of the SDR effects image buffer is semi-transparent, standard linear alpha blending may be performed on the given pixel of the SDR effects image buffer to generate the given pixel of the edited SDR image.
[0067]In this aspect, additionally or alternatively, the computing method may further comprise rendering the at least one overlay image on an HDR effects image buffer, applying an inverse tone mapping function to the HDR effects image buffer to generate the SDR effects image buffer, and generating the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
[0068]In this aspect, additionally or alternatively, the edited HDR image may be outputted for rendering on a display, and the inverse tone mapping function may be configured to determine an adjustment factor of a given pixel of the HDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
[0069]In this aspect, additionally or alternatively, when the effects gain map and the first gain map are overlaid together, when a given pixel of the effects gain map is opaque, the given pixel of the effects gain map may become a given pixel of the second gain map, when the given pixel of the effects gain map is fully transparent, a corresponding pixel of the first gain map may become the given pixel of the second gain map, and when the given pixel of the effects gain map is semi-transparent, an alpha value of the given pixel of the effects gain map may be fitted to a logarithmic curve, and standard linear alpha blending may be further performed on the given pixel of the effects gain map to generate the given pixel of the second gain map.
[0070]In this aspect, additionally or alternatively, the at least one overlay image includes at least one of a sticker, an emoji, a virtual prop, text effects, a face mask, an object, or particle effects.
[0071]In this aspect, additionally or alternatively, a tone mapping algorithm may be applied to each pixel in the HDR image to further generate gain map metadata.
[0072]Another aspect provides a computing system for applying image overlays onto a High Dynamic Range (HDR) image, the computing system comprising processing circuitry and memory storing instructions that, when executed, cause the processing circuitry to receive the HDR image, generate a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image, render at least one overlay image to generate an SDR effects image buffer, use a tone mapping function to generate an effects gain map, overlay the effects gain map and the first gain map to generate a second gain map, overlay the SDR image and the SDR effects image buffer to generate an edited SDR image, generate an edited HDR image based on the edited SDR image and the second gain map, and output the edited HDR image for rendering on a display, wherein the tone mapping function is configured to determine an adjustment factor of a given pixel of the SDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
[0073]It will be understood that the configurations and/or approaches described herein are exemplary in nature, and that these specific embodiments or examples are not to be considered in a limiting sense, because numerous variations are possible. The specific routines or methods described herein may represent one or more of any number of processing strategies. As such, various acts illustrated and/or described may be performed in the sequence illustrated and/or described, in other sequences, in parallel, or omitted. Likewise, the order of the above-described processes may be changed.
[0074]The subject matter of the present disclosure includes all novel and non-obvious combinations and sub-combinations of the various processes, systems and configurations, and other features, functions, acts, and/or properties disclosed herein, as well as any and all equivalents thereof.
Claims
1. A computing system for applying image overlays onto a High Dynamic Range (HDR) image, the computing system comprising:
processing circuitry and memory storing instructions that, when executed, cause the processing circuitry to:
receive an HDR image;
generate a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image;
render at least one overlay image to generate an SDR effects image buffer and an effects gain map;
overlay the effects gain map and the first gain map to generate a second gain map;
overlay the SDR image and the SDR effects image buffer to generate an edited SDR image;
generate an edited HDR image based on the edited SDR image and the second gain map; and
generate an output based on the edited HDR image.
2. The computing system of
render the at least one overlay image on the SDR effects image buffer;
apply a tone mapping function to the SDR effects image buffer to generate an HDR effects image buffer; and
generate the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
3. The computing system of
the edited HDR image is outputted for rendering on a display; and
the tone mapping function is configured to determine an adjustment factor of a given pixel of the SDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
4. The computing system of
when a given pixel of the SDR effects image buffer is opaque, the given pixel of the SDR effects image buffer becomes a given pixel of the edited SDR image;
when the given pixel of the SDR effects image buffer is fully transparent, a corresponding pixel of the SDR image becomes the given pixel of the edited SDR image; and
when the given pixel of the SDR effects image buffer is semi-transparent, standard linear alpha blending is performed on the given pixel of the SDR effects image buffer to generate the given pixel of the edited SDR image.
5. The computing system of
render the at least one overlay image on an HDR effects image buffer;
apply an inverse tone mapping function to the HDR effects image buffer to generate the SDR effects image buffer; and
generate the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
6. The computing system of
the edited HDR image is outputted for rendering on a display; and
the inverse tone mapping function is configured to determine an adjustment factor of a given pixel of the HDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
7. The computing system of
when a given pixel of the effects gain map is opaque, the given pixel of the effects gain map becomes a given pixel of the second gain map;
when the given pixel of the effects gain map is fully transparent, a corresponding pixel of the first gain map becomes the given pixel of the second gain map; and
when the given pixel of the effects gain map is semi-transparent, an alpha value of the given pixel of the effects gain map is fitted to a logarithmic curve, and standard linear alpha blending is further performed on the given pixel of the effects gain map to generate the given pixel of the second gain map.
8. The computing system of
9. The computing system of
a tone mapping algorithm is applied to each pixel in the HDR image to further generate gain map metadata.
10. The computing system of
11. A computing method for applying image overlays onto a High Dynamic Range (HDR) image, the computing method comprising:
receiving an HDR image;
generating a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image;
rendering at least one overlay image to generate an SDR effects image buffer and an effects gain map;
overlaying the effects gain map and the first gain map to generate a second gain map;
overlaying the SDR image and the SDR effects image buffer to generate an edited SDR image;
generating an edited HDR image based on the edited SDR image and the second gain map; and
generating an output based on the edited HDR image.
12. The computing method of
rendering the at least one overlay image on the SDR effects image buffer;
applying a tone mapping function to the SDR effects image buffer to generate an HDR effects image buffer; and
generating the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
13. The computing method of
the edited HDR image is outputted for rendering on a display; and
the tone mapping function is configured to determine an adjustment factor of a given pixel of the SDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
14. The computing method of
when a given pixel of the SDR effects image buffer is opaque, the given pixel of the SDR effects image buffer becomes a given pixel of the edited SDR image;
when the given pixel of the SDR effects image buffer is fully transparent, a corresponding pixel of the SDR image becomes the given pixel of the edited SDR image; and
when the given pixel of the SDR effects image buffer is semi-transparent, standard linear alpha blending is performed on the given pixel of the SDR effects image buffer to generate the given pixel of the edited SDR image.
15. The computing method of
rendering the at least one overlay image on an HDR effects image buffer;
applying an inverse tone mapping function to the HDR effects image buffer to generate the SDR effects image buffer; and
generating the effects gain map using the SDR effects image buffer and the HDR effects image buffer.
16. The computing method of
the edited HDR image is outputted for rendering on a display; and
the inverse tone mapping function is configured to determine an adjustment factor of a given pixel of the HDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.
17. The computing method of
when a given pixel of the effects gain map is opaque, the given pixel of the effects gain map becomes a given pixel of the second gain map;
when the given pixel of the effects gain map is fully transparent, a corresponding pixel of the first gain map becomes the given pixel of the second gain map; and
when the given pixel of the effects gain map is semi-transparent, an alpha value of the given pixel of the effects gain map is fitted to a logarithmic curve, and standard linear alpha blending is further performed on the given pixel of the effects gain map to generate the given pixel of the second gain map.
18. The computing method of
19. The computing method of
a tone mapping algorithm is applied to each pixel in the HDR image to further generate gain map metadata.
20. A computing system for applying image overlays onto a High Dynamic Range (HDR) image, the computing system comprising:
processing circuitry and memory storing instructions that, when executed, cause the processing circuitry to:
receive the HDR image;
generate a first gain map and a Standard Dynamic Range (SDR) image based on the received HDR image;
render at least one overlay image to generate an SDR effects image buffer;
use a tone mapping function to generate an effects gain map;
overlay the effects gain map and the first gain map to generate a second gain map;
overlay the SDR image and the SDR effects image buffer to generate an edited SDR image;
generate an edited HDR image based on the edited SDR image and the second gain map; and
output the edited HDR image for rendering on a display, wherein
the tone mapping function is configured to determine an adjustment factor of a given pixel of the SDR effects image buffer based on a peak luminance of the display, and scale each color component of the given pixel based on the adjustment factor.