Method and apparatus for generating high-dynamic-range image, and electronic device
Abstract
A method and apparatus for generating a high-dynamic-range image, storage medium, and electronic device are provided. The method comprises: obtaining a long-exposure visible-light image, a long-exposure near-infrared image, a short-exposure visible-light image, and a short-exposure near-infrared image of a target scene, wherein the short-exposure near-infrared image and the long-exposure near-infrared image are not overexposed, and bright regions of the short-exposure visible-light image are not overexposed; performing brightness reconstruction on an overexposed region of the long-exposure visible-light image based on the long-exposure near-infrared image, the short-exposure visible-light image, and the short-exposure near-infrared image; performing chromaticity reconstruction on the overexposed region of the long-exposure visible-light image based on the short-exposure visible-light image; and generating the high-dynamic-range image based on the long-exposure visible-light image, and results of the brightness reconstruction and the chromaticity reconstruction for the long-exposure visible-light image. In the obtained high-dynamic-range image, both bright and dark regions can be clearly imaged without ghosting.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for generating a high-dynamic-range image, comprising: obtaining a long-exposure visible-light image, a long-exposure near-infrared image, a short-exposure visible-light image, and a short-exposure near-infrared image of a target scene, wherein the short-exposure near-infrared image and the long-exposure near-infrared image are not overexposed, wherein bright regions of the short-exposure visible-light image are not overexposed, wherein the long-exposure visible-light image and the long-exposure near-infrared image spatially correspond to each other, and wherein the short-exposure visible-light image and the short-exposure near-infrared image spatially correspond to each other; performing brightness reconstruction on an overexposed region of the long-exposure visible-light image based on the long-exposure near-infrared image, the short-exposure visible-light image, and the short-exposure near-infrared image; performing chromaticity reconstruction on the overexposed region of the long-exposure visible-light image based on the short-exposure visible-light image; and generating the high-dynamic-range image based on the long-exposure visible-light image, and results of the brightness reconstruction and the chromaticity reconstruction for the long-exposure visible-light image.
- Claim 2Depends on #1
The method of claim 1, wherein performing brightness reconstruction on an overexposed region of the long-exposure visible-light image based on the long-exposure near-infrared image, the short-exposure visible-light image, and the short-exposure near-infrared image comprises: obtaining a mapping relationship between brightness of the short-exposure visible-light image and near-infrared intensity of the short-exposure near-infrared image as a first mapping relationship; obtaining a spatial matching relationship between the long-exposure near-infrared image and the short-exposure near-infrared image; obtaining an image block correspondence between the long-exposure visible-light image and the short-exposure visible-light image as a second mapping relationship, based on the spatial matching relationship between the long-exposure near-infrared image and the short-exposure near-infrared image; obtaining a mapping relationship between brightness of the long-exposure visible-light image and near-infrared intensity of the long-exposure near-infrared image as a third mapping relationship, based on the first mapping relationship and the second mapping relationship; and reconstructing brightness of the overexposed region of the long-exposure visible-light image based on the third mapping relationship and the near-infrared intensity of the long-exposure near-infrared image.
- Claim 3Depends on #2
The method of claim 2, wherein reconstructing the brightness of the overexposed region of the long-exposure visible-light image comprises: mapping a gradient of an overexposed region of the long-exposure near-infrared image to a gradient of the overexposed region of the long-exposure visible-light image based on the third mapping relationship, wherein the overexposed region of the long-exposure near-infrared image corresponds to the overexposed region of the long-exposure visible-light image; obtaining an overall gradient of the long-exposure visible-light image based on the gradient of the overexposed region of the long-exposure visible-light image and a gradient of a non-overexposed region of the long-exposure visible-light image; and reconstructing the brightness of the overexposed region of the long-exposure visible-light image based on the overall gradient of the long-exposure visible-light image.
- Claim 4Depends on #2
The method of claim 2, wherein obtaining a mapping relationship between brightness of the short-exposure visible-light image and near-infrared intensity of the short-exposure near-infrared image as a first mapping relationship comprises: dividing a short-exposure scene into a plurality of regions based on the short-exposure visible-light image and the short-exposure near-infrared image; and obtaining, for each one of the plurality of regions, the first mapping relationship of the region based on the brightness of the short-exposure visible-light image of the region and the near-infrared intensity of the short-exposure near-infrared image of the region.
- Claim 5Depends on #4
The method of claim 4, wherein for each one of the plurality of regions, the first mapping relationship corresponding to the region is given by: V=a × N+b, wherein V denotes visible-light brightness of a pixel in the region, N denotes near-infrared intensity of the pixel in the region, a and b are mapping parameters dependent on V and N.
- Claim 6Depends on #4
The method of claim 4, wherein for each one of the plurality of regions, the first mapping relationship corresponding to the region is given by: V=a × N, wherein V denotes visible-light brightness of a pixel in the region, N denotes near-infrared intensity of the pixel in the region, and a is a mapping parameter, and wherein the mapping parameter is dependent on V and N.
- Claim 7Depends on #4
The method of claim 4, wherein dividing a short-exposure scene into a plurality of regions comprises: dividing each channel of the short-exposure visible-light image to obtain a first division result; dividing the short-exposure near-infrared image to obtain a second division result; and obtaining a combined division result of the short-exposure scene based on the first division result and the second division result.
- Claim 8Depends on #7
The method of claim 7, wherein dividing each channel of the short-exposure visible-light image comprises: obtaining a multilevel grayscale histogram of each channel of the short-exposure visible-light image; and obtaining grayscale peaks of the multilevel grayscale histogram of the channel, and dividing pixels of the channel using valleys between adjacent grayscale peaks as division boundaries.
- Claim 9Depends on #1
The method of claim 1, wherein performing chromaticity reconstruction on an overexposed region of the long-exposure visible-light image based on the short-exposure visible-light image comprises: obtaining a block of the short-exposure visible-light image corresponding to the overexposed region of the long-exposure visible-light image; and performing the chromaticity reconstruction on the overexposed region of the long-exposure visible-light image based on chromaticity of the block of the short-exposure visible-light image.
- Claim 10Depends on #1
The method of claim 1, wherein obtaining the long-exposure visible-light image, the long-exposure near-infrared image, the short-exposure visible-light image, and the short-exposure near-infrared image comprises: obtaining a long-exposure raw image file and a short-exposure raw image file, wherein the long-exposure raw image file and the short-exposure raw image file are acquired by an image acquisition device using different exposure parameters for the target scene; and demosaicing the long-exposure raw image file to obtain the long-exposure visible-light image and the long-exposure near-infrared image, and demosaicing the short-exposure raw image file to obtain the short-exposure visible-light image and the short-exposure near-infrared image.
- Claim 11Depends on #10
The method of claim 10, further comprising: adjusting the exposure parameters of the image acquisition device so that the short-exposure visible-light image and the long-exposure near-infrared image are not overexposed, and so that the bright regions of the short-exposure visible-light image are not overexposed.
- Claim 12Depends on #1
The method of claim 1, wherein the short-exposure near-infrared image and the long-exposure near-infrared image are not overexposed, such that information of most regions of the short-exposure near-infrared image and most regions of the long-exposure near-infrared image is capable of being captured, and such that near-infrared image information of regions of the short-exposure near-infrared image and the long-exposure near-infrared image corresponding to the overexposed region of the long-exposure visible-light image is retained; wherein the bright regions of the short-exposure visible-light image are not overexposed such that brightness information and chromaticity information of the bright regions are retained.
- Claim 13Depends on #1
The method of claim 1, wherein the long-exposure visible-light image has a same spatial relationship with the long-exposure near-infrared image, and wherein the short-exposure visible-light image has a same spatial relationship with the short-exposure near-infrared image.
- Claim 14Independent Claim
An apparatus for generating a high-dynamic-range image, comprising: an image acquisition module, configured to obtain a long-exposure visible-light image, a long-exposure near-infrared image, a short-exposure visible-light image, and a short-exposure near-infrared image of a target scene, wherein the short-exposure near-infrared image and the long-exposure near-infrared image are not overexposed, wherein bright regions of the short-exposure visible-light image are not overexposed, wherein the long-exposure visible-light image and the long-exposure near-infrared image spatially correspond to each other, and wherein the short-exposure visible-light image and the short-exposure near-infrared image spatially correspond to each other; a brightness reconstruction module, configured to perform brightness reconstruction on an overexposed region of the long-exposure visible-light image based on the long-exposure near-infrared image, the short-exposure visible-light image, and the short-exposure near-infrared image; a chromaticity reconstruction module, configured to perform chromaticity reconstruction on the overexposed region of the long-exposure visible-light image based on the short-exposure visible-light image; and an image reconstruction module, configured to generate the high-dynamic-range image based on the long-exposure visible-light image, and results of the brightness reconstruction and the chromaticity reconstruction for the long-exposure visible-light image.
- Claim 15Depends on #14
The apparatus of claim 14, wherein the brightness reconstruction module is configured to: obtain a mapping relationship between brightness of the short-exposure visible-light image and near-infrared intensity of the short-exposure near-infrared image as a first mapping relationship; obtain a spatial matching relationship between the long-exposure near-infrared image and the short-exposure near-infrared image; obtain an image block correspondence between the long-exposure visible-light image and the short-exposure visible-light image as a second mapping relationship, based on the spatial matching relationship between the long-exposure near-infrared image and the short-exposure near-infrared image; obtain a mapping relationship between brightness of the long-exposure visible-light image and near-infrared intensity of the long-exposure near-infrared image as a third mapping relationship, based on the first mapping relationship and the second mapping relationship; and reconstruct brightness of the overexposed region of the long-exposure visible-light image based on the third mapping relationship and the near-infrared intensity of the long-exposure near-infrared image.
- Claim 16Depends on #14
The apparatus of claim 14, wherein the chromaticity reconstruction module is configured to: obtain a block of the short-exposure visible-light image corresponding to the overexposed region of the long-exposure visible-light image; and perform the chromaticity reconstruction on the overexposed region of the long-exposure visible-light image based on chromaticity of the block of the short-exposure visible-light image.
- Claim 17Depends on #14
The apparatus of claim 14, wherein the image acquisition module is configured to: obtain a long-exposure raw image file and a short-exposure raw image file, wherein the long-exposure raw image file and the short-exposure raw image file are acquired by an image acquisition device using different exposure parameters for the target scene; and perform a demosaic on the long-exposure raw image file to obtain the long-exposure visible-light image and the long-exposure near-infrared image, and perform a demosaic on the short-exposure raw image file to obtain the short-exposure visible-light image and the short-exposure near-infrared image.
- Claim 18Depends on #17
The apparatus of claim 17, wherein the image acquisition module is further configured to: adjust the exposure parameters of the image acquisition device so that the short-exposure visible-light image and the long-exposure near-infrared image are not overexposed, and so that the bright regions of the short-exposure visible-light image are not overexposed, wherein the short-exposure near-infrared image and the long-exposure near-infrared image are not overexposed, such that information of most regions of the short-exposure near-infrared image and most regions of the long-exposure near-infrared image is capable of being captured, and such that near-infrared image information of regions of the short-exposure near-infrared image and the long-exposure near-infrared image corresponding to the overexposed region of the long-exposure visible-light image is retained, and wherein the bright regions of the short-exposure visible-light image are not overexposed such that brightness information and chromaticity information of the bright regions are retained.
- Claim 19Independent Claim
An electronic device, comprising: a memory, configured to store a computer program; and a processor, configured to call the computer program to: obtain a long-exposure visible-light image, a long-exposure near-infrared image, a short-exposure visible-light image, and a short-exposure near-infrared image of a target scene, wherein the short-exposure near-infrared image and the long-exposure near-infrared image are not overexposed, wherein bright regions of the short-exposure visible-light image are not overexposed, wherein the long-exposure visible-light image and the long-exposure near-infrared image spatially correspond to each other, and wherein the short-exposure visible-light image and the short-exposure near-infrared image spatially correspond to each other; perform brightness reconstruction on an overexposed region of the long-exposure visible-light image based on the long-exposure near-infrared image, the short-exposure visible-light image, and the short-exposure near-infrared image; perform chromaticity reconstruction on the overexposed region of the long-exposure visible-light image based on the short-exposure visible-light image; and generate the high-dynamic-range image based on the long-exposure visible-light image, and results of the brightness reconstruction and the chromaticity reconstruction for the long-exposure visible-light image.
- Claim 20Depends on #19
The electronic device of claim 19, wherein the processor is further configured to call the computer program to: obtain a mapping relationship between brightness of the short-exposure visible-light image and near-infrared intensity of the short-exposure near-infrared image as a first mapping relationship; obtain a spatial matching relationship between the long-exposure near-infrared image and the short-exposure near-infrared image; obtain an image block correspondence between the long-exposure visible-light image and the short-exposure visible-light image as a second mapping relationship, based on the spatial matching relationship between the long-exposure near-infrared image and the short-exposure near-infrared image; obtain a mapping relationship between brightness of the long-exposure visible-light image and near-infrared intensity of the long-exposure near-infrared image as a third mapping relationship, based on the first mapping relationship and the second mapping relationship; and reconstruct brightness of the overexposed region of the long-exposure visible-light image based on the third mapping relationship and the near-infrared intensity of the long-exposure near-infrared image.
Technical Overview & Description
CROSS REFERENCE TO RELATED APPLICATION The present application claims the benefit of priority to Chinese Patent Application No. CN 202211386752.7, entitled “ METHOD AND APPARATUS FOR GENERATING HIGH-DYNAMIC-RANGE IMAGE, STORAGE MEDIUM, AND ELECTRONIC DEVICE ” , filed with CNIPA on Nov. 7, 2022, the disclosure of which is incorporated herein by reference in its entirety for all purposes. FIELD OF THE INVENTION The present disclosure generally relates to image generating methods, and in particular to a method and an apparatus for generating a high-dynamic-range image, and an electronic device. BACKGROUND OF THE INVENTION High Dynamic Range, or HDR, is a technology used to create images that have a high level of realism, which is achieved by blending images using computer algorithms. This technology is widely utilized in various fields such as computer game development, medical imaging, remote sensing image processing, and computer graphics. The term “ dynamic range ” in this context refers to the ratio between the maximum and minimum brightness values in an image. A larger dynamic range means that the image can display more details of the scene, resulting in a more realistic visual effect. In traditional imaging, a pixel's brightness is stored in an 8-bit space, which means there are only 256 levels of brightness. This often falls short in situations where a high level of detail is required. In contrast, high-dynamic-range images use multiple bytes of floating-point numbers to store the brightness value of a pixel. This allows for a comprehensive representation of the high dynamic range found in natural scenes. SUMMARY OF THE INVENTION The present disclosure provides a method and an apparatus for generating a high-dynamic-range image, a storage medium, and an electronic device, which are capable of generating clear high-dynamic-range images. A first aspect of the present disclosure provides a method for generating a high-dynamic-range image, comprising: obtaining a lo
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (3)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- MultiSpectral Bilateral Video Fusion (Year: 2007).