Visible light and infrared image fusion method and device
Through cross-modal feature interaction and enhancement, combined with self-attention and collaborative attention processing, the problem of noise superposition in image fusion is solved, the fusion quality of visible and infrared images is improved, suitable for complex lighting environments, and semantic information extraction is improved accuracy and computational efficiency.
Patent Information
- Application Number
- CN202411217751.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing image fusion technology ignores the quality of the fused image, especially in the fusion of different imaging modalities such as visible light and infrared images, there are defects such as noise and overexposure, which affect the quality of the fused image, and traditional computer vision methods are difficult to apply.
Through cross-modal feature interaction and enhancement, self-attention and collaborative attention processing are used to obtain the features of visible and infrared images, and decomposition, fusion and reverse operations are performed to improve image quality. Specific steps include self-attention processing to determine global information, collaborative attention processing to obtain interactive information, normalization and feed-forward network processing to obtain features, decomposition and fusion to obtain fused features through reversible neural networks and self-attention processing, and finally reverse operations. Generate fused images.
It significantly improves the quality of fused images, effectively compensates for the loss of semantic information under variable lighting conditions, improves the accuracy of semantic information extraction under complex lighting environments, optimizes computing efficiency, and is suitable for practical application scenarios with limited resources.
Smart Images

Figure CN118710522A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image fusion, and in particular to a method and device for fusing visible light and infrared images. Background Art
[0002] Image fusion technology integrates data from different sensors or imaging modalities to enhance the comprehensiveness and richness of image information. Existing fusion technologies mainly focus on the fusion effect itself, ignoring the quality of the fused image. For example, if the image collected by the sensor has defects such as noise and overexposure, these defects will be superimposed on the fused image, thus affecting the quality of the fused image. In addition, the features of different imaging modalities (such as visible light and infrared) are quite different, and traditional computer vision key point matching methods are difficult to apply. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method and device for fusing visible light and infrared images, which greatly improves the quality of the fused image.
[0004] In order to achieve the above object, an embodiment of the present invention provides a method for fusing visible light and infrared images, the method comprising: Acquire an image to be tested, wherein the image to be tested includes a visible light image and an infrared image; Performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; Decomposing and fusing the visible light feature and the infrared feature to obtain a fused feature; The fusion features are subjected to a reverse operation to obtain a fusion image.
[0005] Optionally, performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain the visible light feature and the infrared feature includes: Performing self-attention processing on the visible light image and the infrared image to determine global information in each modality, wherein the global information in each modality includes visible light modality information and infrared modality information; Performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information; The interactive information is normalized and processed by a feedforward network to obtain visible light features and infrared features.
[0006] Optionally, the performing self-attention processing on the visible light image and the infrared image to determine global information in each modality includes:
[0007]
[0008]
[0009]
[0010]
[0011]
[0012] in, is a visible light image, For infrared images, is the visible light query vector, is the visible light key vector, is the visible light numerical vector, Divided into The corresponding linear transformation parameters are, They are infrared query vector, infrared key vector, and infrared value vector respectively. They are The corresponding linear transformation parameters are, The performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information includes: Based on the visible light query vector, a first weight distribution matrix is obtained according to the similarity between the visible light modal information and all infrared key vectors; Performing weighted summation on the first weight distribution matrix to obtain first interaction information; Based on the infrared query vector, a second weight distribution matrix is obtained according to the similarity between the infrared modal information and all visible light key vectors; The second interaction information is obtained by performing weighted summation on the second weight distribution matrix.
[0013] Optionally, the first interaction information include: , The second interaction information include: , in, is the visible light query vector, is the infrared key vector, is the infrared numerical vector, is the infrared query vector, is the visible light key vector, is the visible light numerical vector, is the dimension size of the infrared key vector or the visible light key vector.
[0014] Optionally, the performing normalization processing and feedforward network processing on the interaction information to obtain visible light features and infrared features includes:
[0015]
[0016] in, is the normalization layer, FFN is the feed-forward neural network, is the visible light characteristic, Infrared characteristics.
[0017] Optionally, the decomposing and fusing the visible light feature and the infrared feature to obtain a fused feature includes: Performing reversible neural network processing and self-attention processing on the visible light features and infrared features to obtain basic features and detail features; The basic features and the detail features are fused and learned to obtain a basic feature fusion weight and a detail feature fusion weight; The fusion feature is determined according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight.
[0018] Optionally, the fusing and learning the basic features and the detail features to obtain the basic feature fusion weight and the detail feature fusion weight includes:
[0019]
[0020] in, is a learnable parameter for the basic feature weights, is a learnable parameter for detail feature weights, As the basic feature, For detailed features, is the basic feature fusion weight, is the detail feature fusion weight, () is adaptive weight learning, The determining of the fusion feature according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight includes:
[0021] in,
[0022] is the basic feature fusion weight, is the detail feature fusion weight, is the visible light characteristic, Infrared characteristics. Optionally, the inverse operation includes deconvolution processing and activation processing.
[0023] On the other hand, the present invention also provides a device for fusing visible light and infrared images, the device comprising: An acquisition module, used for acquiring an image to be tested, wherein the image to be tested includes a visible light image and an infrared image; A first processing module, configured to perform cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; A second processing module is used to decompose and fuse the visible light feature and the infrared feature to obtain a fused feature; The third processing module is used to perform a reverse operation on the fusion feature to obtain a fusion image.
[0024] Optionally, performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain the visible light feature and the infrared feature includes: Performing self-attention processing on the visible light image and the infrared image to determine global information in each modality, wherein the global information in each modality includes visible light modality information and infrared modality information; Performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information; The interactive information is normalized and processed by a feedforward network to obtain visible light features and infrared features.
[0025] Optionally, the decomposing and fusing the visible light feature and the infrared feature to obtain a fused feature includes: Performing reversible neural network processing and self-attention processing on the visible light features and infrared features to obtain basic features and detail features; The basic features and the detail features are fused and learned to obtain a basic feature fusion weight and a detail feature fusion weight; The fusion feature is determined according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight.
[0026] On the other hand, the present invention further proposes a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method for fusing visible light and infrared images.
[0027] On the other hand, the present invention further proposes a computer program product, including a computer program, which implements the above-mentioned method for fusing visible light and infrared images when executed by a processor.
[0028] A method for fusing visible light and infrared images of the present invention comprises: obtaining an image to be tested, wherein the image to be tested comprises a visible light image and an infrared image; performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; performing decomposition and fusion on the visible light features and the infrared features to obtain fused features; and performing a reverse operation on the fused features to obtain a fused image. The present invention effectively compensates for the loss of semantic information of the image under variable lighting conditions by performing cross-modal feature interaction and enhancement on the visible light image and the infrared image, improves the accuracy of semantic information extraction under complex lighting environments, and improves the quality of the fused image.
[0029] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 It is a flow chart of a method for fusing visible light and infrared images of the present invention; Figure 2 is a schematic diagram of a specific embodiment of the present invention; Figure 3 It is a data flow diagram of a specific embodiment of the present invention. DETAILED DESCRIPTION
[0031] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0032] Embodiment 1 Figure 1 FIG. 1 is a flow chart of a method for fusing visible light and infrared images of the present invention. Figure 1 As shown, step S101 is to obtain an image to be tested, and the image to be tested includes a visible light image and an infrared image.
[0033] Step S102 is to perform cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features. Specifically, the cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features includes: performing self-attention processing on the visible light image and the infrared image to determine the global information in each modality, and the global information in each modality includes visible light modal information and infrared modal information; performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information; performing normalization processing and feedforward network processing on the interactive information to obtain visible light features and infrared features.
[0034] The self-attention process is used to capture the global context information within each modality. The self-attention mechanism identifies and emphasizes important features by calculating the autocorrelation of input features. The specific calculation formula is as follows:
[0035] in, , and are query, key, and value matrices respectively, It is divided into a learnable weight matrix, X is the input vector of self-attention. The attention weight is obtained by calculating the dot product of the query and the key and scaling it, and then passing it through the softmax function: ,in, is the dimension of the key matrix.
[0036] According to a specific implementation, the performing self-attention processing on the visible light image and the infrared image to determine the global information in each modality includes:
[0037]
[0038]
[0039]
[0040]
[0041]
[0042] in, is a visible light image, For infrared images, is the visible light query vector, is the visible light key vector, is the visible light numerical vector, Divided into The corresponding linear transformation parameters are, They are infrared query vector, infrared key vector, and infrared value vector respectively. They are The corresponding linear transformation parameters.
[0043] The collaborative attention processing of the global information in each modality to obtain cross-modal interaction information includes: based on the visible light query vector, a first weight distribution matrix is obtained according to the similarity between the visible light modal information and all infrared key vectors; the first interaction information is obtained by weighted summation of the first weight distribution matrix; based on the infrared query vector, a second weight distribution matrix is obtained according to the similarity between the infrared modal information and all visible light key vectors; the second interaction information is obtained by weighted summation of the second weight distribution matrix.
[0044] The Co-Attention process is used to achieve information interaction and mutual enhancement between different modalities. The Co-Attention mechanism calculates the correlation between different modal features and dynamically adjusts the weights of each modal feature to achieve bidirectional enrichment of features. The specific formula is as follows:
[0045]
[0046] The cross-modal attention weight is calculated as:
[0047]
[0048] According to a specific implementation manner, the first interaction information include: , The second interaction information include:
[0049] in, is the visible light query vector, is the infrared key vector, is the infrared numerical vector, is the infrared query vector, is the visible light key vector, is the visible light numerical vector, is the dimension size of the infrared key vector or the visible light key vector.
[0050] The step of normalizing and feedforward network processing the interaction information to obtain visible light features and infrared features includes:
[0051]
[0052] in, is the normalization layer, FFN is the feed-forward neural network, is the visible light characteristic, Infrared characteristics.
[0053] This method not only realizes the two tasks of fusion and enhancement at the same time, but also optimizes the goal, uses the image enhancement task to promote the fusion task, optimizes the fusion effect, and better adapts to the actual application needs.
[0054] Step S103 is to decompose and fuse the visible light features and infrared features to obtain fused features. Specifically, the decomposition and fusion of the visible light features and infrared features to obtain fused features includes: performing reversible neural network processing and self-attention processing on the visible light features and infrared features to obtain basic features and detail features; performing fusion learning on the basic features and detail features to obtain basic feature fusion weights and detail feature fusion weights; and determining fused features based on the visible light features, infrared features, basic feature fusion weights, and detail feature fusion weights. The reversible neural network process decomposes the enhanced features into base features and detail features. The reversible neural network process ensures that there is no information loss in the bidirectional process of feature decomposition and reconstruction by designing a reversible transformation. The specific decomposition formula is as follows:
[0055] in, Represents the basic features, represents the detailed features, and X is the input vector of self-attention.
[0056] The basic features and detail features are fused to obtain the basic features and detail features after fusion decomposition. By learning the fusion weights of different features, effective fusion of features is achieved. The specific fusion formula is as follows:
[0057] in, and is the learnable fusion weight.
[0058] According to a specific implementation manner, the fusing and learning the basic features and the detail features to obtain the basic feature fusion weight and the detail feature fusion weight includes:
[0059]
[0060] in, is a learnable parameter for the basic feature weights, is a learnable parameter for detail feature weights, As the basic feature, For detailed features, is the basic feature fusion weight, is the detail feature fusion weight, () is adaptive weight learning, The determining of the fusion feature according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight includes:
[0061] in, is the basic feature fusion weight, is the detail feature fusion weight, is the visible light characteristic, Infrared characteristics. Step S104 is to perform a reverse operation on the fused features to obtain a fused image. The reverse operation includes a deconvolution process and an activation process. Specifically, the deconvolution is an algorithm-based process for reversing the effect of convolution on the recorded data. For example, the fused features are reversely operated by a decoder to obtain a fused image, and the decoder includes a series of deconvolution layers and activation functions.
[0062] This method lightweights the main structure of the model, especially optimizes the attention module to reduce the burden of reasoning. Through this improvement, the computational efficiency of the model is significantly improved, making it suitable for practical application scenarios with limited resources.
[0063] During the training phase, the mutual enhancement optimization strategy of this application is also reflected in the design of the loss function to ensure the optimization of the feature enhancement, decomposition, fusion and reconstruction process of infrared and visible light images. The loss function consists of the following parts: 1. Feature enhancement loss (Lenhance): It consists of structural loss (Lstruct), semantic loss (Lsem) and detail loss (Ldetail), which is used to enhance the details and structure of each modality through cross-modal information exchange to obtain a more comprehensive fusion result. Since there is no real image available as a reference for the enhancement task, an unsupervised loss is introduced as follows:
[0064] Among them, the structural loss (Lstruct) enhances pixel-level details through the SSIM (structural similarity) metric, the semantic loss (Lsem) strengthens semantic information in the feature space, and the detail loss (Ldetail) improves details through gradient information. When calculating the loss, a separation technique is used to prevent backpropagation from updating the parameters of the modality that provides the supervisory signal.
[0065] 2. Feature decomposition loss (Ldecomp): used to ensure that the decomposed features (low-frequency basic features and high-frequency detail features) can accurately reflect the characteristics of the original image.
[0066] 3. Reconstruction and fusion loss (Lrec fus): used to evaluate the similarity between the image reconstructed by the decoder and the original image, as well as the quality of the fused image.
[0067] The total loss function is a weighted sum of these individual losses, tuned by the hyperparameters α1 and α2:
[0068] This strategic design of the loss function allows the model to balance different losses during the training process, which can not only achieve the fusion of images of different modalities, but also realize information complementarity and achieve the purpose of mutual enhancement.
[0069] The fusion framework of the present invention overcomes the problem of noise superposition of fused images through an innovative multi-task integrated processing method, significantly improves the fusion quality of VIS-IR images, optimizes the fusion process, and can meet the requirements of efficiency and accuracy in practical applications.
[0070] Embodiment 2 Figure 2 It is a schematic diagram of a specific embodiment of the present invention, such as Figure 2 and Figure 3 As shown, the input image is a visible light image and infrared images , the enhanced visible light features are obtained through cross-modal feature interaction and enhancement and infrared characteristics .
[0071] Use self-attention blocks to compute the global context within each modality:
[0072]
[0073] Collaborative attention blocks enable cross-modal information interaction:
[0074]
[0075] The fused features are processed through layer normalization and feed-forward network to further improve the feature expression ability and obtain enhanced visible light features. and infrared characteristics :
[0076]
[0077] For the above enhanced visible light characteristics and infrared characteristics (hereinafter uniformly expressed as ) Decompose the enhanced features into basic features using the Invertible Neural Network (INN) block and the Self-Attention block and detail features :
[0078] The INN block consists of a series of coupling layers, each of which decomposes the input features into two parts and applies a reversible transformation to one of them:
[0079]
[0080] The fusion module learns the fusion weights of different features:
[0081] in, and For learnable fusion weights, an adaptive weight learning strategy is adopted:
[0082] Finally, the decoder module is used to fused the features Perform the reverse operation to obtain the final fused image :
[0083] The decoder contains a series of deconvolution layers and activation functions to gradually restore the fused image:
[0084]
[0085] The present invention combines image fusion and image enhancement into one task, which not only achieves high-quality image fusion, but also improves the quality of the fused image, providing a high-quality data source for downstream tasks. The present application cooperates with the optimization goal to achieve information exchange and complementarity between different modalities.
[0086] Embodiment 3 The present invention also proposes a device for fusing visible light and infrared images, which includes: an acquisition module, used to acquire an image to be tested, wherein the image to be tested includes a visible light image and an infrared image; a first processing module, used to perform cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; a second processing module, used to decompose and fuse the visible light features and the infrared features to obtain fused features; and a third processing module, used to perform a reverse operation on the fused features to obtain a fused image.
[0087] The cross-modal feature interaction and enhancement of the visible light image and the infrared image to obtain the visible light feature and the infrared feature includes: performing self-attention processing on the visible light image and the infrared image to determine the global information in each modality, wherein the global information in each modality includes visible light modal information and infrared modal information; performing collaborative attention processing on the global information in each modality to obtain cross-modal interaction information; and performing normalization processing and feedforward network processing on the interaction information to obtain the visible light feature and the infrared feature.
[0088] The decomposing and fusing the visible light features and the infrared features to obtain fused features comprises: performing reversible neural network processing and self-attention processing on the visible light features and the infrared features to obtain basic features and detail features; performing fusion learning on the basic features and the detail features to obtain basic feature fusion weights and detail feature fusion weights; and determining fused features according to the visible light features, the infrared features, the basic feature fusion weights and the detail feature fusion weights.
[0089] On the other hand, the present invention further proposes a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method for fusing visible light and infrared images.
[0090] On the other hand, the present invention further proposes a computer program product, including a computer program, which implements the above-mentioned method for fusing visible light and infrared images when executed by a processor.
[0091] The present invention achieves bidirectional enrichment of cross-modal features by dynamically adjusting the weights of different modal features, significantly improving the quality of the fused image. Specifically, the collaborative attention mechanism effectively captures the complementary information between the modalities by introducing cross-modal attention calculation, enhancing the detail expression and overall quality of the fused image.
[0092] The present invention can effectively compensate for the loss of semantic information of images under variable lighting conditions, improve the accuracy of semantic information extraction under complex lighting environments, and further improve the quality of fused images. In addition, by designing a lightweight network architecture, the computational efficiency is improved and the computational complexity is reduced, making it suitable for the processing and fusion of large-scale image data.
[0093] The pluggable collaborative attention mechanism and unsupervised cross-modal mutual reinforcement loss of the present invention are highly adaptable and can be applied to a variety of different image fusion tasks. Whether in medical imaging, remote sensing image processing, or in the field of computer vision, this method shows superior fusion performance and wide applicability.
[0094] A method for fusing visible light and infrared images of the present invention comprises: obtaining an image to be tested, wherein the image to be tested comprises a visible light image and an infrared image; performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; performing decomposition and fusion on the visible light features and the infrared features to obtain fused features; and performing a reverse operation on the fused features to obtain a fused image. The present invention effectively compensates for the loss of semantic information of the image under variable lighting conditions by performing cross-modal feature interaction and enhancement on the visible light image and the infrared image, improves the accuracy of semantic information extraction under complex lighting environments, and improves the quality of the fused image.
[0095] The optional implementation modes of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical scheme of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
[0096] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.
[0097] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0098] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for fusing visible light and infrared images, characterized in that: The method includes: Acquire an image to be tested, wherein the image to be tested includes a visible light image and an infrared image; Performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; Decomposing and fusing the visible light feature and the infrared feature to obtain a fused feature; The fusion features are subjected to a reverse operation to obtain a fusion image.
2. The method according to claim 1, characterized in that The performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain the visible light feature and the infrared feature includes: Performing self-attention processing on the visible light image and the infrared image to determine global information in each modality, wherein the global information in each modality includes visible light modality information and infrared modality information; Performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information; The interactive information is normalized and processed by a feedforward network to obtain visible light features and infrared features.
3. The method according to claim 2, characterized in that The performing self-attention processing on the visible light image and the infrared image to determine the global information in each modality includes: , , in, is a visible light image, For infrared images, is the visible light query vector, is the visible light key vector, is the visible light numerical vector, Divided into The corresponding linear transformation parameters are, They are infrared query vector, infrared key vector, and infrared value vector respectively. They are The corresponding linear transformation parameters are, The performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information includes: Based on the visible light query vector, a first weight distribution matrix is obtained according to the similarity between the visible light modal information and all infrared key vectors; Performing weighted summation on the first weight distribution matrix to obtain first interaction information; Based on the infrared query vector, a second weight distribution matrix is obtained according to the similarity between the infrared modal information and all visible light key vectors; The second interaction information is obtained by performing weighted summation on the second weight distribution matrix.
4. The method according to claim 3, characterized in that The first interaction information include: , The second interaction information include: , in, is the visible light query vector, is the infrared key vector, is the infrared numerical vector, is the infrared query vector, is the visible light key vector, is the visible light numerical vector, is the dimension size of the infrared key vector or the visible light key vector.
5. The method according to claim 2, characterized in that: The step of normalizing and feedforward network processing the interaction information to obtain visible light features and infrared features includes: in, is the normalization layer, FFN is the feed-forward neural network, is the visible light characteristic, Infrared characteristics.
6. The method according to claim 1, characterized in that The decomposing and fusing the visible light feature and the infrared feature to obtain the fused feature includes: Performing reversible neural network processing and self-attention processing on the visible light features and infrared features to obtain basic features and detail features; The basic features and the detail features are fused and learned to obtain a basic feature fusion weight and a detail feature fusion weight; The fusion feature is determined according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight.
7. The method according to claim 6, characterized in that The fusing and learning the basic features and the detail features to obtain the basic feature fusion weight and the detail feature fusion weight includes: in, is a learnable parameter for the basic feature weights, is a learnable parameter for detail feature weights, As the basic feature, For detailed features, is the basic feature fusion weight, is the detail feature fusion weight, () is adaptive weight learning, The determining of the fusion feature according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight includes: in, is the basic feature fusion weight, is the detail feature fusion weight, is the visible light characteristic, Infrared characteristics.
8. The method according to claim 1, characterized in that The inverse operation includes a deconvolution process and an activation process.
9. A device for fusing visible light and infrared images, characterized in that: The device includes: An acquisition module, used for acquiring an image to be tested, wherein the image to be tested includes a visible light image and an infrared image; A first processing module, configured to perform cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain visible light features and infrared features; A second processing module is used to decompose and fuse the visible light feature and the infrared feature to obtain a fused feature; The third processing module is used to perform a reverse operation on the fusion feature to obtain a fusion image.
10. The device according to claim 9, characterized in that The performing cross-modal feature interaction and enhancement on the visible light image and the infrared image to obtain the visible light feature and the infrared feature includes: Performing self-attention processing on the visible light image and the infrared image to determine global information in each modality, wherein the global information in each modality includes visible light modality information and infrared modality information; Performing collaborative attention processing on the global information in each modality to obtain cross-modal interactive information; The interactive information is normalized and processed by a feedforward network to obtain visible light features and infrared features.
11. The device according to claim 9, characterized in that The decomposing and fusing the visible light feature and the infrared feature to obtain the fused feature includes: Performing reversible neural network processing and self-attention processing on the visible light features and infrared features to obtain basic features and detail features; The basic features and the detail features are fused and learned to obtain a basic feature fusion weight and a detail feature fusion weight; The fusion feature is determined according to the visible light feature, the infrared feature, the basic feature fusion weight and the detail feature fusion weight.
12. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for enabling a machine to execute the method for fusing visible light and infrared images as described in any one of claims 1 to 8.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for fusing visible light and infrared images according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Feature decomposition-based infrared image and visible light image fusion method
CN118134780A
Image fusion method based on characteristic decomposition enhancement and gradient supplement
CN118134785A
Double-branch infrared and visible light image fusion method and system
CN118411298A
Infrared and visible light image fusion method of depth feature correlation matrix
CN118552823A
Image fusion method and apparatus, storage medium, and electronic device
US20220292658A1
Cited By
Image compression method and device
CN119484859A
