Multi-view aviation component three-dimensional point cloud global splicing method based on mechanical arm assistance
By optimizing the hand-eye matrix and SIFT key point displacement compensation through image reprojection error, combined with the global ICP precise stitching algorithm, the problem of low accuracy in multi-view point cloud stitching of robotic arm-assisted binocular cameras is solved, and high-precision three-dimensional topography restoration is achieved.
Patent Information
- Application Number
- CN202410813746.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-21
AI Technical Summary
In the existing technology, in the multi-view three-dimensional point cloud stitching captured by a robot-assisted binocular camera, the rough stitching accuracy is low and cannot meet the high-precision requirements of aerospace manufacturing. The ICP algorithm relies on overlapping area matching and is susceptible to noise points and The influence of changes in local geometric features affects the splicing accuracy.
A genetic algorithm based on image reprojection error is used to optimize the hand-eye matrix, combined with SIFT key point displacement compensation for rough splicing, and a global constraint relationship is established through octree search. Multi-feature points are used to perform threshold elimination method and weight self-adjusting registration system. Fine splicing improves the accuracy of point cloud splicing.
It achieves efficient restoration of the three-dimensional morphology of aerospace components, improves the accuracy and speed of multi-viewpoint cloud splicing, reduces splicing errors, and enhances the restoration effect of the 3D morphology.
Smart Images

Figure CN118864787A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the fields of aviation manufacturing technology and three-dimensional measurement technology. More specifically, it relates to a global stitching method for three-dimensional point clouds of multi-perspective aviation components assisted by a robotic arm, and performs coarse stitching and fine stitching on multi-perspective point clouds obtained by a robotic arm-assisted binocular camera. Background Art
[0002] As the aerospace manufacturing industry develops towards high precision, high efficiency, low cost and flexibility, product components are becoming larger and larger, and the precision requirements are gradually increasing. Therefore, in order to verify whether the product components meet the design requirements, it is necessary to conduct on-site digital measurement of complex aircraft accessories, obtain high-precision three-dimensional morphological data of product components and conduct quantitative analysis to improve the manufacturing quality of the assembly process.
[0003] In the process of digital measurement, there are visual blind spots or dead angles when shooting and collecting, and the product components, i.e. the object to be measured, cannot be collected completely at one time. The combination of industrial robotic arms and binocular vision cameras, through the eyes on the hands, makes the field of view observation range flexible, the measurement accuracy is high, and multi-view scanning measurement can be performed, which has become an inevitable trend in today's three-dimensional measurement. After obtaining the multi-view three-dimensional point cloud, it is necessary to splice the point clouds from different viewpoints to restore the complete three-dimensional appearance of the object to be measured.
[0004] The steps of point cloud stitching are generally divided into coarse stitching and fine stitching. For the multi-view point cloud captured by the robot-assisted binocular camera, the multi-view point clouds of different coordinate systems can be uniformly converted to the robot base coordinate system through layer-by-layer conversion of the coordinate system to achieve the effect of coarse stitching. However, due to the existence of camera calibration and hand-eye calibration errors, the stitching accuracy of coarse stitching is low, which is not enough to meet the precision requirements of aerospace manufacturing, so further processing and fine stitching are required on this basis.
[0005] The registration methods of multi-view point clouds are divided into sequential stitching and global stitching. Compared with the multi-view point cloud stitching method of sequential stitching of two adjacent point clouds, global stitching can eliminate the accumulated registration error, disperse the accumulated error to each frame of point cloud, reduce the overall stitching error, and is more suitable for the stitching of multi-view point clouds. The ICP algorithm is currently the most commonly used precision stitching algorithm, which relies most on the accuracy of matching corresponding points in overlapping areas. Among the many ICP improvement methods, the main focus is on how to more accurately describe the geometric features of the point cloud to obtain corresponding points close to the actual ones. The more geometric features are considered, the higher the accuracy of the corresponding points obtained, and the higher the stitching accuracy, but the cost is that the stitching speed is slower. In addition, due to the situation that noise points cannot be completely eliminated or the geometric features in the local area of the object to be measured change little, the corresponding points close to some geometric features are not accurate, which will seriously affect the stitching accuracy. Therefore, in addition to considering multiple geometric features of point pairs, it is also necessary to further reduce the impact of erroneous point pairs in the registration process. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a global stitching method of three-dimensional point clouds of multi-perspective aerospace components based on the assistance of a robotic arm, so as to realize the efficient restoration of the three-dimensional morphology of aerospace components with high precision during the rough stitching and fine stitching of point clouds in the three-dimensional measurement process.
[0007] To achieve the above-mentioned purpose, the present invention provides a method for global stitching of three-dimensional point clouds of multi-view aviation components assisted by a robot arm, which is characterized by comprising:
[0008] (1) Rough stitching of multi-view point clouds
[0009] 1.1) Set up a joint shooting The calibration plate image of the group view, the relative position of the object to be measured and the base coordinates is fixed, and the coordinate conversion relationship between the i-th view and the j-th view (j≠i) is:
[0010] b H e,i · e H c · c H t,i = b H e,j · e H c · c H t,j
[0011] in, b H e,i , b H e,j are the transformation matrices from the i-th and j-th perspective robot end coordinate systems to the base coordinate system, c H t,i , c H t,j They are the transformation matrices from the coordinate system of the object to be measured to the camera coordinate system. The subscripts i and j represent the viewing angle numbers. The hand-eye matrix can be obtained by solving the Tsai-Lenz algorithm. e H c ;
[0012] 1.2) Establish a correction objective function for the hand-eye matrix based on the image reprojection error. The specific steps are as follows:
[0013] 1.2.1) The coordinate of a corner point on the calibration plate in the coordinate system of the object to be measured is Ψ. When shooting at the i-th viewing angle, the coordinate of the corresponding point in the camera coordinate system is Ψ. i , convert it to the jth perspective and project it onto the image coordinate system. The image coordinate o corresponding to the jth perspective of the point jThe image reprojection error is:
[0014]
[0015] Among them, z c,i is the scale factor, Q L is the camera’s intrinsic parameter matrix, are 3 rotation vectors and 3 translation components respectively, which are the genetic algorithm optimization parameters. Optimizing parameters for genetic algorithms The hand-eye matrix formed;
[0016] 1.2.2) Use genetic algorithm to optimize parameters The rotation matrix is obtained by the Rogelius transformation The translation components form the translation matrix The optimized hand-eye matrix is:
[0017]
[0018] 1.3) Replace the calibration plate with the object to be measured, and take point clouds from n perspectives. The robot arm pose matrix of the i-th perspective is i=1,2,…,n, the kth point of the i-th viewpoint cloud set is a point in the camera coordinate system. The point cloud set of the i-th, i=1,2,…,n-th perspective transformed to the robot base coordinate system is denoted as P i , the corresponding points are recorded as Then the point cloud set P i kth, Point is denoted as P i,k =(x i,k ,y i,k ,z i,k ) T , then converted to the robot base coordinates:
[0019]
[0020] Substituting all the viewpoint point clouds into the above formula, they are transformed into the base coordinate system of the robot arm, and the set of all point clouds P = {P1, P2, ..., P n}, which is the rough stitching effect of multi-view point cloud based on the hand-eye matrix;
[0021] 1.4) Use the same-name SIFT key points to perform displacement compensation on multi-view point clouds:
[0022] 1.4.1) Perform statistical filtering and uniform sampling on the point cloud of n perspectives. The point cloud is recorded as The i-th, i=1,2,…,n point cloud The points are Its kth The points are recorded as
[0023] 1.4.2) Perform SIFT key point detection separately to obtain the key point set at a specific position of each point cloud The key point set Respectively with the key point set All points of are matched to form points with the same name, and the i-th, i=2,3,…,n key point set is recorded and The jth The same name point is in, Key point set The number of key points in ;
[0024] 1.4.3) Use the position difference of the same-name points to calculate the translation of the 2nd to nth point clouds in the x, y, and z directions, and record the same-name points The coordinates of Let the i, i=2,3,…,n point clouds P before and after filtering i , After translation, they are Ω i , The final rough splicing results of the point cloud sets before and after filtering are Ω={Ω1,Ω2,…,Ω n}, Where Ω1=P1, Point cloud Ω i kth, The points are Point Cloud No. Points The calculation formula is as follows:
[0025]
[0026] in, is a constant;
[0027] (2) Use the global ICP stitching method to finely stitch the coarse stitching point cloud
[0028] 2.1) Use the octree to find the overlapping area of the roughly spliced multi-view point cloud to establish the global constraint relationship
[0029] 2.1.1) Point cloud collection Take any two point clouds from different perspectives to form a set of point pairs, the number of which is N, and the point pair matrix S is:
[0030]
[0031] Among them, the elements in the first and second columns of the i′th row are S i′,1 , S i′,2 , represents the serial number of the corresponding point set pair,
[0032] 2.1.2) Then, we traverse the number of points in the overlapping area of the point set pair to determine whether the sub-point set pair has a constraint relationship. The i′th point set pair is recorded as The number of overlapping area points is recorded as i′=1,2,…,N, The initial value of is 0, i′ is initialized to 1, and the minimum number of points in the overlapping area of two point clouds is T overlap , then the specific process of obtaining the number of point pairs in the overlapping area of the point set pair is as follows:
[0033] 2.1.2.1) For point set pairs Point Cloud Collection Building an octree
[0034] 2.1.2.2) Initialize k = 1;
[0035] 2.1.2.3) For point cloud set The kth point Determine whether the point is in the octree If so, proceed to step 2.1.2.4), otherwise, k=k+1, repeat step 2.1.2.3;
[0036] 2.1.2.4) Point For query points, in the octree In the voxel nearest neighbor search, if the query point The point cloud in the voxel , then we consider that point Its neighboring points are point pairs Point pairs in overlapping areas, number of point pairs in overlapping areas Determine whether k is greater than or equal to If it is greater than or equal to, proceed to step 2.1.2.5), otherwise k=k+1, return to step 2.1.2.3);
[0037] 2.1.2.5) Determine whether i' is greater than or equal to N. If so, get the number of overlapping points of all point sets and go to step 2.1.3). Otherwise, i'=i'+1 and return to step 2.1.2.1);
[0038] 2.1.3) Traverse all point sets i′=1,2,…,N, if Then keep this point pair in the new point pair matrix, otherwise, remove the point pair and do not keep it in the new point pair matrix to obtain a new point pair matrix S′ M×2 , M is the number of new point set pairs, go to step 2.2);
[0039] 2.2) Enter the global ICP fine stitching iteration, i.e., the outer iteration: the maximum number of iterations of the global ICP stitching loop is T q , remember the cloud collection Ω i , i=1,2,…,nAfter q times of rigid body transformation, q Ω i ,q=1,2,…,T q , i = 1, 2, ... n, the coordinates of the jth point are j=1,2,…N i , Similarly, let the sampling point cloud set After q rigid body transformations, q=1,2,…,T q , i = 1, 2, ... n, the coordinates of the jth point are Let the initial number of iterations q = 1, and the specific iteration steps are as follows:
[0040] 2.2.1) For the qth global ICP iteration, use the method in step 2.1.2) to re-determine the overlapping area of the point set pairs and obtain the point pair set in the overlapping area. The point pair set in the overlapping area of the i′, i′=1, 2, … M point set pairs is Its point logarithm is in, Then there are i′, i′=1, 2, … M overlapping point pairs, and the kth point pair is denoted as Get the total point set of the overlapping area
[0041] 2.2.2) Rematch the point pairs in the overlapping point pair set. The specific steps are as follows:
[0042] 2.2.2.1) Traverse the overlapping point set and set i′=1;
[0043] 2.2.2.2) For the i′th overlapping point set right Building a KD tree
[0044] 2.2.2.3) Start searching for point pairs, let j = 1;
[0045] 2.2.2.4) For point sets The jth point As a search point, in the KD tree Perform a nearest neighbor search to find the nearest point make remember is a point pair;
[0046] 2.2.2.5) If j=j+1, return to step 2.2.2.4), otherwise, the point set And point set Then there is is the i′th point pair set, go to step 2.2.2.6);
[0047] 2.2.2.6) If i'<M, i'=i'+1, return to step 2.2.2.2), otherwise, output the total set of initial point pairs Go to step 2.2.3);
[0048] 2.2.3) Point pair threshold elimination based on multiple features
[0049] 2.2.3.1) Euclidean distance elimination
[0050] Note q=1,2,…,T q ,i′=1,2,…,M, The coordinate components of point The coordinate components of Then the jth point pair of the i′th initial point pair set The Euclidean distance The calculation formula is as follows:
[0051]
[0052] Determine the Euclidean distance Is it greater than the rejection threshold? If it is greater than, the jth point is removed, otherwise it is retained, where the removal threshold for:
[0053]
[0054] in, is a constant coefficient;
[0055] 2.2.3.2) Distance from point to cutting plane culling
[0056] Calculate the jth point of the i′, i=1,2,…,M point pair set, Point pairs The normal vector is Then the i′, i=1,2,…,M initial point pair sets The corresponding normal vector set is recorded as Note q=1,2,…,T q ,i=1,2,…,M, The coordinate components of Its corresponding normal vector component is Note The coordinate components of Its corresponding normal vector component is Then the jth point pair of the i′th initial point pair set The distance calculation formula from the point to the tangent plane is
[0057]
[0058] Distance from point to tangent plane In range or The points are removed and the rest are retained, where q=1,2,…,T q ,i′=1,2,…,M, Rejection threshold Follow these steps to determine:
[0059] Point-to-Set The set of corresponding point-to-tangent plane distances is q Φ i′ For collection q d i′ The median of q E i′ For collection q d i′ The absolute median difference of q d i′ , whose estimated standard deviation for:
[0060]
[0061] Then the culling threshold of the distance from the point to the cutting plane is Set to:
[0062]
[0063] Where g is a constant coefficient;
[0064] 2.2.3.3) Point pair roughness removal
[0065] Calculate the jth point of the i′, i′=1, 2, …, M point pair sets. Point pairs q=1,2,…,T q The roughness is Point Set The corresponding roughness set is Point Set The corresponding roughness set is Then the i′,i′=1,2,…,M initial point pair sets The corresponding roughness set is recorded as Determine the roughness difference Is it greater than the rejection threshold T? r , if it is greater than, then remove the j-th point, otherwise keep it;
[0066] 2.2.3.4) Eliminate the angle between point pairs and normal lines
[0067] Remember to q=1,2,…,T q ,i′=1,2,…,M, The angle between the normals of Calculate the angle between normals
[0068]
[0069] If the angle between normals Greater than 180°, Then determine if the angle between the normals Greater than the threshold T θ , then remove the jth point, otherwise keep it;
[0070] In the elimination process of steps 2.2.3.1) to 2.2.3.4), set two elimination conditions to adjust the threshold T N1 and T N2 , all point pair sets are divided into three categories according to the number of point pairs in the point pair set:
[0071] when season g=g1,T θ =T θ,1 , T r =T r,1 ;
[0072] when season g=g2,T θ =T θ,2 , T r =T r,2 ;
[0073] when season g=g3,T θ =T θ,3 , T r=T r,3 ;
[0074] in, g1≥g2≥g3, T θ,1 ≥T θ,2 ≥T θ,3 , T r,1 ≥T r,2 ≥T r,3 ;
[0075] The point pair set after removing the wrong point pairs is recorded as q=1,2,…,T q , is the number of point pairs in the point pair set after elimination, then the total set of point pairs can be written as The sum of all point pairs in all M point pairs is q n o , each outer iteration is different, with:
[0076]
[0077] Total set of points The jth, j=1,2,…, q n o The point pair is Then there is
[0078] 2.2.4) Establish a multi-view point cloud weight self-adjustment registration system
[0079] 2.2.4.1) Except for the first visual point cloud, the other point clouds are loose point clouds, and the target transformation parameters of the qth iteration are q ε=[ q ε 2,q ε3,…, q ε n ] T ,in q ε i =[ q α i,g β i,q γ i,q t x,i,q t y,i , q t z,i ] T ,i=2,3,…n are the target transformation parameters of the i-th point cloud in the current iteration, q α i , q β i , q γ iThey are the three rotation parameters of the point cloud around the x, y, and z axes of the fixed point cloud coordinate system. q t x,i , q t y,i , q t z,i are the three translation parameters along the x, y, and z axes of the fixed point cloud coordinate system, respectively. The rigid body transformation homogeneous matrix of the i, i=2, 3, …, n point clouds is:
[0080]
[0081] 2.2.4.2), let the jth point in the M point pair set be i′, i′=1,2,…, Point pairs The coordinates of The corresponding normal vectors are Then in the qth, q=1,2,…,T q In the ICP iteration, the jth, Point pairs The distance from the point to the tangent plane is:
[0082]
[0083] 2.2.4.3), then the total set of point pairs The sum of the squares of the distances from all pairs of points to the tangent plane is expressed by replacing the above formula with a linear expression:
[0084]
[0085] in, q A is q n o ×n p The coefficient matrix of dimension n p =6(n-1) is the total number of transformation parameters for all loose point clouds, q A j ,j=1,2,…, q n o yes q The j-th row of A is the element about the point pair and the normal vector The function of q The construction steps of A are as follows:
[0086] First initialize q A is an all-zero matrix;
[0087] Next, construct q A's column index vector in
[0088]
[0089] Then construct q The row index vector of A q A h_i′ , i′=1,2,…,M corresponds to the row index matrix of the i′th point pair set:
[0090]
[0091] in, q A row is the total number of point pairs in the currently traversed point pair set, which is:
[0092]
[0093] For the i′th, i′=1,2,…,M point pair sets No. Point pairs have corresponding coefficient vectors, which are The form is as follows:
[0094]
[0095] in, The elements are constructed as follows:
[0096]
[0097] Then for the i′, i′=1,2,…,M point pair sets There are two cases:
[0098] If S′ i′,1 =1, coefficient matrix q A's rth,r∈ q A h_i′ row, c7, c8, c9, c 10 、c 11 、c 12 The column values are as follows:
[0099]
[0100] If S′ o′,1 ≠1, coefficient matrix q A's rth,r∈ q A h_i′ The values of rows c1, c2, c3, c4, c5, and c6 are as follows:
[0101]
[0102] No. c7, c8, c9, c 10 、c 11 、c 12 The column values are as follows:
[0103]
[0104] in, Represents the column index matrix A L S′ i′,1 , i′=1,2,…,M rows and m, m=1,2,…,6 columns, Represents the column index matrix A L S′ i′,2 , i′=1,2,…,M rows and m=1,2,…,6 columns;
[0105] 2.2.4.4) Next, enter the registration system iteration, that is, the inner iteration loop, and set the current registration system iteration number to λ = 1, and the weight adjustment flag to The number of weight adjustments is N w =0, click to activate the flag n o ×1-dimensional all-one vector; let the maximum number of inner iterations be λ max , the maximum number of weight adjustments is The Krasus termination criterion and the convergence threshold of the maximum linearization error are respectively
[0106] 2.2.4.5) Let the transformation parameters of all loose point clouds obtained by the λth inner iteration of the qth outer iteration be And the objective function solution of the registration system of the current iteration is Then we have:
[0107]
[0108] in, is the target transformation parameter of the previous iteration, which is the zero vector in the first iteration. Let the transformation parameter vector of all point cloud sets be ε01′ is a fixed point cloud set The transformation parameters of the pose remain unchanged, that is, ε0′1=[0,0,0,0,0,0] T ;
[0109] 2.2.4.6) Ideally, when the difference between the point pair distances between two registration system iterations is the same, the optimal parameter solution is obtained. The distance vector from all points to the tangent plane is called the observation vector Bundle As estimates to fit observed values Then the observation vector of the λth inner iteration of the qth outer iteration is The construction steps are as follows:
[0110] Similar to step 2.2.4.1), a point pair set is formed i′=1,2,…,M The homogeneous transformation matrix of two point sets The construction formula is as follows:
[0111]
[0112] in, (k=1,2,…,6), is the parameter vector I k elements;
[0113] The i′,i′=1,2,…,M point pair sets No. Point pairs Their respective homogeneous coordinates are:
[0114]
[0115] Through the homogeneous transformation matrix After conversion, click Their respective homogeneous coordinates are:
[0116]
[0117] Click on The Cartesian coordinates become:
[0118]
[0119] in, They are The x, y, and z coordinates of They are The x, y, and z coordinates of the point are converted. The distance from the point to the tangent plane is:
[0120]
[0121] Point-to-Set The distance vector from all point pairs i′=1,2,…,M to the tangent plane is:
[0122]
[0123] Then the observation vector for:
[0124]
[0125] in, For the jth, j=1,2,…, q n o The distance from a point to the tangent plane;
[0126] 2.2.4.7) Record is the weight vector corresponding to the i′,i′=1,2,…,M point pair set, is the i′, i′=1, 2, …, M point pair set Point pairs The weight is calculated as follows:
[0127]
[0128] Point pair The relative weights are:
[0129]
[0130] Then the point pair set i′=1,2,…,M The relative weight vector is:
[0131]
[0132] The relative weight vector of all point pairs is:
[0133]
[0134] in, For the jth, j=1,2,…, q n o The relative weight of each point;
[0135] 2.2.4.8) Introduce a weight adjustment factor in the registration system Each inner iteration will re-weight the point pairs according to the situation of the previous iteration. The initial setting is one q n o ×1-dimensional all-1 vector, the weight matrix of the λth inner iteration is Its dimension is q n o ×1, the weight of the j-th point pair is The calculation formula is:
[0136]
[0137] in, are the relative weight vectors Weight Adjustment Factor The jth element of the multi-view point cloud weight self-adjustment registration system objective function is:
[0138]
[0139] 2.2.4.9) Establish the registration iterative constraint system:
[0140] Use the model residual to constrain the inner iteration, then the model residual of the λth inner iteration is for:
[0141]
[0142] Use the estimated standard deviation of the distance from the point to the tangent plane to standardize the model residuals to obtain the standardized residuals The standardized residual calculation formula for the jth observation is as follows:
[0143]
[0144] in, q δ j The model residuals are and q The jth element of δ, is the estimated standard deviation vector of the distances from all point pairs to the tangent plane, Point pair set q=1,2,…,T q ,i′=1,2,…,the estimated standard deviation vector of M, for dimensional all-one vector;
[0145] Similar to step 2.2.4.6), construct the observation vector method, let That is, after the point cloud set is converted by the conversion parameters obtained by the current inner layer iteration, the distance vectors from all point pairs to the tangent plane are calculated. According to the Krasus termination criteria, there are:
[0146]
[0147] in, The subscript j represents the jth vector, j = 1, 2, ..., q n o elements; using the residual and the vector The difference between the linearization error vector of the model is expressed as the maximum absolute value of the element of the linearization error vector, and the maximum linearization error is Its expression is as follows:
[0148]
[0149] in, is the residual and vector The jth element of ;
[0150] The iterative constraint steps of the weight self-adjusting registration system are as follows:
[0151] 2.2.4.9.1) If Go to step 2.2.4.9.2, otherwise, update the number of iterations λ = λ + 1, continue iterating, and return to step 2.2.4.5);
[0152] 2.2.4.9.2) If the weight adjustment flag Update right adjustment times: N w =N w +1, go to step 2.2.4.9.3, otherwise, end the inner iteration;
[0153] 2.2.4.9.3) Traversing the standardized residuals Construct activation standard residual vector for The jth, j=1,2,…, q n o Elements If the corresponding activation flag Then there is in, is the standardized residual vector The jth, j=1,2,…, q n o elements;
[0154] 2.2.4.9.4) If satisfied and conditions, that is The maximum absolute value of the elements in is greater than the residual threshold And the number of weight adjustments does not exceed its threshold It is considered that there is a serious error in this inner iteration and the weight adjustment factor needs to be adjusted. Make adjustments:
[0155] Update the number of iterations λ = 0, adjust the weight adjustment factor, and the adjustment formula for the jth weight adjustment factor is:
[0156]
[0157] When the weight is adjusted N times w >1: For the jth observation, if its standard residual You need to reactivate it, If the standard residual Then the observation is disabled, that is The weight adjustment factor corresponding to this point pair is adjusted to the minimum value After the weight adjustment is completed, continue the iteration and return to step 2.2.4.5);
[0158] Otherwise, if not satisfied and If the condition is met, it is considered that there is no serious error in this inner iteration process:
[0159] When the weight is adjusted N times w >1, update iteration number λ=0, j=1,2,…, q n o , and enable the weight adjustment flag Continue iterating and return to step 2.2.4.5), otherwise, stop the inner iteration and go to step 2.2.5);
[0160] 2.2.5) Perform rigid body transformation
[0161] The loose point cloud transformation parameters of the qth outer layer iteration are obtained by step 2.2.4) Then the rigid body transformation matrix of the loose point cloud is:
[0162]
[0163] Loose point cloud collection before and after filtering (q-1) Ω i , Every point of i=2,3,…n Perform a rigid body transformation to transform its coordinates to the same coordinate system as the fixed point cloud. The calculation formula is as follows:
[0164]
[0165] Then we get the point cloud set after q transformations There is a collection q Ω={ q Ω 1,q Ω2,…, q Ω n}、 save q Ω、 Go to step 2.2.6);
[0166] 2.2.6) Set the global transformation parameter threshold to T ε , if || q ε||2≤Tε Or q ≥ T q , stop the outer iteration immediately, and get the precisely stitched multi-view point cloud before and after filtering Ω′= q Ω、 Otherwise, the point cloud q Ω、 Substitute into step 2.2) and continue the global ICP iteration.
[0167] The object of the invention of the present invention is achieved in this way:
[0168] The present invention provides a global splicing method for three-dimensional point clouds of multi-view aviation components assisted by a mechanical arm, and performs fine splicing on roughly spliced multi-view point clouds whose splicing accuracy needs to be improved.
[0169] The first step is coarse stitching: for the three-dimensional point cloud of aviation components from multiple perspectives, the hand-eye matrix is optimized based on the genetic algorithm of image reprojection. According to the coordinate system transformation of the hand-eye relationship and the robot arm posture, the multi-perspective point cloud is uniformly transformed to the robot arm base coordinate system to obtain the initial coarse stitching result. In order to compensate for the coarse stitching displacement deviation caused by the error of the robot end calibrated by hand-eye, a coarse stitching method based on the same scale-invariant feature transform (SIFT) key points is proposed to compensate for the displacement of the initial coarse stitching result, and a coarse stitching result with better relative position is obtained. The second step is fine stitching: the global constraint relationship of the multi-view point cloud is established by searching the overlapping area between the point clouds through the octree. Then, KD is used to match the point pair relationship in the overlapping area, and a point pair threshold elimination method based on multi-features is proposed to eliminate the wrongly matched point pairs based on the point-to-point, point-to-plane and plane-to-plane geometric properties of the point cloud, so as to ensure the accuracy of the point pairs and reduce the number of point pairs as much as possible, so as to ensure that the number of point pairs is sufficient for registration. In addition, during the ICP iteration process, a weighted self-adjusting registration system for multi-field-of-view point clouds is established, each point pair is weighted, and the weights are continuously adjusted through the registration iterative constraint system to minimize the impact of erroneous point pairs in the registration process. The rigid body transformation parameters of all point clouds, that is, the optimal point cloud transformation parameters, are obtained at one time, which improves the stitching accuracy of multi-field-of-view point clouds and enables the three-dimensional morphology of the object to be measured to be well restored. BRIEF DESCRIPTION OF THE DRAWINGS
[0170] Figure 1 It is a flowchart of a specific implementation method of the multi-view aviation component three-dimensional point cloud global splicing method based on the assistance of a robot arm of the present invention;
[0171] Figure 2 It is the coordinate system transformation relationship diagram of the hand-eye calibration process;
[0172] Figure 3 It is a schematic diagram of displacement compensation of point cloud using SIFT key points of the same name;
[0173] Figure 4 It is a process flow chart for establishing global constraint relationships;
[0174] Figure 5 It is the minimum reprojection error change curve corresponding to the iterative process of the genetic algorithm;
[0175] Figure 6 It is the point cloud of aircraft engine blades taken from eight different angles;
[0176] Figure 7 are the original relative positions of the point clouds from eight different viewpoints;
[0177] Figure 8 This is a comparison of the effect of roughly stitching multi-view point clouds using the hand-eye matrix before and after correction, where (a) is the initial hand-eye matrix e H c Rough stitching effect, (b) is the corrected hand-eye matrix Rough stitching effect;
[0178] Fig. 9 is the rough stitching result, where (a) is the front side, (b) is the right side, (c) is the back side, and (d) is the left side;
[0179] Fig.10 These are the details of the rough stitching results, where (a) is the blade body part, (b) is the blade root part, and (c) is the junction between the blade root and the blade body;
[0180] Fig.11 It is a multi-view point cloud after rough splicing by sampling and filtering;
[0181] Fig.12 It is a graph showing the change of the second norm of the global transformation parameter and the change of the overall stitching error of the point cloud during the iterative process of global ICP fine stitching;
[0182] Fig.13 This is the result of global ICP stitching, where (a) is the left side and (b) is the back side;
[0183] Fig.14 These are the details of the global ICP stitching results, where (a) is the blade body part, (b) is the blade root part, and (c) is the junction between the blade root and the blade body. DETAILED DESCRIPTION
[0184] The specific implementation of the present invention is described below in conjunction with the accompanying drawings so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
[0185] Figure 1 It is a flowchart of a specific implementation method of the present invention for global stitching of three-dimensional point clouds of multi-view aviation components assisted by a robotic arm.
[0186] In this embodiment, if Figure 1 As shown, the present invention is based on the robot-assisted multi-view aviation component three-dimensional point cloud global stitching method, which is characterized by comprising:
[0187] Step S1: Rough stitching of multi-view point clouds
[0188] Step S1.1: The coordinate transformation relationship diagram of the hand-eye calibration process is as follows Figure 2 As shown, suppose a total of The calibration plate image of the group view, the relative position of the object to be measured and the base coordinates is fixed, and the coordinate conversion relationship between the i-th view and the j-th view (j≠i) is:
[0189] b H e,i · e H c · c H t,i = b H e,j · e H c · c H t,j
[0190] in, b H e,i , b H e,j are the transformation matrices from the i-th and j-th perspective robot end coordinate systems to the base coordinate system, c H t,i , c H t,j They are the transformation matrices from the coordinate system of the object to be measured to the camera coordinate system. The subscripts i and j represent the viewing angle numbers. The hand-eye matrix can be obtained by solving the Tsai-Lenz algorithm. e H c .
[0191] Step S1.2: Establish a correction objective function for the hand-eye matrix based on the image reprojection error. The specific steps are as follows:
[0192] Step S1.2.1: Note that the coordinate of a corner point on the calibration plate in the coordinate system of the object to be measured is Ψ. When shooting at the i-th viewing angle, the corresponding coordinate in the camera coordinate system is Ψ. i , convert it to the jth perspective and project it onto the image coordinate system. The image coordinate o corresponding to the jth perspective of the point j The image reprojection error is:
[0193]
[0194] Among them, z c,i is the scale factor, Q L is the camera’s intrinsic parameter matrix, are 3 rotation vectors and 3 translation components respectively, which are the genetic algorithm optimization parameters. Optimizing parameters for genetic algorithms The hand-eye matrix formed;
[0195] Step S1.2.2: Optimize parameters using genetic algorithm The rotation matrix is obtained by the Rogelius transformation The translation components form the translation matrix The optimized hand-eye matrix is:
[0196]
[0197] Step S1.3: Replace the calibration plate with the object to be measured, and take point clouds from n perspectives. The robot arm pose matrix of the i-th perspective is recorded as i=1,2,…,n, the kth point of the i-th viewpoint cloud set is a point in the camera coordinate system. The point cloud set of the i-th, i=1,2,…,n-th perspective transformed to the robot base coordinate system is denoted as P i , the corresponding points are recorded as Then the point cloud set P i kth, Point is denoted as P i,k =(x i,k ,y i,k ,z i,k ) T , then converted to the robot base coordinates:
[0198]
[0199] Substituting all the viewpoint point clouds into the above formula, they are transformed into the base coordinate system of the robot arm, and the set of all point clouds P = {P1, P2, ..., P n}, which is the rough stitching effect of multi-view point cloud based on the hand-eye matrix.
[0200] Step S1.4: Since hand-eye calibration may have a large translation error, the SIFT key points with the same name are used to perform displacement compensation on the multi-view point cloud. The principle diagram is as follows: Figure 3 As shown:
[0201] 1.4.1) Perform statistical filtering and uniform sampling on the point cloud of n perspectives. The point cloud is recorded as The i-th, i=1,2,…,n point cloud The points are Its kth The points are recorded as
[0202] 1.4.2) Perform SIFT key point detection separately to obtain the key point set at a specific position of each point cloud The key point set Respectively with the key point set All points of are matched to form points with the same name, and the i-th, i=2,3,…,n key point set is recorded and The jth The same name point is in, Key point set The number of key points in ;
[0203] 1.4.3) Use the position difference of the same-name points to calculate the translation of the 2nd to nth point clouds in the x, y, and z directions, and record the same-name points The coordinates of Let the i, i=2,3,…,n point clouds P before and after filtering i , After translation, they are Ω i , The final rough splicing results of the point cloud sets before and after filtering are Ω={Ω1,Ω2,...,Ω n}, Where Ω1=P1, Point cloud Ω i kth, The points are Point Cloud No. Points The calculation formula is as follows:
[0204]
[0205] in, is a constant.
[0206] Step S2: Use the global ICP stitching method to finely stitch the coarse stitching point cloud
[0207] Step S2.1: Use the octree to find the overlapping area of the roughly spliced multi-view point cloud to establish the global constraint relationship. The process is as follows: Figure 2 As shown, the following steps are included:
[0208] Step S2.1.1:
[0209] Point Cloud Collection Take any two point clouds from different perspectives to form a set of point pairs, the number of which is N, and the point pair matrix S is:
[0210]
[0211] Among them, the elements in the first and second columns of the i′th row are S iv,1 , S i′,2 , represents the serial number of the corresponding point set pair,
[0212] Step S2.1.2: Next, determine whether the point set pair has a constraint relationship by traversing the number of points in the overlapping area of the point set pair. Record the i′th point set pair as The number of overlapping area points is recorded as i′=1,2,…,N, The initial value of is 0, i′ is initialized to 1, and the minimum number of points in the overlapping area of two point clouds is T overlap , then the specific process of obtaining the number of point pairs in the overlapping area of the point set pair is as follows:
[0213] Step S2.1.2.1: For a point set pair Point Cloud Collection Building an octree
[0214] Step S2.1.2.2: Initialize k=1;
[0215] Step S2.1.2.3: For point cloud collection The kth point Determine whether the point is in the octree If so, proceed to step 2.1.2.4), otherwise, k=k+1, repeat step 2.1.2.3;
[0216] Step S2.1.2.4: Point For query points, in the octree In the voxel nearest neighbor search, if the query point The point cloud in the voxel , then we consider that point Its neighboring points are point pairs Point pairs in overlapping areas, number of point pairs in overlapping areas Determine whether k is greater than or equal to If it is greater than or equal to, proceed to step S2.1.2.5; otherwise k=k+1, return to step S2.1.2.3;
[0217] Step S2.1.2.5: Determine whether i′ is greater than or equal to N. If so, obtain the number of overlapping points of all point set pairs and proceed to step S2.1.3. Otherwise, i′=i′+1 and return to step S2.1.2.1.
[0218] Step S2.1.3: Traverse all point set pairs i′=1,2,…,N, if Then keep this point pair in the new point pair matrix, otherwise, remove the point pair and do not keep it in the new point pair matrix to obtain a new point pair matrix S′ M×2 , M is the number of new point set pairs, and go to step S2.2.
[0219] Step S2.2 enters the global ICP fine stitching iteration, i.e., the outer layer iteration:
[0220] The first point cloud set is taken as the fixed point cloud, and the other point clouds are loose point clouds. When converting the loose point cloud to the fixed point cloud coordinate system, it is necessary to consider the constraints of all overlapping point clouds, eliminate the cumulative stitching error, and disperse the error to each frame of point cloud, so that the overall stitching error is reduced.
[0221] The maximum number of iterations of the global ICP splicing loop is T q , remember the cloud collection Ω i , i=1,2,…,nAfter q times of rigid body transformation, q Ω i ,q=1,2,…,T q , i = 1, 2, ... n, the coordinates of the jth point are j=1,2,…N i , Similarly, let the sampling point cloud set After q rigid body transformations, q=1,2,…,T q , i = 1, 2, ... n, the coordinates of the jth point are
[0222] It should be noted that after the point set pairs undergo different iterations of rigid body transformation, the overlapping area is different each time, so in the new iteration, the overlapping area point set needs to be re-determined before matching the point pairs. Let the initial iteration number q = 1, and the specific iteration steps are as follows:
[0223] Step S2.2.1: For the qth global ICP iteration, use the method of step S2.1.2 to re-determine the overlapping area of the point set pairs and obtain the point pair set in the overlapping area. The point pair set in the overlapping area of the i′, i′=1, 2, … Mth point set pairs is Its point logarithm is in, Then there are i′, i′=1, 2, … M overlapping point pairs, and the kth point pair is denoted as Get the total point set of the overlapping area
[0224] Step S2.2.2: Rematch the point pairs in the overlapping point pair set. The specific steps are as follows:
[0225] Step S2.2.2.1: traverse the overlapping point set, set i′=1;
[0226] Step S2.2.2.2: For the i′th overlapping point set right Building a KD tree
[0227] Step S2.2.2.3: Start searching for point pairs, let j = 1;
[0228] Step S2.2.2.4: For the point set The jth point As a search point, in the KD tree Perform a nearest neighbor search to find the nearest point make remember is a point pair;
[0229] Step S2.2.2.5: If j=j+1, return to step S2.2.2.4, otherwise, the point set And point set Then there is For the i′th point pair set, go to step S2.2.2.6:;
[0230] Step S2.2.2.6: If i′<M, i′=i′+1, return to step S2.2.2.2, otherwise, output the total set of initial point pairs Go to step S2.2.3;
[0231] Step S2.2.3: Multi-feature based point pair threshold elimination
[0232] In order to improve the accuracy of point cloud registration, it is necessary to eliminate incorrect matching point pairs and combine multiple geometric features to enrich the geometric information of point pairs to determine the accuracy of matching point pairs.
[0233] Step S2.2.3.1: Euclidean distance elimination
[0234] Note q=1,2,…,T q ,i′=1,2,…,M, The coordinate components of point The coordinate components of Then the jth point pair of the i′th initial point pair set The Euclidean distance The calculation formula is as follows:
[0235]
[0236] After rough stitching, the overlapping areas between the point clouds are relatively close. At this time, the Euclidean distances between the real point pairs must be relatively close. However, there may be different degrees of proximity between point pairs in the overlapping areas of different point pair sets. Therefore, the mean of the Euclidean distance of the entire point pair set is used as the point pair removal threshold.
[0237] Determine the Euclidean distance Is it greater than the rejection threshold? If it is greater than, the jth point is removed, otherwise it is retained, where the removal threshold for:
[0238]
[0239] in, is a constant coefficient.
[0240] Step S2.2.3.2: Point to cutting plane distance culling
[0241] Calculate the jth point of the i′, i=1,2,…,M point pair set, Point pairs The normal vector is Then the i′, i=1,2,…,M initial point pair sets The corresponding normal vector set is recorded as Note q=1,2,…,T q ,i=1,2,…,M, The coordinate components of Its corresponding normal vector component is Note The coordinate components of Its corresponding normal vector component is Then the jth point pair of the i′th initial point pair set The distance calculation formula from the point to the tangent plane is
[0242]
[0243] Since all points in the point pair set contribute to the registration of the entire point pair, the relative size of the point pair's distance to the tangent plane in the entire point pair set must be considered when removing point pairs.
[0244] Distance from point to tangent plane In range or The points are removed and the rest are retained, where q=1,2,…,T q ,i′=1,2,…,M, Rejection threshold Follow these steps to determine:
[0245] Point-to-Set The set of corresponding point-to-tangent plane distances is q Φ i′ For collection q d i′ The median of q E i′ For collection q d i′ The absolute median difference of q d i′ , whose estimated standard deviation for:
[0246]
[0247] Then the culling threshold of the distance from the point to the cutting plane is Set to:
[0248]
[0249] Where g is a constant coefficient.
[0250] Step S2.2.3.3: Point pair roughness removal
[0251] The covariance matrix constructed by the PCA method can describe the change trend of the plane point cloud surface, and its eigenvalue can reflect the degree of change of the point cloud surface. The point cloud roughness can be represented as the minimum eigenvalue of the covariance matrix.
[0252] Calculate the jth point of the i′, i′=1, 2, …, M point pair sets. Point pairs q=1,2,…,T q The roughness is Point Set The corresponding roughness set is Point Set The corresponding roughness set is Then the i′,i′=1,2,…,M initial point pair sets The corresponding roughness set is recorded as
[0253] For actual point pairs, their roughness should be consistent, so the roughness difference can be used As the point pair removal condition. Determine the roughness difference Is it greater than the rejection threshold T? r , if it is greater than, the j-th point is eliminated, otherwise it is retained.
[0254] Step S2.2.3.4: Eliminate angles between point pairs and normals
[0255] Remember to q=1,2,…,T q ,i′=1,2,…,M, The angle between the normals of Calculate the angle between normals
[0256]
[0257] If the angle between normals Greater than 180°, Then determine if the angle between the normals Greater than the threshold T θ , then remove the j-th point, otherwise keep it.
[0258] In the elimination process of step S2.2.3.1 to step S2.2.3.4),
[0259] Set the point pair rejection threshold size according to the number of point pairs in the point pair set, and set two rejection conditions to adjust the threshold T N1 and T N2 , all point pair sets are divided into three categories according to the number of point pairs in the point pair set:
[0260] when season g=g1,T θ =T θ,1 , T r =T r,1 ;
[0261] when season g=g2,T θ =T =,2 , T r =T r,2 ;
[0262] when season g=g3,T θ =T θ,3 , T r =T r,3 ;
[0263] in, g1≥g2≥g3, Tθ,1 ≥T θ,2 ≥T θ,3 , T r,1 ≥T r,2 ≥T r,3 ;
[0264] The point pair set after removing the wrong point pairs is recorded as q=1,2,…,T q , is the number of point pairs in the point pair set after elimination, then the total set of point pairs can be written as The sum of all point pairs in all M point pairs is q n o , each outer iteration is different, with:
[0265]
[0266] Total set of points The jth, j=1,2,…, q n o The point pair is Then there is
[0267] Step S2.2.4: Establish a multi-view point cloud weight self-adjustment registration system
[0268] In this embodiment, the steps of establishing a multi-view point cloud weight self-adjusting registration system are as follows:
[0269] Step S2.2.4.1: For multi-view point clouds, except for the point cloud of the first vision, the other point clouds are loose point clouds. All loose point clouds need to be rigid-body transformed, and the parameters of all loose point clouds need to be solved. The target transformation parameters of the qth iteration are q ε=[ q ε 2,q ε3,…, q ε n ] T ,in q ε i =[ q α i,g β i,q γ i,q t x,i,q t y,i,q t z,i ] T ,i=2,3,…n are the target transformation parameters of the i-th point cloud in the current iteration, q α i , q β i , q γ iThey are the three rotation parameters of the point cloud around the x, y, and z axes of the fixed point cloud coordinate system. q t x,i , q t y,i , q t z,i are the three translation parameters along the x, y, and z axes of the fixed point cloud coordinate system, respectively. The rigid body transformation homogeneous matrix of the i, i=2, 3, …, n point clouds is:
[0270]
[0271] Step S2.2.4.2: Record the jth point in the i′, i′=1, 2, ..., M point pairs. Point pairs The coordinates of The corresponding normal vectors are Then in the qth, q=1,2,...,T q In the ICP iteration, the jth, Point pairs The distance from the point to the tangent plane is:
[0272]
[0273] Step S2.2.4.3: Then the total set of point pairs The sum of the squares of the distances from all pairs of points to the tangent plane is expressed by replacing the above formula with a linear expression:
[0274]
[0275] in, q A is q n o ×n p The coefficient matrix of dimension n p =6(n-1) is the total number of transformation parameters for all loose point clouds, q A j ,j=1,2,…, q n o yes q The j-th row of A is the element about the point pair and the normal vector The function of q The construction steps of A are as follows:
[0276] First initialize q A is an all-zero matrix;
[0277] Next, construct q A's column index vector in
[0278]
[0279] Then construct q The row index vector of A q A h_i′ , i′=1,2,…,M corresponds to the row index matrix of the i′th point pair set:
[0280]
[0281] in, q A row is the total number of point pairs in the currently traversed point pair set, which is:
[0282]
[0283] For the i′th, i′=1,2,…,M point pair sets No. Point pairs have corresponding coefficient vectors, which are The form is as follows:
[0284]
[0285] in, The elements are constructed as follows:
[0286]
[0287] Coefficient Matrix q The number of columns in A does not include the number of conversion parameters for the fixed point cloud, so q In the assignment of A, when one of the matching point sets is a fixed point cloud, only q A is the value of the corresponding column of the point set to the loose point cloud set.
[0288] Then for the i′, i′=1,2,…,M point pair sets There are two cases:
[0289] If S′ i′,1 =1, coefficient matrix q A's rth,r∈ q A h_i′ row, c7, c8, c9, c 10 、c 11 、c 12 The column values are as follows:
[0290]
[0291] If S′ o′,1 ≠1, coefficient matrixq A's rth,r∈ q A h_i′ The values of rows c1, c2, c3, c4, c5, and c6 are as follows:
[0292]
[0293] No. c7, c8, c9, c 10 、c 11 、c 12 The column values are as follows:
[0294]
[0295] in, Represents the column index matrix A L S′ i′,1 , i′=1,2,…,M rows and m, m=1,2,…,6 columns, Represents the column index matrix A L S′ i′,2 , element values of i′=1,2,…,M rows and m=1,2,…,6 columns.
[0296] Step S2.2.4.4: Next, enter the registration system iteration, i.e., the inner iteration loop, and set the current registration system iteration number to λ = 1, and the weight adjustment flag to The number of weight adjustments is N w =0, click to activate the flag n o ×1-dimensional all-one vector; let the maximum number of inner iterations be λ max , the maximum number of weight adjustments is The Krasus termination criterion and the convergence threshold of the maximum linearization error are respectively
[0297] Step S2.2.4.5: Let the transformation parameters of all loose point clouds obtained by the λth inner iteration of the qth outer iteration be And the objective function solution of the registration system of the current iteration is Then we have:
[0298]
[0299] in, is the target transformation parameter of the previous iteration, which is the zero vector in the first iteration. Let the transformation parameter vector of all point cloud sets be ε01′ is a fixed point cloud set The transformation parameters of the pose remain unchanged, that is, ε0′1=[0,0,0,0,0,0] T ;
[0300] Step S2.2.4.6: Ideally, the optimal parameter solution is obtained when the difference between the point pair distances between two iterations of the registration system is the same. The distance vector from all points to the tangent plane is called the observation vector Bundle As estimates to fit observed values Then the observation vector of the λth inner iteration of the qth outer iteration is The construction process includes the following steps:
[0301] Similar to step S2.2.4.1, a point pair set is formed i′=1,2,…,M The homogeneous transformation matrix of two point sets The construction formula is as follows:
[0302]
[0303] in, (k=1,2,…,6), is the parameter vector I k elements;
[0304] The i′,i′=1,2,…,M point pair sets No. Point pairs Their respective homogeneous coordinates are:
[0305]
[0306] Through the homogeneous transformation matrix After conversion, click Their respective homogeneous coordinates are:
[0307]
[0308] Click on The Cartesian coordinates become:
[0309]
[0310] in, They are The x, y, and z coordinates of They are The x, y, and z coordinates of the point are converted. The distance from the point to the tangent plane is:
[0311]
[0312] Point-to-Set The distance vector from all point pairs i′=1,2,…,M to the tangent plane is:
[0313]
[0314] Then the observation vector for:
[0315]
[0316] in, For the jth, j=1,2,…, q n o The distance from a point to the tangent plane.
[0317] Step S2.2.4.7: For a point pair, the smaller the angle between their normals, the closer the normal directions of the two corresponding points are to parallel, and the greater the probability that the two points are located on the same plane of the actual object being measured, and the more likely they are overlapping points. Therefore, each point pair needs to be weighted to indicate its importance in the stitching process.
[0318] remember is the weight vector corresponding to the i′,i′=1,2,…,M point pair set, is the i′, i′=1, 2, …, M point pair set Point pairs The weight is calculated as follows:
[0319]
[0320] Point pair The relative weights are:
[0321]
[0322] Then the point pair set i′=1,2,…,M The relative weight vector is:
[0323]
[0324] The relative weight vector of all point pairs is:
[0325]
[0326] in, For the jth, j=1,2,..., q n o The relative weight of each point;
[0327] Step S2.2.4.8: Introduce a weight adjustment factor into the registration system Each inner iteration will re-weight the point pairs according to the situation of the previous iteration. The initial setting is one q n o ×1-dimensional all-1 vector, the weight matrix of the λth inner iteration is Its dimension is q n o ×1, the weight of the j-th point pair is The calculation formula is:
[0328]
[0329] in, are the relative weight vectors Weight Adjustment Factor The jth element of the multi-view point cloud weight self-adjustment registration system objective function is:
[0330]
[0331] Step S2.2.4.9: Establish the registration iterative constraint system:
[0332] Since the residual can reflect the error caused by the estimated value to predict the observed value, in order to ensure the data rationality of the registration model, the model residual is used to constrain the inner iteration. The model residual of the λth inner iteration is for:
[0333]
[0334] Use the estimated standard deviation of the distance from the point to the tangent plane to standardize the model residuals to obtain the standardized residuals The standardized residual calculation formula for the jth observation is as follows:
[0335]
[0336] in, q δ j The model residuals are and q The jth element of δ, is the estimated standard deviation vector of the distances from all point pairs to the tangent plane, Point pair set q=1,2,…,T q ,i′=1,2,…,the estimated standard deviation vector of M, for dimensional all-one vector;
[0337] As in step S2.2.4.6, construct the observation vector method, let That is, after the point cloud set is converted by the conversion parameters obtained by the current inner layer iteration, the distance vectors from all point pairs to the tangent plane are calculated. According to the Krasus termination criteria, there are:
[0338]
[0339] in, The subscript j represents the jth vector, j = 1, 2, ..., q n o elements; using the residual and the vector The difference between the linearization error vector of the model is expressed as the maximum absolute value of the element of the linearization error vector, and the maximum linearization error is Its expression is as follows:
[0340]
[0341] in, is the residual and vector The jth element of ;
[0342] The iterative constraint steps of the weight self-adjusting registration system are as follows:
[0343] Step S2.2.4.9.1: If Go to step S2.2.4.9.2, otherwise, update the number of iterations λ = λ + 1, continue iterating, and return to step S2.2.4.5;
[0344] Step S2.2.4.9.2: If the weight adjustment flag Update right adjustment times: N w =N w +1, go to step S2.2.4.9.3, otherwise, end the inner iteration;
[0345] Step S2.2.4.9.3: Iterate over the standardized residuals Construct activation standard residual vector for The jth, j=1,2,…, q n o Elements If the corresponding activation flag Then there is in, is the standardized residual vector The jth, j=1,2,…, q n o elements;
[0346] Step S2.2.4.9.4: If satisfied and conditions, that is The maximum absolute value of the elements in is greater than the residual threshold And the number of weight adjustments does not exceed its threshold It is considered that there is a serious error in this inner iteration and the weight adjustment factor needs to be adjusted. Make adjustments:
[0347] Update the number of iterations λ = 0, adjust the weight adjustment factor, and the adjustment formula for the jth weight adjustment factor is:
[0348]
[0349] When the weight is adjusted N times w >1: For the jth observation, if its standard residual You need to reactivate it, If the standard residual Then the observation is disabled, that is The weight adjustment factor corresponding to this point pair is adjusted to the minimum value After the weight adjustment is completed, continue the iteration and return to step S2.2.4.5;
[0350] Otherwise, if not satisfied and If the condition is met, it is considered that there is no serious error in this inner iteration process:
[0351] When the weight is adjusted N times w >1, update iteration number λ=0, j=1,2,…, q n o , and enable the weight adjustment flag Continue iterating and return to step S2.2.4.5; otherwise, stop the inner iteration and proceed to step S2.2.5.
[0352] Step S2.2.5: Perform rigid body transformation
[0353] The loose point cloud transformation parameters of the qth outer layer iteration are obtained by step S2.2.4 Then the rigid body transformation matrix of the loose point cloud is:
[0354]
[0355] Loose point cloud collection before and after filtering (q-1) Ω i , Every point of i=2,3,…n Perform a rigid body transformation to transform its coordinates to the same coordinate system as the fixed point cloud. The calculation formula is as follows:
[0356]
[0357] Then we get the point cloud set after q transformations There is a collection q Ω={ q Ω 1,q Ω2,…, q Ω n}、 save q Ω、 Proceed to step S2.2.6.
[0358] Step S2.2.6: Set the global transformation parameter threshold to T ε ,like‖ q ε‖2≤T ε Or q ≥ T q , stop the outer iteration immediately, and get the precisely stitched multi-view point cloud before and after filtering Ω′= q Ω、 Otherwise, the point cloud q Ω、 Substitute into step S2.2 and continue the global ICP iteration.
[0359] Examples
[0360] In this example, the experiment measures the aircraft engine blades from multiple perspectives, and performs multi-perspective point cloud stitching and geometric feature extraction according to the content of the present invention. First, the robot arm posture is adjusted to assist the binocular camera to take 10 sets of chessboard calibration plate images from different perspectives. The calibration plate size is 8×11, and the chessboard size is 15mm. The left camera extrinsic matrix is obtained by Zhang Zhengyou's camera calibration method. c H t,i (i=1,2,…,10), record the robot arm pose matrix at each viewing angle b H e,i (i=1,2,…,10). Use Tsai-Lenz algorithm to solve the initial hand-eye matrix:
[0361]
[0362] Calculate the initial hand-eye matrix e H c The corresponding reprojection error is 2750.3. The corrected hand-eye matrix obtained by genetic algorithm optimization is:
[0363]
[0364] like Figure 5The figure shows the change curve of the minimum reprojection error during the genetic algorithm iteration process. It can be seen that the minimum reprojection error is reduced to 628.496 after 300 iterations. Figure 6 and Figure 7 The following are the point clouds of the aircraft engine blades taken from 8 different perspectives and their initial relative positions. It can be seen that the initial relative positions of the point clouds from each perspective are poor. In practice, the point cloud areas of the same part do not overlap, and the directions of the blades are chaotic. After rough stitching using the hand-eye matrix, Figure 8 As shown in (a), the directions of the point clouds of each blade are basically the same, and the displacement distance is relatively far. Figure 8 As shown in (b), it can be seen that compared with the rough stitching effect of the initial hand-eye matrix, the rough stitching effect of multi-view point cloud using the modified hand-eye matrix is better. For example, the point cloud in the box in the figure is closer in relative position than that in Figure (a) (the arrow indicates the direction of posture change), which illustrates the effectiveness of the hand-eye matrix genetic optimization algorithm based on image reprojection error proposed in the present invention.
[0365] Due to the camera calibration error and the robot arm posture error, the displacement of each viewpoint cloud is still large even after the hand-eye matrix is corrected. Therefore, the displacement compensation of each viewpoint point cloud is performed using the same SIFT key point, and the displacement compensation of the 2nd to 8th point cloud to the 1st point cloud in the x, y, and z directions is obtained as shown in Table 1.
[0366] Point cloud number x-direction displacement compensation Y-direction displacement compensation Z-direction displacement compensation 2 0.0885345 -18.5573 -30.817 3 66.3405 -62.7107 -19.126 4 107.112 -112.963 72.8893 5 104.505 -118.223 68.7235 6 -76.5361 -18.6783 34.1165 7 -110.32 -14.6031 19.883 8 -122.699 -68.1817 -33.1512
[0367] Table 1
[0368] Table 1 shows the final rough stitching effect after displacement compensation of the 2nd to 8th point clouds to the 1st point cloud in the x, y, and z directions. Fig. 9 As shown in , it can be seen that the relative positions of the point clouds of each view are close at this time, and each point cloud has overlapping point clouds, which lays a good initial position foundation for precise stitching. Fig.10 The following is a detailed view of the rough splicing, combined with Fig. 9 It can be seen that there are still large pose errors between the point clouds after rough stitching. The hollow details, continuous surfaces and even large-area surfaces on the blade point cloud are not well stitched.
[0369] The number of points in each viewpoint cloud before and after sampling and filtering is shown in Table 2.
[0370] Point cloud number Number of points before sampling and filtering Number of points after sampling and filtering 1 1028208 6689 2 799410 6912 3 633031 4506 4 364497 3750 5 810070 6004 6 934693 5936 7 826042 5354 8 1057834 6383
[0371] Table 2
[0372] Table 2 shows the change in the number of points before and after filtering the eight field of view point clouds. Next, the rough splicing results after filtering and sampling are shown in Figure 2. Fig.11As shown, substitute it into the global ICP fine stitching algorithm. Set the lower limit point logarithm threshold of the overlapping area to T overlap =200, and the global constraint relationship S2′ is obtained through step S2.1 7×2 As shown in Table 3.
[0373]
[0374] Table 3
[0375] Table 3 shows the global constraint relationship of the global ICP fine stitching algorithm, with a total of 27 point set pairs. Assume that the maximum number of iterations of the outer layer is T q =55, global transformation parameter threshold T ε =3. Set the threshold value of the rejection condition adjustment to T N1 =640, T N2 =4000, the point pair rejection threshold setting values of point pair sets with different point pair number ranges are shown in Table 4.
[0376]
[0377] Table 4
[0378] Table 4 gives the point pair geometric feature parameter rejection threshold settings for different point pair number ranges. Assume that the maximum number of iterations of the inner layer of the registration system is max =10, maximum number of weight adjustments The convergence thresholds are Assume that the initial value of the number of iterations is λ=1, and the initial value of the weight adjustment flag is The initial number of weight adjustments is N w =0, residual threshold The initial values of the point pair activation flag and weight adjustment factor are all all-one vectors.
[0379] The global transformation parameter binary norm can reflect the magnitude of the rigid body transformation, and the splicing error can reflect the splicing accuracy. Fig.12 This is the change of the second norm of the global conversion parameter and the change of the overall stitching error of the point cloud during the global ICP fine stitching iteration. It can be seen that the fine stitching process was iterated 55 times in total, and the second norm of the global conversion parameter || qε||2 decreases from 226.6660 in the first iteration to 56.4225 in the second iteration, and finally to 6.1351 in the 55th iteration, reaching the maximum number of iterations to complete fine stitching. Correspondingly, the overall stitching error of the point cloud is reduced from 1.7354mm in the rough stitching to 1.1211mm in the second iteration, and to 0.4466mm when the iteration is completed. The number of point pairs increases with the increase in the number of iterations. It can be seen that during the first rigid body transformation, the global ICP algorithm of the present invention transforms each point cloud to a more appropriate position, and makes subtle adjustments in subsequent iterations to continuously improve the overall stitching accuracy of the point cloud.
[0380] The final precise stitching result of the multi-view point cloud is as follows: Fig.13 The details are shown in Fig.14 As shown in the figure, it can be seen that after fine stitching, the point clouds of each view are well stitched, the holes and continuous surfaces on the leaves are well integrated, and the point clouds of the leaves from each view fit each other with neat boundaries. Fig. 9 The rough stitching effect can restore the true three-dimensional morphology of the engine blade after fine stitching, which shows that the global ICP fine stitching algorithm proposed in the present invention has good rapidity for multi-view point cloud stitching and can improve the overall stitching accuracy.
[0381] Although the above describes an illustrative specific embodiment of the present invention to facilitate the understanding of the present invention by those skilled in the art, it should be clear that the present invention is not limited to the scope of the specific embodiment. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
Claims
1. A method for global stitching of three-dimensional point clouds of multi-view aviation components based on robot assistance, characterized by comprising: (1) Rough stitching of multi-view point clouds 1.1) Set up a joint shooting The calibration plate image of the group view, the relative position of the object to be measured and the base coordinates is fixed, and the coordinate conversion relationship between the i-th view and the j-th view (j≠i) is: b H e,i · e H c · c H t,i = b H e,j · e H c · c H t,j in, b H e,i , b H e,j are the transformation matrices from the i-th and j-th perspective robot end coordinate systems to the base coordinate system, c H t,i , c H t,j They are the transformation matrices from the coordinate system of the object to be measured to the camera coordinate system. The subscripts i and j represent the viewing angle numbers. The hand-eye matrix can be obtained by solving the Tsai-Lenz algorithm. e H c ; 1.2) Establish a correction objective function for the hand-eye matrix based on the image reprojection error. The specific steps are as follows: 1.2.1) The coordinate of a corner point on the calibration plate in the coordinate system of the object to be measured is Ψ. When shooting at the i-th viewing angle, the coordinate of the corresponding point in the camera coordinate system is Ψ. i , convert it to the jth perspective and project it onto the image coordinate system. The image coordinate o corresponding to the jth perspective of the point j The image reprojection error is: Among them, z c,i is the scale factor, Q L is the camera’s intrinsic parameter matrix, are 3 rotation vectors and 3 translation components respectively, which are the genetic algorithm optimization parameters. Optimizing parameters for genetic algorithms The hand-eye matrix formed; 1.2.2) Use genetic algorithm to optimize parameters The rotation matrix is obtained by the Rogelius transformation The translation components form the translation matrix The optimized hand-eye matrix is: 1.3) Replace the calibration plate with the object to be measured, and take point clouds from n perspectives. The robot arm pose matrix of the i-th perspective is i=1,2,…,n, the kth point of the i-th viewpoint cloud set is a point in the camera coordinate system. The point cloud set of the i-th, i=1,2,…,n-th perspective transformed to the robot base coordinate system is denoted as P i , the corresponding points are recorded as Then the point cloud set P i kth, Point is denoted as P i,k =(x i,k ,y i,k ,z i,k ) T , then converted to the robot base coordinates: Substituting all the viewpoint point clouds into the above formula, they are transformed into the base coordinate system of the robot arm, and the set of all point clouds P = {P1, P2, ..., P n}, which is the rough stitching effect of multi-view point cloud based on the hand-eye matrix; 1.4) Use the same-name SIFT key points to perform displacement compensation on multi-view point clouds: 1.4.1) Perform statistical filtering and uniform sampling on the point cloud of n perspectives. The point cloud is recorded as The i-th, i=1,2,…,n point cloud The points are Its kth The points are recorded as 1.4.2) Perform SIFT key point detection separately to obtain the key point set at a specific position of each point cloud The key point set Respectively with the key point set All points of are matched to form points with the same name, and the i-th, i=2,3,…,n key point set is recorded and The jth The same name point is in, Key point set The number of key points in ; 1.4.3) Use the position difference of the same-name points to calculate the translation of the 2nd to nth point clouds in the x, y, and z directions, and record the same-name points The coordinates of Let the i, i=2,3,…,n point clouds P before and after filtering i , After translation, they are Ω i , The final rough splicing results of the point cloud sets before and after filtering are Ω={Ω1,Ω2,…,Ω n }, Where Ω1=P1, Point cloud Ω i kth, The points are Point Cloud No. Points The calculation formula is as follows: in, is a constant; (2) Use the global ICP stitching method to finely stitch the coarse stitching point cloud 2.1) Use the octree to find the overlapping area of the roughly spliced multi-view point cloud to establish the global constraint relationship 2.1.1) Point cloud collection Take any two point clouds from different perspectives to form a set of point pairs, the number of which is N, and the point pair matrix S is: in, The elements in the first and second columns of the i′th row are S i′,1 , S i′,2 , represents the serial number of the corresponding point set pair, 2.1.2) Then, we traverse the number of points in the overlapping area of the point set pair to determine whether the sub-point set pair has a constraint relationship. The i′th point set pair is recorded as The number of overlapping area points is recorded as i′=1,2,…,N, The initial value of is 0, i′ is initialized to 1, and the minimum number of points in the overlapping area of two point clouds is T overlap , then the specific process of obtaining the number of point pairs in the overlapping area of the point set pair is as follows: 2.1.2.1) For point set pairs Point Cloud Collection Building an octree 2.1.2.2) Initialize k = 1; 2.1.2.3) For point cloud set The kth point Determine whether the point is in the octree If so, proceed to step 2.1.2.4), otherwise, k=k+1, repeat step 2.1.2.3; 2.1.2.4) Point For query points, in the octree In the voxel nearest neighbor search, if the query point The point cloud in the voxel , then we consider that point Its neighboring points are point pairs Point pairs in overlapping areas, number of point pairs in overlapping areas Determine whether k is greater than or equal to If it is greater than or equal to, proceed to step 2.1.2.5), otherwise k=k+1, return to step 2.1.2.3); 2.1.2.5) Determine whether i' is greater than or equal to N. If so, get the number of overlapping points of all point sets and go to step 2.1.3). Otherwise, i'=i'+1 and return to step 2.1.2.1); 2.1.3) Traverse all point sets i′=1,2,…,N, if Then keep this point pair in the new point pair matrix, otherwise, remove the point pair and do not keep it in the new point pair matrix to obtain a new point pair matrix S′ M×2 , M is the number of new point set pairs, go to step 2.2); 2.2) Enter the global ICP fine stitching iteration, i.e., the outer iteration: the maximum number of iterations of the global ICP stitching loop is T q , remember the cloud collection Ω i , i=1,2,…,nAfter q times of rigid body transformation, q Ω i ,q=1,2,…,T q , i = 1, 2, ... n, the coordinates of the jth point are j=1,2,…N i , Similarly, let the sampling point cloud set After q rigid body transformations, q=1,2,…,T q , i = 1, 2, ... n, the coordinates of the jth point are Let the initial number of iterations q = 1, and the specific iteration steps are as follows: 2.2.1) For the qth global ICP iteration, use the method in step 2.1.2) to re-determine the overlapping area of the point set pairs and obtain the point pair set in the overlapping area. The point pair set in the overlapping area of the i′, i′=1, 2, … Mth point set pairs is Its point logarithm is in, Then there are i′, i′=1, 2, … M overlapping point pairs, and the kth point pair is denoted as Get the total point set of the overlapping area 2.2.2) Rematch the point pairs in the overlapping point pair set. The specific steps are as follows: 2.2.2.1) Traverse the overlapping point set and set i′=1; 2.2.2.2) For the i′th overlapping point set right Building a KD tree 2.2.2.3) Start searching for point pairs, let j = 1; 2.2.2.4) For point sets The jth point As a search point, in the KD tree Perform a nearest neighbor search to find the nearest point make remember is a point pair; 2.2.2.5) If j=j+1, return to step 2.2.2.4), otherwise, the point set And point set Then there is is the i′th point pair set, go to step 2.2.2.6); 2.2.2.6) If i'<M, i'=i'+1, return to step 2.2.2.2), otherwise, output the total set of initial point pairs Go to step 2.2.3); 2.2.3) Point pair threshold elimination based on multiple features 2.2.3.1) Euclidean distance elimination Note q=1,2,…,T q ,i′=1,2,…,M, The coordinate components of point The coordinate components of Then the jth point pair of the i′th initial point pair set The Euclidean distance The calculation formula is as follows: Determine the Euclidean distance Is it greater than the rejection threshold? If it is greater than, then remove the jth point, otherwise keep it, where, Rejection threshold for: in, is a constant coefficient; 2.2.3.2) Distance from point to cutting plane culling Calculate the jth point of the i′, i=1,2,…,M point pair set, Point pairs The normal vector is Then the i′, i=1,2,…,M initial point pair sets The corresponding normal vector set is recorded as Note q=1,2,…,T q ,i=1,2,…,M, The coordinate components of Its corresponding normal vector component is Note The coordinate components of Its corresponding normal vector component is Then the jth point pair of the i′th initial point pair set The distance calculation formula from the point to the tangent plane is Distance from point to tangent plane In range or The points are removed and the rest are retained, where q=1,2,…,T q ,i′=1,2,…,M, Rejection threshold Follow these steps to determine: Point-to-Set The set of corresponding point-to-tangent plane distances is q Φ i′ For collection q d i′ The median of q E i′ For collection q d i′ The absolute median difference of q d i′ , whose estimated standard deviation for: Then the culling threshold of the distance from the point to the cutting plane is Set to: Where g is a constant coefficient; 2.2.3.3) Point pair roughness removal Calculate the jth point of the i′, i′=1, 2, …, M point pair sets. Point pairs q=1,2,…,T q The roughness is Point Set The corresponding roughness set is Point Set The corresponding roughness set is Then the i′,i′=1,2,…,M initial point pair sets The corresponding roughness set is recorded as Determine the roughness difference Is it greater than the rejection threshold T? r , if it is greater than, then remove the j-th point, otherwise keep it; 2.2.3.4) Eliminate the angle between point pairs and normal lines Remember to q=1,2,…,T q ,i′=1,2,…,M, The angle between the normals of Calculate the angle between normals If the angle between the normals Greater than 180°, Then determine if the angle between the normals is Greater than the threshold T θ , then remove the jth point, otherwise keep it; In the elimination process of steps 2.2.3.1) to 2.2.3.4), set two elimination conditions to adjust the threshold T N1 and T N2 , all point pair sets are divided into three categories according to the number of point pairs in the point pair set: when season g=g1,T θ =T θ,1 , T r =T r,1 ; when season g=g2,T θ =T θ,2 , T r =T r,2 ; when season g=g3,T θ =T θ,3 , T r =T r,3 ; in, g1≥g2≥g3, T θ,1 ≥T θ,2 ≥T θ,3 , T r,1 ≥T r,2 ≥T r,3 ; The point pair set after removing the wrong point pairs is recorded as q=1,2,…,T q , is the number of point pairs in the point pair set after elimination, then the total set of point pairs can be written as The sum of all point pairs in all M point pairs is q n o , each outer iteration is different, with: Total set of points The jth, j=1,2,…, q n o The point pair is Then there is 2.2.4) Establish a multi-view point cloud weight self-adjustment registration system 2.2.4.1) Except for the first visual point cloud, the other point clouds are loose point clouds, and the target transformation parameters of the qth iteration are q ε=[ q ε 2,q ε3,…, q ε n ] T ,in q ε i =[ q α i,g β i,q γ i,q t x,i,q t y,i,q t z,i ] T ,i=2,3,…n are the target transformation parameters of the i-th point cloud in the current iteration, q α i , q β i , q γ i They are the three rotation parameters of the point cloud around the x, y, and z axes of the fixed point cloud coordinate system. q t x,i , q t y,i , q t z,i are the three translation parameters along the x, y, and z axes of the fixed point cloud coordinate system, respectively. The rigid body transformation homogeneous matrix of the i, i=2, 3, …, n point clouds is: 2.2.4.2), let the jth point in the M point pair set be i′, i′=1,2,…, Point pairs The coordinates of The corresponding normal vectors are Then in the qth, q=1,2,…,T q In the ICP iteration, the jth, Point pairs The distance from the point to the tangent plane is: 2.2.4.3), then the total set of point pairs The sum of the squares of the distances from all pairs of points to the tangent plane is expressed by replacing the above formula with a linear expression: in, q A is q n o ×n p The coefficient matrix of dimension n p =6(n-1) is the total number of transformation parameters for all loose point clouds, q A j ,j=1,2,…, q n o yes q The j-th row of A is the element about the point pair and the normal vector The function of q The construction steps of A are as follows: First initialize q A is an all-zero matrix; Next, construct q A's column index vector in Then construct q The row index vector of A q A h_i′ , i′=1,2,…,M corresponds to the row index matrix of the i′th point pair set: in, q A row is the total number of point pairs in the currently traversed point pair set, which is: For the i′th, i′=1,2,…,M point pair sets No. Point pairs have corresponding coefficient vectors, which are The form is as follows: in, The elements are constructed as follows: Then for the i′, i′=1,2,…,M point pair sets There are two cases: If S′ i′,1 =1, coefficient matrix q A's rth,r∈ q A h_i′ row, c7, c8, c9, c 10 、c 11 、c 12 The column values are as follows: If S′ o′,1 ≠1, coefficient matrix q A's rth,r∈ q A h_i′ The values of rows c1, c2, c3, c4, c5, and c6 are as follows: No. c7, c8, c9, c 10 、c 11 、c 12 The column values are as follows: in, Represents the column index matrix A L S′ i′,1 , i′=1,2,…,M rows and m, m=1,2,…,6 columns, Represents the column index matrix A L S′ i′,2 , i′=1,2,…,M rows and m=1,2,…,6 columns; 2.2.4.4) Next, enter the registration system iteration, that is, the inner iteration loop, and set the current registration system iteration number to λ = 1, and the weight adjustment flag to The number of weight adjustments is N w =0, click to activate the flag n o ×1-dimensional all-one vector; let the maximum number of inner iterations be λ max , the maximum number of weight adjustments is The convergence thresholds of Krasus termination criterion and maximum linearization error are 2.2.4.5) Let the transformation parameters of all loose point clouds obtained by the λth inner iteration of the qth outer iteration be And the objective function solution of the registration system of the current iteration is Then we have: in, is the target transformation parameter of the previous iteration, which is the zero vector in the first iteration. Let the transformation parameter vector of all point cloud sets be ε0′1 is a fixed point cloud set The transformation parameters of the pose remain unchanged, that is, ε0′1=[0,0,0,0,0,0] T ; 2.2.4.6) Ideally, when the difference between the point pair distances between two registration system iterations is the same, the optimal parameter solution is obtained. The distance vector from all points to the tangent plane is called the observation vector Bundle As estimates to fit observed values Then the observation vector of the λth inner iteration of the qth outer iteration is The construction steps are as follows: Similar to step 2.2.4.1), a point pair set is formed i′=1,2,…,M The homogeneous transformation matrix of two point sets The construction formula is as follows: in, (k=1,2,…,6), is the parameter vector I k elements; The i′,i′=1,2,…,M point pair sets No. Point pairs Their respective homogeneous coordinates are: Through the homogeneous transformation matrix After conversion, click Their respective homogeneous coordinates are: Click on The Cartesian coordinates become: in, They are The x, y, and z coordinates of They are The x, y, and z coordinates of the point are converted. The distance from the point to the tangent plane is: Point-to-Set The distance vector from all point pairs i′=1,2,…,M to the tangent plane is: Then the observation vector for: in, For the jth, j=1,2,…, q n o The distance from a point to the tangent plane; 2.2.4.7) Record is the weight vector corresponding to the i′,i′=1,2,…,M point pair set, is the i′, i′=1, 2, …, M point pair set Point pairs The weight is calculated as follows: Point pair The relative weights are: Then the point pair set i′=1,2,…,M The relative weight vector is: The relative weight vector of all point pairs is: in, For the jth, j=1,2,…, q n o The relative weight of each point; 2.2.4.8) Introduce a weight adjustment factor in the registration system Each inner iteration will re-weight the point pairs according to the situation of the previous iteration. The initial setting is one q n o ×1-dimensional all-1 vector, the weight matrix of the λth inner iteration is Its dimension is q n o ×1, the weight of the j-th point pair is The calculation formula is: in, are the relative weight vectors Weight Adjustment Factor The jth element of the multi-view point cloud weight self-adjustment registration system objective function is: 2.2.4.9) Establish the registration iterative constraint system: Use the model residual to constrain the inner iteration, then the model residual of the λth inner iteration is for: Use the estimated standard deviation of the distance from the point to the tangent plane to standardize the model residuals to obtain the standardized residuals The standardized residual calculation formula for the jth observation is as follows: in, q δ j The model residuals are and q The jth element of δ, is the estimated standard deviation vector of the distances from all point pairs to the tangent plane, Point pair set q=1,2,…,T q ,i′=1,2,…,the estimated standard deviation vector of M, for dimensional all-one vector; Similar to step 2.2.4.6), construct the observation vector method, so That is, after the point cloud set is converted by the conversion parameters obtained by the current inner layer iteration, the distance vectors from all point pairs to the tangent plane are calculated. According to the Krasus termination criteria, there are: in, The subscript j represents the jth vector, j = 1, 2, ..., q n o elements; using the residual and the vector The difference between the linearization error vector of the model is expressed as the maximum absolute value of the element of the linearization error vector, and the maximum linearization error is Its expression is as follows: in, is the residual and vector The jth element of ; The iterative constraint steps of the weight self-adjusting registration system are as follows: 2.2.4.9.1) If Go to step 2.2.4.9.2, otherwise, update the number of iterations λ = λ + 1, continue iterating, and return to step 2.2.4.5); 2.2.4.9.2) If the weight adjustment flag Update right adjustment times: N w =N w +1, go to step 2.2.4.9.3, otherwise, end the inner iteration; 2.2.4.9.3) Traversing the standardized residuals Construct activation standard residual vector for The jth, j=1,2,…, q n o Elements If the corresponding activation flag Then there is in, is the standardized residual vector The jth, j=1,2,…, q n o elements; 2.2.4.9.4) If satisfied and condition, that is The maximum absolute value of the elements in is greater than the residual threshold And the number of weight adjustments does not exceed its threshold It is considered that there is a serious error in this inner iteration and the weight adjustment factor needs to be adjusted. Make adjustments: Update the number of iterations λ = 0, adjust the weight adjustment factor, and the adjustment formula for the jth weight adjustment factor is: When the weight is adjusted N times w >1: For the jth observation, if its standard residual You need to reactivate it, If the standard residual Then the observation is disabled, that is The weight adjustment factor corresponding to this point pair is adjusted to the minimum value After the weight adjustment is completed, continue the iteration and return to step 2.2.4.5); Otherwise, if not satisfied and If the condition is met, it is considered that there is no serious error in this inner iteration process: When the weight is adjusted N times w >1, update iteration number λ=0, j=1,2,…, q n o , and enable the weight adjustment flag Continue iterating and return to step 2.2.4.5), otherwise, stop the inner iteration and go to step 2.2.5); 2.2.5) Perform rigid body transformation The loose point cloud transformation parameters of the qth outer layer iteration are obtained by step 2.2.4) Then the rigid body transformation matrix of the loose point cloud is: Loose point cloud collection before and after filtering (q-1) Ω i , Every point i=2,3,...n Perform a rigid body transformation to transform its coordinates to the same coordinate system as the fixed point cloud. The calculation formula is as follows: Then we get the point cloud set after q transformations There is a collection save q Ω、 Go to step 2.2.6); 2.2.6) Set the global transformation parameter threshold to T ε , if || q ε||2≤T ≥ or qεT q , stop the outer iteration immediately, and get the finely stitched multi-view point cloud Ω′ before and after filtering q Ω、 Otherwise, the point cloud q Ω、 Substitute into step 2.2) and continue the global ICP iteration.
Citation Information
Patent Citations
Method for measuring three-dimensional shape of complex structural member based on robot
CN115546289A
Method and device for combining three-dimensional point cloud data of large-span object
CN115856924A
3D reconstruction method and apparatus
US20230103385A1
WGAN-based unsupervised multi-view three-dimensional point cloud joint registration method
WO2022165876A1
Cited By
Multi-view three-dimensional laser point cloud splicing method and system
CN119169204A
Method and system for measuring volume of dry bulk material pile by using storage yard camera
CN119559240A
Method and system for measuring volume of dry bulk cargo pile using yard camera
CN119559240B
Three-dimensional point cloud splicing reconstruction method and device based on rotating table
CN122199256A
A three-dimensional point cloud splicing reconstruction method and device based on a rotating table
CN122199256B
