High dynamic range imaging method based on multi-scale progressive reconstruction network

Through the multi-scale progressive reconstruction network and the dual-stream exposure recovery module, the ghost, blur and distortion problems in high dynamic range imaging under large-scale motion and extreme exposure are solved, and high-quality HDR imaging is achieved.

CN118799230AActive Publication Date: 2024-10-18NORTHWEST NORMAL UNIVERSITY
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410639970.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-18
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing high dynamic range imaging technology is difficult to effectively remove ghosting, blur and distortion in large-scale motion and extreme exposure scenes, resulting in low HDR imaging quality.

Method used

Using a method based on multi-scale progressive reconstruction network, a multi-scale progressive reconstruction network MPRNet is constructed, including the encoder, multi-scale progressive reconstruction module MSPRM and dual-stream exposure recovery module DERM. Through multi-scale progressive reconstruction and global context modeling, suppression Motion ghosting, exposure recovery and content reconstruction through a dual-stream structure, adaptive weighting to improve HDR imaging quality.

Benefits of technology

It effectively suppresses ghosts caused by large-scale motion, restores overexposed areas, reconstructs rich texture details, and improves HDR imaging quality in dynamic scenes, significantly better than existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799230A_ABST
    Figure CN118799230A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of high dynamic range imaging, and particularly relates to a multi-scale progressive reconstruction network-based high dynamic range imaging method, which comprises the following steps of: constructing a multi-scale progressive reconstruction network MPRNet which comprises an encoder module, a multi-scale progressive reconstruction module MSPRM, a double-flow exposure recovery module DERM and a decoder module; the encoder module is used for carrying out feature extraction to obtain corresponding feature maps E1, E2 and E3; the MSPRM is used for performing multi-scale progressive reconstruction and global context modeling on the feature maps E1, E2 and E3 to obtain a fusion feature # imgabs0 # DERM for performing exposure recovery of an overexposure region on the fusion feature # imgabs1 # to obtain an exposure recovery feature Fexpo; the feature fusion module is also used for completing and repairing content details of the fusion feature # imgabs2 # to obtain a content reconstruction feature Frec; self-adaptive weighting is carried out, and an optimization recovery feature Ffuse is obtained; and the decoder is used for decoding the optimized recovery feature Ffused to obtain HDR image prediction # imgabs3 #. The method can solve the problems of ghosting, blurring, distortion and the like generated in large-scale motion and extreme exposure scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of high dynamic range imaging, and in particular relates to a high dynamic range imaging method based on a multi-scale progressive reconstruction network. Background Art

[0002] High dynamic range imaging (HDR) aims to generate images with a wider dynamic range and more realistic details by fusing multiple low dynamic range (LDR) images with different exposures. HDR imaging technology is widely used in computational photography, computer vision, and graphics, such as scene understanding, photo rendering, image and video editing, etc. However, in actual shooting, due to camera shake and the presence of moving objects, LDR images are often not perfectly aligned, which leads to ghosting artifacts in the reconstructed HDR results, seriously affecting the visual presentation effect. Therefore, how to achieve high-quality HDR imaging without ghosting in dynamic scenes has become an urgent problem to be solved.

[0003] Existing mainstream ghost removal HDR methods are mainly divided into two categories: alignment-based methods and learning-based methods.

[0004] Alignment-based methods align LDR images through global transformations (such as homography) or local transformations (such as optical flow) and then fuse them into HDR. However, accurate alignment in complex dynamic scenes is a difficult problem in itself, especially for areas where content information is lost due to exposure saturation. In addition, over-alignment in the image spatial domain may also cause loss of detailed textures.

[0005] Learning-based methods use deep neural networks in a data-driven way to obtain feature representations and fusion strategies for ghost removal. They alleviate the alignment problem to a certain extent and achieve good performance. However, when encountering large-scale motion and overexposure, the HDR results produced by existing methods still have obvious quality defects such as ghosting, blurring, and distortion. There are two main reasons for this: 1) The receptive field of the convolution operation is limited, and it is difficult to model long-distance dependencies to cope with large-scale motion; 2) There is a lack of special processing for extreme exposure areas, resulting in the inability to recover from overexposure.

[0006] Therefore, how to solve the problems of ghosting, blurring, distortion, etc. caused by large-scale motion and extreme exposure scenes, and achieve high-quality HDR imaging in dynamic scenes has become a problem that needs to be solved urgently. Summary of the invention

[0007] In view of the above-mentioned deficiencies in the prior art, the present invention provides a high dynamic range imaging method based on a multi-scale progressive reconstruction network, which can solve the problems of ghosting, blurring, distortion, etc. caused by large-scale motion and extreme exposure scenes, and achieve high-quality HDR imaging in dynamic scenes.

[0008] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0009] A high dynamic range imaging method based on a multi-scale progressive reconstruction network comprises the following steps:

[0010] S1. Construct a multi-scale progressive reconstruction network MPRNet, including an encoder module, a multi-scale progressive reconstruction module MSPRM, a dual-stream exposure recovery module DERM, and a decoder module;

[0011] The encoder module is used to extract features from the input LDR images of three different exposure levels to obtain corresponding feature maps E1, E2, and E3;

[0012] The multi-scale progressive reconstruction module MSPRM is used to perform multi-scale progressive reconstruction and global context modeling on the feature maps E1, E2, and E3 to obtain the fusion feature

[0013] The dual-stream exposure recovery module DERM is used to fusion features Perform exposure recovery on the overexposed area to obtain the exposure recovery feature F expo ; Also used to fusion features Complete and repair the content details to obtain the content reconstruction feature F rec ; Also used for exposure recovery feature F expo and content reconstruction feature F rec Perform adaptive weighting to obtain the optimized recovery feature F fused ;

[0014] The decoder is used to optimize the recovery feature F fused Decode and get HDR image prediction

[0015] S2, training the constructed multi-scale progressive reconstruction network MPRNet;

[0016] S3. Use the trained multi-scale progressive reconstruction network MPRNet for actual high dynamic range imaging processing.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] This method uses the constructed multi-scale progressive reconstruction network MPRNet for high dynamic range imaging. In the process of high dynamic range imaging, the multi-scale progressive reconstruction module MSPRM will perform multi-scale progressive reconstruction and global context modeling on the feature maps E1, E2, and E3 to obtain the fusion feature This cross-scale and cross-exposure progressive fusion method can effectively suppress motion ghosting and provide high-quality feature representation for subsequent refined restoration. The dual-stream exposure recovery module DERM will perform exposure recovery and content reconstruction, and use the fusion of the two features. This dual-stream structure and joint supervision can better restore overexposed areas, while reconstructing rich texture details and improving HDR imaging quality. With this setting, high-quality HDR imaging in dynamic scenes can be effectively guaranteed.

[0019] In summary, the present invention can solve the problems of ghosting, blurring, distortion, etc. produced in large-scale motion and extreme exposure scenes, and achieve high-quality HDR imaging in dynamic scenes.

[0020] Preferably, the workflow of the multi-scale progressive reconstruction module MSPRM includes:

[0021] First, a feature pyramid containing three scales is created by downsampling

[0022] Next, for the i-th feature of the s-th scale in the t-th stage By embedding CE modules into the context Perform global context modeling and output enhanced features

[0023]

[0024] Among them, NL(·) represents context modeling, which aggregates global context information by calculating the correlation between any two positions;

[0025] Afterwards, the scale selection module SSM is used to fuse the features of the same level and higher level to the current scale to obtain the cross-scale fused features.

[0026] Then, the separable large core attention mechanism is used to fuse the features at the same level to obtain the feature representation of the next stage.

[0027] Then, The finely aligned output features are obtained by sequentially passing through the CE module, SSM module, and convolutional attention block CA.

[0028]

[0029] Finally, the output features of the original scale Passed to the dual-stream exposure recovery module DERM.

[0030] Thus, the output features It encodes local to global multi-scale motion information, providing rich feature representation for high-quality HDR image reconstruction. MSPRM introduces a context embedding module at each scale of the feature pyramid to model global dependencies, fuses the semantic information of the same level and higher levels to the current scale through the scale selection mechanism, and then realizes the adaptive weighting of different exposure features in the same scale through attention, making the most of the complementary information between multi-scale and multi-frame exposure images. This cross-scale and cross-exposure progressive fusion method can effectively suppress motion ghosting and provide high-quality feature representation for subsequent refined restoration.

[0031] Preferably, the input of SSM includes an upsampling branch and a fusion branch; the upsampling branch combines high-level features Map to the sth scale to obtain features The fusion branch combines the same level features Passed to the output; the outputs of the two branches are fused through the SSM module to obtain the cross-scale fused features

[0032]

[0033]

[0034] Preferably, when the SSM module fuses the outputs of the two branches, it obtains the feature map by global average pooling. The global response and nonlinear mapping weight maps of two different scales are obtained through 1×1 convolution and softmax

[0035] in, Stands for element-wise multiplication.

[0036] In this way, through this vertical propagation, motion priors can be extracted from higher-level semantic features to guide feature screening to adaptively adjust the contribution of features at different scales.

[0037] Preferably, DERM includes an exposure recovery subnetwork for exposure recovery, and a content reconstruction subnetwork for content reconstruction; the exposure recovery subnetwork has the same structure as the content reconstruction subnetwork and shares the same feature encoder.

[0038] This symmetrical design enables the network to treat exposure recovery and content reconstruction as equally important tasks, and the separated two-stream design helps to decouple the complexity of a single learning task.

[0039] Preferably, the working process of the dual-stream exposure recovery module DERM includes:

[0040] First, a convolutional block is used to fuse the features. Compression is performed to reduce the number of channels from 3n feat Down to n feat , get the encoding feature F E :

[0041]

[0042] Afterwards, f E At the same time, it is sent to the exposure recovery subnetwork and the content reconstruction subnetwork for exposure recovery and content reconstruction respectively, and the exposure recovery feature F is obtained. expo and content reconstruction feature F rec : Among them, the exposure recovery self-network and the content reconstruction self-network are both RLFN networks;

[0043] F expo =RLFN(F E );

[0044] F rec =RLFN(F E );

[0045] Where RLFN(·) represents the RLFN subnetwork;

[0046] Then, another convolutional block is used to recover the exposure feature F expo and content reconstruction feature F rec Perform adaptive weighting to obtain the optimized recovery feature F fused :

[0047] F fused =Conv(F expo ,F rec ).

[0048] With this setup, the dual-stream exposure recovery module DERM simultaneously performs exposure recovery and content reconstruction through two symmetrical sub-networks, and uses convolutional blocks to adaptively fuse the features of the two branches. This dual-stream structure can better restore overexposed areas while reconstructing rich texture details and improving HDR imaging quality.

[0049] Preferably, the decoder module includes decoder 1 and decoder 2;

[0050] Decoder 1 is used to transform F through a 3×3 convolutional layer and a Sigmoid function. fused Mapping back to the original RGB space to get the final HDR prediction

[0051]

[0052] Decoder 2 is used to expoA 1×1 convolution and Sigmoid activation are performed to obtain the exposure recovery prediction

[0053]

[0054] In this way, an exposure recovery branch is set as auxiliary supervision, which can better restore the overexposed areas and reconstruct rich texture details through joint supervision.

[0055] Preferably, the loss function of the multi-scale progressive reconstruction network MPRNet is for:

[0056]

[0057] Among them, α and β control the weights of exposure loss and perceptual loss respectively; reconstruction loss Exposure loss and perceived loss Corresponding to the content reconstruction branches of the multi-scale progressive reconstruction network Exposure recovery branch and the perceptual quality of the reconstructed image.

[0058] Preferably, the reconstruction loss for:

[0059]

[0060]

[0061] Among them, I H is the Ground Truth HDR image; μ is a preset fixed value;

[0062] Exposure loss for:

[0063]

[0064]

[0065] Among them, ε(x) is the exposure feature map calculation function; w y =[0.299, 0.587, 0.114], represents the conversion matrix from RGB to brightness (Y); is a two-dimensional Gaussian kernel with a standard deviation of σ, * represents the convolution operation, σ * Controls the bandwidth of Gaussian weighting, ‖A‖ F represents the Frobenius norm of matrix A;

[0066] Perceived loss Is the loss function based on VGG16:

[0067]

[0068] Among them, φ i (·) represents the output of the i-th feature block of VGG16; λ i is the weight of each feature block loss.

[0069] In this way, by jointly optimizing reconstruction, exposure, and perceptual quality, the loss function can guide the network to generate high-quality HDR images that are ghost-free, properly exposed, and rich in details. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:

[0071] Figure 1 This is a schematic diagram of the structure of the multi-scale progressive reconstruction network MPRNet in this method;

[0072] Figure 2 Schematic diagram of the structure of a multi-scale progressive reconstruction module MSPRM in the embodiment;

[0073] Figure 3 It is a visual comparison diagram of the present method and the mainstream method in the experimental verification of the embodiment;

[0074] Figure 4 This is a comparison chart of the results of MPRNet in the present invention and Kalantari, AHDR and HDR-GAN on two scenes of the Senet al. dataset in the experimental verification of the embodiment;

[0075] Figure 5 It is a diagram showing the qualitative results of the ablation experiment of MPRNet in the experimental verification of the embodiment. DETAILED DESCRIPTION

[0076] The following is a further detailed description through specific implementation methods:

[0077] Example:

[0078] This embodiment discloses a high dynamic range imaging method based on a multi-scale progressive reconstruction network, comprising the following steps:

[0079] S1. Construct a multi-scale progressive reconstruction network MPRNet, including an encoder module, a multi-scale progressive reconstruction module MSPRM, a dual-stream exposure recovery module DERM, and a decoder module. In specific implementation, the structure of the multi-scale progressive reconstruction network MPRNet is as follows: Figure 1 shown.

[0080] The encoder module is used to extract features from the input LDR images of three different exposure levels respectively to obtain corresponding feature maps E1, E2, and E3.

[0081] In the specific implementation, the LDR inputs L1, L2, L3 and their corresponding HDR mappings H1, H2, H3 are concatenated by channel to form a 6-channel input and fed into three pseudo-twin encoders Encoder i Extract the initial features, where Encoder i It consists of a 3×3 convolutional layer that maps the input image to a 64-channel feature map.

[0082] E i =Encoder i ([L i ,H i ]),i=1,2,3.

[0083] The multi-scale progressive reconstruction module MSPRM is used to perform multi-scale progressive reconstruction and global context modeling on the feature maps E1, E2, and E3 to obtain the fusion feature

[0084] The core idea of ​​the multi-scale progressive reconstruction module (MSPRM) is to perform multi-stage adaptive feature screening and fusion at each scale level of the feature pyramid to suppress motion ghosting.

[0085] Specifically, for the i-th feature of the s-th scale at the t-th stage:

[0086]

[0087] In particular, when t=s=1,

[0088] First, MSPRM creates a feature pyramid containing three scales by downsampling ( Figure 2 The blue arrow in the middle) is used to embed the context Perform global context modeling, such as Figure 2 As shown by the yellow arrow in the figure. The CE module draws on the design of GCNet and aggregates information at all positions in the feature map through the self-attention mechanism to capture long-range dependencies. The CE module outputs enhanced features.

[0089]

[0090] Where NL(·) represents context modeling, which aggregates global context information by calculating the correlation between any two locations.

[0091] Next, MSPRM builds a scale selection module (SSM) based on the kernel select attention (KSA), such as Figure 2 As shown in the figure, the features of the same level and higher level (low resolution) are fused to the current scale. The input of SSM contains an upsampling branch and a fusion branch. The upsampling branch corresponds to the red arrow in the figure. The upsampling branch combines the high-level features Map to the sth scale to obtain features The fusion branch directly combines the same-level features Passed to the output.

[0092] The outputs of the two branches are fused through the SSM module to obtain the cross-scale fused features.

[0093]

[0094]

[0095] in Represents element-wise multiplication. Specifically, the feature map is obtained by global average pooling The global response and nonlinear mapping weight maps of two different scales are obtained through 1×1 convolution and softmax Through this vertical propagation, motion priors can be extracted from higher-level semantic features to guide feature screening to adaptively adjust the contribution of features at different scales. After completing cross-scale fusion, MSPRM uses a separable large kernel attention mechanism to fuse features at the same level. This deeply separable large kernel attention mechanism minimizes the amount of computation while expanding the attention receptive field, helping different features at the same scale to be adaptively fused to obtain the feature representation of the next stage.

[0096] After a fusion, Then pass through the CE module, SSM module, and convolutional attention block CA in turn to obtain the finely aligned output features

[0097]

[0098] Finally, MSPRM converts the output features of the original scale into Passed to the subsequent dual-stream exposure recovery module for exposure recovery and detail restoration. These features encode local to global multi-scale motion information and provide rich feature representation for high-quality HDR image reconstruction.

[0099] The dual-stream exposure recovery module DERM is used to fusion features Perform exposure recovery on the overexposed area to obtain the exposure recovery feature F expo ; Also used to fusion features Complete and repair the content details to obtain the content reconstruction feature F rec ; Also used for exposure recovery feature F expo and content reconstruction feature F rec Perform adaptive weighting to obtain the optimized recovery feature F fused ;

[0100] Fusion Features After multi-scale progressive reconstruction, it already contains rich local to global multi-scale motion information and exposure information. The next step is to repair the overexposed area and reconstruct the detailed texture, such as Figure 1 As shown, the present invention designs a dual-stream exposure restoration module (DERM).

[0101] DERM contains two sub-networks with the same structure, one for exposure restoration and the other for content reconstruction. Among them, content reconstruction is the main HDR reconstruction branch, and exposure restoration serves as auxiliary supervision. The two sub-networks share the same feature encoder, but different decoders. This symmetrical design enables the network to treat exposure restoration and content reconstruction as equally important tasks, and the separated two-stream design helps to decouple the complexity of a single learning task.

[0102] Specifically, DERM first compresses the fused features through a convolutional block, reducing the number of channels from 3n feat Down to n feat , get the encoding feature F E :

[0103]

[0104] Next, f EIt is sent to two residual local feature networks (RLFN) at the same time, which are used for exposure recovery and content reconstruction respectively. RLFN uses a series of residual local feature blocks (RLFB) (such as Figure 1 The RLFB can effectively fuse local and global information, which is very beneficial for the restoration of texture details. The outputs of the two RLFNs are denoted as F expo and F rec :

[0105] F expo =RLFN(F E );

[0106] F rec =RLFN(F E );

[0107] Where RLFN(·) represents the RLFN sub-network. In order to further integrate the exposure recovery feature F expo and content reconstruction feature F rec , DERM uses another convolutional block to adaptively weight them:

[0108] F fused =Conv(F expo ,F rec ).

[0109] The decoder is used to optimize the recovery feature F fused Decode and get HDR image prediction

[0110] During specific implementation, the decoder module includes decoder 1 and decoder 2.

[0111] Decoder 1 is used to transform F through a 3×3 convolutional layer and a Sigmoid function. fused Mapping back to the original RGB space to get the final HDR prediction

[0112]

[0113] Decoder 2 is used to expo A 1×1 convolution and Sigmoid activation are performed to obtain the exposure recovery prediction

[0114] In this way, an exposure recovery branch is set as auxiliary supervision, which can better restore the overexposed areas and reconstruct rich texture details through joint supervision.

[0115] This setup uses two symmetrical sub-networks to simultaneously perform exposure recovery and content reconstruction, and uses convolutional blocks to adaptively fuse the features of the two branches. This dual-stream structure and joint supervision can better restore overexposed areas while reconstructing rich texture details and improving HDR imaging quality.

[0116] The entire HDR imaging process can be described as:

[0117]

[0118] In the formula, represents the network output, [;,;] represents the channel-by-channel operator, f and ω represent the MPRNet and the network parameters to be learned, Refers to the input image The image sequence is transformed into the HDR domain using the following formula:

[0119]

[0120] In the formula, t i Represents L i The exposure time is , and γ is the gamma correction parameter, which is usually set to 2.2. Compared with the original LDR image, its HDR domain image contains more details in the overexposed area, which is more conducive to the subsequent information recovery of the saturated area.

[0121] S2. Train the constructed multi-scale progressive reconstruction network MPRNet.

[0122] In specific implementation, the present invention adopts a joint reconstruction-exposure loss function (JointReconstruction-Exposure Loss) for end-to-end training to obtain high-quality HDR reconstruction results.

[0123] The loss function of the multi-scale progressive reconstruction network MPRNet for:

[0124]

[0125] Among them, α = 1 and β = 0.1 control the weights of exposure loss and perceptual loss respectively; reconstruction loss Exposure loss and perceived loss Corresponding to the content reconstruction branches of the multi-scale progressive reconstruction network Exposure recovery branch and the perceptual quality of the reconstructed image.

[0126] For reconstruction loss It uses a combination of L1 norm and μ-law tone mapping. μ-law tone mapping function

[0127]

[0128] Here μ is 5000. This mapping function can be used to map images in the HDR domain to the LDR domain, making the supervised results more consistent with human perception. Reconstruction loss is defined as:

[0129]

[0130] Among them I H It is the Ground Truth HDR image.

[0131] As an auxiliary task, exposure recovery needs to design a loss function to optimize exposure loss. This paper designs an improved Gaussian weighted exposure loss. The traditional exposure loss is calculated by predicting the image and GT image I H The L2 norm in the brightness space is used to measure the quality of exposure recovery, but this global average method ignores local exposure differences. In order to better focus on the recovery of overexposed areas, this method introduces Gaussian weighting in the brightness space, giving higher weights to the middle area close to 0.5. At the same time, in order to obtain a smooth weight map, Gaussian filtering is used for post-processing. Exposure loss The calculation process of is as follows, ε(x) is the exposure feature map calculation function:

[0132]

[0133]

[0134] where w y =[0.299, 0.587, 0.114] represents the conversion matrix from RGB to brightness (Y), is a two-dimensional Gaussian kernel with a standard deviation of σ, * represents the convolution operation, σ * Controls the bandwidth of Gaussian weighting, ‖A‖ F represents the Frobenius norm of the matrix A.

[0135] In order to make the reconstructed image after tone mapping more in line with human perception, a perceptual loss based on VGG16 is introduced

[0136]

[0137] where φ i (·) represents the output of the i-th feature block of VGG16, including layers 1-4, 5-9, 10-16, and 17-23.i is the weight of each feature block loss. Using shallow to deep features helps to optimize the similarity of low-level texture and high-level semantics at the same time.

[0138] S3. Use the trained multi-scale progressive reconstruction network MPRNet for actual high dynamic range imaging processing.

[0139] The present invention constructs a novel multi-scale progressive reconstruction network (MPRNet), which is specially designed for HDR imaging in dynamic scenes. MPRNet innovatively combines a codec, a multi-scale progressive reconstruction module (MSPRM) and a dual-stream exposure recovery module (DERM). MSPRM uses a feature pyramid to gradually refine motion artifacts at multiple scales, and adjusts and corrects motion information at the same scale and across scales through an attention mechanism and a scale selection module, breaking the conventional single-scale feature fusion idea and being able to effectively model long-distance dependencies. DERM uses a dual-stream structure to simultaneously process exposure recovery and content reconstruction, guided by a joint loss function, to accurately repair overexposed areas while retaining image details.

[0140] Through this innovative network architecture and multi-task optimization strategy, MPRNet effectively suppresses ghosting effects and improves the detail fidelity of HDR images generated from dynamic scenes. Extensive experiments on standard HDR datasets show that MPRNet significantly outperforms existing mainstream models in qualitative and quantitative indicators, especially when dealing with large-scale motion and extreme exposure conditions.

[0141] The present invention proposes a new end-to-end trainable network MPRNet, which can generate high-quality ghost-free HDR images from unaligned multi-exposure inputs. Through extensive verification, MPRNet significantly outperforms mainstream HDR methods in image structure preservation, motion ghost removal, and texture detail preservation. In addition, a multi-scale feature fusion technology is introduced in MSPRM to adaptively integrate motion and exposure information, significantly improving HDR imaging processing in dynamic scenes. In addition, the present invention designs a DERM dual-stream exposure recovery module, which finely repairs overexposed areas while maintaining the integrity of image content, and uses a novel joint loss function to enhance exposure recovery and detail retention.

[0142] In order to better understand the effectiveness of the multi-scale progressive reconstruction network MPRNet constructed by this method, the following experimental verification is used to illustrate it.

[0143] Experimental verification

[0144] Dataset and implementation details

[0145] Dataset. Kalantari et al.'s dataset is a widely used dynamic scene HDR imaging benchmark, which contains 74 training scene data and 15 test scene data. Each scene consists of 3 LDR images, whose exposure biases are {-2, 0, 2} or {-3, 0, 3}, and the resolution is 1000×1500. The training and quantitative evaluation of the multi-scale progressive reconstruction network MPRNet in the present invention are completely carried out on the training set and test set of Kalantari et al.'s dataset. In addition, generalization verification is also carried out on the Sen et al. dataset, because this dataset does not contain GroundTruth data (GT), which can better reflect the generalization performance of the model.

[0146] Training details. In order to effectively train the network, the original input images are subjected to the same data augmentation strategies, such as cropping, flipping, and rotation, and the dataset is expanded to 4 times the original. The proposed MPRNet is implemented on the PyTorch framework and trained using the NVIDIA RTX 4090 GPU, using the Adam optimizer with an initial learning rate of 2e-4, β1 is set to 0.9, β2 is set to 0.999, and ε is set to 1e-8 and the ExponentialLR learning rate scheduler is used, where the learning rate decay coefficient γ is set to 0.93. In order to prevent the network from falling into overfitting, the model training uses an early stopping strategy, and the training is stopped if the verification loss does not improve significantly after 5 consecutive epochs.

[0147] Evaluation indicators. Similar to mainstream evaluation methods, this experiment uses PSNR and SSIM to evaluate model performance. In order to further study the performance of model results under different visual conditions, the PSNR-l, PSNR-μ, SSIM-l, and SSIM-μ indicators between the generated HDR image and GT are calculated respectively. "-μ" means that the indicator is calculated in the tone mapping domain, and "-l" means that the indicator is calculated in the linear domain. In addition, the HDR-VDP-2 indicator is also calculated, which is an indicator that can measure the effect of human visual perception in the HDR domain.

[0148] Comparison with mainstream methods

[0149] Quantitative results. Table 1 shows the quantitative comparison results of the proposed MPRNet and other representative methods on Kalantar et al.'s dataset. It can be seen that the proposed method achieves the best performance in the four indicators of PSNR-μ, SSIM-μ, SSIM-l and HDR-VDP-2, and is second only to CA-ViT in the PSNR-l indicator. Compared with the second-place CA-ViT, the PSNR-μ value of the proposed method is 0.16dB higher, the SSIM-μ value is the same, the SSIM-l value is 0.0003 higher, and the HDR-VDP-2 value is 0.08 higher. This shows that MPRNet can generate higher quality and more visually realistic HDR images. Compared with the classic AHDR method, the proposed method improves by 0.86dB in PSNR-μ and 1.50 in HDR-VDP-2. In the comparison of inference time, the Kalantari method consumed the longest time because the model required optical flow alignment on the CPU in advance. The diffusion model method DiffHDR had a slower running speed due to its slow sampling diffusion process. The model of the present invention benefited from the efficient network design and had obvious advantages in inference performance.

[0150] Table 1

[0151]

[0152] The quantitative comparison results of this method with other mainstream methods on Kalantari et al.'s dataset use PSNR, SSIM, and HDR-VDP-2 as evaluation indicators. "-μ" means that the indicator is calculated in the tone mapping domain, "-l" means that the indicator is calculated in the linear domain, and Times means the model inference time. All values ​​are the average results after evaluation on 15 test scenes. The bold part in the table represents the highest value under this indicator.

[0153] Qualitative results. Figure 3The visual comparison between this method and some representative mainstream methods on Kalantari et al.'s dataset is shown. For fairness, the results of all methods are compared in Photomatix Pro software using the same tone mapping. It can be seen that the traditional Kalantari method has obvious tearing, artifacts, and color distortion. CNN-based AHDR and RNN-based HDRRNN have saturation and artifacts in large-scale motion areas. The generative method HDR-GAN introduces additional saturation and distortion due to generation, and there is pixel loss on non-aligned edges. The Transformer method CA-ViT has difficulty in handling high-resolution blocks, resulting in exposure saturation and edge loss. In contrast, the MPRNet proposed in this method can effectively repair overexposed areas and cope well with large-scale motion. The generated HDR results are superior to other comparison methods in ghost suppression, texture preservation, and non-aligned edge information fidelity.

[0154] The performance differences can be attributed to the different abilities of the methods in modeling and fusing motion and exposure information. Traditional methods have difficulty handling large-scale motion and overexposed areas, while CNN-based methods have limited receptive fields. Transformer-based methods are able to model global information but face limitations when handling high-resolution patches.

[0155] The superior performance of MPRNet comes from its multi-scale progressive fusion and dual-stream exposure reconstruction. It can adaptively fuse motion information across scales and use an attention mechanism to weight features of different exposures. The dual-stream exposure reconstruction module decouples exposure recovery and content reconstruction, guiding the repair of overexposed areas. This enables MPRNet to effectively suppress ghosting, restore details, and achieve better results in objective indicators and visual quality.

[0156] In order to verify the generalization performance of this method, the Sen et al. dataset ( Figure 4 a and Figure 4 b). This dataset does not contain Ground Truth HDR images, so only qualitative comparison can be performed. Figure 4 The results of MPRNet in this paper and Kalantari, AHDR and HDR-GAN on two scenes of Sen et al. dataset are shown. It can be seen that even on the ground truth-free dataset, the method in this paper can still generate high-quality HDR images without ghosting and good exposure, and the generalization ability is better than other methods. This shows that by adaptively fusion in feature space, MPRNet has a certain degree of scene generalization and motion adaptation capabilities. Of course, truly achieving generalization of any scene is still an open challenge.

[0157] Ablation experiment

[0158] This experiment conducts an ablation study on the Kalantari et al. dataset to verify the progressiveness of MSPRM (including scale progressiveness and fusion stage progressiveness) and the impact of the DERM module on the performance of MPRNet. As shown in Table 2, four variants are designed. The quantitative results of the ablation experiment are shown.

[0159] Table 2 Quantitative results of ablation experiments.

[0160]

[0161] The “-s” or “-m” in the table represents single or multi-scale and fusion stage, respectively.

[0162] The quantitative results in the table and Figure 5 The qualitative comparison in demonstrates the effectiveness and necessity of the proposed MSPRM and DERM modules for achieving excellent HDR reconstruction performance. The base model MPRNet-B suffers from severe ghosting artifacts and edge distortion. MPRNet-S uses multi-scale fusion to mitigate edge distortion and improve quantization metrics, but ghosting artifacts still exist due to large motion. MPRNet-M effectively suppresses motion-induced ghosting and enhances the visual quality of misaligned edges through multi-stage and multi-scale fusion, resulting in a significant improvement in PSNR-l. However, it still lacks details in overexposed areas (such as Figure 5 The full MPRNet model achieves the best results in all metrics by incorporating the DERM module, by restoring details in overexposed areas and optimizing the reconstructed HDR image in terms of exposure and detail fidelity.

[0163] In summary, ablation experiments highlight the importance of MSPRM's progressive multi-stage, multi-scale fusion in handling complex motions and scenes, and the key role of DERM in recovering overexposed regions. The combination of these modules enables MPRNet to generate high-quality HDR images with excellent detail fidelity and ghost suppression.

[0164] in conclusion

[0165] This paper proposes a novel multi-scale progressive reconstruction network MPRNet for high-quality HDR imaging in dynamic scenes. To address the problems of ghosting, blurring, and distortion in existing methods under large-scale motion and extreme exposure scenarios, MPRNet cleverly designs a multi-scale progressive reconstruction module (MSPRM) and a dual-stream exposure recovery module (DERM).

[0166] MSPRM introduces a context embedding module at each scale of the feature pyramid to model global dependencies, fuses the same-level and higher-level motion information to the current scale through a scale selection mechanism, and then realizes adaptive weighting of different exposure features in the same scale through an attention mechanism, thus maximizing the use of complementary information of multi-scale and multi-exposure images.

[0167] DERM adopts a symmetric two-stream structure to simultaneously perform exposure recovery and content reconstruction, and guides the refined restoration of overexposed areas through a joint loss function.

[0168] Experiments on multiple challenging HDR datasets show that the proposed MPRNet can generate high-quality HDR images without ghosting, with proper exposure and rich details, and its performance is significantly better than existing methods. Ablation studies further verify the effectiveness of multi-scale progressive fusion and dual-stream exposure recovery. In addition, the good performance in the absence of Ground Truth also confirms that MPRNet has a certain generalization ability.

[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. A high dynamic range imaging method based on a multi-scale progressive reconstruction network, characterized in that: The following steps are involved: S1. Construct a multi-scale progressive reconstruction network MPRNet, including an encoder module, a multi-scale progressive reconstruction module MSPRM, a dual-stream exposure recovery module DERM, and a decoder module; The encoder module is used to extract features from the input LDR images of three different exposure levels to obtain corresponding feature maps E1, E2, and E3; The multi-scale progressive reconstruction module MSPRM is used to perform multi-scale progressive reconstruction and global context modeling on the feature maps E1, E2, and E3 to obtain the fusion feature The dual-stream exposure recovery module DERM is used to fusion features Perform exposure recovery on the overexposed area to obtain the exposure recovery feature F expo ; Also used to fusion features Complete and repair the content details to obtain the content reconstruction feature F rec ; Also used for exposure recovery feature F expo and content reconstruction feature F rec Perform adaptive weighting to obtain the optimized recovery feature F fused ; The decoder is used to optimize the recovery feature F fused Decode and get HDR image prediction S2, training the constructed multi-scale progressive reconstruction network MPRNet; S3. Use the trained multi-scale progressive reconstruction network MPRNet for actual high dynamic range imaging processing.

2. The high dynamic range imaging method based on a multi-scale progressive reconstruction network according to claim 1, characterized in that: The workflow of the multi-scale progressive reconstruction module MSPRM includes: First, a feature pyramid containing three scales is created by downsampling Next, for the i-th feature of the s-th scale in the t-th stage By embedding CE modules into the context Perform global context modeling and output enhanced features Among them, NL(·) represents context modeling, which aggregates global context information by calculating the correlation between any two positions; Afterwards, the scale selection module SSM is used to fuse the features of the same level and higher level to the current scale to obtain the cross-scale fused features. Then, the separable large core attention mechanism is used to fuse the features at the same level to obtain the feature representation of the next stage. Then, The finely aligned output features are obtained by sequentially passing through the CE module, SSM module, and convolutional attention block CA. Finally, the output features of the original scale Passed to the dual-stream exposure recovery module DERM.

3. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 2, characterized in that: The input of SSM includes an upsampling branch and a fusion branch; The upsampling branch converts high-level features Map to the sth scale to obtain features The fusion branch combines the same level features Passed to the output; the outputs of the two branches are fused through the SSM module to obtain the cross-scale fused features 4. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 3, characterized in that: When the SSM module fuses the outputs of the two branches, the feature map is obtained by global average pooling. The global response and nonlinear mapping weight maps of two different scales are obtained through 1×1 convolution and softmax in, Stands for element-wise multiplication.

5. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 1, characterized in that: DERM includes an exposure recovery subnetwork for exposure recovery and a content reconstruction subnetwork for content reconstruction; the exposure recovery subnetwork has the same structure as the content reconstruction subnetwork and shares the same feature encoder.

6. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 5, characterized in that: The working process of the dual-stream exposure recovery module DERM includes: First, a convolutional block is used to fuse the features. Compression is performed to reduce the number of channels from 3n feat Down to n feat , get the encoding feature F E : Afterwards, f E At the same time, it is sent to the exposure recovery subnetwork and the content reconstruction subnetwork for exposure recovery and content reconstruction respectively, and the exposure recovery feature F is obtained. expo and content reconstruction feature F rec : Among them, the exposure recovery self-network and the content reconstruction self-network are both RLFN networks; F expo =RLFN(F E ); F rec =RLFN(F E ); Where RLFN(·) represents the RLFN subnetwork; Then, another convolutional block is used to recover the exposure feature F expo and content reconstruction feature F rec Perform adaptive weighting to obtain the optimized recovery feature F fused : F fused =Conv(F expo ,F rec )。 7. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 1, characterized in that: The decoder module includes decoder 1 and decoder 2; Decoder 1 is used to transform F through a 3×3 convolutional layer and a Sigmoid function. fused Mapping back to the original RGB space to get the final HDR prediction Decoder 2 is used to expo A 1×1 convolution and Sigmoid activation are performed to obtain the exposure recovery prediction 8. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 7, characterized in that: The loss function of the multi-scale progressive reconstruction network MPRNet for: Among them, α and β control the weights of exposure loss and perceptual loss respectively; reconstruction loss Exposure loss and perceived loss Corresponding to the content reconstruction branches of the multi-scale progressive reconstruction network Exposure recovery branch and the perceptual quality of the reconstructed image.

9. The high dynamic range imaging method based on multi-scale progressive reconstruction network according to claim 8, characterized in that: Reconstruction losses for: Among them, I H is the Ground Truth HDR image; μ is a preset fixed value; Exposure loss for: Among them, ε(x) is the exposure feature map calculation function; w y =[0.299, 0.587, 0.114], represents the conversion matrix from RGB to brightness (Y); is a two-dimensional Gaussian kernel with a standard deviation of σ, * represents the convolution operation, σ * Controls the bandwidth of Gaussian weighting, ‖A‖ F represents the Frobenius norm of matrix A; Perceived loss Is the loss function based on VGG16: Among them, φ i (·) represents the output of the i-th feature block of VGG16; λ i is the weight of each feature block loss.

Citation Information

Cited By

  • Fine optical flow estimation system fusing multi-scale kernel selection and super-resolution technology

    CN119360175A

  • Establishment method of endoscope image exposure correction model and image correction method

    CN119485037A

  • Method for establishing exposure correction model of endoscope image and image correction method

    CN119485037B

  • Ultrahigh dynamic range imaging system and method based on diffusion model image prior

    CN119743679A

  • An ultra-high dynamic range imaging system and method based on a diffusion model image prior

    CN119743679B