A fast vehicle-mounted laser point cloud automatic registration method in complex urban environment
By improving the ICP plane-to-plane algorithm and the Levenberg-Marquardt algorithm, and combining rod-shaped objects and edge feature points, the problems of low efficiency and weak robustness of vehicle-mounted laser point cloud registration in complex urban environments are solved, and fast and high-precision 3D reconstruction is achieved.
Patent Information
- Application Number
- CN202310895058.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-20
AI Technical Summary
Existing technologies for vehicle-mounted laser point cloud registration in complex urban environments are inefficient and lack robustness, making it difficult to achieve fast and high-precision 3D reconstruction.
An improved ICP plane-to-plane algorithm and the Levenberg-Marquardt algorithm are adopted, combining rod-shaped objects and edge feature points as registration primitives. The correspondence between feature points is quickly established using normal vector constraints and bidirectional KD trees, erroneous point pairs are eliminated, and global fine registration is performed through surface-to-surface and LM algorithms.
It achieves fast and accurate point cloud registration in complex urban environments, improves the accuracy and robustness of 3D reconstruction, reduces the requirements for the initial position, and is suitable for scenarios where it is difficult to obtain an accurate initial position in practical applications.
Smart Images

Figure CN117152215B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot autonomous navigation technology, specifically to a method for rapid automatic registration of vehicle-mounted laser point clouds in complex urban environments. Background Technology
[0002] 3D laser point cloud scanning technology boasts advantages such as high efficiency, wide range, and high accuracy in 3D modeling. In recent years, with the rapid development of autonomous driving and mobile robots, Simultaneous Localization and Mapping (SLAM) has been widely applied in various scenarios. Point cloud registration technology is a crucial step in 3D modeling; it involves scanning point cloud data from different angles and placing them in the same coordinate system. It plays a significant role in the development of reverse engineering, VR scenes, unmanned surveying, cultural relic restoration, and medical fields, making the research significance of point cloud registration technology even more important.
[0003] Traditional point cloud registration methods are manual or semi-automatic. For example, three or more targets are placed in the scene, and the common target positions of adjacent point cloud data are identified manually or semi-automatically to obtain the transformation matrix and complete the registration. In practical applications, due to limitations such as scene and cost, target placement is often impossible, and the registration process using this method is cumbersome and inefficient. Therefore, it is necessary to research a target-free, automatic, fast, and efficient point cloud registration method to obtain a good registration result, facilitating subsequent point cloud 3D reconstruction, target recognition, and segmentation.
[0004] Currently, algorithms based on global search strategies and statistical probabilistic algorithms are mainly used. Global search strategies involve setting certain constraints and searching for point pairs that satisfy these conditions globally within the point cloud, then iteratively selecting the optimal transformation matrix. The most classic algorithm is the Iterative Closest Point (ICP) algorithm proposed by Besl and McKay (1992), which iteratively searches for the closest point in another point cloud globally until the sum of all distances is minimized. This algorithm requires the two point clouds to have good initial positions and be in an inclusive relationship; otherwise, it easily gets trapped in local optima and fails to achieve good results. Therefore, many researchers have improved the ICP algorithm, but only for precise registration after obtaining good initial positions, resulting in low efficiency and poor robustness. Subsequent proposals have used the distance from a point to a surface instead of the point-to-point distance in ICP, reducing the number of iterations. In addition, the 4-PointsCongruentSets algorithm proposed by Aiger et al. (2008) is also a relatively efficient algorithm based on the global search strategy. This algorithm uses the RANSAC algorithm framework, uses affine invariance constraints to construct four coplanar points, finds the best matching congruent four-point set in the target point cloud, and thus calculates the transformation matrix. However, it is less efficient and has higher computational complexity.
[0005] Statistical probabilistic algorithms estimate the distribution of point clouds using probability density functions and obtain the transformation matrix between two point clouds through optimization techniques. Compared with the traditional ICP algorithm, this type of algorithm achieves better registration results. Biber et al. (2003) first applied the Normal Distributions Transform (NDT) algorithm to the registration of two-dimensional point cloud data, achieving good results. Magnusson et al. (2007) improved upon the 2D-NDT algorithm, proposing the 3D-NDT algorithm for point cloud registration. This algorithm treats the point cloud as a Gaussian distribution function, transforming the registration problem into a nonlinear optimization problem. An initial estimate is required before registration; otherwise, the results will not be satisfactory. In addition, Jian et al. (2011) proposed a new probabilistic framework, treating the point cloud as a Gaussian Mixture Model (GMM) and using the GMM to estimate the transformation between two point clouds. However, this algorithm has high computational complexity, is time-consuming, and is sensitive to point clouds with noise or uneven density distribution.
[0006] Vehicle-mounted laser scanning systems for acquiring urban scene data face challenges such as complex terrain features, diverse targets, unstructured descriptions, numerous discrete points, reflection distance errors, and low accuracy. The aforementioned methods also suffer from limitations such as sensitivity to noise points, high complexity, low registration efficiency, and weak robustness. Summary of the Invention
[0007] The purpose of this invention is to provide a rapid automatic registration method for vehicle-mounted laser point clouds in complex urban environments. Specifically, it involves Simultaneous Location and Mapping (SLAM) technology, which registers and fuses scan data from consecutive frames to achieve 3D reconstruction. Based on the long-term excellent stability and consistent extraction of pole-shaped objects in urban road scenes, this invention first extracts pole-shaped objects as target features and converts the point cloud (excluding ground points) into a depth map to extract edge feature points, thus ensuring compliance even with a relatively small number of pole-shaped objects. Then, a global fine registration is performed using a plane-to-plane algorithm improved from the Levenberg-Marquardt (LM) algorithm (ICP plane-to-plane). This not only reduces the requirements for the initial position but also accelerates the convergence speed of registration. An improved Iterative Closest Point (ICP) algorithm and normal vector constraints use pole-shaped objects and edge feature points as registration primitives, employ the SAC-IA algorithm to remove erroneous point pairs, and use a bidirectional KD-tree to quickly correspond feature point relationships, accelerating registration speed, improving accuracy, and enhancing robustness.
[0008] To achieve the above-mentioned technical objectives and effects, the present invention is implemented through the following technical solution:
[0009] A method for rapid automatic registration of vehicle-mounted laser point clouds in complex urban environments includes the following steps:
[0010] S1: Vehicle-mounted laser scanning typically generates point cloud datasets with different point densities, and then performs point cloud filtering and voxel downsampling;
[0011] S2: Cloth model filtering, setting a distance threshold to quickly separate ground points;
[0012] S3: Extract rod-shaped objects as registration units;
[0013] S4: Use the Radial Feature Alignment (NARF) algorithm to extract edge key points;
[0014] S5: Global fine registration is performed using the ICP plane-to-plane algorithm improved by the plane-to-plane and Levenberg-Marquardt (LM) algorithms.
[0015] Furthermore, the point cloud filtering and voxel downsampling specifically include: Vehicle-mounted laser scanning typically generates point cloud datasets with varying point densities, resulting in outliers whose information is unusable. Statistical filters are primarily used to filter out outliers in the point cloud. The average distance from each point to its k nearest neighbors is calculated. Assuming the result is a Gaussian distribution, its shape determined by the mean and standard deviation, points whose average distance falls outside the standard range can be defined as outliers and removed from the data. The probability density function of the Gaussian random variable n is...
[0016]
[0017] Where: u represents distance. Let σ represent the mean of all u values, and σ represent the standard deviation.
[0018] Distance threshold d max It can be represented as
[0019] d max =u+α·σ (2)
[0020] α is a constant, also known as a scaling factor, which depends on the number of neighboring points; finally, the point cloud is traversed again, and points whose average distance to k neighboring points is greater than d are removed. max point.
[0021] Voxel size calculation is crucial for voxelization sampling; a reasonable voxel size can effectively simplify the original point cloud. First, a suitable value for L is determined. The value of L directly affects the downsampling rate of the point cloud. When L is too large, more points fall within the voxel, resulting in a low sampling rate and loss of local features. When L is small, fewer points fall within the voxel, resulting in a higher sampling rate. While this can better preserve local features, the sampling results are not significant. To address this issue, the voxel side length L is estimated by combining the downsampling rate ρ and the point cloud density.
[0022]
[0023] In the formula: L′ represents the estimated voxel side length; s is the average number of point clouds per unit voxel; γ is the point cloud density. The expressions for s and γ are as follows:
[0024]
[0025] In the formula: N is the number of points in the point cloud. Substituting equations (3) and (4) into equation (2) yields...
[0026]
[0027] To determine the appropriate voxel side length L, the bounding box of the point cloud P is divided. To better preserve the voxel's topographic features and calculate the centroid of all points within the voxel, the calculated centroid point P is used.k Let ' be used as the downsampling point. k ′ represents
[0028]
[0029] In the formula: To calculate the number of points within the k-th voxel, k∈[1,2,…,m]. Equation (6) yields the new point cloud P′, which is the final downsampled point cloud.
[0030] Furthermore, step S2 specifically involves: inverting the point cloud and then covering the flipped surface with cloth from above. By analyzing the interaction between the nodes and corresponding points of the cloth model, the final shape of the cloth model is determined, and the ground and non-ground areas are distinguished based on its shape.
[0031] Furthermore, the extraction of rod-shaped objects specifically includes: firstly, using K-means unsupervised classification on the non-ground point cloud; then, labeling the scene point cloud of roadside trees, streetlights, signs, and utility poles after classification, and extracting the tree trunks, streetlights, signs, and utility poles as rod-shaped targets. To ensure the effectiveness of rod-shaped object extraction, firstly, a spatial grid is established on the classified point cloud using the box method, and redundant point clouds higher than the rod-shaped objects are removed using an elevation threshold; then, the Random Sample Consensus Algorithm (RANSAC) is used to traverse the grid's top-down view, and a cylindrical radius is set with the tree trunk as the center, searching for arc-shaped point sets in the radius's neighborhood; finally, by judging the grid density, minimum number of support points, and angle threshold perpendicular to the elevation, those within the grid that meet the requirements are considered rod-shaped point clouds. Urban streetlights have horizontally extending areas at their heads, and the point cloud count at the head of streetlights and the sign body is relatively small. By setting different density and minimum support point cloud count thresholds, rod-shaped point cloud sets can be accurately extracted.
[0032] Based on the extreme values of the coordinates in the point cloud, an m×n grid with side length L is constructed, dividing the point cloud data into a regular two-dimensional grid. The calculation methods for m and n are as follows:
[0033]
[0034] In the formula: X max X min Y max and Y min The extreme value of the point cloud is L, which is the grid width, set according to the point cloud density. In this invention, it is set to 1 meter.
[0035] The RANSAC algorithm was used to search for and fit a circle to extract cylindrical point clouds, with the radius buffer range set to 0.05–0.5 meters.
[0036]
[0037] In the formula: The coordinates of each point, For the center of each fitted circle, R i Let d be the radius. i e is the distance to each cylinder. i This indicates the degree of difference between the grid block and the fitted circle.
[0038] Furthermore, the extraction of edge key points specifically includes: using the Radial Feature Alignment (NARF) algorithm to extract edge key points. NARF is a 3D feature point detection and description algorithm that uses a distance image generated from a point cloud to extract the boundary between the foreground and background. Key points are extracted from objects identified in the distance image, which is more efficient than operating directly on the point cloud. The extraction process considers edge and object surface variation information. The position of the key points can be reliably and repeatedly detected from different viewpoints, requiring a stable support region and the ability to compute descriptors and unique normal vectors.
[0039] Extracting edge key points specifically includes the following sub-steps:
[0040] S4.1: Traverse each depth image point and find locations with abrupt changes in depth in the nearest neighboring region for edge detection. For each point p in the image... i Select a square window neighborhood point within the same plane, denoted as . Where s is the window width. Calculate p i and The 3D distance (Euclidean distance) between each point in the interior is obtained. right Sort in ascending order to get Assume N pi There are at least M points connected to p. i Located on the same surface, choose δ = d M ′ as p i In p i -s is the distance between non-coplanar points in the neighborhood. For p i Calculate the four confidence levels (up, down, left, right) to represent the probability of an edge existing. The following example uses the right side:
[0041] First, calculate the average distance to the point on the right: Where m p To account for the number of points on the right, p x,y This represents a point at position (x, y) in the image. Calculate the 3D distance d. right =||p x,y -p right ||and s right ∈[0,1):
[0042]
[0043] In the formula: s right The larger the value, the stronger the point p. i The more pronounced the change in distance on the right, the greater the probability of the existence of an edge.
[0044] The obtained s right The graph is smoothed to obtain continuous edges while improving robustness to noise, and p is determined. x,y The type to which the point belongs, according to p x,y With p right 3D distance comparison, p x,y A smaller distance indicates a possible object boundary, while a larger distance indicates a shadow boundary. The window width s corresponding to the distance to the occlusion boundary is then calculated. right =max(0.9,(1-s) shadow ) 3 )×s right If s right ′ is greater than the threshold, and is (p x-1,y ,p x+1,y If p is the maximum value within the domain, then p is considered to be... x,y The object boundary is defined by the formula, and the shadow point and shadow boundary are found. The point located between the two is the occlusion point, which is the extracted interest feature point.
[0045] S4.2: Determine the coefficient for measuring surface change and the principal direction of change based on the surface changes in the nearest neighboring region. For each point p... i This is a distance-based image. The normal vector is estimated using the 3D positions of points within its 2D neighborhood whose Euclidean distance is within 2δ, and the Principal Component Analysis (PCA) algorithm. The principal direction ν and magnitude λ are calculated. For boundary points, ν is the edge direction; for other points, ν is the principal curvature direction, and λ is the magnitude of that direction. For each ν, a weight ω∈[0,1) is assigned: ω=1 for boundary points; ω=1-(1-λ) for other points. 3 Specify a parameter σ to represent the supported range size. For each point p in the image, find its Euclidean distance within... A point that is inside a surface and has no edges in between (two points lie on the same surface) is denoted as N. p ={p0,p1,…,p N}
[0046] right ν pi Projecting this onto a plane P, we obtain an angle α. pi , for α pi The following adjustments will be made:
[0047]
[0048] Such that α′∈(-180°,180°).
[0049] S4.3: Smooth the interest values. Use a bounded Gaussian kernel to smooth ω and α to obtain the interest point I at point p. p Points exceeding the threshold I are designated as points of interest.
[0050]
[0051]
[0052]
[0053] I(P)=I1(P)·I2(P) (14)
[0054] In the formula: I1(P) can extract the high-weight points, which are the points where the plane changes drastically; I2(P) can add points that have neighboring points and whose main direction changes drastically.
[0055] S4.4: Perform no-maximum compression to find the final keypoints, which are the NARF keypoints.
[0056] Furthermore, step S5 specifically includes:
[0057] Suppose there are two point clouds A = {a0, a1, ..., a...} N} and B = {b0, b1, ..., b N}, perform a nearest neighbor distance search, based on their corresponding index relationships, so that This holds true, where T is the transformation rigidity matrix, E(T) is the error loss function, and d is the Euclidean distance threshold. In the probabilistic model, it is assumed that there exist two point sets. and according to and Given A and B, in this case, and It is the covariance matrix associated with the measurement points. Assume T... * To correctly transform the rigid matrix, a perfect correspondence can be obtained.
[0058]
[0059] For any rigid matrix T, define And from this, we can draw the following conclusions. The distribution of, assuming a i and b i It is obtained from an independent Gaussian distribution, and then obtained through the above equation.
[0060]
[0061] Then, the maximum likelihood estimation is used to iteratively calculate T.
[0062]
[0063] Simplify the above equation to
[0064]
[0065] In the formula: Topt is the updated rigid transformation matrix, and T = R·t is the rigid matrix obtained by LM decomposition.
[0066] To improve performance relative to point-to-plane and increase model symmetry, a point-to-surface probabilistic model is used. Essentially, each measurement point only provides constraints along its surface normal. To construct this model, it is assumed that each sampling point has a high covariance distribution along its local plane and a very low covariance in the surface normal direction. If the surface normal of a point is n... i Then the covariance matrix becomes
[0067]
[0068] In the formula: α represents a small constant of the covariance along the normal. This corresponds to a very high confidence level and knowing the location along the normal, but not its location in the plane.
[0069]
[0070]
[0071] In the formula: s i , t i For a i and b i The normal vector of the corresponding point, R x Let be the rotation matrix of the transforming basis vectors.
[0072] Substituting (20) and (21) into equation (18) above, we can calculate the transformation rigidity matrix Topt. Thus, the plane-to-plane ICP algorithm is complete.
[0073] To reduce the impact of noise and outliers in the point cloud pairing process, the Cauchy loss function is used as a weighting function to combat noise and outliers. The improved ICP algorithm is as follows:
[0074]
[0075]
[0076] In the formula: ρ CauchyHere, r represents the weights of the Cauchy loss function, k is the loss parameter (usually k is 1.345), and r is the residual during optimization.
[0077] Substituting R obtained from LM decomposition into the above equation, we obtain... and Substitute the values into the equation to obtain the update transformation matrix Topt, and then calculate... This iteration makes The distance is less than the set Euclidean distance threshold τ, or the transformation update matrix is less than the set threshold. Set the number of iterations to 200, and stop iterating when one of the conditions is met.
[0078] The RMSE of the Euclidean distance between the point pairs is used as the evaluation of the registration error accuracy. From equation (22), the RMSE is as follows:
[0079]
[0080] In the formula: s i =(s ix ,s iy ,s iz ) represents the coordinates of the source point cloud, t i =(t ix ,t iy ,t iz ) represents the coordinates of the point cloud to be registered, and n represents the number of point pairs to be registered.
[0081] Furthermore, step S5 also includes: using the improved Iterative Closest Point (ICP) algorithm and normal vector constraints, the rod-shaped object and edge feature points are used as registration primitives, the sampling geometric consistency algorithm is used to remove erroneous point pairs, and the relationship between feature points is quickly corresponded using a bidirectional KD tree, thereby accelerating the registration speed and improving accuracy.
[0082] The beneficial effects of this invention are:
[0083] 1. Fast Registration: This method achieves fast and automatic registration of vehicle-mounted laser point clouds through an improved ICP plane-to-plane algorithm and the Levenberg-Marquardt (LM) algorithm. The improved ICP algorithm uses an iterative nearest-point matching strategy to achieve fast and accurate registration by matching planes in the point cloud. Compared with the traditional ICP algorithm, this method converges to the optimal solution more efficiently while maintaining matching accuracy, greatly improving the registration speed.
[0084] 2. High-precision 3D reconstruction: This method utilizes extracted rod-shaped features and edge feature points as registration primitives, achieving accurate 3D reconstruction through high-precision registration. Firstly, the extracted rod-shaped features exhibit excellent long-term stability and extraction consistency, serving as reliable registration features. Secondly, the use of normal vector constraints further enhances the accuracy of the registration process, thereby improving the precision of the reconstruction results. In this way, this method can achieve highly accurate 3D reconstruction in complex urban environments.
[0085] 3. Strong Robustness: This method enhances the robustness of registration by employing an improved ICP algorithm and a bidirectional KD-tree. The improved ICP algorithm uses face-to-face and LM algorithms for global registration to reduce registration errors. The bidirectional KD-tree quickly establishes the correspondence between feature points during the registration process, accelerating the registration speed and improving the registration accuracy. Furthermore, the robustness of registration is further enhanced by using the SAC-IA algorithm to remove erroneous point pairs, ensuring reliable registration results in complex urban environments.
[0086] 4. Low requirement for initial position: This method uses rod-shaped objects and edge feature points as registration primitives, reducing the requirement for the initial position during registration. Rod-shaped objects, as reliable registration features, can provide stable constraint information, reducing dependence on the initial position. This means that even if the initial position is not completely accurate, the method can still obtain high-quality registration results. This reduced requirement for the initial position improves the robustness and practicality of the method, making it particularly suitable for scenarios where accurate initial positions are difficult to obtain in real-world applications.
[0087] In summary, this invention features rapid registration, high-precision 3D reconstruction, strong robustness, and low requirements for initial position, providing an effective solution for automatic registration of vehicle-mounted laser point clouds in complex urban environments.
[0088] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0089] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0090] Figure 1 This is a schematic diagram of the overall process of the present invention;
[0091] Figure 2 This is a schematic diagram of the initial position of the two-point cloud as described in an embodiment of the present invention;
[0092] Figure 3 This is an image showing the ICP registration result as described in an embodiment of the present invention;
[0093] Figure 4 This is a diagram showing the point-to-surface ICP registration result as described in an embodiment of the present invention.
[0094] Figure 5 The diagram shows the result of the method of the present invention as described in the embodiments of the present invention.
[0095] Figure 6 This is a schematic diagram illustrating the principle of the cloth model filtering algorithm described in an embodiment of the present invention;
[0096] Figure 7 This is a schematic diagram of a point cloud color image according to an embodiment of the present invention;
[0097] Figure 8 This is a schematic diagram of the separated ground point cloud as described in an embodiment of the present invention;
[0098] Figure 9 This is a schematic diagram of a non-ground point cloud as described in an embodiment of the present invention;
[0099] Figure 10 This is a schematic diagram of the non-terrestrial point cloud classification results according to an embodiment of the present invention;
[0100] Figure 11 This is a schematic diagram of the land use type for the rod-shaped structure described in an embodiment of the present invention;
[0101] Figure 12 This is a schematic diagram of tree pole and street light projection extraction according to an embodiment of the present invention; (a) street light pole extraction; (b) tree trunk extraction;
[0102] Figure 13 This is a schematic diagram showing the extraction results and local details of the rod-shaped object described in an embodiment of the present invention;
[0103] Figure 14 This is a schematic diagram of edge feature points extracted by NARF according to an embodiment of the present invention;
[0104] Figure 15 This is a schematic diagram of plane-to-plane matching according to an embodiment of the present invention; Detailed Implementation
[0105] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0106] Example 1
[0107] To verify the feasibility of the proposed invention, the large-scale urban outdoor point cloud dataset Toronto-3D was selected. The point clouds in this dataset were obtained using the Teledyne Optech Maverick2 vehicle-mounted laser scanning system. This system consists of a 32-line LiDAR sensor, a Ladybug5 panoramic camera, a GNSS system, and a SLAM system. This invention uses a regional data set (21,567,172 points), covering an area of approximately 250 meters. Compared with existing ICP and point-to-area ICP techniques, this invention offers higher efficiency, higher accuracy, and better robustness, enabling efficient and accurate registration of vehicle-mounted laser point clouds in complex urban scenes.
[0108] A method for rapid automatic registration of vehicle-mounted laser point clouds in complex urban environments includes the following steps:
[0109] S1: Vehicle-mounted laser scanning typically generates point cloud datasets with different point densities, and then performs point cloud filtering and voxel downsampling;
[0110] S2: Cloth model filtering, setting a distance threshold to quickly separate ground points;
[0111] S3: Extract rod-shaped objects as registration units;
[0112] S4: Use the Radial Feature Alignment (NARF) algorithm to extract edge key points;
[0113] S5: Global fine registration is performed using the ICP plane-to-plane algorithm improved by the plane-to-plane and Levenberg-Marquardt (LM) algorithms.
[0114] Example 2
[0115] When the number of point clouds is large, traditional ICP algorithms suffer from low registration efficiency and poor fusion results. The use of nearest neighbor pair search leads to long computation times, slow convergence, and reaching the iteration threshold. Furthermore, they are sensitive to noise and have poor robustness. [The text then abruptly shifts to a different topic:] ... Figure 2-5 Significant positional deviations are visible between the two methods. The point-to-surface ICP algorithm reduces the registration error considerably, although it converges faster than the traditional ICP algorithm, improving registration efficiency by 24 seconds. However, it still reaches the iteration threshold, indicating that the effect is not very good, with noticeable positional deviations remaining. In complex urban environments with low initial overlap and noise, the method of this invention demonstrates complete integration, shorter time, and faster convergence, reaching the set error threshold in just 20 iterations. Compared to traditional registration methods, it significantly improves efficiency, registration accuracy, and robustness, achieving lightweight, fast, and accurate point cloud registration.
[0116] Table 1 Registration accuracy and running time of each algorithm
[0117]
[0118] Example 3
[0119] Point cloud filtering and voxel downsampling
[0120] Vehicle-mounted laser scanning typically generates point cloud datasets with varying point densities, resulting in outliers whose information is unusable. Statistical filters are primarily used to filter out these outliers. They calculate the average distance from each point to its k nearest neighbors. Assuming the result follows a Gaussian distribution, the shape of which is determined by the mean and standard deviation, points whose average distance falls outside the standard range can be defined as outliers and removed from the data. The probability density function of the Gaussian random variable n is...
[0121]
[0122] Where: u represents distance. Let σ represent the mean of all u values, and σ represent the standard deviation.
[0123] Distance threshold d max It can be represented as
[0124] d max =u+α·σ (2)
[0125] α is a constant, also known as a scaling factor, which depends on the number of neighboring points; finally, the point cloud is traversed again, and points whose average distance to k neighboring points is greater than d are removed. max point.
[0126] Voxel size calculation is crucial for voxelization sampling; a reasonable voxel size can effectively simplify the original point cloud. First, a suitable value for L is determined. The value of L directly affects the downsampling rate of the point cloud. When L is too large, more points fall within the voxel, resulting in a low sampling rate and loss of local features. When L is small, fewer points fall within the voxel, resulting in a higher sampling rate. While this can better preserve local features, the sampling results are not significant. To address this issue, the voxel side length L is estimated by combining the downsampling rate ρ and the point cloud density.
[0127]
[0128] In the formula: L′ represents the estimated voxel side length; s is the average number of point clouds per unit voxel; γ is the point cloud density. The expressions for s and γ are as follows:
[0129]
[0130] In the formula: N is the number of points in the point cloud. Substituting equations (3) and (4) into equation (2) yields...
[0131]
[0132] To determine the appropriate voxel side length L, the bounding box of the point cloud P is divided. To better preserve the voxel's topographic features and calculate the centroid of all points within the voxel, the calculated centroid point P is used. k Let ' be used as the downsampling point. k ′ represents
[0133]
[0134] In the formula: To calculate the number of points within the k-th voxel, k∈[1,2,…,m]. Equation (6) yields the new point cloud P′, which is the final downsampled point cloud.
[0135] Example 4
[0136] Cloth Model Filtering (CFS) Ground Separation
[0137] like Figure 6-9 As shown, ground point information is limited and unsuitable as feature points. Removing ground points not only reduces redundancy in point cloud data but also accelerates registration and classification extraction for greater accuracy. Typically, urban road ground point clouds have relatively small slope undulations, so a cloth model filtering method was chosen, and a distance threshold was set to quickly separate ground points. An overview of the algorithm is as follows... Figure 6 As shown. First, the point cloud is inverted, and then a cloth model is used to cover the inverted surface from above. By analyzing the interaction between the cloth's nodes and corresponding points, the final shape of the cloth is determined, and the ground and non-ground areas are distinguished based on its shape.
[0138] Example 5
[0139] Extract rod-shaped material
[0140] like Figure 10-13As shown, rod-shaped objects are abundant, relatively stable, and regular land cover types in cities, possessing significant object characteristics and making them suitable as registration primitives. To avoid misclassifying rod-shaped objects by mistakenly extracting building facades as rod-shaped objects, this invention first uses K-means unsupervised classification on non-ground point clouds. After classification, street trees, streetlights, signs, and utility poles in the scene point cloud are labeled, and the trunks of street trees, streetlights, signs, and utility poles are extracted as rod-shaped targets. To ensure the effectiveness of rod-shaped object extraction, a spatial grid is first established on the classified point cloud using the box method, and redundant point clouds above the rod-shaped objects are removed using an elevation threshold. Then, the Random Sampling Consensus Algorithm (RANSAC) is used to traverse the grid's top-down view, and a cylindrical radius is set with the tree trunk as the center, searching for arc-shaped point sets in the radius's neighborhood. Finally, by judging grid density, minimum number of support points, and an angle threshold perpendicular to the facade, points within the grid that meet the requirements are considered rod-shaped point clouds. The head of a city street light will have a horizontally extending area. The number of point clouds at the head of the street light and the sign body is relatively small. By setting different densities and minimum support point cloud number thresholds, the rod-shaped point cloud set can be accurately extracted.
[0141] Based on the extreme values of the coordinates in the point cloud, an m×n grid with side length L is constructed, dividing the point cloud data into a regular two-dimensional grid. The calculation methods for m and n are as follows:
[0142]
[0143] In the formula: X max X min Y max and Y min The extreme value of the point cloud is L, which is the grid width, set according to the point cloud density. In this invention, it is set to 1 meter.
[0144] The RANSAC algorithm was used to search for and fit a circle to extract cylindrical point clouds, with the radius buffer range set to 0.05–0.5 meters.
[0145]
[0146] In the formula: The coordinates of each point, For the center of each fitted circle, R i Let d be the radius. i e is the distance to each cylinder. i This indicates the degree of difference between the grid block and the fitted circle.
[0147] Example 6
[0148] Extracting edge feature points
[0149] like Figure 14As shown, edge points possess strong stability and repeatability, especially in large-scene data, where they perform well in feature detection and matching, and are extracted quickly. This invention considers that the quality of point cloud registration might be affected by a small number of rod-shaped objects, so it utilizes the Radial Feature Oriented by Normal (NARF) algorithm to extract edge key points. NARF is a 3D feature point detection and description algorithm that uses a distance image generated from the point cloud to extract the boundary between the foreground and background. Key points are extracted from objects identified in the distance image, which is more efficient than operating directly on the point cloud. The extraction process considers edge and object surface variation information. The position of the key points can be reliably and repeatedly detected from different viewpoints, requiring a stable support region and the ability to calculate descriptors and unique normal vectors. To meet these requirements, the following detection steps are proposed for key point extraction:
[0150] (1) Traverse each depth image point and find locations with abrupt changes in depth in the nearest neighboring region for edge detection. For each point p in the image... i Select a square window neighborhood point within the same plane, denoted as . Where s is the window width. Calculate p i and The 3D distance (Euclidean distance) between each point in the interior is obtained. right Sort in ascending order to get Assume N pi There are at least M points connected to p. i Located on the same surface, choose δ = d M ′ as p i In p i -s is the distance between non-coplanar points in the neighborhood. For p i Calculate the four confidence levels (up, down, left, right) to represent the probability of an edge existing. The following example uses the right side:
[0151] First, calculate the average distance to the point on the right: Where m p To account for the number of points on the right, p x,y This represents a point at position (x, y) in the image. Calculate the 3D distance d. right =||p x,y -p right ||and s right ∈[0,1):
[0152]
[0153] In the formula: s right The larger the value, the stronger the point p. i The more pronounced the change in distance on the right, the greater the probability of the existence of an edge.
[0154] The obtained s right The graph is smoothed to obtain continuous edges while improving robustness to noise, and p is determined. x,y The type to which the point belongs, according to p x,y With p right 3D distance comparison, p x,y A smaller distance indicates a possible object boundary, while a larger distance indicates a shadow boundary. The window width s corresponding to the distance to the occlusion boundary is then calculated. right =max(0.9,(1-s) shadow ) 3 )×s right If s right ′ is greater than the threshold, and is (p x-1,y ,p x+1,y If p is the maximum value within the domain, then p is considered to be... x,y The object boundary is defined by the formula, and the shadow point and shadow boundary are found. The point located between the two is the occlusion point, which is the extracted interest feature point.
[0155] (2) Determine the coefficient for measuring surface change and the main direction of change based on the surface changes in the nearest neighboring region. For each point p i This is a distance-based image. The normal vector is estimated using the 3D positions of points within its 2D neighborhood whose Euclidean distance is within 2δ, and the Principal Component Analysis (PCA) algorithm. The principal direction ν and magnitude λ are calculated. For boundary points, ν is the edge direction; for other points, ν is the principal curvature direction, and λ is the magnitude of that direction. For each ν, a weight ω∈[0,1) is assigned: ω=1 for boundary points; ω=1-(1-λ) for other points. 3 Specify a parameter σ to represent the supported range size. For each point p in the image, find its Euclidean distance within... A point that is inside a surface and has no edges in between (two points lie on the same surface) is denoted as N. p ={p0,p1,…,p N}
[0156] right ν pi Projecting this onto a plane P yields an angle. right The following adjustments will be made:
[0157]
[0158] Such that α′∈(-180°,180°).
[0159] (3) Smooth the interest values. Use a bounded Gaussian kernel to smooth ω and α to obtain the interest points I of point p. p Points exceeding the threshold I are designated as points of interest.
[0160]
[0161]
[0162]
[0163] I(P)=I1(P)·I2(P)(14)
[0164] In the formula: I1(P) can extract the high-weight points, which are the points where the plane changes drastically; I2(P) can add points that have neighboring points and whose main direction changes drastically.
[0165] (4) Perform no-maximum compression to find the final key point, which is the NARF key point.
[0166] Example 7
[0167] Improved ICP registration
[0168] Traditional ICP algorithms, which use the nearest point in Euclidean distance as the corresponding point, are susceptible to noise interference, introducing many erroneous point pairs. The solution obtained directly using least squares optimization is affected. Furthermore, eigenvalues decomposed using Singular Value Decomposition (SVD) are sensitive to noise, impacting registration accuracy and leading to large errors. Therefore, this invention utilizes a probabilistic model to construct plane-to-plane distances to search for corresponding points. The improved ICP is based on a simplified step added to the probabilistic model. While keeping the rest of the algorithm unchanged, computational complexity is reduced and registration speed is accelerated. Euclidean distance is still used instead of a probabilistic metric to calculate the correspondence. This allows the use of KD-trees when finding the nearest point, thus maintaining the main advantages of ICP over other fully probabilistic techniques: speed and ease of application. Minimizing the probability function can be nonlinearly optimized using methods such as steepest descent and Newton's method, but these methods are computationally intensive and have slow convergence. Therefore, this invention uses an improved ICP plane-to-plane algorithm based on the Levenberg-Marquardt (LM) algorithm for global precise registration. This not only reduces the requirements for the initial position but also accelerates the convergence speed of registration.
[0169] Suppose there are two point clouds A = {a0, a1, ..., a...} N} and B = {b0, b1, ..., b N}, perform a nearest neighbor distance search, based on their corresponding index relationships, so that This holds true, where T is the transformation rigidity matrix, E(T) is the error loss function, and d is the Euclidean distance threshold. In the probabilistic model, it is assumed that there exist two point sets. and according to and Given A and B, in this case, and It is the covariance matrix associated with the measurement points. Assume T... * To correctly transform the rigid matrix, a perfect correspondence can be obtained.
[0170]
[0171] For any rigid matrix T, define And from this, we can draw the following conclusions. The distribution of, assuming a i and b i It is obtained from an independent Gaussian distribution, and then obtained through the above equation.
[0172]
[0173] Then, the maximum likelihood estimation is used to iteratively calculate T.
[0174]
[0175] Simplify the above equation to
[0176]
[0177] In the formula: Topt is the updated rigid transformation matrix, and T = R·t is the rigid matrix obtained by LM decomposition.
[0178] To improve performance relative to point-to-plane and increase model symmetry, a point-to-surface probabilistic model is used. Essentially, each measurement point only provides constraints along its surface normal. To construct this model, it is assumed that each sampling point has a high covariance distribution along its local plane and a very low covariance in the surface normal direction. If the surface normal of a point is n... i Then the covariance matrix becomes
[0179]
[0180] In the formula: α represents a small constant of the covariance along the normal. This corresponds to a very high confidence level and knowing the location along the normal, but not its location in the plane.
[0181]
[0182]
[0183] In the formula: s i , t i For a i and b i The normal vector of the corresponding point, R xLet be the rotation matrix of the transforming basis vectors.
[0184] Substituting (20) and (21) into equation (18) above, we can calculate the transformation rigidity matrix Topt. Thus, the plane-to-plane ICP algorithm is complete, as shown in the schematic diagram below. Figure 15 As shown.
[0185] Figure 15 A diagram illustrating the algorithm's performance in an extreme case is provided. In this case, all points along the vertical portion of the green scan are incorrectly associated with a single point in the red scan. Due to the inconsistent surface orientation, plane-to-plane matching is automatically ignored; the covariance matrix of each correspondence, when finally summed, will be isotropic and will contribute very little to the objective function relative to the precisely defined correspondence covariance matrix. Another perspective on this behavior is as a soft constraint on each correspondence. Inconsistent matching allows red scan points to move along the horizontal axis, while green scan points can move freely along the vertical direction. Therefore, incorrect correspondences form a very weak and uninformative constraint on the overall alignment.
[0186] To reduce the impact of noise and outliers in the point cloud pairing process, the Cauchy loss function is used as a weighting function to combat noise and outliers. The improved ICP algorithm is as follows:
[0187]
[0188]
[0189] In the formula: ρ Cauchy Here, r represents the weights of the Cauchy loss function, k is the loss parameter (usually k is 1.345), and r is the residual during optimization.
[0190] Substituting R obtained from LM decomposition into the above equation, we obtain... and Substitute the values into the equation to obtain the update transformation matrix Topt, and then calculate... This iteration makes The distance is less than the set Euclidean distance threshold τ, or the transformation update matrix is less than the set threshold. Set the number of iterations to 200, and stop iterating when one of the conditions is met.
[0191] The RMSE of the Euclidean distance between the point pairs is used as the evaluation of the registration error accuracy. From equation (22), the RMSE is as follows:
[0192]
[0193] In the formula: s i =(s ix ,s iy ,siz ) represents the coordinates of the source point cloud, t i =(t ix ,t iy ,t iz ) represents the coordinates of the point cloud to be registered, and n represents the number of point pairs to be registered.
[0194] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for fast vehicle-mounted laser point cloud automatic registration in a complex urban environment, characterized in that, Includes the following steps: S1: Vehicle-mounted laser scanning typically generates point cloud datasets with different point densities, and then performs point cloud filtering and voxel downsampling; S2: Cloth model filtering, setting a distance threshold to quickly separate ground points; S3: Extract rod-shaped objects as registration units; S4: The radial feature NARF algorithm with normal alignment is used to extract edge key points. The distance image generated by the point cloud is used to extract the boundary between the foreground and the background. S5: Global fine registration is performed using the ICP plane-to-plane algorithm improved from the plane-to-plane and LM algorithms; Step S5 further includes: using the improved Iterative Closest Point (ICP) algorithm and normal vector constraints, the rod-shaped object and edge feature points are used as registration primitives, the sampling geometric consistency algorithm is used to remove erroneous point pairs, and the relationship between feature points is quickly corresponded using a bidirectional KD tree; The point cloud filtering and voxel downsampling specifically include: Vehicle-mounted laser scanning typically generates point cloud datasets with varying point densities, resulting in outliers whose information is unusable; a statistical filter is used to filter out outliers in the point cloud, calculating the average distance from each point to its k nearest neighbors. Assuming the result is a Gaussian distribution, its shape determined by the mean and standard deviation, points whose average distance falls outside the standard range are defined as outliers and removed from the data; the probability density function of the Gaussian random variable n is... (1) wherein: denotes the distance, denotes all the mean of, denotes the standard deviation; Distance threshold d max is represented as (2) a is a constant, called the scale factor, which depends on the number of neighbor points; finally, the point cloud is traversed again, and points whose average distance to the k neighbor points is greater than d are removed max ; Voxel size calculation is crucial for voxelization sampling, as voxel size simplifies the original point cloud. First, the value of L is determined, as it directly affects the downsampling rate of the point cloud. When L is too large, more points fall within the voxel, resulting in a low sampling rate and loss of local features. Conversely, when L is small, fewer points exist within the voxel, leading to a higher sampling rate, but while local features are preserved, the sampling results are not significant. To address this issue, the downsampling rate ρ and point cloud density are combined to estimate the voxel side length L. (3) where: represents the estimated voxel edge length; s is the average number of point clouds within a unit voxel; γ is the point cloud density; and the expressions for s and γ are , (4) In the formula: N is the number of points in the point cloud; from equations (3) and (4), we get (5) The voxel side length L is obtained to divide the bounding box of the point cloud P. In order to better retain the topographic features of the point cloud and calculate the center of gravity of all points in the voxel, the calculated center of gravity point is used as the down-sampling point; is represented as (6) In the formula: is the number of points in the kth voxel, ; the new point cloud is obtained from formula (6) , is the final down-sampled point cloud; Step S2 specifically involves: inverting the point cloud and then covering the flipped surface with cloth from above; determining the final shape of the cloth model by analyzing the interaction between the nodes and corresponding points of the cloth model, and dividing the ground and non-ground areas according to its shape; The extraction of rod-shaped objects specifically includes: first, using K-means unsupervised classification on non-ground point clouds; then, labeling the scene point clouds of roadside trees, streetlights, signs, and utility poles after classification, and extracting the tree trunks, streetlights, signs, and utility poles as rod-shaped targets; to ensure the extraction effect of rod-shaped objects, first, using the box method to establish a spatial grid on the classified point clouds, and using an elevation threshold to remove redundant point clouds higher than the rod-shaped objects; then, using the random sampling consensus algorithm to traverse the grid's top-down view, and setting a cylindrical radius with the tree trunk as the center, searching for arc-shaped point sets in the radius's neighborhood; finally, by judging the grid density, minimum number of support points, and angle threshold perpendicular to the facade, those within the grid that meet the requirements are considered rod-shaped point clouds; the head of urban streetlights will have a horizontally extending area, and the number of point clouds at the head of streetlights and the sign part of signs is relatively small, so different density and minimum number of support point cloud thresholds are set to extract rod-shaped point cloud sets; According to the coordinate extreme value in the point cloud, a grid with a side length of is constructed, the point cloud data is divided into a regular two-dimensional grid, and the calculation method is as follows: (7) In the formula: , , and For point cloud numerical extreme values, The grid width is set according to the point cloud density; set it to 1 meter. The RANSAC algorithm was used to search for and fit a circle to extract cylindrical point clouds, with the radius buffer range set to 0.05~0.5 meters. (8) In the formula: The coordinates of each point, For the center of each fitted circle, For radius, For the distance to each cylinder, This indicates the degree of difference between the grid block and the fitted circle.
2. The method for rapid automatic registration of vehicle-mounted laser point clouds in complex urban environments as described in claim 1, characterized in that: The extraction of edge key points specifically includes: using the radial feature NARF algorithm with normal alignment to extract edge key points; Extracting edge key points specifically includes the following sub-steps: S4.1: Traverse each depth image point, find locations with abrupt changes in depth in the nearest neighboring region, and perform edge detection; for each point in the image... Select a square window neighborhood point within the same plane, denoted as . ,in Calculate the window width. and The 3D distance of each point within is obtained. ,right Sort in ascending order to get Assuming At least one points and Located on the same surface, select As exist Distance between non-coplanar points in the neighborhood; for Calculate the four confidence levels (up, down, left, right) to represent the probability of an edge existing. The following example uses the right side: First, calculate the average distance to the point on the right: ,in To take into account the number of points on the right, In the image Point at location; calculate 3D distance and : (9) In the formula: The larger the value, the more it indicates the point The more pronounced the change in distance on the right, the greater the probability of the existence of an edge; The obtained The image is smoothed to obtain continuous edges while improving robustness to noise. The type to which the point belongs, according to and 3D distance comparison A smaller distance indicates an object boundary, while a larger distance indicates a shadow boundary. The window width corresponding to the distance to the occlusion boundary is then calculated. ,if Greater than the threshold, and is The maximum value within the domain is considered to be The object boundary is defined by the formula, and the shadow point and shadow boundary are found. The point located between the two is the occlusion point, which is the extracted interest feature point. S4.2: Determine the coefficient for measuring surface change and the main direction of change based on the surface changes in the nearest neighboring region; for each point... This belongs to the category of distance images, utilizing their 2D neighborhood Euclidean distance in... The 3D position of the points within the boundary is determined using Principal Component Analysis (PCA) algorithm, which estimates their normal vectors and calculates the principal directions. and amplitude For boundary points, For the edge direction, for other points, In the direction of principal curvature The magnitude is the direction; for each Each is assigned a weight. For boundary points, For other points, Specify a parameter Indicates the supported range size; for each point in the image Find its Euclidean distance at A point that is inside a point and has no edges in the middle is denoted as . ; right ,Will Projected onto a plane Up, get an angle ,right The following adjustments are made: (10) Make ; S4.3: Smooth filtering of interest values; use bounded Gaussian kernel smoothing. and Get points Points of interest It will exceed the threshold. Points of interest: (11) (12) (13) (14) In the formula: Extracting the high-weighted key values reveals points where the plane undergoes drastic changes; Add points that have adjacent points nearby and whose main direction changes drastically; S4.4: Perform no-maximum compression to find the final keypoints, which are the NARF keypoints.
3. The method for rapid automatic registration of vehicle-mounted laser point clouds in complex urban environments as described in claim 1, characterized in that: Step S5 specifically includes: Assume two sets of point clouds and Perform a nearest neighbor distance search, based on their corresponding index relationships, to make... This holds true, where T is the transformation rigidity matrix. Let be the error loss function. The threshold is the Euclidean distance; in the probabilistic model, it is assumed that there are two point sets. and ,according to and get and ,in this case, and It is the covariance matrix associated with the measurement points; assuming To correctly transform the rigid matrix and obtain the correspondence, then (15) For any rigid matrix ,definition And from this, we can draw the following conclusions. The distribution, assuming and It is obtained from an independent Gaussian distribution, and then obtained through the above equation. (16) Then use maximum likelihood estimation to iteratively calculate (17) Simplify the above equation to (18) In the formula: For the updated rigid transformation matrix, , is the rigid matrix obtained by LM decomposition; To improve performance relative to point-to-plane and increase model symmetry, a point-to-surface model is used to excite the probabilistic model; let the surface normal of the point be... Then the covariance matrix becomes (19) In the formula: A constant representing the covariance along the normal; corresponding to high confidence and knowing the location along the normal, but not its location in the plane; (20) (21) In the formula: , for and The normal vector of the corresponding point, Let be the rotation matrix of the transformed basis vectors; Substitute (20) and (21) into equation (18) above to calculate the transformation stiffness matrix. That is, the plane-to-plane ICP algorithm is now complete. To reduce the impact of noise and outliers in the point cloud pairing process, the Cauchy loss function is used as a weighting function to combat noise and outliers; the improved ICP algorithm is as follows: (22) (23) In the formula: The weights are those of the Cauchy loss function. The loss parameter is set to 1.
345. The residual during optimization; The LM decomposition yielded Substituting into the above formula, we get and Then substitute the values to obtain the update transformation matrix. and find This iteration makes Less than the set Euclidean distance threshold Alternatively, make the transformation update matrix smaller than a set threshold. Set the number of iterations to 200, and stop iterating when one of the conditions is met; The RMSE of the Euclidean distance between the point pairs is used as the accuracy of the registration error; the RMSE obtained from equation (22) is as follows: (24) In the formula: The coordinates of the source point cloud are... The coordinates of the point cloud to be registered. The number of point pairs to be registered.
Citation Information
Patent Citations
High-precision map construction method based on non-map element filtering
CN113640822A
Phased array laser radar imaging method based on RANSAC (Random Sample Consensus) and ICP (Inductively Coupled Plasma) point cloud registration
CN115205354A
