A nonlinear fundamental matrix estimation method based on iterative reweighting

Through the strategy of iterative reweighting and recursive update of the objective function, weight assignment is based on the matching quality of matching feature points and epipolar constraints, which solves the problem of mismatching and pixel drift, and improves the calculation accuracy and robustness of nonlinear basic matrix estimation. .

CN118365915BActive Publication Date: 2024-09-03ZHONGSHAN INST OF CHANGCHUN UNIV OF SCI & TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410789551.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-03
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Existing nonlinear basic matrix estimation algorithms cannot effectively solve the problems of mismatching and pixel drift, resulting in errors in calculation results. In particular, pixel drift is difficult to completely solve under noisy conditions.

Method used

A nonlinear basic matrix estimation method based on iterative reweighting is used to assign weights based on the matching quality of matching feature points and epipolar constraints, and the objective function is used to recursively update the weight strategy to improve the calculation accuracy of the basic matrix.

Benefits of technology

It effectively improves the fitting accuracy and robustness of the basic matrix, reduces the impact of mismatching and pixel drift on the calculation results, and improves the accuracy and stability of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365915B
    Figure CN118365915B
Patent Text Reader

Abstract

The present invention discloses a nonlinear basic matrix estimation method based on iterative reweighting, which inputs a query image and a matching database image, solves a normalized position coordinate matrix #imgabs0# of matching feature points on the query image and a normalized position coordinate matrix #imgabs1# of matching feature points on the matching database image, determines an initialization solution #imgabs3# of a basic matrix #imgabs2# of a variable to be solved, updates a weight matrix #imgabs4#, and solves a basic matrix #imgabs5# by weight, constructs an objective function, and outputs a final basic matrix #imgabs6# based on the constructed objective function. The present invention assigns weights according to matching quality and epipolar constraints of matching feature points, and adopts a strategy of recursively updating weights of the objective function, which effectively solves the problems of mismatching and pixel drift, thereby improving the calculation accuracy of the basic matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fundamental matrix estimation methods, and in particular to a nonlinear fundamental matrix estimation method based on iterative reweighting. Background Art

[0002] With the continuous development of computer vision technology, nonlinear fundamental matrix estimation has become the core algorithm of modern perception systems and is widely used in fields such as robot navigation, autonomous driving, and augmented reality.

[0003] The estimation of the nonlinear fundamental matrix can be formulated as an optimization problem, i.e., finding the estimated value that best explains the observed data. In a typical perception system, there are two processing stages: the perception front end and the perception back end. The perception front end is used to extract and match feature points from the raw sensor data, i.e., the camera image, and pass the features to the perception back end. The perception back end calculates the quantities of interest (e.g., the position of robots and vehicles) by using nonlinear estimation. However, in practical applications, the data collected by the front end often contains noise, which mainly manifests as mismatching of feature points and pixel drift. Pixel drift is a small, random, or systematic shift in the position of feature points in the image caused by changes in the observation angle. These front-end noises will introduce errors to the calculation results of the back end.

[0004] In order to improve the accuracy of nonlinear fundamental matrix estimation, existing algorithms usually exclude data points with large errors by setting a threshold. However, this method is limited by the setting of empirical thresholds and the influence of noise ratio. More importantly, although some data points with large errors can be excluded, this type of algorithm still cannot completely solve the problem of pixel drift. Summary of the invention

[0005] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0006] Therefore, the purpose of the present invention is to provide a nonlinear fundamental matrix estimation method based on iterative reweighting, which assigns weights according to the matching quality of matching feature points and epipolar constraints, and also adopts a strategy of recursively updating weights with an objective function, which effectively solves the problems of mismatching and pixel drift, thereby improving the calculation accuracy of the fundamental matrix.

[0007] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:

[0008] A nonlinear fundamental matrix estimation method based on iterative reweighting, characterized by comprising:

[0009] S1. Input the query image and the matching database image, and solve the normalized position coordinate matrix of the matching feature points on the query image. And the normalized position coordinate matrix of the matching feature points on the matching database image ;

[0010] S2, normalized position coordinate matrix based on matching feature points and With the basic matrix The epipolar constraint relationship between them is satisfied to determine the basic matrix of the variables to be solved The initial solution ;

[0011] S3. Update weight matrix , and solve the weighted basic matrix ;

[0012] S4. Construct the objective function and calculate the objective function value of the current iteration based on the constructed objective function. , and compare it with the objective function value of the previous round Compare the rows, if Update And return to step S3 to update the weight matrix and perform a new round of calculation. This indicates that the basic matrix is ​​optimal and outputs the final basic matrix .

[0013] As a preferred solution of the iterative reweighted nonlinear basic matrix estimation method described in the present invention, in step S1, the normalized position coordinate matrix of the matching feature points on the query image is solved. And the normalized position coordinate matrix of the matching feature points on the matching database image The specific steps are as follows:

[0014] ORB feature point extraction is performed on the query image and the matching database image respectively, and feature matching is performed to obtain the query image matching feature point position matrix And the matching database image matching feature point position matrix ;

[0015] The mathematical expectation of the coordinate set of the matching feature points of the query image is calculated as follows:

[0016] ;

[0017] in, Represents the total number of matching feature points, represents the first Pixel position coordinates of matching feature points;

[0018] Constructing the scale factor As shown in formula (2):

[0019] ;

[0020] in, is a fixed constant used to make the average distance from the matching feature point set to the origin reach a predetermined value;

[0021] Normalized position coordinate matrix of matching feature points on the query image It is expressed as formula (3):

[0022] ;

[0023] Similarly, for the normalized position coordinate matrix of the matching feature points on the matching database image It is expressed as formula (4):

[0024] ;

[0025] in, Represents the pixel position coordinates of the matching feature points on the matching database image, and It is the mathematical expectation of the corresponding matching feature point coordinate set.

[0026] As a preferred solution of the nonlinear basic matrix estimation method based on iterative reweighting described in the present invention, in step S2, the normalized position coordinate matrix of the matching feature points is and With the basic matrix The epipolar constraint relationship between them is satisfied to determine the basic matrix of the variables to be solved The initial solution The specific steps are as follows:

[0027] Normalized position coordinate matrix of matching feature points and With the basic matrix The epipolar constraint relationship between them is as follows:

[0028] ;

[0029] For any pair of normalized matching points and , and the fundamental matrix The epipolar constraint between is specifically expressed as formula (6):

[0030] ;

[0031] in, Represents the basic matrix Middle Line Column elements, next, construct The solution vector of all elements in As shown in formula (7):

[0032] ;

[0033] based on Transform equation (6) into equation (8):

[0034] ;

[0035] Normalized matching feature point position coordinate matrix and In Construct the equation group for matching feature points as shown in formula (9):

[0036] ;

[0037] in, Indicated by The coefficient matrix constructed for the normalized matching feature points;

[0038] Finally, singular value decomposition is used to solve equation (9) to determine the basic matrix of the variables to be solved: The initial solution .

[0039] As a preferred solution of the nonlinear basic matrix estimation method based on iterative reweighting described in the present invention, in step S3, the weight matrix is ​​updated The specific steps are as follows:

[0040] Define the query image and the database image Epipolar distance to matching points , as shown in formula (10):

[0041] ;

[0042] Next, Normalized epipolar distance to matching points The definition is as follows (11):

[0043] ;

[0044] in, and Respectively represent the maximum epipolar distance and the minimum epipolar distance in the set of matching points;

[0045] Similarly, calculate the matching points The normalized Hamming distance of As shown in formula (12):

[0046] ;

[0047] in, and Respectively represent the maximum Hamming distance and the minimum Hamming distance in the matching point set;

[0048] Combined with the normalized Hamming distance and epipolar distance , define The geometric error of the matching point is as follows:

[0049] ;

[0050] For Weight factor for matching points The definition is as follows (14):

[0051] ;

[0052] For Round Iteration For the matching points, the weight matrix is ​​defined as follows:

[0053] ;

[0054] in, It represents a diagonal matrix whose diagonal elements are the weight factors for each pair of matching points, allowing different iteration rounds to dynamically adjust the solution process of the basic matrix according to the geometric error.

[0055] As a preferred solution of the nonlinear basic matrix estimation method based on iterative reweighting described in the present invention, in step S3, the basic matrix is ​​weighted and solved. The specific steps are as follows:

[0056] The original epipolar constraint relation (9) is reformulated as a weighted form as (16):

[0057] ;

[0058] in, is a diagonal matrix with the elements on the diagonal Updated with the number of iterations to reflect the reliability of each matching point;

[0059] Next, the weighted coefficient matrix Perform singular value decomposition, as shown in formula (17):

[0060] ;

[0061] in, and is an orthogonal matrix, is a diagonal matrix containing singular values, and the right singular vector corresponding to the smallest singular value is The last column of provides the weighted basis matrix The approximate solution of .

[0062] As a preferred solution of the nonlinear fundamental matrix estimation method based on iterative reweighting described in the present invention, in step S4, the constructed objective function is specifically as shown in formula (18):

[0063] ;

[0064] in, Represents vector No. The square of the components, Represents vector No. The square of the components.

[0065] Compared with the prior art, the present invention has the beneficial effect that: the method assigns weights to feature points according to the matching quality and epipolar constraints of the feature points. By increasing the weights of high-quality matching feature points and reducing the weights of matching feature points with errors, the fitting accuracy of the basic matrix is ​​effectively improved. In addition, the method adopts a minimization objective function strategy of recursively updating weights, and dynamically adjusts the weights in combination with the objective function to adapt to different noise conditions, thereby improving the accuracy and robustness of the algorithm, and further improving the solution accuracy of the basic matrix, thereby achieving more accurate and stable performance in various practical application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the present invention will be described in detail below in combination with the accompanying drawings and detailed embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0067] Figure 1 The present invention is a flowchart of a nonlinear fundamental matrix estimation method based on iterative reweighting. DETAILED DESCRIPTION

[0068] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0069] Secondly, the present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0070] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0071] The present invention provides a nonlinear fundamental matrix estimation method based on iterative reweighting, which assigns weights according to the matching quality of matching feature points and epipolar constraints, and also adopts a strategy of recursively updating weights with an objective function, effectively solving the problems of mismatching and pixel drift, thereby improving the calculation accuracy of the fundamental matrix.

[0072] The known conditions (i.e., input variables) of the present invention are: query image, matching database image of the query image, and the variables to be determined are: basic matrix Explanation of known conditions and variables to be determined: The query image and the matching database in this article refer to two images with associated visual features, usually two images of the same scene from different perspectives. Basic matrix Used to describe the geometric relationship between the query image and the matching database image, such as Figure 1 As shown in Figure 2, the specific steps of the nonlinear fundamental matrix estimation method based on iterative reweighting are as follows:

[0073] Step 1: Solve the normalized feature point position coordinates. Perform ORB (Oriented FAST and Rotated BRIEF) feature point extraction on the query image and the matching database image respectively, and perform feature matching. Obtain the query image matching feature point position matrix And the matching database image matching feature point position matrix .

[0074] Then, the mathematical expectation of the coordinate set of the matching feature points of the query image is calculated as shown in formula (1):

[0075] (1)

[0076] in, Represents the total number of matching feature points, represents the first The pixel position coordinates of the matched feature points.

[0077] To ensure the scale consistency of the matching feature point set, a scale scaling factor is constructed As shown in formula (2):

[0078] (2)

[0079] in, is a fixed constant used to make the average distance from the matching feature point set to the origin reach a predetermined value, usually set to .

[0080] Finally, the normalized position coordinate matrix of the matching feature points on the query image is It can be expressed as:

[0081] (3)

[0082] Similarly, for the normalized position coordinate matrix of the matching feature points on the matching database image It is expressed as follows:

[0083] (4)

[0084] in, Represents the pixel position coordinates of the matching feature points on the matching database image, and It is the mathematical expectation of the corresponding matching feature point coordinate set.

[0085] Step 2: Initialize the basic matrix. The normalized position coordinate matrix of the matching feature points and With the basic matrix The relationship between the pole constraints is as follows:

[0086] (5)

[0087] For any pair of normalized matching points and , and the fundamental matrix The epipolar constraint between can be specifically expressed as:

[0088] (6)

[0089] in, Represents the basic matrix Middle Line Next, construct a The solution vector of all elements in as follows:

[0090] (7)

[0091] based on The transformation of formula (6) is as follows:

[0092] (8)

[0093] Normalized matching feature point position coordinate matrix and In The equations for matching feature points are constructed as follows:

[0094] (9)

[0095] in, Indicated by The coefficient matrix constructed for the normalized matching feature points.

[0096] Finally, singular value decomposition (SVD) is used to solve equation (9) to determine the basic matrix of the variables to be solved: The initial solution It is worth noting that the basic matrix obtained in this step is Not the final fundamental matrix The core idea of ​​the present invention is to continuously update the basic matrix based on an iterative optimization method. Therefore, the initial solution obtained in this step provides an initial value for the variable to be determined, so as to continuously optimize in the subsequent process, thereby finally obtaining a more accurate basic matrix.

[0097] Step 3: Update the weight matrix. In the image feature matching process, feature point matching based on Hamming distance is an efficient similarity measurement method. Hamming distance is used to measure the difference between two equal-length binary sequences and is suitable for matching binary feature descriptors. For the matching points on the query image and the database image, let Matching Points The binary feature point descriptors are and , each descriptor consists of bit binary code. and Respectively and No. Position, then Hamming distance to matching points It can be expressed as:

[0098] (10)

[0099] in, Represents the binary XOR operation, which is used to compare whether two binary bits are different. and At the same time, ; When the two are different, Therefore, the sum of the Hamming distances is the number of mismatches between the two descriptors in all bits, which directly reflects the similarity between the two feature point descriptors.

[0100] In practical applications, due to the influence of noise, it is often difficult for matching points to strictly satisfy the epipolar constraint relationship of formula (5), which leads to the inability to achieve ideal accuracy when solving the basic matrix. Therefore, in order to measure the accuracy of solving the basic matrix, we define the first Epipolar distance to matching points , as shown below: (11)

[0101] Next, Normalized epipolar distance to matching points The definition is as follows:

[0102] (12)

[0103] in, and Respectively represent the maximum epipolar distance and the minimum epipolar distance in the set of matching points.

[0104] Similarly, calculate the matching points The normalized Hamming distance of as follows:

[0105] (13)

[0106] in, and They represent the maximum Hamming distance and the minimum Hamming distance in the matching point set respectively.

[0107] In summary, combined with the normalized Hamming distance and epipolar distance , define The geometric error of the matching points is as follows:

[0108] (14)

[0109] Geometric Error It quantitatively reflects the matching accuracy and geometric consistency of the matching points, and its size directly affects the accuracy of the basic matrix solution. Specifically, the larger the geometric error, the larger the error introduced into the basic matrix solution. Weight factor for matching points As shown in formula (15), the weight factor is used to adjust the contribution of each matching point in solving the basic matrix, aiming to reduce the impact of matching point errors on the solution of the basic matrix.

[0110] (15)

[0111] In summary, for the Round Iteration For matching points, the weight matrix is ​​defined as follows:

[0112] (16)

[0113] in, It represents a diagonal matrix whose diagonal elements are the weight factors for each pair of matching points, allowing different iteration rounds to dynamically adjust the solution process of the basic matrix according to the geometric error.

[0114] Step 4: Weighted solution of the basic matrix. The purpose of constructing the weight matrix is ​​to reduce the impact of the matching point error on the basic matrix solution. By assigning weights to the matching feature points, the basic matrix solution problem is converted into a weighted least squares problem. Specifically, the original epipolar constraint relationship (9) can be restated as the following weighted form:

[0115] (17)

[0116] in, is a diagonal matrix with the elements on the diagonal Updated with the number of iterations to reflect the reliability of each matching point.

[0117] Next, the weighted coefficient matrix Perform singular value decomposition as follows:

[0118] (18)

[0119] in, and is an orthogonal matrix, is a diagonal matrix containing singular values. The right singular vector corresponding to the smallest singular value is The last column of provides the weighted basis moments The approximate solution of .

[0120] Step 5: Construct the objective function. The epipolar distance as shown in formula (11) quantitatively reflects the solution accuracy of the basic matrix. In order to further robustly measure the solution accuracy of the basic matrix, the objective function is constructed as follows:

[0121] (19)

[0122] in, Represents vector No. The square of the components, Represents vector No. Ideally, the objective function approaches zero, which means that the error in solving the basic matrix approaches zero.

[0123] Step 6: Iterative optimization. Based on the objective function constructed in step 5, calculate the objective function value of the current iteration round And compare it with the objective function value of the previous round For comparison, if More Then return to step 3 to update the weight matrix and perform a new round of calculations. This indicates that the basic matrix is ​​optimal and outputs the final basic matrix .

[0124] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A nonlinear fundamental matrix estimation method based on iterative reweighting, It is characterized in that include: S1. Input the query image and the matching database image, and solve the normalized position coordinate matrix of the matching feature points on the query image. And the normalized position coordinate matrix of the matching feature points on the matching database image ; S2, normalized position coordinate matrix based on matching feature points and With the basic matrix The epipolar constraint relationship between them is satisfied to determine the basic matrix of the variables to be solved The initial solution ; S3. Update weight matrix , and solve the weighted basic matrix ; S4. Construct the objective function and calculate the objective function value of the current iteration based on the constructed objective function. , and compare it with the objective function value of the previous round For comparison, if Update And return to step S3 to update the weight matrix and perform a new round of calculation. This indicates that the basic matrix is ​​optimal and outputs the final basic matrix ; In step S2, the normalized position coordinate matrix based on the matching feature points and With the basic matrix The epipolar constraint relationship between them is satisfied to determine the basic matrix of the variables to be solved The initial solution The specific steps are as follows: Normalized position coordinate matrix of matching feature points and With the basic matrix The epipolar constraint relationship between them is as follows: ; For any pair of normalized matching points and , and the fundamental matrix The epipolar constraint between is specifically expressed as formula (6): ; in, Represents the basic matrix Middle Line Column elements, next, construct The solution vector of all elements in As shown in formula (7): ; based on Transform equation (6) into equation (8): ; Normalized matching feature point position coordinate matrix and In Construct the equation group for matching feature points as shown in formula (9): ; in, Indicated by The coefficient matrix constructed for the normalized matching feature points; Finally, singular value decomposition is used to solve equation (9) to determine the basic matrix of the variables to be solved: The initial solution ; In step S3, update the weight matrix The specific steps are as follows: Define the query image and the database image Epipolar distance to matching points , as shown in formula (10): ; Next, Normalized epipolar distance to matching points The definition is as follows: ; in, and Respectively represent the maximum epipolar distance and the minimum epipolar distance in the set of matching points; Similarly, calculate the matching points The normalized Hamming distance of As shown in formula (12): ; in, and Respectively represent the maximum Hamming distance and the minimum Hamming distance in the matching point set; Combined with the normalized Hamming distance and epipolar distance , define The geometric error of the matching point is as follows: ; For Weight factor for matching points The definition is as follows (14): ; For Round Iteration For the matching points, the weight matrix is ​​defined as follows: ; in, represents a diagonal matrix, whose diagonal elements are weight factors for each pair of matching points, allowing different iteration rounds to dynamically adjust the solution process of the basic matrix according to the geometric error; In step S3, the weighted solution of the basic matrix The specific steps are as follows: The original epipolar constraint relation (9) is reformulated as a weighted form as (16): ; in, is a diagonal matrix with the elements on the diagonal Updated with the number of iterations to reflect the reliability of each matching point; Next, the weighted coefficient matrix Perform singular value decomposition, as shown in formula (17): ; in, and is an orthogonal matrix, is a diagonal matrix containing singular values, and the right singular vector corresponding to the smallest singular value is The last column of provides the weighted basis matrix The approximate solution of .

2. The method for estimating a nonlinear basis matrix based on iterative reweighting according to claim 1, It is characterized in that In step S1, the normalized position coordinate matrix of the matching feature points on the query image is solved And the normalized position coordinate matrix of the matching feature points on the matching database image The specific steps are as follows: ORB feature point extraction is performed on the query image and the matching database image respectively, and feature matching is performed to obtain the query image matching feature point position matrix And the matching database image matching feature point position matrix ; The mathematical expectation of the coordinate set of the matching feature points of the query image is calculated as follows: ; in, Represents the total number of matching feature points, represents the first Pixel position coordinates of matching feature points; Constructing the scale factor As shown in formula (2): ; in, is a fixed constant used to make the average distance from the matching feature point set to the origin reach a predetermined value; Normalized position coordinate matrix of matching feature points on the query image It is expressed as formula (3): ; Similarly, for the normalized position coordinate matrix of the matching feature points on the matching database image It is expressed as formula (4): ; in, Represents the pixel position coordinates of the matching feature points on the matching database image, and It is the mathematical expectation of the corresponding matching feature point coordinate set.

3. The nonlinear fundamental matrix estimation method based on iterative reweighting according to claim 1, It is characterized in that In step S4, the constructed objective function is specifically as shown in formula (18): ; in, Represents vector No. The square of the components, Represents vector No. The square of the components.

Citation Information

Patent Citations

  • Trinocular epipolar constraint-based basic matrix high-precision solving method

    CN106980601A

  • Dual-view image calibration method, image processing method and device, storage medium and electronic equipment

    CN108230395A

  • Workpiece sorting system based on 2D vision and control method and control device thereof

    CN114419437A

  • Global basis matrix estimation method based on interior point updating in planar motion

    CN114820778A

  • Information processing apparatus, information processing system, information processing method, program, and memory medium

    JP2015005200A