Multi-modal image registration method based on feature fusion and Transform
Through feature fusion and Transformer technology, a multi-modal image registration model is constructed, which solves the problems of geometric distortion and nonlinear intensity differences in multi-modal image registration, and achieves high-precision and robust registration effects.
Patent Information
- Application Number
- CN202411030082.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-18
AI Technical Summary
Significant geometric distortion and nonlinear intensity differences exist in multi-modal image registration, making feature detection and matching difficult, making it difficult for existing methods to achieve high accuracy and robustness as a general method.
A multi-modal image registration method based on feature fusion and Transformer is adopted. By constructing a feature detection and matching network model, combined with deep learning and geometric feature methods, matching point pairs are extracted and the GSM algorithm is used to eliminate mismatching points to obtain a spatial transformation model. And image registration is performed through thin plate spline interpolation method.
It improves the accuracy and robustness of multi-modal image registration, ensures the accuracy and effectiveness of feature matching, and can effectively capture deep semantic information and spatial detail information in images.
Smart Images

Figure CN118799366A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and in particular relates to a multimodal image registration method based on feature fusion and Transformer. Background Art
[0002] Multimodal images refer to images acquired by sensors with different imaging mechanisms. Due to their different imaging mechanisms, bands, and phases, the image data obtained also have certain differences in dimension, size, resolution, geometric features, etc., which often cause significant geometric distortion and nonlinear intensity differences. Therefore, the registration between cross-modal images has always been a difficult point in image registration research. How to eliminate these differences and explore the potential feature connections between the two images is an urgent problem to be solved in the field of image registration.
[0003] Although many promising registration methods have been proposed, there are still some problems in the field of multimodal registration in order to propose a general method with good performance in terms of accuracy, robustness and efficiency. Due to the heterogeneity of multimodal image features, there are typical "five differences" (imaging characteristics, scale, rotation, noise, landscape, etc.) and "three differences" (different environments, different weather, different weather, etc.) between images, which brings great difficulties to high-precision matching. How to accurately define and describe the same-name features and how to characterize the same-name features are both major difficulties. Moreover, the same-name features between multimodal images are difficult to extract. Even if the same-name features are extracted, they will be incomplete and difficult to match due to different perspectives and environments. The core challenge of feature-based methods is feature detection and matching of multimodal image pairs. Due to the significant nonlinear intensity differences between multimodal image pairs, many widely used feature matchers proposed for general visual applications will fail in this case, or a large number of outliers (false matches) will appear in the assumed matches due to the use of only local image information.
[0004] In recent years, deep learning methods have been widely used in the field of image processing. In the field of image registration, the main idea is to automatically learn the feature information of images from a large amount of training data, and use the powerful expression ability of convolutional neural networks to replace the hand-designed detectors and descriptors based on direct perception or experience. However, due to the inherent limitations of the CNN architecture, its receptive field size is limited, ignoring the long-distance dependencies in the image, and cannot effectively capture the long-range spatial information in the image. Relying on data-driven, deep learning models can achieve good registration effects when the image deformation is relatively severe. Therefore, designing a reasonable network model is crucial to improving the accuracy of multimodal registration. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the present invention provides a multimodal image registration method based on feature fusion and Transformer. First, a multimodal image pair data set is obtained; then, a feature detection and matching network model network model is constructed, and the image pairs in the obtained data set are used as input and the matching point pairs are used as output to train the network; then, the trained network is used to extract the matching point pairs of the image to be registered, and the GSM algorithm is used to eliminate the mismatched points to obtain the final spatial transformation model; finally, the image to be registered is transformed, and the registration result is obtained by the thin plate spline interpolation method. The present invention combines the advantages of deep learning methods and geometric feature methods, retains spatial detail information while mining deep semantic information, can ensure the accuracy and effectiveness of feature matching, and improve the accuracy and robustness of multimodal image registration.
[0006] A multimodal image registration method based on feature fusion and Transformer, characterized by the following steps:
[0007] Step 1: Obtain a multimodal image pair dataset, including several sets of optical-optical, optical-infrared, optical-depth, optical-map, optical-SAR, and day-night image pairs of the same scene. In each image pair, one image is used as the reference image and the other is used as the image to be registered.
[0008] Step 2: Construct a feature detection and matching network model, use the image pairs in the data set obtained in step 1 as input, and the matching point pairs as output to train the network;
[0009] Step 3: For two given images to be registered, input them into the feature detection and matching network trained in step 2 to obtain matching point pairs of the images;
[0010] Step 4: Use the GSM algorithm to remove the mismatched points from the matching point pairs, and then calculate the spatial transformation model according to the remaining matching point pairs as follows:
[0011]
[0012] Among them, (x ref ,y ref ) represents the coordinates of the point in the reference image, (x sen ,y sen ) represents the coordinates of the corresponding matching points in the image to be registered, s represents the scaling factor, θ represents the rotation angle, and t x and t y Represents the translation in horizontal and vertical directions respectively;
[0013] Step 5: Use the spatial transformation model obtained in step 4 to transform the image to be registered, obtain the image feature points after spatial transformation, and then use the thin plate spline interpolation method to interpolate the image feature points to obtain the image registration result.
[0014] Specifically, the optical-optical image pair described in step 1 is a multi-perspective, cross-temporal optical image pair.
[0015] Specifically, the feature detection and matching network model mainly includes a multi-scale feature extraction network, a feature pyramid network and a Transformer encoder-decoder module. The two images of the input image pair are respectively extracted using the multi-scale feature extraction network to obtain several feature maps of different scales for each image. The high-level feature map and the low-level feature map of each image are gradually fused using the feature fusion module of the feature pyramid network to generate a fused feature map. Finally, the Transformer encoder-decoder module is used to perform feature matching on the fused feature maps of the two images to obtain the initial matching point pairs of the images.
[0016] Specifically, the multi-scale feature extraction network adopts an improved ResNet50 network. The improvement refers to adding a convolution module based on the original ResNet50 network model. The convolution module is composed of 1024 1×1 convolution kernels, 3×3 convolution kernels and 4096 1×1 convolution kernels connected in series.
[0017] Specifically, the feature pyramid network includes two paths, bottom-up and top-down. The bottom-up path is a multi-scale feature extraction network, which obtains several feature maps of different scales of the image through feed-forward calculation of the convolutional network. The top-down path is to gradually fuse the high-level feature map with the low-level feature map through a feature fusion module to generate the final fused feature map. The feature fusion module also realizes the semantic alignment of the high-level feature map and the low-level feature map by learning a semantic offset field. The processing process is as follows:
[0018]
[0019] Among them, F o represents the fused feature map, represents element addition, S i represents the low-level feature map at the i-th scale, D i represents the high-level feature map at the i-th scale, and Indicates encoding the feature map, F l and F h are the encoding results of the low-level feature map and the high-level feature map, respectively. W(·) represents the feature alignment function, and its parameter is θ.
[0020] Specifically, the Transformer encoder-decoder module is composed of an encoder and a decoder, and both the encoder and the decoder adopt a 6-layer structure, wherein each encoder layer T E It contains an 8-head self-attention layer and MLP layer. A residual connection is used between each self-attention layer and the feedforward neural network. Each decoder layer T D Contains an 8-head cross-attention layer and T E The same MLP layer is used, and a pre-normalized residual unit is used, where the pre-normalized residual unit refers to layer normalization before the MLP layer.
[0021] Specifically, the loss function L of the feature detection and matching network model network is:
[0022]
[0023] Among them, E represents the error between the registration result and the reference image, I and I′ represent the reference image and the image to be registered respectively, x represents the feature point of the reference image, x′ represents the feature point of the image to be registered, L1 is the reprojection loss, L2 is the cycle consistency loss, and the calculation expressions of L1 and L2 are as follows:
[0024] L1=||x'-F Φ (x|I,I')||2 2 (6)
[0025] L2=||xF Φ (F Φ (x|I,I')|I,I')||2 2 (7)
[0026] Among them, F Φ (·) indicates the matching results obtained through the network model.
[0027] Specifically, the processing process of the GSM algorithm is as follows: Input the N feature correspondences of the two images The initial matching point set of the reference image is The corresponding matching point set of the image to be registered is The cost function value is calculated as follows:
[0028]
[0029] Among them, C represents the cost value, S in represents the internal point set, λ is the threshold, set to 0.9, and d(·,·) represents the distance between two points;
[0030] Introduce an N×1 dimensional binary vector p, each element p in the vector iIndicates the i-th corresponding (x i ,y i )’s matching correctness, p i =1 is an interior point, p i = 0 is an outlier, the cost value is less than the threshold λ is considered an inlier, and the cost value is greater than the threshold λ is considered an outlier. Finally, the correct matching relationship S is obtained. * ={ip i =1,i=1,…,N}.
[0031] The beneficial effects of the present invention are: by combining the advantages of deep learning methods and geometric feature methods, spatial detail information is retained while mining deep semantic information, ensuring the accuracy and effectiveness of feature matching, thereby improving the accuracy and robustness of multimodal image registration. The method of the present invention can not only be used for multimodal image registration, but can also be further applied to other related fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of the multimodal image registration method based on feature fusion and Transformer of the present invention;
[0033] Figure 2 It is the overall structural diagram of the feature detection and matching network model of the present invention. DETAILED DESCRIPTION
[0034] The present invention is further described below in conjunction with the accompanying drawings and embodiments. The present invention includes but is not limited to the following embodiments.
[0035] The present invention provides a multimodal image registration method based on feature fusion and Transformer, such as Figure 1 The specific implementation process is as follows:
[0036] Step 1: Obtain a multimodal image pair dataset, including several sets of optical-optical (multi-view, cross-temporal), optical-infrared, optical-depth, optical-map, optical-SAR images, and day-night image pairs of the same scene. In each image pair, one image is used as the reference image and the other is used as the image to be registered.
[0037] Step 2: Construct a feature detection and matching network model. Take the image pairs in the data set obtained in step 1 as input and the matching point pairs as output to train the network.
[0038] like Figure 2As shown in the figure, the feature detection and matching network model mainly includes a multi-scale feature extraction network, a feature pyramid network and a Transformer encoder-decoder module. The main function of the multi-scale feature extraction network is to extract image features of multiple scales from the two images of the input image pair, and use the weight-sharing convolutional neural network to extract features respectively, and obtain feature maps of different scales through a series of convolution, pooling and other operations. The feature fusion module of the feature pyramid network aligns features at different levels, gradually fuses high-level feature maps and low-level feature maps, realizes multi-scale feature fusion, and improves the feature expression ability of the network model. The Transformer encoder-decoder module mainly learns the global features of the two images, captures the contextual semantic information of the images through the self-attention mechanism to improve the matching performance, and converts the output of the decoder into corresponding coordinates through a simple feedforward network to obtain the matching point pairs of the images, completing the matching process of the feature points.
[0039] Specifically, the multi-scale feature extraction network uses an improved ResNet50 network, where the improvement refers to adding a convolution module to the original ResNet50 network model to improve the performance of subsequent image matching. The convolution module is composed of 1024 1×1 convolution kernels, 3×3 convolution kernels, and 4096 1×1 convolution kernels connected in series.
[0040] Specifically, the feature pyramid network includes two paths: bottom-up and top-down. The bottom-up path uses a multi-scale feature extraction network architecture (i.e., an improved ResNet50 network) to obtain several feature maps of different scales of the image through feed-forward calculation of the convolutional network. The top-down path uses a feature fusion module to gradually fuse the high-level feature map with the low-level feature map to generate the final fused feature map. The feature fusion module also achieves semantic alignment of the high-level feature map and the low-level feature map by learning a semantic offset field. The processing process is as follows:
[0041]
[0042] Among them, F o represents the fused feature map, represents element addition, S i represents the low-level feature map at the i-th scale, D i represents the high-level feature map at the i-th scale, and Indicates encoding the feature map, F l and F h are the encoding results of the low-level feature map and the high-level feature map, respectively. W(·) represents the feature alignment function, and its parameter is θ, which is obtained through learning.
[0043] Specifically, the Transformer encoder-decoder module consists of an encoder and a decoder, both of which adopt a 6-layer structure, where each encoder layer T E It contains an 8-head self-attention layer and MLP layer. A residual connection is used between each self-attention layer and the feedforward neural network. Each decoder layer T D Contains an 8-head cross-attention layer and T E The same MLP layer is used, and a pre-normalized residual unit is used, where the pre-normalized residual unit refers to layer normalization before the MLP layer.
[0044] The loss function L of the entire feature detection and matching network model network is:
[0045]
[0046] Among them, E represents the error between the registration result and the reference image, I and I′ represent the reference image and the registered image respectively, x represents the feature point of the reference image, x′ represents the feature point of the registered image, L1 is the reprojection loss, L2 is the cycle consistency loss, and the calculation expressions of L1 and L2 are as follows:
[0047] L1=||x'-F Φ (x|I,I')||2 2 (13)
[0048] L2=||xF Φ (F Φ (x|I,I')|I,I')||2 2 (14)
[0049] Among them, F Φ (x|I,I') represents the matching result of feature point x obtained through the network model.
[0050] Step 3: For two given images to be registered, input them into the feature detection and matching network trained in step 2 to obtain the matching point pairs of the images.
[0051] Step 4: Use the GSM algorithm to remove the mismatched points from the matching point pairs, and then calculate the spatial transformation model according to the remaining matching point pairs as follows:
[0052]
[0053] Among them, (x ref ,y ref ) represents the coordinates of the point in the reference image, (x sen ,y sen ) represents the coordinates of the corresponding matching points in the image to be registered, s represents the scaling factor, θ represents the rotation angle, and tx and t y Represents the horizontal and vertical translation respectively.
[0054] Specifically, the processing process of the GSM algorithm is as follows: Input the N feature correspondences of the two images The initial matching point set of the reference image is The corresponding matching point set of the image to be registered is The cost function value is calculated as follows:
[0055]
[0056] Among them, C represents the cost value, S in represents the internal point set, λ is the threshold, set to 0.9, and d(·,·) represents the distance between two points;
[0057] Introduce an N×1 dimensional binary vector p, each element p in the vector i Indicates the i-th corresponding (x i ,y i )’s matching correctness, p i =1 is an interior point, p i = 0 is an outlier, the cost value is less than the threshold λ is considered an inlier, and the cost value is greater than the threshold λ is considered an outlier. Finally, the correct matching relationship S is obtained. * ={i|p i =1,i=1,…,N}.
[0058] Step 5: Use the spatial transformation model obtained in step 4 to transform the image to be registered, obtain the image feature points after spatial transformation, and then use the thin plate spline interpolation method to interpolate (resample) the image feature points to obtain the image registration result.
Claims
1. A multimodal image registration method based on feature fusion and Transformer, characterized in that Here are the steps: Step 1: Obtain a multimodal image pair dataset, including several sets of optical-optical, optical-infrared, optical-depth, optical-map, optical-SAR, and day-night image pairs of the same scene. In each image pair, one image is used as the reference image and the other is used as the image to be registered. Step 2: Construct a feature detection and matching network model, use the image pairs in the data set obtained in step 1 as input, and the matching point pairs as output to train the network; Step 3: For two given images to be registered, input them into the feature detection and matching network trained in step 2 to obtain matching point pairs of the images; Step 4: Use the GSM algorithm to remove the mismatched points from the matching point pairs, and then calculate the spatial transformation model according to the remaining matching point pairs as follows: Among them, (x ref ,y ref ) represents the coordinates of the point in the reference image, (x sen ,y sen ) represents the coordinates of the corresponding matching points in the image to be registered, s represents the scaling factor, θ represents the rotation angle, and t x and t y Represents the translation in horizontal and vertical directions respectively; Step 5: Use the spatial transformation model obtained in step 4 to transform the image to be registered, obtain the image feature points after spatial transformation, and then use the thin plate spline interpolation method to interpolate the image feature points to obtain the image registration result.
2. The multimodal image registration method based on feature fusion and Transformer according to claim 1, characterized in that: The optical-optical image pair described in step 1 is a multi-viewing, cross-temporal optical image pair.
3. The multimodal image registration method based on feature fusion and Transformer according to claim 1, characterized in that: The feature detection and matching network model mainly includes a multi-scale feature extraction network, a feature pyramid network and a Transformer encoder-decoder module. The two images of the input image pair are respectively extracted using the multi-scale feature extraction network to obtain several feature maps of different scales for each image. The high-level feature map and the low-level feature map of each image are gradually fused using the feature fusion module of the feature pyramid network to generate a fused feature map. Finally, the Transformer encoder-decoder module is used to perform feature matching on the fused feature maps of the two images to obtain the initial matching point pairs of the images.
4. The multimodal image registration method based on feature fusion and Transformer as claimed in claim 3, characterized in that: The multi-scale feature extraction network adopts an improved ResNet50 network. The improvement refers to adding a convolution module based on the original ResNet50 network model. The convolution module is composed of 1024 1×1 convolution kernels, 3×3 convolution kernels and 4096 1×1 convolution kernels connected in series.
5. The multimodal image registration method based on feature fusion and Transformer as claimed in claim 3, characterized in that: The feature pyramid network includes two paths, bottom-up and top-down. The bottom-up path is a multi-scale feature extraction network. The feature maps of several different scales of the image are obtained through feed-forward calculation of the convolutional network. The top-down path is to gradually fuse the high-level feature map with the low-level feature map through a feature fusion module to generate the final fused feature map. The feature fusion module also realizes the semantic alignment of the high-level feature map and the low-level feature map by learning a semantic offset field. The processing process is as follows: Among them, F o represents the fused feature map, represents element addition, S i represents the low-level feature map at the i-th scale, D i represents the high-level feature map at the i-th scale, and Indicates encoding the feature map, F l and F h are the encoding results of the low-level feature map and the high-level feature map, respectively. W(·) represents the feature alignment function, and its parameter is θ.
6. The multimodal image registration method based on feature fusion and Transformer as claimed in claim 3, characterized in that: The Transformer encoder-decoder module is composed of an encoder and a decoder, and both the encoder and the decoder adopt a 6-layer structure, wherein each encoder layer T E It contains an 8-head self-attention layer and MLP layer. A residual connection is used between each self-attention layer and the feedforward neural network. Each decoder layer T D Contains an 8-head cross-attention layer and T E The same MLP layer is used, and a pre-normalized residual unit is used, where the pre-normalized residual unit refers to layer normalization before the MLP layer.
7. The multimodal image registration method based on feature fusion and Transformer as claimed in claim 3, characterized in that: The loss function L of the feature detection and matching network model network is: Among them, E represents the error between the registration result and the reference image, I and I′ represent the reference image and the image to be registered respectively, x represents the feature point of the reference image, x′ represents the feature point of the image to be registered, L1 is the reprojection loss, L2 is the cycle consistency loss, and the calculation expressions of L1 and L2 are as follows: L1=||x'-F Φ (x|I,I')||2 2 (6) L2=||x-F Φ (F Φ (x|I,I')|I,I')||2 2 (7) Among them, F Φ (·) indicates the matching results obtained through the network model.
8. The multimodal image registration method based on feature fusion and Transformer according to claim 1, characterized in that: The processing process of the GSM algorithm is: input the N feature correspondences of the two images The initial matching point set of the reference image is The corresponding matching point set of the image to be registered is The cost function value is calculated as follows: Among them, C represents the cost value, S in represents the internal point set, λ is the threshold, set to 0.9, and d(·,·) represents the distance between two points; Introduce an N×1 dimensional binary vector p, each element p in the vector i Indicates the i-th corresponding (x i ,y i )’s matching correctness, p i =1 is an interior point, p i = 0 is an outlier, the cost value is less than the threshold λ is considered an inlier, and the cost value is greater than the threshold λ is considered an outlier. Finally, the correct matching relationship S is obtained. * ={i|p i =1,i=1,…,N}.
Citation Information
Cited By
Large-scale multi-modal image registration method and system driven by structured enhancement
CN120047505A
Multi-modal image matching method and system based on learning features and epipolar geometric constraints
CN120726352A
Deep well casting molten aluminum leakage detection method based on multi-modal fusion
CN120892998A
