Backlight image enhancement method based on multi-feature guidance
Through the multi-feature-guided backlight image enhancement method, the color space transformation and illumination enhancement backbone network are used to dynamically adjust the brightness of the backlight image, solving the problems of uneven exposure and detail loss, and improving the visual quality and detail retention of the image.
Patent Information
- Application Number
- CN202410892722.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-22
AI Technical Summary
Existing backlight image enhancement methods have problems such as uneven exposure, serious loss of details, and poor image visual quality, which limits the effectiveness and reliability of practical applications.
Using a multi-feature-guided backlight image enhancement method, through color space transformation, discrete Fourier transform and illumination enhancement backbone network, combined with the channel attention module and convolution layer, the three-channel spatial illumination correction proportion map of the backlight image is predicted and dynamically adjusted Image brightness, adaptively adjust the brightness of local areas.
It achieves accurate illumination distribution perception of backlit images, improves global brightness, adaptively adjusts local brightness, solves the problem of overexposure or underexposure, improves the brightness adjustment and detail retention effect of the image, and obtains high-quality enhanced images.
Smart Images

Figure CN118822918A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the technical field of digital image processing methods, and relates to a multi-feature-guided method for enhancing backlight images. Background Technology
[0002] Images play an indispensable role in recording history, conveying information, and facilitating communication. Therefore, the richness of color and the clarity of detail are crucial to the accuracy of information dissemination. With the widespread use of smart devices, people increasingly prefer to use photos to record useful information. However, in backlit environments, the subjects in the photos are often underexposed, resulting in monotonous colors and significant loss of detail. This not only affects visual appeal but also hinders subsequent intelligent recognition.
[0003] The primary goal of backlight image enhancement is to improve the visual quality of the image. By increasing the brightness of dark areas and suppressing overexposure in bright areas, the image presents a more natural and realistic visual effect. Simultaneously, it restores the details lost due to backlighting, improving image clarity. Current backlight image enhancement methods mainly include those based on Retinex theory, segmentation, and fusion. These methods often suffer from poor enhancement effects, distortion of image edges and details, and visual artifacts caused by mismatch between the synthesized image and the real scene, thus limiting their effectiveness and reliability in practical applications. In recent years, deep learning technology has been gradually applied to the field of backlight image enhancement, achieving better restoration results. However, problems such as uneven exposure, severe loss of details, and poor image visual quality still exist. This invention provides an effective solution to these problems. Summary of the Invention
[0004] The purpose of this invention is to provide a multi-feature-guided method for enhancing backlit images, which solves the problems of uneven image exposure and severe loss of image details in the prior art.
[0005] The technical solution adopted in this invention is a multi-feature-guided backlight image enhancement method, which is implemented according to the following steps:
[0006] Step 1: Transform the original backlit image from an RGB image to an HSV three-channel image through color space transformation;
[0007] Step 2: Obtain the frequency domain image by performing discrete Fourier transform on the input backlight HSV image, and then perform channel stitching between the frequency domain image and the input backlight HSV image to obtain the global frequency domain and local spatial domain information of the image. Then, input the channel stitched image into the frequency domain feature enhancement module to obtain a three-channel image with enhanced frequency domain features.
[0008] Step 3: Input the three-channel image into the illumination enhancement backbone network to predict the three-channel spatial illumination correction scale map of the backlight image. Then multiply the predicted three-channel spatial illumination correction scale map with the input backlight three-channel image to obtain the enhanced backlight image.
[0009] Step 4: Convert the enhanced backlight image back to the RGB color space through color space transformation to obtain the final enhanced backlight image.
[0010] The invention is further characterized by:
[0011] The frequency domain feature enhancement module in step 2 includes a channel attention module and a convolutional layer, which forms a three-channel image with enhanced frequency domain features.
[0012] The illumination enhancement backbone network in step 3 consists of an encoder and a decoder. The encoder consists of one convolutional layer and four sets of "SE-ResNeXt modules + downsampling" operations. The decoder consists of four sets of "SE-ResNeXt modules + upsampling" operations and one convolutional layer. Each layer in the encoder is connected to the corresponding layer in the decoder.
[0013] The specific training method for the illumination-enhanced backbone network is as follows:
[0014] The illumination enhancement backbone network is trained using the enhanced backlight image and its corresponding real image. During training, the real image is transformed from an RGB image to the corresponding HSV three-channel image through color space transformation. The network parameters of the illumination enhancement backbone network are obtained by constructing a multi-scale structural similarity loss and a brightness singular value distribution prediction loss between the enhanced backlight image and the corresponding real image. The weighted sum of the multi-scale structural similarity loss and the brightness singular value distribution prediction loss is used as the total loss function.
[0015] The specific formula for calculating multi-scale structural similarity loss is as follows:
[0016]
[0017] In equation (1), x and y represent the enhanced backlight image and the corresponding real image, respectively, and l(x,y), c(x,y), and s(x,y) represent the brightness similarity, contrast similarity, and structural similarity between the images, respectively; the scale is M = 5, α5 = 0.1333, β1 = 1 = 0.0448, β2 = 2 = 0.2856, β3 = 3 = 0.3001, β4 = 4 = 0.2363, and β5 = 5 = 0.1333.
[0018] The brightness singular value distribution prediction loss includes a singular value prediction auxiliary network and a singular value prediction loss function. The singular value prediction auxiliary network predicts the singular value matrix that characterizes the spatial distribution of illumination by extracting deep features of illumination. Then, the singular value prediction loss function guides the illumination enhancement backbone network to generate intermediate layer feature maps with illumination adaptation.
[0019] The singular value prediction auxiliary network consists of 3 sets of "SE-ResNeXt modules + upsampling" operations and 1 convolutional layer. Its input is taken from the output of the first set of "SE-ResNeXt modules + upsampling" operations in the decoder part of the illumination enhancement backbone network.
[0020] The singular value prediction loss function first performs SVD decomposition on the luminance channel of the real image to obtain the singular value matrix of the real image luminance. Then, it calculates the smoothness of the singular value matrix predicted by the singular value prediction auxiliary network and the singular value matrix of the real image. L1 Loss function:
[0021]
[0022] In equation (2), λ x Let λ represent the predicted singular value matrix. y It is the singular value matrix of the real image.
[0023] The beneficial effects of this invention are:
[0024] This invention utilizes multiple features, including local spatial features, Fourier transform features, and illumination singularities, to construct a multi-feature-guided backlight image enhancement method. This method can better perceive the illumination distribution of backlight images, obtain a more accurate three-channel spatial illumination correction ratio map, and achieve image enhancement. The multi-feature-guided backlight image enhancement method proposed in this invention not only improves the overall brightness of backlight images but also adaptively adjusts the brightness of local areas. This dynamic adjustment effectively solves the common overexposure or underexposure problems in backlight image enhancement. The enhanced backlight image exhibits excellent performance in brightness adjustment and detail preservation, making it widely applicable to various shooting scenarios. Attached Figure Description
[0025] Figure 1 This is a flowchart of the multi-feature-guided backlight image enhancement method of the present invention;
[0026] Figure 2 These are before-and-after images of the backlight image in Embodiment 1 of the present invention.
[0027] Figure 3 These are before-and-after images of the backlight image in Embodiment 2 of the present invention;
[0028] Figure 4 These are before-and-after images of backlight enhancement in Embodiment 3 of the present invention. Detailed Implementation
[0029] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0030] The multi-feature-guided backlight image enhancement method of this invention has the following process: Figure 1 As shown, please follow these steps:
[0031] Step 1: Transform the original backlit image from an RGB image to the corresponding HSV three-channel image through color space transformation;
[0032] Step 2: Obtain the frequency domain image from the input backlit HSV image through Discrete Fourier Transform, and then concatenate the frequency domain image with the input backlit HSV image to obtain global frequency domain and local spatial domain information. The concatenated image is then input into the frequency domain feature enhancement module to obtain a frequency-enhanced three-channel image. The frequency domain feature enhancement module includes a channel attention module and a convolutional layer, which forms the frequency-enhanced three-channel image.
[0033] Step 3: Input the frequency domain feature-enhanced three-channel image into the illumination enhancement backbone network to predict the three-channel spatial illumination correction scale map of the backlight image, so as to achieve precise adjustment of illumination; then multiply the predicted three-channel spatial illumination correction scale map with the input backlight three-channel image to obtain the enhanced backlight image.
[0034] The illumination enhancement backbone network consists of an encoder and a decoder. The encoder consists of one convolutional layer and four sets of "SE-ResNeXt modules + downsampling" operations. The decoder consists of four sets of "SE-ResNeXt modules + upsampling" operations and one convolutional layer. Each layer in the encoder is connected to the corresponding layer in the decoder.
[0035] The illumination enhancement backbone network is trained using enhanced backlight images and their corresponding real images. The real images are collected images from different scenes without backlighting. Image processing software is used to simulate the original backlighting effect on the real images, and then the enhanced backlight images are obtained using the methods described in steps 1-3 above. During training, the real images are transformed from RGB images to their corresponding HSV three-channel images through color space transformation. The network parameters of the illumination enhancement backbone network are obtained by constructing multi-scale structural similarity loss and brightness singular value distribution prediction loss between the enhanced backlight images and their corresponding real images. The weighted sum of the multi-scale structural similarity loss and the brightness singular value distribution prediction loss serves as the total loss function.
[0036] The specific formula for calculating multi-scale structural similarity loss is as follows:
[0037]
[0038] In equation (1), x and y represent the enhanced backlight image and the corresponding real image, respectively, and l(x,y), c(x,y), and s(x,y) represent the brightness similarity, contrast similarity, and structural similarity between the images, respectively. In the method of this invention, the scale is M = 5, α5 = 0.1333, β1 = 1 = 0.0448, β2 = 2 = 0.2856, β3 = 3 = 0.3001, β4 = 4 = 0.2363, and β5 = 5 = 0.1333.
[0039] The brightness singular value distribution prediction loss includes the singular value prediction auxiliary network and the singular value prediction loss function.
[0040] The singular value prediction auxiliary network extracts deep features of illumination to predict the singular value matrix representing the spatial distribution characteristics of illumination. Then, it guides the illumination enhancement backbone network to generate intermediate layer feature maps with illumination adaptation through the singular value prediction loss function. Specifically, the singular value prediction auxiliary network consists of three sets of "SE-ResNeXt modules + upsampling" operations and one convolutional layer. Its input is taken from the output of the first set of "SE-ResNeXt modules + upsampling" operations in the decoder part of the illumination enhancement backbone network.
[0041] For the singular value prediction loss function, firstly, SVD decomposition is performed on the brightness channel of the real image to obtain the singular value matrix of the real image brightness. Then, the Smoothness is calculated between the singular value matrix predicted by the singular value prediction auxiliary network and the singular value matrix of the real image. L1 Loss function:
[0042]
[0043] In equation (2), λ x Let λ represent the predicted singular value matrix. y It is the singular value matrix of the real image.
[0044] Step 4: For the enhanced backlight image obtained in Step 3, convert it back to the RGB color space through color space transformation to obtain the final enhanced backlight image.
[0045] Example 1
[0046] The above method was used to enhance an image of an outdoor scene with severe backlighting, and the result is as follows: Figure 2 As shown, the image on the left is the original backlit image, and the image on the right is the enhanced image after the method of the present invention.
[0047] Example 2
[0048] The above method was used to enhance a local backlit image of an indoor scene, and the result is as follows: Figure 3 As shown, the image on the left is the original backlit image, and the image on the right is the enhanced image after the method of the present invention.
[0049] Example 3
[0050] The above method was used to enhance a backlit image of another scene, and the result is as follows: Figure 4 As shown, the image on the left is the original backlit image, and the image on the right is the enhanced image after the method of the present invention.
[0051] from Figure 2 , Figure 3 and Figure 4 As can be seen, the image enhanced by the method of this invention has uniform overall illumination, clear image details, and natural tonal transitions, effectively solving the problems of uneven exposure and severe loss of details, and obtaining a high-quality enhanced image.
Claims
1. Multi-feature guided backlight image enhancement method, It is characterized in that Follow the steps below to implement it: Step 1: transform the original backlit image from RGB image to HSV three-channel image through color space transformation; Step 2: Obtain a frequency domain image by performing discrete Fourier transform on the input backlit HSV image, and perform channel splicing on the frequency domain image and the input backlit HSV image to obtain the frequency domain global and spatial domain local information of the image, and then input the channel spliced image into the frequency domain feature enhancement module to obtain a three-channel image with frequency domain feature enhancement; Step 3: Input the three-channel image into the illumination enhancement backbone network to predict the three-channel spatial illumination correction ratio map of the backlit image, and then multiply the predicted three-channel spatial illumination correction ratio map with the input backlit three-channel image to obtain the enhanced backlit image; Step 4: Convert the enhanced backlit image back to the RGB color space through color space transformation to obtain the final enhanced backlit image.
2. The multi-feature guided backlight image enhancement method according to claim 1, It is characterized in that The frequency domain feature enhancement module in step 2 includes a channel attention module and a convolution layer, and a three-channel image after frequency domain feature enhancement is formed through the convolution layer.
3. The multi-feature guided backlight image enhancement method according to claim 1, It is characterized in that The illumination enhancement backbone network in step 3 is specifically composed of an encoder and a decoder, where the encoder part consists of 1 layer of convolution and 4 groups of "SE-ResNeXt module + downsampling" operations, and the decoder part consists of 4 groups of "SE-ResNeXt module + upsampling" operations and 1 layer of convolution; each layer in the encoder is jump-connected to the corresponding layer in the decoder.
4. The multi-feature guided backlight image enhancement method according to claim 3, It is characterized in that The specific training method of the illumination enhancement backbone network is: The illumination enhancement backbone network is trained using the enhanced backlit images and their corresponding real images. During training, the real images are transformed from RGB images to corresponding HSV three-channel images through color space transformation, and the network parameters of the illumination enhancement backbone network are obtained by constructing the multi-scale structural similarity loss and brightness singular value distribution prediction loss of the enhanced backlit images and the corresponding real images. The weighted sum of the multi-scale structural similarity loss and the brightness singular value distribution prediction loss is used as the total loss function.
5. The multi-feature guided backlight image enhancement method according to claim 4, It is characterized in that The specific calculation formula of the multi-scale structural similarity loss is: In formula (1), x, y represent the enhanced backlit image and the corresponding real image, respectively, l(x, y), c(x, y), s(x, y) represent the brightness similarity, contrast similarity, and structure similarity between the images, respectively; the scale M = 5, α 5 =0.1333, β 1 =γ 1 =0.0448, β 2 =γ 2 =0.2856, β 3 =γ 3 =0.3001, β 4 =γ 4 =0.2363, β 5 =γ 5 =0.1333.
6. The multi-feature guided backlight image enhancement method according to claim 4, It is characterized in that The brightness singular value distribution prediction loss includes a singular value prediction auxiliary network and a singular value prediction loss function. The singular value prediction auxiliary network predicts a singular value matrix that characterizes the spatial distribution characteristics of illumination by extracting deep illumination features, and then guides the illumination enhancement backbone network to generate an intermediate layer feature map with illumination adaptation through the singular value prediction loss function.
7. The multi-feature guided backlight image enhancement method according to claim 6, It is characterized in that The singular value prediction auxiliary network consists of three groups of "SE-ResNeXt module + upsampling" operations and one convolutional layer, and its input is taken from the output of the first group of "SE-ResNeXt module + upsampling" operations after the decoder part of the illumination enhancement backbone network.
8. The multi-feature guided backlight image enhancement method according to claim 6, It is characterized in that The singular value prediction loss function first performs SVD decomposition on the brightness channel of the real image to obtain the singular value matrix of the brightness of the real image, and then calculates the smoothness of the singular value matrix predicted by the singular value prediction auxiliary network and the singular value matrix of the real image. L1 Loss function: In formula (2), λ x represents the predicted singular value matrix, λ y is the singular value matrix of the real image.
