Cross-modal image registration method based on deep multi-scale correlation and outlier removal

Through the combination of multi-scale simultaneous training of deep convolutional neural networks and the RANSAC algorithm, the problem of low accuracy in cross-modal image registration is solved, achieving higher image registration accuracy and robustness, and is applicable Feature matching and registration of multi-modal images.

CN117974730BActive Publication Date: 2024-09-10ZHEJIANG IMAGE QUALITY TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202410120953.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2024-09-10
Estimated Expiration
2044-01-29

AI Technical Summary

Technical Problem

Existing image registration methods have low accuracy when processing cross-modal images, especially when nonlinear brightness and gradient changes occur, and are difficult to effectively handle outliers, resulting in matching failures and low accuracy.

Method used

A cross-modal image registration method based on deep multi-scale correlation and outlier elimination is adopted, and the deep convolutional neural network is trained simultaneously at multiple scales, combined with the RANSAC algorithm to eliminate outliers, calculate the image registration perspective transformation matrix, and use multi-scale The feature twin extraction module and image correlation matching measurement module perform feature extraction and matching measurement, and construct a loss function to update network parameters.

Benefits of technology

It improves the accuracy and robustness of image registration, enables training of high-quality models with a smaller sample size, reduces the inconsistency of cross-modal image features, and enhances the learning ability and matching accuracy of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117974730B
    Figure CN117974730B
Patent Text Reader

Abstract

The present invention discloses a cross-modal image registration method based on deep multi-scale correlation and outlier elimination, the method comprising: obtaining multiple cross-modal image pairs and performing preprocessing to construct training images; building a deep convolutional neural network model, performing multiple scale synchronous training on the deep convolutional neural network model through the training images, and during the training process, using the loss function of each scale point-by-point constraint to supervise the update of network parameters; forming a matching point set by forming a matching point set by the matching relationship of feature points synchronously inferred at multiple scales, eliminating outliers through RANSAC, and performing registration parameter solution training; performing image registration to be tested through the trained deep convolutional neural network model, outputting registration parameters, and obtaining image registration results. The present invention builds a deep convolutional neural network model, which can perform multiple scale feature extraction, synchronous inference training at different scales, and registration parameter solution based on cross-modal image pairs, and can improve the accuracy of image registration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a cross-modal image registration method based on deep multi-scale correlation and outlier elimination. Background Art

[0002] Cross-modal images are basic data in the fields of multimodal image perception / fusion, multimodal computer vision, and computational photography. However, in actual scenarios, cross-modal images are often collected from different imaging devices, and their image contents are usually not matched in coordinates. Therefore, cross-modal image registration is a very important technology. The feature extraction methods of existing traditional image registration methods are usually not robust to nonlinear brightness / gradient changes in multimodal images; while deep learning-based methods mostly use convolutional neural networks with pooling layers to predict image matching, and there is no better solution for the processing of matching outliers.

[0003] The current mainstream image registration algorithms include SIFT (Scane Invariant Feature Transform), DHN (Deep image homography estimation), MHN (Deep homography estimation for dynamic scenes), etc.

[0004] SIFT is an efficient local feature detection algorithm. The algorithm first uses a Gaussian function to blur and downsample the grayscale image to obtain an image pyramid. The two adjacent layers of the pyramid are subtracted to generate a Gaussian difference (DoG) pyramid, and key point detection is performed at different scales in the DoG pyramid. The image in the neighborhood of the key point is divided into sub-blocks of size 16×16, and the gradient histogram in the sub-block is calculated. A 128-dimensional feature vector can be extracted for each key point, and the gradient information of the statistical vector can be used as a descriptor of the key point. SIFT has good robustness to rotation, scale scaling, brightness changes, noise, etc., but because it is highly dependent on the gradient of the neighborhood pixels, the extracted feature vector has a large error, resulting in matching failure.

[0005] DHN uses a neural network to directly predict the homography transformation parameters between the images to be registered. The input of the network is the source image and the target image spliced ​​in the channel dimension, and the output is the offset of 4 vertices, and then the homography transformation is obtained through direct linear transformation (DNT). MHN can simultaneously estimate the homography matrix and detect dynamic content. It designs a multi-scale neural network, and the structure of each layer of the network is similar to the VGG network. The network gradually increases the size of the input image from a low resolution, uses the homography matrix estimated at the previous scale to pre-align the input image to the next scale, and then gradually refines the estimate of the homography matrix with higher and higher resolutions. However, these methods require a large number of samples for training, and it is difficult to train to obtain high-quality models.

[0006] There are also some image registration methods based on deep learning in the prior art. For example, the patent with publication number CN113223068A discloses a multimodal image registration method and system based on deep global features. It extracts feature maps through a deep feature extraction network, calculates cosine similarity scores, and designs three loss functions to optimize the network, which can improve the registration effect to a certain extent. However, this method only performs feature matching on a single scale and cannot measure the consistency of features well, resulting in low image registration accuracy. Summary of the invention

[0007] In view of this, the present invention proposes a cross-modal image registration method based on deep multi-scale correlation and outlier elimination, which is used to solve the problem of low accuracy of existing image registration.

[0008] The present invention discloses a cross-modal image registration method based on deep multi-scale correlation and outlier elimination, the method comprising:

[0009] Obtain multiple cross-modal image pairs and perform preprocessing to construct training images;

[0010] A deep convolutional neural network model is built, and the deep convolutional neural network model is trained synchronously at multiple scales through the training images. During the training process, a loss function constrained point by point at each scale is used to supervise the update of network parameters; the matching relationship of feature points inferred synchronously at multiple scales is used to form a matching point set, and outliers are eliminated through RANSAC to perform registration parameter solution training;

[0011] The image to be tested is registered through the trained deep convolutional neural network model, and the registration parameters are output to obtain the image registration result.

[0012] On the basis of the above technical solution, preferably, the pretreatment specifically includes:

[0013] Using affine transformation to randomly perturb cross-modal image pairs;

[0014] The cross-modal image pairs are randomly rotated and scaled synchronously, and random brightness, contrast, and chromaticity are added to the two images for data augmentation.

[0015] On the basis of the above technical solution, preferably, the deep convolutional neural network model specifically includes:

[0016] Multi-scale feature twin extraction module, used to extract multi-scale features from training images;

[0017] Image correlation matching measurement module, used to calculate feature correlation at multiple scales simultaneously and perform image matching measurement;

[0018] The RANSAC registration parameter solution module is used to use multiple decoders corresponding to each scale to simultaneously decode the image matching measurement results to obtain feature point matching results; the feature point matching results are combined into a point set matching result set, the RANSAC algorithm is used to identify internal and external points, and the image registration perspective transformation matrix M is calculated.

[0019] On the basis of the above technical solution, preferably, the multi-scale feature twin extraction module uses the residual module as the basic unit, utilizes skip-layer connection to form a twin convolutional neural network with a U-net structure, and performs multi-scale feature extraction on the training image.

[0020] On the basis of the above technical solution, preferably, the expression for calculating the feature correlation at multiple scales simultaneously is:

[0021]

[0022] Among them, C n (i, j) is image I a Features and image I at scale n and position i b The correlation of features at scale n and position j, n = 1, 2, ..., N, N is the total number of scales; ReLU is the activation function, Representative image I a Features at scale n and position i, express The L2 norm of Representative image I b Features at scale n and position j, express The L2 norm of I a with I b is a cross-modal image pair.

[0023] On the basis of the above technical solution, preferably, the use of the RANSAC algorithm to identify internal and external points and calculate the image registration perspective transformation matrix M specifically includes:

[0024] Let the point set matching result set be denoted as {S|S n ∈S,n=1,2,...,N},S n Combined with the feature point matching relationship inferred by scale n, the expression for calculating the image registration perspective transformation matrix M is:

[0025]

[0026] Where k represents the number of random sampling of the matching set S, k = 0, 1, 2, ..., K, M 11 、M 12 、M 13 、M 21 、M 22 、M 23 are all elements of the matrix M, (x n ,y n )、(x′ n , y′ n )∈S n is a pair of randomly sampled matching points.

[0027] Based on the above technical solution, preferably, the expression of the loss function is:

[0028]

[0029]

[0030] Among them, L n represents the loss function corresponding to scale n, n = 1, 2, ..., N, N is the total number of scales, L is the total loss function, thr is the error discrimination threshold, is the true matching result corresponding to scale n, S n is the predicted matching result corresponding to scale n.

[0031] On the basis of the above technical solution, preferably, during the training process, the AdamW optimization algorithm combined with the cosine annealing learning rate update is used to update the network parameters, and the expression is:

[0032]

[0033] Among them, η t is the cosine annealing learning rate, η max , η min Respectively represent the maximum and minimum values ​​of the learning rate, T cur Indicates the current training iteration number, T max Represents the total number of training iterations.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] 1) The present invention builds a deep convolutional neural network model, which can perform multi-scale feature extraction and synchronous inference training at different scales based on cross-modal image pairs. During the training process, a loss function with point-by-point constraints at each scale is used to supervise the update of network parameters, and then the matching relationship of feature points synchronously inferred at multiple scales is used to form a matching point set. Outliers are removed through RANSAC to solve the registration parameters. Since the present invention integrates the synchronous inference results of different scales for model training and registration parameter solution, the accuracy of image registration can be improved;

[0036] 2) The present invention uses the residual module as the basic unit and uses skip-layer connections to form a twin convolutional neural network with a U-net structure, which can simultaneously extract multi-scale features. On this basis, the correlation between image features at each scale is calculated and back-propagated to enable the deep convolutional neural network model to learn the correlation between features. When calculating the feature correlation, the quadratic modulus of the feature is used for normalization to reduce the possible inconsistency of cross-modal image features, effectively balancing the consistency of the extracted features;

[0037] 3) The present invention adopts the loss function constructed by the upper truncated L1 norm to guide the update of network parameters. The loss function is applied to each scale of the network model at the same time, and supervises the matching prediction of all points at each scale. For the loss functions of different scales, the back propagation algorithm is used to supervise the update of network parameters after summing, so as to improve the robustness of network learning. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 This is a flow chart of the cross-modal image registration method based on deep multi-scale correlation and outlier removal of the present invention;

[0040] Figure 2 Schematic diagram of the structure of the multi-scale feature twin extraction module of the present invention;

[0041] Figure 3 This is a schematic diagram of the structure of the image correlation matching measurement module of the present invention;

[0042] Figure 4 This is a schematic diagram of the RANSAC registration parameter solution module structure;

[0043] Figure 5A schematic diagram showing the comparison of the registration effect of the image registration method proposed in the present invention and the existing image registration algorithm on multimodal data;

[0044] Figure 6 The registration error statistics of the image registration method proposed in this invention and the existing image registration algorithm on multimodal data are presented. DETAILED DESCRIPTION

[0045] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] See also Figure 1 The present invention proposes a cross-modal image registration method based on deep multi-scale correlation and outlier elimination, the method comprising:

[0047] S1. Obtain multiple cross-modal image pairs and perform preprocessing to construct training images.

[0048] Obtain multiple cross-modal image pairs with unlimited image size, and pre-process the cross-modal image pairs, including:

[0049] S11. Randomly perturb the cross-modal image pairs using affine transformation so that there is a perspective transformation between the cross-modal image pairs, which can be expressed as:

[0050] h(I b )=W(I a ,M)

[0051] Among them, I a ,I b represents a cross-modal image pair, h represents the modality conversion function, W represents the image coordinate projection, and M represents the perspective transformation matrix.

[0052] S12. Randomly rotate and scale the cross-modal image pairs synchronously, and add random brightness, contrast, and chromaticity to the two images for data enhancement.

[0053] In order to prevent the problem of network overfitting due to less data, the present invention randomly and synchronously rotates and scales the cross-modal image pairs, and improves the data richness through data enhancement means, so as to prevent data overfitting and improve the inconsistency of network modalities.

[0054] S2. Build a deep convolutional neural network model, and perform multiple-scale synchronous training on the deep convolutional neural network model through the training images.

[0055] The deep convolutional neural network model constructed in the present invention mainly includes a multi-scale feature twin extraction module, an image correlation matching measurement module and a RANSAC alignment parameter solution module.

[0056] The multi-scale feature twin extraction module is used to extract multi-scale features from training images. Figure 2 The figure shows the structure of the multi-scale feature twin extraction module. The multi-scale feature twin extraction module uses the residual module as the basic unit and forms a twin convolutional neural network with a U-net structure by using skip-layer connection to transform the preprocessed cross-modal image pair I a ,I b The composed training image input multi-scale feature twin extraction module can simultaneously extract multi-scale features of the training image for subsequent matching prediction, which can be expressed as:

[0057] F 1 =φ 1 (I)

[0058] F 2 =φ 2 (I)

[0059] …

[0060] F N =φ N (I)

[0061] Among them, φ 1 ~φ N represents the feature extractor of the twin network at each scale, N represents the total number of feature scales, and I represents I a or I b .

[0062] The multi-scale feature twin extraction module of the present invention uses skip-layer connections to inject shallow information into the deeper part of the network, thereby obtaining image semantic information while maintaining image detail information. Preferably, the total number of network residual blocks can be set to 6.

[0063] The image correlation matching measurement module is used to calculate feature correlation at multiple scales simultaneously and perform image matching measurement.

[0064] In order to reduce the inconsistency that may exist in cross-modal image features, the present invention uses the quadratic modulus of features at each scale to normalize and calculate feature correlation, thereby effectively measuring the consistency of extracted features. In order to avoid negative correlation, the linear activation unit ReLU is used to set the correlation less than 0 to 0. Since the linear activation unit ReLU is embedded in the deep learning framework, it is easy to implement back propagation. Figure 3 Shown is a schematic diagram of the image correlation matching measurement module structure.

[0065] Considering that high-level scales usually contain semantic information, and low-level image scales usually have higher matching accuracy, the correlation is calculated at each scale simultaneously. The expression for calculating feature correlation at multiple scales simultaneously is:

[0066]

[0067] Among them, C n (i, j) is image I a Features and image I at scale n and position i b Correlation of features at scale n and position j, n = 1, 2, ..., N, N is the total number of scales; ReLU is the activation function, Representative image I a Features at scale n and position i, express The L2 norm of Representative image I b Features at scale n and position j, express The L2 norm of I a with I b is a cross-modal image pair. The correlation of features at different positions at the same scale n constitutes the feature correlation calculation result C at the scale n. n , thus obtaining the feature correlation calculation results C at different scales 1 ,C 2 ,...,C N .

[0068] The RANSAC registration parameter solution module is used to use multiple decoders corresponding to each scale to simultaneously decode the image matching measurement results to obtain feature point matching results; the feature point matching results are combined into a point set matching result set, the RANSAC algorithm is used to identify internal and external points, and the image registration perspective transformation matrix M is calculated.

[0069] Calculate the result C based on feature correlation 1 ,C 2 ,...,C N , use the decoders corresponding to each scale to decode simultaneously and obtain the point matching results S at different scales 1 ,S 2 ,...S N , the process can be expressed as:

[0070]

[0071] in, is the decoder corresponding to each scale, Sn represents the set of point matching results of scale n, and the point matching set of all scales is recorded as {S|S n ∈S, n=1, 2,...,N}.

[0072] like Figure 4 The figure shows the structure of the RANSAC registration parameter solution module. The correlation calculation results of each scale feature are decoded by the multi-scale matching decoder. 1 , C 2 , ..., C N , the decoder unifies its size by upsampling, for example, setting the unified size to 0.5×0.5 times the image scale, and predicting the point matching results at the unified size. Then, the point matching results output at each scale are input into the RANSAC algorithm for external point removal, and the matching internal points are used to predict the registration results.

[0073] In the network reasoning process, matching prediction networks of multiple scales work simultaneously, and the matching relationships of feature points inferred synchronously at multiple scales constitute a matching point set. In order to effectively utilize the matching internal points and reasonably eliminate the matching external points, the RANSAC algorithm is used to identify the internal and external points, eliminate the external points, and perform registration parameter solution training. Finally, the image registration perspective transformation matrix M is calculated.

[0074] Specifically, let the point set matching result set be recorded as {S|S n ∈S, n=1, 2...N}, the expression for calculating the image registration perspective transformation matrix M is:

[0075]

[0076] Where k represents the number of random sampling of the matching set S k = 0, 1, 2, ..., K, M 11 、M 12 、M 13 、M 21 、M 22 、M 23 are all elements of the matrix M, (x n ,y n )∈S n , (x′ n , y′ n )∈S n is a pair of matching points randomly sampled from the point set matching result set.

[0077] During the training process, the pixel matching results of each scale are output and the loss function constructed by the upper truncated L1 norm is used to supervise the results point by point to guide the update of network parameters. The loss function is applied to each scale of the network model at the same time, and all point matching prediction results are supervised. n , after summing, the back propagation algorithm is used to supervise the update of network parameters, and the expression of the loss function is:

[0078]

[0079]

[0080] Among them, L n represents the loss function corresponding to scale n, n = 1, 2, ..., N, N is the total number of scales, L is the total loss function, thr is the error discrimination threshold, is the true matching result corresponding to scale n, S n is the predicted matching result corresponding to scale n.

[0081] In addition, in the process of point-by-point supervision using the designed loss function, the AdamW optimization algorithm combined with cosine annealing learning rate update is used to update the network parameters, and the expression is:

[0082]

[0083] Among them, η t is the cosine annealing learning rate of the current iteration, η max , η min Respectively represent the maximum and minimum values ​​of the learning rate, [η max , η min ] defines the range of learning rate, T cur Indicates the current training iteration number, T max Represents the total number of training iterations.

[0084] S3. Perform image registration using the trained deep convolutional neural network model, output registration parameters, and obtain image registration results.

[0085] like Figure 5 The figure shows a comparison diagram of the registration effect of the image registration method proposed in the present invention and the existing image registration algorithm on multimodal data. From left to right, they are the image to be tested, the registration result using the SIFT+RANSAC registration algorithm, the registration result using the SIFT+MAGSAC registration algorithm, the registration result using the DHN registration algorithm, the registration result using the MHN registration algorithm, and the registration result using the registration algorithm proposed in the present invention. Figure 5It can be seen that the registration error ACE of the method proposed in the present invention is 3.0. Compared with other existing registration methods, the registration method of the present invention has higher registration accuracy.

[0086] like Figure 6 The figure shows the registration error statistics of the image registration method proposed in the present invention and the existing image registration algorithm on multimodal data, where the horizontal axis is the registration error ACE in pixels, and the vertical axis is the percentage of the number of training images. Figure 6 It can be seen that the registration method proposed in the present invention not only has a high registration accuracy, but also requires a small number of samples, and can achieve a high registration accuracy based on training with a small number of samples.

[0087] The present invention also discloses an electronic device, comprising: at least one processor, at least one memory, a communication interface and a bus; wherein the processor, memory, and communication interface communicate with each other through the bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to implement the aforementioned method of the present invention.

[0088] The present invention also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to implement all or part of the steps of the method described in the embodiment of the present invention. The storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and other media that can store program codes.

[0089] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be distributed to multiple network units. A person skilled in the art may select some or all of the modules according to actual needs to achieve the purpose of the solution of this embodiment without creative effort.

[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-modal image registration method based on deep multi-scale correlation and outlier removal, It is characterized in that The method comprises: Obtain multiple cross-modal image pairs and perform preprocessing to construct training images; A deep convolutional neural network model is built, and the deep convolutional neural network model is trained synchronously at multiple scales through the training images. During the training process, a loss function constrained point by point at each scale is used to supervise the update of network parameters; the matching relationship of feature points inferred synchronously at multiple scales is used to form a matching point set, and outliers are eliminated through RANSAC to perform registration parameter solution training; The image to be tested is registered through the trained deep convolutional neural network model, and the registration parameters are output to obtain the image registration result; The deep convolutional neural network model specifically includes: Multi-scale feature twin extraction module, used to extract multi-scale features from training images; Image correlation matching measurement module, used to calculate feature correlation at multiple scales simultaneously and perform image matching measurement; The RANSAC registration parameter solving module is used to decode the image matching metric results simultaneously using multiple decoders corresponding to each scale to obtain feature point matching results; the feature point matching results are combined into a point set matching result set, the RANSAC algorithm is used to identify the internal and external points, and the image registration perspective transformation matrix M is calculated; The multi-scale feature twin extraction module uses the residual module as a basic unit and forms a twin convolutional neural network with a U-net structure by using skip-layer connection to extract multi-scale features from the training image. The expression for calculating feature correlation at multiple scales simultaneously is: Among them, C n (i, j) is image I a Features and image I at scale n and position i b The correlation of features at scale n and position j, n = 1, 2, ..., N, N is the total number of scales; ReLU is the activation function, Representative image I a Features at scale n and position i, express L 2 norm, Representative image I b Features at scale n and position j, express L 2 Norm, I a with I b is a cross-modal image pair; The method of using the RANSAC algorithm to identify internal and external points and calculate the image registration perspective transformation matrix M specifically includes: Let the point set matching result set be denoted as {S|S n ∈S,n=1,2,...,N},S n Combined with the feature point matching relationship inferred by scale n, the expression for calculating the image registration perspective transformation matrix M is: Where k represents the number of random samplings of the matching set S, k = 0, 1, 2, ... K, M 11 、M 12 、M 13 、M 21 、M 22 、M 23 are all elements of the matrix M, (x n ,y n )、(x′ n , y′ n )∈S n is a pair of randomly sampled matching points.

2. According to claim 1, the cross-modal image registration method based on deep multi-scale correlation and outlier removal, It is characterized in that The pre-processing specifically includes: Using affine transformation to randomly perturb cross-modal image pairs; The cross-modal image pairs are randomly rotated and scaled synchronously, and random brightness, contrast, and chromaticity are added to the two images for data augmentation.

3. The cross-modal image registration method based on deep multi-scale correlation and outlier removal according to claim 1, It is characterized in that The expression of the loss function is: Among them, L n represents the loss function corresponding to scale n, n = 1, 2, ..., N, N is the total number of scales, L is the total loss function, thr is the error discrimination threshold, is the true matching result corresponding to scale n, S n is the predicted matching result corresponding to scale n.

4. The cross-modal image registration method based on deep multi-scale correlation and outlier removal according to claim 1, It is characterized in that During the training process, the AdamW optimization algorithm combined with the cosine annealing learning rate update is used to update the network parameters. The expression is: Among them, η t is the cosine annealing learning rate, η max , η min Respectively represent the maximum and minimum values ​​of the learning rate, T cur Indicates the current training iteration number, T max Represents the total number of training iterations.

Citation Information

Patent Citations

  • Multi-modal image registration method and system based on depth global features

    CN113223068A

  • Reference image guided super-resolution method based on dense matching and adaptive fusion

    CN111915484A

  • Multi-view remote sensing image registration method and system

    CN113012208A

  • Unsupervised change detection method and system for homologous or heterologous remote sensing image

    CN113901900A

  • Multi-temporal remote sensing image registration method and system based on multi-scale receptive field

    CN114022522A