Fusion method of different-source point cloud data

The heterosource point cloud fusion method that combines FPFH and GICP algorithms solves the problem of heterosource point cloud registration and fusion, achieves high-precision three-dimensional modeling of urban areas, and supports urban planning and smart city construction.

CN118674759AActive Publication Date: 2024-09-20UNIV OF ELECTRONICS SCI & TECH OF CHINA

Patent Information

Application Number
CN202410783179.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-20
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively solve the registration and fusion problems of heterogeneous point cloud data, especially when the point cloud density is different and the degree of overlap is low, resulting in three-dimensional modeling and geographical entity characterization of urban areas that are not comprehensive and accurate enough.

Method used

The fast point feature histogram descriptor (FPFH) and the generalized iterative closest point (GICP) algorithm are used to perform coarse and fine registration of heterogeneous point clouds, and filtering and repairing are performed through point cloud repulsion and normal vector weighting algorithms. , and finally perform uniform fusion based on the downscaled voxel grid method.

Benefits of technology

It achieves precise registration and fusion of heterogeneous point clouds, improves the accuracy and robustness of 3D modeling of urban areas, reduces point cloud redundancy, and supports the application of urban planning and smart city construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674759A
    Figure CN118674759A
Patent Text Reader

Abstract

The invention provides a heterogeneous point cloud data fusion method, and belongs to the technical field of urban area point cloud registration. The method comprises the following steps: firstly, preprocessing a heterogenous point cloud, performing coarse registration on the preprocessed point cloud data based on a fast point feature histogram descriptor (FPFH), and then performing fine registration based on a generalized iterative closest point (GICP), thereby completing registration of the heterogenous point cloud; meanwhile, for the problem of long time consumption of fine registration, parallel processing is adopted for the voxelization nearest neighbor search algorithm, and the calculation efficiency is improved; and finally, filtering and repairing the registered point clouds based on a point cloud repulsive force and normal vector weighting algorithm, and homogenizing the point clouds based on a downscaling voxel grid method, thereby finally completing fusion of the different-source point clouds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of urban area point cloud registration, and in particular relates to a method for fusing heterogeneous point cloud data. Background Art

[0002] Point cloud is a three-dimensional data structure that contains the three-dimensional spatial coordinate information of the target object, which can accurately describe the geometric features and spatial position of the object. With the rapid development of sensor technology, the means of obtaining point cloud data have become more diverse. Oblique photogrammetry technology can extract the three-dimensional information of the target from the two-dimensional image, thereby obtaining a three-dimensional point cloud. LiDAR technology can effectively obtain the position information of surrounding objects by emitting and receiving lasers. It has high measurement accuracy and can also be used for point cloud data collection.

[0003] When carrying out tasks such as urban 3D modeling and 3D map construction, a relatively complete 3D point cloud is often required. However, different devices are limited by the collection method and perspective, and it is often difficult to obtain a comprehensive and complete point cloud. For example, airborne laser radar has strong penetration and dense point clouds, but the details of the lower half of the collected object are missing; oblique photography reconstruction has the lowest cost, but due to the limitation of perspective, there are problems with the internal structure and the lower half of the collected object; due to distance and penetration problems, vehicle-mounted laser radar will cause sparse point clouds far away from the collection vehicle, but the details of the lower half of the collected object are complete. Therefore, it is necessary to align and fuse multiple types of point cloud data into a complete set of point clouds, and complement the missing points between heterogeneous point clouds to more comprehensively and accurately portray the geographical entities of urban areas.

[0004] Point cloud registration refers to the process of transforming the three-dimensional point cloud data of the target object obtained from different angles into the same coordinate system through rotation and translation to align two sets of point clouds. Heterogeneous point cloud registration and fusion refers to the precise registration of point cloud data from different sensors or obtained at different times and under different conditions, followed by data fusion and filtering to finally obtain a complete set of point clouds. At present, point cloud registration algorithms are divided into optimization-based registration methods, feature-based registration methods, and end-to-end learning-based registration methods according to the range of search points. Their respective advantages and disadvantages are as follows:

[0005] (1) The registration method based on optimization has good convergence under the support of mathematical theory, and the algorithm idea and structure are relatively clear. This type of method does not require data sets for training, and directly inputs point clouds for registration, which is more convenient to generalize to unknown scenes. However, in the face of problems such as outliers, noise, density differences, and partial overlaps in point clouds, other methods and strategies need to be used for optimization, which often increases the computational cost.

[0006] (2) Feature-based methods can improve the robustness and accuracy of corresponding point search. By removing false matches through a simple RANSAC method, a relatively accurate registration can also be obtained. However, this method also has certain limitations: although directly extracting geometric features is suitable for most scenarios, there may still be some challenges when dealing with complex scenarios and changes, resulting in low registration accuracy. Feature extraction based on deep learning has high accuracy, but requires a large amount of training data to learn effective feature representations. When there is a large distribution difference between the unknown scene and the training data, the feature extraction network may not be able to effectively capture the matching relationship in different scenarios, resulting in a decrease in accuracy.

[0007] (3) The end-to-end learning-based registration method directly learns the transformation matrix between point clouds in the neural network to achieve more accurate registration results. This method combines the advantages of traditional mathematical theory and deep neural network. It can not only fully utilize the advantages of traditional mathematical theory in registration, but also give full play to the advantages of deep neural network in learning complex feature representation to achieve more effective registration. However, the regression method regards the transformation parameter estimation as a black box and may lack an explanation of the transformation process. On the other hand, although the feature metric registration method takes into account local structural information, it may still have limitations in some cases.

[0008] In recent years, experts and scholars at home and abroad have continuously deepened the research on point cloud registration and fusion, and proposed many new algorithms and models, which greatly improved the efficiency and accuracy of point cloud registration. However, most algorithms are only for homologous point clouds. There are many problems with point cloud data collected by different methods (i.e., heterogeneous point clouds), such as point cloud density differences, low overlap, etc., and there are few studies on heterogeneous point cloud registration methods. Heterogeneous point cloud registration is to register point clouds obtained by different methods and align them in a common coordinate system, so it is more challenging. At present, the research on heterogeneous point cloud registration is still in its infancy. With the rapid development of three-dimensional sensor technology, further in-depth research on heterogeneous point cloud registration is needed to bridge the gap between sensor technology and heterogeneous applications. Finally, since the registered point cloud data inevitably contains data redundancy, how to simplify and fuse the registered point cloud data is also a difficulty in current research. Summary of the invention

[0009] In view of the problems existing in the background technology, the purpose of the present invention is to provide a method for fusing heterogeneous point cloud data. First, the heterogeneous point cloud is preprocessed, and the preprocessed point cloud data is roughly aligned based on the fast point feature histogram descriptor (FPFH), and then finely aligned based on the generalized iterative closest point (GICP), thereby completing the alignment of the heterogeneous point cloud; at the same time, in view of the problem that the fine alignment takes a long time, the voxelized nearest neighbor search algorithm is parallelized to improve the computational efficiency; finally, the aligned point cloud is filtered and repaired based on the point cloud repulsion force and normal vector weighting algorithm, and the point cloud is homogenized based on the downscaled voxel grid method, thereby finally completing the fusion of the heterogeneous point cloud.

[0010] To achieve the above object, the technical solution of the present invention is as follows:

[0011] A method for fusing heterogeneous point cloud data comprises the following steps:

[0012] Step 1. Preprocess the collected heterogeneous point cloud;

[0013] Step 2. Roughly align heterogeneous point clouds based on FPFH: First, calculate the normal vector of the point cloud, and then find the FPFH feature of the point cloud. Then, determine the corresponding relationship of the FPFH features through nearest neighbor matching, and finally solve the transformation matrix of the heterogeneous point cloud through singular value decomposition (SVD).

[0014] Step 3. Perform fine registration of heterogeneous point clouds after rough registration based on voxelized GICP fine registration algorithm: GICP introduces additional probabilistic information to deal with the uncertainty between point clouds. It not only considers the spatial distance between points, but also the geometric information of the point cloud surface, unifies the point-to-point registration and point-to-surface registration, thereby further improving the accuracy and robustness of the registration. At the same time, the GICP algorithm is decomposed into voxels to avoid too many nearest neighbor searches. At the same time, the calculation process after voxelization can be distributed to other processors for parallel processing, thereby improving the calculation efficiency.

[0015] Step 4. Filter and repair the point cloud after precise registration in step 2 based on point cloud repulsion and normal vector weighting algorithm;

[0016] Step 5. Homogenize the repaired point cloud based on the downscaling voxel grid method to complete the fusion of heterogeneous point clouds.

[0017] Furthermore, the heterogeneous point cloud in step 1 includes any two of the point clouds collected by vehicle-mounted laser radar, the point cloud collected by airborne laser radar, and the point cloud generated by oblique photography reconstruction.

[0018] Furthermore, in step 1, the specific process of preprocessing is:

[0019] Step 1.1. Perform voxel filtering on the collected heterogeneous point clouds, divide the point cloud data space into voxels (cube units), and retain a representative point in each voxel to achieve data downsampling while maintaining the overall shape and characteristics of the original point cloud data, so that the point cloud density of the two sets of point clouds to be registered is consistent. The specific process is:

[0020] Step 1.1.1. According to the position of the point cloud data in the coordinate system, calculate the maximum and minimum values ​​of the coordinates, which are recorded as X max , Y max , Z max and X min , Y min , Z min ;

[0021] Step 1.1.2. Calculate the side length l of the minimum bounding box of the point cloud data based on the maximum and minimum coordinate values ​​of the point cloud data x , l y , l z , used to determine the size of the voxel grid;

[0022] Step 1.1.3. Determine the parameters of the voxel grid, i.e., the number and arrangement of voxels, according to the voxel grid size;

[0023] Step 1.1.4. Calculate the index h of each voxel grid in the point cloud data, and perform corresponding statistics and sorting operations;

[0024] Step 1.1.5. Count the elements in index h and sort them in ascending or descending order, then calculate the average coordinate of the point cloud in each voxel grid, and use this average to replace the coordinates of all points in the grid;

[0025] Step 1.2. Perform radius filtering on the point cloud data after voxel filtering. The specific process is as follows:

[0026] Step 1.2.1. Establish a KD tree based on the point cloud data after voxel filtering in step 1.1;

[0027] Step 1.2.2. For each point, find the number of point clouds within the neighborhood within the radius r using the KD tree search algorithm;

[0028] Step 1.2.3. According to the given point cloud density threshold, determine whether the density of the point cloud is less than the threshold; if the point cloud density is greater than the threshold, the point cloud data is retained as a normal point; otherwise, the point cloud data is regarded as an outlier and deleted from the data set;

[0029] Step 1.2.4. Repeat steps 1.2.1 to 1.2.3 until all point cloud data are processed, that is, the outlier points are filtered out.

[0030] Furthermore, the specific process of step 2 rough registration is as follows:

[0031] Step 2.1. Build index: Build KD tree index for the two sets of heterogeneous point clouds input;

[0032] Step 2.2. Define the neighborhood: For each query point in the point cloud, define a local neighborhood using a spherical neighborhood with a fixed radius, which can be adjusted according to the density and distribution of the point cloud;

[0033] Step 2.3. Calculate the normal vector of each point: In the neighborhood of each query point, use the points in the neighborhood to fit a plane using the least squares method, and use the normal vector of the plane as the normal direction of the point, and the inverse of the curvature radius as the curvature, by minimizing the residual Calculate the normal vector for each query point:

[0034]

[0035] The point coordinates are (x i ,y i ,z i ), the normal vector is (a, b, c); i is the i-th query point, and the total number of query points is s;

[0036] Step 2.4. Calculate the point feature histogram (SPFH): Calculate the three angle eigenvalues ​​α, φ, θ of each query point and its neighboring points in the neighborhood, as shown in Formula 2, divide each eigenvalue range into m sub-intervals, count the number of corresponding eigenvalues ​​falling within the sub-interval range, and form a simplified point feature histogram SPFH, which is a 3m-dimensional vector;

[0037]

[0038] Among them, u, v, w are coordinate axes, is the normal vector of the query point, P t , P s are the coordinates of the query point and the neighboring points, respectively, and d k is the Euclidean distance between the query point and its adjacent points in the neighborhood;

[0039] Step 2.5. Perform weighted statistics on the histogram: For each query point, perform weighted statistics on its own SPFH to form the final FPFH feature:

[0040]

[0041] Among them, d k Represents the Euclidean distance between the query point and its neighboring points, which is used as the weight of FPFH;

[0042] Step 2.6. After FPFH feature extraction, feature matching is performed on the features in the two sets of heterogeneous point clouds to find their corresponding relationship:

[0043] The Euclidean distance τ of the feature vector is used as the similarity metric to calculate the similarity between features. As shown in Formula 4, the smaller the distance, the higher the similarity. The corresponding feature with the smallest distance is selected as the best match.

[0044]

[0045] Among them, f 1q , f 2q Respectively represent the value of the qth element in the FPFH features of the two points, q = 1, 2, ..., m;

[0046] Step 2.7. Based on the correspondence between point cloud features, use SVD to calculate the transformation matrix of the heterogeneous point cloud to achieve rough alignment of the heterogeneous point cloud.

[0047] Furthermore, the specific process of step 3 fine registration is as follows:

[0048] Step 3.1. Matching point pairs: Use the transformation matrix obtained by coarse registration as the initial transformation matrix of GICP. According to the initial transformation matrix, for each point in the source point cloud, find its nearest neighbor in the target point cloud;

[0049] Step 3.2. Voxelization and parallel calculation of transformation matrix. The specific process is as follows:

[0050] Step 3.2.1. Set the voxel resolution and then divide the point cloud into voxels;

[0051] Step 3.2.2. According to the correspondence of the current point cloud obtained in step 3.1, calculate the optimal transformation matrix. The specific calculation process is:

[0052] Two heterogeneous point clouds A = {a i} and B = {b j}, where point cloud A is used as the target point cloud and point cloud B is used as the source point cloud;

[0053] Assuming that A and B follow normal distribution, then and in and are the covariance matrices corresponding to the points, For point a i The estimate, For point b j estimates;

[0054] Assume that the transformation matrix is ​​T, then the distance error d between the point in the target point cloud A and the point in the source point cloud B isi :

[0055]

[0056] Therefore, d i It also obeys the normal distribution, that is:

[0057]

[0058] T T is the transpose of the transformation matrix T;

[0059] Use the maximum likelihood estimation method to solve the transformation matrix T:

[0060]

[0061] By simplifying, we can get:

[0062]

[0063] Among them, N i Indicates the number of neighborhood points;

[0064] Step 3.2.3. Update the source point cloud B using the transformation matrix T in each voxel;

[0065] a i =T·a i (9)

[0066] Calculate the distance error d of the point cloud in each voxel separately i and the Jacobian matrix J i ,

[0067]

[0068] The distance error and Jacobian matrix are reduced and merged to form the overall distance error d and Jacobian matrix J;

[0069] d=d∪d i J=J∪J i (11)

[0070] Step 3.2.4. Iterate: Update the transformation matrix by Gauss-Newton optimization method.

[0071] T k+1 =T k -(J T J) -1 J T d (12)

[0072] During the iteration process, it is determined whether the transformation matrix T meets the convergence condition. If not, the calculated optimal transformation matrix is ​​used as the initial transformation matrix to continue the iteration, otherwise the iteration is terminated; the convergence condition is that the change amount of the transformation matrix reaches the first threshold or the number of iterations reaches the set value;

[0073] Step 3.3. After the iteration is completed, output the final transformation matrix;

[0074] Step 3.4. Based on the final transformation matrix, the precise registration of two sets of heterogeneous point clouds can be achieved.

[0075] Furthermore, in step 3.2, the calculation of updating the transformation matrix in each voxel can be completed in the GPU thread.

[0076] Furthermore, in step 4, the specific process of filtering and repairing the point cloud after precise registration in step 3 based on the point cloud repulsion force and normal vector weighting is as follows:

[0077] Step 4.1. Perform initial filtering on the point cloud after precise registration in step 3 based on the reference point cloud filtering method: set filtering parameters for the two source point clouds involved in the registration based on the point cloud density, take one type of point cloud as the standard reference point cloud, and filter out the other type of point cloud;

[0078] Step 4.2. The initial filtering result is subjected to secondary filtering using a point cloud filtering method based on the idea of ​​repulsive force. The specific process is as follows:

[0079] Step 4.2.1. Set the maximum number of neighboring points maxnum. If there are more than maxnum points within the search radius of a point, it is considered that the feature of the point can be fully represented by other points and is directly filtered out; otherwise, execute step 4.2.2;

[0080] Step 4.2.2. Calculate the repulsive force between a point and its neighboring points. The calculation formula is,

[0081]

[0082] Where F represents the total repulsive force from a point to all its neighboring points, d σ is the Euclidean distance between the point and the σth point of another type within the search radius;

[0083] Step 4.2.3. Set the repulsion threshold F t , when the repulsive force between a point and its neighboring points exceeds this threshold, it is considered that the two types of points cannot coexist, that is, they are filtered out, otherwise the point is saved;

[0084] Step 4.3. Perform generative point cloud repair under normal vector weighting on the point cloud filtered in step 4.2. The specific process is as follows:

[0085] Step 4.3.1. Point cloud normal vector estimation includes the following steps:

[0086] Step 4.3.1.1. Select a point from the point cloud data as the center point And define a neighborhood of the point, in which k points are related to The set of closest points is N p ;

[0087] Step 4.3.1.2. For the set N p Centralize the point set in , that is, convert the coordinates of each point from the real coordinate system to a coordinate system centered at zero;

[0088] Step 4.3.1.3. Calculate the covariance matrix of the point set and perform eigenvalue decomposition on the matrix to obtain three eigenvectors and corresponding eigenvalues. The calculation formula is:

[0089]

[0090] in, is the centroid coordinate vector of the neighborhood in step 4.3.1.1, λ j and is the jth eigenvalue of the covariance matrix C and its corresponding eigenvector;

[0091] The eigenvector corresponding to the smallest eigenvalue is the normal vector of the point set;

[0092] Step 4.3.2. Generate a patch point cloud, including the following steps:

[0093] Step 4.3.2.1. Identification of key filtering points: For each filtering point p α , calculate its normal vector in the original point cloud Then in p α Find all the filtered points {p β}, calculate the rate of change of the normal vector if χ is the threshold, then p α Defined as the critical filter removal point;

[0094] Step 4.3.2.2. Calculation of weighted geometric center: By traversing each reserved point p k , determine all key filter points {p α}, for each key filter point in the neighborhood, calculate its distance to p k The Euclidean distance d ki , and then use d ki and For each p α Weighted, get the weighted value wkα , the calculation formula of the weighted value is shown in formula 16:

[0095]

[0096] where d max Yes all kα The maximum value in Yes all The minimum value in ;

[0097] Take the weighted average of the coordinates of all key filtered points to get the weighted geometric center C k , that is, the coordinates of the new point, as shown in formula 16:

[0098]

[0099] Step 4.3.2.3. Based on all weighted C k Points are generated to generate a new patching point cloud, which is added to the retained point cloud sequence, thereby completing the generative point cloud patching guided by normal vector weighting.

[0100] Furthermore, the specific process of step 5 is:

[0101] Step 5.1. Voxelize the retained point cloud according to a certain scale sequence;

[0102] Step 5.2. Determine the spatial boundary of the point cloud, create a three-dimensional grid based on the boundary, and assign each point in the point cloud to a corresponding voxel according to its spatial position;

[0103] Step 5.3. Check the number of points in each voxel grid. If a voxel contains more than two points, reduce the size of the voxel space by half and redistribute the point cloud to the reduced voxels until each voxel contains less than or equal to two points.

[0104] Step 5.4. Calculate the centroid of all points in each voxel in turn, and use the position of the centroid of each voxel as the position of the new point, thereby generating a homogenized point cloud.

[0105] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0106] 1. The present invention combines the coarse registration algorithm based on FPFH point features with the fine registration algorithm based on GICP to achieve accurate registration of heterogeneous point clouds in urban areas, aligning point cloud data from different sensors or different resolutions to the same coordinate system, providing important support for applications such as urban three-dimensional green volume calculation, urban modeling, urban planning, and monitoring changes. By combining these two algorithms, the speed and robustness of FPFH coarse registration and the accuracy and robustness of GICP fine registration can be fully utilized, thereby obtaining more reliable and accurate heterogeneous point cloud registration results in urban areas.

[0107] 2. To address the gap problem caused by point cloud registration, a point cloud fusion and repair strategy guided by normal vector weighting is used to repair the point cloud. Finally, a point cloud homogenization method constrained by voxel grid scale reduction is used to further improve the uniformity of the point cloud and reduce the redundancy of the point cloud, thereby realizing the point cloud data fusion after heterogeneous point cloud registration.

[0108] 3. By integrating the registration and fusion methods, the automatic processing of heterogeneous point cloud registration and fusion in urban areas can be realized, thus providing strong support for the further application and development of urban area point clouds in the fields of urban planning and smart city construction. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] Figure 1 This is an overall flow chart of the heterogeneous point cloud fusion method of the present invention.

[0110] Figure 2 This is the flow chart of the coarse registration algorithm based on FPFH point features.

[0111] Figure 3 Schematic diagram of FPFH feature extraction.

[0112] Figure 4 Flowchart for fine registration using the voxelized parallel GICP algorithm. DETAILED DESCRIPTION

[0113] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below in conjunction with the implementation modes and the accompanying drawings.

[0114] A method for fusing heterogeneous point cloud data. The overall flow chart of the method is as follows: Figure 1 As shown, the following steps are included:

[0115] Step 1. Preprocess the collected heterogeneous point clouds to obtain the heterogeneous point clouds to be registered. The heterogeneous point clouds include any two of the point clouds collected by vehicle-mounted laser radar, the point clouds collected by airborne laser radar, and the point clouds generated by oblique photography reconstruction. The specific process of preprocessing is as follows:

[0116] Step 1.1. Perform voxel filtering on the collected heterogeneous point clouds, divide the point cloud data space into voxels (cube units), and retain a representative point in each voxel, which can not only reduce the noise and data volume of the point cloud, but also achieve the purpose of downsampling, while maintaining the overall shape and characteristics of the original point cloud data, so that the point cloud density of the two sets of point clouds to be registered is consistent. The specific process is:

[0117] Step 1.1.1. According to the position of the point cloud data in the coordinate system, calculate the maximum and minimum values ​​of the coordinates, which are recorded as X max , Y max , Z max and X min , Y min , Z min ;

[0118] Step 1.1.2. Calculate the side length l of the minimum bounding box of the point cloud data based on the maximum and minimum coordinate values ​​of the point cloud data x , l y , l z , used to determine the size of the voxel grid;

[0119] Step 1.1.3. Determine the parameters of the voxel grid, i.e., the number and arrangement of voxels, according to the voxel grid size;

[0120] Step 1.1.4. Calculate the index h of each voxel grid in the point cloud data, and perform corresponding statistics and sorting operations;

[0121] Step 1.1.5. Count the elements in index h and sort them in ascending or descending order, then calculate the average coordinate of the point cloud in each voxel grid, and use this average to replace the coordinates of all points in the grid;

[0122] Step 1.2. Perform radius filtering on the point cloud data after voxel filtering to remove outliers in the point cloud. The specific process is as follows:

[0123] Step 1.2.1. Establish a KD tree based on the point cloud data after voxel filtering in step 1.1;

[0124] Step 1.2.2. For each point, find the number of point clouds within the neighborhood within the radius r using the KD tree search algorithm;

[0125] Step 1.2.3. According to the given point cloud density threshold, determine whether the density of the point cloud is less than the threshold; if the point cloud density is greater than the threshold, the point cloud data is retained as a normal point; otherwise, the point cloud data is regarded as an outlier and deleted from the data set;

[0126] Step 1.2.4. Repeat steps 1.2.1 to 1.2.3 until all point cloud data are processed, that is, the outlier points are filtered out;

[0127] Step 2. Roughly align heterogeneous point clouds based on FPFH: First, calculate the normal vector of the point cloud, and then find the FPFH features of the point cloud. Then, determine the corresponding relationship of the FPFH features through nearest neighbor matching, and finally solve the transformation matrix of the heterogeneous point cloud through singular value decomposition (SVD).

[0128] The algorithm flow chart of rough registration is as follows: Figure 2 As shown, the specific process is:

[0129] Step 2.1. Build index: Build KD tree index for the two sets of heterogeneous point clouds input;

[0130] Step 2.2. Define the neighborhood: For each query point in the point cloud, define a local neighborhood using a spherical neighborhood with a fixed radius, which can be adjusted according to the density and distribution of the point cloud;

[0131] Step 2.3. Calculate the normal vector of each point: In the neighborhood of each query point, use the points in the neighborhood to fit a plane using the least squares method, and use the normal vector of the plane as the normal direction of the point, and the inverse of the curvature radius as the curvature, by minimizing the residual Calculate the normal vector for each query point:

[0132]

[0133] The point coordinates are (x i ,y i ,z i ), the normal vector is (a, b, c); i is the i-th query point, and the total number of query points is s;

[0134] Step 2.4. Calculate the point feature histogram (SPFH): Calculate the three angle eigenvalues ​​α, φ, θ of each query point and its neighboring points in the neighborhood, as shown in Formula 2, divide each eigenvalue range into 11 sub-intervals, and count the number of corresponding eigenvalues ​​falling within the sub-interval range to form a simplified point feature histogram SPFH, which is a 33-dimensional vector;

[0135]

[0136] Among them, u, v, w are coordinate axes, is the normal vector of the query point, P t , P s are the coordinates of the query point and the neighboring points, respectively, and d k is the Euclidean distance between the query point and its adjacent points in the neighborhood;

[0137] Step 2.5. Perform weighted statistics on histograms: For each query point, perform weighted statistics on its own SPFH to form the final FPFH feature. The schematic diagram of FPFH feature extraction is shown in the figure. Figure 3 As shown:

[0138]

[0139] Among them, d k Represents the Euclidean distance between the query point and its neighboring points, which is used as the weight of FPFH;

[0140] Step 2.6. After FPFH feature extraction, feature matching is performed on the features in the two sets of heterogeneous point clouds to find their corresponding relationship. The principle is to match based on the similarity between features. It calculates the similarity measure between the two sets of features and then finds the best corresponding relationship:

[0141] The Euclidean distance τ of the feature vector is used as the similarity metric to calculate the similarity between features. As shown in Formula 4, the smaller the distance, the higher the similarity. The corresponding feature with the smallest distance is selected as the best match.

[0142]

[0143] Among them, f 1q , f 2q Respectively represent the value of the qth element in the FPFH features of the two points, q = 1, 2, ..., m;

[0144] Step 2.7. Based on the correspondence of point cloud features, SVD is used to calculate the transformation matrix of the heterogeneous point cloud, so as to achieve rough registration of the heterogeneous point cloud;

[0145] Step 3. Since the coarse registration algorithm based on FPFH point features realizes the initial point cloud alignment by calculating the feature descriptors between heterogeneous point clouds, it cannot achieve very accurate results. Therefore, the voxelized GICP fine registration algorithm is used to finely align the heterogeneous point clouds after coarse registration: the traditional ICP algorithm is mainly used for point-to-point registration, that is, matching the points in one point cloud with the nearest points in another point cloud. Compared with the traditional ICP algorithm, GICP introduces additional probabilistic information to deal with the uncertainty between point clouds. It not only considers the spatial distance between points, but also the geometric information of the point cloud surface, unifies the point-to-point registration and the point-to-surface registration, and achieves the best alignment between point clouds by iteratively optimizing the transformation matrix. It can handle point clouds with more noise or local non-rigid deformation, thereby further improving the accuracy and robustness of the registration; at the same time, the GICP algorithm is voxelized to avoid more nearest neighbor searches, and the calculation process after voxelization can be distributed to other processors for parallel processing, thereby improving the computational efficiency;

[0146] The specific process diagram of precise registration is as follows: Figure 4 As shown, the following steps are included:

[0147] Step 3.1. Matching point pairs: Use the transformation matrix obtained by coarse registration as the initial transformation matrix of GICP. According to the initial transformation matrix, for each point in the source point cloud, find its nearest neighbor in the target point cloud;

[0148] Step 3.2. Voxelize and parallelize the transformation matrix. The calculation of updating the transformation matrix in each voxel can be completed in the GPU thread. The specific process is:

[0149] Step 3.2.1. Set the voxel resolution and then divide the point cloud into voxels;

[0150] Step 3.2.2. According to the correspondence of the current point cloud obtained in step 3.1, calculate the optimal transformation matrix. The specific calculation process is:

[0151] Two heterogeneous point clouds A = {a i} and B = {b j}, where point cloud A is used as the target point cloud and point cloud B is used as the source point cloud;

[0152] Assuming that A and B follow normal distribution, then and in and respectively

[0153] is the covariance matrix corresponding to the point, For point a i The estimate, For point b jestimates;

[0154] Assume that the transformation matrix is ​​T, then the distance error d between the point in the target point cloud A and the point in the source point cloud B is i :

[0155]

[0156] Therefore, d i It also obeys the normal distribution, that is:

[0157]

[0158] T T is the transpose of the transformation matrix T;

[0159] Use the maximum likelihood estimation method to solve the transformation matrix T:

[0160]

[0161] By simplifying, we can get:

[0162]

[0163] Among them, N i Indicates the number of neighborhood points;

[0164] Step 3.2.3. Update the source point cloud B using the transformation matrix T in each voxel;

[0165] a i =T·a i (9)

[0166] Calculate the distance error d of the point cloud in each voxel separately i and the Jacobian matrix J i ,

[0167]

[0168] The distance error and Jacobian matrix are reduced and merged to form the overall distance error d and Jacobian matrix J;

[0169] d=d∪d i J=J∪J i (11)

[0170] Step 3.2.4. Iterate: Update the transformation matrix by Gauss-Newton optimization method.

[0171] T k+1 =T k -(J T J) -1 J T d (12)

[0172] During the iteration process, it is determined whether the transformation matrix T meets the convergence condition. If not, the calculated optimal transformation matrix is ​​used as the initial transformation matrix to continue the iteration, otherwise the iteration is terminated; the convergence condition is that the change amount of the transformation matrix reaches the first threshold or the number of iterations reaches the set value;

[0173] Step 3.3. After the iteration is completed, output the final transformation matrix;

[0174] Step 3.4. Based on the final transformation matrix, the precise registration of two sets of heterogeneous point clouds can be achieved;

[0175] Step 4. By registering point cloud data from different sensors, a more accurate point cloud description of the actual environment can be obtained. However, due to the limitations of the characteristics of the data acquisition method itself and the inherent errors of the acquisition equipment itself, the registered heterogeneous point cloud data will still show many inconsistencies, such as point cloud distribution uniformity, point cloud noise level, etc. Most existing point cloud fusion technologies usually directly merge point clouds from two different sources through registration algorithms and remove a certain type of point cloud in the overlapping area. Although this method is simple, it performs poorly in dealing with internal outliers, deformations, and data redundancy caused by registration. It has neither fully utilized the advantages of heterogeneous point cloud registration nor significantly improved the accuracy and integrity of the point cloud.

[0176] For the data after heterogeneous point cloud registration, in order to eliminate redundant points and improve the accuracy of the point cloud model, the point cloud after precise registration in step 3 is filtered and repaired based on point cloud repulsion and normal vector weighting. The specific process is as follows:

[0177] Step 4.1. Perform initial filtering on the point cloud after precise registration in step 3 based on the reference point cloud filtering method: select a source point cloud with relatively high accuracy as the reference, set filtering parameters for the two source point clouds involved in the registration based on the point cloud density, take one type of point cloud as the standard reference point cloud, and filter out the other type of point cloud;

[0178] Step 4.2. The initial filtering result is subjected to secondary filtering using a point cloud filtering method based on the idea of ​​repulsive force. The specific process is as follows:

[0179] Step 4.2.1. Set the maximum number of neighboring points maxnum. If there are more than maxnum points within the search radius of a point, it is considered that the feature of the point can be fully represented by other points and is directly filtered out; otherwise, execute step 4.2.2;

[0180] Step 4.2.2. Calculate the repulsive force between a point and its neighboring points. The calculation formula is,

[0181]

[0182] Where F represents the total repulsive force from a point to all its neighboring points, d σ is the Euclidean distance between the point and the σth point of another type within the search radius;

[0183] Step 4.2.3. Set the repulsion threshold F t , when the repulsive force between a point and its neighboring points exceeds this threshold, it is considered that the two types of points cannot coexist, that is, they are filtered out, otherwise the point is saved;

[0184] For simpler scenes, such as when there is a high-quality vehicle-mounted lidar point cloud as a reference point cloud and oblique photography is used to reconstruct the point cloud as a supplement, the reference point cloud filtering method guided by the point cloud repulsion force can already filter out most of the redundant point clouds, thereby achieving the initial streamlined fusion of heterogeneous point clouds; however, the point cloud fusion problem in complex scenes cannot be accurately handled by only the basic repulsion force threshold and point number threshold. For example, when the density difference of heterogeneous point clouds is large, new "seams" will often be generated at the junction of the two point clouds after point cloud filtering, or more serious point cloud density unevenness will be caused, or even The feature details of the point cloud are lost. At the same time, affected by the point cloud acquisition method, the point cloud data in the actual scene often has the phenomenon of uneven density caused by the influence of distance. For example, the farther the vehicle-mounted radar point cloud is from the target object, the sparser the collected radar point cloud is. The point cloud obtained by the oblique photography reconstruction method is related to the specific attribute settings during reconstruction. Therefore, the threshold method with only fixed parameters has poor applicability. On the other hand, the current mainstream point cloud simplification algorithm does not consider the uniformity of the distribution of the simplified point cloud. The uniformly distributed point cloud can increase the accuracy of the point cloud normal vector estimation and improve the reliability of subsequent processing.

[0185] Step 4.3. Perform normal vector weighted generative point cloud repair on the point cloud filtered in step 4.2 to process the point cloud data after preliminary filtering, solve the problems of over-filtering and loss of point cloud details, and repair the "seam" problem caused by point cloud filtering. The specific process is as follows:

[0186] Step 4.3.1. Point cloud normal vector estimation includes the following steps:

[0187] Step 4.3.1.1. Select a point from the point cloud data as the center point And define a neighborhood of the point, in which k points are related to The set of closest points is N p ;

[0188] Step 4.3.1.2. For the set N p Centralize the point set in , that is, convert the coordinates of each point from the real coordinate system to a coordinate system centered at zero;

[0189] Step 4.3.1.3. Calculate the covariance matrix of the point set and perform eigenvalue decomposition on the matrix to obtain three eigenvectors and corresponding eigenvalues. The eigenvectors represent the three orthogonal main directions of the point distribution in the point cloud data, and the size of the eigenvalue represents the distribution range of the points in each direction. The calculation formula is:

[0190]

[0191] in, is the centroid coordinate vector of the neighborhood in step 4.3.1.1, λ j and is the jth eigenvalue of the covariance matrix C and its corresponding eigenvector;

[0192] The eigenvector corresponding to the smallest eigenvalue is the normal vector of the point set, because it points to the direction with the least change in point distribution, that is, the normal direction of the point cloud surface;

[0193] Step 4.3.2. Generate the patch point cloud. After filtering the reference point cloud, all the original point clouds are divided into two parts: retained points and filtered points. This process traverses all the filtered points and calculates the normal vectors of these points in the original point cloud space, so as to find the points whose normal vector change rate is greater than α in a certain neighborhood, and define these points as key filtered points. Further, traverse all the retained points, take each retained point as the center, consider all the key filtered points in a certain neighborhood, and weight them according to their previously calculated normal vector change rate, combined with the Euclidean distance from the key filtered point to the retained point, so as to use the weighted geometric center as the new point coordinates, and generate a new point as the generation point of the point cloud patching strategy;

[0194] The following steps are involved:

[0195] Step 4.3.2.1. Identification of key filtering points: For each filtering point p α , calculate its normal vector in the original point cloud

[0196] Then in p α Find all the filtered points {p β}, calculate the rate of change of the normal vector if χ is the threshold, then p α Defined as the critical filter removal point;

[0197] Step 4.3.2.2. Calculation of weighted geometric center: By traversing each reserved point p k , determine all key filter points {p α}, for each key filter point in the neighborhood, calculate its distance to p k The Euclidean distance dki , and then use d ki and For each p α Weighted, get the weighted value w kα , the calculation formula of the weighted value is shown in formula 16:

[0198]

[0199] where d max Yes all kα The maximum value in Yes all The minimum value in ;

[0200] Take the weighted average of the coordinates of all key filtered points to get the weighted geometric center C k , that is, the coordinates of the new point, as shown in formula 16:

[0201]

[0202] Step 4.3.2.3. Based on all weighted C k Points, generate a new patching point cloud, and add it to the reserved point cloud sequence, so as to complete the generative point cloud patching guided by normal vector weighting;

[0203] Step 5. Homogenize the patched point cloud based on the downscaling voxel grid method to complete the fusion of heterogeneous point clouds. The specific process is as follows:

[0204] Step 5.1. Voxelize the retained point cloud according to a certain scale sequence;

[0205] Step 5.2. Determine the spatial boundary of the point cloud, create a three-dimensional grid based on the boundary, and assign each point in the point cloud to a corresponding voxel according to its spatial position;

[0206] Step 5.3. Check the number of points in each voxel grid. If a voxel contains more than two points, reduce the size of the voxel space by half and redistribute the point cloud to the reduced voxels until each voxel contains less than or equal to two points.

[0207] Step 5.4. Calculate the centroid of all points in each voxel in turn, and use the position of the centroid of each voxel as the position of the new point, thereby generating a homogenized point cloud.

[0208] Example 1

[0209] First, the heterogeneous point cloud registration method is tested, and the time spent on each major part of the method is counted to analyze the time consumption of each part. Different scales of heterogeneous point clouds are input, and the time consumption of each stage of the heterogeneous point cloud registration algorithm is counted, and then the average time consumption of each stage is obtained as shown in Table 1.

[0210] Table 1 Time consumption of each stage of heterogeneous point cloud registration algorithm

[0211]

[0212] As can be seen from the table, the time consumption of the heterogeneous point cloud registration method is positively correlated with the scale of the heterogeneous point cloud. The larger the point cloud scale, the longer the time consumption, but the proportion of each stage to the total time remains roughly unchanged. From the perspective of the time consumption of each stage, the GICP-based fine registration algorithm consumes more time, while the heterogeneous point cloud reading, point cloud preprocessing and coarse registration algorithm based on FPFH point features consume less time. Heterogeneous point cloud reading mainly reads the point cloud PCD file into the program and converts it into the data structure in PCL. This part of the time consumption cannot be optimized in parallel. Point cloud preprocessing is to sample and denoise the heterogeneous point cloud through voxel filtering algorithm and radius filtering algorithm. This part of the algorithm is simple to calculate and takes less time. The coarse registration algorithm based on FPFH point features processes the point cloud extraction features, reduces the amount of data, and takes less time, so it is not the main content of parallel optimization. The GICP-based fine registration algorithm requires a large amount of matrix calculations and a large number of neighbor point searches during the iterative optimization process, which is time-consuming, so it is the main content of parallel optimization.

[0213] For the GICP-based precise registration algorithm, the CUDA parallel programming model is used to perform parallel optimization on the GICP-based precise registration algorithm. However, since the KD tree used by GICP in the calculation process cannot accelerate the process of searching for nearest neighbor points, it is necessary to first decompose the GICP algorithm into voxels to avoid too many nearest neighbor searches. At the same time, the calculation process after voxelization can be assigned to CUDA for parallel processing, thereby improving the computing efficiency.

[0214] The voxelized GICP algorithm works as follows:

[0215] First, based on the GICP algorithm, the target point cloud a is calculated i The distance error d to the nearby neighbors i :

[0216]

[0217] Likewise, d i It obeys the normal distribution and uses the maximum likelihood method to solve the transformation parameter T:

[0218]

[0219] By simplifying, we can get:

[0220]

[0221] Among them, N i Represents the number of neighborhood points, which can be quickly calculated in each voxel grid and And the value remains unchanged after calculation, and there is no need to solve it multiple times in subsequent iterations.

[0222] After reading the point cloud data on the CPU side, the point cloud is divided into voxels, and the calculation within each voxel after division is assigned to the GPU thread. The covariance matrix within each voxel is calculated, and the transformation matrix is ​​iteratively updated. After the convergence conditions are met, the transformation matrix is ​​transmitted back to the CPU side for output.

[0223] The effect of each part in the method of the present invention is evaluated:

[0224] For point cloud registration, we first use the Stanford dataset to verify the registration effect. The Stanford dataset is a well-known dataset used for computer graphics and computer vision research. It contains a series of 3D models. The most famous part of this dataset is the models obtained by scanning physical objects. These models are called Stanford scanned models. The accuracy comparison results of the various evaluation indicators of the registered point cloud computing and some other commonly used point cloud registration algorithms are shown in Table 2:

[0225] Table 2 Comparison of accuracy indicators of commonly used point cloud registration algorithms

[0226]

[0227] From the visualization results of the registration, on the Stanford dataset, since the point cloud data is good and not affected by too much noise, the registration effect of this algorithm is relatively good, and the point cloud is accurately registered. From the registration accuracy indicators, the RMSE (root mean square error), RRE (relative rotation error) and RTE (relative translation error) of each algorithm are relatively small, within 10 -5 to 10 -2 The average RMSE, RRE, and RTE results of the registration method of the present invention are 4.50×10 -4 , 5.41×10 -4 , 6.33×10 -5 ,Compared to other commonly used registration algorithms such as the NDT algorithm and the original GICP algorithm, the ,method of the present invention is mostly lower than other algorithms in terms of ,error accuracy.

[0228] Subsequently, the self-collected airborne image reconstructed point cloud and the vehicle / airborne lidar point cloud are used as heterogeneous point cloud input data. Appropriate areas are cropped from the three heterogeneous point clouds to test the heterogeneous registration method. The registration accuracy index is calculated, and the results are shown in Table 3:

[0229] Table 3 Comparison of accuracy indicators of heterogeneous point cloud registration algorithms

[0230]

[0231]

[0232] From the above comparison results, it can be seen that compared with the more standard Stanford dataset, the accuracy error in the dataset of the self-collected actual scene is generally larger, and each index is around 0 to 30. The heterogeneous point cloud method proposed in the present invention combines the advantages of FPFH features and GICP algorithm, and the accuracy of the registration results is higher than the original registration algorithm. Among them, the average values ​​of the accuracy indicators RMSE, RRE, and RTE are 5.21, 6.27, and 11.57 respectively. Compared with the GICP algorithm, the RMSE of the heterogeneous point cloud registration method proposed in the present invention is improved by 35%. Compared with the improvement of the Stanford dataset, the method of the present invention has greater advantages in processing heterogeneous point cloud data.

[0233] In the algorithm parallelization part, the entire code is implemented based on point cloud processing and parallel algorithm libraries such as PCL and Thrust. A 40GB NVIDIA A100 graphics card is used for parallel acceleration during registration. By performing registration experiments on heterogeneous point clouds of different sizes, the average time consumption of serial algorithms and parallel algorithms is statistically analyzed, and the comparison results of GICP serial algorithms and parallel algorithms are obtained, as shown in Table 4:

[0234] Table 4 Comparison of GICP algorithms under different point cloud scales

[0235]

[0236] It can be seen from the results that the GICP parallel algorithm of the present invention is basically consistent with the serial algorithm in terms of registration accuracy, but in terms of the time consumption of registration, the parallel algorithm is less time-consuming than the serial algorithm, and its acceleration ratio is about 2.61. As the scale of point cloud data increases, the acceleration ratio of the parallel algorithm will increase, and the parallel efficiency will be higher.

[0237] For the fusion algorithm after point cloud registration, the quantitative index evaluation results for multiple scenes are shown in Table 5. After filtering, the number of point clouds is reduced, the redundancy of point clouds is reduced, and the spatial standard deviation of point clouds is reduced, that is, the spatial uniformity of point clouds is improved.

[0238] Table 5 Quantitative index results

[0239]

[0240] After the source point cloud and the target point cloud are input into the heterogeneous point cloud fusion method, the FPFH-GICP algorithm is used to perform heterogeneous point cloud registration processing to obtain the transformation matrix of the point cloud. Then the transformation matrix is ​​applied to the source point cloud to convert it to the coordinate system of the target point cloud. Finally, the source point cloud and the target point cloud are input into the heterogeneous point cloud fusion method to obtain the final fused point cloud. Through experiments on the entire automatic processing process, the time consumption of each stage is shown in Table 6:

[0241] Table 6 Time consumption for automatic registration and fusion of heterogeneous point clouds

[0242]

[0243] The above description is only a specific implementation mode of the present invention. Any feature disclosed in this specification, unless otherwise stated, can be replaced by other alternative features that are equivalent or have similar purposes; all the disclosed features, or all the steps in the methods or processes, except for mutually exclusive features and / or steps, can be combined in any way.

Claims

1. A method for fusion of heterogeneous point cloud data. It is characterized in that The fusion method comprises the following steps: Step 1. Preprocess the collected heterogeneous point cloud; Step 2. Roughly align heterogeneous point clouds based on FPFH: First, calculate the normal vector of the point cloud, and then find the FPFH features of the point cloud. Then, determine the corresponding relationship of the FPFH features through nearest neighbor matching, and finally solve the transformation matrix of the heterogeneous point cloud through singular value decomposition (SVD). Step 3. Perform fine registration of heterogeneous point clouds after rough registration based on voxelized GICP fine registration algorithm: GICP introduces additional probabilistic information to deal with the uncertainty between point clouds. It not only considers the spatial distance between points, but also the geometric information of the point cloud surface, unifies the point-to-point registration and point-to-surface registration, thereby further improving the accuracy and robustness of the registration. At the same time, the GICP algorithm is decomposed into voxels to avoid too many nearest neighbor searches. At the same time, the calculation process after voxelization can be distributed to other processors for parallel processing, thereby improving the calculation efficiency. Step 4. Filter and repair the point cloud after precise registration in step 2 based on point cloud repulsion and normal vector weighting algorithm; Step 5. Homogenize the repaired point cloud based on the downscaling voxel grid method to complete the fusion of heterogeneous point clouds.

2. The method for fusing heterogeneous point cloud data according to claim 1, It is characterized in that The heterogeneous point clouds in step 1 include any two of the point clouds collected by vehicle-mounted laser radar, the point clouds collected by airborne laser radar, and the point clouds generated by oblique photography reconstruction.

3. The method for fusing heterogeneous point cloud data according to claim 1, It is characterized in that In step 1, the specific process of preprocessing is: Step 1.

1. Perform voxel filtering on the collected heterogeneous point clouds, divide the point cloud data space into voxels, and retain a representative point in each voxel to achieve data downsampling while maintaining the overall shape and characteristics of the original point cloud data so that the point cloud density of the two sets of point clouds to be registered is consistent. The specific process is as follows: Step 1.1.

1. According to the position of the point cloud data in the coordinate system, calculate the maximum and minimum values ​​of the coordinates, which are recorded as X max , Y max , Z max and X min , Y min , Z min ; Step 1.1.

2. Calculate the side length l of the minimum bounding box of the point cloud data based on the maximum and minimum coordinate values ​​of the point cloud data x , l y , l z , used to determine the size of the voxel grid; Step 1.1.

3. Determine the parameters of the voxel grid, i.e., the number and arrangement of voxels, according to the voxel grid size; Step 1.1.

4. Calculate the index h of each voxel grid in the point cloud data, and perform corresponding statistics and sorting operations; Step 1.1.

5. Count the elements in index h and sort them in ascending or descending order, then calculate the average coordinate of the point cloud in each voxel grid, and use this average to replace the coordinates of all points in the grid; Step 1.

2. Perform radius filtering on the point cloud data after voxel filtering. The specific process is as follows: Step 1.2.

1. Establish a KD tree based on the point cloud data after voxel filtering in step 1.1; Step 1.2.

2. For each point, find the number of point clouds within the neighborhood within the radius r using the KD tree search algorithm; Step 1.2.

3. According to the given point cloud density threshold, determine whether the density of the point cloud is less than the threshold; if the point cloud density is greater than the threshold, the point cloud data is retained as a normal point; otherwise, the point cloud data is regarded as an outlier and deleted from the data set; Step 1.2.

4. Repeat steps 1.2.1 to 1.2.3 until all point cloud data are processed, that is, the outlier points are filtered out.

4. The method for fusing heterogeneous point cloud data according to claim 1, It is characterized in that The specific process of step 2 rough registration is as follows: Step 2.

1. Build index: Build KD tree index for the two sets of heterogeneous point clouds input; Step 2.

2. Define the neighborhood: For each query point in the point cloud, define a local neighborhood using a spherical neighborhood with a fixed radius, which can be adjusted according to the density and distribution of the point cloud; Step 2.

3. Calculate the normal vector of each point: In the neighborhood of each query point, use the points in the neighborhood to fit a plane using the least squares method, and use the normal vector of the plane as the normal direction of the point, and the inverse of the curvature radius as the curvature, by minimizing the residual Calculate the normal vector for each query point: The point coordinates are (x i ,y i ,z i ), the normal vector is (a, b, c); i is the i-th query point, and the total number of query points is s; Step 2.

4. Calculate the point feature histogram: Calculate the three angle eigenvalues ​​α, φ, θ of each query point and its neighboring points in the neighborhood, as shown in Formula 2, divide each eigenvalue range into m sub-intervals, count the number of corresponding eigenvalues ​​falling within the sub-interval range, and form a simplified point feature histogram SPFH, which is a 3m-dimensional vector; Among them, u, v, w are coordinate axes, is the normal vector of the query point, P t , P s are the coordinates of the query point and the neighboring points, respectively, and d k is the Euclidean distance between the query point and its adjacent points in the neighborhood; Step 2.

5. Perform weighted statistics on the histogram: For each query point, perform weighted statistics on its own SPFH to form the final FPFH feature: Among them, d k Represents the Euclidean distance between the query point and its neighboring points, which is used as the weight of FPFH; Step 2.

6. After FPFH feature extraction, feature matching is performed on the features in the two sets of heterogeneous point clouds to find their corresponding relationship: The Euclidean distance τ of the feature vector is used as the similarity metric to calculate the similarity between features. As shown in Formula 4, the smaller the distance, the higher the similarity. The corresponding feature with the smallest distance is selected as the best match. Among them, f 1q , f 2q Respectively represent the value of the qth element in the FPFH features of the two points, q = 1, 2, ..., m; Step 2.

7. Based on the correspondence between point cloud features, use SVD to calculate the transformation matrix of the heterogeneous point cloud to achieve rough alignment of the heterogeneous point cloud.

5. The method for fusing heterogeneous point cloud data according to claim 1, It is characterized in that The specific process of step 3 fine registration is as follows: Step 3.

1. Matching point pairs: Use the transformation matrix obtained by coarse registration as the initial transformation matrix of GICP. According to the initial transformation matrix, for each point in the source point cloud, find its nearest neighbor in the target point cloud; Step 3.

2. Voxelization and parallel calculation of transformation matrix. The specific process is as follows: Step 3.2.

1. Set the voxel resolution and then divide the point cloud into voxels; Step 3.2.

2. According to the correspondence of the current point cloud obtained in step 3.1, calculate the optimal transformation matrix. The specific calculation process is: Two heterogeneous point clouds A = {a i } and B = {b j }, where point cloud A is used as the target point cloud and point cloud B is used as the source point cloud; Assuming that A and B follow normal distribution, then and in and are the covariance matrices corresponding to the points, For point a i The estimate, For point b j estimates; Assume that the transformation matrix is ​​T, then the distance error d between the point in the target point cloud A and the point in the source point cloud B is i : Therefore, d i It also obeys the normal distribution, that is: T T is the transpose of the transformation matrix T; Use the maximum likelihood estimation method to solve the transformation matrix T: By simplifying, we can get: Among them, N i Represents the number of neighborhood points; Step 3.2.

3. Update the source point cloud B using the transformation matrix T in each voxel; a i =T·a i (9) Calculate the distance error d of the point cloud in each voxel separately i and the Jacobian matrix J i , The distance error and Jacobian matrix are reduced and merged to form the overall distance error d and Jacobian matrix J; d=d∪d i J=J∪J i (11) Step 3.2.

4. Iterate: Update the transformation matrix by Gauss-Newton optimization method. T k+1 =T k -(J T J) -1 J T d (12) During the iteration process, it is determined whether the transformation matrix T meets the convergence condition. If not, the calculated optimal transformation matrix is ​​used as the initial transformation matrix to continue the iteration, otherwise the iteration is terminated; the convergence condition is that the change amount of the transformation matrix reaches the first threshold or the number of iterations reaches the set value; Step 3.

3. After the iteration is completed, output the final transformation matrix; Step 3.

4. Based on the final transformation matrix, the precise registration of two sets of heterogeneous point clouds can be achieved.

6. The method for fusing heterogeneous point cloud data according to claim 5, It is characterized in that In step 3.2, the calculation of updating the transformation matrix within each voxel can be completed in the GPU thread.

7. The method for fusing heterogeneous point cloud data according to claim 1, It is characterized in that The specific process of filtering and repairing the point cloud after precise registration in step 3 based on point cloud repulsion and normal vector weighting in step 4 is as follows: Step 4.

1. Perform initial filtering on the point cloud after precise registration in step 3 based on the reference point cloud filtering method: set filtering parameters for the two source point clouds involved in the registration based on the point cloud density, take one type of point cloud as the standard reference point cloud, and filter out the other type of point cloud; Step 4.

2. The initial filtering result is subjected to secondary filtering using a point cloud filtering method based on the idea of ​​repulsive force. The specific process is as follows: Step 4.2.

1. Set the maximum number of neighboring points maxnum. If there are more than maxnum points within the search radius of a point, it is considered that the feature of the point can be fully represented by other points and is directly filtered out; Otherwise, proceed to step 4.2.2; Step 4.2.

2. Calculate the repulsive force between a point and its neighboring points. The calculation formula is, Where F represents the total repulsive force from a point to all its neighboring points, d σ is the Euclidean distance between the point and the σth point of another type within the search radius; Step 4.2.

3. Set the repulsion threshold F t , when the repulsive force between a point and its neighboring points exceeds this threshold, it is considered that the two types of points cannot coexist, that is, they are filtered out, otherwise the point is saved; Step 4.

3. Perform generative point cloud repair under normal vector weighting on the point cloud filtered in step 4.

2. The specific process is as follows: Step 4.3.

1. Point cloud normal vector estimation includes the following steps: Step 4.3.1.

1. Select a point from the point cloud data as the center point And define a neighborhood of the point, in which k points are related to The set of closest points is N p ; Step 4.3.1.

2. For the set N p Centralize the point set in , that is, convert the coordinates of each point from the real coordinate system to a coordinate system centered at zero; Step 4.3.1.

3. Calculate the covariance matrix of the point set and perform eigenvalue decomposition on the matrix to obtain three eigenvectors and corresponding eigenvalues. The calculation formula is: Where p is the centroid coordinate vector of the neighborhood in step 4.3.1.1, and λ j and is the jth eigenvalue of the covariance matrix C and its corresponding eigenvector; The eigenvector corresponding to the smallest eigenvalue is the normal vector of the point set; Step 4.3.

2. Generate a patch point cloud, including the following steps: Step 4.3.2.

1. Identification of key filtering points: For each filtering point p α , calculate its normal vector in the original point cloud Then in p α Find all the filtered points {p β }, calculate the rate of change of the normal vector if χ is the threshold, then p α Defined as the critical filter removal point; Step 4.3.2.

2. Calculation of weighted geometric center: By traversing each reserved point p k , determine all key filter points {p α }, for each key filter point in the neighborhood, calculate its distance to p k The Euclidean distance d ki , and then use d ki and For each p α Weighted, get the weighted value w kα , the calculation formula of the weighted value is shown in formula 16: where d max Yes all kα The maximum value in Yes all The minimum value in ; Take the weighted average of the coordinates of all key filtered points to get the weighted geometric center C k , that is, the coordinates of the new point, as shown in formula 16: Step 4.3.2.

3. Based on all weighted C k Points are generated to generate a new patching point cloud, which is added to the retained point cloud sequence, thereby completing the generative point cloud patching guided by normal vector weighting.

8. The method for fusing heterogeneous point cloud data according to claim 1, It is characterized in that The specific process of step 5 is: Step 5.

1. Voxelize the retained point cloud according to a certain scale sequence; Step 5.

2. Determine the spatial boundary of the point cloud, create a three-dimensional grid based on the boundary, and assign each point in the point cloud to a corresponding voxel according to its spatial position; Step 5.

3. Check the number of points in each voxel grid. If a voxel contains more than two points, reduce the size of the voxel space by half and redistribute the point cloud to the reduced voxels until each voxel contains less than or equal to two points. Step 5.

4. Calculate the centroid of all points in each voxel in turn, and use the position of the centroid of each voxel as the position of the new point, thereby generating a homogenized point cloud.

Citation Information

Patent Citations

  • Complex mechanical part measurement point cloud registration method and system based on improved ICP

    CN115797418A

  • Registration method and system for optimizing mine point cloud proximity iteration based on descriptor features

    CN115797423A

  • Registration method for different-source point clouds

    CN117689703A

  • Surface point cloud directed normal vector correction method and device

    CN118037825A

Cited By

  • FPGA (Field Programmable Gate Array)-based acceleration method for iterative nearest point algorithm

    CN119850434A

  • An acceleration method of iterative closest point algorithm based on FPGA

    CN119850434B

  • Multi-level feature fusion adaptive point cloud registration method

    CN120318287A

  • A multi-level feature fusion adaptive point cloud registration method

    CN120318287B

  • Accurate registration method for laser point cloud of mobile measurement system

    CN120747180A