Low-light image enhancement method based on depth retinex

The deep Retinex-based method addresses issues in conventional low-light image enhancement by decomposing images into reflectance and illuminance components, using restoration networks, and a perceptual enhancement network to improve image quality, achieving better detail and color restoration.

JP2024120168AActive Publication Date: 2024-09-04HANGZHOU DIANZI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
JP2024024529
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2024-02-21
Publication Date
2024-09-04
Estimated Expiration
2044-02-21

AI Technical Summary

Technical Problem

Conventional low-light image enhancement methods suffer from issues such as halo effects, over-enhancement, color distortion, and inadequate noise removal, detail restoration, and color enhancement, despite the advantages of deep learning in denoising and super-resolution.

Method used

A deep Retinex-based method that decomposes images into reflectance and illuminance components using a layer decomposition network, employs reflectance and illuminance restoration networks, and utilizes a perceptual enhancement network to improve image quality, incorporating specific loss functions to enhance detail and color.

Benefits of technology

The method effectively balances noise removal, detail restoration, and color enhancement, resulting in improved image brightness and reduced noise, with enhanced perceptual quality suitable for subsequent visual processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024120168000001
    Figure 2024120168000001
Patent Text Reader

Abstract

To provide a low-light image enhancement method based on deep Retinex which effectively restores details of a texture of an input image, enhances color information, makes luminance distribution of the image more natural, and reduces noise.SOLUTION: The method decomposes a low-light image and a normal-light image into a reflectance image and an illuminance image by using a layer decomposition network on the basis of a Retinex theory, and then uses a low-light illuminance image and a low-light reflectance image as an input of a reflectance restoration network, and learns mapping from a low-light reflectance image to a normal-light reflectance image to obtain a reflectance restored image. Subsequently, the low-light illuminance image is used as an input of an illuminance adjustment network, and mapping from the low-light illuminance image to the normal-light illuminance image is learned to obtain an illuminance enhanced image. Then, the reflectance restored image and the illuminance enhanced image are fused to obtain an initial enhanced image, and finally, mapping from the initial enhanced image to the normal-light image is learned by using a perceptual enhancement network to obtain an enhanced image.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the technical field of image processing, and relates to a low-light image enhancement method, in particular to a low-light image enhancement method based on deep Retinex. [Background technology]

[0002] During the shooting process, when the image is affected by low light conditions such as backlight, uneven lighting, weak light, etc., the final image will have multiple degradation problems such as low brightness and contrast, high noise, blurred details, distorted colors, etc., which not only affect the aesthetic quality of the image, but also affect the performance of high-level visual processing such as detection processing and identification processing.

[0003] Therefore, it is necessary to perform specific processing on low light images to enhance their image quality. Conventional low light image enhancement methods include histogram equalization, gamma correction, enhancement based on an inverse haze removal model, and enhancement based on Retinex theory. Histogram equalization and gamma correction can improve the contrast and visibility of an image, but they have problems such as halo effect and over-enhancement. The enhancement method based on the inverse haze removal model is based on the visual similarity between night images and foggy images, and uses the dark channel prior method to remove haze from the inverted image and improve the dynamic range of the image, but the method is not stable in detail processing. The method based on Retinex theory is a method of estimating an illuminance image from a low light image based on prior knowledge, and using a reflection image as an enhancement result, and generally includes SSR and MSR, but these methods have problems of over-enhancement and color distortion. As described above, these conventional enhancement methods can be expected to have a certain degree of good effect, but they also have drawbacks.

[0004] The method using deep learning excels in low-level visual processing such as noise removal, super-resolution, and blur removal, and has better accuracy, robustness, and speed than conventional methods in the field of low-light image enhancement, and also performs better than conventional methods in improving image brightness and contrast. However, existing methods are not ideal in noise removal, detail restoration, and color enhancement. Therefore, it is very important to research a low-light image enhancement method that can balance noise and detail restoration and enhance color. Summary of the Invention [Problem to be solved by the invention]

[0005] In response to the shortcomings of the deep learning-based low-light image enhancement technology in the prior art, the present invention proposes a deep Retinex-based low-light image enhancement method, which combines the advantages of deep learning and Retinex theory, so that the enhanced image can achieve better details and colors. [Means for solving the problem]

[0006] The low light image enhancement method based on deep Retinex specifically includes the following steps 1 to 5.

[0007] In step 1, a low-light image S is generated based on the Retinex theory. l and normal light image S h are decomposed into low light reflectance images R l , normal light reflectance image R h ,Low light image I l , and normal light illuminance image I h The specific operation is as follows: A layer decomposition network is constructed to decompose the input low light and normal light images respectively based on the Retinex theory.

[0008] The formula for decomposing an image using Retinex theory is:

number

[0009] The layer decomposition network first uses a single convolution operation on the input image to obtain shallow features of the image, then inputs and decomposes the reflectance branch and the illumination branch respectively, and finally uses a Sigmoid function to constrain the outputs of the two branches to the range of [0,1]. The reflectance branch uses downsampling and convolution operations to extract deep features, then uses upsampling to merge channels with the downsampling result of the same resolution, then uses a convolution operation to restore the resolution of the output image to be the same as the input, and uses a 1x1 convolution operation to restore the number of channels of the output image to be the same as the input. The illumination branch first performs a convolution operation on the shallow features of the image, then merges channels with a feature map with the same resolution and number of channels in the reflectance branch, and uses a 1x1 convolution operation to restore the number of channels of the output image to be the same as the input.

[0010] In step 2, a reflectance restoration network is used to generate the low-light reflectance image R l From the normal light reflectance image R h We learn a mapping to the reflectance restored image R r The specific operation steps are as follows: The input of the reflectance restoration network is the low-light image I l and low light reflectance image R l First, R l and I l Then, a single convolution operation is used to obtain shallow features, and after passing through the encoding-decoding module, the channel count is restored using a 1x1 convolution operation. The encoding module uses a residual module and a downsampling module, and the decoding module uses an upsampling operation, a channel merging and a residual module.

[0011] The reflectance restoration network generates the reflectance restored image R r The formula to output is:

number

[0012] The loss function corresponding to the reflectance restoration network is

number

[0013] Preferably,

number

[0014]

number

[0015]

number

[0016] In step 3, the low-light image I l From normal light illuminance image I h We learn a mapping to the illumination-enhanced image I e The specific operation steps are as follows: The illumination adjustment network first receives a low-light image I l A single convolution operation is used to obtain shallow features, then a dense block and transition layer are used to perform further feature extraction and channel screening, and finally a 1x1 convolution operation is used to restore the number of channels. The calculation formula for the illumination adjustment network to output the illumination-enhanced image is:

number

[0017] The loss function corresponding to the illumination control network is

number

[0018] In step 4, the reflectance restored image in step 2 and the illumination-enhanced image in step 3 are fused together by the image reconstruction method to obtain the initial enhanced image S r1 get.

[0019] Preferably, the method of image reconstruction includes: r and Illuminance-weighted image I e are blended by pixel multiplication.

[0020] In step 5, a perceptual enhancement network is used to generate the initial enhanced image S r1 From normal light image S h We learn a mapping to the final enhanced image S r2 The specific operation steps are as follows: The perceptual enhancement network first generates an initial enhanced image S r1 Then, a normal convolution operation is used for , and then a dilation convolution operation is successively performed, and the dilation rate of the convolution increases in multiples of 2, and then a single convolution operation with a dilation rate of 1 is used, and finally a 1x1 convolution operation is used to restore the number of channels. The formula for the perception enhancement network to output the final enhanced image is:

number

[0021] The loss function corresponding to the perceptual reinforcement network is

number

number

[0022] The beneficial effects of the present invention are as follows:

[0023] 1. This method uses a residual module instead of the conventional convolution in reflectance restoration, so that the reflectance restoration network can learn more detailed texture features, and introduces color loss in the loss function of the reflectance restoration network to enhance the color of the reflectance restored image.

[0024] 2. This method uses a dense connection module instead of the ordinary convolution in illumination adjustment, which increases the proportion of shallow layer features and makes the illumination distribution of the restored image more natural. After feature extraction, a transition layer is used to screen the feature channel, reducing the amount of computation.

[0025] 3. After obtaining the initial enhanced image, the method uses a perceptual enhancement network to further enhance the image. The dilated convolution in the perceptual enhancement network can expand the receptive field, and the network The network can learn more global features, and the perceptual loss function contributes to improving the perceptual quality of the image. The final enhanced image can not only improve image brightness compared with the original low-light image, but also suppress noise, restore texture details and enhance color information, which is advantageous for subsequent visual processing. [Brief description of the drawings]

[0026] [Figure 1] 1 is a flowchart of a low-light image enhancement method based on deep Retinex. [Diagram 2] 1 shows a network structure of a bottleneck layer used in an embodiment. [Diagram 3] FIG. 13 is a schematic diagram showing the results of a first image enhancement performed on the LOL dataset in the embodiment. [Figure 4] FIG. 13 is a schematic diagram showing the results of a second image enhancement performed on the LOL dataset in the embodiment. [Diagram 5] FIG. 13 is a schematic diagram showing the results of a third image enhancement performed on the LOL dataset in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] In order to make the objectives, technical solutions and gist of the present invention clearer, the present invention will be further described below with reference to the accompanying drawings. As shown in Figure 1, the low light image enhancement method based on deep Retinex specifically includes steps 1 to 5.

[0028] In step 1, based on the Retinex theory, a layer decomposition network is used to decompose the low-light image and the normal-light image respectively, and a loss function is used to constrain the decomposition process to obtain the low-light reflectance image R l , normal light reflectance image R h ,Low light image I l , Normal light illuminance image I h get.

[0029] The formula for decomposing an image using Retinex theory is:

number

[0030] The layer decomposition network first uses one 3x3 convolution operation on the input image to obtain shallow features, then inputs the reflectance branch and the illumination branch respectively, and finally uses a Sigmoid function to constrain the outputs of the two branches to the range of [0,1]. The reflectance branch uses two downsampling and convolution operations to further extract deep features, then upsamples, performs channel merging on the downsampled feature map with the same resolution as the feature map obtained by upsampling, then performs one more upsampling and channel merging operation, and then uses two convolution operations to restore the resolution and number of channels of the output image in sequence. The illumination branch first performs one convolution operation, then performs channel merging with the feature map with the same resolution and number of channels in the reflectance branch, and then uses one 1x1 convolution operation to restore the number of channels of the output image.

[0031] In step 2, the reflectance restoration network first extracts the low-light image I l and low light reflectance image R l Since the light distribution in low-light images is related to the noise distribution, I l We use the noise distribution attention image to guide the network in denoising. The formula for predicting the reflectance restored image is:

number

[0032] The reflectance restoration network is based on the U-Net network and uses a residual module instead of a convolutional layer. l and I l Then, it performs channel merging for the image, then uses one 3x3 convolution operation to obtain the shallow features of the image, then uses the encoding-decoding module to process the obtained shallow features, and finally uses a 1x1 convolution operation to restore the output channel number. The encoding module uses four residual modules and a downsampling module in succession, and the residual module is composed of two 3x3 convolution operations and one skip connection, so that more shallow features can be retained compared to normal convolution operations, which is advantageous for restoring texture details in the image. The downsampling module consists of one 2x2 max pooling and one 1x1 convolution operation. The decoding module uses four upsampling operations, channel merging, and residual modules in succession, and after the upsampling operation, it performs channel merging with the feature map of the same resolution in the encoding module.

[0033] The loss function corresponding to the reflectance restoration network is

number

[0034]

number

[0035]

number

[0036]

number

[0037] To make the predicted image colors clearer and more realistic,

number

[0038] In step 3, the calculation formula for predicting the illumination-enhanced image is:

number

[0039] The illumination adjustment network is based on the Densenet-bc network structure, and adds residual skip while retaining the denseblock bottleneck layer. It also removes the pooling layer and BN layer in the denseblock and transition layers, which is advantageous in reducing the feature loss caused by the pooling operation. The illumination adjustment network firstly takes a low-light image I lA single convolution operation is used for each image, the number of channels is set to 64, and the corresponding shallow layer features are obtained. Because shallow layer information is important for image generation processing, the proportion of shallow layer information can be increased by increasing the number of output channels of the first layer convolution. Then, four densely connected modules Dense block and transition layer are used to perform feature extraction and channel screening, and finally, a 1x1 convolution operation is used to make the number of channels of the output image the same as the number of channels of the input image. The dense block includes four densely connected bottleneck layers, and the structure of the bottleneck layer is as shown in Figure 2. The residual connection method can be combined with information from the shallow layer, and the Dropout layer can solve the problem of overfitting. The transition layer includes one 1x1 convolution operation and a Dropout layer, and the main action is to reduce the number of channels of the output to half of the input.

[0040] The loss function corresponding to the illumination control network is

number

[0041] In step 4, the reflectance restored image R r and step 3 illumination-enhanced image I e The initial enhanced image S r1 get.

[0042] In step 5, a perceptual enhancement network is used to generate the initial enhanced image S r1 From normal light image S h We learn a mapping to the final enhanced image S r2 The formula is:

number

[0043] The perceptual enhancement network uses normal and dilated convolutions to generate an initial enhanced image S r1 Feature extraction is performed on the image by first using one normal 3x3 convolution operation, then using seven 3x3 dilated convolution operations in succession, with the convolution dilation ratios being [2, 4, 8, 16, 32, 64, 128] respectively, and then using one 1x1 normal convolution operation to reduce the grid effect caused by the dilated convolution, and finally using a 1x1 convolution operation to make the number of channels in the output the same as the number of channels in the input image. The loss function corresponding to the perceptual reinforcement network is

number

[0044] The formula for the perceptual loss function is:

number

[0045] To further prove the feasibility and effectiveness of the present method, this embodiment carries out experiments using the present method and conventional low-light image enhancement methods on LOL, LIME, NEP and MEF datasets, respectively, and evaluates the non-reference image quality evaluation index NIQE and the full-reference image quality evaluation index SSI The experimental results are evaluated using M and PSNR. Among these indices, NIQE evaluates the visual quality of an image using the distance between the multivariate Gaussian distribution model extracted from the test image and the multivariate Gaussian distribution model extracted from the natural image, and the lower the NIQE value, the higher the visual quality of the image. Peak signal-to-noise ratio PSNR is generally used to evaluate the image quality reference value between the maximum signal and the background noise, and the higher the PSNR value, the lower the image noise and the lower the degree of image distortion. Structural similarity SSIM is generally used to evaluate the similarity of two images, and the higher the SSIM value, the more similar the images are.

[0046] Table 1 shows the evaluation values ​​of different indices on the LOL dataset for our method and other low-light image enhancement methods.

[0047] [Table 1]

[0048] Table 2 shows the NIQE evaluation values ​​of our method and other low-light image enhancement methods on three datasets: LIME, NEP, and MEF.

[0049] [Table 2]

[0050] As can be seen from the data in Table 1, the PSNR and SSIM indices of the enhanced images obtained by the present method are higher than those of other methods in the LOL dataset, and the NIQE index is second. As can be seen from the data in Table 2, the NIQE index of the enhanced images obtained by the present method is higher than those of other methods in the LIME, NPE and MEF datasets, which indicates that the enhanced images obtained by the present method have higher visual quality, less noise and more detailed information. The experimental results and data analysis fully prove the superiority of the method of the present invention in effectively improving the visual quality of images.

[0051] Figures 3, 4, and 5 show the original low-light image and the enhanced images obtained by this method and the other low-light image enhancement methods in the table above. (a) is the original low-light image, (b) is the enhanced image obtained by the BIMEF method, (c) is the enhanced image obtained by the CRM method, (d) is the enhanced image obtained by the LIME method, (e) is the enhanced image obtained by the MSR method, (f) is the enhanced image obtained by the NPE method, (g) is the enhanced image obtained by the Retinex-Net method, (h) is the enhanced image obtained by the GLAD method, (i) is the enhanced image obtained by the Zero-DCE method, (j) is the enhanced image obtained by the EnlightenGAN method, (k) is the enhanced image obtained by the KinD method, and (l) is the enhanced image obtained by this method. As can be seen from the photos, when comparing the brightness enhancement of the images, (b), (c), and (i) in Figures 3, 4, and 5 have low overall brightness and are not very effective in improving the brightness of the images. In Fig. 5 (d), (f), (i), (j), and (k), the brightness of the extremely dark areas is not improved, but (e), (h), and (l) show good effects on the overall and local extremely dark areas. As for noise removal, the KinD method and our method were effective, but the other methods had a lot of noise in the results.

[0052] Therefore, according to the above experimental results, whether it is the numerical value of the evaluation index or the enhanced image, the present method retains the effects of brightness and noise removal, while also improving the color and detailed texture of the image compared to the prior art.

Claims

1. A method for low-light image enhancement based on deep Retinex, including image decomposition, reflectance restoration, illumination adjustment, and enhancement fusion based on Retinex theory, specifically comprising the following steps 1 to 4: In step 1, a reflectance restoration network is obtained by using a residual module instead of the convolutional layer in the U-Net network, and the input of the network is the low-light image S l The low-light image I obtained by decomposing l and low light reflectance image R l and the reflectance restoration network is l from the normal light reflectance image R h The output is the reflectance restored image R r and The loss function of the reflectance restoration network is [0010] CLEDE is the CLEDE_2000 standard color difference loss function, In step 2, we introduce residual skip in the bottleneck layer of the dense block and use DenseNet-bc as the illumination adjustment network to estimate the low-light image I l From normal light illuminance image I h The input of the network is a low-light image I l and the output is an illumination-enhanced image I e and The loss function corresponding to the illumination control network is [0025] and The first term is the illumination consistency loss function, the second term is the gradient consistency loss function, and the third term is the structural consistency loss function. In step 3, the reflectance restored image in step 1 and the illumination-enhanced image in step 2 are fused by an image reconstruction method to obtain an initial enhanced image S r1 Obtained, In step 4, a perceptual enhancement network is used to generate the initial enhanced image S r1 From normal light image S h The perceptual enhancement network first learns a mapping from an initial enhanced image S r1 Then, a normal convolution operation is performed on x, y, and y in succession, and the convolution expansion ratio increases in increments of 2. Then, a single convolution operation with an expansion ratio of 1 is used, and finally, a 1×1 convolution operation is used to restore the number of channels, and the final enhanced image S r2 and The loss function corresponding to the perceptual reinforcement network is [0030] and The first and second terms are the MSE and structural consistency loss functions, respectively, and the third term is a perceptual loss function, [0045] and φ i,j represents the feature map extracted from the pre-trained model, i represents max pooling, j is the jth convolutional layer after max pooling, and W i,j and H i,j is the size of the feature map.

2. Low light image S based on Retinex theory l and normal light image S h are decomposed into low light reflectance images R l , normal light reflectance image R h , low light image I l , and the normal light illuminance image I h The formula is: [0050] The method for low light image enhancement based on deep Retinex according to claim 1 .

3. A layer decomposition network is constructed to decompose the input low light image and normal light image respectively based on the Retinex theory; The layer decomposition network first uses a single convolution operation on the input image to obtain the shallow layer features of the image, then inputs and decomposes the reflectance branch and the illumination branch respectively, and finally uses the sigmoid function to constrain the outputs of the two branches to the range of [0, 1]; The reflectance branch processes the shallow features of the image using downsampling and convolution operations, then upsampling, merging the channels with the downsampling result of the same resolution, and then performing two convolution operations to restore the resolution and number of channels of the output image to be the same as the input image; The method for low light image enhancement based on deep Retinex according to claim 1 or 2, characterized in that, in the illumination branch, a convolution operation is first performed on the shallow features of the image, and then a feature map with the same resolution and number of channels in the reflectance branch is selected to merge the channels, and then a convolution operation is performed to restore the number of channels of the output image to be the same as that of the input.

4. 【Number 6】 [0070] SSIM is an index function for evaluating structural similarity. [0080] The deep Retinex based low light image enhancement method of claim 1 , wherein ▽ represents the horizontal and vertical first derivative operators.

5. 2. The method of claim 1, wherein the reflectance restoration network performs a channel merging and one convolution operation on the input data, then performs an encoding process and a decoding process, and finally performs one convolution on the feature map obtained in the decoding process to restore the number of channels; the encoding process uses a combination of four residual modules and downsampling modules in succession, the downsampling module includes one 2x2 max pooling and one 1x1 convolution operation; the decoding module uses a combination of four upsampling operations, a channel merging operation and a residual module in succession, and the channel merging operation performs a channel merging operation on the upsampling result and the feature map of the same resolution in the encoding module.

6. The method of claim 1 , wherein the number of channels of the first convolutional layer of the illumination adjustment network is set to 64. The method of claim 1 , wherein the number of channels of the first convolutional layer of the illumination adjustment network is set to 64.

7. The method of image reconstruction includes: r and Illuminance-enhanced image I e The method for low-light image enhancement based on deep Retinex according to claim 1, characterized in that:

8. The method of claim 1, wherein the perceptual enhancement network performs seven 3x3 dilation convolution operations successively, and the dilation rates are [2, 4, 8, 16, 32, 64, 128] respectively.

Citation Information

Cited By

  • Low-light medical image enhancement method, system and equipment based on brightness guidance and detail recovery, and medium

    CN120876314A