An image fusion method based on structural similarity and L2 norm optimization
Through an image fusion method based on structural similarity and L2 norm optimization, the image is decomposed into a base layer and a detail layer, and secondary fusion is performed to solve the problem of computational complexity and loss of detail information in the fusion of infrared and visible light images, and reduce artifacts. and halo phenomenon, achieving a more ideal fusion effect.
Patent Information
- Application Number
- CN202211381620.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-11-07
AI Technical Summary
Existing infrared and visible light image fusion methods have problems in terms of computational complexity, loss of detail information, and artifacts and halo phenomena during the fusion process, resulting in unsatisfactory fusion results.
An image fusion method based on structural similarity and L2 norm optimization is used to decompose the source image into a base layer and a detail layer. Secondary fusion is performed through structural similarity and L2 norm optimization to reduce artifacts and halo phenomena and enhance detail information. reserve.
It effectively reduces the complexity of the fusion process, improves the efficiency of image fusion, and enhances the retention of detailed information in the fused image. The fusion effect is closer to human visual understanding, and the objective evaluation index is better than traditional methods.
Smart Images

Figure CN115619696B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of infrared and visible light image processing, and specifically relates to an image fusion method based on structural similarity and L2 norm optimization. Background Art
[0002] A single image does not necessarily reflect the complete information of the image. Sometimes we need two or more images of the same scene to achieve better visual understanding. Image fusion is a technique that combines complementary or useful information in source images into a fused image.
[0003] Visible light images contain rich background and detail information, which is in line with the human visual observation system, but the image information reflected at night or in unclear weather is poor; infrared images are based on the difference in thermal radiation between objects and the environment, and are not affected by low visibility or bad weather conditions, but their spatial resolution is low and the image details reflected are less. The fusion of infrared images and visible light images can combine both the thermal radiation information in infrared images and the detailed texture information in visible light images, so it is widely used in vehicle-mounted, night driving, security monitoring, military and other fields.
[0004] Visible light and infrared light image fusion can be mainly divided into traditional methods and deep learning methods. Methods based on deep learning have great research prospects in the field of image fusion. The main methods include autoencoders, CNN networks, GNN networks, and Transformers. The basic principle is to extract multi-layer features of the source image through a deep learning framework, thereby performing feature fusion and image reconstruction. Deep learning methods can extract image feature information and automatically learn fusion rules. However, the frameworks of most deep learning methods are currently complex and require a large amount of training data. In the fusion process, incomplete feature extraction is prone to occur, and halos, artifacts, and other phenomena are easily introduced.
[0005] Traditional methods mainly include multi-scale transformation, sparse representation, and saliency. Among them, multi-scale transformation is the most commonly used and effective image fusion method. The basic principle is to decompose the image into multiple scale directions through multi-scale transformation, and use different fusion strategies for each scale to finally reconstruct the image through the corresponding inverse transformation. The most common multi-scale transformations are pyramid transformation, wavelet transformation, curvelet transformation, non-subsampled contourlet transformation, non-subsampled shear plate transformation, etc. The method based on multi-scale transformation conforms to the visual characteristics of human beings, but the wavelet transformation has only limited directionality, the curvelet transformation is prone to produce spectrum aliasing effects, and the multi-scale transformation decomposition calculation is also large. Summary of the invention
[0006] The purpose of this patent invention is to solve the problems of computational complexity and loss of detail information in the image fusion process, as well as the artifacts and halo phenomena caused by the fusion process.
[0007] To achieve the above purpose, the present invention provides an image fusion method based on structural similarity and L2 norm optimization, which decomposes the source image into two scales, the base layer and the detail layer, greatly reduces the complexity of the fusion structure, and improves the image fusion efficiency. Since not all details in the image can play a role in real application scenarios, such as local high brightness at night - car lights, street lights, etc., the present invention uses structural similarity and L2 norm optimization to implement secondary fusion of guided filtering pre-fusion images, so that the detail layer of the fused image is closer to the effective information of the detail layer in the visible light and infrared images, enhances the detail information of the fused image, fully extracts the regional features and texture information of the source image, retains the rich and useful basic information in the source image, and reduces the artifacts and halo phenomena brought about by the fusion process. The fusion effect is closer to the human visual understanding system, and the objective evaluation is also ideal.
[0008] An image fusion method based on structural similarity and L2 norm optimization mainly includes the following steps.
[0009] Step 1: Image decomposition. Through dual-scale changes, the infrared and visible light images are decomposed into base layer B and detail layer D. The specific operation is to use a 31x31 mean filter to filter the infrared image IR. The image obtained after filtering is the base layer B1 of the infrared image. The infrared image IR minus the base layer B1 gets the detail layer D1. Similarly, the base layer B2 and detail layer D2 of the visible light image are obtained. The base layer of the image contains the low-frequency information of the image, reflecting the intensity changes of the image on a large scale. The detail layer contains the high-frequency information of the image, reflecting the details of the image on a small scale.
[0010] Step 2: Construct a weight map, calculate the saliency map S of the infrared image and the visible light image respectively, and calculate the weight map P according to the saliency map of the source image; the specific operation is to first perform Laplace filtering on the source image, convert the filtering result into an absolute value and then perform Gaussian filtering, and then calculate the saliency map S1 of the infrared image and the saliency map S2 of the visible light image after filtering, and construct the corresponding weight maps P1 and P2 according to the saliency maps.
[0011] Step 3: Image pre-fusion, the weight map P in step 2 is filtered by guidance, and the guidance map G is the corresponding source image to obtain the weight coefficient w of the base layer b1 and w b2 , the weight coefficient w of the detail layer d1 and w d2 , normalize the weight coefficients, and then weight the base layer image and the detail layer image with the corresponding weight coefficients respectively to obtain the pre-fusion image F1.
[0012] Step 4: Calculate SSIM. Calculate the structural similarity IF_SSIM between the pre-fused image F1 and the infrared image IR, and the structural similarity VF_SSIM between the pre-fused image F1 and the visible light image VI. The structural similarity SSIM consists of three features: brightness, contrast, and structure. The average grayscale of the image is used as an estimate of the brightness feature. The brightness feature is given by l(x,y)=(2μ x *μ y +C1) / ( μ x 2 +μ y 2 +C1) indicates that the standard deviation of the image is used as an estimate of the contrast feature, and its contrast feature is c(x,y)=(2σ x *σ y +C2) / (σ x 2 +σ y 2 +C2) indicates that the covariance of the image is used as an estimate of the structural feature, and its structural feature is given by s(x,y)=(σ xy +C3) / (σ x *σ y +C3), then the structural similarity can be expressed by SSIM(x,y)=[l(x,y)] α * [ c(x,y)] β * [ s(x,y)] γ Indicates that C1, C2, and C3 are very small positive constants to avoid instability caused by too small denominators. α, β, and γ are all greater than 0 and are used to adjust the weights of the three features of brightness, contrast, and structure, respectively.
[0013] Step 5: Secondary fusion and reconstruction. Re-determine the fusion rule through the relationship between IF_SSIM and VF_SSIM in step 4, introduce the L2 norm to optimize the structural similarity coefficient, re-integrate the base layer of the image, and use the structural similarity coefficient to re-integrate the detail layer of the image; reconstruct the result of the secondary fusion of the base layer and the detail layer to obtain the final fused image of the infrared and visible light source images. The specific steps are: use the structural similarity IF_SSIM of the infrared image and the pre-fused image in (4) to subtract the structural similarity VF_SSIM of the visible light and the pre-fused image to obtain the difference ss of the structural similarity, that is, ss(m,n)=IF_SSIM(m,n)-VF_SSIM(m,n), m and n correspond to the image pixel positions, and transform ss to a coefficient w between 0 and 1. s (m,n)=mat2gray[0.5+ss(m,n)], use w for the details of the image s The coefficients are fused to obtain the re-fused image MD=D1*w of the detail layer s(m,n)+D2*[1-w s (m,n)], using the L2 norm on the base layer of the image s The coefficients are optimized for fusion, and the base layer re-fused image IMB=L2(B1,B2,w s ), and finally the detail layer and the base layer image are added together to reconstruct the fused image FF=IMD+IMB.
[0014] The infrared and visible light image fusion method based on structural similarity and L2 norm optimization proposed in the present invention retains the rich and useful basic information in the source image, effectively solves the complexity of calculations brought about by multi-scale decomposition, the loss of detail information in the fusion process, and the artifacts and halo phenomena brought about in the fusion process. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a flowchart of the method of the present invention.
[0016] Figure 2 is the infrared source image of the experiment of the present invention.
[0017] Figure 3 This is the visible light source image of the experiment of the present invention.
[0018] Figure 4 is a pre-fusion image of the experiment of the present invention.
[0019] Figure 5 This is the image fused by the method of the present invention. DETAILED DESCRIPTION
[0020] The implementation of the method of the present invention is described in detail below through specific experiments in conjunction with the accompanying drawings.
[0021] The structural diagram of an image fusion method based on structural similarity and L2 norm optimization is as follows: Figure 1 As shown, it includes image decomposition, weight map construction, image pre-fusion, calculation of structural similarity SSIM, image secondary fusion and image reconstruction. The infrared and visible light input source images in the experiment use the TNO public dataset.
[0022] (1) Image decomposition: The infrared and visible light input source images are respectively filtered through a mean filter with a template of 31x31 to obtain the base layer B1 of the infrared image and the base layer B2 of the visible light image. The infrared source input source image IR is subtracted from its base layer B1 to obtain the detail layer D1 of the infrared image. Similarly, the visible light input source image VI is subtracted from its base layer B2 to obtain the detail layer D2 of the visible light image.
[0023] (2) Constructing the weight map: Calculate the saliency map S of the infrared image and the visible light image respectively, and calculate the weight map P based on the saliency map of the source image.
[0024] ① First, perform Laplace transform on the source image. In the experiment, a 3*3 template Laplace filter is used to obtain the high-frequency details of the image. At the same time, because the Laplace filter template contains negative values, the filtered result needs to be converted to an absolute value.
[0025] ② Use Gaussian filtering on the image that has been operated by the Laplace filter to reduce the noise in the image. The Gaussian filter with a template of 3*3 and a standard deviation of 5 is used in the experiment.
[0026] ③ By comparing the pixel values of the images after Gaussian filtering, the saliency map S1 of the infrared image and the saliency map S2 of the visible light image are obtained, and then the corresponding weight maps P1 and P2 are constructed according to the saliency value pixel positions in the saliency maps.
[0027] (3) Image pre-fusion: The weight map P in (2) is filtered through a guide filter to obtain the weight coefficient w = guidefilter(G, P, r, eps); when P is the weight map of the infrared image, the guided filter image G is the infrared image IR, and when P is the weight map of the visible light image, the guided filter image G is the visible light image VI. When r = 45 and eps = 0.3, the weight coefficient w of the base layer is obtained. b1 and w b2 , take r=7, eps=10 -6 , get the weight coefficient w of the detail layer d1 and w d2 ; Normalize the weight coefficients, then weight the base layer and detail layer of the source image with the corresponding weight coefficients respectively to obtain the base layer of the pre-fused image FB=B1*w b1 +B2*w b2 , detail layer FD = D1*w d1 +D2*w d2 , add FB and FD to reconstruct the pre-fusion image F1 = FB + FD, such as Figure 4 shown.
[0028] (4) Calculate SSIM: Calculate the structural similarity IF_SSIM between the pre-fusion image F1 and the infrared image IR, and the structural similarity VF_SSIM between the pre-fusion image F1 and the visible light image VI. The structural similarity SSIM consists of three features: brightness, contrast, and structure. x , μ y Represent the average grayscale of the two images, σ x , σ y Represent the standard deviation of the two images, σ xyrepresents the covariance of the two images, C1, C2 and C3 are constants, and appropriate parameters can be selected to adjust the weights of the three features of brightness, contrast and structure. Here, α, β and γ are all 1, and the brightness formula is substituted into l(x, y) = (2μ x *μ y +C1) / ( μ x 2 +μ y 2 +C1), contrast formula c(x,y)=(2σ x *σ y +C2) / (σ x 2 +σ y 2 +C2), structural formula s(x,y)=(σ xy +C3) / (σ x *σ y +C3), we can get the structural similarity SSIM(x,y)=[l(x,y)] α * [ c(x,y)] β * [ s(x,y)] γ .
[0029] (5) Secondary fusion and reconstruction: The difference ss between the structural similarity between the infrared image and the pre-fused image and the structural similarity between the visible light image and the pre-fused image is obtained by subtracting VF_SSIM from IF_SSIM in (4), that is, ss(m,n)=IF_SSIM(m,n)-VF_SSIM(m,n), where m and n correspond to the image pixel positions. ss is transformed into a coefficient w between 0 and 1. s , use w for the details D1 and D2 of the image s The coefficients are fused to obtain the re-fused image of the detail layer IMD=D1*w s (m,n)+D2*[1-w s (m,n)], the base layers B1 and B2 of the image use the L2 norm to w s The coefficients are optimized for fusion, and the base layer re-fused image IMB = L2(B1, B2, w s ), and finally the detail layer IMD and base layer IMB images are added and reconstructed to obtain the final fused image FF=IMD+IMB.
[0030] This paper uses six indicators, including average gradient (AG), information entropy (IE), spatial frequency (SF), edge intensity (EI), standard deviation (SD) and cross entropy (CE), to evaluate the fusion results. The larger the AG, IE, SF, EI and SD, the better the fusion effect, and the smaller the CE, the better the fusion effect. The objective evaluation indicators of the method of the present invention are better than those of the guided filtering method, among which the average gradient AG is better than 35.5%, the information entropy IE is better than 3.56%, the spatial frequency SF is better than 22.7%, the edge intensity EI is better than 35.7%, the standard deviation SD is better than 14.8%, and the cross entropy CE is better than 30.6%, as shown in Table 1.
[0031]
[0032] like Figure 5 That is, the image of the guided filtering fusion is secondary fused based on structural similarity and L2 norm optimization. It can be seen that this invented method effectively retains the thermal radiation information of the infrared image, while well integrating the texture, edge and other detail information of the visible light image, enhancing the detail information of the image, and reducing the artifacts and halo phenomena that appear in the fusion process. Both the subjective fusion results and the objective evaluation indicators have achieved relatively ideal results.
Claims
1. An image fusion method based on structural similarity and L2 norm optimization, characterized in that: The following steps are involved: Step 1: Image decomposition. The infrared and visible light images are decomposed into a base layer image B and a detail layer image D respectively through dual-scale transformation. The infrared image IR is filtered using a mean filter with a template size of 31x31. The image obtained after filtering is the base layer B1 of the infrared image. The infrared image IR is subtracted from the base layer B1 to obtain the detail layer D1. Similarly, the base layer B2 and detail layer D2 of the visible light image are obtained. Step 2: Construct a weight map, calculate the saliency map S of the infrared and visible light source images respectively, and calculate the weight map P according to the saliency map of the source image; specifically, first perform Laplace filtering on the source image, convert the filtering result into an absolute value and then perform Gaussian filtering, then calculate the saliency map S1 of the filtered infrared image and the saliency map S2 of the visible light image, and construct the corresponding weight maps P1 and P2 according to their saliency maps; Step 3: Image pre-fusion: The weight map P is filtered through a guide filter to obtain a pre-fusion weight coefficient w. The base layer and detail layer are weighted according to the corresponding weight coefficients, and the weighted results are added to obtain the pre-fusion image F1. Specifically, the weight map obtained in step 2 is filtered through a guide filter to obtain the weight coefficients w of the base layer. b1 and w b2 , the weight coefficient w of the detail layer d1 and w d2 , normalize the weight coefficients, and then weight the base layer image and detail layer image with the corresponding weight coefficients respectively to obtain the pre-fusion image F1; Step 4: Calculate the structural similarity SSIM, calculate the structural similarity IF_SSIM between the pre-fusion image F1 and the infrared image IR, and the structural similarity VF_SSIM between the pre-fusion image F1 and the visible light image VI; Step 5: Secondary fusion and reconstruction. Re-determine the fusion rule based on the relationship between IF_SSIM and VF_SSIM, introduce L2 norm to optimize the structural similarity to re-integrate the base layer of the source image, use the structural similarity coefficient to re-integrate the detail layer of the source image, and finally reconstruct the result of the secondary fusion of the base layer and the detail layer to obtain the final fused image FF of the infrared and visible light source images. Specifically, first, subtract the structural similarity VF_SSIM between the visible light and the pre-fused image from the structural similarity IF_SSIM between the infrared image and the pre-fused image in step 4 to obtain the difference ss of the structural similarity, that is, ss(m,n)=IF_SSIM(m,n)-VF_SSIM(m,n), where m and n represent the corresponding image pixel positions; then transform ss to a coefficient w between 0 and 1. s (m,n)=mat2gray[0.5+ss(m,n)], using w for the details of the image s The coefficients are fused to obtain the re-fused image of the detail layer IMD = D1*w s (m,n)+D2*[1-w s (m,n)]; then, the base layer of the image uses the L2 norm to w s The coefficients are optimized for fusion, and the base layer re-fused image IMB = L2 (B1, B2, w s ); Finally, the detail layer and the base layer image are added and reconstructed to obtain the fused image FF = IMD + IMB.
