Heterogeneous image matching method based on structural orientation similarity

By extracting the structure tensor and utilizing PCA and FFT slice search algorithms, the problems of nonlinear gray-level distortion and noise interference in heterogeneous image matching are solved, achieving efficient and accurate heterogeneous image matching and improving adaptability and computation speed in weak feature scenes.

CN115239979BActive Publication Date: 2024-08-23CHINESE PEOPLES LIBERATION ARMY UNIT 96901
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210887944.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2024-08-23
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

Existing technologies suffer from nonlinear grayscale distortion and strong noise interference in heterogeneous image matching, which leads to a decrease in the distinguishing ability of matching algorithms and an increase in computational load, and makes it difficult to perform effective matching in weak feature scenes.

Method used

A heterogeneous image matching method based on structural orientation similarity is adopted. By extracting the structural tensors of the template image and the reference image, PCA is used to enhance the structural orientation, and FFT slice search algorithm is combined to perform similarity calculation, thereby reducing the amount of computation and improving the calculation speed.

Benefits of technology

It effectively solves the problems of nonlinear grayscale distortion and strong noise interference in heterogeneous images, improves matching accuracy and calculation speed, and enhances adaptability in weak feature scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115239979B
    Figure CN115239979B
Patent Text Reader

Abstract

The present invention discloses a heterogeneous image matching method based on structural direction similarity, belonging to the field of image matching technology. The method comprises: S1, extracting structural tensors of a template image and a reference image; S2, correlating local structural tensors as a whole based on PCA to obtain structural directions enhanced by PCA; S3, finding the most relevant points between the template image and the reference image based on the similarity of structural directions, and determining matching points. At the same time, the method discloses similarity calculation based on structural directions by using an FFT slice search algorithm based on the sine and cosine of the structural directions of the template image and the reference image. The method alleviates the problems of nonlinear grayscale distortion and strong noise interference of heterogeneous images; has a fast calculation speed; realizes accurate matching of heterogeneous images, improves the positioning accuracy of scene matching, and reduces the difficulty of reference image assurance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image matching and recognition, and in particular relates to a heterogeneous image matching method based on structural direction similarity. Background Art

[0002] The existing aircraft system uses scene matching as an auxiliary navigation, combined with the inertial navigation system and other navigation methods to improve the performance of the combined navigation system. In order to enable the aircraft to have the ability to work all day and all weather, more and more types of image sensors are applied to scene matching. Commonly used are: visible light sensors, infrared sensors and synthetic aperture radar SAR, thus forming visible light scene matching auxiliary navigation, infrared scene matching auxiliary navigation and SAR scene matching auxiliary navigation.

[0003] Based on the visible light image, the key features of the target image are extracted as templates, which are used to match and identify the acquired infrared, radar and other target images. However, due to the different physical mechanisms of imaging, there are complex nonlinear grayscale distortions between heterogeneous images, which will seriously reduce the similarity of the same object between heterogeneous images. Although the adaptability to grayscale distortion can be improved by improving the measurement criteria, it will also reduce the ability of the matching algorithm to distinguish differences and increase the amount of calculation. In addition, a special nonlinear grayscale distortion - grayscale inverse mapping, will reverse the direction of the image structure, which also brings difficulties to the heterogeneous image matching method based on image structure.

[0004] In addition, due to the strong noise interference introduced by the sensor or transmission, the image information is destroyed, reducing the reliability of heterogeneous image matching. Infrared and SAR images often contain sensor or transmission noise, which often reduces the reliability of image matching in two ways. On the one hand, due to the randomness of noise, it will reduce the correlation between the grayscale images of the same object, which will have an adverse effect on the difference / similarity measurement. On the other hand, because both gradient and phase features are very sensitive to noise, it is difficult for intrinsic images based on gradient or phase to effectively extract image structure information in the case of severe noise. Summary of the invention

[0005] The purpose of the present invention is to provide a heterogeneous image matching method based on structural direction similarity, to solve the problems of difficulty in ensuring the reference image, insufficient adaptability to weak feature scenes, nonlinear grayscale distortion and strong noise interference of heterogeneous images; as well as the problems of slow matching speed and low matching accuracy.

[0006] In order to achieve the above object, the present invention adopts the following technical scheme.

[0007] A heterogeneous image matching method based on structural direction similarity includes the following steps: S1, extracting structural tensors of a template image and a reference image; the template image is an infrared or SAR real-time image, and the reference image is a visible light image; Gaussian filtering is performed on the template image and the reference image, and then the image gradient is extracted using the Sobel operator to obtain the structural tensors of the template image and the reference image; S2, correlating local structural tensors with each other as a whole based on PCA to obtain the structural direction enhanced by PCA; S3, finding the most relevant point between the template image and the reference image based on the similarity of the structural direction, and determining the matching point; step S3 specifically includes, S31, calculating the similarity of the structural direction of the template image and the reference image;

[0008] (1)

[0009] Wherein, S is the similarity of the structural direction of each pixel between the template image and the reference image, α represents the structural direction of each pixel in the template image, and β represents the structural direction of each pixel in the reference image; the similarity of the structural direction of the template image and the reference image is compared pixel by pixel; S32: repeat step S31 to calculate the similarity of the structural directions of multiple template images and the reference image, and take the pixel with the largest S value as the matching point.

[0010] Furthermore, in step S1, the image gradient is extracted using the Sobel operator, and the parameter of gradient extraction is s. The relationship between s and the Gaussian filter window radius r is r=3s+1. s is adjusted according to the noise situation. The greater the noise, the greater s, and vice versa.

[0011] Furthermore, the structural direction in step S2 is specifically:

[0012] (2)

[0013] G xx Represents the square of the pixel horizontal gradient, G yy Represents the square of the vertical gradient of the pixel, G xy Represents the product of the horizontal gradient and the vertical gradient of a pixel.

[0014] Furthermore, in step S3, the similarity calculation formula of the structural direction can be approximated by the following formula:

[0015] (3)

[0016] Among them, sinα and sinβ are the sines of the structural directions of the template image and the reference image respectively; cosα and cosβ are the cosines of the structural directions of the template image and the reference image respectively.

[0017] (4)

[0018] (5)

[0019] Similarly, sinβ and cosβ can be calculated according to formulas (4) and (5).

[0020] Furthermore, the similarity of the structural direction is calculated by the FFT slice search algorithm, specifically: the image size of the template image is used as the slice window, the correlation item C1 is calculated for the sine of the structural direction of the template image and the sine of the structural direction of the reference image, and the correlation item C2 is calculated for the cosine of the structural direction of the template image and the cosine of the structural direction of the reference image. The calculation of C1 and C2 is a convolution operation, which is implemented by two Fourier transforms.

[0021] Furthermore, in order to improve the accuracy of the heterogeneous image matching method, after step S3, the obtained matching points are used as reference points, the size of the reference image is reduced, and matching is performed again.

[0022] Compared with the existing heterogeneous image matching methods, the heterogeneous image matching method based on structural direction similarity of the present invention has the following beneficial effects:

[0023] The heterogeneous image matching method of the present invention aims at the problem of nonlinear grayscale distortion and strong noise interference of heterogeneous images caused by changes in sensor types; the similarity calculation method can solve the problem of direction reversal of image structure;

[0024] By approximating the calculation of image structure direction similarity to the calculation of structure direction sine and cosine, the FFT acceleration algorithm is used to reduce the amount of calculation and improve the calculation speed.

[0025] The heterogeneous image matching method of the present invention extracts the stable structural directions of the infrared / radar template image and the visible light reference image as heterogeneous features, compares the feature similarities of the heterogeneous images, achieves accurate matching of the heterogeneous images, effectively improves the scene matching positioning accuracy, reduces the difficulty of reference image guarantee, and enhances the adaptability to weak feature scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a flow chart of the image matching method of the present invention.

[0027] Figure 2 Grayscale inverse mapping between heterogeneous images

[0028] Figure 3 Template image matching results based on structure orientation

[0029] Figure 4 Infrared images and SAR images under noise interference

[0030] Figure 5 Test results of five template matching algorithms

[0031] Figure 6The impact of noise interference on the accuracy of matching algorithm. DETAILED DESCRIPTION

[0032] The specific implementation of the heterogeneous image matching method based on slice search acceleration and structural direction similarity of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0033] like Figure 1 The heterogeneous image matching method based on structural direction similarity of the present invention comprises the following specific steps:

[0034] S1, extract the structure tensor of the template image and the reference image;

[0035] The reference image is a visible light image, and the template image is an infrared or SAR real-time image;

[0036] First, the template image and the reference image are Gaussian filtered, and then the image gradient is extracted using the Sobel operator to obtain the template image and the reference image structure tensor.

[0037] The sobel operator is used to extract the image gradient. Specifically, the gradient extraction parameter is s. The relationship between s and the radius r of the Gaussian filter window is r=3s+1. s is adjusted according to the noise situation. The greater the noise, the greater s, and vice versa.

[0038] Thus, the following two-dimensional tensor can be obtained for each pixel:

[0039] (1)

[0040] The t1, t2, and t3 are the values ​​of the tensor T in two dimensions. x Represents the horizontal gradient of the current pixel, G y is the vertical gradient of the current pixel.

[0041] The obtained two-dimensional tensor can be decomposed into eigenvectors according to the following formula:

[0042] (2)

[0043] Among them, λ i and e i They are the eigenvalue and eigenvector of a two-dimensional matrix, i=1 or 2; λ1-λ2 represents the curve significance of the tensor. The larger the λ1-λ2 is, the more likely the pixel corresponding to the tensor is on the curve structure. For a two-dimensional image, the curve structure usually corresponds to an edge feature. According to the geometric interpretation of tensors and tensor decomposition, tensors can be divided into strip tensors (λ2=0) and circular tensors (λ1=λ2) according to the eigenvalues ​​λ1 and λ2. An arbitrary tensor can be decomposed into a linear combination of strip tensors and circular tensors; T is the structural tensor of the current pixel.

[0044] S2, based on PCA (principal component analysis), the local structure tensors are correlated with each other from the whole, and the structure direction after PCA enhancement is obtained;

[0045] The PCA is to obtain the vertical direction of the local gradient and direction to obtain a stable structural direction, that is, to obtain the structural direction after PCA enhancement.

[0046] By analyzing the calculation process of heterogeneous features, it can be found that each structure tensor of the original image can only reflect the information within a small window, which limits the directional distinguishability of the structure tensor and the ability to highlight the image structure. PCA (Principal Component Analysis) can correlate local structure tensors as a whole, thereby more effectively highlighting the image structure.

[0047] Since noise interference is random, it is believed that the gradient and direction are not easily affected by noise interference. PCA is to obtain the vertical direction of the local gradient and direction, so a stable structural direction can be obtained. Let g i is the local gradient vector, q is the vector required by PCA, and g i The sum direction is perpendicular, and the least squares equation is constructed as follows according to the minimization of the orthogonal product:

[0048] (3)

[0049] in:

[0050] (4)

[0051] represents the accumulation of the neighborhood W, and the integral image can be used to accelerate the summation. The above equation can be used to obtain q according to the SVD decomposition process:

[0052] (5)

[0053] in, , , calculated:

[0054] (6)

[0055] (7)

[0056] (8)

[0057] (9)

[0058] After obtaining the eigenvalues ​​λ1, λ2 and eigenvectors v1, v2 of C, use , the following equation can be proved using the tangent double angle formula:

[0059] (10)

[0060] The structural direction after PCA enhancement is obtained, which is perpendicular to the local gradient and direction and is less susceptible to noise interference.

[0061] S3. Find the most relevant points between the template image and the reference image based on the similarity of the structural direction and determine the matching points.

[0062] S31: Calculation of similarity between the structural directions of the template image and the reference image;

[0063] By performing heterogeneous feature enhancement on each pixel in the image, the enhanced structural direction of each pixel can be obtained (perpendicular to the local gradient and direction). During matching, the structural direction similarity of the template image and the reference image can be compared pixel by pixel to determine the matching position. The similarity of the structural direction of each pixel is calculated using the following formula:

[0064] (11)

[0065] Among them, α represents the structural direction of each pixel in the template image, and β represents the structural direction of each pixel in the reference image. Through the analysis of the formula of the similarity measurement function, it can be seen that the closer the α and β directions are to being parallel, the larger the S value (similarity value) is, the more similar they are. The smaller the S value (similarity value), the closer the structural direction of the pixel in the template image is to being orthogonal to the structural direction of the pixel in the reference image, the greater the difference is. This can also effectively solve the grayscale flipping problem of heterogeneous images. Figure 2 Comparing the left and right pictures in the middle, we can see the grayscale inverse mapping of heterogeneous images.

[0066] S32: Repeat step S31 to calculate the similarity between the structural directions of multiple template images and the reference image, and take the pixel with the largest S value as the matching point.

[0067] Since the structural direction of each pixel in each template image needs to be calculated with the structural direction of each pixel in the reference image, the amount of calculation is huge. In order to improve the search speed, the present invention also proposes a preferred implementation.

[0068] Based on the similarity of waveforms, cosine transform can be used Approximately replace formula (11) , further, considering that in the calculation based on the structural direction similarity (i.e., in Formula 11), if there is a situation where the similarity is very high, that is, the α and β directions are close to parallel, the difference between α and β tends to zero, even if the angle is enlarged by 2 times, the difference between 2α and 2β also tends to zero, and the similarity calculation result hardly changes much at this time. Therefore, if the angle in the similarity calculation is enlarged by two times, the similarity calculation result will not change substantially. At this time, the structural direction similarity can be approximately calculated by the following formula:

[0069] (12)

[0070] Among them, sinα and sinβ are the sines of the structural directions of the template image and the reference image respectively; cosα and cosβ are the cosines of the structural directions of the template image and the reference image respectively. The calculation method is obtained by transforming (10):

[0071] (13)

[0072] (14)

[0073] Similarly, sinβ and cosβ can be calculated according to formulas (13) and (14).

[0074] During traversal calculation, the FFT slice search algorithm is used to accelerate the processing and improve the algorithm calculation speed.

[0075] The FFT slice search algorithm is specifically as follows: the image size of the template image is used as the slice window, the related item C1 is calculated for the sine of the template image structure direction and the sine of the reference image structure direction, and the related item C2 is calculated for the cosine of the template image structure direction and the cosine of the reference image structure direction. The calculation of C1 and C2 is a convolution operation, and the convolution operation is implemented by using two Fourier transforms, thereby improving the operation speed.

[0076] The process is as follows:

[0077] a*b=IFFT(AB) (15)

[0078] Where A=FFT(t), B=FFT(b), * represents convolution operation, a and b are operation matrices, and FFT and IFFT represent forward and inverse Fourier transforms, respectively.

[0079] In specific implementation, if the size of the template image is N×N and the size of the reference image is M×M, the computational complexity of the frequency domain convolution based on the fast Fourier transform is O(2M 2 logM), the complexity of directly performing spatial domain correlation is O(M 2 N 2 ), so when the template is large, the convolution operation based on fast Fourier transform can effectively reduce the amount of calculation.

[0080] Furthermore, Figure 3The selected positions of 25 templates on a SAR image and their matching positions on a visible light image are given. The left is the selected position of the template on the SAR, and the right is the matching position of the template on the visible light image. Relative to the selected position, there is only a small degree of deviation between the matching positions. The reason for this phenomenon is that there is local distortion between the two images. The aforementioned matching algorithm of the present invention is a pixel-level translation search and cannot fully adapt to this local distortion. The aforementioned method can provide reliable coarse matching, and more accurate positioning can narrow the window for accurate registration based on the aforementioned matching algorithm.

[0081] That is, the present invention also provides a priority mode of the matching method, that is, in order to improve the accuracy of the heterogeneous image matching method, on the basis of the above steps, after S3, the obtained matching points are used as reference points, the size of the reference image is reduced, and matching is performed again in a small range window to achieve the purpose of accurate alignment.

[0082] The advantages of the present invention are analyzed from the perspective of noise adaptability and algorithm calculation speed; specifically:

[0083] 1. Comparison of noise adaptability:

[0084] Using 18 pairs of heterogeneous images, five template matching algorithms based on mutual information (MI), phase field (PF), gradient field (GF), phase consistency (PC) and the algorithm of the present invention (ST) were tested and compared. The mutual information algorithm directly matches the grayscale image; the extraction of phase field and phase consistency is based on Peter Kovesi's program implementation, and its algorithm uses a multi-scale extraction strategy and can better adapt to image noise. The test images are mainly test pairs consisting of visible light and SAR or infrared images. Figure 4 The infrared image (left) and SAR image (right) under noise interference are shown.

[0085] The test images were all calibrated to look straight down, with the same zoom level, and only translation search was performed for matching. The test program used the visible light image as the reference image and the SAR or infrared image as the template mother image. Each template mother image extracted two templates of different sizes from 25 different positions, 96×96 and 160×160 respectively. In order to test the adaptability of the matching algorithm to noise, speckle noise (signal-to-noise ratio of 2.67) was added to the template mother image and the above matching test was repeated. Therefore, a total of 4500 matching tests were performed on the five matching algorithms.

[0086] like Figure 5 Shown are the accuracy rates of five template matching algorithms. Figure 6The effect of noise on the matching accuracy. It can be seen from the figure that the greater the percentage of accuracy drop caused by noise, the more sensitive the template matching algorithm is to noise. The template matching algorithm based on mutual information has the most serious drop in accuracy, with a drop rate of 42.2%. The second is the template matching algorithm based on gradient field (GF), with a drop rate of 29.7%. The template matching algorithm proposed in this paper has the smallest drop rate, which is 12.8%.

[0087] 2. Comparison of calculation speed of matching algorithms:

[0088] This embodiment conducts a comparative test on the calculation speeds of five template matching algorithms.

[0089] Template matching algorithms based on gradient field and phase field can use similarity cosine and measurement criteria for matching. Template matching algorithms based on phase consistency use NCC as the measurement criterion.

[0090] The processor used in the test platform has a main frequency of 2.4GHZ and a memory of 4G. The algorithm program is implemented in C++. Table 1 shows the size of the benchmark graph and template graph used in the test, and the size of their corresponding search space. Table 2 shows the calculation speed of the five algorithms.

[0091] Table 1 Search space of templates of different sizes

[0092]

[0093] Table 2 Computation time of template matching algorithm

[0094]

[0095] The results show that the calculation speed of the algorithm based on phase consistency and the algorithm proposed by this method is much faster than that of the other three algorithms, and their calculation time does not increase with the increase of template size. This is because the measurement criteria of these two algorithms can be written in convolution form, so that FFT can be used for fast matching, but the phase consistency feature is more sensitive to noise than the structural tensor feature.

[0096] The present invention has been described in detail above in conjunction with specific embodiments. The above is only a preferred embodiment of the present invention, and the present invention should not be limited to the contents disclosed in the embodiment and the accompanying drawings. Any equivalent or modification completed without departing from the spirit disclosed in the present invention shall fall within the scope of protection of the present invention.

Claims

1. A heterogeneous image matching method based on structural direction similarity, characterized in that: The following steps are involved: S1, extract the structure tensor of the template image and the reference image; The template image is an infrared or SAR real-time image, and the reference image is a visible light image; Perform Gaussian filtering on the template image and the reference image, and then use the sobe1 operator to extract the image gradient to obtain the structure tensor of the template image and the reference image; S2, based on PCA, the local structure tensors are correlated with each other from the whole to obtain the structure direction after PCA enhancement; S3, based on the similarity of the structural direction, find the most relevant point between the template image and the reference image and determine the matching point; Step S3 specifically includes: S31, calculating the similarity of the structural directions of the template image and the reference image; Among them, S is the similarity of the structural direction of each pixel in the template image and the reference image, α represents the structural direction of each pixel in the template image, and β represents the structural direction of each pixel in the reference image; the similarity of the structural direction of the template image and the reference image is compared pixel by pixel; The similarity calculation formula of structural direction can be approximated by the following formula: S = sinαsinβ+cosαcosβ(2) Among them, sinα and sinβ are the sines of the structural directions of the template image and the reference image respectively; cosα and cosβ are the cosines of the structural directions of the template image and the reference image respectively. Similarly, sinβ and cosβ can be calculated according to formulas (3) and (4); S32: Repeat step S31 to calculate the similarity between the structural directions of multiple template images and the reference image, and use the pixel with the largest S value as the matching point.

2. The heterogeneous image matching method based on structural direction similarity according to claim 1, characterized in that: In step S1, the sobel operator is used to extract the image gradient. The parameter of gradient extraction is s. The relationship between s and the radius r of the Gaussian filter window is r=3s+1. s is adjusted according to the noise situation. The greater the noise, the greater s, and vice versa.

3. The heterogeneous image matching method based on structural direction similarity according to claim 1, characterized in that: The structural direction in step S2 is specifically: Gxx represents the square of the horizontal gradient of the pixel, Gyy represents the square of the vertical gradient of the pixel, and Gxy represents the product of the horizontal gradient and the vertical gradient of the pixel.

4. The heterogeneous image matching method based on structural direction similarity according to claim 1, characterized in that: The similarity calculation of the structural direction is performed through the FFT slice search algorithm, specifically: the image size of the template image is used as the slice window, the correlation item C1 is calculated for the sine of the structural direction of the template image and the sine of the structural direction of the reference image, and the correlation item C2 is calculated for the cosine of the structural direction of the template image and the cosine of the structural direction of the reference image. The calculation of C1 and C2 is a convolution operation, which is implemented by two Fourier transforms.

5. The heterogeneous image matching method based on structural direction similarity according to claim 1, characterized in that: In order to improve the accuracy of the heterogeneous image matching method, after step S3, the obtained matching points are used as reference points, the size of the reference image is reduced, and matching is performed again.