A coarse-to-fine multi-scale dual-branch image exposure correction method

Through dynamic area-aware convolution and dual-branch illumination learning mechanism, overexposed and underexposed areas are located in the image, and multi-scale exposure fusion technology is used to solve the problem of overexposure and underexposure in the image at the same time, and generate richer and less exposed areas. High-quality images overcome the problems of loss of image details and incomplete information in the existing technology.

CN118505572BActive Publication Date: 2024-10-22QINGDAO SONLI SOFTWARE INFORMATION TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410961353.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-22
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

It is difficult for the existing technology to simultaneously handle the over- and under-exposure problems existing in images, resulting in loss of image details and incomplete information, and cannot effectively synthesize images with a wider dynamic range.

Method used

A coarse-to-fine multi-scale dual-branch image exposure correction method is used to learn the representation of over- and under-exposed areas through dynamic area-aware convolution, combined with a dual-branch illumination learning mechanism to locate these areas, and then use multi-scale exposure fusion Technology fuses enhanced images into more information-rich images.

Benefits of technology

It achieves adaptive enhancement that simultaneously locates overexposed and underexposed areas in the image, and generates images with a wider dynamic range and better visual quality through multi-scale fusion technology, improving the accuracy and efficiency of image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505572B_ABST
    Figure CN118505572B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of image processing, and relates to a coarse-to-fine multi-scale dual-branch image exposure correction method, which firstly learns the regional representation of overexposed and underexposed areas through dynamic region-aware convolution, and then simultaneously locates the overexposed and underexposed areas in one picture in combination with a dual-branch illumination learning mechanism, and then fuses a plurality of exposure-corrected images through a multi-scale exposure fusion technology, outputs a final fused image, and simultaneously locates the overexposed and underexposed areas in one picture and performs image region adaptive enhancement by using dynamic region-aware convolution and a dual-branch illumination learning mechanism, and fuses the enhanced images of different exposures into an image with richer information by using a multi-scale exposure fusion technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology and relates to a coarse-to-fine multi-scale dual-branch image exposure correction method. The overexposed and underexposed areas are simultaneously located in an image through a dual-branch illumination learning mechanism, and regional image adaptive enhancement is performed. At the same time, a multi-scale exposure fusion algorithm is combined to fuse the enhanced images of different exposures into an image with richer information. Background Art

[0002] When there are both underexposed and overexposed areas in an image, it may lead to loss of image details and incomplete information. Image exposure correction technology can help restore the details and information of underexposed and overexposed areas in the image, making the image richer and more complete. This is crucial for many application fields such as computer vision, medical image processing, and remote sensing image analysis. At the same time, in many image processing tasks, underexposed and overexposed images may reduce the performance of subsequent processing algorithms, such as target detection and image segmentation. Through exposure correction technology, images can be adjusted in the image preprocessing stage, thereby improving the accuracy and efficiency of subsequent processing algorithms. For example, CN112581392A discloses an image exposure correction method, system and storage medium based on bidirectional illumination estimation and fusion restoration, the method comprising: inputting the original input image I and its reverse map Inv into a bidirectional illumination estimation network to obtain a forward illumination map S and a reverse illumination map Sinv; combining I, Inv, S and Sinv to obtain an underexposure correction result UC and an overexposure correction result OC; the fusion network fuses the areas with good exposure quality in I, UC and OC together to output the final image; CN118014916A discloses an image exposure correction method and device based on a UNet network, wherein the method comprises: obtaining an initial image; inputting the initial image into a Laplace decomposition module to obtain a Laplace pyramid corresponding to the initial image; the Laplace pyramid includes at least one decomposed image; based on an exposure correction model, reconstructing the Laplace pyramid to obtain a clear image of the initial image after exposure correction; the exposure correction model is obtained by constructing a UNet network based on a fusion attention module and a hole residual dense module.

[0003] However, image exposure correction technology still faces some challenges and problems, including: First, existing image enhancement methods are usually used to solve a single exposure problem in the input image, that is, over- or under-exposure problems. When the illumination of the input image has both over- and under-exposure problems, these existing methods may not work well; second, a single image may not cover a wide dynamic range due to the existence of under- and over-exposed areas. How to synthesize an image with a wider dynamic range through multi-exposure fusion technology is a challenging task. Therefore, there is an urgent need for a coarse-to-fine multi-scale dual-branch image exposure correction method to solve the problems of over- and under-exposure that exist simultaneously in the input image and obtain an enhanced image with good visual quality. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and to provide a coarse-to-fine multi-scale dual-branch image exposure correction method. First, dynamic area-aware convolution is used to learn the regional representation of overexposed and underexposed areas. Then, the dual-branch illumination learning mechanism is combined to simultaneously locate the overexposed and underexposed areas in one picture. Then, the multi-scale exposure fusion technology is used to fuse the multiple images after exposure correction to output the final fused image.

[0005] To achieve the above object, the present invention adopts the following technical solution:

[0006] A multi-scale dual-branch image exposure correction method from coarse to fine, specifically comprising the following steps:

[0007] S1, inputting the original image into the dynamic area perception feature extraction module for feature extraction, and obtaining the regional representation of the overexposed and underexposed areas;

[0008] S2, locating the overexposed and underexposed areas through the dual-branch illumination estimation module, and obtaining an overexposed enhanced image and an underexposed enhanced image respectively;

[0009] S3. The overexposure enhanced image and the underexposure enhanced image obtained in step S2 are fused through a multi-scale exposure fusion module to obtain an exposure-corrected image.

[0010] As a further technical solution of the present invention, the dynamic area perception feature extraction module in step S1 adopts the encoder-decoder architecture of the Unet network, wherein the decoder is provided with a multi-scale local color distribution module, and the specific process of extracting features by the dynamic area perception feature extraction module is as follows:

[0011] S11. Dynamic filter generation: Given the original image , the original image In the input Unet network, the feature map of each layer of the decoder is jump-connected to the downsampled output of the corresponding layer. The feature map from each layer of the encoder is used as input. The input sample is reduced in dimension using the adaptive average pooling method, and then two consecutive 1D convolutional layers are applied. The first convolution operation uses sigmoid(·) as the activation function, and the second convolution operation does not use the activation function, finally generating n convolution kernel parameters , get n filters;

[0012] S12, learnable mask generation: Use the learnable mask to determine which filter is assigned to which region. First, use the multi-scale local color distribution module in the decoder to obtain a multi-scale local color distribution map. , and then the local color distribution map of the corresponding scale A 2D convolution operation is performed to predict the multi-value mask, and the spatial feature map is divided into n regions. By applying different convolution kernels to different regions, the multi-scale local color distribution map guides the network to locate regions with different exposures, and the output of the decoder is bilaterally upsampled to obtain the final extracted features, and the regional representation of overexposed and underexposed regions is obtained.

[0013] As a further technical solution of the present invention, step S12 obtains a multi-scale local color distribution map The process is:

[0014] Given a size of The input image , whose pixel value range is Between Divide small pieces, of which is the operator that takes the nearest integer and defines the local color distribution as Color histogram within the local block, using 4D local color distribution map To indicate the scale The distribution of , bilateral grid is a four-dimensional array, where the first two dimensions Corresponding to the two-dimensional position on the image plane, the third dimension c corresponds to the number of channels of the image, and the fourth dimension b corresponds to the histogram column vector bin, then the 4D local color distribution map It is expressed as: ,in Return Pixels Belong to The index in the local block of , by assigning different values ​​to K, we can get the local color distribution map of different scales. The value range of K is ,but That is, a multi-scale local color distribution map with different levels.

[0015] As a further technical solution of the present invention, the specific process of step S2 is:

[0016] For the original image , based on the Retinex theory, the input image It is decomposed into an illumination map L and a reflectance map R. For the underexposed image, the reflectance map R is used as the enhanced image, and the generated underexposed enhanced image can be expressed as ; For the overexposed image, it is regarded as the underexposed in the reverse image of the input image. The reverse image can be expressed as , then the generated overexposure enhanced image is expressed as ,in, and Generated by the encoder and decoder.

[0017] As a further technical solution of the present invention, the specific process of step S3 is:

[0018] S31. Enhance the image by underexposure , overexposure enhanced image And the original image Three images are used as input. is a set of three images, is an image The brightness component of is a pixel position, Represents pixels The contrast, color saturation and exposure of Obtained by applying a Laplacian filter to the grayscale version of each image, By calculating the standard deviation within the R, G, and B channels, It is obtained by applying the Gaussian curve to each channel and multiplying the results, and their product is recorded as , then the weight graph is expressed as: ;

[0019] S32, set and Luminance and weight graph Gaussian pyramid, the total number of layers of the pyramid Defined as: ,in, Indicates not greater than The largest integer, Represents the width and height of the image respectively;

[0020] S33, set the coefficient of the guided filter to and , then the pyramid representation based on guided filtering is: ;

[0021] S34, will The Laplacian of After completing the guided filtering, all images of different pyramid layers are combined using the new weight map Perform multi-scale fusion to obtain a fusion pyramid: ;

[0022] S35, folding the fused pyramid to obtain the final enhanced image , which is the exposure correction image.

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

[0024] (1) Using dynamic region-aware convolution and dual-branch illumination learning mechanism, we can simultaneously locate overexposed and underexposed areas in an image and perform adaptive enhancement on image regions.

[0025] (2) Multi-scale exposure fusion technology is used to fuse the enhanced images with different exposures into an image with richer information. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic flow chart of a coarse-to-fine multi-scale dual-branch image exposure correction method provided by the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described below through embodiments in conjunction with the accompanying drawings.

[0028] Example:

[0029] like Figure 1 As shown, this embodiment provides a coarse-to-fine multi-scale dual-branch image exposure correction method, which specifically includes the following steps:

[0030] S1. Input the original image into the dynamic area perception feature extraction module for feature extraction to obtain the regional representation of the overexposed and underexposed areas; the dynamic area perception feature extraction module adopts the encoder-decoder architecture of the Unet network, wherein the decoder is provided with a multi-scale local color distribution module. The specific process of extracting features by the dynamic area perception feature extraction module is as follows:

[0031] S11. Dynamic filter generation: Given the original image , the original image In the input Unet network, the feature map of each layer of the decoder is jump-connected to the downsampled output of the corresponding layer. The feature map from each layer of the encoder is used as input. The input sample is reduced in dimension using the adaptive average pooling method, and then two consecutive 1D convolutional layers are applied. The first convolution operation uses sigmoid(·) as the activation function, and the second convolution operation does not use the activation function, finally generating n convolution kernel parameters , and n filters are obtained; since the convolution filter is predicted based on the characteristics of each image sample, each filter can be adaptively adjusted according to its own characteristics to enhance the ability to capture overexposed and underexposed image features.

[0032] S12, learnable mask generation: Use the learnable mask to determine which filter is assigned to which region. First, use the multi-scale local color distribution module in the decoder to obtain a multi-scale local color distribution map. , and then the local color distribution map of the corresponding scale A 2D convolution operation is performed to predict the multi-value mask, and the spatial feature map is divided into n regions. By applying different convolution kernels to different regions, the multi-scale local color distribution map guides the network to locate regions with different exposures, and the output of the decoder is bilaterally upsampled to obtain the final extracted features, and the regional representation of overexposed and underexposed regions is obtained, where the multi-scale local color distribution map is obtained. The process is:

[0033] Given a size of The input image , whose pixel value range is Between Divide small pieces, of which is the operator that takes the nearest integer and defines the local color distribution as Color histogram within the local block, using 4D local color distribution map To indicate the scale The distribution of , bilateral grid is a four-dimensional array, where the first two dimensions Corresponding to the two-dimensional position on the image plane, the third dimension c corresponds to the number of channels of the image, and the fourth dimension b corresponds to the histogram column vector bin, then the 4D local color distribution map It is expressed as: ,in Return Pixels Belong to The index in the local block of , by assigning different values ​​to K, we can get the local color distribution map of different scales. The value range of K is ,but That is, a multi-scale local color distribution map with different levels.

[0034] S2, locate the overexposed and underexposed areas through the dual-branch illumination estimation module, and obtain the overexposed enhanced image and underexposed enhanced image respectively; for the original image , based on the Retinex theory, the input image It is decomposed into an illumination map L and a reflectance map R. For the underexposed image, the reflectance map R is used as the enhanced image, and the generated underexposed enhanced image can be expressed as ; For the overexposed image, it is regarded as the underexposed in the reverse image of the input image. The reverse image can be expressed as , then the generated overexposure enhanced image is expressed as ,in, and Generated by the encoder and decoder.

[0035] S3, fusing the overexposure enhanced image and the underexposure enhanced image obtained in step S2 through a multi-scale exposure fusion module to obtain an exposure-corrected image, specifically:

[0036] S31. Enhance the image by underexposure , overexposure enhanced image And the original image Three images are used as input. is a set of three images, is an image The brightness component of is a pixel position, Represents pixels The contrast, color saturation and exposure of Obtained by applying a Laplacian filter to the grayscale version of each image, By calculating the standard deviation within the R, G, and B channels, It is obtained by applying the Gaussian curve to each channel and multiplying the results, and their product is recorded as , then the weight graph is expressed as: ;

[0037] S32, set and Luminance and weight graph Gaussian pyramid, the total number of layers of the pyramid Defined as: ,in, Indicates not greater than The largest integer, Represents the width and height of the image respectively;

[0038] S33, set the coefficient of the guided filter to and , then the pyramid representation based on guided filtering is: ;

[0039] S34, will The Laplacian of After completing the guided filtering, all images of different pyramid layers are combined using the new weight map Perform multi-scale fusion to obtain a fusion pyramid: ;

[0040] S35, folding the fused pyramid to obtain the final enhanced image , which is the exposure correction image.

[0041] In order to verify the effectiveness of the method, this embodiment compares the method with existing exposure correction and image enhancement methods. This embodiment selects two conventional enhancement methods, histogram equalization (HE) and CLAHE, and four deep learning-based enhancement methods, RetinexNet, ZeroDCE, MSEC and LCDIE. The commonly used peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) are used as evaluation indicators for enhanced images. This embodiment uses the data set in the MSEC method for testing, which contains a relatively wide range of exposure values ​​and corresponding correctly exposed images. The results are shown in Table 1.

[0042] Table 1: Comparison of accuracy of this embodiment with other algorithms

[0043]

[0044] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A coarse-to-fine multi-scale dual-branch image exposure correction method, characterized in that: The specific steps include: S1. Input the original image into the dynamic area perception feature extraction module for feature extraction to obtain the regional representation of the overexposed and underexposed areas; the dynamic area perception feature extraction module adopts the encoder-decoder architecture of the Unet network, wherein the decoder is provided with a multi-scale local color distribution module. The specific process of extracting features by the dynamic area perception feature extraction module is as follows: S11. Dynamic filter generation: Given an original image , the original image In the input Unet network, the feature map of each layer of the decoder is jump-connected to the downsampled output of the corresponding layer. The feature map from each layer of the encoder is used as input. The input sample is reduced in dimension using the adaptive average pooling method, and then two consecutive 1D convolutional layers are applied. The first convolution operation uses sigmoid(·) as the activation function, and the second convolution operation does not use the activation function, finally generating n convolution kernel parameters , get n filters; S12, learnable mask generation: Use the learnable mask to determine which filter is assigned to which region. First, use the multi-scale local color distribution module in the decoder to obtain a multi-scale local color distribution map. , and then the local color distribution map of the corresponding scale Perform 2D convolution operation to predict multi-value mask, divide the spatial feature map into n regions, apply different convolution kernels on different regions, and guide the network to locate regions with different exposures. Upsample the decoder output bilaterally to obtain the final extracted features, and get the regional representation of overexposed and underexposed regions. S2, locating the overexposed and underexposed areas through the dual-branch illumination estimation module, and obtaining an overexposed enhanced image and an underexposed enhanced image respectively; S3, fusing the overexposure enhanced image and the underexposure enhanced image obtained in step S2 through a multi-scale exposure fusion module to obtain an exposure-corrected image; the specific process is as follows: S31. Enhance the image by underexposure , overexposure enhanced image And the original image Three images are taken as input. is a set of three images, , is an image The brightness component of is a pixel position, Represents pixels The contrast, color saturation and exposure of Obtained by applying a Laplacian filter to the grayscale version of each image, By calculating the standard deviation within the R, G, and B channels, It is obtained by applying the Gaussian curve to each channel and multiplying the results, and their product is recorded as , then the weight graph is expressed as: ; S32, set and Luminance and weight graph Gaussian pyramid, the total number of layers of the pyramid Defined as: ,in, Indicates not greater than The largest integer, Represents the width and height of the image respectively; S33, set the coefficient of the guided filter to and , then the pyramid representation based on guided filtering is: ; S34, will The Laplace pyramid is represented as After completing the guided filtering, all images of different pyramid layers are combined using the new weight map Perform multi-scale fusion to obtain a fusion pyramid: ; S35, folding the fused pyramid to obtain the final enhanced image , which is the exposure correction image.

2. The method for multi-scale dual-branch image exposure correction from coarse to fine according to claim 1, characterized in that: Step S12 obtains a multi-scale local color distribution map The process is: Given a size of The input image , whose pixel value range is Between Divide small pieces, of which is an integer operator and defines the local color distribution as Color histogram within the local block, using 4D local color distribution map To indicate the scale The distribution of , bilateral grid is a four-dimensional array, where the first two dimensions Corresponding to the two-dimensional position on the image plane, the third dimension c corresponds to the number of channels of the image, and the fourth dimension b corresponds to the histogram column vector bin, then the 4D local color distribution map It is expressed as: ,in Return Pixels Belong to The index in the local block of , by assigning different values ​​to K, we can get the local color distribution map of different scales. The value range of K is ,but That is, a multi-scale local color distribution map with different levels.

3. The method for multi-scale dual-branch image exposure correction from coarse to fine according to claim 2, characterized in that: The specific process of step S2 is: For the original image , based on the Retinex theory, the input image It is decomposed into an illumination map L and a reflectance map R. For the underexposed image, the reflectance map R is used as the enhanced image. The generated underexposed enhanced image is expressed as ; For the overexposed image, it is regarded as the underexposed in the reverse image of the input image. The reverse image can be expressed as , then the generated overexposure enhanced image is expressed as ,in, and Generated by the encoder and decoder.

Citation Information

Patent Citations

  • Image exposure correction method and system based on bidirectional illumination estimation and fusion restoration, and storage medium

    CN112581392A

  • Image exposure correction method and device based on UNet network

    CN118014916A

  • Non-uniform illumination image enhancement method based on virtual multi-exposure fusion

    CN112734650A

  • Image multi-scale registration fusion method and device, terminal equipment and storage medium

    CN115760665A

  • Image defogging correction method and device based on dark channel

    CN116228563A