A laser point cloud registration method based on improved covariance matrix
Through the laser point cloud registration method based on the covariance matrix, combined with tensor voting and ISS key point selection, a covariance descriptor is constructed, which solves the problem that point cloud registration is easily affected by noise in the existing technology, and achieves a better High-precision and noise-resistant point cloud registration, suitable for multi-angle scanning to obtain complete 3D models.
Patent Information
- Application Number
- CN202111198375.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-14
AI Technical Summary
Existing 3D point cloud registration methods are susceptible to noise and have high mismatch rates, resulting in low accuracy of reconstruction results and inability to obtain a complete point cloud model.
An improved laser point cloud registration method based on the covariance matrix is used, combined with the tensor voting and ISS key point selection methods, to construct a covariance descriptor, and perform precise registration through region growing clustering and ICP refinement to reduce the mismatch rate. , improve noise immunity.
The accuracy and noise immunity of point cloud registration are improved, and a more complete and accurate three-dimensional point cloud model is obtained, which is suitable for digital cultural relics protection and other fields.
Smart Images

Figure CN114332172B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of three-dimensional reconstruction of graphics, and in particular relates to a laser point cloud registration method based on covariance matrix improvement. Background Art
[0002] In recent years, 3D point clouds have been widely used in cultural relics protection, digital medicine, 3D geographic information systems and other fields. Point clouds have become the mainstream 3D model data, and a series of research work has been carried out on point clouds. The point clouds obtained by laser scanning are messy, featureless, contain holes, and are even incomplete. It is difficult to reconstruct on the basis of such point clouds, and the reconstruction results are low in accuracy and large in deviation, and cannot be used. Therefore, some necessary processing work must be performed on the scanned point clouds, such as filtering, registration, enhancement, hole repair, etc. The goal is to obtain a complete point cloud model, which can be further carried out for other work such as measurement and reconstruction.
[0003] 3D point cloud registration is an important step in point cloud processing and is widely used in fields such as 3D reconstruction and computer vision. Traditional point cloud registration methods mainly include four parts: key point extraction, feature descriptor construction, point cloud coarse registration and point cloud fine registration. When completing the above steps, we must also consider the situation where the model has noise and feature points have mismatches. To address the above problems, we need to find a registration method with high accuracy and certain noise resistance. Summary of the invention
[0004] In view of the problem that the existing key point extraction method is easily affected by noise, the present invention provides a laser point cloud registration method based on covariance matrix improvement.
[0005] The purpose is to obtain a complete three-dimensional point cloud model through multiple scans at different angles. This method can be used in projects such as digital cultural relics protection and reverse engineering, and is a necessary processing step for scanning point clouds.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A laser point cloud registration method based on covariance matrix improvement includes the following steps:
[0008] Step 1: Combining tensor voting with ISS key point selection method;
[0009] Step 2, construct a covariance descriptor matrix; the covariance matrix descriptor can well contain the neighborhood information of the point cloud. This method constructs a new covariance matrix descriptor with reference to FPFH (Fast Feature Histogram), which not only fully combines the neighborhood information but also has a certain robustness.
[0010] Step 3: Coarse registration. Cluster the obtained matching pairs using the region growing method. After clustering, two groups of cluster blocks are obtained. The point pairs that are not in the cluster blocks are removed to obtain the overlapping area. At the same time, the edge matching point pairs are removed to reduce the mismatch rate. If the overlapping area is not obtained, it may fall into the suboptimal state when using the ICP method for refinement, resulting in wrong results. Calculate the translation and rotation matrix for the remaining matching pairs, use homogeneous coordinates to obtain the corresponding transformation matrix, calculate the maximum common point set LCP corresponding to each matrix respectively, and select the transformation matrix with the maximum value of LCP;
[0011] Step 4, fine registration,After obtaining better corresponding positions, the point cloud is finely registered,through the nearest common point pair ICP.
[0012] Furthermore, the step 1 combines tensor voting with the key point selection method of ISS, and further includes the following steps:
[0013] Step 1.1 constructs a KD tree for the three-dimensional point cloud, and establishes a K nearest neighbor relationship and a radius neighborhood relationship for each point in the three-dimensional point cloud through the established KD tree; this method uses the radius neighborhood information;
[0014] Step 1.2, for each point p in the point cloud i Construct a covariance matrix with its neighboring points;
[0015]
[0016] Among them, C i is the sampling point p i The corresponding matrix, D l is a set of neighboring points with radius l, p i,j represents the sampling point p i The jth neighbor point of ; T represents the vector transpose;
[0017] For the obtained sampling point p i The corresponding matrix is decomposed to obtain eigenvalues λ1, λ2, and λ3. The three eigenvalues are sorted from large to small, and the eigenvector corresponding to the smallest eigenvalue is the normal vector of the point.
[0018] Step 1.3, after obtaining the normal vector of the point cloud, perform tensor voting and use point p i The normal vector n i Construct a tensor voting matrix, perform matrix decomposition on the tensor voting matrix, determine the distribution of points based on whether the eigenvalue is greater than 0, and remove outliers and focal points;
[0019] Step 1.4, use the ISS method to extract key points.
[0020] Furthermore, in step 1.3, after obtaining the normal vector of the point cloud, tensor voting is performed, using point pi The normal vector n i Construct a tensor voting matrix, perform matrix decomposition on the tensor voting matrix, determine the distribution of points based on whether the eigenvalue is greater than 0, and remove outliers and focal points as follows:
[0021]
[0022] Among them, T i n Indicates the tensor voting matrix to be calculated for the i-th sampling point, the subscript n indicates the normal tensor voting, D l,i Represents the radius neighborhood point set of the i-th sampling point, n i,j is the normal vector of the jth neighboring point of the sampling point, * represents multiplication, is the weight function, T represents the vector transpose, See formula (3);
[0023]
[0024] Where σ represents the sampling point p i The average value of the distance to its neighboring points; || || means finding the second norm, exp means performing exponential operation, and the base is the natural logarithm e;
[0025] The final tensor matrix obtained is T i n , perform feature decomposition on it, and sort the obtained eigenvalues from large to small; based on whether the eigenvalue is greater than 0, the surface points, boundary points and corner points can be distinguished;
[0026] Furthermore, the specific method of extracting key points using the ISS method in step 1.4 is to calculate two ratios respectively through the three eigenvalues λ1, λ2, and λ3 obtained when solving the normal vector in step 1.2:
[0027]
[0028] When both k1 and k2 are less than the given threshold, the current point is considered to be a key point. The tensor voting results are used as the source data of ISS, and the order of the two methods cannot be changed. Because of the combination of tensor voting, this method has a certain degree of anti-modeling and improves the registration accuracy. If tensor voting is not performed, it will have no effect on the Stanford model registration accuracy, but the accuracy of the scanned model will decrease. In this method, the tensor voting matrix must be constructed using normal vectors, so the constructed tensor voting matrix is also called the normal tensor voting matrix.
[0029] Further, the step 2 of constructing the covariance descriptor matrix also includes the following steps:
[0030] Step 2.1, construct the feature description vector of the covariance matrix for the acquired key points;
[0031] Step 2.2, the covariance matrix descriptor can be calculated using the constructed feature description vector;
[0032] Step 2.3, after constructing the feature descriptor, feature matching is performed on the two sets of point clouds.
[0033] Further, in step 2.1, a feature description vector of the covariance matrix is constructed for the acquired key points, as follows:
[0034]
[0035] At the current key point p s and its nearest neighbor point p t Calculate the direction vector and normalize it. c1 is the normal vector n of the sampling point s The cosine value of the angle with the normalized direction vector, c2 is the normal vector n of the sampling point s Its nearest neighbor point p t The normal vector n t The cosine value of the angle. Using the direction vector of the sampling point and its nearest neighbor and the normal vector n of the sampling point s Find the outer product to get a new vector v, and continue to use the sampling point normal vector n s Take the outer product with the newly obtained vector v to get the vector w, c3 is w and the normal vector n of the nearest neighbor point s The cosine value of the angle, when calculating the outer product, requires the normal vector n s In front; p1 is the average curvature of the sampling point, p2 is the Gaussian curvature of the sampling point, and T represents vector transpose.
[0036] Further, in step 2.2, the covariance matrix descriptor can be calculated using the constructed feature description vector, as follows:
[0037]
[0038] Among them, Cov i Denotes the covariance matrix descriptor of the i-th key point, D l It is a set of neighboring points with a radius of l. By changing the radius l, a multi-scale feature descriptor can be obtained. Represents the feature description vector of the jth neighbor point of the i-th key point, υ i is the feature description mean vector of all neighboring points, and T represents the vector transpose. After constructing the feature descriptor, the multi-scale covariance matrix feature descriptor can be obtained by simply changing the neighborhood radius.
[0039] Furthermore, after constructing the feature descriptor in step 2.3, feature matching is performed on the two sets of point clouds; the specific method is as follows:
[0040] First, calculate the generalized eigenvalues of the two matrices X and Y, that is, solve Y -1 Xx=λx is the pair matrix Y -1 X is subjected to eigendecomposition. Since the covariance matrix is a positive definite matrix, its inverse matrix must exist; the eigenvalue λ obtained by decomposition i Calculate geodesic distances using the logarithmic eigenvalue method;
[0041]
[0042] Among them, d(X,Y) represents the geodesic distance between matrices X and Y, and N represents the matrix dimension. The two-way closest distance is used to find matching points for the two point clouds. First, for each key point in the source point cloud, the point with the smallest distance to it is found among the key points of the target point cloud. If the minimum distance is less than a given threshold, it is a matching point. If no corresponding point is found, it means that there is no matching corresponding key point for the point. The matching point obtained in the target point cloud is then found from the source point cloud. If it is the same as the selected key point, the two are a pair of matching key points, otherwise they do not constitute a matching pair. Here, the two-way closest distance must be used to select the matching pair, otherwise there will be a point in the source point cloud, and there will be multiple corresponding matching points in the target point cloud, which will cause errors in subsequent steps.
[0043] Furthermore, when ICP is used in step 4, the previously obtained overlapping area is used for calculation. This can not only save time (reduce the search range) but also improve the registration accuracy. If there is no overlapping area, the bird statue model will have obvious registration deviation.
[0044] Compared with the prior art, the present invention has the following advantages:
[0045] The method of the present invention adopts a key point extraction method combining tensor voting and ISS, which makes it have a certain noise resistance, and can remove some boundary points to reduce the mismatch rate. The construction of the feature descriptor needs to be able to fully contain the neighborhood information of the point cloud, and is not easily affected by translation and rotation, and has robustness. The covariance matrix descriptor is a descriptor that can fully describe the neighborhood information. The angle quantity is not affected by translation and rotation, and is an excellent choice for constructing feature description vectors. The method of the present invention combines the method of establishing a three-dimensional coordinate system in the feature histogram to construct a covariance matrix containing angle quantity and curvature information. The feature matching uses the two-way nearest distance method to reduce the mismatch rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is the flow chart of the registration method;
[0047] Figure 2 This is a schematic diagram of key point extraction results;
[0048] Figure 3 is a schematic diagram of feature descriptors;
[0049] Figure 4 This is a schematic diagram of the registration results. DETAILED DESCRIPTION
[0050] Example 1
[0051] Developed using Vs2017+PCL1.9.2 in Win10 environment.
[0052] Step 1. Combining tensor voting with ISS key point selection method
[0053] Step 1.1: Use the built-in method in PCL to obtain the point cloud neighborhood information.
[0054] Step 1.2: For each sampling point, use the above formula (1) to combine with its neighboring points to obtain the covariance matrix. The matrix operation can be completed using the C++ matrix library Eigen to obtain the matrix eigenvalues and corresponding eigenvectors. Select the eigenvector corresponding to the minimum eigenvalue as the normal vector.
[0055] Step 1.3: Construct a tensor voting matrix based on equations (2) and (3). After matrix decomposition, sort the eigenvalues from large to small to obtain λ1≥λ2≥λ3. Then classify the point cloud based on the following relationship:
[0056] (1) If λ1>>λ2≈λ3≈0, then the point is a point on the surface.
[0057] (2) If λ1≥λ2>>λ3≈0, then the point is a boundary point.
[0058] (3) If λ1≥λ2≥λ3>>0, the point is a corner point or an outlier.
[0059] Corner points and outliers do not participate in subsequent calculations.
[0060] Step 1.4: Use the ISS method in PCL to extract key points. The two thresholds of this method are both selected as 0.975. The extracted key points and their neighboring points are stored in the form of an adjacency list.
[0061] Step 2. Construct the covariance matrix descriptor
[0062] Step 2.1: Construct a feature description vector based on formula (5) at the current key point p s and its nearest neighbor point p t Calculate the direction vector between and normalize it. s The normal vector n s The cosine value of the angle between the normalized direction vector and the feature vector is taken as the first element of the feature description vector; n s With p t The normal vector n t, calculate the cosine of the angle as the second element; calculate n s The outer product with the direction vector gets a new vector v, and we continue to find n s The outer product with v gives vector w, then n s , v, w and point p s Constitute a rectangular coordinate system. t The cosine of the angle with w is the third element; point p s The mean curvature at is used as the fourth element; the Gaussian curvature is used as the fifth element; the cosine of the angle can be obtained by normalizing the two vectors and then taking the inner product. The curvature is estimated using the PCL built-in method using the normal vector calculated in step 1.2.
[0063] Step 2.2: Calculate the mean vector of all neighboring points of the current key point, and then obtain the covariance matrix descriptor according to formula (6).
[0064] Step 2.3: For the two point clouds to be registered, after solving the matrix descriptor, start from the first key point of the source point cloud, calculate the geodesic distance in the key points of the target point cloud in turn according to formula (7). In this scheme, the matrix dimension is 5, and find the closest matching point. Then, for the matching point found, reversely search for the closest distance point in the key points of the source point cloud. If the two are matching points, a set of matching pairs is obtained, otherwise there is no matching pair.
[0065] Step 3. Rough registration
[0066] Step 3.1, perform region growth clustering on the obtained matching pairs, select the first point as the initial seed, and add it to the seed queue. When leaving the queue, mark it to detect and enter the cluster block, and all points in the radius neighborhood (radius selects a given threshold) enter the seed queue. Iterate until the seed queue is empty and generate a cluster block. Then continue clustering the remaining points and iterate until all points have been detected. Select the largest cluster block as the core block, and the rest as edge points, and eliminate all edge matches.
[0067] Step 3.2, solve the corresponding homogeneous transformation matrix, select the matrix that makes the LCP take the largest value after transformation as the final transformation matrix, and transform the point cloud position.
[0068] Step 4: Use the ICP method in pcl to refine the result of step 6. When setting the registration parameters, the source point cloud and the target point cloud are selected as the clustered results, and the registration is completed.
[0069] The final LCP of the Stanford rabbit reached 0.852, and the final LCP of the scanned bronze bird vase (including noise points) reached 0.803. The traditional normal vector descriptor combined with the SCA-IA (initial sampling consistency) + ICP method, the Stanford rabbit's registration result LCP can only reach 0.703, and there is a significant deviation in the registration result of the bronze bird vase model, with an LCP of only 0.427. Using the normal vector descriptor combined with SDRSAC (convex optimization sampling consistency) + ICP, the Stanford rabbit's LCP also reached 0.843, but the bird vase model's LCP was only 0.767. The SCAIA+ICP phase correction of this method has a significant improvement in the registration longitude, and the SDRSAC phase correction method in this article has improved the anti-forging performance.
[0070] The contents not described in detail in the specification of the present invention belong to the prior art known to the professional and technical personnel in the field. Although the illustrative specific embodiments of the present invention are described above to facilitate the understanding of the present invention by the technical personnel in the field, it should be clear that the present invention is not limited to the scope of the specific embodiments. For ordinary technicians in the field of this technology, as long as various changes are within the spirit and scope of the present invention defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.
Claims
1. A laser point cloud registration method based on covariance matrix improvement, characterized in that: The following steps are involved: Step 1, a key point selection method combining tensor voting and intrinsic shape signature ISS; Step 2, construct the covariance descriptor matrix; Step 3: Rough registration. The obtained matching pairs are clustered using the region growing method. After clustering, two groups of cluster blocks are obtained. The point pairs that are not in the cluster blocks are removed to obtain the overlapping areas. At the same time, the edge matching point pairs are removed to reduce the mismatch rate. Calculate the translation and rotation matrix for the remaining matching pairs, use homogeneous coordinates to obtain the corresponding transformation matrix, calculate the maximum common point set LCP corresponding to each matrix, and select the transformation matrix with the maximum value of LCP; Step 4: Fine registration: After obtaining a good corresponding position, the point cloud is finely registered by iterating the closest point ICP. The step 2 of constructing the covariance descriptor matrix also includes the following steps: Step 2.1, construct the feature description vector of the covariance matrix for the acquired key points; Step 2.2, the covariance matrix descriptor can be calculated using the constructed feature description vector; Step 2.3, after constructing the feature descriptor, feature matching is performed on the two sets of point clouds; In step 2.1, the feature description vector of the covariance matrix is constructed for the acquired key points, as follows: At the current key point p s and its nearest neighbor point p t Calculate the direction vector and normalize it. c1 is the normal vector n of the sampling point s The cosine value of the angle with the normalized direction vector, c2 is the normal vector n of the sampling point s Its nearest neighbor point p t The normal vector n t The cosine value of the angle; using the direction vector of the sampling point and its nearest neighbor and the normal vector n of the sampling point s Find the outer product to get a new vector v, and continue to use the sampling point normal vector n s Take the outer product with the newly obtained vector v to get the vector w, c3 is w and the normal vector n of the nearest neighbor point s The cosine value of the angle, when calculating the outer product, requires the normal vector n s In front; p1 is the average curvature of the sampling point, p2 is the Gaussian curvature of the sampling point, and T represents the vector transpose; In step 2.2, the covariance matrix descriptor can be calculated using the constructed feature description vector, as follows: Among them, Cov i Denotes the covariance matrix descriptor of the i-th key point, D l It is a set of neighboring points with a radius of l. By changing the radius l, a multi-scale feature descriptor can be obtained. represents the feature description vector of the jth neighboring point of the i-th key point, υ i is the feature description mean vector of all neighboring points, and T represents the vector transpose. After constructing the feature descriptor, the multi-scale covariance matrix feature descriptor can be obtained by simply changing the neighborhood radius.
2. The laser point cloud registration method based on covariance matrix improvement according to claim 1, characterized in that: The step 1 combines tensor voting with the key point selection method of ISS, and also includes the following steps: Step 1.1 constructs a KD tree for the three-dimensional point cloud, and establishes a K nearest neighbor relationship and a radius neighborhood relationship for each point in the three-dimensional point cloud through the established KD tree; Step 1.2, for each point p in the point cloud i Construct a covariance matrix with its neighboring points; Among them, C i is the sampling point p i The corresponding matrix, D l is a set of neighboring points with radius l, p i,j represents the sampling point p i The jth neighbor point of ; T represents the vector transpose; For the obtained sampling point p i The corresponding matrix is decomposed to obtain eigenvalues λ1, λ2, and λ3. The three eigenvalues are sorted from large to small. The eigenvector corresponding to the smallest eigenvalue is the normal vector of the point. Step 1.3, after obtaining the normal vector of the point cloud, perform tensor voting and use point p i The normal vector n i Construct a tensor voting matrix, perform matrix decomposition on the tensor voting matrix, determine the distribution of points based on whether the eigenvalue is greater than 0, and remove outliers and focal points; Step 1.4, use the ISS method to extract key points.
3. The laser point cloud registration method based on covariance matrix improvement according to claim 2, characterized in that: In step 1.3, after obtaining the normal vector of the point cloud, tensor voting is performed, using point p i The normal vector n i Construct a tensor voting matrix, perform matrix decomposition on the tensor voting matrix, determine the distribution of points based on whether the eigenvalue is greater than 0, and remove outliers and focal points as follows: Among them, T i n Indicates the tensor voting matrix to be calculated for the i-th sampling point, the subscript n indicates the normal tensor voting, D l,i Represents the radius neighborhood point set of the i-th sampling point, n i,j is the normal vector of the jth neighboring point of the sampling point, * represents multiplication, is the weight function, T represents the vector transpose, See formula (3); Where σ represents the sampling point p i The average value of the distance to its neighboring points; || || means finding the second norm, exp means performing exponential operation, and the base is the natural logarithm e; The final tensor matrix obtained is T i n , perform feature decomposition on it, and sort the obtained eigenvalues from large to small; based on whether the eigenvalue is greater than 0, the surface points, boundary points and corner points can be distinguished.
4. The laser point cloud registration method based on covariance matrix improvement according to claim 3, characterized in that: The specific method of extracting key points using the ISS method in step 1.4 is to calculate two ratios respectively through the three eigenvalues λ1, λ2, and λ3 obtained when solving the normal vector in step 1.2: When both k1 and k2 are less than the given threshold, the current point is considered to be a key point.
5. The laser point cloud registration method based on covariance matrix improvement according to claim 1, characterized in that: After constructing the feature descriptor in step 2.3, feature matching is performed on the two sets of point clouds; the specific method is as follows: First, calculate the generalized eigenvalues of the two matrices X and Y, that is, solve Y -1 Xx=λx is the pair matrix Y -1 X is subjected to eigendecomposition. Since the covariance matrix is a positive definite matrix, its inverse matrix must exist. The eigenvalue λ obtained by decomposition i Calculate geodesic distances using the logarithmic eigenvalue method; Among them, d(X,Y) represents the geodesic distance between matrices X and Y, and N represents the matrix dimension. The two point clouds are matched by the bidirectional closest distance. First, for each key point in the source point cloud, the point with the shortest distance to it is found among the key points of the target point cloud. If the minimum distance is less than a given threshold, it is a matching point. If no corresponding point is found, it means that there is no matching key point for the point. The matching point obtained in the target point cloud is then matched with the nearest distance point from the source point cloud. If it is the same as the selected key point, the two are a pair of matching key points, otherwise they do not constitute a matching pair.
6. The laser point cloud registration method based on covariance matrix improvement according to claim 1, characterized in that: When using the iterative closest point ICP in step 4, the overlapping area obtained in step 3 is used for calculation.
