A point cloud registration method and system for complex mechanical parts measurement based on improved ICP

By improving the ICP algorithm, using the centroid adjacent point filter and ISS-FPFH features, combined with point-to-plane ICP constrained by SAC-IA and normal vector angles, the problem of low accuracy and efficiency of the traditional ICP algorithm in the measurement of complex mechanical parts is solved. , achieving higher registration accuracy and efficiency.

CN115797418BActive Publication Date: 2024-09-10HUNAN UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202211182036.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2024-09-10
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

The traditional ICP algorithm has high initial position requirements for point cloud registration in the measurement of complex mechanical parts. It is easy to fall into the local optimal solution and has slow iterative convergence speed, resulting in low registration accuracy and efficiency. It is difficult to meet the requirements for the measurement of large quantities of complex mechanical parts. .

Method used

A voxel filter based on the center of gravity adjacent points is used for downsampling preprocessing, the ISS algorithm is used to extract key points and calculate FPFH features, the SAC-IA algorithm is used for rough registration, and the point-to-plane ICP algorithm with normal vector angle constraints is used. Precise registration improves initial position accuracy and iteration efficiency.

Benefits of technology

It improves the accuracy and efficiency of point cloud registration, reduces registration errors, enhances the accuracy of part point cloud surface information expression, and meets the needs of three-dimensional non-contact precision measurement of large quantities of complex mechanical parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115797418B
    Figure CN115797418B
Patent Text Reader

Abstract

The present invention belongs to the field of three-dimensional point cloud registration, and discloses a method and system for complex mechanical parts measurement point cloud registration based on improved ICP. The method for complex mechanical parts measurement point cloud registration based on improved ICP includes: using a voxel filter based on the centroid neighbor point to perform downsampling preprocessing on the part point cloud; extracting ISS key points from the preprocessed point cloud, and calculating the FPFH features of the ISS key points; finding corresponding point pairs according to the ISS key points and their FPFH features, and using the SAC‑IA algorithm to perform coarse registration, so that two pieces of part point clouds are in a suitable initial position to achieve coarse registration; on the basis of coarse registration, using the point-to-plane ICP algorithm combined with the normal vector angle constraint to perform fine registration, further improving the registration accuracy. The present invention effectively improves the accuracy and efficiency of point cloud registration, and meets the requirements of accuracy and efficiency of point cloud registration for large-scale complex mechanical parts measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of three-dimensional point cloud registration, and in particular relates to a point cloud registration method and system for complex mechanical parts measurement based on improved ICP. Background Art

[0002] With the continuous development of science and technology, mechanical parts with very complex shapes, such as gears and blades, are increasingly used. The manufacturing process of such mechanical parts is complex and the forming accuracy is difficult to control. In order to ensure product quality, these complex mechanical parts need to be measured with high precision and multiple parameters in three dimensions.

[0003] Compared with traditional measurement methods, the 3D non-contact measurement technology based on machine vision has the advantages of non-destructive, high efficiency and high precision, and has been widely used in the fields of industrial manufacturing quality inspection and so on. This method first uses 3D scanning equipment to obtain the point cloud data of the measurement object from all directions and multiple perspectives, and then performs point cloud registration and 3D reconstruction to obtain a comprehensive and detailed mesh model of the measurement object. Finally, the mesh model is compared and analyzed with the design model for precise measurement. Among them, point cloud registration is the basis and necessary condition for obtaining the complete point cloud of the measurement object, and its accuracy and efficiency directly determine the accuracy and efficiency of 3D non-contact precision measurement.

[0004] The most classic point cloud registration algorithm is the ICP algorithm proposed by Besl et al. in 1992. The algorithm is simple, intuitive and easy to implement, but it has high requirements on the initial position and is prone to fall into the local optimal solution, resulting in registration failure. In addition, the registration accuracy and efficiency are low, making it difficult to meet the requirements of point cloud registration accuracy and efficiency for measuring large quantities of complex mechanical parts.

[0005] Through the above analysis, the problems and defects of the prior art are as follows:

[0006] (1) In point cloud preprocessing, the original voxel filter uses the centroid or center of each voxel to approximately replace all the points in the voxel to achieve downsampling. Since this point is not necessarily a point in the original point cloud, the subtle features of the original point cloud will be lost after downsampling, increasing the registration error.

[0007] (2) The principle of the traditional ICP algorithm is simple, intuitive and easy to implement, but it has high requirements on the initial position and is prone to fall into a local optimal solution, resulting in registration failure.

[0008] (3) The traditional ICP algorithm has a slow iterative convergence speed and many erroneous corresponding point pairs, resulting in poor registration accuracy and efficiency, and cannot meet the requirements of point cloud registration for large-scale measurement of complex mechanical parts. Summary of the invention

[0009] In view of the problems existing in the prior art, the present invention provides a point cloud registration method and system for complex mechanical parts measurement based on improved ICP.

[0010] The present invention is implemented as follows: a complex mechanical part measurement point cloud registration method based on improved ICP, the complex mechanical part measurement point cloud registration method based on improved ICP comprising:

[0011] Step 1: Use a voxel filter based on the center of gravity neighboring points to downsample the part point cloud for preprocessing, and replace all points in the voxel with the center of gravity neighboring points of each voxel instead of the center of gravity, so as to reduce the number of point clouds and retain the subtle features of the point cloud surface;

[0012] Step 2: For the preprocessed point cloud, the ISS key points of the point cloud are extracted using the ISS algorithm to further reduce the number of point clouds;

[0013] Step 3, establish a local coordinate system and calculate the FPFH features of the ISS key points;

[0014] Step 4: Find corresponding point pairs according to the ISS key points and the corresponding FPFH features, and use the SAC-IA algorithm for rough registration to put the two part point clouds in a suitable initial position;

[0015] Step 5: Based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for fine registration to further reduce the registration error of the two point clouds.

[0016] Furthermore, the voxel filter based on the centroid neighboring points approximately replaces all points in the voxel with the neighboring points of the centroid of each voxel grid of the original point cloud. The specific process includes:

[0017] (1.1) According to the original point cloud coordinates, calculate the maximum value x of the point cloud on the x, y, and z axes max ,y max 、z max and the minimum value x min ,y min 、z min ;

[0018] (1.2) Calculate the side lengths X, Y, and Z of the minimum bounding box of the point cloud;

[0019]

[0020] (1.3) Set the side length of each voxel cube to L, then the original point cloud is divided into l×w×h voxels.

[0021]

[0022] Where ceil(·) is the rounding symbol;

[0023] (1.4) Calculate the voxel space number of each point in the original point cloud

[0024]

[0025] (x i ,y i ,z i ) is any point p in the point cloud i The coordinates of

[0026] (1.5) Calculate the centroid of all points in each voxel, and use KD-Tree to traverse the point cloud to find the point in the point cloud that is closest to the centroid to replace all the points in the voxel to complete downsampling.

[0027] Furthermore, the specific process of extracting ISS key points of the point cloud using the ISS algorithm includes:

[0028] (2.1) For each query point p in the point cloud i Set the neighborhood search radius r;

[0029] (2.2) Find point p i All points in the neighborhood with radius r are classified according to the neighborhood points and p i The Euclidean distance calculation weight w ij :

[0030]

[0031] (2.3) According to the query point p i And its neighborhood points construct the covariance matrix:

[0032]

[0033] (2.4) Calculate the eigenvalues ​​of the covariance matrix and arrange them in descending order: 1 >λ 2 >λ 3 ;

[0034] (2.5) Set the threshold ε 1 and ε 2 , p can be determined by satisfying the following formula i As the key point,

[0035]

[0036] In the formula, ε 1 and ε 2 Usually no more than 1.

[0037] Further, the specific process of calculating the FPFH features of the ISS key points includes:

[0038] (3.1) Establish a local coordinate system, for any two points S i , S j Parameterized statistics of normal deviation between them;

[0039] (3.2) According to the local coordinate system, four parameters (α, φ, θ, d) are defined to represent any two points S i and S j The normal deviation between them is calculated as follows:

[0040]

[0041] In the formula, α, φ, θ are the angles between the normals of the two points and the coordinate axes, and d is the Euclidean distance between the two points;

[0042] (3.3) Calculate the four parameters between each sampling point and the neighboring points, denoted as SPFH, then the FPFH feature of point S can be expressed as follows:

[0043]

[0044] Among them, d i is the Euclidean distance between corresponding point pairs, S i is the neighborhood point of point S.

[0045] Furthermore, the SAC-IA algorithm is used for rough registration, and the specific process includes:

[0046] (4.1) Select several sampling points from the ISS key points of the source point cloud. The Euclidean distance between each sampling point must be greater than the set minimum distance threshold d min , to ensure that the sampling points have different FPFH characteristics;

[0047] (4.2) According to the same or similar FPFH features, find several corresponding points for each sampling point in the target point cloud, and randomly select a corresponding point to form a corresponding point pair;

[0048] (4.3) The initial transformation matrix is ​​solved using the corresponding point pairs, and the quality of the transformation matrix is ​​evaluated using the error and Huber function. The initial transformation matrix corresponding to the minimum value of the function is the optimal transformation matrix required for coarse alignment.

[0049] Furthermore, the calculation formula of the Huber function is as follows:

[0050]

[0051] In the formula, m l To set the threshold, l i is the Euclidean distance of the i-th group of corresponding point pairs after transformation.

[0052] Furthermore, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for precise registration, and the specific process includes:

[0053] (5.1) Search for point p in the target point cloud Q that is consistent with the source point cloud P i The corresponding nearest point q i , forming corresponding point pairs;

[0054] (5.2) Calculate the normal vector angle of the corresponding point pair in 5.1, and set the normal vector angle greater than the set threshold The corresponding point pairs of are eliminated;

[0055] (5.3) Calculate the transformation parameter T based on the selected corresponding point pairs, and minimize the objective function f(T) of the point-to-plane ICP algorithm.

[0056]

[0057] Where T is the transformation matrix; p i ,q i Respectively represent the corresponding points in the source point cloud and the target point cloud; n i Indicates q i The normal vector of the corresponding point;

[0058] (5.4) Iteratively transform the source point cloud according to the transformation parameter T, and calculate the Euclidean distance difference d between the corresponding point sets of two adjacent iterations,

[0059] d=|d k+1 -d k |

[0060] Where k is the number of iterations; if it is less than the specified threshold or reaches the specified maximum number of iterations, the iteration ends, otherwise repeat step 5.3;

[0061] (5.5) Calculate the final transformation matrix T and transform the point cloud P to the coordinate system of the point cloud Q.

[0062] Another object of the present invention is to provide a complex mechanical part measurement point cloud registration system based on improved ICP, the complex mechanical part measurement point cloud registration system based on improved ICP comprising:

[0063] The preprocessing module is used to perform voxel downsampling on the acquired source point cloud and target point cloud, and adopts a voxel filter based on the center of gravity neighboring points to perform downsampling preprocessing on the part point cloud, thereby reducing the number of point clouds and retaining the subtle features of the point cloud surface;

[0064] The coarse registration module is used to perform coarse registration of point clouds. It extracts ISS key points from the preprocessed point clouds to further reduce the number of point clouds and calculates the FPFH features of the ISS key points. It finds corresponding point pairs based on the ISS key points and FPFH features, and uses the SAC-IA algorithm to perform coarse registration so that the two part point clouds are in a suitable initial position to achieve coarse registration.

[0065] The fine registration module is used for fine registration of point clouds. Based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for fine registration to further improve the accuracy of point cloud registration and complete the registration.

[0066] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for measuring point cloud of complex mechanical parts based on improved ICP.

[0067] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the method for measuring point cloud of complex mechanical parts based on improved ICP.

[0068] Another object of the present invention is to provide an information data processing terminal, which is used to implement the complex mechanical parts measurement point cloud registration system based on improved ICP.

[0069] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0070] The present invention adopts a voxel filter based on the centroid neighboring points for downsampling preprocessing, and replaces all points in the voxel with the neighboring points of the centroid of each voxel grid of the original point cloud rather than the centroid approximation, thereby ensuring the accuracy of the point cloud information expression and reducing the registration error.

[0071] The present invention adopts the SAC-IA algorithm based on the ISS-FPFH feature for coarse registration, provides a set of point clouds in suitable initial positions for the traditional ICP algorithm, and can improve the success rate of part point cloud registration.

[0072] The present invention adopts the point-to-plane ICP algorithm to reduce the number of iterations and improve the registration efficiency, and adds a normal vector angle constraint to eliminate erroneous corresponding point pairs using the normal vector angle, thereby improving the registration accuracy.

[0073] The present invention improves the accuracy of the expression of the surface information of the part point cloud and reduces the registration error. The present invention increases the coarse registration and improves the success rate of the part point cloud registration. Compared with the traditional ICP algorithm, the present invention has higher registration accuracy and efficiency.

[0074] The expected benefits and commercial value after the technical solution of the present invention is transformed as follows: Point cloud registration is the basis and necessary condition for obtaining a complete point cloud of the measurement object, and its accuracy and efficiency directly determine the accuracy and efficiency of three-dimensional non-contact precision measurement. Existing registration methods often have high requirements on the initial position, are prone to fall into local optimal solutions, and have slow iterative convergence speeds, and have poor registration accuracy and efficiency. The present invention provides a point cloud registration method for measuring complex mechanical parts that combines ICP with the ISS-FPFH feature to improve registration accuracy and efficiency, which can overcome the shortcomings of the prior art, improve registration accuracy and efficiency, and meet the needs of point cloud registration in three-dimensional non-contact precision measurement of large quantities of complex mechanical parts. Therefore, the present invention has a broad market space and high commercial value. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 It is a flow chart of a blade three-dimensional measurement point cloud registration method based on improved ICP provided in an embodiment of the present invention;

[0076] Figure 2 is a local coordinate system provided by an embodiment of the present invention;

[0077] Figure 3 1 is a diagram of the downsampling effect of a blade point cloud provided by an embodiment of the present invention; (a) is a schematic diagram of the original point cloud, and (b) is a schematic diagram of the downsampling point cloud;

[0078] Figure 4 is the ISS key point for extracting the blade point cloud provided by the embodiment of the present invention;

[0079] Figure 5 1 is a rough registration effect diagram of a blade point cloud provided by an embodiment of the present invention, (a) is a rendering of two point clouds at the initial position, and (b) is a rendering of two point clouds after rough registration;

[0080] Figure 6 1 is a rendering of the precise registration of blade point clouds provided by an embodiment of the present invention, (a) is a rendering of two point clouds at the initial position, and (b) is a rendering of two point clouds after precise registration;

[0081] Figure 7 These are the registration effect diagrams of the three algorithms provided in the embodiments of the present invention, (a) is the effect diagram of two point clouds in the initial position, (b) is the registration effect diagram of the traditional ICP algorithm, (c) is the registration effect diagram of the SAC-IA+ICP algorithm, and (d) is the registration effect diagram of the improved algorithm. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0083] In order to enable those skilled in the art to fully understand how to implement the present invention in detail, this section is an explanatory embodiment that expands and describes the technical solution.

[0084] like Figure 1 As shown, the complex mechanical parts measurement point cloud registration method based on improved ICP provided by the embodiment of the present invention includes:

[0085] Step 1: Use a voxel filter based on the center of gravity neighboring points to downsample the part point cloud to reduce the number of point clouds and retain the subtle features of the point cloud surface;

[0086] Step 2: For the preprocessed point cloud, the key points of the point cloud are extracted using the ISS key point algorithm to further reduce the number of point clouds;

[0087] Step 3, calculating the FPFH features of the ISS key points;

[0088] Step 4: Find corresponding point pairs according to the ISS key points and the FPFH features, and use the SAC-IA algorithm to perform rough registration so that the two part point clouds are in a suitable initial position;

[0089] Step 5: Based on the rough alignment, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for fine alignment.

[0090] Furthermore, the voxel filter based on the centroid neighboring points approximately replaces all points in the voxel with the neighboring points of the centroid of each voxel grid of the original point cloud. The specific process includes:

[0091] (1.1) According to the original point cloud coordinates, calculate the maximum value x of the point cloud on the x, y, and z axes max ,y max 、z max and the minimum value x min ,y min 、z min ;

[0092] (1.2) Calculate the side lengths X, Y, and Z of the minimum bounding box of the point cloud;

[0093]

[0094] (1.3) Set the side length of each voxel cube to L, then the original point cloud is divided into l×w×h voxels.

[0095]

[0096] Where ceil(·) is the rounding symbol;

[0097] (1.4) Calculate the voxel space number of each point in the original point cloud

[0098]

[0099] (x i ,y i ,z i ) is any point p in the point cloud i The coordinates of

[0100] (1.5) Calculate the centroid of all points in each voxel, and use KD-Tree to traverse the point cloud to find the point in the point cloud that is closest to the centroid to replace all the points in the voxel to complete downsampling.

[0101] Furthermore, the specific process of extracting the key points of the point cloud using the ISS key point algorithm includes:

[0102] (2.1) For each query point p in the point cloud i Set the neighborhood search radius r;

[0103] (2.2) Find point p i All points in the neighborhood with radius r are classified according to the neighborhood points and p i The Euclidean distance calculation weight w ij :

[0104]

[0105] (2.3) According to the query point p i And its neighborhood points construct the covariance matrix:

[0106]

[0107] (2.4) Calculate the eigenvalues ​​of the covariance matrix and arrange them in descending order: 1 >λ 2 >λ 3 ;

[0108] (2.5) Set the threshold ε 1 and ε 2 , p can be determined by satisfying the following formula i As the key point,

[0109]

[0110] ε 1and ε 2 Usually no more than 1.

[0111] Further, the specific process of calculating the FPFH features of the ISS key points includes:

[0112] (3.1) Establish a local coordinate system, for any two points S i , S j The normal deviation between i The local coordinate system established for the coordinate origin is as follows Figure 2 As shown;

[0113] (3.2) According to the local coordinate system, four parameters (α, φ, θ, d) are defined to represent any two points S i and S j The normal deviation between them is calculated as follows:

[0114]

[0115] In the formula, α, φ, θ are the angles between the normals of the two points and the coordinate axes, and d is the Euclidean distance between the two points;

[0116] (3.3) Calculate the four parameters between each sampling point and the neighboring points, denoted as SPFH, then the FPFH feature of point S can be expressed as follows:

[0117]

[0118] Among them, d i is the Euclidean distance between corresponding point pairs, S i is the neighborhood point of point S.

[0119] Furthermore, the specific process of the rough registration includes:

[0120] (4.1) Select several sampling points from the ISS key points of the source point cloud. The Euclidean distance between each sampling point must be greater than the set minimum distance threshold d min , to ensure that the sampling points have different FPFH characteristics;

[0121] (4.2) According to the same or similar FPFH features, find several corresponding points for each sampling point in the target point cloud, and randomly select a corresponding point to form a corresponding point pair;

[0122] (4.3) The initial transformation matrix is ​​solved using the corresponding point pairs, and the quality of the transformation matrix is ​​evaluated using the error and Huber function. The initial transformation matrix corresponding to the minimum value is the optimal transformation matrix required for coarse alignment.

[0123] Furthermore, the calculation formula of the Huber function is as follows:

[0124]

[0125] In the formula, m l To set the threshold, l i is the Euclidean distance of the i-th group of corresponding point pairs after transformation.

[0126] Furthermore, the precise registration includes the following specific steps:

[0127] (5.1) Search for point p in the target point cloud Q that is consistent with the source point cloud P i The corresponding nearest point q i , forming corresponding point pairs;

[0128] (5.2) Calculate the normal vector angles of the corresponding point pairs in 5.1, and remove the corresponding point pairs whose normal vector angles are greater than a set threshold α;

[0129] (5.3) Calculate the transformation parameter T based on the selected corresponding point pairs, and minimize the objective function f(T) of the point-to-plane ICP algorithm.

[0130]

[0131] Where T is the transformation matrix; p i ,q i Respectively represent the corresponding points in the source point cloud and the target point cloud; n i Indicates q i The normal vector of the corresponding point;

[0132] (5.4) Iteratively transform the source point cloud according to the transformation parameter T, and calculate the Euclidean distance difference d between the corresponding point sets of two adjacent iterations,

[0133] d=|d k+1 -d k |

[0134] Where k is the number of iterations; if it is less than the specified threshold or reaches the specified maximum number of iterations, the iteration ends, otherwise repeat step 5.3;

[0135] (5.5) Calculate the final transformation matrix T and transform the point cloud P to the coordinate system of the point cloud Q.

[0136] The embodiment of the present invention further provides a complex mechanical part measurement point cloud registration system based on improved ICP, and the complex mechanical part measurement point cloud registration system based on improved ICP includes:

[0137] The preprocessing module is used to perform voxel downsampling on the acquired source point cloud and target point cloud, and adopts a voxel filter based on the center of gravity neighboring points to perform downsampling preprocessing on the part point cloud, thereby reducing the number of point clouds and retaining the subtle features of the point cloud surface;

[0138] The coarse registration module is used for coarse registration of point clouds. It extracts ISS feature points from the preprocessed point clouds to further reduce the number of point clouds and calculates the FPFH features of the ISS key points. It searches for corresponding point pairs based on the ISS key points and FPFH features, and uses the SAC-IA algorithm for coarse registration to place the two part point clouds in a suitable initial position to achieve initial registration.

[0139] The fine registration module is used for fine registration of point clouds. Based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for fine registration to further improve the accuracy of point cloud registration and complete the registration.

[0140] In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the technical solution on specific products or related technologies.

[0141] like Figure 1 As shown, an embodiment of the present invention provides a complex mechanical parts measurement point cloud registration method based on improved ICP, comprising:

[0142] Firstly, the leaves and point clouds from two different perspectives are pre-processed by downsampling using a voxel filter based on the centroid's neighboring points. First, a three-dimensional voxel grid is created for the input point cloud data, and the centroid of all points in each voxel is calculated. Then, the KD-Tree is used to traverse the original point cloud to find the point in the point cloud that is closest to the centroid, and this point is used to replace all the points in the voxel to complete the downsampling.

[0143] Then, the covariance matrix is ​​constructed through the query point and its neighborhood points of the leaf point cloud, the three eigenvalues ​​of the covariance matrix are calculated, and then the eigenvalues ​​are arranged in order from large to small: 1 >λ 2 >λ 3 , set ε 1 =0.975,ε 2 = 0.975, which will satisfy λ 2 / λ 1 ≤ε 1 and λ 3 / λ 2 ≤ε 1 The query point is used as the ISS key point.

[0144] By establishing a local coordinate system, the relative position relationship between the ISS key points and their neighborhood points of the blade point cloud is determined, and four parameters (α, φ, θ, d) are defined to represent the normal deviation between two points. The FPFH feature estimation of the point cloud is estimated by performing parameterized statistics on the normal angles of the ISS key points and their neighborhood points, and the number of neighborhood points is set to 10.

[0145] Secondly, the SAC-IA algorithm is used to complete the rough alignment. First, several points are randomly selected from the ISS key points of the source point cloud, and the minimum distance between them is guaranteed to be greater than 0.007. Then, S103 is used to calculate the FPFH features of the selected points, and a group of points with similar FPFH features are found in the target point cloud through KD-Tree nearest neighbor search. One point is selected from these similar points as the corresponding point, and the transformation parameter T is calculated. When the maximum number of iterations is reached, the transformation matrix T corresponding to the minimum error is selected.

[0146] Finally, based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used to complete the point cloud fine registration. The normal vector angle of the corresponding point pair is set to 15°, and the corresponding point pairs with normal vector angles greater than 15° are removed to improve the accuracy of the corresponding point pairs. Then, the transformation matrix is ​​calculated based on the selected corresponding point pairs using the singular value decomposition method, and the objective function is calculated through multiple iterations. The minimum transformation parameter T is used to complete the point cloud transformation and achieve precise registration.

[0147] The implementation process of the complex mechanical parts measurement point cloud registration method based on improved ICP provided by the embodiment of the present invention is as follows:

[0148] 1. The voxel filter based on the centroid neighboring point is used to pre-process the leaf point clouds of two different perspectives by downsampling. First, a three-dimensional voxel grid is created for the input point cloud data, and the side length L of each voxel is set to 1.5. Then, the centroid of all points in each voxel is calculated, and the KD-Tree is used to traverse the original point cloud to find the point closest to the centroid in the point cloud. This point is used to replace all points in the voxel to complete the downsampling. Figure 3 This is the effect diagram of downsampling the leaf point cloud. The number of point clouds is reduced from 59935 and 56938 to 18032 and 17320.

[0149] 2. Construct the covariance matrix through the query point and its neighborhood points of the leaf point cloud, calculate the three eigenvalues ​​of the covariance matrix, and then arrange the eigenvalues ​​in order from large to small: λ 1 >λ 2 >λ 3 , set ε 1 =0.975,ε 2 = 0.975, which will satisfy λ 2 / λ 1 ≤ε 1 and λ 3 / λ 2 ≤ε 1 The query point is used as the ISS key point. Figure 4 The red dots in the middle are the ISS key points of the extracted leaf point cloud, and their numbers are 783 and 752 respectively.

[0150] 3. By establishing a local coordinate system, the relative position relationship between the ISS key points and their neighborhood points of the blade point cloud is determined, and four parameters (α, φ, θ, d) are defined to represent the normal deviation between two points. The FPFH feature of the point cloud is estimated by performing parameterized statistics on the normal angles of the ISS key points and their neighborhood points, and the number of neighborhood points is set to 10.

[0151] 4. Use the SAC-IA algorithm to complete the rough registration. First, randomly select several points from the ISS key points of the source point cloud, and ensure that the minimum distance between them is greater than 0.007. Then use step 103 to calculate the FPFH features of the selected points, and use the KD-Tree nearest neighbor search to find a group of points with similar FPFH features in the target point cloud. Select one point from these similar points as the corresponding point, and calculate the transformation parameter T. When the maximum number of iterations is reached, select the transformation matrix T corresponding to the minimum error. Figure 5 The following is the rough registration effect of the leaf point cloud, where the root mean square error of the registration is 3.1 and the transformation matrix T is

[0152]

[0153] 5. Based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used to complete the point cloud fine registration. The normal vector angle of the corresponding point pair is set to 15°, and the corresponding point pairs with normal vector angles greater than 15° are removed to improve the accuracy of the corresponding point pairs. Then, the transformation matrix is ​​calculated based on the selected corresponding point pairs using the singular value decomposition method, and the objective function is calculated through multiple iterations. The smallest transformation parameter T is used to complete the point cloud transformation and achieve precise registration. Figure 6 The following is the precise registration effect of the leaf point cloud, where the root mean square error of the registration is 0.1 and the transformation matrix T is

[0154]

[0155] The embodiments of the present invention have achieved some positive effects during the development or use process, and indeed have great advantages over the prior art. The following content is described in conjunction with data, charts, etc. of the test process.

[0156] Taking the blade as the experimental object, the proposed algorithm is used to perform the measurement point cloud registration experiment with the traditional ICP algorithm and the SAC-IA+ICP algorithm, and a comparative analysis is performed. The registration results are shown in Table 1 and Figure 7 As shown. Figure 7 It can be seen that the three algorithms all complete the point cloud registration of parts, but Figure 7 From the partial enlarged view of (b), we can see that

[0157]

[0158] The registration effect of relying solely on the traditional ICP algorithm is not good. Combined with the specific data analysis in Table 1, it can be seen that compared with the other two algorithms, the algorithm disclosed in the present invention has achieved higher registration accuracy and registration efficiency. In terms of registration accuracy, the root mean square error of the algorithm disclosed in the present invention is reduced by 80.06% and 62.96% respectively compared with the other two algorithms. The reason is that the coarse registration provides a better initial position for the fine registration, and adds the normal vector angle constraint, which improves the correct rate of the corresponding point pair, so that the registration accuracy is further improved. In terms of registration efficiency, the registration time of the algorithm disclosed in the present invention is reduced by 65.71% and 26.53% respectively compared with the other two algorithms. In theory, calculating the FPFH feature in the coarse registration will consume a lot of time, but the algorithm disclosed in the present invention performs downsampling preprocessing and extracts the ISS key points, which greatly reduces the calculation time. In addition, the reduction in the number of iterations further reduces the registration time of the algorithm disclosed in the present invention.

[0159] Table 1. Relevant registration data of the three algorithms.

[0160] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0161] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A point cloud registration method for complex mechanical parts measurement based on improved ICP, It is characterized in that The point cloud registration method for complex mechanical parts measurement based on improved ICP includes: Step 1: Use a voxel filter based on the center of gravity neighboring points to downsample the part point cloud for preprocessing, and replace all points in the voxel with the center of gravity neighboring points of each voxel instead of the center of gravity, so as to reduce the number of point clouds and retain the subtle features of the point cloud surface; Step 2: For the preprocessed point cloud, the ISS key points of the point cloud are extracted using the ISS algorithm to further reduce the number of point clouds; Step 3, establish a local coordinate system and calculate the FPFH features of the ISS key points; Step 4: Find corresponding point pairs based on the ISS key points and their corresponding FPFH features, and use the SAC-IA algorithm for rough registration to place the two part point clouds in a suitable initial position; Step 5: Based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for fine registration to further reduce the registration error of the two point clouds. The step 1 is to use the neighboring points of the centroid to approximately replace all points in the voxel with the neighboring points of the centroid of each voxel grid of the original point cloud. The specific process includes: (1.1) According to the original point cloud coordinates, calculate the maximum value x of the point cloud on the x, y, and z axes max ,y max 、z max and the minimum value x min ,y min 、z min ; (1.2) Calculate the side lengths X, Y, and Z of the minimum bounding box of the point cloud; (1.3) Set the side length of each voxel cube to L, then the original point cloud is divided into l×w×h voxels. Where ceil(·) is the rounding symbol; (1.4) Calculate the voxel space number of each point in the original point cloud (x i ,y i ,z i ) is any point p in the point cloud i The coordinates of (1.5) Calculate the centroid of all points in each voxel, and use KD-Tree to traverse the point cloud to find the point closest to the centroid in the point cloud to replace all the points in the voxel to complete downsampling; In step 2, the key points of the point cloud are extracted using the ISS key point algorithm, and the specific process includes: (2.1) For each query point p in the point cloud i Set the neighborhood search radius r; (2.2) Find point p i All points in the neighborhood with radius r are classified according to the neighborhood points and p i The Euclidean distance calculation weight w ij : (2.3) According to the query point p i And its neighborhood points construct the covariance matrix: (2.4) Calculate the eigenvalues ​​of the covariance matrix and arrange them in descending order: 1 >λ 2 >λ 3 ; (2.5) Set the threshold ε 1 and ε 2 , p can be determined by satisfying the following formula i As the key point, ε 1 and ε 2 No more than 1; The specific process of calculating the FPFH features of the ISS key points in step 3 includes: (3.1) Establish a local coordinate system, for any two points S i , S j Parameterized statistics of normal deviation between them; (3.2) According to the local coordinate system, four parameters (α, φ, θ, d) are defined to represent any two points S i and S j The normal deviation between them is calculated as follows: In the formula, α, φ, θ are the angles between the normals of the two points and the coordinate axes, and d is the Euclidean distance between the two points; (3.3) Calculate the four parameters between each sampling point and the neighboring points, denoted as SPFH, then the FPFH feature of point S can be expressed as follows: Among them, d i is the Euclidean distance between corresponding point pairs, S i is the neighborhood point of point S; The specific process of using the SAC-IA algorithm for rough registration in step 4 includes: (4.1) Select several sampling points from the ISS key points of the source point cloud. The Euclidean distance between each sampling point must be greater than the set minimum distance threshold d min , to ensure that the sampling points have different FPFH characteristics; (4.2) According to the same or similar FPFH features, find several corresponding points for each sampling point in the target point cloud, and randomly select a corresponding point to form a corresponding point pair; (4.3) The initial transformation matrix is ​​solved using the corresponding point pairs, and the quality of the transformation matrix is ​​evaluated using the error and Huber function. The initial transformation matrix corresponding to the minimum value of the function is the optimal transformation matrix required for coarse registration. The calculation formula of the Huber function is as follows: In the formula, m l To set the threshold, l i is the Euclidean distance of the i-th group of corresponding point pairs after transformation; The specific process of precise registration in step 5 includes: (5.1) Search for point p in the target point cloud Q that is consistent with the source point cloud P i The corresponding nearest point q i , forming corresponding point pairs; (5.2) Calculate the normal vector angle of the corresponding point pair in (5.1) and set the normal vector angle greater than the set threshold The corresponding point pairs of are eliminated; (5.3) Calculate the transformation parameter T based on the selected corresponding point pairs, and minimize the objective function f(T) of the point-to-plane ICP algorithm. Where T is the transformation matrix; p i ,q i Respectively represent the corresponding points in the source point cloud and the target point cloud; n i Indicates q i The normal vector of the corresponding point; (5.4) Iteratively transform the source point cloud according to the transformation parameter T, and calculate the Euclidean distance difference d between the corresponding point sets of two adjacent iterations, d=|d k+1 -d k | Where k is the number of iterations; if it is less than the specified threshold or reaches the specified maximum number of iterations, the iteration ends, otherwise repeat step 5.3; (5.5) Calculate the final transformation matrix T and transform the point cloud P to the coordinate system of the point cloud Q.

2. A complex mechanical part measurement point cloud registration system based on improved ICP that implements the complex mechanical part measurement point cloud registration method based on improved ICP as claimed in claim 1, It is characterized in that The complex mechanical parts measurement point cloud registration system based on improved ICP includes: The preprocessing module is used to perform voxel downsampling on the acquired source point cloud and target point cloud, and adopts a voxel filter based on the center of gravity neighboring points to perform downsampling preprocessing on the part point cloud, thereby reducing the number of point clouds and retaining the subtle features of the point cloud surface; The coarse registration module is used to perform coarse registration of point clouds. For the pre-processed point clouds, ISS feature points are extracted to further reduce the number of point clouds, and the FPFH features of the ISS key points are calculated. Corresponding point pairs are found based on the ISS key points and FPFH features. The SAC-IA algorithm is used for coarse registration to place the two part point clouds in a suitable initial position to achieve initial registration. The fine registration module is used for fine registration of point clouds. Based on the rough registration, the point-to-plane ICP algorithm combined with the normal vector angle constraint is used for fine registration to further improve the accuracy of point cloud registration and complete the registration.

3. A computer device, It is characterized in that The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the complex mechanical part measurement point cloud registration method based on improved ICP as claimed in claim 1.

4. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the point cloud registration method for complex mechanical parts measurement based on improved ICP as claimed in claim 1.

5. An information data processing terminal, It is characterized in that The information data processing terminal is used to implement the complex mechanical parts measurement point cloud registration system based on improved ICP as described in claim 2.

Citation Information

Cited By

  • Model matching method based on point cloud registration, electronic equipment and storage medium

    CN122597837A