Point cloud precise registration method based on optimal slice transmission

Through the slice optimal transmission method, one-dimensional histogram and Sliced-Wasserstein registration scheme are used to solve the problems of low point cloud registration accuracy and low computational efficiency in traditional methods, and achieve efficient and accurate point cloud registration to ensure The corresponding relationship between the target point and the unique point to be matched and the minimum loss are determined.

CN114882086BActive Publication Date: 2024-10-18NANJING TECH UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210587358.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-10-18
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

The traditional global affine change method has the problem of low registration accuracy when processing high-precision point cloud data, and directly solving the optimal transmission of point clouds of three-dimensional data requires huge computing resources and time.

Method used

The optimal transmission method based on slicing is used to generate a one-dimensional histogram through data dimensionality reduction. The Sliced-Wasserstein registration scheme and ICP algorithm are used to gradually reduce the registration range, solve the segmentation sub-problem in parallel, and calculate the scaling coefficient of the point cloud group. rotation matrix and translation matrix.

Benefits of technology

It improves the accuracy and efficiency of point cloud registration, ensures that the target point only forms a point pair with one point to be matched, the loss sum reaches a minimum, reduces the computational complexity, and achieves fast and accurate point cloud registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114882086B_ABST
    Figure CN114882086B_ABST
Patent Text Reader

Abstract

The present invention discloses a point cloud precise registration method based on slice optimal transmission, which is used to achieve fast and accurate point cloud registration, and belongs to the research field of combining computer vision and computer graphics. The method of the present invention mainly includes: first, backing up the point cloud group C to be registered s C p ; Secondly, for the point cloud group C p and the target point cloud group C d The three-dimensional data is reduced to generate a one-dimensional histogram H p With H d ; and determine the one-dimensional histogram H p With H d Sliced-Wasserstein registration scheme A w ; According to the registration scheme A w Update point cloud group C p ; Finally, calculate the point cloud group C to be registered s To point cloud group C p The scaling factor S, the rotation matrix M R , translation matrix M T ; After a certain number of iterations, the point cloud group C p Gradually approaching the target point cloud group C d The present invention simplifies and decomposes the solution work of three-dimensional data, thereby improving the efficiency of optimal transmission solution, and optimizes the ICP algorithm to achieve fast and accurate point cloud registration with low computational time complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a point cloud precise registration method based on optimal transmission of slices, belonging to the technical field of the combination of computer vision and graphics. Background Art

[0002] The development of acquisition technology has made it very convenient and fast to acquire scenes and objects with high precision. Point cloud data is the form of objects acquired by acquisition equipment. Point cloud data has been applied in many aspects such as industrial production, precision agriculture, and intelligent construction. Point cloud data has the characteristics of large data volume and difficulty in processing. The traditional global affine change method has the defect of low registration accuracy in processing high-precision point cloud data at this stage. Therefore, accurate point cloud matching is of great significance.

[0003] At present, calculating the best point cloud registration solution is the primary problem to be solved in point cloud registration. The following briefly introduces the related issues of point cloud registration solution.

[0004] 1. The point cloud registration scheme is a set of point pairs. The traditional solution to the point cloud registration scheme adopts the ICP algorithm. The criterion for judging the best point pair in the ICP algorithm is the shortest Euclidean distance between the two points. It only considers the current point to be matched, and ignores whether the target point has been determined by other points to be matched. Therefore, the registration scheme obtained by the ICP algorithm has a many-to-one situation, that is, multiple points to be matched form a point pair with the same target point; in extreme cases, all points to be registered correspond to the same point in the target point cloud, making the scaling factor 0. The present invention can ensure that the target point only forms a point pair with one point to be matched when quickly calculating the best point cloud registration scheme, and minimize the loss sum.

[0005] 2. The present invention performs data dimensionality reduction on three-dimensional space and uses the optimal transmission solution of one-dimensional data to fit the solution of three-dimensional data, thereby solving the problem that directly performing optimal transmission solution on point cloud data of three-dimensional data requires huge computing resources and high time complexity, thereby improving the efficiency of optimal transmission solution.

[0006] For data dimensionality reduction, the present invention reduces the time complexity of optimal transmission by using a projection set of point cloud clusters in multiple one-dimensional direction unit vectors instead of directly processing three-dimensional data. Summary of the invention

[0007] The purpose of the present invention is to provide a point cloud precise registration method based on optimal transmission of slices to address the problems of unstable registration and low computational efficiency caused by large-scale point cloud data.

[0008] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0009] In a first aspect, the present invention provides a point cloud precise registration method based on slice optimal transmission, which comprises the following steps:

[0010] Step 1: Back up the point cloud group C to be registered s C p ;

[0011] Step 2: Point cloud group C p and the target point cloud group C d The three-dimensional data is reduced to generate a one-dimensional histogram H p With H d ;

[0012] Step 3: Determine the one-dimensional histogram H p With H d Sliced-Wasserstein registration scheme A w , that is, the single shot registration scheme;

[0013] Step 4: According to the registration scheme A w Update point cloud group C p ;

[0014] Step 5: Repeat steps 2 to 4, the number of repetitions is the number of slices N s ;

[0015] Step 6: Calculate the point cloud group C to be registered s To point cloud group C p The scaling factor S, the rotation matrix M R , translation matrix M T ;

[0016] Step 7: Repeat steps 1 to 6, the number of repetitions is the number of iterations N I .

[0017] Furthermore, the specific steps of step 2 are as follows:

[0018] Step 2.1: Use the Box-Muller transform algorithm to randomly generate a three-dimensional unit vector representing the direction Calculate the point cloud group C separately p and the target point cloud group C d In the direction vector The projection set P p and P d ;

[0019] Step 2.2: According to the projection value, the projection set P p and P d Sort in ascending order to obtain a one-dimensional histogram H p and H d .

[0020] Furthermore, the specific steps of step 3 are as follows:

[0021] Step 3.1: Use the ICP algorithm to calculate the histogram H p and H d The nearest neighbor registration scheme A N ;

[0022] Step 3.2: Shrink the histogram H p and H d The Sliced-Wasserstein registration range, H p The range to be registered is reduced to [i, k], denoted as H″ p , H d The target range is reduced to [j, l], denoted as H″ d ;

[0023] Step 3.3: Use ICP algorithm to calculate histogram H″ p and H″ d The nearest neighbor registration scheme A′ N ;

[0024] Step 3.4: Histogram H″ p and H″ d Sliced-Wasserstein registration is used to perform sub-problem segmentation;

[0025] Step 3.5: Solve the sub-problems of scale 1 in turn and use the nearest neighbor registration solution A′ for this problem N As a solution;

[0026] Step 3.6: Solve the remaining subproblems in parallel.

[0027] Furthermore, in step 3.2, the reduction process is as follows:

[0028] (3.21) If H p There is less than H d The minimum value part is the same as the value from H d The minimum value of starts to perform one-to-one registration to the right;

[0029] (3.22) If H p There are more than H d The maximum value part is the same as the value from H d The maximum value of starts to be aligned one-to-one to the left;

[0030] (3.23) Let H p The remaining part to be registered is H′ p , H′ p The minimum value is m pmin , H′p The maximum value is m pmax , that is, H′ p =[m pmin ,m pmax ], then the corresponding H d The target part is H′ d , where H′ d The minimum value n dmin =A N [m pmin ], the maximum value is n dmax =A N [m pmax ], that is, H′ d =[n dmin ,n dmax ];

[0031] (3.24) From H′ p Starting from the minimum value of A, align to the right until A N [m i ]==A N [m i+1 ] stop, where pmin≤i≤pmax-1; record n j =A N [m i ], where dmin≤j≤dmax; if i=pmax-1, A N [m i ]≠A N [m i+1 ], then step 3 ends and the Sliced-Wasserstein registration scheme A is obtained w ;

[0032] (3.25) From H′ p The maximum value of A is started and the registration is performed to the left until A N [m k ]==A N [m k-1 ] stop, where pmin+1≤k≤pmax; record n l =A N [m k ], where dmin≤l≤dmax; at this time, H p The range to be registered is reduced to [i, k], denoted as H″ p , H d The target range is reduced to [j, l], denoted as H″ d .

[0033] Furthermore, in step 3.4, the segmentation process is as follows:

[0034] (3.41) If H″p If the number of points to be registered is less than 20, no sub-problem segmentation is performed and step 3.4 ends;

[0035] (3.42) H″ p Divide into several sub-problems, each of which initially handles at most one non-single-shot point cluster, i.e. A′ N [m i ]==A′ N [m i+1 ]==…==A′ N [m j ],ji≥1, and H″ d A′ N [m i ] Expand ji idle points to both sides, that is, those not registered by scheme A N The marked points are used as the target range of the subproblem; if there are common free points between adjacent subproblems, the subproblems are merged and the corresponding target ranges are expanded accordingly.

[0036] Furthermore, in step 3.6, the process of solving a single sub-problem is as follows:

[0037] (3.61) The histogram to be matched for this subproblem is denoted as H″′ p , the scale is M, the target histogram is H″′ d , the scale is N;

[0038] (3.62) Use the ICP algorithm to calculate the histogram H″′ p and H″′ d The nearest neighbor registration scheme A″ N ;

[0039] (3.63) If M == N, then H″′ is p and H″′ d One-to-one registration is performed and step 3.6 ends;

[0040] (3.64) If M == N-1, then in H″′ d Find a point N i As an idle point, less than point N i All points from H″′ p The minimum value of starts one-to-one registration, which is greater than point N i All points from H″′ p The maximum value of starts one-to-one registration, and selects point N i The criterion is that the selection result has the smallest registration loss and step 3.6 ends;

[0041] (3.65) If it is the other case, execute step 3.2, and the process (3.63) and (3.64) in step 3.6;

[0042] (3.66) Recalculate the nearest neighbor registration solution, denoted as A″′ N , traverse the histogram to be registered in ascending order. If the left neighbor of the current point is an idle point, calculate the current point with A″′ N As the cumulative loss of the registration result and A″′ N The accumulated loss of one shift left is taken as the registration solution for the current point, until the traversal of the histogram to be registered is completed.

[0043] Furthermore, the specific steps of step 6 are as follows:

[0044] Step 6.1: Calculate the point cloud C s and C p The center point of the translation matrix M is obtained T ;

[0045] Step 6.2: Translate point cloud group C s and C p , so that the point cloud group C s and C p The center points of the points are all at the origin of the coordinate system, and the point cloud group at this time is denoted as C′ s and C′ p ;

[0046] Step 6.3: Calculate the point cloud group C′ s and C′ p The covariance matrix M cov ;

[0047] Step 6.4: For the covariance matrix M cov Perform SVD decomposition and calculate the rotation matrix M R and scaling factor S.

[0048] In a second aspect, the present invention provides a point cloud precise registration device based on slice optimal transmission, comprising:

[0049] A data dimension reduction module is used to perform data dimension reduction on the three-dimensional data of the point cloud cluster and the target point cloud cluster to generate a one-dimensional histogram;

[0050] The registration module is used to determine the Sliced-Wasserstein registration scheme of the one-dimensional histogram;

[0051] A data updating module is used to update the point cloud cluster according to the registration scheme;

[0052] The data processing module is used to calculate the scaling factor, rotation matrix and translation matrix of the point cloud cluster to be registered.

[0053] In a third aspect, the present invention provides a computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein when the processor executes the computer-readable instructions, the point cloud precise registration method described in the first aspect is implemented.

[0054] In a fourth aspect, the present invention provides a computer-readable storage medium, comprising one or more readable storage media storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the point cloud precise registration method described in the above-mentioned first aspect.

[0055] The beneficial effects of the present invention are as follows: the present invention provides a point cloud precise registration method based on optimal transmission of slices, which quickly calculates the transformation parameters from the point cloud cluster to be matched to the target point cloud cluster - scaling coefficient, rotation matrix and translation matrix, by utilizing the following knowledge: each point in the point cloud cluster to be matched can find an optimal free point in the target point cloud cluster to form a point pair; taking the Euclidean distance between two points in the point pair as the loss part, the sum of the losses of all point pairs has a minimum value, and when the sum of the losses reaches the minimum value, the point pair registration scheme at this time is the optimal registration scheme; the global point cloud transformation parameters can be determined according to the optimal registration scheme.

[0056] The present invention can ensure that a target point only forms a point pair with one point to be matched when quickly calculating the optimal registration solution for a point cloud, and minimize the loss sum.

[0057] This invention solves the problem that directly performing optimal transmission solution on point cloud group data of three-dimensional data requires huge computing resources and high time complexity, thereby improving the efficiency of optimal transmission solution. It can realize fast and accurate point cloud registration; the computational time complexity is low.

[0058] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a flow chart of the present invention.

[0060] FIG. 2( a ) is the first reduction principle of the present invention.

[0061] FIG. 2( b ) is the second reduction principle of the present invention.

[0062] Figure 3 This is the termination state of the registration range reduction described in the present invention.

[0063] Figure 4 It is the sub-problem segmentation and merging described in the present invention. DETAILED DESCRIPTION

[0064] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] The present invention provides a point cloud precise registration method based on optimal transmission of slices. The relevant technologies and methods are introduced below.

[0066] 1. Related technologies

[0067] The present invention uses randomly generated directional unit vectors as the basis for slicing. The randomly generated directional unit vectors obey the normal distribution, so the BoxMuller transformation algorithm is used to convert the random numbers generated by the computer that obey the uniform distribution into random numbers that obey the normal distribution. The BoxMuller transformation formula is as follows:

[0068]

[0069] Where x1 and x2 are random numbers that are uniformly distributed on [0,1].

[0070] In point cloud registration, the ICP algorithm is a traditional solution. Assume that the point cloud group to be registered is C a1 , the target point cloud group is C a2 The main process of the algorithm is as follows: (1) Calculate the point cloud cluster C a1 Each point in the point cloud C a2 The nearest neighbor point in the point cloud C; (2) Calculate the scaling factor, rotation matrix and translation matrix; (3) a1 Transform the parameters obtained in the previous step to obtain a new point cloud group C a ′1; (4) Calculate the point cloud group C a ′1 and target point cloud group C a2 If the average distance is less than a certain threshold, the iteration ends; otherwise, the point cloud group C is updated. a1 C a ′1, execute (1). The registration solution obtained by the ICP algorithm has a many-to-one situation. In extreme cases, all the points to be registered correspond to the same point in the target point cloud, making the scaling factor zero.

[0071] The Wasserstein distance algorithm is an important idea in solving the optimal transmission problem. The algorithm can evaluate the similarity of two data distributions. The definition of Wasserstein distance is as follows:

[0072]

[0073] Among them, P s is the original data distribution, P d is the target data distribution, ∏[P s ,P d] is P s With P d The set of all possible joint distributions, r(x,y) is the joint distribution function, and d(x,y) is the loss function. s ,P d ] reaches the minimum, the joint release function r(x,y) at this time is the optimal solution to the optimal transmission problem.

[0074] The present invention utilizes the Box-Muller transformation algorithm and the Wasserstein distance algorithm to complete the solution of fitting three-dimensional data with the optimal transmission solution of one-dimensional data, thereby solving the problem that directly performing the optimal transmission solution on the point cloud data of three-dimensional data requires huge computing resources and has high time complexity, and directly using the ICP algorithm to align and produce many-to-one inferior solutions, thereby improving the efficiency and accuracy of the optimal transmission solution.

[0075] 2. Methods

[0076] The method of the present invention mainly comprises: first, backing up the point cloud group C to be registered s C p ; Secondly, for the point cloud group C p and the target point cloud group C d The three-dimensional data is reduced to generate a one-dimensional histogram H p With H d ; and determine the one-dimensional histogram H p With H d Sliced-Wasserstein registration scheme A w (Single shot registration scheme); According to the registration scheme A w Update point cloud group C p ; Finally, calculate the point cloud group C to be registered s To point cloud group C p The scaling factor S, the rotation matrix M R , translation matrix M T ; After a certain number of iterations, the point cloud group C p Gradually approaching the target point cloud group C d The specific flow chart is as follows: Figure 1 As shown, the following is a detailed analysis:

[0077] 1. Data Dimensionality Reduction

[0078] The present invention uses the Box-Muller transformation algorithm to randomly generate a three-dimensional unit vector representing the direction Calculate the point cloud group C separately p and the target point cloud group C d In the direction vector The projection set P p and P dThen, according to the projection value, the projection set P p and P d Sort in ascending order to obtain a one-dimensional histogram H p and H d ; The present invention uses a series of three-dimensional unit vectors The three-dimensional space is decomposed so that the optimal transmission solution of three-dimensional data can be decomposed into a series of optimal transmission solution problems of one-dimensional data.

[0079] 2. Determine the Sliced-Wasserstein registration scheme

[0080] The histogram H is calculated using the ICP algorithm. p and H d The nearest neighbor registration scheme A N .

[0081] The histogram H is reduced by the following two principles. p and H d The Sliced-Wasserstein registration range is as follows: (1) If H p There is less than H d The minimum value part is the same as the value from H d The minimum value of starts to perform one-to-one registration to the right, as shown in Figure 2(a). (2) If H p There are more than H d The maximum value part is the same as the value from H d The maximum value of is used to perform one-to-one registration to the left, as shown in Figure 2(b).

[0082] By nearest neighbor registration scheme A N , histogram H p and H d The Sliced-Wasserstein registration range can be further reduced. p The remaining part to be registered is H′ p , H′ p The minimum value is m pmin , H′ p The maximum value is m pmax , that is, H′ p =[m pmin ,m pmax ], then the corresponding H d The target part is H′ d , where H′ d The minimum value n dmin =A N [m pmin ], the maximum value is n dmax =A N [mpmax ], that is, H′ d =[n dmin ,n dmax ]; by querying the nearest neighbor registration scheme A N , histogram H p Reduce to H′ p =[m pmin ,m pmax ], histogram H d Reduce to H′ d =[n dmin ,n dmax ]. From H′ p The minimum value m pmin Start by aligning to the right until A N [m i ]==A N [m i+1 ] stop, where pmin≤i≤pmax-1; record n j =A N [m i ], where dmin≤j≤dmax; if i=pmax-1, A N [m i ]≠A N [m i+1 ], the Sliced-Wasserstein registration scheme has been calculated and no subsequent steps are required. The Sliced-Wasserstein registration scheme is denoted as A w Otherwise, from H′ p The maximum value m pmax Start by aligning to the left until A N [m k ]==A N [m k-1 ] stop, where pmin+1≤k≤pmax; record n l =A N [m k ], where dmin≤l≤dmax. At this time, H p The range to be registered is reduced to [i, k], denoted as H″ p , H d The target range is reduced to [j, l], denoted as H″ d ,like Figure 3 shown.

[0083] Recalculate the histogram H″ using the ICP algorithm p and H″ d The nearest neighbor registration scheme A′ N . For the histogram H″ p and H″ dThe Sliced-Wasserstein registration is used to perform sub-problem segmentation. If H″ p If the number of points to be registered is less than 20, no sub-problem segmentation is performed and step 3.4 ends; otherwise, H″ p Divide into several sub-problems, each of which initially handles at most one non-single-shot point cluster, i.e. A′ N [m i ]==A′ N [m i+1 ]==…==A′ N [m j ],ji≥1, and H″ d A′ N [m i ] Expand ji idle points to both sides (not registered by scheme A) N The marked points) are used as the target range of the subproblem; if there are common free points in adjacent subproblems, the subproblems are merged and the corresponding target ranges are expanded accordingly, such as Figure 4 shown.

[0084] After the sub-problem segmentation is completed, the sub-problems of scale 1 are solved in turn, and the nearest neighbor registration solution A′ of this problem is N As the solution. Solve the remaining sub-problems in parallel. The solution process of a single sub-problem is as follows: (1) The histogram to be matched of the sub-problem is denoted as H″′ p , the scale is M, the target histogram is H″′ d , the scale is N; (2) Use the ICP algorithm to calculate the histogram H″′ p and H″′ d The nearest neighbor registration scheme A″ N ; (3) Execute different solutions according to the size of the sub-problem. If M==N, then H″′ is processed in order p and H″′ d Perform one-to-one registration and no subsequent steps are required; if M == N-1, then in H″′ d Find a point N i As an idle point, less than point N i All points from H″′ p The minimum value of starts one-to-one registration, which is greater than point N i All points from H″′ p The maximum value of the one-to-one registration is started without performing subsequent steps. Select point N i The criterion is to select the result with the smallest registration loss; if it is other cases, continue to reduce the histogram to be matched to H″′ p and the target histogram is H″′ dIf the registration scale of the result meets M==N or M==N-1, the corresponding scheme is executed; otherwise, the nearest neighbor registration scheme is recalculated and recorded as A″′ N , and then traverse the histogram to be registered in ascending order. If the left neighbor of the current point is an idle point, calculate the current point with A″′ N As the cumulative loss of the registration result and A″′ N The accumulated loss of one shift left is taken as the registration solution for the current point, until the traversal of the histogram to be registered is completed.

[0085] 3. Calculate the scaling factor, rotation matrix and translation matrix of the point cloud group to be registered to the target point cloud group

[0086] Calculate the point cloud group C s and C p The center point of the translation matrix M is calculated by the relative position of the center point T ; According to the point cloud group C s and C p The center point of the point cloud group C s and C p , so that the point cloud group C s and C p The center points of the points are all at the origin of the coordinate system, and the point cloud cluster at this time is recorded as C′ s and C′ p ; Calculate the point cloud group C′ s and C′ p The covariance matrix M cov , and the covariance matrix M cov Perform SVD decomposition to obtain the rotation matrix M R and the scaling matrix M s , calculate the scaling matrix M s The scaling factor S is obtained by taking the square root of the cumulative multiplication of the diagonal elements.

[0087] In summary, the present invention is a point cloud precise registration method based on slice optimal transmission, which mainly includes data dimensionality reduction, determining the Sliced-Wasserstein registration scheme, and calculating the scaling coefficient, rotation matrix and translation matrix of the point cloud group to be registered to the target point cloud group.

[0088] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the protection scope of the present invention in any form, and all technical solutions obtained by equivalent replacement and the like fall within the protection scope of the present invention.

[0089] The parts not involved in the present invention are the same as the prior art or can be implemented by using the prior art.

Claims

1. A point cloud accurate registration method based on optimal slice transmission, characterized by The steps include: Step 1: Back up the point cloud group C to be registered s C p ; Step 2: Point cloud group C p and the target point cloud group C d The three-dimensional data is reduced to generate a one-dimensional histogram H p With H d ; The specific steps are as follows: Step 2.1: Use the Box-Muller transform algorithm to randomly generate a three-dimensional unit vector representing the direction Calculate the point cloud group C separately p and the target point cloud group C d In the direction vector The projection set P p and P d ; Step 2.2: According to the projection value, the projection set P p and P d Sort in ascending order to obtain a one-dimensional histogram H p and H d ; Step 3: Determine the one-dimensional histogram H p With H d Sliced-Wasserstein registration scheme A w , that is, the single shot registration scheme; the specific steps are as follows: Step 3.1: Use the ICP algorithm to calculate the histogram H p and H d The nearest neighbor registration scheme A N ; Step 3.2: Shrink the histogram H p and H d The Sliced-Wasserstein registration range, H p The range to be registered is reduced to [i, k], denoted as H″ p , H d The target range is reduced to [j, l], denoted as H″ d ; The reduction process is as follows: (3.21) If H p There is less than H d The minimum value part is the same as the value from H d The minimum value of starts to perform one-to-one registration to the right; (3.22) If H p There are more than H d The maximum value part is the same as the value from H d The maximum value of starts to be aligned one-to-one to the left; (3.23) Let H p The remaining part to be registered is H′ p , H′ p The minimum value is m pmin , H′ p The maximum value is m pmax , that is, H′ p =[m pmin ,m pmax ], then the corresponding H d The target part is H′ d , where H′ d The minimum value n dmin =A N [m pmin ], the maximum value is n dmax =A N [m pmax ], that is, H′ d =[n dmin ,n dmax ]; (3.24) From H′ p Starting from the minimum value of A, align to the right until A N [m i ]==A N [m i+1 ] stop, where pmin≤i≤pmax-1; record n j =A N [m i ], where dmin≤j≤dmax; if i=pmax-1, A N [m i ]≠A N [m i+1 ], then step 3 ends and the Sliced-Wasserstein registration scheme A is obtained w ; (3.25) From H′ p The maximum value of A is started and the registration is performed to the left until A N [m k ]==A N [m k-1 ] stop, where pmin+1≤k≤pmax; record n l =A N [m k ], where dmin≤l≤dmax; at this time, H p The range to be registered is reduced to [i, k], denoted as H″ p , H d The target range is reduced to [j, l], denoted as H″ d ; Step 3.3: Use ICP algorithm to calculate histogram H″ p and H″ d The nearest neighbor registration scheme A′ N ; Step 3.4: Histogram H″ p and H″ d The Sliced-Wasserstein registration is used to segment the sub-problems; the segmentation process is as follows: (3.41) If H″ p If the number of points to be registered is less than 20, no sub-problem segmentation is performed and step 3.4 ends; (3.42) H″ p Divide into several sub-problems, each of which initially handles at most one non-single-shot point cluster, i.e. A′ N [m i ]==A′ N [m i+1 ]==…==A′ N [m j ],ji≥1, and H″ d A′ N [m i ] Expand ji idle points to both sides, that is, those not registered by scheme A N The marked points are used as the target range of the subproblem; if there are common free points between adjacent subproblems, the subproblems are merged and the corresponding target ranges are expanded accordingly; Step 3.5: Solve the sub-problems of scale 1 in turn and use the nearest neighbor registration solution A′ for this problem N As a solution; Step 3.6: Solve the remaining sub-problems in parallel; the process of solving a single sub-problem is as follows: (3.61) The histogram to be matched for this subproblem is denoted as H″′ p , the scale is M, the target histogram is H″′ d , the scale is N; (3.62) Use the ICP algorithm to calculate the histogram H″′ p and H″′ d The nearest neighbor registration scheme A″ N ; (3.63) If M == N, then H″′ is p and H″′ d One-to-one registration is performed and step 3.6 ends; (3.64) If M == N-1, then in H″′ d Find a point N i As an idle point, less than point N i All points from H″′ p The minimum value of starts one-to-one registration, which is greater than point N i All points from H″′ p The maximum value of starts one-to-one registration, and selects point N i The criterion is that the selection result has the smallest registration loss and step 3.6 ends; (3.65) If it is the other case, execute step 3.2, and the process (3.63) and (3.64) in step 3.6; (3.66) Recalculate the nearest neighbor registration solution, denoted as A″′ N , traverse the histogram to be registered in ascending order. If the left neighbor of the current point is an idle point, calculate the current point with A″′ N As the cumulative loss of the registration result and A″′ N The cumulative loss of the left shift is taken as the registration solution for the current point with the smaller cumulative loss, until the traversal of the histogram to be registered is completed; Step 4: According to the registration scheme A w Update point cloud group C p ; Step 5: Repeat steps 2 to 4, the number of repetitions is the number of slices N s ; Step 6: Calculate the point cloud group C to be registered s To point cloud group C p The scaling factor S, the rotation matrix M R , translation matrix M T ; Step 7: Repeat steps 1 to 6, the number of repetitions is the number of iterations N I .

2. The point cloud precise registration method based on slice optimal transmission according to claim 1 is characterized in that: The specific steps of step 6 are as follows: Step 6.1: Calculate the point cloud cluster C s and C p The center point of the translation matrix M is obtained T ; Step 6.2: Translate point cloud group C s and C p , so that the point cloud group C s and C p The center points of the points are all at the origin of the coordinate system, and the point cloud group at this time is denoted as C′ s and C′ p ; Step 6.3: Calculate the point cloud cluster C′ s and C′ p The covariance matrix M cov ; Step 6.4: For the covariance matrix M cov Perform SVD decomposition and calculate the rotation matrix M R and scaling factor S.

3. A point cloud precise registration device based on optimal slice transmission, characterized in that include: A data dimension reduction module, used for performing data dimension reduction on the three-dimensional data of the point cloud cluster and the target point cloud cluster to generate a one-dimensional histogram, wherein the data dimension reduction method adopts step 2 in claim 1; A registration module, used for determining a Sliced-Wasserstein registration scheme of a one-dimensional histogram, wherein the registration scheme adopts step 3 of claim 1; A data updating module is used to update the point cloud cluster according to the registration scheme; The data processing module is used to calculate the scaling factor, rotation matrix and translation matrix of the point cloud cluster to be registered.

4. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the computer-readable instructions, the point cloud precise registration method according to any one of claims 1 to 2 is implemented.

5. A computer-readable storage medium, comprising one or more computer-readable storage media storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by one or more processors, the one or more processors execute the point cloud precise registration method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Building point cloud registration algorithm based on dimension reduction

    CN105469388A

  • A battery appearance defect detection method based on dimension reduction and point cloud data matching

    CN109523501A