Fusion method of visible light image and SAR (Synthetic Aperture Radar) image
By using the Transformer-CNN dual-branch network in image fusion, combined with the LT model, Dropkey mechanism and CBAM module, the problems of insufficient feature extraction and information loss in the existing technology are solved, and high-quality visible light and SAR image fusion is achieved. Improved image processing performance.
Patent Information
- Application Number
- CN202410659898.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing visible light image and SAR image fusion methods have problems such as weak global feature mining capabilities, loss of important feature information, and insufficient differentiation of different modal features during the feature extraction and fusion process.
A dual-branch fusion network based on Transformer and CNN is used to extract global features through the LT model and Dropkey mechanism, and a CBAM module is introduced into the CNN network to extract local features. A dual-branch structure and residual structure are used to design a two-stage loss function to improve the image. Fusion performance.
It achieves high-quality global and local feature extraction and fusion of visible light images and SAR images, improves image processing performance, reduces feature information loss, and enhances the ability and robustness to extract complex features.
Smart Images

Figure CN118587540A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular relates to a method for fusing a visible light image with a SAR image. Background Art
[0002] In recent years, with the continuous development of remote sensing technology, Synthetic Aperture Radar (SAR) imaging, as a new imaging technology, has become a hot research field. Synthetic aperture radar is an active microwave remote sensing system with the characteristics of all-day, all-weather and certain penetration, which can provide SAR images with rich structural information. In comparison, traditional visible light images receive multi-spectral reflectance information of ground objects, which have the characteristics of rich information and high resolution, but visible light sensor imaging is easily affected by factors such as weather. Therefore, the organic fusion of visible light and SAR images and their complementary advantages can greatly enrich the useful information of the image, which is of great significance in image processing work such as military detection, agricultural planning, and target extraction.
[0003] At present, the mainstream visible light and SAR image fusion methods can be roughly divided into two categories, including traditional image fusion methods and deep learning-based image fusion methods. Traditional image fusion algorithms mainly include Laplacian pyramid LP, image fusion method based on shear wave SW, image fusion method based on wavelet DWT, non-subsampled Shearelet transform NSST, sparse representation SR and other methods, but traditional methods use complex transformations and manual rules to limit the real-time performance and integration of semantic information of the algorithm, which limits its application in advanced visual tasks. Image fusion methods based on deep learning include those based on auto-encoder (AE) framework, convolutional neural network (CNN) framework and generative adversarial network (GAN) framework, etc. These frameworks can automatically and efficiently learn the feature information of visible light and SAR images and obtain very accurate fusion results.
[0004] In the image fusion method based on deep learning, the autoencoder is a commonly used fusion model. Its structure mainly consists of three parts: encoder, fusion decision and decoder. The encoder is mainly used to encode the source image into a low-dimensional representation of the latent space to obtain the key features of the image; the decoder reconstructs the original image by receiving the latent representation generated by the encoder. During the training process, the decoder can reconstruct the input image as accurately as possible by designing a suitable loss function; after the training is completed, the encoder can encode data from different modalities into a low-dimensional representation of the latent space, and then fuse them according to the designed fusion method, and input the fused code into the decoder for reconstruction. The image fusion method based on the autoencoder does not require manual design of feature extraction, can effectively learn key information from the data, and can achieve fusion in an end-to-end framework, which greatly simplifies the fusion process.
[0005] Among the numerous AE fusion frameworks, the autoencoder method based on CNN feature extraction and reconstruction has been proven to be one of the most effective methods. The shared encoder-based algorithm and the private encoder-based method are currently the more commonly used methods of this method. However, these methods currently have some problems and shortcomings: First, CNN is a neural network based on a convolutional architecture with the characteristics of inductive bias and translation invariance. It improves the efficiency of graphic feature calculation, but causes the loss of receptive field, resulting in weak global feature mining capabilities and difficulty in extracting global information to obtain high-quality fused images; secondly, the forward propagation of the fusion network may cause the loss of some important feature information; finally, the method based on the shared encoder cannot distinguish the features of different modalities, while the method based on the private encoder ignores the shared features. They cannot fully consider the different information between images of different modalities.
[0006] Unlike CNN, the Vision Transformer (ViT) model architecture, which has been a hot topic in the field of computer vision, uses mechanisms such as self-attention, multi-head attention, and position encoding to enable the model to effectively capture global dependencies in the input sequence, thereby having excellent global feature extraction capabilities. However, the network model based on ViT is relatively complex and requires a lot of computation to achieve good performance.
[0007] Therefore, researchers hope to design a better fusion network architecture to solve the shortcomings and challenges faced in feature extraction and fusion of visible light images and SAR images. Summary of the invention
[0008] In order to solve the above problems, the present invention proposes a visible light image and SAR image fusion algorithm based on Transformer and CNN, which can effectively realize the extraction and fusion of global features and local features of visible light images and SAR images to improve the subsequent processing performance of the image. High-quality visible light and SAR fused images can be obtained through the algorithm of the present invention.
[0009] To achieve the above object, the present invention discloses a method for fusing a visible light image with a SAR image, comprising the following steps:
[0010] S1: Construct a fusion network based on the Transformer network with the LT model and Dropkey mechanism and the CNN network with the CBAM module;
[0011] S2: Input the visible light image and SAR image of the training set into the encoder to extract the corresponding global features and local features respectively;
[0012] S3: fusing and splicing the global features of the visible light image with the global features of the SAR image, and inputting the spliced global features, the local features of the visible light image and the local features of the SAR image into the decoder to reconstruct the original image;
[0013] S4: Input the visible light image and SAR image of the training set into the encoder trained in step S3, and extract the corresponding global features and local features respectively;
[0014] S5: fusing and splicing the global features of the visible light image with the global features of the SAR image, fusing and splicing the local features of the visible light image with the local features of the SAR image, inputting the spliced global features and the spliced local features into a decoder to reconstruct a fused image;
[0015] S6: Input the visible light image and the SAR image to be fused into the fusion model trained in the above steps to obtain a fused image.
[0016] Furthermore, in step S2 and step S4, the feature extraction process includes: firstly, extracting shallow features of the visible light image and the SAR image by RestormerBlock, and then, based on the extracted shallow features, further extracting global features of the visible light image and the SAR image based on the Transformer network introducing the LT model and the Dropkey mechanism, and further extracting local features of the visible light image and the SAR image based on the CNN network introducing the CBAM module.
[0017] Furthermore, step S3 is the first stage of model training, and the total loss calculation formula of training in this stage is as follows:
[0018] L total_1 =α1L MI +α2L SSIM +α3L decomp (1)
[0019] Among them, L total_1 represents the total loss of the first stage image, L MI represents the mutual information loss of the image, L SSIM represents the structural similarity loss, L decomp represents the feature decomposition loss of the image, and α1, α2 and α3 are adjustment coefficients.
[0020] Furthermore, the adjustment coefficient α1 is 3, the adjustment coefficient α2 is 10, and the adjustment coefficient α3 is 1.
[0021] Furthermore, L MI , L SSIM and L decomp The calculation formula is as follows:
[0022] L MI (x,y)=H(x)+H(y)-H(x,y) (2)
[0023] Among them, H(x) represents the information entropy of the original image, H(y) represents the information entropy of the reconstructed image, and H(x,y) represents the joint information entropy of the source image and the reconstructed image;
[0024] L SSIM =1-SSIM(I VIS' ,I VIS )+β(1-SSIM(I SAR' ,I SAR )) (3)
[0025]
[0026] Among them, I VIS′ Represents the intensity of the reconstructed visible light image, I SAR′ represents the intensity of the reconstructed SAR image, β is the adjustment coefficient, μ x Represents the mean of the original image, μ y represents the mean of the reconstructed image, represents the variance of the original image, represents the variance of the reconstructed image, σ xy Represents the covariance of the original image and the reconstructed image, C1 and C2 are constants used to maintain stability;
[0027]
[0028] Among them, CC(,) represents the correlation coefficient operator, represents the local features extracted from the SAR image, represents the local features extracted from the visible light image, represents the global features extracted from the SAR image, Represents the global features extracted from visible light images.
[0029] Furthermore, the calculation formulas for C1 and C2 are as follows:
[0030] C1=(k1L) 2 (7)
[0031] C2=(k2L) 2 (8)
[0032] Wherein, L is the dynamic range of the image pixel value, and k1 and k2 are adjustment coefficients.
[0033] Furthermore, the adjustment coefficient β is 0.5, the adjustment coefficient k1 is 0.01, and the adjustment coefficient k2 is 0.03.
[0034] Furthermore, step S5 is the second stage of model training, and the total loss calculation formula of training in this stage is as follows:
[0035] L total_2 =α4L int +α5L grad +α6L MI +α7L SSIM +α8L decomp (8)
[0036] Among them, L total_2 represents the total loss of the second stage image, L int Represents the intensity loss of the image, L grad represents the gradient loss of the image, and α4, α5, α6, α7 and α8 are adjustment coefficients.
[0037] Furthermore, L int and L grad The calculation formula is as follows:
[0038]
[0039]
[0040] Among them, I SAR Represents the intensity of the reconstructed SAR image, I VIS Represents the intensity of the reconstructed visible light image, I f represents the intensity of the fused image, represents the gradient of the reconstructed SAR image, represents the gradient of the reconstructed visible light image, represents the gradient of the fused image, H represents the height of the image, and W represents the width of the image.
[0041] Furthermore, the adjustment coefficient α4 is 1, the adjustment coefficient α5 is 1, the adjustment coefficient α6 is 3, the adjustment coefficient α7 is 10, and the adjustment coefficient α8 is 1.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] 1. This paper proposes a dual-branch Transformer-CNN framework to extract and fuse the global high-frequency features and local low-frequency features of visible light and SAR data, improving the problem of insufficient feature extraction in traditional autoencoder-based image fusion methods.
[0044] 2. On a macro level, on the one hand, the present invention makes innovative improvements to the dual-branch structure. Instead of adopting the traditional method of splicing the global features and local features of different modal data separately and inputting them into the decoder to reconstruct the original image, the global features are first spliced, and then the spliced global features are respectively input into the decoder with the local features of the visible light image and the SAR image to reconstruct the original image. On the other hand, a residual structure is introduced into the model to improve the network performance and expression ability, and enhance the ability to extract complex features in the image.
[0045] 3. At the micro level, the present invention makes innovative improvements to the dual-branch feature extraction network model, improving the network's ability to capture important feature information; on the one hand, by introducing the LT (LiteTransformer) model in the Transformer feature extraction network to balance the quality of the fused image and reduce the computational cost, and introducing the DropKey mechanism in the attention layer of the network to adaptively adjust the attention weight, the model can focus on more useful information; on the other hand, by introducing the CBAM (Convolutional Block Attention Module) module in the CNN feature extraction network, the network model's ability to focus on important areas is improved by introducing channel attention and spatial attention mechanisms, thereby reducing the loss of important feature information during the forward propagation of the fusion network and improving the robustness of the model.
[0046] 4. The model training process of the present invention is designed to be divided into two stages, and the tasks and functions implemented in the first stage and the second stage are not exactly the same. Therefore, the present invention designs characteristic loss functions for different training stages to achieve better training effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1A structural diagram of a visible light image and SAR image fusion method provided by the present invention; wherein: (a) is a flowchart of the first stage of model training; (b) is a flowchart of the second stage of model training; (c) is a schematic diagram of the Dropkey mechanism; and (d) is a schematic diagram of the CBAM module.
[0048] Figure 2 Three pairs of visible light and SAR images with rich texture details are selected for comparison in the embodiments of the present invention; from top to bottom, they are visible light images and SAR images.
[0049] Figure 3 In the embodiment of the present invention, different image fusion methods are used to Figure 2 The fused images obtained after processing the visible light and SAR images in the figure are compared; from top to bottom, they are the processing results of the DenseFuse method, the processing results of the SeAFusion method, the processing results of the RFN-Nest method, the processing results of the SwinFusion method, the processing results of the YDTR method and the processing results of the method of the present invention.
[0050] Figure 4 For Figure 3 Radar chart after normalization of quantitative evaluation indicators of fusion results. DETAILED DESCRIPTION
[0051] The present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any changes or substitutions made based on the teachings of the present invention belong to the protection scope of the present invention.
[0052] See also Figure 1 The present invention discloses a method for fusing a visible light image with a SAR image, comprising the following steps:
[0053] S1: Construct a fusion network based on the Transformer network with the LT model and Dropkey mechanism and the CNN network with the CBAM module;
[0054] S2: Input the visible light image and SAR image of the training set into the encoder to extract the corresponding global features and local features respectively;
[0055] S3: fusing and splicing the global features of the visible light image with the global features of the SAR image, and inputting the spliced global features, the local features of the visible light image and the local features of the SAR image into the decoder to reconstruct the original image;
[0056] S4: Input the visible light image and SAR image of the training set into the encoder trained in step S3, and extract the corresponding global features and local features respectively;
[0057] S5: fusing and splicing the global features of the visible light image with the global features of the SAR image, fusing and splicing the local features of the visible light image with the local features of the SAR image, inputting the spliced global features and the spliced local features into a decoder to reconstruct a fused image;
[0058] S6: Input the visible light image and the SAR image to be fused into the fusion model trained in the above steps to obtain a fused image.
[0059] In step S2 and step S4, the feature extraction process includes: firstly, extracting shallow features of the visible light image and the SAR image by the Restormer Block, and then, based on the extracted shallow features, further extracting global features of the visible light image and the SAR image based on the Transformer network introducing the LT model and the Dropkey mechanism, and further extracting local features of the visible light image and the SAR image based on the CNN network introducing the CBAM module.
[0060] Restormer Block can extract shallow features of images without increasing computing power, which can promote multi-scale global / local expression learning and is suitable for image reconstruction tasks. The LT model pays more attention to the global information of the image by adopting long and short distance attention, and reduces model parameters by flattening the feedforward network structure, which greatly reduces the computational cost while maintaining the same performance; at the same time, by introducing the Dropkey mechanism in the attention layer, some key values are randomly discarded to reduce the model's excessive dependence on some neurons, which helps to capture more robust global features. The CBAM module is introduced at the front end of the CNN feature extraction network to adaptively adjust the importance of different channel information and evaluate the correlation of different spatial positions in order to improve the network's ability to focus on important areas, thereby obtaining more detailed feature information and reducing the loss of important information during the fusion process.
[0061] The step S3 is the first stage of model training. The total loss calculation formula of the training in this stage is as follows:
[0062] L total_1 =α1L MI +α2L SSIM +α3L decomp (1)
[0063] Among them, L total_1 represents the total loss of the first stage image, L MI represents the mutual information loss of the image, L SSIM represents the structural similarity loss, L decomprepresents the feature decomposition loss of the image, α1, α2 and α3 are adjustment coefficients and are 3, 10 and 1 respectively.
[0064] L MI and L SSIM It is to reduce the loss of information in the image during encoding and decoding. decomp It is a loss function designed to better distinguish the extracted global feature information and local feature information. Their calculation formula is as follows:
[0065] L MI (x,y)=H(x)+H(y)-H(x,y) (2)
[0066] Among them, H(x) represents the information entropy of the original image, H(y) represents the information entropy of the reconstructed image, and H(x,y) represents the joint information entropy of the source image and the reconstructed image;
[0067] L SSIM =1-SSIM(I VIS' ,I VIS )+β(1-SSIM(I SAR' ,I SAR )) (3)
[0068]
[0069] Among them, I VIS′ Represents the intensity of the reconstructed visible light image, I SAR′ represents the intensity of the reconstructed SAR image, β is the adjustment coefficient and is taken as 0.5, μ x Represents the mean of the original image, μ y represents the mean of the reconstructed image, represents the variance of the original image, represents the variance of the reconstructed image, σ xy Represents the covariance of the original image and the reconstructed image, C1 and C2 are constants used to maintain stability;
[0070]
[0071] Among them, CC(,) represents the correlation coefficient operator, represents the local features extracted from the SAR image, represents the local features extracted from the visible light image, represents the global features extracted from the SAR image, Represents the global features extracted from the visible light image. Since the visible light image and the SAR image are highly correlated in terms of global feature information, in order to retain the same global features of the two types of images, The larger the better, but there are certain differences between the two types of images in terms of local detail feature information. Therefore, in order to extract richer details, It should be as small as possible, thus presenting the expression form of formula (5).
[0072] The calculation formulas for C1 and C2 are as follows:
[0073] C1=(k1L) 2 (7)
[0074] C2=(k2L) 2 (8)
[0075] Wherein, L is the dynamic range of the image pixel value, k1 and k2 are adjustment coefficients and are 0.01 and 0.03.
[0076] The step S5 is the second stage of model training. The total loss calculation formula of the training in this stage is as follows:
[0077] L total_2 =α4L int +α5L grad +α6L MI +α7L SSIM +α8L decomp (8)
[0078] Among them, L total_2 Represents the total loss of the second-stage image, which adds L to the loss function of the first stage int , L grad Two items, L int represents the intensity loss of the image, constraining the fused image to maintain an intensity distribution similar to the source image, L grad Represents the gradient loss of the image, forcing the fused image to contain rich texture detail information. α4, α5, α6, α7 and α8 are adjustment coefficients and are 1, 1, 3, 10 and 1 respectively.
[0079] L int and L grad The calculation formula is as follows:
[0080]
[0081]
[0082] Among them, I SAR Represents the intensity of the reconstructed SAR image, I VIS Represents the intensity of the reconstructed visible light image, I f represents the intensity of the fused image, represents the gradient of the reconstructed SAR image, represents the gradient of the reconstructed visible light image, represents the gradient of the fused image, H represents the height of the image, and W represents the width of the image.
[0083] Next, specific examples will be used to demonstrate that the above method is advanced and superior compared to the existing visible light image and SAR image fusion methods.
[0084] 1. Dataset Introduction
[0085] The data set used in this embodiment is the public data set OGSOD-1.0 downloaded from the Internet. The data set contains 18331 strictly paired visible light and SAR image pairs, of which the training set contains 14665 visible light and SAR image pairs and the test set contains 3666 visible light and SAR image pairs. This embodiment screened the data set and selected 1048 visible light and SAR image pairs as the training set, and selected 100 visible light and SAR image pairs as the test set.
[0086] 2. Evaluation indicators
[0087] In this embodiment, 12 commonly used indicators in four aspects, namely, information-based, structural similarity-based, image feature-based and human visual perception, are used to quantitatively evaluate the fusion results. The information-based image fusion indicators include entropy (EN), mutual information (MI) and peak signal-to-noise ratio (PSNR); the structural similarity-based image fusion indicators include structural similarity index measure (SSIM) and mean square error (MSE); the image feature-based image fusion indicators include average gradient (AG), edge strength (EI), standard deviation (SD), spatial frequency (SF) and edge information-based indicator (Q abf ); image fusion indicators based on visual perception include the sum of correlation differences (SCD) and visual information fidelity (VIF). For the above indicators, except that the smaller the MSE value, the higher the quality of the fused image, the larger the value of the other indicators, the higher the quality of the fused image.
[0088] 3. Comparison with SOTA methods
[0089] In order to verify the effectiveness of the image fusion method proposed in the present invention, the embodiment will compare the fusion results with the currently advanced general image fusion methods, including five methods such as DenseFuse, RFN-Nest, SeAFusion, SwinFusion and YDTR.
[0090] In order to better compare the fusion performance of different algorithms, this example selects three pairs of visible light and SAR images with rich texture details from the test set for comparison. Figure 2 As shown in the figure, it can be seen that the visible light image has a better visual effect and expresses local features such as buildings more clearly, but its contour information is difficult to distinguish from the background; on the contrary, the SAR image expresses the contour information more fully, so the fused image should contain both local information such as buildings and global information such as terrain contours.
[0091] Figure 3 The figure shows a direct comparison of the fused images obtained by the image fusion method of the present invention and the above five image fusion methods. From the comparison results, it can be seen that the fused image obtained by the method of the present invention can obtain richer texture details and clearer contour information than the other five methods. In addition, the target object in the fused image obtained by the method of the present invention is more prominent and easier to distinguish from the background, which helps to better understand various scenes.
[0092] In order to more objectively verify the superiority of the method of the present invention, Table 1 shows the quantitative index comparison of the method and the other five methods, where the bold data is the optimal value of each index. In order to more intuitively show the comparison effect, the present invention normalizes the data in Table 1 and plots it as a radar chart, as shown in Figure 1. Figure 4 As shown. It can be seen that the method of the present invention has the best values in 10 of the indicators. Even the two indicators (PSNR and MSE) that are not the best values also perform well, which is enough to prove that the method of the present invention has better performance for the fusion of visible light images and SAR images. Compared with the other five methods, the method of the present invention performs best in the EN and MI indicators, indicating that the method of the present invention can fully mine the information of the source image and transform it into the fused image; it performs best in the SSIM indicator, indicating that the method of the present invention can fully retain the detailed information of the source image and is most similar to the source image; in AG, EI, SD, SF and Q abf It performs best in indicators such as SCD and VIF, which means that the fused image obtained by the method of the present invention has better quality and higher definition; it performs best in indicators such as SCD and VIF, which means that the fused image obtained by the method of the present invention has better visual effect.
[0093] Table 1 Comparison of evaluation indicators of different fusion methods
[0094]
[0095]
[0096] 4. Ablation experiment
[0097] The following ablation experiments are set up to verify the rationality of different modules in the method of the present invention. The ablation study is mainly conducted on the dual-branch structure, residual structure Dropkey mechanism, CBAM module and two-stage training used in this experiment. The specific details are as follows:
[0098] 1. Dual-branch structure. The present invention enhances the network’s ability to extract global features by introducing the Transformer branch of the Dropkey mechanism. In the ablation study, the Transformer branch is not used, but replaced by a CNN network branch that introduces the CBAM module. The comparison results are shown in Table 2.
[0099] Table 2 Comparison of fusion indicators with and without dual-branch structures
[0100]
[0101] 2. Residual structure. A comparative experiment is conducted by comparing the introduction of the residual structure and the non-introduction of the residual structure. The comparison results are shown in Table 3.
[0102] Table 3 Comparison of fusion indicators with and without residual structure
[0103]
[0104]
[0105] 3. Dropkey mechanism. For the Transformer branch, comparative experiments were conducted by using the Dropkey mechanism and not using the Dropkey mechanism. The comparison results are shown in Table 4.
[0106] Table 4 Comparison of fusion indicators with and without Dropkey mechanism
[0107]
[0108] 4. CBAM module. For the CNN branch, experiments were conducted using the CBAM module and without the CBAM module, and the comparison results are shown in Table 5.
[0109] Table 5 Comparison of fusion indicators with and without CBAM module
[0110]
[0111] 6. Two-stage training. This experiment introduced two-stage training to improve the fusion performance. In the ablation study, the one-stage training method of directly training the encoder, fusion network and decoder was used, and the number of training rounds was consistent with the total number of two-stage training rounds. The comparison results are shown in Table 6.
[0112] Table 6 Comparison of fusion indicators between two-stage training and one-stage training
[0113]
[0114] From the above data comparison, it can be seen that the overall indicators of the fusion results using the method of the present invention will be better, which is sufficient to prove that the image fusion method provided by the present invention is structurally reasonable and superior. It is also worth noting that the experimental result indicators obtained by using the dual branches of Transformer-CNN in the present invention are all significantly higher than the experimental result indicators of using only the CNN branch, and combined with the image comparison of the ablation experiment, it is found that the fused image obtained by using only the CNN branch has more noise, which is not conducive to the subsequent processing of the image. The fused image obtained without the residual structure has certain missing texture details; the fused image obtained by only one stage of training also has certain missing texture details, which shows that the dual-branch residual structure is necessary for the method of the present invention.
[0115] In addition, in the two groups of comparative experiments of Dropkey and CBAM, the method of the present invention has a good improvement in the three indicators of PSNR, MSE and SSIM. Combined with the image comparison of the ablation experiment, it is found that the fused image obtained without using Dropkey and CBAM has obvious loss of detail texture and the image is blurred. This shows that the Dropkey and CBAM used in the method of the present invention play a more significant role, so that the obtained fused image retains more original image information and has better performance in features such as detail texture.
[0116] Therefore, it can be determined that the present invention proposes a visible light image and SAR image fusion method based on a dual-branch residual structure of a Transformer and CNN network, introduces the LT model and Dropkey mechanism in the Transformer-based feature extraction network to better extract the global features of the two modalities, and introduces the CBAM module in the CNN-based feature extraction network to better extract the local features of the two modalities. The present invention optimizes and improves the entire fusion network architecture, adds a training stage that first fuses and splices the global features of the two modalities and then reconstructs them with the local features of each modality, and designs a specific loss function to adapt to the task, and finally proves the effectiveness and feasibility of the method of the present invention through examples.
[0117] Although the present disclosure has been shown and described with respect to an implementation, those skilled in the art will think of equivalent variations and modifications based on the reading and understanding of this specification and the accompanying drawings. The present disclosure includes all such modifications and variations, and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components (such as elements, etc.), the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (such as it is functionally equivalent), even if the structure is not equivalent to the disclosed structure of the function in the exemplary implementation of the present disclosure shown in the present application. In addition, although the specific features of the present disclosure have been disclosed with respect to only one of several implementations, such features can be combined with one or other features of other implementations that may be desired and advantageous for a given or specific application. Moreover, insofar as the terms "including", "having", "containing" or their variations are used in specific embodiments or claims, such terms are intended to be included in a manner similar to the term "comprising".
[0118] The functional units in the embodiments of the present invention may be integrated into a processing module, or each unit may exist physically separately, or multiple or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0119] To sum up, the above embodiment is an implementation mode of the present invention, but the implementation mode of the present invention is not limited by the embodiment. Any other changes, modifications, substitutions, combinations, and simplifications that deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A method for fusing a visible light image and a SAR image, characterized in that: The steps include: S1: Construct a fusion network based on the Transformer network with the LT model and Dropkey mechanism and the CNN network with the CBAM module; S2: Input the visible light image and SAR image of the training set into the encoder to extract the corresponding global features and local features respectively; S3: fusing and splicing the global features of the visible light image with the global features of the SAR image, and inputting the spliced global features, the local features of the visible light image and the local features of the SAR image into the decoder to reconstruct the original image; S4: Input the visible light image and SAR image of the training set into the encoder trained in step S3, and extract the corresponding global features and local features respectively; S5: fusing and splicing the global features of the visible light image with the global features of the SAR image, fusing and splicing the local features of the visible light image with the local features of the SAR image, inputting the spliced global features and the spliced local features into a decoder to reconstruct a fused image; S6: Input the visible light image and the SAR image to be fused into the fusion model trained in the above steps to obtain a fused image.
2. The method for fusing a visible light image with a SAR image according to claim 1, characterized in that: In step S2 and step S4, the feature extraction process includes: firstly, extracting shallow features of the visible light image and the SAR image by the Restormer Block, and then, based on the extracted shallow features, further extracting global features of the visible light image and the SAR image based on the Transformer network introducing the LT model and the Dropkey mechanism, and further extracting local features of the visible light image and the SAR image based on the CNN network introducing the CBAM module.
3. The method for fusing visible light images and SAR images according to claim 2, characterized in that: The step S3 is the first stage of model training. The total loss calculation formula of the training in this stage is as follows: L total_1 =α1L MI +α2L SSIM +α3L decomp (1) Among them, L total_1 represents the total loss of the first stage image, L MI represents the mutual information loss of the image, L SSIM represents the structural similarity loss, L decomp represents the feature decomposition loss of the image, and α1, α2 and α3 are adjustment coefficients.
4. The method for fusing visible light images and SAR images according to claim 3, characterized in that: The adjustment coefficient α1 is 3, the adjustment coefficient α2 is 10, and the adjustment coefficient α3 is 1.
5. The method for fusing visible light images and SAR images according to claim 3, characterized in that: L MI , L SSIM and L decomp The calculation formula is as follows: L MI (x,y)=H(x)+H(y)-H(x,y) (2) Where H(x) represents the information entropy of the original image, H(y) represents the information entropy of the reconstructed image, and H(x,y) represents the joint information entropy of the source image and the reconstructed image. L SSIM =1-SSIM(I VIS' ,I VIS )+β(1-SSIM(I SAR' ,I SAR )) (3) Among them, I VIS′ Represents the intensity of the reconstructed visible light image, I SAR′ represents the intensity of the reconstructed SAR image, β is the adjustment coefficient, μ x Represents the mean of the original image, μ y represents the mean of the reconstructed image, represents the variance of the original image, represents the variance of the reconstructed image, σ xy Represents the covariance of the original image and the reconstructed image, C1 and C2 are constants used to maintain stability; Among them, CC(,) represents the correlation coefficient operator, represents the local features extracted from the SAR image, represents the local features extracted from the visible light image, represents the global features extracted from the SAR image, Represents the global features extracted from visible light images.
6. The method for fusing visible light images and SAR images according to claim 5, characterized in that: The calculation formulas for C1 and C2 are as follows: C1=(k1L) 2 (7) C2=(k2L) 2 (8) Wherein, L is the dynamic range of the image pixel value, and k1 and k2 are adjustment coefficients.
7. The method for fusing visible light images and SAR images according to claim 6, characterized in that: The adjustment coefficient β is 0.5, the adjustment coefficient k1 is 0.01, and the adjustment coefficient k2 is 0.
03.
8. The method for fusing visible light images and SAR images according to claim 6, characterized in that: The step S5 is the second stage of model training. The total loss calculation formula of the training in this stage is as follows: L total_2 =α4L int +α5L grad +α6L MI +α7L SSIM +α8L decomp (8) Among them, L total_2 represents the total loss of the second stage image, L int Represents the intensity loss of the image, L grad represents the gradient loss of the image, and α4, α5, α6, α7 and α8 are adjustment coefficients.
9. The method for fusing visible light images and SAR images according to claim 8, characterized in that: L int and L grad The calculation formula is as follows: Among them, I SAR Represents the intensity of the reconstructed SAR image, I VIS Represents the intensity of the reconstructed visible light image, I f represents the intensity of the fused image, represents the gradient of the reconstructed SAR image, represents the gradient of the reconstructed visible light image, represents the gradient of the fused image, H represents the height of the image, and W represents the width of the image.
10. The method for fusing visible light images and SAR images according to claim 9, characterized in that: The adjustment coefficient α4 is 1, the adjustment coefficient α5 is 1, the adjustment coefficient α6 is 3, the adjustment coefficient α7 is 10, and the adjustment coefficient α8 is 1.
Citation Information
Patent Citations
Visible light and infrared image fusion enhancement method and system in low-light environment
CN115063329A
SAR (Synthetic Aperture Radar) and visible light image fusion method based on cross mixed attention
CN116630209A
Remote sensing image panchromatic sharpening method based on SwinTransform and CNN fusion
CN116739911A
Infrared and visible light image fusion method based on feature difference compensation and fusion
CN116883303A
Infrared and visible light image fusion method combining Transform and CNN double encoders
CN117314808A
Cited By
Image reconstruction algorithm, image processing method and device, vehicle and storage medium
CN119579713A
Image reconstruction algorithm, image processing method, device, vehicle and storage medium
CN119579713B
SAR and visible light fusion method based on color reconstruction
CN119762356A
Optical and SAR remote sensing image pixel-level fusion method and system
CN120471780A
Asset data updating method and device, electronic equipment and readable storage medium
CN120765900A
