Multi-band image joint registration fusion method and system based on deep learning
The deep learning-based multi-band image joint registration and fusion method solves the problem of unregistered source images, achieves efficient and accurate image fusion, and improves the registration and fusion accuracy of multi-band images.
Patent Information
- Application Number
- CN202311384574.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-23
AI Technical Summary
In existing deep learning-based image fusion methods, the source images are usually assumed to be pre-registered, which leads to high algorithm complexity, long processing time, and poor accuracy, making them unsuitable for unregistered multimodal images in real-world scenarios.
A deep learning-based multi-band image joint registration and fusion method is adopted. Through distortion correction, feature extraction, progressive deep semantic feature injection and loss function optimization, the registration and fusion are processed in one stage. The accuracy is optimized by the interaction of the deep feature extraction module and the loss function.
It improves the accuracy and efficiency of image fusion, avoids poor fusion accuracy caused by registration errors, and achieves high-precision image registration and fusion.
Smart Images

Figure CN117437141B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of image processing and computer vision technology, specifically a method and system for multi-band image joint registration and fusion based on deep learning. Background Technology
[0002] Images, as a crucial channel for humans to acquire and transmit information, often contain information of high value and practicality. Multi-band fused images can provide comprehensive and rich visual information while improving image quality, and are widely used in fields such as military, remote sensing, and medical imaging. Therefore, achieving accurate registration and fusion of multi-band images is of great significance. However, due to the differences between different bands, achieving accurate registration and fusion of multi-band images has become a challenge.
[0003] Traditional multi-band image registration and fusion methods are based on pixel-level or feature-level similarity measures, which struggle to fully consider the complex relationships between different bands and the deep-level features of images. Therefore, they have limitations when processing complex and diverse multi-band images. With the rapid development of deep learning technology, deep neural networks possess powerful feature learning and classification capabilities, enabling them to automatically learn and extract high-level features from images and exhibiting excellent robustness to complex image variations. This provides a new solution for multi-band image registration and fusion. Consequently, deep learning-based image fusion methods have gradually become a major research direction in the field of image fusion.
[0004] Currently, most deep learning-based image fusion tasks assume that the source images are pre-registered. For example, a deep learning-based image fusion method disclosed in publication number CN109636769A does not consider the registration problem. However, in real-world scenarios, due to factors such as parallax and scale differences, multimodal images and digital camera images cannot be effectively registered. Therefore, operations along spatial pixel positions in existing deep learning methods are not applicable to real source images. Although many readily available methods can be used for pre-registration of source images, the reliance on preprocessing can lead to limitations, such as low efficiency and dependence on registration accuracy, both of which negatively impact image fusion. Therefore, developing a joint registration and fusion algorithm is essential and of great significance for improving the accuracy and effectiveness of image registration and fusion. Summary of the Invention
[0005] The technical problem this invention aims to solve is that most deep learning-based image fusion tasks assume that the source images are pre-registered. However, in real-world scenarios, the source images are unregistered, and registration and fusion become two independent stages, i.e., registration is performed first and then fusion is performed. This results in excessively high algorithm complexity, long processing time, and poor accuracy.
[0006] The present invention solves the above-mentioned technical problems through the following technical means: A deep learning-based multi-band image joint registration and fusion method includes the following steps: Step 1: Acquire visible light and infrared light images; Step 2: Correct distortion in both images based on camera intrinsic parameters; Step 3: Input the distortion-corrected multi-band image into the joint registration and fusion algorithm model, and set the network hyperparameters of the joint registration and fusion algorithm model; Step 4: The joint registration and fusion algorithm model performs forward propagation to output data; the specific implementation process is as follows: Feature extraction was performed on the visible light band image and the infrared light band image respectively to obtain feature maps with higher resolution. Then, through feature fusion and deep image feature extraction, fused feature maps of the two band images under different weights are obtained respectively. and high-level semantic features ; Fusion feature map and high-level semantic features Progressive deep semantic feature injection is performed, resulting in a progressive deep semantic feature map. High-level semantic features Further deep image feature extraction yields high-level semantic features. For progressive deep semantic feature maps Perform image reconstruction and output the reconstructed feature map. ; Furthermore, high-level semantic features and reconstructed feature maps Deep semantic feature injection is performed to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is reconstructed again, and after an upsampling process, the final fused image is obtained; while the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and Same size; finally, high-dimensional visible light image high-level semantic feature descriptor and high-dimensional infrared image descriptors Feature detection was performed separately to obtain visible light feature point heatmaps. infrared light image feature point heatmap Based on the obtained high-level semantic feature descriptors , and feature point heatmap , Perform feature matching, calculate and update the transformation matrix h; Step 5: Calculate the error of the expected output based on the predefined registration loss function and fusion loss function, calculate the gradient using the gradient backpropagation principle and update the parameters, and then proceed to the next iteration input until the corresponding error requirement or the pre-set number of iterations is reached.
[0007] This invention addresses the limitation of traditional multi-band image registration and fusion, which requires registration before fusion. It employs a joint registration and fusion algorithm to perform a one-stage processing of both the registration and fusion algorithms, simultaneously optimizing their accuracy. High-level semantics extracted during registration using a deep feature extraction module are injected into the fusion feature map, ensuring that the fusion feature map retains both rich detail texture information and global high-level semantic information, significantly improving fusion accuracy. This avoids poor fusion accuracy caused by large registration errors. Furthermore, since the loss function consists of both registration and fusion errors, the fusion error also optimizes the gradient of the registration network to some extent during backpropagation gradient updates. This creates an interaction between the registration and fusion algorithms: the registration algorithm influences the fusion algorithm's result, and the fusion algorithm's result, in turn, affects the registration algorithm, leading to better accuracy in the registration and fusion process. This implicitly achieves high-precision image registration and fusion.
[0008] Furthermore, in the joint registration and fusion algorithm model, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module for feature extraction; the shallow image feature extraction module is composed of residual blocks in a layer of ResNet network.
[0009] Furthermore, the deep image feature extraction module in the joint registration and fusion algorithm model is composed of residual blocks of a three-layer ResNet network.
[0010] Furthermore, the progressive deep semantic feature injection module in the joint registration and fusion algorithm model is composed of multiple cascaded deep semantic injection modules. It is used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information.
[0011] Furthermore, the registration error calculated by the registration loss function in step 5 includes descriptor error, local peak error, and repeatability error; the fusion error calculated by the fusion loss function includes intensity loss error and structural similarity error.
[0012] This invention also provides a deep learning-based multi-band image joint registration and fusion system, corresponding to the above method, comprising: The image acquisition module is used to acquire images in the visible light band and the infrared light band. The distortion correction module is used to correct distortion in two images based on camera intrinsic parameters; The parameter setting module is used to input the distortion-corrected multi-band image into the joint registration and fusion algorithm model and set the network hyperparameters of the joint registration and fusion algorithm model. The image processing module performs a forward pass to output data using the joint registration and fusion algorithm model; the specific implementation process is as follows: Feature extraction was performed on the visible light band image and the infrared light band image respectively to obtain feature maps with higher resolution. Then the input is split and fed into the transformation matrix. The feature fusion network module and the deep image feature extraction module respectively obtain the fused feature maps of the two band images under different weights. and to high-level semantic features ; Fusion feature map and high-level semantic features The input is fed into the progressive deep semantic feature injection module, resulting in the final progressive deep semantic feature map. High-level semantic features The input is then fed into the deep image feature extraction module to obtain high-level semantic features. Progressive deep semantic feature maps The input is given to the image reconstruction module, and the output is the reconstructed feature map. ; Furthermore, high-level semantic features and reconstructed feature maps The input is fed into the deep semantic feature injection module to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is then input again into the image reconstruction module, undergoes an upsampling process, and yields the final fused image; while the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and Same size; finally, high-dimensional visible light image high-level semantic feature descriptor and high-dimensional infrared image descriptors The data are input into the feature point detector to obtain a visible light feature point heatmap. infrared light image feature point heatmap Based on the obtained high-level semantic feature descriptors , and feature point heatmap , Perform feature matching, calculate and update the transformation matrix h; The iteration module is used to calculate the error of the expected output based on the predefined registration loss function and fusion loss function, calculate the gradient using the gradient backpropagation principle and update the parameters, and then enter the next iteration input until the corresponding error requirement or the pre-set number of iterations is reached.
[0013] Furthermore, in the joint registration and fusion algorithm model, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module for feature extraction; the shallow image feature extraction module is composed of residual blocks in a layer of ResNet network.
[0014] Furthermore, the deep image feature extraction module in the joint registration and fusion algorithm model is composed of residual blocks of a three-layer ResNet network.
[0015] Furthermore, the progressive deep semantic feature injection module in the joint registration and fusion algorithm model is composed of multiple cascaded deep semantic injection modules. It is used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information.
[0016] Furthermore, the registration error calculated by the registration loss function in the iterative module includes descriptor error, local peak error, and repeatability error; the fusion error calculated by the fusion loss function includes intensity loss error and structural similarity error.
[0017] The advantages of this invention are: This invention addresses the limitation of traditional multi-band image registration and fusion, which requires registration before fusion. It employs a joint registration and fusion algorithm to perform a one-stage processing of both the registration and fusion algorithms, simultaneously optimizing their accuracy. High-level semantics extracted during registration using a deep feature extraction module are injected into the fusion feature map, ensuring that the fusion feature map retains both rich detail texture information and global high-level semantic information, significantly improving fusion accuracy. This avoids poor fusion accuracy caused by large registration errors. Furthermore, since the loss function consists of both registration and fusion errors, the fusion error also optimizes the gradient of the registration network to some extent during backpropagation gradient updates. This creates an interaction between the registration and fusion algorithms: the registration algorithm influences the fusion algorithm's result, and the fusion algorithm's result, in turn, affects the registration algorithm, leading to better accuracy in the registration and fusion process. This implicitly achieves high-precision image registration and fusion. Attached Figure Description
[0018] Figure 1 This is a flowchart of the method in an embodiment of the present invention; Figure 2 This is a diagram of the joint registration and fusion model in an embodiment of the present invention; Figure 3 This is the feature fusion network module in the embodiments of the present invention; Figure 4 This is the deep semantic feature injection module in this embodiment of the invention; Figure 5 This is the progressive deep semantic feature injection module in this embodiment of the invention; Figure 6 This refers to the image reconstruction module in this embodiment of the invention. Figure 7 This is a feature point detector in an embodiment of the present invention; Figure 8 This is a registration diagram of a visible light image and an infrared image in an embodiment of the present invention; Figure 9 The images shown in this embodiment of the invention are visible light images, infrared images, and fused images. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Example 1 The deep learning-based multi-band image joint registration and fusion algorithm of the present invention is performed according to the following steps: Step 1: Acquire visible light and infrared light images. Based on the established multi-band low-light imaging platform, clear visible light, infrared, and near-infrared images can be captured under low-light conditions. Visible light images contain rich environmental texture details, while infrared images can effectively detect heat sources in the environment and display them in a high-contrast format. This provides a significant advantage in detecting environmental information under low-light conditions.
[0021] Step 2: Correct distortion of the two images based on camera intrinsic parameters. To achieve effective registration and fusion, camera intrinsic parameters need to be calibrated. The purpose of camera calibration is to correct distortion. The intrinsic and extrinsic parameters of visible light and infrared cameras can be calculated using the Zhang Zhengyou calibration method. The main steps of the Zhang Zhengyou calibration method are as follows: Step 2.1: Prepare a chessboard pattern. The size of the chessboard pattern is known. Use a camera to take pictures from different angles to obtain a set of photos. Step 2.2: Detect feature points in the captured chessboard image to obtain the pixel coordinates of the calibration board corner points. Based on the known chessboard size and the origin of the world coordinate system, calculate the physical coordinates of the calibration board corner points. Step 2.3: Solve for the intrinsic and extrinsic parameter matrices; Step 2.4: Solve for the distortion parameters; Step 2.5: Optimize the above parameters using the LM (Levenberg-Marquardt) algorithm.
[0022] Finally, using the obtained distortion parameters and camera intrinsic parameters, a new camera projection matrix is calculated to correct the distortion of the original image.
[0023] Step 3: Input the network model of the joint registration and fusion algorithm and set appropriate network hyperparameters. The distortion-corrected multi-band image is input into the joint registration and fusion algorithm model, and the specific algorithm network model diagram is as follows: Figure 2 As shown. The parameter settings in the joint registration and fusion algorithm are as follows: the optimizer is Adam, which can achieve more effective gradient descent; the learning rate is set to 0.01 in the first 30 training cycles, and then to 0.001 in the next 70 cycles, which makes the gradient descent faster and converge to the global optimum rather than the local optimum; the sample batch size is set to 64; the hardware used for training is an Nvidia 4090 graphics card.
[0024] Step 4: The network performs a forward pass to output data. Joint registration and fusion algorithm model such as Figure 2 As shown, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module, which consists of residual blocks in a single layer of ResNet network, to obtain feature maps with higher resolution. This process preserves a considerable amount of detailed information. The input is then split and fed into a transformation matrix. The feature fusion network module and the deep image feature extraction module, wherein the feature fusion network module is as follows: Figure 3 As shown, the fused feature maps of the two-band images under different weights are obtained based on the self-attention mechanism. The fused feature map contains two-band image information, while the deep image feature extraction module consists of residual blocks from a three-layer ResNet network, used to extract high-level semantic information and obtain high-level semantic features. Feature map fusion and high-level semantic features The input is fed into the progressive deep semantic feature injection module, which is as follows: Figure 5 As shown, it is composed of multiple cascaded deep semantic injection modules, used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information. Following this are high-level semantic features. The input is then fed into the deep image feature extraction module to obtain high-level semantic features. Progressive deep semantic feature maps The input is fed into the image reconstruction module, where the image reconstruction module is as follows: Figure 6 As shown, the output is the reconstructed feature map. .
[0025] Furthermore, high-level semantic features and reconstructed feature maps The input is fed into the deep semantic feature injection module, such as... Figure 4 As shown, this is used to fuse high-level semantic features with the reconstructed feature map to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is then fed back into the image reconstruction module, undergoes an upsampling process, and the final fused image is obtained. Meanwhile, the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and They are the same size. Finally, the high-dimensional visible light image high-level semantic feature descriptor. and high-dimensional infrared image descriptors The data are input into the feature point detector to obtain a visible light feature point heatmap. infrared light image feature point heatmap The network structure of the feature point detector is as follows: Figure 7 As shown, the output heatmap records the confidence level of each feature point. Based on the obtained high-level semantic feature descriptor... , and feature point heatmap , Feature matching is performed, and the transformation matrix h is calculated and updated using the RANSAC (Random Sample Consensus) algorithm.
[0026] Step 5: Calculate the error for the expected output based on the loss function. The loss function of the joint registration and fusion network model mainly consists of two parts: registration error and fusion error. First, let's introduce the registration error loss.
[0027] Registration errors are generally divided into three parts: descriptor error, local peak error, and repeatability error. Descriptor error refers to the error in the matching process of descriptors during image registration. A descriptor is a vector representation used to describe image features. Feature matching is performed by calculating the distance between descriptors. A large descriptor error indicates inaccurate matching. First, a matching risk function is defined. , The larger the value, the greater the matching error between the two descriptors.
[0028]
[0029] in Indicates the first A descriptor for each feature point. Indicates and The corresponding nearest neighbor non-matching descriptor, Indicates the nearest non-matching point. This indicates a pair of matching points. It is the angular distance. The final descriptor error can be expressed as:
[0030] in It represents the mathematical expectation.
[0031] Local peak error (LoPE) refers to the error in feature point detection caused by image noise or other factors when using local extrema as feature points in image registration. LoPE represents the distance between the local extrema of a feature point and the true feature point; a larger error indicates inaccurate feature point detection. Since the network output includes a visible light feature point heatmap... infrared light image feature point heatmap The local peak error function is as follows:
[0032] Where AP and MP represent average pooling operation and max pooling operation, respectively. It represents the mathematical expectation.
[0033] Repeatability error refers to the error that occurs when the position of feature points or the value of descriptors changes during multiple registrations of the same scene under different conditions in image registration. Repeatability error indicates the instability of feature points or descriptors; a larger error means poor repeatability of the feature points or descriptors. Its error function is as follows:
[0034] Therefore, the overall registration error can be expressed as follows: +
[0035] The fusion error mainly consists of two parts: the intensity loss function and the structural similarity loss function. The intensity loss function can be expressed as:
[0036] in and These represent the fused image, infrared image, and visible light image, respectively. Represents the Forbenius norm of a matrix. This represents the regularization hyperparameter.
[0037] The structural similarity loss function can be expressed as:
[0038] SSIM() represents the structural similarity measure, which measures the structural similarity between the fused image and the original image. A value closer to 1 indicates a better fusion result. The fusion error loss function is... .
[0039] Finally, the overall loss function of the registration fusion error network is as follows:
[0040] in This is a hyperparameter used to adjust the weights between registration error and fusion error.
[0041] Step 6: Determine the gradient of the error function and update the parameter matrix. The gradient is calculated and the parameter matrix is updated according to the backpropagation algorithm. Here, we follow the automatic gradient calculation and parameter update method in the PyTorch deep learning framework.
[0042] Step 7: Input the next batch of samples After the forward and backward computations of this algorithm are completed, the next batch of samples is input for iterative training to continuously optimize the network model parameters and make the network model parameters converge to the global optimum.
[0043] The working principle of this embodiment is as follows: Joint registration and fusion algorithm model such as Figure 2 As shown, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module, which consists of residual blocks in a single layer of ResNet network, to obtain feature maps with higher resolution. This process preserves a considerable amount of detailed information. The input is then split and fed into a transformation matrix. The feature fusion network module and the deep image feature extraction module, wherein the feature fusion network module is as follows: Figure 3 As shown, the fused feature maps of the two-band images under different weights are obtained based on the self-attention mechanism. The fused feature map contains two-band image information, while the deep image feature extraction module consists of residual blocks from a three-layer ResNet network, used to extract high-level semantic information and obtain high-level semantic features. Feature map fusion and high-level semantic features The input is fed into the progressive deep semantic feature injection module, which is as follows: Figure 5 As shown, it is composed of multiple cascaded deep semantic injection modules, used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information. Following this are high-level semantic features. The input is then fed into the deep image feature extraction module to obtain high-level semantic features. Progressive deep semantic feature maps The input is fed into the image reconstruction module, where the image reconstruction module is as follows: Figure 6 As shown, the output is the reconstructed feature map. .
[0044] Furthermore, high-level semantic features and reconstructed feature maps The input is fed into the deep semantic feature injection module, such as... Figure 4 As shown, this is used to fuse high-level semantic features with the reconstructed feature map to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is then fed back into the image reconstruction module, undergoes an upsampling process, and the final fused image is obtained. Meanwhile, the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and They are the same size. Finally, the high-dimensional visible light image high-level semantic feature descriptor. and high-dimensional infrared image descriptors The data are input into the feature point detector to obtain a visible light feature point heatmap. infrared light image feature point heatmap The network structure of the feature point detector is as follows: Figure 7 As shown, the output heatmap records the confidence level of each feature point. Based on the obtained high-level semantic feature descriptor... , and feature point heatmap , Feature matching is performed, and the transformation matrix h is calculated and updated using the RANSAC (Random Sample Consensus) algorithm. The transformation matrix h then affects the fusion of shallow feature maps, further promoting the improvement of fusion accuracy.
[0045] Next, the error is calculated for the expected output based on the predefined registration loss function and fusion loss function. The gradient is calculated and the parameters are updated using the gradient backpropagation principle. Then, the next iteration input is entered until the corresponding error requirement or the pre-set number of iterations is reached.
[0046] Example 2 This embodiment also provides a multi-band image joint registration and fusion system based on deep learning, which shares the same inventive concept as Embodiment 1, and includes: The image acquisition module is used to acquire images in the visible light band and the infrared light band. Based on the established multi-band low-light imaging platform, clear visible light, infrared, and near-infrared images can be captured under low-light conditions. Visible light images contain rich environmental texture details, while infrared images can effectively detect heat sources in the environment and display them in a high-contrast format. This provides a significant advantage in detecting environmental information under low-light conditions.
[0047] The distortion correction module is used to correct distortion between two images based on camera intrinsic parameters. To achieve effective registration and fusion, camera intrinsic parameters need to be calibrated. The purpose of camera calibration is to correct distortion. The intrinsic and extrinsic parameters of visible light and infrared cameras can be calculated using the Zhang Zhengyou calibration method. The main steps of the Zhang Zhengyou calibration method are as follows: Step 2.1: Prepare a chessboard pattern. The size of the chessboard pattern is known. Use a camera to take pictures from different angles to obtain a set of photos. Step 2.2: Detect feature points in the captured chessboard image to obtain the pixel coordinates of the calibration board corner points. Based on the known chessboard size and the origin of the world coordinate system, calculate the physical coordinates of the calibration board corner points. Step 2.3: Solve for the intrinsic and extrinsic parameter matrices; Step 2.4: Solve for the distortion parameters; Step 2.5: Optimize the above parameters using the LM (Levenberg-Marquardt) algorithm.
[0048] Finally, using the obtained distortion parameters and camera intrinsic parameters, a new camera projection matrix is calculated to correct the distortion of the original image.
[0049] In the parameter setting module, input the joint registration and fusion algorithm network model and set appropriate network hyperparameters. The distortion-corrected multi-band image is input into the joint registration and fusion algorithm model, and the specific algorithm network model diagram is as follows: Figure 2 As shown. The parameter settings in the joint registration and fusion algorithm are as follows: the optimizer is Adam, which can achieve more effective gradient descent; the learning rate is set to 0.01 in the first 30 training cycles, and then to 0.001 in the next 70 cycles, which makes the gradient descent faster and converge to the global optimum rather than the local optimum; the sample batch size is set to 64; the hardware used for training is an Nvidia 4090 graphics card.
[0050] The image processing module performs forward propagation of the network to output data. Joint registration and fusion algorithm model such as Figure 2 As shown, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module, which consists of residual blocks in a single layer of ResNet network, to obtain feature maps with higher resolution. This process preserves a considerable amount of detailed information. The input is then split and fed into a transformation matrix. The feature fusion network module and the deep image feature extraction module, wherein the feature fusion network module is as follows: Figure 3 As shown, the fused feature maps of the two-band images under different weights are obtained based on the self-attention mechanism. The fused feature map contains two-band image information, while the deep image feature extraction module consists of residual blocks from a three-layer ResNet network, used to extract high-level semantic information and obtain high-level semantic features. Feature map fusion and high-level semantic features The input is fed into the progressive deep semantic feature injection module, which is as follows: Figure 5 As shown, it is composed of multiple cascaded deep semantic injection modules, used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information. Following this are high-level semantic features. The input is then fed into the deep image feature extraction module to obtain high-level semantic features. Progressive deep semantic feature maps The input is fed into the image reconstruction module, where the image reconstruction module is as follows: Figure 6 As shown, the output is the reconstructed feature map. .
[0051] Furthermore, high-level semantic features and reconstructed feature maps The input is fed into the deep semantic feature injection module, such as... Figure 4 As shown, this is used to fuse high-level semantic features with the reconstructed feature map to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is then fed back into the image reconstruction module, undergoes an upsampling process, and the final fused image is obtained. Meanwhile, the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and They are the same size. Finally, the high-dimensional visible light image high-level semantic feature descriptor. and high-dimensional infrared image descriptors The data are input into the feature point detector to obtain a visible light feature point heatmap. infrared light image feature point heatmap The network structure of the feature point detector is as follows: Figure 7 As shown, the output heatmap records the confidence level of each feature point. Based on the obtained high-level semantic feature descriptor... , and feature point heatmap , Feature matching is performed, and the transformation matrix h is calculated and updated using the RANSAC (Random Sample Consensus) algorithm.
[0052] The error calculation module is used to calculate the error of the expected output based on the loss function. The loss function of the joint registration and fusion network model mainly consists of two parts: registration error and fusion error. First, let's introduce the registration error loss.
[0053] Registration errors are generally divided into three parts: descriptor error, local peak error, and repeatability error. Descriptor error refers to the error in the matching process of descriptors during image registration. A descriptor is a vector representation used to describe image features. Feature matching is performed by calculating the distance between descriptors. A large descriptor error indicates inaccurate matching. First, a matching risk function is defined. , The larger the value, the greater the matching error between the two descriptors.
[0054]
[0055] in Indicates the first A descriptor for each feature point. Indicates and The corresponding nearest neighbor non-matching descriptor, Indicates the nearest non-matching point. This indicates a pair of matching points. It is the angular distance. The final descriptor error can be expressed as:
[0056] in It represents the mathematical expectation.
[0057] Local peak error (LoPE) refers to the error in feature point detection caused by image noise or other factors when using local extrema as feature points in image registration. LoPE represents the distance between the local extrema of a feature point and the true feature point; a larger error indicates inaccurate feature point detection. Since the network output includes a visible light feature point heatmap... infrared light image feature point heatmap The local peak error function is as follows:
[0058] Where AP and MP represent average pooling operation and max pooling operation, respectively. It represents the mathematical expectation.
[0059] Repeatability error refers to the error that occurs when the position of feature points or the value of descriptors changes during multiple registrations of the same scene under different conditions in image registration. Repeatability error indicates the instability of feature points or descriptors; a larger error means poor repeatability of the feature points or descriptors. Its error function is as follows:
[0060] Therefore, the overall registration error can be expressed as follows: +
[0061] The fusion error mainly consists of two parts: the intensity loss function and the structural similarity loss function. The intensity loss function can be expressed as:
[0062] in and These represent the fused image, infrared image, and visible light image, respectively. Represents the Forbenius norm of a matrix. This represents the regularization hyperparameter.
[0063] The structural similarity loss function can be expressed as:
[0064] SSIM() represents the structural similarity measure, which measures the structural similarity between the fused image and the original image. A value closer to 1 indicates a better fusion result. The fusion error loss function is... .
[0065] Finally, the overall loss function of the registration fusion error network is as follows:
[0066] in This is a hyperparameter used to adjust the weights between registration error and fusion error.
[0067] The update module is used to determine the gradient of the error function and update the parameter matrix. The gradient is calculated and the parameter matrix is updated according to the backpropagation algorithm. Here, we follow the automatic gradient calculation and parameter update method in the PyTorch deep learning framework.
[0068] The iteration module is used for inputting the next batch of samples. After the forward and backward computations of this algorithm are completed, the next batch of samples is input for iterative training to continuously optimize the network model parameters and make the network model parameters converge to the global optimum.
[0069] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A deep learning-based multi-band image joint registration and fusion method, characterized in that, Includes the following steps: Step 1: Acquire visible light and infrared light images; Step 2: Correct distortion in both images based on camera intrinsic parameters; Step 3: Input the distortion-corrected multi-band image into the joint registration and fusion algorithm model, and set the network hyperparameters of the joint registration and fusion algorithm model; Step 4: The joint registration and fusion algorithm model performs forward propagation to output data; the specific implementation process is as follows: Feature extraction was performed on the visible light band image and the infrared light band image respectively to obtain feature maps with higher resolution. Then, through feature fusion and deep image feature extraction, fused feature maps of the two band images under different weights are obtained respectively. and high-level semantic features ; Fusion feature map and high-level semantic features Progressive deep semantic feature injection is performed, resulting in a progressive deep semantic feature map. High-level semantic features Further deep image feature extraction yields high-level semantic features. For progressive deep semantic feature maps Perform image reconstruction and output reconstructed feature maps. ; Furthermore, high-level semantic features and reconstructed feature maps Deep semantic feature injection is performed to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is reconstructed again, and after an upsampling process, the final fused image is obtained; while the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and Same size; finally, high-dimensional visible light image high-level semantic feature descriptor and high-dimensional infrared image descriptors Feature detection was performed separately to obtain visible light feature point heatmaps. infrared light image feature point heatmap Based on the obtained high-level semantic feature descriptors , and feature point heatmap , Perform feature matching, calculate and update the transformation matrix h; Step 5: Calculate the error of the expected output based on the predefined registration loss function and fusion loss function, calculate the gradient using the gradient backpropagation principle and update the parameters, and then proceed to the next iteration input until the corresponding error requirement or the pre-set number of iterations is reached. The deep image feature extraction module in the joint registration and fusion algorithm model is composed of residual blocks of a three-layer ResNet network; The progressive deep semantic feature injection module in the joint registration and fusion algorithm model is composed of multiple cascaded deep semantic injection modules. It is used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information.
2. The deep learning-based multi-band image joint registration and fusion method according to claim 1, characterized in that, In the joint registration and fusion algorithm model, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module; the shallow image feature extraction module is composed of residual blocks in a ResNet network.
3. The deep learning-based multi-band image joint registration and fusion method according to claim 1 or 2, characterized in that, The registration error calculated by the registration loss function in step 5 includes descriptor error, local peak error, and repeatability error; the fusion error calculated by the fusion loss function includes intensity loss error and structural similarity error.
4. A multi-band image joint registration and fusion system based on deep learning, characterized in that, include: The image acquisition module is used to acquire images in the visible light band and the infrared light band. The distortion correction module is used to correct distortion in two images based on camera intrinsic parameters; The parameter setting module is used to input the distortion-corrected multi-band image into the joint registration and fusion algorithm model and set the network hyperparameters of the joint registration and fusion algorithm model. The image processing module is used to enable the joint registration and fusion algorithm model to perform forward propagation to output data; the specific implementation process is as follows: Feature extraction was performed on the visible light band image and the infrared light band image respectively to obtain feature maps with higher resolution. Then, the inputs are split and fed into the feature fusion network module and the deep image feature extraction module after passing through the transformation matrix h, respectively, to obtain the fused feature maps of the two band images under different weights. and high-level semantic features ; Fusion feature map and high-level semantic features The input is fed into the progressive deep semantic feature injection module, resulting in the final progressive deep semantic feature map. High-level semantic features The input is then fed into the deep image feature extraction module to obtain high-level semantic features. Progressive deep semantic feature maps The input is given to the image reconstruction module, and the output is the reconstructed feature map. ; Furthermore, high-level semantic features and reconstructed feature maps The input is fed into the deep semantic feature injection module to obtain an injected feature map containing deeper semantic features and details. Finally, the feature map will be injected. The image is then input again into the image reconstruction module, undergoes an upsampling process, and yields the final fused image; while the other branch focuses on high-level semantic features. High-dimensional visible light image high-level semantic feature descriptor is obtained through upsampling. and high-dimensional infrared image descriptors ,in , and These are the height and width of the image, respectively. For the feature dimensions of the descriptor, and Same size; finally, high-dimensional visible light image high-level semantic feature descriptor and high-dimensional infrared image descriptors The data are input into the feature point detector to obtain a visible light feature point heatmap. infrared light image feature point heatmap Based on the obtained high-level semantic feature descriptors , and feature point heatmap , Perform feature matching, calculate and update the transformation matrix h; The iterative module is used to calculate the error of the expected output based on the predefined registration loss function and fusion loss function, calculate the gradient using the gradient backpropagation principle and update the parameters, and then proceed to the next iteration input until the corresponding error requirement or the pre-set number of iterations is reached; The deep image feature extraction module in the joint registration and fusion algorithm model is composed of residual blocks of a three-layer ResNet network; The progressive deep semantic feature injection module in the joint registration and fusion algorithm model is composed of multiple cascaded deep semantic injection modules. It is used to fuse high-level semantic features and fusion features containing rich detailed information, resulting in a progressive deep semantic feature map. It contains both detailed texture information and global high-level semantic information.
5. The deep learning-based multi-band image joint registration and fusion system according to claim 4, characterized in that, In the joint registration and fusion algorithm model, the visible light band image and the infrared light band image are respectively processed by the shallow image feature extraction module; the shallow image feature extraction module is composed of residual blocks in a ResNet network.
6. The deep learning-based multi-band image joint registration and fusion system according to claim 4 or 5, characterized in that, The registration error calculated by the registration loss function in the iterative module includes descriptor error, local peak error, and repeatability error; the fusion error calculated by the fusion loss function includes intensity loss error and structural similarity error.
Citation Information
Patent Citations
A hyperspectral and multispectral image fusion method based on a two-way dense residual network
CN109636769A
