Dimensionality reduction parallel image feature matching algorithm integrating principal component analysis and double stack filtering
Through the combination of principal component analysis and dual-stack filtering algorithm, high-dimensional feature points are projected into low-dimensional space and purified, which solves the problems of low efficiency and poor real-time performance in high-dimensional feature point matching, and realizes the high efficiency of the vehicle panoramic surround view system. Feature point matching.
Patent Information
- Application Number
- CN202311202569.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-17
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-09-17
AI Technical Summary
The existing technology has the problems of low matching efficiency and poor real-time performance in high-dimensional feature point matching, and it is difficult to meet the real-time and matching accuracy requirements of the vehicle-mounted panoramic surround view system for local road image splicing.
The principal component analysis method is used to project the feature point set into a low-dimensional space, and the squared Euclidean distance is used for ranking estimation. The feature points are purified using the double-stack filtering algorithm, and a parallel structure is used to improve the matching speed.
It significantly reduces the computational complexity of the matching process, improves the matching speed and accuracy, meets the real-time and accuracy requirements of the vehicle panoramic view system, and achieves efficient high-dimensional feature point matching.
Smart Images

Figure CN117218389B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image feature matching, and in particular to a dimensionality reduction parallel image feature matching algorithm integrating principal component analysis and double-stack filtering. Background Art
[0002] The on-board panoramic view system can significantly improve the intelligent vehicle's perception of the surrounding road environment and driving safety by stitching together local road images captured by multiple on-board camera points and outputting a 360° panoramic view image centered on the current vehicle in real time. The core of the on-board panoramic view technology lies in the efficient matching of high-dimensional feature points between different local road images. Considering the real-time requirements of intelligent driving for road environment perception, how to efficiently and accurately match the massive high-dimensional feature points between local road images has become a hot spot and difficulty in the current intelligent driving field.
[0003] At present, some scholars have carried out research on feature matching of high-dimensional images, which can be roughly divided into the following three categories:
[0004] (1) Brute force matching method, that is, by comparing the similarity of the feature points to be matched with the reference feature points one by one, the reference feature points with the highest similarity are found as the best match. Tian Jiahe et al. adopted a brute force matching method based on Euclidean distance to compare the similarity of the feature points to be matched, and determined the matching point pairs based on the ratio test of the dynamic threshold, which effectively improved the matching robustness. Xie Hongmei et al. proposed a two-way brute force matching strategy. For the feature point pairs to be matched, the distance ratio between their respective nearest neighbors and second nearest neighbors is calculated, and the threshold is adaptively adjusted according to the change in the number of point pairs to be matched, which effectively solves the "one-to-many" matching problem. This type of algorithm can quickly obtain accurate matching when the number of features is small and the dimension is low, but when faced with high-dimensional feature point matching problems, the matching efficiency of this type of algorithm is limited.
[0005] (2) Feature dimensionality reduction method, that is, by converting the high-dimensional feature representation of the image into a low-dimensional feature representation, the computational complexity is reduced and redundant information is removed to achieve more effective and accurate image feature matching. Zhang T et al. introduced a circular area descriptor extraction method based on the SURF algorithm, reduced the dimension of the descriptor, and used the minimum Euclidean distance criterion for matching, which effectively improved the matching speed. Li Xuan et al. proposed a feature dimensionality reduction method based on local linear embedding, which maintained the local linear relationship of the features while reducing the dimension, and enhanced the robustness during deformation and rotation matching. Although such algorithms can optimize the dimension of feature descriptors and improve matching speed to a certain extent, the degree of dimensionality reduction is limited and is not suitable for massive high-dimensional feature points between road images.
[0006] (3) Deep learning matching algorithm, that is, to obtain the matching rules between high-dimensional feature points through large-scale data learning, so as to achieve efficient and accurate feature point matching. Duan Yunshan et al. used CNN based on homography transformation to extract feature points, and used a neural network with a cross-attention mechanism to match high-dimensional feature points, which effectively solved the problem of poor feature matching under large parallax and distortion transformation. Song Jiaxuan et al. combined neural network to fuse image grayscale information to form a feature description grid, and used the same-name point to constrain the matching area for group matching, which effectively solved the matching problem caused by the sudden change of image cross-view feature content. This type of algorithm can automatically learn feature representation and process high-dimensional feature relationships, but feature matching based on artificial intelligence requires large computing resources, has poor real-time performance, is sensitive to abnormal data, and is prone to overfitting.
[0007] It can be seen that the current algorithms for high-dimensional feature matching have problems of low matching efficiency and poor real-time performance, and there is still a lot of room for improvement before they can be applied in vehicle-mounted panoramic surround view systems. In order to meet the requirements of the vehicle-mounted panoramic surround view system for local road image stitching in terms of real-time performance and matching accuracy, a new image feature matching algorithm needs to be proposed to improve the matching speed of image feature points and ensure the accuracy of feature matching. Summary of the invention
[0008] The technical problem to be solved by the present invention is to provide a dimensionality reduction parallel image feature matching algorithm that integrates principal component analysis and double-pile filtering in response to the deficiencies of the above-mentioned prior art. The algorithm uses principal component analysis to project the feature point set into a low-dimensional space, and uses the squared Euclidean distance with lower computational cost for ranking estimation to perform feature point matching; in order to eliminate mismatching, a double-pile filtering algorithm is used to purify the feature points to ensure the accuracy of feature matching; a parallel structure is adopted, which can be easily extended to multi-core systems, thereby improving the matching speed of image feature points and meeting the real-time requirements of panoramic view technology for local road image fusion.
[0009] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0010] A dimensionality reduction parallel image feature matching algorithm integrating principal component analysis and double-stack filtering comprises the following steps:
[0011] Step 1: The two images to be matched are recorded as and image The feature points in the image are recorded as query feature points. The feature points in are recorded as reference feature points;
[0012] Step 2: Use principal component analysis to transform the image in the original space The reference feature point set R and image in The query feature point set Q in is projected into the low-dimensional PCA space, and the projected reference feature point set R is obtained respectively. ′ and query feature point set Q ′ ;
[0013] Step 3: Determine whether there is a query feature point q in the query feature point set Q in the reference feature point set R. i Correctly matched reference feature points:
[0014] Step 3.1: In the PCA space, the reference feature point set R ′ Divide into w subsets; query feature point q i The projection point projected to the low-dimensional PCA space is recorded as the query feature point q i ′ ;
[0015] Step 3.2: Use the double-heap filtering algorithm to filter the reference feature points in the w subsets respectively, and generate the k nearest neighbor results of each subset;
[0016] Step 3.3, add the k nearest neighbor results of each subset to the maximum heap in turn, and adjust the maximum heap so that the k nearest neighbor results are generated in the maximum heap;
[0017] Step 3.4: Select the k nearest neighbor results in the maximum heap that match the query feature point q i ′ The nearest reference feature point and calculate its difference with the query feature point q i ′ If the pixel distance is less than or equal to the preset pixel, the point corresponding to the reference feature point in the original space is determined to be the query feature point q i Correctly matched reference feature points, otherwise, it is determined that there is no reference feature point set R that matches the query feature point q i Correctly matched reference feature points;
[0018] Step 4: According to the method in step 3, determine whether each query feature point in the query feature point set Q has a correctly matched reference feature point, and then obtain all correct matching point pairs to achieve image With image feature matching.
[0019] As a further improved technical solution of the present invention, the step 3.2 is specifically as follows:
[0020] Step 3.2.1: In the PCA space, calculate all reference feature points and query feature points q′ in a single subset iThe squared Euclidean distance between the αk nearest neighbors is sorted from small to large to form a filter stack; in the original space, all reference feature points in the subset are calculated to be different from the query feature point q i The Euclidean distance value between them is sorted from small to large to form a verification pile;
[0021] Step 3.2.2, filter a single reference feature point: In the PCA space, calculate the correlation between a reference feature point and the query feature point q′ i If the squared Euclidean distance is greater than or equal to the maximum distance in the filter stack, the reference feature point is discarded; otherwise, the squared Euclidean distance between the reference feature point and the query feature point q is calculated in the original space. i If the Euclidean distance value between them is greater than or equal to the maximum distance value in the verification heap, the reference feature point is discarded; otherwise, the squared Euclidean distance value calculated in the PCA space in step 3.2.2 is inserted into the filter heap to replace the maximum distance value in the filter heap and re-sorted to obtain a new filter heap, and the original filter heap is replaced with the new filter heap, and the Euclidean distance value calculated in the original space in step 3.2.2 is inserted into the verification heap to replace the maximum distance value in the verification heap and re-sorted to obtain a new verification heap, and the original verification heap is replaced with the new verification heap;
[0022] Step 3.2.3, return to step 3.2.2, filter each reference feature point in the subset respectively, obtain the latest filter stack, sort according to the distance values in the latest filter stack, select the squared Euclidean distance values corresponding to the k nearest neighbors, which is the k nearest neighbor result of the subset;
[0023] Step 3.3.4: Return to step 3.2.1, and filter the reference feature points in the w subsets according to the methods of steps 3.2.1 to 3.2.3, respectively, to generate the k nearest neighbor results for each subset.
[0024] As a further improved technical solution of the present invention, the step 3.3 is specifically as follows: the initial maximum heap is an empty set, the k nearest neighbor results of each subset are added to the maximum heap in turn, the distance values in the maximum heap are compared and the maximum heap is continuously adjusted, so that the final maximum heap retains the k nearest neighbor results, that is, the squared Euclidean distance values corresponding to the k nearest neighbors.
[0025] As a further improved technical solution of the present invention, the preset pixel value in step 3.4 is 1.5 pixels.
[0026] As a further improved technical solution of the present invention, it also includes:
[0027] Step 5: Determine whether there is a query feature point q in the query feature point set Q in the reference feature point set R. i Reference feature points for coarse matching:
[0028] Step 5.1: In the PCA space, divide the reference feature point set R′ into w subsets; query feature point q i The projection point projected to the low-dimensional PCA space is recorded as the query feature point q′ i ;
[0029] Step 5.2: Calculate all reference feature points and query feature points q in a single subset i ′ The squared Euclidean distance is used to determine whether there is a feature point q in the subset that matches the query feature point q according to the ratio of the nearest neighbor distance to the next nearest neighbor distance. i ′ Reference feature points for rough matching;
[0030] Step 5.3: According to the method in step 5.2, determine whether there is a feature point q in each subset that matches the query feature point q. i ′ Roughly matched reference feature points; if none of them exist, it is determined that there is no feature point in the reference feature point set R that matches the query feature point q i The reference feature point of the rough match; otherwise, obtain the query feature point q i ′ All reference feature points of rough matching are selected from all the reference feature points obtained to match the query feature point q i ′ The nearest reference feature point, the corresponding point in the original space is used as the query feature point q i rough matching points;
[0031] Step 6: According to the method of step 5, it is determined whether each query feature point in the query feature point set Q has a coarse matching reference feature point, and then all coarse matching point pairs are obtained;
[0032] Step 7: Calculate the matching accuracy, which is the percentage of correct matching point pairs to the total matching point pairs, where the total matching point pairs are the coarse matching point pairs.
[0033] As a further improved technical solution of the present invention, in the step 5.2, it is determined whether there is a feature point q in the subset corresponding to the query feature point q according to the ratio of the nearest neighbor distance to the next nearest neighbor distance. i ′ The reference feature points for coarse matching are:
[0034] The formula (1) for the ratio of the nearest neighbor distance to the next nearest neighbor distance is:
[0035]
[0036] Among them, d qA Represents the query feature point q i ′ The squared Euclidean distance between the nearest reference feature point, d qB Represents the query feature point q i ′ The squared Euclidean distance between the reference feature point and the next closest one, is the distance ratio threshold. If formula (1) is satisfied, then the query feature point q i ′ The closest reference feature point is recorded as i ′ The reference feature point for rough matching; otherwise, there is no query feature point q in the subset. i ′ Reference feature points for coarse matching.
[0037] As a further improved technical solution of the present invention, the step 2 is specifically as follows:
[0038] Step 2.1, the feature descriptors of all reference feature points and query feature points in the original space are combined into a matrix S, and the eigenvalues and eigenvectors of the matrix S are obtained by using the singular value decomposition method, and the number of principal components c corresponding to the cumulative contribution rate is obtained according to the eigenvalues and the preset value of the cumulative contribution rate;
[0039] Step 2.2, select the eigenvectors corresponding to the first c largest eigenvalues according to the number of principal components c, and form a projection matrix P with the selected eigenvectors;
[0040] Step 2.3: According to the projection matrix P, the image in the original space The reference feature point set R and image in The query feature point sets Q in are projected into the low-dimensional PCA space respectively.
[0041] As a further improved technical solution of the present invention, in step 2.1, the preset value of the cumulative contribution rate is a preset range value of the cumulative contribution rate, and the range value of the number of principal components c corresponding to the preset range value of the cumulative contribution rate is obtained;
[0042] According to the method of steps 3-4 and according to different values of the number of principal components c, the number of correct matching point pairs between the two images to be matched is calculated;
[0043] Set the evaluation index, evaluate the matching performance corresponding to different values of the number of principal components c according to the evaluation index, select the value of the number of principal components c corresponding to the optimal matching performance as the final value of the number of principal components c used in step 2 to calculate the projection matrix P, and finally obtain all the correct matching point pairs between the two images.
[0044] The beneficial effects of the present invention are:
[0045] The present invention proposes a high-performance dimensionality reduction parallel matching algorithm that integrates principal component analysis and double-stack filtering. The feature point set is projected into a low-dimensional space through principal component analysis, and the ranking is estimated using squared Euclidean distance, which effectively reduces the computational complexity in the matching process. At the same time, in order to ensure the accuracy of feature matching, the algorithm of the present invention uses a double-stack filtering algorithm to purify the matching point pairs. In addition, the algorithm of the present invention also adopts a parallel structure, fully utilizes computing resources, and improves the matching speed of the overall algorithm. From the experimental results, the algorithm of the present invention has obvious advantages over traditional image feature matching algorithms in terms of total matching time, matching accuracy, and matching error root mean square. In summary, the algorithm of the present invention has good matching real-time performance while taking into account the matching accuracy, and can be applied to the efficient matching of high-dimensional feature points between local road images. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 Schematic diagram of three-dimensional feature points and their projection in PCA space.
[0047] Figure 2 Schematic diagram of the mismatch phenomenon.
[0048] Figure 3 Schematic diagram of the double-heap filtering algorithm.
[0049] Figure 4 It is a multi-core parallel matching strategy diagram.
[0050] Figure 5 Schematic diagram of the impact of parameters c and α on algorithm performance.
[0051] Figure 6 Schematic diagram of the impact of the number of divided subsets on algorithm performance.
[0052] Figure 7 This is a schematic diagram of the comparison results of matching time of different algorithms.
[0053] Figure 8 This is a schematic diagram of the comparison results of matching accuracy of different algorithms.
[0054] Fig. 9 (a) is a schematic diagram of the query image.
[0055] Fig. 9(b) is a schematic diagram of the reference image.
[0056] Fig. 9 (c) is a schematic diagram of the matching effect of the SIFT algorithm.
[0057] Fig. 9 (d) is a schematic diagram of the matching effect of the SURF algorithm.
[0058] Fig. 9 (e) is a schematic diagram of the matching effect of the SUPD algorithm.
[0059] Fig.10 Schematic diagram of the comparison results of the root mean square matching errors of different algorithms. DETAILED DESCRIPTION
[0060] The specific embodiments of the present invention are further described below according to the accompanying drawings:
[0061] Based on the SURF algorithm, this paper provides a dimensionality reduction parallel image feature matching algorithm that integrates principal component analysis and double heap filtering, namely the SUPD (SURF combining PCA and DHF) algorithm. In order to solve the computational complexity caused by the high-dimensional descriptors of the traditional SURF algorithm, the SUPD algorithm uses principal component analysis (PCA) to project the feature point set into a low-dimensional space, and uses the square Euclidean distance (SED) with lower computational cost for ranking estimation to match feature points. At the same time, in order to eliminate mismatching, the SUPD algorithm also uses the double heap filter (DHF) algorithm to purify the feature points to ensure the accuracy of feature matching. Since the SUPD algorithm adopts a parallel structure, it can be easily extended to multi-core systems to improve the matching speed of image feature points and meet the real-time requirements of panoramic surround view technology for local road image fusion.
[0062] 1. System model:
[0063] Consider the neighboring vehicle camera point L i and L j Local road image captured at time t and The matching process. Definition is time t The middle number is k i feature points, then the image The feature point set in can be expressed as set up To query the feature point set, is the reference feature point set. In the matching process, the total number of matching point pairs is obtained by the ratio of the nearest neighbor to the next nearest neighbor distance, which is expressed as In order to realize the local road image and To correctly stitch together, you need to use a transformation matrix The feature point coordinates on are mapped to The corresponding feature point coordinates on the image are obtained to establish the geometric correspondence between the two images. Let the matrix H be and The transformation matrix between h is the number of matching point pairs that satisfy the transformation matrix H.
[0064] Definition 1 (feature point matching time): Define σ i (k i ) is the query feature point The time to complete the matching, that is, The time consumed to find the closest reference feature point is then the total time t to complete the matching of all query feature points is shown in formula (1).
[0065]
[0066] in, is the total number of query feature points.
[0067] Definition 2 (matching accuracy): Define the matching accuracy ξ as the number of matching point pairs N that satisfy the transformation matrix H h The total number of matching points The percentage is shown in formula (2).
[0068]
[0069] Definition 3 (matching efficiency): Matching efficiency E is defined as the matching accuracy ξ divided by the feature point matching time t. Based on the above definition, the matching process of the local road image can be described as a mathematical optimization problem as shown in formula (3).
[0070]
[0071]
[0072] Among them, formula (3) is the objective function for completing feature point matching in the process of local road image matching. The higher the value of E, the better the matching efficiency of the algorithm. Constraint (4) requires that the number of correctly matched feature point pairs Satisfy the generation conditions of the transformation matrix.
[0073] 2. SUPD algorithm:
[0074] In order to meet the requirements of the panoramic surround view system in terms of matching accuracy and real-time performance, this paper proposes a new surround view image feature matching algorithm, called the SUPD algorithm. This algorithm combines the advantages of the PCA algorithm and the DHF algorithm, and aims to reduce the dimension of the high-dimensional feature points and filter and purify them. At the same time, the parallel matching strategy makes full use of computing resources to further accelerate the matching efficiency of the algorithm.
[0075] 2.1. Distance ranking based on PCA dimensionality reduction:
[0076] Principal component analysis is a commonly used dimensionality reduction method. Its basic idea is to project high-dimensional data into low-dimensional space, extract main features and reduce redundant information, so as to provide more concise and efficient data representation in the subsequent data analysis and modeling process. It is applied to the field of feature point matching, that is, using the projection matrix P, the feature point set in the high-dimensional original space is projected into the low-dimensional space (PCA space) for distance estimation, and then the similarity between the query feature point and the reference feature point is predicted.
[0077] In this paper, singular value decomposition is used to obtain the projection matrix P. For the matrix S composed of the feature descriptors of all reference feature points and query feature points in the original space, its singular value decomposition formula is shown in formula (5).
[0078] S=UZV T (5);
[0079] Among them, U and V are SS T and S T The eigenvector of S, Z = diag(γ1,γ2,…,γ n ) is a diagonal matrix, and the elements on the diagonal of the diagonal matrix Z are the square roots of the eigenvalues of the matrix S.
[0080] The eigenvalue and corresponding eigenvector of S can be obtained from formula (5), and the cumulative contribution rate and the number of principal components c corresponding to the cumulative contribution rate can be calculated based on the eigenvalue of S. The calculation formula is shown in formula (6).
[0081]
[0082] Among them, m is the total number of principal components, μ is the cumulative contribution rate, and the μ value is generally 85% to 95%. e represents the eigenvalue of S; e is the number of principal components, that is, the eigenvalue index, which ranges from 1 to m.
[0083] Since each principal component corresponds to an eigenvalue and an eigenvector in principal component analysis, according to the value of the principal component number c when the cumulative contribution rate is reached, the eigenvectors corresponding to the first c largest eigenvalues are selected according to the number of principal components c, and the projection matrix P is composed of the selected eigenvectors; each column of the projection matrix P is an eigenvector of a principal component.
[0084] After obtaining the projection matrix P, the reference feature point set R = {r1, r2, ..., r n} and query feature point q i Projected into the low-dimensional PCA space, as shown in formula (7).
[0085]
[0086] After the projection is completed, each reference feature point r can be calculated in the PCA space i ′ and the query feature point q′ i In order to reduce the computational overhead, this paper adopts the squared Euclidean distance SED (r i ′,q′ i ) to estimate the feature point r i The distance between ′ and q′ is shown in formula (8).
[0087]
[0088] Where d is the dimension of the PCA space.
[0089] According to the ranking of SED, we can get the query feature point q′ i The nearest reference feature point r i ′, generate matching point pairs. Since the principal component retains the key information between points in the original space, any two points q in the high-dimensional space i , r j The distance ranking between them and the corresponding projection point q in the low-dimensional space i ′,r j The distances between them are ranked similarly.
[0090] like Figure 1 As shown in Figure 1, take a three-dimensional vector as an example, where q is the query feature point, A, B, C, and D are reference feature points. All feature points are projected into the PCA space for dimensionality reduction, and the projection points are q′, A′, B′, C′, and D′. The distance ranking is shown in Table 1. In the PCA space, the order of the reference feature points based on the SED ranking is A′-B′-C′-D′, which is the same as the Euclidean distance (ED) ranking ABCD in the original three-dimensional space. Finally, the coarse matching point pair is determined by the distance ratio between the nearest neighbor and the next nearest neighbor. The calculation formula is shown in Formula (9).
[0091]
[0092] Among them, d qA represents the distance between the query feature point q and its nearest point A, d qB represents the distance between the query feature point q and its next closest point B, is the distance ratio threshold, generally taken as
[0093] Table 1. Correct ranking estimation of 3D feature points:
[0094] 3D Space Euclidean distance Distance Ranking PCA space Squared Euclidean distance Distance Ranking q - - q′ - - A 2.7 1 A′ 3.1 1 B 4.1 2 B′ 16.9 2 C 6.3 3 C′ 35.5 3 D 7.8 4 D′ 61.2 4
[0095] 2.2. Double-heap filtering algorithm:
[0096] Although the similarity between the query feature point and the reference feature point can be predicted by ranking the squared Euclidean distance in the low-dimensional PCA space, mismatches may occasionally occur, such as Figure 2 As shown in Table 2, the distance ranking in the PCA space is A′-B′-C′-D′, but the distance ranking in the original three-dimensional space is BACD. If matching is performed only based on the distance ranking in the PCA space, incorrect matching point pairs may be generated.
[0097] Table 2. Error ranking estimation of 3D feature points:
[0098]
[0099]
[0100] To solve the above problems, this paper proposes a dual-heap filtering algorithm (DHF) based on PCA ranking prediction, that is, maintaining two screening heaps, the one in the PCA space is called the filtering heap, and the one in the original space is called the verification heap. The two heaps retain their own αk and k nearest neighbor distance results respectively to filter the projected feature points. The structure of the filtering heap and the verification heap is as follows: Figure 3 As shown. In the PCA space, in a single set, all reference feature points and query feature points q′ are calculated. i The squared Euclidean distance values between the αk nearest neighbors are sorted from small to large to form a filter heap, that is, the filter heap contains the first αk squared Euclidean distance values d1, d2, d3. αk ; In the original space, in a single set, calculate all reference feature points and query feature points q i The Euclidean distance values between the k nearest neighbors are sorted from small to large to form a verification pile, that is, the verification pile contains the first k Euclidean distance values d1, d2, d3.k .
[0101] When DHF filters feature points, first, it calculates the square Euclidean distance SED between the reference feature point and the query point projection in the PCA space. If the distance is greater than or equal to the maximum distance in the filter stack, the reference feature point is discarded. If the distance is less than the maximum value in the filter stack, the Euclidean distance ED between the reference feature point and the query feature point in the original space is further calculated. If the distance is greater than or equal to the maximum distance in the verification stack, the reference feature point is discarded. If it is less than the maximum value, it is considered that the judgment is correct, and the Euclidean distance value and the projected square Euclidean distance value are respectively inserted into the verification stack and the filter stack to replace their respective initial maximum values and reordered.
[0102] The relationship between the adjustment factor α in DHF and the number of nearest neighbors is k′=αk. α is used to adjust the size of the filter stack, which can effectively reduce the phenomenon of poor algorithm filtering performance caused by using only part of the principal component information. The values of α and k will be determined through experimental analysis in the future.
[0103] The matching point pairs filtered by the DHF algorithm can effectively avoid Figure 2 The DHF algorithm adopts a KNN-based heap structure, which can reduce the number of distance calculations and comparisons, improve query efficiency, and further improve the real-time performance of the overall algorithm.
[0104] 2.3. Multi-core parallel matching strategy:
[0105] Traditional matching algorithms usually need to match according to the index order of reference feature points, and can only match one reference point as a unit. For example, the matching algorithm based on the kd tree needs to continuously search for reference feature points according to the tree index, but due to the large number of reference feature points, this matching method will result in a huge amount of calculation in the matching process of a single query point, making it difficult to balance the system load.
[0106] Since the matching algorithm in this paper performs a relatively independent matching task for each reference feature point, it is particularly suitable for parallel processing when processing a large number of reference feature points. To this end, this paper designs a multi-core parallel matching strategy, such as Figure 4 shown.
[0107] When matching feature points, first divide the projected reference feature point set R' in the PCA space into w subsets. Then, match each projected query feature point q' in sequence. iWhen matching, these subsets are assigned to different threads in the system and calculated in parallel, and each subset generates its own k-nearest neighbor result through the double-heap filtering algorithm. Finally, a maximum heap of size k is maintained, and the k-nearest neighbor result obtained by each subset is used as the initial element of the maximum heap. The maximum heap is continuously adjusted by comparing the distance metric value to generate the final k-nearest neighbor result. The nearest reference feature point in the k-nearest neighbor result is selected for comparison with the query feature point. If the pixel distance is less than or equal to 1.5 pixels, it is determined to be a correct match. This parallel matching strategy can make full use of computing resources and improve the matching efficiency of feature points.
[0108] In summary, the dimensionality reduction parallel image feature matching algorithm integrating principal component analysis and double stack filtering provided in this paper includes the following steps:
[0109] Step 1: The two images to be matched are recorded as and image The feature points in the image are recorded as query feature points. The feature points in are recorded as reference feature points.
[0110] Step 2: Use principal component analysis to transform the image in the original space The reference feature point set R and image in The query feature point set Q in is projected into the low-dimensional PCA space to obtain the projected reference feature point set R′ and the query feature point set Q′.
[0111] Step 3: Determine whether there is a query feature point q in the query feature point set Q in the reference feature point set R. i Correctly matched reference feature points:
[0112] Step 3.1: In the PCA space, divide the reference feature point set R′ into w subsets; query feature point q i The projection point projected to the low-dimensional PCA space is recorded as the query feature point q′ i ;
[0113] Step 3.2: Use the double-heap filtering algorithm to filter the reference feature points in the w subsets respectively, and generate the k nearest neighbor results for each subset:
[0114] Step 3.2.1: In the PCA space, calculate all reference feature points and query feature points q′ in a single subset i The squared Euclidean distance between the αk nearest neighbors is sorted from small to large to form a filter stack; in the original space, all reference feature points in the subset are calculated to be different from the query feature point q iThe Euclidean distance value between them is sorted from small to large to form a verification pile;
[0115] Step 3.2.2, filter a single reference feature point: In the PCA space, calculate the correlation between a reference feature point and the query feature point q′ i If the squared Euclidean distance is greater than or equal to the maximum distance in the filter stack, the reference feature point is discarded; otherwise, the squared Euclidean distance between the reference feature point and the query feature point q is calculated in the original space. i If the Euclidean distance value between them is greater than or equal to the maximum distance value in the verification heap, the reference feature point is discarded; otherwise, the squared Euclidean distance value calculated in the PCA space in step 3.2.2 is inserted into the filter heap to replace the maximum distance value in the filter heap and re-sorted to obtain a new filter heap, and the original filter heap is replaced with the new filter heap, and the Euclidean distance value calculated in the original space in step 3.2.2 is inserted into the verification heap to replace the maximum distance value in the verification heap and re-sorted to obtain a new verification heap, and the original verification heap is replaced with the new verification heap;
[0116] Step 3.2.3, return to step 3.2.2, filter each reference feature point in the subset respectively, obtain the latest filter stack, sort according to the distance values in the latest filter stack, select the squared Euclidean distance values corresponding to the k nearest neighbors, which is the k nearest neighbor result of the subset;
[0117] Step 3.3.4, return to step 3.2.1, filter the reference feature points in the w subsets according to the methods of steps 3.2.1-3.2.3, and generate the k nearest neighbor results for each subset;
[0118] Step 3.3, add the k nearest neighbor results of each subset to the maximum heap in turn, compare the distance values in the maximum heap and continuously adjust the maximum heap so that the final maximum heap retains the k nearest neighbor results, that is, the squared Euclidean distance values corresponding to the k nearest neighbors. Initially, the maximum heap is empty. Then, the distance values in the k nearest neighbor results generated by each subset are added to the maximum heap in turn. When adding new elements, the maximum heap will automatically adjust to ensure that the element with the largest distance is always at the top of the heap. If the new distance metric is less than the maximum value at the top of the heap, the maximum value at the top of the heap will be deleted, and then the new distance value will be inserted and the heap will be readjusted. This process is repeated until the k nearest neighbor results of all subsets are processed, ensuring that the k distance values in the maximum heap always represent the closest k distances.
[0119] Step 3.4: Select the k nearest neighbor results in the maximum heap that match the query feature point q i ′The nearest reference feature point and calculate its difference with the query feature point q i ′ If the pixel distance is less than or equal to 1.5 pixels, the point corresponding to the reference feature point in the original space is determined to be the query feature point q i Correctly matched reference feature points, otherwise, it is determined that there is no reference feature point set R that matches the query feature point q i Correctly matched reference feature points.
[0120] Step 4: According to the method in step 3, determine whether each query feature point in the query feature point set Q has a correctly matched reference feature point, and then obtain all correct matching point pairs, and finally realize image With image feature matching.
[0121] Step 5: Determine whether there is a query feature point q in the query feature point set Q in the reference feature point set R. i Reference feature points for coarse matching:
[0122] Step 5.1: In the PCA space, the reference feature point set R ′ Divide into w subsets; query feature point q i The projection point projected to the low-dimensional PCA space is recorded as the query feature point q i ′ ;
[0123] Step 5.2: Calculate all reference feature points and query feature points q in a single subset i ′ The squared Euclidean distance is used to determine whether there is a feature point q in the subset that matches the query feature point q according to the ratio of the nearest neighbor distance to the next nearest neighbor distance. i ′ Reference feature points for coarse matching:
[0124] The ratio of the nearest neighbor distance to the next nearest neighbor distance is:
[0125]
[0126] Among them, d qA Represents the query feature point q′ i The squared Euclidean distance between the nearest reference feature point, d qB Represents the query feature point q′ i The squared Euclidean distance between the reference feature point and the next closest one, is the distance ratio threshold, if it satisfies the formula Then the query feature point q′ i The closest reference feature point is recorded as the query feature point q′i The reference feature point of the rough match; otherwise, there is no query feature point q′ in the subset i Reference feature points for rough matching;
[0127] Step 5.3: According to the method in step 5.2, determine whether there is a feature point q′ in each subset that matches the query feature point i Roughly matched reference feature points; if none of them exist, it is determined that there is no feature point in the reference feature point set R that matches the query feature point q i The reference feature point of the rough match; otherwise, obtain the query feature point q′ i All reference feature points of rough matching are selected from all the reference feature points obtained to match the query feature point q′ i The nearest reference feature point, the corresponding point in the original space is used as the query feature point q i rough matching points.
[0128] Step 6: According to the method of step 5, determine whether there is a coarse matching reference feature point for each query feature point in the query feature point set Q, and then obtain all coarse matching point pairs.
[0129] Step 7: Calculate the matching accuracy, which is the percentage of correct matching point pairs to the total matching point pairs, where the total matching point pairs are the coarse matching point pairs.
[0130] 3. Performance analysis:
[0131] 3.1、Time and space complexity analysis:
[0132] This section will use brute force search (BF) as a comparison algorithm to analyze the time and space complexity of the algorithm in this paper. For the matching of a single query feature point, the BF algorithm calculates and matches the distance of all reference feature points in the original space through exhaustive method. Due to the high dimensionality of the original space, the BF algorithm needs to traverse all reference feature points, resulting in a high space complexity of O(ND), where N is the number of reference feature points and D is the dimension of the original high-dimensional space.
[0133] However, in the actual matching process, if most of the unnecessary distance calculations are avoided, the algorithm performance will be greatly improved. The SUPD algorithm has this feature. The algorithm projects the feature points into the low-dimensional PCA space and uses the DHP algorithm based on KNN for filtering. Among them, the space complexity of the KNN algorithm mainly comes from the construction of the kd tree, and the search process of the kd tree does not require additional storage space. Therefore, the space complexity after dimensionality reduction and filtering is O(Nd), where d is the dimension of the PCA space. From the subsequent experimental results, it can be concluded that d is much smaller than D. At the same time, in order to make full use of computing resources, this paper divides the reference feature point set into w subsets and assigns them to each thread for parallel matching, which further reduces the space complexity to only O(Nd / w).
[0134] Assume that the total time required for the BF algorithm to complete all distance calculations for a query feature point in the original space is T D , and the proposed algorithm successfully shortens this time by reducing dimension and multi-core parallel matching. The total time after shortening is d·T D / Dw. This shows that the operation efficiency of the proposed algorithm is much better than that of the BF algorithm, and after subsequent experimental verification, the proposed algorithm meets the real-time requirements of vehicle-mounted camera equipment.
[0135] 3.2 Parameter analysis:
[0136] The main parameters of the SUPD algorithm include the number of principal components c that reach the cumulative contribution rate, the number of nearest neighbors k and the adjustment factor α of the double stack filtering, and the number of subsets w into which the projected reference feature point set is divided. In this section, the specific value range of each parameter will be analyzed to prepare for the subsequent parameter setting experiments.
[0137] First, when using principal component analysis (PCA) for dimensionality reduction, it is necessary to determine the number of principal components to be retained, that is, the dimension after dimensionality reduction. Too many principal components (large c value) will cause the data after dimensionality reduction to remain at a higher dimension, increase computing and storage overhead, and may also introduce noise. Too few principal components will cause the reduced data to be unable to fully express the characteristics of the original data, resulting in information loss. Therefore, it is crucial to select an appropriate number of principal components c. The number of principal components c to be retained can be determined by calculating the cumulative contribution rate μ. According to existing literature, the general value range is 85% to 95%. This article recommends selecting the number of principal components c corresponding to μ being 65%. l is the lower limit, μ is the number of principal components corresponding to 95% c u As the upper limit, set the selection range of c value to [c l ,c u ] and determine the most appropriate c value through experiments to achieve the best dimensionality reduction effect.
[0138] Next, the double heap filtering algorithm (DHP) is used to refine the extracted matching point pairs. The size of the filter heap is α×k, where k is the number of nearest neighbors in the validation heap. The validation heap is used to verify the matching point pairs initially purified in the filter heap, so the k value should not be too large. In most knn-based feature matching algorithms, k is usually set to 2, so this paper also sets k to 2. The adjustment factor α of the filter heap affects the number of matching point pairs obtained by the initial filtering. If α is set too large, since the calculation of the validation heap uses the Euclidean distance in the original high-dimensional space, this will increase the computational complexity and seriously affect the real-time performance of the algorithm. If α is set too small, incorrect filtering may occur, that is, the distance between a reference feature point in the projection space (PCA space) and the query point is greater than the maximum value of the filter heap, but the distance between the point and the query point in the original space is less than the maximum value of the validation heap, resulting in the point being incorrectly filtered out during actual matching. And when α=1, the size of the filter heap is the same as that of the validation heap, and the role of the filter heap cannot be reflected. Therefore, this paper sets the α selection range to [2,5], and determines the most appropriate α value through experiments to achieve the best filtering effect.
[0139] Finally, the projected reference feature point set is divided into w subsets for parallel matching. The number of subset divisions w affects whether the computing resources can be used to the maximum extent, thereby improving the performance of the algorithm. The number of subset divisions determines the granularity of parallel tasks. Smaller task granularity leads to better data locality, reduces memory access conflicts, and is also easier to achieve balanced load. However, it is not advisable to divide it too small. Too small task granularity will also lead to frequent communication and synchronization operations, increasing computing overhead. At the same time, when dividing the number of subsets w, the number of cores of the experimental platform should also be considered. The number of cores reflects the upper limit of tasks that can be executed in parallel. Therefore, in order to maximize the use of computing resources and achieve optimal parallel performance, this paper sets the range of the number of subset divisions w to in is the maximum number of cores of the experimental platform, and the most appropriate w value is determined through experiments to achieve the goal of optimizing algorithm performance.
[0140] 4. Results and analysis:
[0141] 4.1 Experimental preparation:
[0142] 4.1.1 Experimental platform:
[0143] The hardware platform of this experiment is AMD Opteron Processor 6376CPU@2.30GHz, 16MB L3 cache, 16 cores, 32 logical processors, and 128GB memory; the software platform is Windows 10 64-bit operating system, Visual Studio Code, and Opencv4.
[0144] 4.1.2 Experimental data:
[0145] To meet the research needs, this paper uses a self-constructed dataset, which consists of 100 sets of local road images with a certain degree of overlap. These images cover a variety of road scenarios and show obvious diversity in terms of viewing angle, lighting conditions, and weather conditions.
[0146] 4.1.3 Experimental evaluation indicators:
[0147] 1) Total matching time (tota_time): The sum of the time consumed by feature extraction and feature matching, where the feature matching time includes the time consumed by eliminating false matches and performing local optimization. Its definition is shown in formula (10).
[0148] tota_time = T e +T m (10);
[0149] Among them, T e is the feature extraction time, T m is the feature matching time.
[0150] 2) Matching accuracy (matching_accuracy): As an evaluation index of algorithm accuracy, matching accuracy is the percentage of correct matching point pairs to the total matching point pairs. Its definition is shown in formula (11).
[0151]
[0152] Among them, N c is the number of correctly matched point pairs, N s is the total number of matching point pairs.
[0153] 3) Matching error root mean square (MERD): As the matching evaluation index of the overall matching point pairs between the query image and the reference image, the smaller the MERD, the better the overall matching quality, and vice versa. Its definition is shown in formula (10).
[0154]
[0155] Among them, (x i ,y i ) is the coordinate of the query feature point, (x i ′,y i ′) is the reference feature point coordinate, f h (x) is the projection transformation model.
[0156] 4.2. Determination of parameters:
[0157] This section will use experiments to define the exact values of each parameter when the algorithm reaches the optimal performance state based on the parameter range analyzed in Section 3.2. Before conducting the experiment, we first clarify the evaluation indicators for parameter selection, which are defined as follows.
[0158] a) Improvement ratio: the matching time of brute force matching divided by the matching time of the proposed algorithm.
[0159] b) Speedup ratio: the algorithm’s serial matching time divided by its parallel matching time.
[0160] c) Comprehensive performance index: the improvement ratio multiplied by the matching accuracy, taking into account the algorithm's running time and matching accuracy.
[0161] According to the analysis and calculation in Section 3.2, when the cumulative contribution rate is 65% and 95%, the number of principal components corresponding to the self-constructed data set is 5 and 20 respectively. Therefore, this paper selects the number of principal components c in the interval [5,20] for analysis to evaluate its impact on the performance of the algorithm. In addition, given that the number of principal components c and the adjustment factor α of the filter stack may affect each other in different value ranges, while the number of subset divisions w is relatively independent. Therefore, under the premise of setting w = 10, the impact of the number of principal components c and the adjustment factor α on the performance of the algorithm is analyzed through comprehensive experiments.
[0162] The experimental results are as follows Figure 5 As shown in the figure, under different filter stack adjustment factors α, the transformation trend between the comprehensive performance index and the number of principal components is similar, and within the set range, the smaller the value of α, the larger the overall comprehensive performance index. At the same time, as the number of principal components c increases, the retained feature information also increases accordingly, and the matching accuracy also increases significantly, which increases the comprehensive performance index. However, when the c value exceeds a certain threshold, the improvement in matching accuracy gradually stabilizes, while the matching time increases accordingly, resulting in a decrease in the comprehensive performance index. Therefore, based on the experimental results, the best (c, α) suitable for the data set in this paper is (14, 2).
[0163] Since the number of subset partitions w has high independence and is not affected by the number of principal components and the filter stack adjustment factor, this paper will conduct experiments on it separately to analyze its impact on the algorithm performance.
[0164] The experimental results are as follows Figure 6As shown in the figure, as w increases, the speedup ratio increases. When w reaches the maximum number of cores of the experimental platform, the speedup ratio reaches its extreme value, which indicates that the computing resources are optimally utilized at this time, thereby minimizing the matching time. However, it is worth noting that once w exceeds the maximum number of cores, it may cause parallel computing problems such as increased scheduling overhead and load imbalance, resulting in a gradual decrease in the speedup ratio and a gradual increase in the matching time. Therefore, based on the experimental results, the most appropriate number of subset partitions w is 16.
[0165] 4.3 Experimental results:
[0166] To verify the performance of the SUPD algorithm, this paper divides the data set into 5 groups according to the complexity of color, texture, etc. The complexity of the experimental groups increases from 1 to 5. The average value of each group of experimental data is taken, and the performance tests of total matching time, matching accuracy, and root mean square of matching error are performed. At the same time, comparative experiments are also conducted with traditional SIFT and SURF algorithms to obtain more comprehensive performance comparison results. Both SIFT and SURF algorithms are used with the brute force matching algorithm built into OpenCV for feature matching.
[0167] 4.3.1、Total matching time analysis:
[0168] As an important indicator, the total matching time can effectively measure the real-time performance of the algorithm. Figure 7 The comparison results of the total matching time of the SUPD algorithm and the other two traditional algorithms are shown. It can be seen that the SUPD algorithm is significantly better than the traditional SIFT and SURF algorithms in terms of total matching time, shortening the time by 77% to 80%. This improvement in real-time performance comes from the specific design of the SUPD algorithm. The algorithm uses the principal component analysis method to reduce the dimension of feature descriptors, thereby effectively reducing the computational complexity. In addition, the SUPD algorithm introduces a multi-core parallel matching strategy, which enables multiple processing cores to perform matching operations simultaneously. This not only speeds up the calculation process, but also improves the system's throughput, thereby significantly improving the running speed of the overall algorithm.
[0169] Therefore, compared with traditional SIFT and SURF algorithms, the SUPD algorithm achieves significant performance advantages in total matching time through the introduction of principal component analysis dimensionality reduction and multi-core parallel matching strategy, and demonstrates better real-time performance.
[0170] 4.3.2 Matching accuracy analysis:
[0171] The matching accuracy can effectively reflect the precision and robustness of the feature matching algorithm. Its calculation method is shown in formula (11). Figure 8The comparison results of the matching accuracy of the SUPD algorithm and the other two traditional algorithms are shown. The comparison shows that compared with the traditional SIFT and SURF algorithms, the SUPD algorithm improves the accuracy by 5% to 15%. In order to more intuitively show the matching accuracy comparison results, this paper takes the matching effect of the first experiment in the third group as an example to analyze the advantages and disadvantages of the SUPD algorithm and the traditional SIFT and SURF algorithms in terms of matching accuracy. Fig. 9 shown.
[0172] from Fig. 9 (c) Fig. 9 As can be seen from (d) in the figure, the traditional SIFT and SURF algorithms have many mismatching phenomena such as cross matching and repeated matching, which leads to low matching accuracy. The matching effect of the SUPD algorithm is as follows: Fig. 9 As shown in (e) in the figure, the algorithm filters and purifies the matching point pairs through the two screening stacks maintained in the DHF algorithm, effectively improving the mismatch phenomenon and ensuring a high matching accuracy. Therefore, compared with the traditional SIFT and SURF algorithms, the SUPD algorithm has obvious advantages in matching accuracy.
[0173] 4.3.3、RMS analysis of matching error:
[0174] In order to more intuitively reflect the matching quality between the overall feature point pairs, this paper introduces the matching error root mean square (MERD) as an evaluation indicator. The smaller the value of MERD, the higher the matching quality of the overall feature point pairs, and vice versa. The calculation formula of MERD is shown in formula (12). Fig.10 The comparison results of the SUPD algorithm and the other two traditional algorithms on MERD are shown. It can be seen that the MERD values of the SUPD algorithm are lower than those of the SIFT and SURF algorithms, and are reduced by 12% to 32%, respectively. This shows that the SUPD algorithm has better performance in matching overall feature point pairs, so that it can more accurately match the massive high-dimensional features between local road images, especially when facing local road images with changes in lighting and perspective, the performance of the SUPD algorithm is more robust.
[0175] The algorithm in this paper uses principal component analysis to map the feature point set to a low-dimensional space, and uses the squared Euclidean distance with lower computational cost to match the feature points, which significantly reduces the computational complexity. At the same time, to ensure the accuracy of feature matching, the algorithm uses a double-heap filtering algorithm to filter and purify the matching point pairs. In addition, in order to further improve the matching speed and maximize the use of computing resources, the algorithm also introduces a multi-core parallel matching strategy, which greatly improves the efficiency of feature point matching. Compared with traditional SIFT and SURF algorithms, the algorithm in this paper shortens the matching time by 77% to 80%, and at the same time increases the matching accuracy by 5% to 15%. Experimental results show that the algorithm in this paper has excellent matching real-time performance and accuracy, and can meet the requirements of vehicle-mounted panoramic surround view systems for feature matching.
[0176] 5. Conclusion:
[0177] In view of the fact that traditional image feature matching algorithms cannot meet the requirements of efficient matching of high-dimensional feature points between local road images, this paper proposes a high-performance dimensionality reduction parallel matching algorithm that integrates principal component analysis and double-stack filtering. The feature point set is projected into a low-dimensional space through principal component analysis, and the ranking is estimated using squared Euclidean distance, which effectively reduces the computational complexity of the matching process. At the same time, in order to ensure the accuracy of feature matching, the algorithm in this paper uses a double-stack filtering algorithm to purify the matching point pairs. In addition, the algorithm in this paper also adopts a parallel structure, fully utilizes computing resources, and improves the matching speed of the overall algorithm. From the experimental results, the algorithm in this paper has obvious advantages over traditional image feature matching algorithms in terms of total matching time, matching accuracy, and matching error root mean square. In summary, the algorithm in this paper has good matching real-time performance while taking into account the matching accuracy, and can be applied to the efficient matching of high-dimensional feature points between local road images.
[0178] The protection scope of the present invention includes but is not limited to the above embodiments. The protection scope of the present invention shall be based on the claims. Any replacement, deformation, and improvement of the technology that can be easily thought of by technicians in this field shall fall within the protection scope of the present invention.
Claims
1. A dimensionality reduction parallel image feature matching algorithm integrating principal component analysis and double stack filtering, It is characterized in that The following steps are involved: Step 1: The two images to be matched are recorded as and ,image The feature points in the image are recorded as query feature points. The feature points in are recorded as reference feature points; Step 2: Use principal component analysis to transform the image in the original space The reference feature point set in and images The query feature point set in Project to low-dimensional PCA space and obtain the reference feature point sets after projection And query feature point set ; Step 3: Determine the reference feature point set In the query, does it exist? Query feature points Correctly matched reference feature points: Step 3.1: In PCA space, set the reference feature points Divide into Subsets; query feature points The projection points projected to the low-dimensional PCA space are recorded as query feature points ; Step 3.2: Use the double-pile filtering algorithm to filter The reference feature points in the subsets are filtered to generate the Nearest neighbor results; Specifically: Step 3.2.1: In PCA space, calculate all reference feature points and query feature points in a single subset The squared Euclidean distance between The squared Euclidean distance values corresponding to the nearest neighbors are sorted from small to large to form a filter heap; In the original space, calculate all reference feature points and query feature points in the subset The Euclidean distance between The Euclidean distance values corresponding to the nearest neighbors are sorted from small to large to form a verification pile; Step 3.2.2, filter a single reference feature point: in the PCA space, calculate a reference feature point and the query feature point The squared Euclidean distance between them; If the squared Euclidean distance value is greater than or equal to the maximum distance in the filter stack, the reference feature point is discarded; Otherwise, calculate the reference feature point and the query feature point in the original space If the Euclidean distance value between them is greater than or equal to the maximum distance value in the verification heap, the reference feature point is discarded; otherwise, the squared Euclidean distance value calculated in the PCA space in step 3.2.2 is inserted into the filter heap to replace the maximum distance value in the filter heap and re-sorted to obtain a new filter heap, and the original filter heap is replaced with the new filter heap, and the Euclidean distance value calculated in the original space in step 3.2.2 is inserted into the verification heap to replace the maximum distance value in the verification heap and re-sorted to obtain a new verification heap, and the original verification heap is replaced with the new verification heap; Step 3.2.3, return to step 3.2.2, filter each reference feature point in the subset respectively, obtain the latest filter stack, sort according to the distance value in the latest filter stack, and select The squared Euclidean distance value corresponding to the nearest neighbor is the Nearest neighbor results; Step 3.3.4: Return to step 3.2.1 and perform the following steps: The reference feature points in the subsets are filtered to generate the Nearest neighbor results; Step 3.3: For each subset The nearest neighbor results are added to the maximum heap in sequence, and the maximum heap is adjusted so that the maximum heap is generated Nearest neighbor results; Step 3.4: Select the k nearest neighbor results in the maximum heap that match the query feature point The nearest reference feature point and calculate its difference with the query feature point If the pixel distance is less than or equal to the preset pixel, the point corresponding to the reference feature point in the original space is determined to be the query feature point. Correctly matched reference feature points, otherwise, the reference feature point set is determined There is no feature point matching the query Correctly matched reference feature points; Step 4: According to the method in step 3, determine the query feature point set respectively Each query feature point is checked to see if there is a correctly matched reference feature point, and then all correct matching point pairs are obtained to achieve image With image feature matching.
2. The parallel image feature matching algorithm of dimensionality reduction integrating principal component analysis and dual-stack filtering according to claim 1, It is characterized in that The step 3.3 is as follows: the initial maximum heap is an empty set, and each subset The nearest neighbor results are added to the maximum heap in sequence, and the distance values in the maximum heap are compared to continuously adjust the maximum heap so that the maximum heap retains The nearest neighbor result is The squared Euclidean distance value corresponding to the nearest neighbor.
3. The parallel image feature matching algorithm of dimensionality reduction integrating principal component analysis and dual-stack filtering according to claim 1, It is characterized in that The preset pixel value in step 3.4 is 1.5 pixels.
4. The parallel image feature matching algorithm of dimensionality reduction integrating principal component analysis and dual-stack filtering according to claim 1, It is characterized in that Also includes: Step 5: Determine the reference feature point set In the query, does it exist? Query feature points Reference feature points for coarse matching: Step 5.1: In PCA space, set the reference feature points Divide into Subsets; query feature points The projection points projected to the low-dimensional PCA space are recorded as query feature points ; Step 5.2: Calculate all reference feature points and query feature points in a single subset The squared Euclidean distance is used to determine whether there is a feature point in the subset that matches the query based on the ratio of the nearest neighbor distance to the next nearest neighbor distance. Reference feature points for rough matching; Step 5.3: According to the method in step 5.2, determine whether there is a feature point in each subset that matches the query feature point. Roughly matched reference feature points; if none of them exist, it is determined that in the reference feature point set The query feature point does not exist in Reference feature points for rough matching; otherwise, obtain and query feature points All reference feature points of rough matching, select and query feature points from all reference feature points obtained The nearest reference feature point, the corresponding point in the original space is used as the query feature point rough matching points; Step 6: According to the method in step 5, determine the query feature point set respectively Whether each query feature point has a coarsely matched reference feature point, and then all coarse matching point pairs are obtained; Step 7: Calculate the matching accuracy, which is the percentage of correct matching point pairs to the total matching point pairs, where the total matching point pairs are the coarse matching point pairs.
5. The parallel image feature matching algorithm of dimensionality reduction integrating principal component analysis and dual-stack filtering according to claim 4, It is characterized in that In step 5.2, the ratio of the nearest neighbor distance to the next nearest neighbor distance is used to determine whether there is a feature point in the subset that matches the query feature point. The reference feature points for coarse matching are: The formula for the ratio of the nearest neighbor distance to the next nearest neighbor distance (1) is: ; in, Represents the query feature point The squared Euclidean distance between the nearest reference feature point, Represents the query feature point The squared Euclidean distance between the reference feature point and the next closest one, is the distance ratio threshold. If formula (1) is satisfied, then The closest reference feature point is recorded as The reference feature point for rough matching; otherwise, there is no feature point matching the query in the subset. Reference feature points for coarse matching.
6. The parallel image feature matching algorithm of dimensionality reduction integrating principal component analysis and dual-stack filtering according to claim 1, It is characterized in that The step 2 is specifically as follows: Step 2.1: The feature descriptors of all reference feature points and query feature points in the original space are combined into a matrix , use the singular value decomposition method to obtain the matrix The eigenvalues and eigenvectors of , according to the eigenvalues and the preset value of the cumulative contribution rate, calculate the number of principal components corresponding to the cumulative contribution rate ; Step 2.2: According to the number of principal components Before selection The eigenvector corresponding to the largest eigenvalue, the projection matrix is composed of the selected eigenvectors ; Step 2.3, according to the projection matrix , the image in the original space The reference feature point set in and images The query feature point set in They are projected into the low-dimensional PCA space respectively.
7. The parallel image feature matching algorithm of dimensionality reduction integrating principal component analysis and dual-stack filtering according to claim 6, It is characterized in that In step 2.1, the preset value of the cumulative contribution rate is the preset range value of the cumulative contribution rate, and the number of principal components corresponding to the preset range value of the cumulative contribution rate is calculated. Range value of Follow the method of steps 3-4 and according to the number of principal components The value of is used to calculate the number of correct matching point pairs between the two images to be matched; Set the evaluation index and evaluate different numbers of principal components according to the evaluation index The matching performance corresponding to the value of is selected, and the number of principal components corresponding to the optimal matching performance is selected The value of is taken as the final number of principal components The value is used in step 2 to calculate the projection matrix , and finally obtain all the correct matching point pairs between the two images.
Citation Information
Patent Citations
A rapid splicing method for vehicle bottom images
CN109559273A
Infrared human body target image recognition method based on multi-feature fusion and multi-core transfer learning
CN109583482A
Multi-temporal SAR ship target tracking method and system, equipment and medium
CN113869119A
Vehicle-mounted image registration method based on SURF algorithm
CN116309019A
Content based image retrieval
US20160078057A1
