Point cloud three-dimensional reconstruction method based on secondary adjacent frame constraint pose map optimization
By adopting the secondary adjacent frame constrained pose map optimization method in three-dimensional reconstruction technology, combining the truncated least squares and semi-determinal relaxation algorithm, the impact of point cloud registration error on pose map optimization is solved, and high precision and low calculations are achieved The balance of complexity improves the overall accuracy and robustness of three-dimensional reconstruction.
Patent Information
- Application Number
- CN202411172797.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-26
AI Technical Summary
In the existing three-dimensional reconstruction technology, the cumulative error caused by point cloud registration error affects the accuracy of position pose optimization, and the existing methods have high computational complexity or are sensitive to noise, making it difficult to find a balance between high precision and low computational cost.
Using the method based on the secondary neighbor frame constraint pose map optimization, point cloud registration is performed by truncating the least squares and semi-determinal relaxation algorithm, and the pose map is constructed in combination with the neighbor frame and the secondary neighbor frame constraint edges, and the bit is optimized using the Levenberg-Marquardt algorithm. Pose map, reduces cumulative errors and improves the accuracy of three-dimensional reconstruction.
High-precision three-dimensional reconstruction is realized, which reduces the impact of computing complexity and noise on pose optimization, and improves the robustness of point cloud registration and the reconstruction accuracy of three-dimensional models.
Smart Images

Figure CN118887345A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional point cloud processing, and in particular to a point cloud three-dimensional reconstruction method based on next-neighbor frame constrained pose graph optimization. The method processes multi-view point clouds acquired by active sensors based on a truncated least squares point cloud registration method and a pose graph optimized three-dimensional reconstruction method to achieve high-precision three-dimensional reconstruction of the target. Background Art
[0002] As a point cloud processing technology, 3D reconstruction technology is widely used in urban planning, cultural relics protection, industrial manufacturing, space rendezvous and docking, etc. due to its advantages such as non-contact measurement, little influence by ambient light, and ability to reconstruct the target 3D model. 3D reconstruction uses active sensors to obtain point clouds from multiple perspectives of the target, and uses point cloud registration technology to calculate the rigid body transformation matrix between point clouds, transform the point clouds from different perspectives into a unified coordinate system, and obtain the target 3D model. Due to the error in point cloud registration, the overall error gradually accumulates during reconstruction. This accumulated error may cause the reconstructed point cloud model to have problems such as distortion, deformation or dislocation. In order to suppress the influence of accumulated errors, the pose graph optimization method is used to redistribute the errors to each frame to avoid large accumulated errors, thereby improving the accuracy of 3D reconstruction. The pose graph is a graph structure composed of nodes and edges, where nodes represent point cloud poses and are variables to be optimized, and edges represent the transformation relationship between point cloud poses and are constraints of the optimization problem. Through pose graph optimization, the overall accuracy of point cloud poses and 3D reconstruction accuracy are improved. Affected by sensor noise, long-distance point cloud sparsification, occlusion, low overlap rate and other issues, point cloud registration may have large errors in the registration results, affecting the pose graph optimization 3D reconstruction accuracy. Therefore, how to design the pose graph structure and reduce the impact of registration errors on the pose graph optimization accuracy is an urgent problem to be solved.
[0003] In order to overcome the influence of the registration error on the optimization accuracy of the pose graph, there are currently two commonly used processing methods. One is to construct a pose graph based on full graph reweighting, that is, to exhaustively register the multi-view point clouds so that every two nodes of the pose graph are connected by edges, and then iteratively reweight all edges to gradually reduce the weights of the edges corresponding to the large error registration results. Among them, the iterative reweighting mainly determines the weight of the edge by iteratively determining the point cloud overlap rate and the number of inner points of the point cloud registration result, thereby reducing the influence of abnormal edges on the global pose estimation. The full graph reweighting method can effectively improve the accuracy of three-dimensional reconstruction by exhaustively registering and iteratively reducing the weight of abnormal edges, but at the same time greatly increases the amount of calculation. Since the time complexity of the exhaustive registration algorithm is O(n 2), and each time the iterative reweighting is performed, the overlap rate and number of internal points of all registration results must be recalculated, which increases the computational cost. The other is based on sparse pose graph construction, that is, selective registration and optimization are used to reduce the computational complexity while maintaining a high 3D reconstruction accuracy. The sparse pose graph construction usually selects point cloud pairs for registration based on feature matching or point cloud overlap rate, and adds corresponding edges in the pose graph. The feature matching selection selects the registered frame pairs based on the number or quality of feature point matching by detecting and matching local feature points in the point cloud, and constructs a sparse pose graph. The feature matching method is sensitive to noise and occlusion. When there is noise and sparsity in the point cloud, the reliability of feature point extraction and matching will be significantly reduced. In areas with less texture or more repeated patterns, the extracted feature points may be sparse or not unique, resulting in difficulties and errors in matching. The point cloud overlap rate is used to measure the degree of common parts between two point clouds and to determine the size of the overlapping area between two point clouds. Generally, the higher the overlap rate between two frames of point clouds, the higher the point cloud registration accuracy. The overlap rate calculation is relatively simple, has high computational efficiency, is insensitive to local changes, can effectively handle noise and partial occlusion problems, and ensures the reliability of the overlapping area. The point cloud overlap rate selection improves the point cloud registration accuracy and pose graph optimization accuracy by selecting frame pairs with high point cloud overlap rates.
[0004] The pose graph construction method based on overlap rate is divided into the overlap rate of unordered point clouds and the overlap rate of ordered point clouds. For the unordered point cloud, the time order and position order between the point clouds are unknown, and the overlap rate between all point clouds needs to be exhaustively calculated; for the ordered point cloud, the time order and position order between the point clouds are known, and usually the adjacent frames and the next adjacent frames are the point cloud pairs with the highest overlap rate. In the three-dimensional reconstruction application scenario described in the present invention, the sensor moves around the target for one circle, obtains point clouds of multiple perspectives of the target, and finally the sensor returns to the vicinity of the initial position, so that a loop constraint can be constructed. The multi-perspective point cloud obtained belongs to the three-dimensional reconstruction technology of the overlap rate of ordered point clouds, and its time order and position order are known. Therefore, the overlap rate-based method mainly selects the adjacent frame point cloud and the next adjacent frame for registration, and adds the adjacent frame constraint edge, the next adjacent frame constraint edge and the loop constraint edge in the pose graph.
[0005] According to the patent review provided by the existing patent office, the existing patent application selects the adjacent frame point cloud to construct a pose graph based on the point cloud overlap rate, obtains the initial value of the pose graph node through the adjacent frame point cloud registration result, and obtains the target three-dimensional reconstruction model according to the pose after the graph optimization. The above patent includes "a three-dimensional reconstruction method and system" disclosed in the Chinese patent CN117911617A. The above patent does not consider the problem of large adjacent frame registration error. When the adjacent frame registration result error is too large, the accuracy of the pose graph is reduced. The difference between the present application and the above patents includes: first, the point cloud registration method is different. The above patent calculates the rough pose of the point cloud by integrating the angular velocity and acceleration information collected from the inertial measurement unit, and calculates the pose of the adjacent point cloud based on the rough pose of the point cloud. The adjacent point cloud is precisely registered by iterative nearest point (ICP), normal distribution transform (NDT) and other point cloud registration algorithms. This patent uses truncated least squares and semidefinite relaxation (Truncated least squares Estimation And Semidefinite Relaxation) to calculate the pose of the adjacent point cloud. The patent uses the TEASER (Teaser Relaxation) algorithm for coarse registration, suppresses the influence of matching pairs with large errors by truncating the least squares function, and performs fine registration by the point-to-surface ICP algorithm; second, the types of pose graph constraint edges are different. The above-mentioned patent only adds neighboring frame constraint edges in the pose graph based on the neighboring frame registration results. In addition to the neighboring frame constraint edges, this patent also adds sub-neighboring frame constraint edges in the pose graph based on the sub-neighboring frame registration results; third, the constraint edge cost functions are different. The above-mentioned patent calculates the root mean square error or reprojection error based on the neighboring frame feature matching pairs as the cost function, while this patent calculates the error between the relative pose of the neighboring frames and the point cloud registration result, and uses its Lie algebraic form as the cost function.
[0006] Another type of patent application for three-dimensional reconstruction is based on the construction of a fully graph-reweighted pose graph, performing feature matching on any two scanning station data, determining weights based on the number of feature matches, constructing a fully connected weighted graph, and generating a minimum spanning tree of the graph to obtain the registration path between any two stations. Using feature matching pairs, the transformation matrix between any two connected stations is calculated, and then the transformation matrix of each station relative to the fixed station is obtained through the tree path to complete the global registration of all stations. Using the ICP registration principle, each registration station in the path is precisely registered to obtain a refined transformation matrix. The above patent includes "A method for multi-view automatic registration of multi-station ground laser point cloud data" disclosed in Chinese patent CN201510833425. The above patent does not take into account the possibility of erroneous matching pairs between two frames of point clouds. When there are erroneous matching pairs between two frames of point clouds, the point cloud registration accuracy is reduced, and it is easy to assign a larger weight to the registration result with larger errors, resulting in pose errors. Figure 3The accuracy of dimensional reconstruction is reduced. The differences between the present application and the above-mentioned patents include: first, the feature matching method is different. The above-mentioned patent obtains geometric features such as straight lines and cylinders through the point cloud clustering method, and assigns semantic information to the feature points, and matches the semantic feature points by constructing triangular geometric constraints and semantic constraints. The present application describes the local geometric information of the point cloud by calculating the feature descriptor, and searches for the points with the smallest Euclidean distance between the feature descriptors between the two frames of point clouds as matching pairs; second, the point cloud registration method is different. After obtaining the matching pairs, the above-mentioned patent uses a random sampling consistency algorithm to eliminate the wrong matching pairs, and uses singular value decomposition to calculate the transformation matrix for the screened matching pairs. The present application uses a truncated least squares function to suppress the influence of the wrong matching pairs, achieve high-precision coarse registration, and input the coarse registration results into the point-to-surface ICP algorithm to further improve the point cloud registration accuracy; third, the pose graph construction is different. The above-mentioned patent needs to register the multi-view point clouds in pairs to construct a fully connected complete graph. If the number of point cloud frames is N, the algorithm time complexity of pose graph construction is O(N 2 ), this paper uses adjacent frames and next adjacent frames to construct the pose graph, and the time complexity of the algorithm is O(N).
[0007] In order to improve the accuracy of laser point cloud 3D reconstruction, reduce the computational cost and complexity of 3D reconstruction algorithms, and realize the reconstruction of a high-precision 3D model of a target from a multi-view laser point cloud based on point cloud registration and pose graph optimization, the present invention discloses a laser point cloud 3D reconstruction method based on optimization of a pose graph with a next-neighboring frame constraint. The laser point cloud 3D reconstruction method collects target multi-view point clouds based on an active sensor, calculates the transformation matrix through TEASER coarse registration and point-to-surface ICP fine registration, constructs a pose graph based on adjacent frame constraint edges, next-neighboring frame constraint edges, and loop constraint edges, performs pose graph optimization, and completes the 3D reconstruction of the target. The present invention has broad application prospects in the field of laser point cloud 3D reconstruction. Summary of the invention
[0008] The present invention discloses a point cloud 3D reconstruction method based on optimization of pose graph constrained by next-neighboring frame, which is characterized by enhancing the pose estimation accuracy by next-neighboring frame constraint to realize high-precision 3D reconstruction; the point cloud 3D reconstruction method based on optimization of pose graph constrained by next-neighboring frame comprises point cloud registration and pose graph optimization; the point cloud registration provides a basis for establishing a pose graph by calculating the rigid body transformation pose matrix between two frames of point clouds; the point cloud registration step comprises feature descriptor calculation, matching pair calculation, and transformation matrix estimation; the pose graph comprises graph nodes and constraint edges, the graph nodes are single-frame point cloud pose matrices, the constraint edges are rigid body transformation matrices between two frames of point clouds, and the The constraint edges include adjacent frame constraint edges, sub-adjacent frame constraint edges, and loop constraint edges; the adjacent frame constraint edges are transformation matrix constraints between two adjacent frames of point clouds in the pose graph; the sub-adjacent frame constraint edges are transformation matrix constraints between two frames of point clouds separated by one frame in the pose graph, which are used to improve the robustness of the pose graph; the loop constraint edges are transformation matrix constraints constructed by the closed loop of the last frame of point cloud and the first frame of point cloud, which are used to improve the accuracy of pose estimation of continuous multi-frame point clouds; through the pose graph optimization method, the cumulative error of adjacent frame point cloud registration is reduced, the overall point cloud pose error is reduced, and all point clouds are transformed into a unified coordinate system using the optimized point cloud pose to obtain a reconstructed target model;
[0009] The point cloud pose matrix T is a 4×4 matrix, which is composed of the rotation matrix R and the translation vector t of the point cloud relative to the reference coordinate system; the pose error includes the rotation error e rot and translation error e tra , which is defined as:
[0010]
[0011] Among them, T is the estimated value of the pose matrix, T G is the true value of the pose matrix, ΔR is the residual of the rotation matrix R, Δt is the residual of the translation vector t, tr(·) represents the trace of the matrix, and ||·|| represents the second norm of the vector; the cumulative error refers to the existence of a small error in the registration of adjacent frames of the point cloud, which leads to the gradual accumulation of errors during reconstruction and the gradual increase of the pose error;
[0012] The point cloud 3D reconstruction method comprises the following steps:
[0013] (1) Acquisition of multi-view target point cloud: An active 3D imaging sensor is used to acquire multi-view target point cloud around the target. The active sensor moves in a circle around the target, scanning a frame of point cloud every M°. The sensor moves at least one circle, and a total of N frames of point cloud are acquired.
[0014] (2) Feature descriptor calculation: perform voxel downsampling on the multi-view point cloud to compress the data volume and improve the calculation speed; calculate the feature descriptor for each point in the downsampled point cloud; the feature descriptor describes the feature point by establishing a local coordinate system at the feature point and combining the spatial position information or geometric feature statistics of the neighborhood points. The basic idea is to establish a local coordinate system based on the neighborhood points, and then encode the geometric features of each point into a histogram to obtain a three-dimensional descriptor. The point cloud feature descriptor is essentially a vector.
[0015] (3) Determining matching pairs: Based on the point cloud feature descriptor, matching pairs are calculated by mutual search. The two frames of point clouds to be registered are respectively referred to as source point cloud and target point cloud. For a point in the source point cloud, the point with the smallest Euclidean distance to the feature descriptor of the point is searched in the target point cloud. For the corresponding point found in the target point cloud, the same search is performed again in the source point cloud. If a pair of spatial points in the source point cloud and the target point cloud are the same after the two searches, the pair of spatial points is regarded as a matching pair.
[0016] (4) Estimation of transformation matrices of adjacent frames and next adjacent frames: Based on the calculation results of matching pairs, the transformation matrix is estimated by combining a truncated least squares cost function and a semidefinite relaxation method; the truncated least squares cost function enhances the robustness to erroneous matching pairs, and uses semidefinite relaxation to rewrite the non-convex problem of rotation estimation into a convex optimization problem, thereby improving the accuracy of 3D point cloud registration; the non-convex problem refers to the situation in which the objective function or constraint conditions have multiple local extreme points during the optimization process, making it difficult to find a global optimal solution and prone to falling into local extreme points; the convex optimization problem refers to the situation in which the objective function and constraint conditions have a unique global optimal solution during the optimization process, and attempts to find a global optimal solution;
[0017] (5) Pose graph construction: Based on the estimation results of the adjacent frame transformation matrix, the pose matrix of each frame point cloud is calculated, and the pose graph nodes are initialized according to the pose matrix; based on the adjacent frame transformation matrix, adjacent frame constraint edges are added; based on the next adjacent frame transformation matrix, next adjacent frame constraint edges are added; for the last frame point cloud and the first frame point cloud, loop constraint edges are added, that is, the transformation matrix between the last frame point cloud and the first frame point cloud is the unit matrix, which means that the sensor returns to the initial position after circular motion;
[0018] (6) Pose graph optimization: Calculate the cost function for the pose graph. Assuming that the pose graph has N nodes, define the relative pose Lie group expression of adjacent frames as follows:
[0019]
[0020] Among them, T i and T i+1 are the poses of the i-th frame and the i+1-th frame respectively, T i,i+1is the relative pose between the i-th frame and the i+1-th frame. In the graph optimization, the relative pose T of the adjacent frames i,i+1 It has been obtained through the point cloud registration algorithm, so the error can be calculated by the following formula:
[0021]
[0022] Similarly, the next-neighbor frame error can be calculated as follows:
[0023]
[0024] Among them, T i,i+2 is the relative pose of the next adjacent frame; the loop error is:
[0025]
[0026] Among them, T N,1 is the relative pose between the last frame and the first frame; the cost function F is the sum of these three errors; the Levenberg-Marquardt algorithm is used for optimization, and the solution is iterated until the cost function converges to obtain the optimized point cloud pose T i O ,i=1,2,…,N;
[0027] (7) Three-dimensional reconstruction: According to the optimized point cloud pose of the graph, all point clouds are aligned to the coordinate system of the first frame point cloud through rigid body transformation to obtain the reconstructed target model.
[0028] The point cloud three-dimensional reconstruction method based on optimization of the constrained pose graph of the next adjacent frame is characterized in that the active sensor can be a laser radar or a ToF camera; the multi-view target point cloud is acquired, and the active sensor is made to move in a circle around the target and finally return to the vicinity of the initial position, so that the last frame of point cloud and the first frame of point cloud can form a closed loop through point cloud registration; the output of this part is point clouds under N frames of different view angles.
[0029] The point cloud 3D reconstruction method based on next-neighbor frame constrained pose graph optimization is characterized in that the feature descriptor calculation can select a Signature of Histogram of Orientation (SHOT) descriptor, or a Point Feature Histogram (FPH) descriptor, or a Fast Point Feature Histogram (FPFH) descriptor; the feature descriptor calculation steps are as follows:
[0030] 1) The point in the point cloud where the feature descriptor is to be calculated is called the query point. For each query point p in the point cloud, the covariance matrix M of the point neighborhood is constructed:
[0031]
[0032] Among them, r represents the neighborhood radius, p is the query point, and p i is a point in the neighborhood, d i For p i The distance from p;
[0033] 2) By performing singular value decomposition on the covariance matrix, its eigenvalues and corresponding eigenvectors are obtained, and the eigenvalues are arranged in descending order. The corresponding eigenvectors are the x, y, and z axes of the local coordinate system;
[0034] 3) Calculate the geometric information such as the normal of the neighborhood point and the cosine value of the angle between the normal and the query point, and encode the geometric features of the neighborhood points into the histogram to form a feature descriptor, which is essentially a K-dimensional vector. Assume that the set of query points in the point cloud is P = {p i ,i=1,2,…,m}, the calculation result is the feature descriptor set The output of this part is the feature descriptor calculation result D, which will be used as the input for the next step of matching pair determination.
[0035] The point cloud 3D reconstruction method based on the optimization of the pose graph of the next adjacent frame constraint is characterized in that the matching pair is determined based on the calculation result of the feature descriptor, assuming that the source point cloud is P = {p i ,i=1,2,…,m}, the corresponding feature descriptor is The target point cloud is Q = {q i ,i=1,2,…,m}, the corresponding feature descriptor is For a point p in the source point cloud i , and its corresponding feature descriptor is In the target point cloud feature descriptor D Q Inquiry and The feature descriptor with the smallest Euclidean distance The corresponding point q j For p i To improve the matching accuracy, a mutual search method is used, that is, for the preliminary corresponding point q j , in the source point cloud feature descriptor D P Perform the same search in , if the corresponding point found is also p i , then p i and q j Consider it as a matching pair; traverse the feature descriptor D P, and finally n matching pairs are obtained; in order to avoid the high time consumption caused by traversal search, a KD tree is established for the feature descriptors of the source point cloud and the target point cloud to accelerate the mutual search; the output of this part is n matching pairs between point clouds, which will be used as the input of the next step of coarse registration.
[0036] The point cloud 3D reconstruction method based on the optimization of the pose graph constrained by the next adjacent frame is characterized in that, assuming that the source point cloud P = {p i ,i=1,2,…,n} and target point cloud Q={q i , i=1,2,…,n}, there are scale, translation, and rotation transformations between them, and the truncated least squares cost function is:
[0037]
[0038] Where s is the scale transformation factor, R is the rotation matrix, t is the translation matrix, n is the matching logarithm, β i is the maximum value of the measurement residual that can be tolerated in the i-th measurement, is a constant; through the truncated least squares cost function, a constant cost is assigned to the measurement value with a large residual, so that the transformation matrix estimation is insensitive to the measurement value with a large residual. The output of this part is the coarse alignment result, that is, the rotation matrix R and the translation matrix t, which will be used as the input for the next step of fine alignment.
[0039] The point cloud 3D reconstruction method based on next-neighbor frame constrained pose graph optimization is characterized in that the truncated least squares and semidefinite relaxation registration results are used as the initial estimate of the transformation matrix and input into the fine registration algorithm for further fine registration; the fine registration algorithm can select the iterative closest point (ICP) algorithm or the point-to-plane ICP (Point-to-plane ICP) algorithm; the ICP algorithm cost function is:
[0040]
[0041] Where T is the transformation matrix, n is the number of matching pairs, p i is a point in the source point cloud, q closest is the target point cloud with p i The point with the smallest Euclidean distance, ||·|| represents the bi-norm of the vector;
[0042] The cost function of the point-surface ICP algorithm is:
[0043]
[0044] Among them, v iis the normal vector of the tangent plane of the target point; the output of this part is the rigid body transformation matrix T of the adjacent frame i,i+1 , i = 1, 2, ..., N and the rigid body transformation matrix T of the next adjacent frame i,i+2 ,i=1,2,…,N, which will be used as the input for establishing the pose graph in the next step.
[0045] The point cloud 3D reconstruction method based on the optimization of the constrained pose graph of the next adjacent frame is characterized in that the pose graph is constructed, and the initial value of the pose node is determined based on the adjacent frame registration result; the adjacent frame registration result is the adjacent frame rigid body transformation matrix T i,i+1 ,i=1,2,…,N, the pose node is the pose matrix T i ,i=1,2,…,N, the calculation relationship between the two is:
[0046] T1=I4 (11)
[0047] T i =T i-1 ·T i-1,i ,i=2,3,…,N (12)
[0048] Where I4 is a 4th-order unit matrix. Formula (11) indicates that the first pose node is set to the unit matrix as a reference. Formula (12) indicates that the initial value of the pose node is the initial value of the previous pose node multiplied by the rigid body transformation matrix from the previous pose node to the pose node. The output of this part is the pose graph node T i ,i=1,2,…,N。
[0049] The point cloud 3D reconstruction method based on optimization of the constrained pose graph of the next adjacent frame is characterized in that the pose graph is constructed based on the rigid body transformation matrix T of the adjacent frame. i,i+1 , i = 1, 2, ..., N add adjacent frame constraint edges in the pose graph; based on the rigid body transformation matrix T of the next adjacent frame i,i+2 ,i=1,2,…,N add the next adjacent frame constraint edge; add the loop constraint edge between the last pose node and the first pose node;
[0050] The neighbor frame constraint edge is essentially the error term shown in formula (4), and its Lie algebraic form is:
[0051]
[0052] Among them, ξ i and i+1 T i and T i+1 The corresponding Lie algebra is the optimization variable in the subsequent optimization, and has T i =exp(ξ i ) ^ , Ti+1 =exp(ξ i+1 ) ^ , Indicates T i -1 The corresponding Lie algebra, and T i -1 =exp((-ξ i ) ^ );in· ^ The symbol represents the transformation of a vector into an antisymmetric matrix. ∨ The symbol represents the conversion of the antisymmetric matrix into a vector; in the graph optimization, the relative pose T i,i+1 It has been obtained through the point cloud registration algorithm, and its corresponding Lie algebra is denoted as ξ i,i+1 , so the error expression is for:
[0053] e i,i+1 =ln(exp((-ξ i,i+1 ) ∧ )·exp((-ξ i ) ∧ )exp(ξ i+1 ) ∧ ) ∨ (14)
[0054] Similarly, the next-neighbor frame error expression is for:
[0055] e i,i+2 =ln(exp((-ξ i,i+2 ) ∧ )·exp((-ξ i ) ∧ )exp(ξ i+2 ) ∧ ) ∨ (15)
[0056] Loop closure constraint error expression for:
[0057] e N,1 =ln(exp((-ξ N,1 ) ∧ )·exp((-ξ N ) ∧ )exp(ξ1) ∧ ) ∨ (16)
[0058] The output of this part is the three constraint edge error expressions e described in the pose graph i,i+1 、e i,i+2 and e N,1, which is convenient for the next step to calculate the pose graph cost function.
[0059] The point cloud 3D reconstruction method based on optimization of the pose graph with next-neighboring frame constraints is characterized in that the cost function of the pose graph is defined as:
[0060]
[0061] The cost function F is a 6-dimensional vector, where the first three dimensions represent the translation error, the last three dimensions represent the rotation error, and Ω i is a preset information matrix, which represents the prediction of the correlation of the error terms corresponding to each element in e, and assigns different weights to each dimension of the error; the information matrix Ω i is a 6×6 diagonal matrix, and the main diagonal elements represent the optimization variables (t x ,t y ,t z ,r x ,r y ,r z ), the larger the diagonal element value, the larger the weight of the corresponding optimization variable; the cost function is iteratively solved until it converges; the output of this part is the point cloud pose T after graph optimization i O ,i=1,2,…,N, which will be used as the input for the next step of 3D reconstruction.
[0062] The point cloud 3D reconstruction method based on optimization of the constrained pose graph of the next adjacent frame is characterized in that the pose of the point cloud of the first frame is fixed to the unit matrix I as a reference; the pose obtained after the pose graph is optimized is T i O , i = 2, 3, ..., N, which is actually the transformation matrix T of each point cloud relative to the first frame point cloud 1,i , i = 2, 3, ..., N; the three-dimensional reconstruction transforms all point clouds into the first frame point cloud coordinate system, that is, for each frame point cloud P i ,i=2,3,…,N make the following transformations:
[0063]
[0064] Among them, P i T is the transformed point cloud; the output of this part is the set P of transformed point clouds i T ,i=2,3,…,N, that is, the three-dimensional reconstructed model. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 Workflow diagram of the point cloud 3D reconstruction method based on the optimization of the pose graph constrained by the next neighbor frame
[0066] Figure 2 Schematic diagram of the pose graph structure
[0067] Figure 3 Schematic diagram of sensor data collection
[0068] Figure 4 Constructing a schematic for the pose graph
[0069] Figure 5 Schematic diagram of the target trajectory before and after image optimization
[0070] Figure 6 The three-dimensional reconstruction result is shown in Figure 2. DETAILED DESCRIPTION
[0071] The specific implementation of the present invention is further described in detail below with reference to the accompanying drawings. The present invention discloses an online ranging method for laser radar saturation signals based on waveform compensation. The working process of an embodiment of the method is as follows: Figure 1 This embodiment consists of two parts: point cloud registration and pose graph optimization; the point cloud registration provides a basis for establishing a pose graph by calculating the rigid body transformation pose matrix between two frames of point clouds; the point cloud registration step includes feature descriptor calculation, matching pair calculation, and transformation matrix estimation; the pose graph contains graph nodes and constraint edges, such as Figure 2 As shown; the graph nodes are the pose matrices of each point cloud, the constraint edges are the rigid body transformation matrices between two frames of point clouds, and the constraint edges include adjacent frame constraint edges, sub-adjacent frame constraint edges, and loop constraint edges; the adjacent frame constraint edges are the transformation matrix constraints between two adjacent frames of point clouds in the pose graph; the sub-adjacent frame constraint edges are the transformation matrix constraints between two frames of point clouds separated by one frame in the pose graph, which are used to improve the robustness of the pose graph; the loop constraint edges are the transformation matrix constraints constructed by the closed loop of the last frame of point cloud and the first frame of point cloud, which are used to improve the accuracy of pose estimation of continuous multi-frame point clouds; through the pose graph optimization method, the cumulative error of adjacent frame point cloud registration is reduced, the overall point cloud pose error is reduced, and all point clouds are transformed into a unified coordinate system using the optimized point cloud pose to obtain a reconstructed target model;
[0072] The point cloud pose matrix T is a 4×4 matrix, which is composed of the rotation matrix R and the translation vector t of the point cloud relative to the reference coordinate system; the pose error includes the rotation error e rot and translation error e tra , which is defined as:
[0073]
[0074] Among them, T is the estimated value of the pose matrix, T Gis the true value of the pose matrix, ΔR is the residual of the rotation matrix R, Δt is the residual of the translation vector t, tr(·) represents the trace of the matrix, and ||·|| represents the second norm of the vector; the cumulative error refers to the existence of a small error in the registration of adjacent frames of the point cloud, which leads to the gradual accumulation of errors during reconstruction and the gradual increase of the pose error;
[0075] The point cloud 3D reconstruction method comprises the following steps:
[0076] (1) Acquisition of multi-view target point cloud: An active 3D imaging sensor is used to acquire multi-view target point cloud around the target. The active sensor moves in a circle around the target, scanning a frame of point cloud every M°. The sensor moves at least one circle, and a total of N frames of point cloud are acquired.
[0077] (2) Feature descriptor calculation: perform voxel downsampling on the multi-view point cloud to compress the data volume and improve the calculation speed; calculate the feature descriptor for each point in the downsampled point cloud; the feature descriptor describes the feature point by establishing a local coordinate system at the feature point and combining the spatial position information or geometric feature statistics of the neighborhood points. The basic idea is to establish a local coordinate system based on the neighborhood points, and then encode the geometric features of each point into a histogram to obtain a three-dimensional descriptor. The point cloud feature descriptor is essentially a vector.
[0078] (3) Determining matching pairs: Based on the point cloud feature descriptor, matching pairs are calculated by mutual search. The two frames of point clouds to be registered are respectively referred to as source point cloud and target point cloud. For a point in the source point cloud, the point with the smallest Euclidean distance to the feature descriptor of the point is searched in the target point cloud. For the corresponding point found in the target point cloud, the same search is performed again in the source point cloud. If a pair of spatial points in the source point cloud and the target point cloud are the same after the two searches, the pair of spatial points is regarded as a matching pair.
[0079] (4) Estimation of transformation matrices of adjacent frames and next adjacent frames: Based on the calculation results of matching pairs, the transformation matrix is estimated by combining a truncated least squares cost function and a semidefinite relaxation method; the truncated least squares cost function enhances the robustness to erroneous matching pairs, and uses semidefinite relaxation to rewrite the non-convex problem of rotation estimation into a convex optimization problem, thereby improving the accuracy of 3D point cloud registration; the non-convex problem refers to the situation in which the objective function or constraint conditions have multiple local extreme points during the optimization process, making it difficult to find a global optimal solution and prone to falling into local extreme points; the convex optimization problem refers to the situation in which the objective function and constraint conditions have a unique global optimal solution during the optimization process, and attempts to find a global optimal solution;
[0080] (5) Pose graph construction: The pose graph construction process is as follows: Figure 4As shown, based on the estimation result of the adjacent frame transformation matrix, the pose matrix of each frame point cloud is calculated, and the pose graph node is initialized according to the pose matrix; based on the adjacent frame transformation matrix, the adjacent frame constraint edge is added; based on the next adjacent frame transformation matrix, the next adjacent frame constraint edge is added; for the last frame point cloud and the first frame point cloud, a loop constraint edge is added, that is, the transformation matrix between the last frame point cloud and the first frame point cloud is the unit matrix, which represents that the sensor returns to the initial position after circular motion;
[0081] (6) Pose graph optimization: Calculate the cost function for the pose graph. Assuming that the pose graph has N nodes, define the relative pose Lie group expression of adjacent frames as follows:
[0082] T i,i+1 =T i -1 T i+1 (twenty one)
[0083] Among them, T i and T i+1 are the poses of the i-th frame and the i+1-th frame respectively, T i,i+1 is the relative pose between the i-th frame and the i+1-th frame. In the graph optimization, the relative pose T of the adjacent frames i,i+1 It has been obtained through the point cloud registration algorithm, so the error can be calculated by the following formula:
[0084]
[0085] Similarly, the next-neighbor frame error can be calculated as follows:
[0086]
[0087] Among them, T i,i+2 is the relative pose of the next adjacent frame; the loop error is:
[0088]
[0089] Among them, T N,1 is the relative pose between the last frame and the first frame; the cost function F is the sum of these three errors; the Levenberg-Marquardt algorithm is used for optimization, and the solution is iterated until the cost function converges to obtain the optimized point cloud pose T i O ,i=1,2,…,N;
[0090] (7) Three-dimensional reconstruction: According to the optimized point cloud pose of the graph, all point clouds are aligned to the coordinate system of the first frame point cloud through rigid body transformation to obtain the reconstructed target model.
[0091] In step (1) of acquiring multi-view target point cloud, this embodiment selects the laser radar as an active sensor, and makes the laser radar move in a circle around the target and finally returns to the vicinity of the initial position, such as Figure 3 As shown, the last frame of point cloud and the first frame of point cloud can form a closed loop through point cloud registration; in this embodiment, when the sensor performs circular motion, a frame of point cloud is collected every 25°, and a total of 15 frames of point cloud are collected.
[0092] In step (2) of calculating the feature descriptor, this embodiment selects the SHOT feature descriptor. For the query point, a local coordinate system is established based on its neighborhood points, the neighborhood space of the point is divided into multiple subspaces, and then the normal feature of each point in the subspace is counted into a histogram for encoding, and then the histograms of each subspace are combined together to obtain a three-dimensional descriptor. The calculation steps are as follows:
[0093] 1) For each query point p in the point cloud, construct the covariance matrix M of the point neighborhood:
[0094]
[0095] Wherein, r represents the neighborhood radius. In this embodiment, r is taken as 300 times of the point cloud resolution. The point cloud resolution used in this embodiment is 2.08 cm, so r = 624.00 cm; p is the query point, p i is a point in the neighborhood, d i For p i The distance from p;
[0096] 2) By performing singular value decomposition on the covariance matrix, its eigenvalues and corresponding eigenvectors can be obtained. The eigenvalues are arranged in descending order, and the corresponding eigenvectors are the x, y, and z axes of the local coordinate system;
[0097] 3) With the query point as the center of the sphere, a spherical neighborhood with a radius of r is established, and the sphere is divided into 8, 2, and 2 parts according to the longitude, latitude, and radial directions. In this way, the spherical neighborhood is divided into 32 subspaces;
[0098] 4) Calculate the cosine value of the angle between the normal of the neighborhood points distributed in each subspace and the normal of the query point, then divide the cosine values in each space into 11 equal parts and perform histogram statistics, and finally combine the histograms of all subspaces together to form a 352-dimensional high-dimensional histogram;
[0099] Assume that the set of query points in the point cloud is P = {p i ,i=1,2,…,m}, the calculation result is the feature descriptor set The output of this part is the feature descriptor calculation result D, which will be used as the input for the next step of matching pair determination.
[0100] In step (3) matching pair determination, based on the feature descriptor calculation results, the source point cloud is P = {p i ,i=1,2,…,m}, the corresponding feature descriptor is The target point cloud is Q = {q i ,i=1,2,…,m}, the corresponding feature descriptor is For a point p in the source point cloud i , and its corresponding feature descriptor is In the target point cloud feature descriptor D Q Inquiry and The feature descriptor with the smallest Euclidean distance The corresponding point q j For p i To improve the matching accuracy, a mutual search method is used, that is, for the preliminary corresponding point q j , in the source point cloud feature descriptor D P Perform the same search in , if the corresponding point found is also p i , then p i and q j Consider it as a matching pair; traverse the feature descriptor D P , and finally n matching pairs are obtained; in order to avoid the high time consumption caused by traversal search, a KD tree is established for the feature descriptors of the source point cloud and the target point cloud to accelerate the mutual search; the output of this part is n matching pairs between point clouds, which will be used as the input of the next step of coarse registration.
[0101] In step (4) of estimating the transformation matrix of the adjacent frame and the next adjacent frame, the source point cloud P = {p i ,i=1,2,…,n} and target point cloud Q={q i , i=1,2,…,n}, there are scale, translation, and rotation transformations between them, and the truncated least squares function is used as the cost function:
[0102]
[0103] Where s is the scale transformation factor, R is the rotation matrix, t is the translation matrix, n is the matching logarithm, β i is the maximum value of the measurement residual that can be tolerated in the i-th measurement, is a constant; through the truncated least squares cost function, a constant cost is assigned to the measurement value with a large residual, so that the transformation matrix estimation is insensitive to the measurement value with a large residual; after rewriting, equation (26) still belongs to a nonlinear least squares problem and is non-convex, and the time complexity of exhaustively searching for the global optimal solution is O(2 n); In order to solve the problem in polynomial time, the complex problem is decoupled according to the translation-invariant measurement assumption and the translation-rotation-invariant measurement assumption, that is, equation (26) is decomposed into three independent problems of scale, translation, and rotation transformation estimation, and solved separately; the translation-invariant measurement assumption means that the direction of the vector composed of any two points of the point cloud remains unchanged during the translation process; assuming that the two point clouds to be registered P = {p i ,i=1,2,…,n}、Q={q i ,i=1,2,…,n} conforms to the following generation model:
[0104] q i =sRp i +t+o i +ε i (27)
[0105] Among them, ε i is the measurement noise and conforms to the Gaussian distribution, that is, ||ε i ||≤β i If (p i ,q i ) constitutes an interior point, then o i is a zero vector, otherwise it is an arbitrary value; according to the above model, let q i Subtract p i have to:
[0106]
[0107] in, o ij =o j -o i , ε ij =ε j -ε i ; by ||ε i ||≤β i It can be seen that: i is also bounded, then model (27) only depends on the unknown scale transformation s and rotation transformation R;
[0108] The translation and rotation invariant measurement assumption is that during the translation and rotation of the point cloud, the modulus of the vector formed by any two points remains unchanged. Taking the modulus of equation (28), we can get:
[0109]
[0110] Since the noise is bounded: ||ε i ||≤β i 、||ε j ||≤β j ,||ε ij ||≤βi +β j =δ ij , then we can approximately get:
[0111]
[0112] If (p i ,q i ) constitutes an interior point, then is a zero vector, otherwise it is an arbitrary value; divide both sides of the above formula by We can get:
[0113]
[0114] From formula (31), we can see that: after using the translation and rotation invariant measurement assumption, model (27) is only related to the scale transformation factor s. Through the above two assumptions, we can see that: we only need to use the translation and rotation invariant measurement to obtain the scale estimate, and then obtain the rotation estimate based on the translation invariant measurement and the scale estimate, and finally substitute the scale estimate and the rotation estimate into formula (26) to obtain the translation estimate, thereby completing the solution of the point cloud registration problem based on truncated least squares; the output of this part is the rough registration result, that is, the rotation matrix R and the translation matrix t, which will be used as the input for the next step of fine registration.
[0115] In step (4) of estimating the transformation matrices of adjacent frames and next adjacent frames, the truncated least squares and semidefinite relaxation registration results are used as the initial estimation of the transformation matrix and input into the fine registration algorithm for further fine registration. In this embodiment, the point-to-plane iterative closest point (Point-to-plane ICP) algorithm is selected as the fine registration algorithm, and the cost function of the point-to-plane ICP algorithm is:
[0116]
[0117] Among them, v i is the normal vector of the tangent plane of the target point; the output of this part is the rigid body transformation matrix T of the adjacent frame i,i+1 , i = 1, 2, ..., N and the rigid body transformation matrix T of the next adjacent frame i,i+2 ,i=1,2,…,N, which will be used as the input for establishing the pose graph in the next step.
[0118] In step (5) of constructing the pose graph, the initial value of the pose node is determined based on the adjacent frame registration result; the adjacent frame registration result is the adjacent frame rigid body transformation matrix T i,i+1 , i = 1, 2, ..., N, the pose node is the pose matrix T of each point cloud i ,i=1,2,…,N, the calculation relationship between the two is:
[0119] T1=I4 (33)
[0120] T i =T i-1 ·T i-1,i ,i=2,3,…,N (34)
[0121] Where I4 is a 4th-order unit matrix. Formula (33) indicates that the first pose node is set as the unit matrix, which is used as the reference. Formula (34) indicates that the initial value of the pose node is the initial value of the previous pose node multiplied by the rigid body transformation matrix from the previous pose node to the pose node. The output of this part is the pose graph node T i ,i=1,2,…,N。
[0122] In step (6) pose graph optimization, based on the adjacent frame rigid body transformation matrix T i,i+1 , i = 1, 2, ..., N add adjacent frame constraint edges in the pose graph; add next adjacent frame constraint edges T based on the next adjacent frame rigid body transformation matrix i,i+2 ,i=1,2,…,N; add a loop constraint edge between the last pose node and the first pose node;
[0123] The neighbor frame constraint edge is essentially the error term shown in the following formula:
[0124]
[0125] Among them, T i and T i+1 are the poses of the i-th frame and the i+1-th frame respectively, T i,i+1 is the relative pose between the i-th frame and the i+1-th frame. In the graph optimization, the relative pose T of the adjacent frames i,i+1 has been obtained through the point cloud registration algorithm; T i -1 T i+1 The Lie algebraic form of the term is:
[0126]
[0127] Among them, ξ i and i+1 T i and T i+1 The corresponding Lie algebra is the optimization variable in the subsequent optimization, and has T i =exp(ξ i ) ∧ , T i+1 =exp(ξ i+1 ) ∧ , Indicates T i -1 The corresponding Lie algebra, and T i -1=exp((-ξ i ) ∧ );where ·^ symbol indicates converting the vector into an antisymmetric matrix, · ∨ The symbol represents the conversion of the antisymmetric matrix into a vector; in the graph optimization, the relative pose T i,i+1 It has been obtained through the point cloud registration algorithm, and its corresponding Lie algebra is denoted as ξ i,i+1 , so the error expression is for:
[0128] e i,i+1 =ln(exp((-ξ i,i+1 ) ∧ )·exp((-ξ i ) ∧ )exp(ξ i+1 ) ∧ ) ∨ (37)
[0129] Similarly, the next-neighbor frame error expression is for:
[0130]
[0131] Loop closure constraint error expression for:
[0132]
[0133] The output of this part is the three constraint edge error expressions e described in the pose graph i,i+1 、e i,i+2 and e N,1 , which is convenient for the next step to calculate the pose graph cost function.
[0134] In step (6) pose graph optimization, the cost function of the pose graph is defined as:
[0135]
[0136] The cost function F is a 6-dimensional vector, where the first three dimensions represent the translation error, the last three dimensions represent the rotation error, and Ω i is a preset information matrix, which represents the prediction of the correlation of the error terms corresponding to each element in e, and assigns different weights to each dimension of the error; the information matrix Ω i is a 6×6 diagonal matrix, and the main diagonal elements represent the optimization variables (t x ,t y ,t z ,r x ,r y ,r z), the larger the diagonal element value, the larger the weight of the corresponding optimization variable; in this embodiment, the information matrix is determined according to the noise size of the translation vector and the rotation vector, assuming that the noise of the translation vector is The noise of the rotation vector is Then the information matrix is:
[0137]
[0138] The cost function is iteratively solved until it converges to obtain the optimized pose T i O , i = 2, 3, ..., N; the estimated laser radar position trajectory before and after the optimization is as follows Figure 5 As shown in the figure, the results prove that graph optimization can effectively suppress the cumulative error of adjacent frame point cloud registration and improve the accuracy of pose estimation; the output of this part is the point cloud pose T after graph optimization i O ,i=2,3,…,N, which will be used as the input for the next step of 3D reconstruction.
[0139] In step (7) 3D reconstruction, the first frame point cloud pose is fixed to the unit matrix T1 O =I4, as a benchmark; the pose obtained after the pose graph is optimized is T i O , i = 2, 3, ..., N, which is actually the transformation matrix T of each point cloud relative to the first frame point cloud 1,i , i = 2, 3, ..., N; the three-dimensional reconstruction is based on T 1,i , i=2,3,…,N transform all point clouds to the first frame point cloud coordinate system, that is, for each frame point cloud P i ,i=2,3,…,N make the following transformations:
[0140]
[0141] Among them, P i T is the transformed point cloud; the output of this part is the set P of transformed point clouds i T , i = 1, 2, 3, ..., N, i.e., a 3D reconstruction model; in this embodiment, the tower and the transport vehicle are respectively used as targets for 3D reconstruction, and the collected multi-view point clouds and the corresponding 3D reconstruction results are shown in FIG. Figure 6 shown.
[0142] In this embodiment, the simulation point cloud is generated by using Blensor software, and the CAD models of the transport vehicle and the tower are imported into Blensor. The sensor is a Velodyne HDL 64E2 laser radar. The distance between the laser radar and the target is 30m, the resolution of the laser radar is 264×216, and the field of view is 43.6°×34.6°. The laser radar is made to move in a circle around the target, and a frame of point cloud is collected every 25°. 15 frames of point cloud are collected for each target. In order to verify the accuracy of the proposed 3D reconstruction method under different sensor noises, this embodiment tests the 3D reconstruction accuracy of point clouds under 20 different noise standard deviations, and uses Blensor software to add Gaussian noise to the point cloud, where the mean of the Gaussian noise is 0, the standard deviation range is 0-20cm, and the step is 1cm. There are 15 frames of point clouds under each noise standard deviation as the input of the 3D reconstruction algorithm. For the input multi-view point cloud sequence, the SHOT feature descriptor is calculated, and the feature descriptor calculation radius is 300 times the point cloud resolution. The point cloud resolution calculation formula is:
[0143]
[0144] Where n represents the number of points in the point cloud, d i represents the distance between each point in the point cloud and its nearest neighbor. According to formula (43), the average resolution of the 15 frames of point cloud used in this embodiment is 2.08 cm, so the radius r of the feature descriptor is taken as 624.00 cm. The matching pairs are determined by mutual search.
[0145] Using TEASER coarse registration combined with point-to-surface ICP fine registration method, calculate the adjacent frame transformation matrix and the next adjacent frame transformation matrix; based on the adjacent frame transformation matrix, calculate the point cloud pose of each frame according to equations (33) and (34), initialize the pose graph nodes, and add adjacent frame constraint edges; add loop constraint edges between the point clouds of the 15th frame and the 1st frame; add next adjacent frame constraint edges according to the next adjacent frame transformation matrix; calculate the cost function of the pose graph, optimize it using the LM algorithm, and obtain the optimized point cloud pose; take the pose provided by Blensor as the true value, respectively. The pose errors before and after optimization are calculated according to equations (19) and (20). When the noise standard deviation is 0, the pose errors of each frame point cloud are shown in Table 1. As the frame number increases, the translation error before optimization continues to increase, and the rotation error also shows an overall growth trend, indicating that there is a cumulative error in the registration of adjacent frame point clouds before image optimization; after image optimization, the cumulative error is suppressed, the registration error of the point cloud with a large frame number is significantly reduced, and the error of the registration results of some frame numbers with a small frame number is slightly increased, indicating that the image optimization evenly distributes the cumulative error to each frame point cloud, reducing the overall pose error;
[0146] Table 1. Pose error of noise-free point cloud image before and after optimization
[0147]
[0148] The pose errors before and after pose graph optimization under different noise conditions are shown in Table 2. When the sensor noise standard deviation ranges from 0 cm to 20 cm, both the rotation error and the translation error are reduced after optimization, indicating that pose graph optimization has a significant effect on improving pose accuracy and is robust to point cloud noise.
[0149] Table 2 Different noise standard deviations Figure 2 Posture errors before and after optimization
[0150]
[0151] According to the optimized pose, all point clouds are transformed into the coordinate system of the first frame to achieve 3D reconstruction of the target multi-view point cloud. In this embodiment, the chamfer distance is used to evaluate the accuracy of the 3D reconstruction model, which is defined as:
[0152]
[0153] Among them, S R For 3D reconstruction of point cloud, S G is the true value point cloud of the model, || represents the number of point cloud points, and ||||2 represents the vector norm. The smaller the chamfer distance is, the smaller the distance between the 3D reconstructed model and the real model is, and the better the reconstruction effect is;
[0154] The reconstructed chamfer distances before and after optimization under different noise standard deviations are shown in Table 3. The test results show that under different noise standard deviations, graph optimization can improve the reconstruction accuracy. When the noise standard deviation is less than or equal to 12 cm, the average improvement is 1.40×10 - 2 cm; when the noise standard deviation is between 13cm and 18cm, the average improvement is 0.21cm, which verifies the effectiveness of the proposed 3D reconstruction method.
[0155] Table 3 3D reconstruction accuracy under different noise standard deviations
[0156]
[0157] The above is only a basic scheme of the specific implementation method of the present invention, but the protection scope of the present invention is not limited thereto. Any changes and substitutions that can be thought of by any person familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. All changes that fall within the equivalent meaning and scope of the claims will be included in the scope of the claims.
Claims
1. A point cloud 3D reconstruction method based on next-neighbor frame constrained pose graph optimization, characterized in that: The pose estimation accuracy is enhanced by the next-neighboring frame constraint to achieve high-precision 3D reconstruction; the point cloud 3D reconstruction method with the next-neighboring frame constraint pose graph optimization includes point cloud registration and pose graph optimization; the point cloud registration provides a basis for establishing a pose graph by calculating the rigid body transformation pose matrix between two frames of point clouds; the point cloud registration step includes feature descriptor calculation, matching pair calculation, and transformation matrix estimation; the pose graph includes graph nodes and constraint edges, the graph nodes are single-frame point cloud pose matrices, the constraint edges are rigid body transformation matrices between two frames of point clouds, and the constraint edges include adjacent frame constraint edges and next-neighboring frame constraint edges , loop constraint edge; the adjacent frame constraint edge is the transformation matrix constraint between two adjacent frames of point clouds in the pose graph; the next adjacent frame constraint edge is the transformation matrix constraint between two frames of point clouds separated by one frame in the pose graph, which is used to improve the robustness of the pose graph; the loop constraint edge is the transformation matrix constraint constructed by the closed loop of the last frame of point cloud and the first frame of point cloud, which is used to improve the pose estimation accuracy of continuous multi-frame point clouds; through the pose graph optimization method, the cumulative error of adjacent frame point cloud registration is reduced, the overall point cloud pose error is reduced, and all point clouds are transformed into a unified coordinate system using the optimized point cloud pose to obtain a reconstructed target model; The point cloud pose matrix T is a 4×4 matrix, which is composed of the rotation matrix R and the translation vector t of the point cloud relative to the reference coordinate system; the pose error includes the rotation error e rot and translation error e tra , which is defined as: Among them, T is the estimated value of the pose matrix, T G is the true value of the pose matrix, ΔR is the residual of the rotation matrix R, Δt is the residual of the translation vector t, tr(·) represents the trace of the matrix, and ||·|| represents the second norm of the vector; the cumulative error refers to the existence of a small error in the registration of adjacent frames of the point cloud, which leads to the gradual accumulation of errors during reconstruction and the gradual increase of the pose error; The point cloud 3D reconstruction method comprises the following steps: (1) Acquisition of multi-view target point cloud: An active 3D imaging sensor is used to acquire multi-view target point cloud around the target. The active sensor moves in a circle around the target, scanning a frame of point cloud every M°. The sensor moves at least one circle, and a total of N frames of point cloud are acquired. (2) Feature descriptor calculation: perform voxel downsampling on the multi-view point cloud to compress the data volume and improve the calculation speed; calculate the feature descriptor for each point in the downsampled point cloud; the feature descriptor describes the feature point by establishing a local coordinate system at the feature point and combining the spatial position information or geometric feature statistics of the neighborhood points. The basic idea is to establish a local coordinate system based on the neighborhood points, and then encode the geometric features of each point into a histogram to obtain a three-dimensional descriptor. The point cloud feature descriptor is essentially a vector. (3) Determining matching pairs: Based on the point cloud feature descriptor, matching pairs are calculated by mutual search. The two frames of point clouds to be registered are respectively referred to as source point cloud and target point cloud. For a point in the source point cloud, the point with the smallest Euclidean distance to the feature descriptor of the point is searched in the target point cloud. For the corresponding point found in the target point cloud, the same search is performed again in the source point cloud. If a pair of spatial points in the source point cloud and the target point cloud are the same after the two searches, the pair of spatial points is regarded as a matching pair. (4) Estimation of transformation matrices of adjacent frames and next adjacent frames: Based on the calculation results of matching pairs, the transformation matrix is estimated by combining a truncated least squares cost function and a semidefinite relaxation method; the truncated least squares cost function enhances the robustness to erroneous matching pairs, and uses semidefinite relaxation to rewrite the non-convex problem of rotation estimation into a convex optimization problem, thereby improving the accuracy of 3D point cloud registration; the non-convex problem refers to the situation in which the objective function or constraint conditions have multiple local extreme points during the optimization process, making it difficult to find a global optimal solution and prone to falling into local extreme points; the convex optimization problem refers to the situation in which the objective function and constraint conditions have a unique global optimal solution during the optimization process, and attempts to find a global optimal solution; (5) Pose graph construction: Based on the estimation results of the adjacent frame transformation matrix, the pose matrix of each frame point cloud is calculated, and the pose graph nodes are initialized according to the pose matrix; based on the adjacent frame transformation matrix, adjacent frame constraint edges are added; based on the next adjacent frame transformation matrix, next adjacent frame constraint edges are added; for the last frame point cloud and the first frame point cloud, loop constraint edges are added, that is, the transformation matrix between the last frame point cloud and the first frame point cloud is the unit matrix, which means that the sensor returns to the initial position after circular motion; (6) Pose graph optimization: Calculate the cost function for the pose graph. Assuming that the pose graph has N nodes, define the relative pose Lie group expression of adjacent frames as follows: Among them, T i and T i+1 are the poses of the i-th frame and the i+1-th frame respectively, T i,i+1 is the relative pose between the i-th frame and the i+1-th frame. In the graph optimization, the relative pose T of the adjacent frames i,i+1 It has been obtained through the point cloud registration algorithm, so the error can be calculated by the following formula: Similarly, the next-neighbor frame error can be calculated as follows: Among them, T i,i+2 is the relative pose of the next adjacent frame; the loop error is: Among them, T N,1 is the relative pose between the last frame and the first frame; the cost function F is the sum of these three errors; the Levenberg-Marquardt algorithm is used for optimization, and the solution is iterated until the cost function converges to obtain the optimized point cloud pose T i O ,i=1,2,…,N; (7) Three-dimensional reconstruction: According to the optimized point cloud pose of the graph, all point clouds are aligned to the coordinate system of the first frame point cloud through rigid body transformation to obtain the reconstructed target model.
2. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The active sensor can be a laser radar or a ToF camera. The multi-view target point cloud is acquired by making the active sensor move in a circle around the target and finally return to the vicinity of the initial position, so that the last frame of point cloud and the first frame of point cloud can form a closed loop through point cloud registration. The output of this part is N frames of point clouds at different viewpoints.
3. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The feature descriptor calculation may select a Signature of Histogram of Orientation (SHOT) descriptor, a Point Feature Histogram (FPH) descriptor, or a Fast Point Feature Histogram (FPFH) descriptor; the feature descriptor calculation steps are as follows: 1) The point in the point cloud where the feature descriptor is to be calculated is called the query point. For each query point p in the point cloud, the covariance matrix M of the point neighborhood is constructed: Among them, r represents the neighborhood radius, p is the query point, and p i is a point in the neighborhood, d i For p i The distance from p; 2) By performing singular value decomposition on the covariance matrix, its eigenvalues and corresponding eigenvectors are obtained, and the eigenvalues are arranged in descending order. The corresponding eigenvectors are the x, y, and z axes of the local coordinate system; 3) Calculate the geometric information such as the normal of the neighborhood point and the cosine value of the angle between the normal and the query point, and encode the geometric features of the neighborhood points into the histogram to form a feature descriptor, which is essentially a K-dimensional vector. Assume that the set of query points in the point cloud is P = {p i ,i=1,2,…,m}, the calculation result is the feature descriptor set The output of this part is the feature descriptor calculation result D, which will be used as the input for the next step of matching pair determination.
4. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The matching pair is determined based on the feature descriptor calculation result, assuming that the source point cloud is P = {p i ,i=1,2,…,m}, the corresponding feature descriptor is The target point cloud is Q = {q i ,i=1,2,…,m}, the corresponding feature descriptor is For a point p in the source point cloud i , and its corresponding feature descriptor is In the target point cloud feature descriptor D Q Inquiry and The feature descriptor with the smallest Euclidean distance The corresponding point q j For p i To improve the matching accuracy, a mutual search method is used, that is, for the preliminary corresponding point q j , in the source point cloud feature descriptor D P Perform the same search in , if the corresponding point found is also p i , then p i and q j Consider it as a matching pair; traverse the feature descriptor D P , and finally n matching pairs are obtained; in order to avoid the high time consumption caused by traversal search, a KD tree is established for the feature descriptors of the source point cloud and the target point cloud to accelerate the mutual search; the output of this part is n matching pairs between point clouds, which will be used as the input of the next step of coarse registration.
5. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: Assume that the source point cloud P = {p i ,i=1,2,…,n} and target point cloud Q={q i , i=1,2,…,n}, there are scale, translation, and rotation transformations between them, and the truncated least squares cost function is: Where s is the scale transformation factor, R is the rotation matrix, t is the translation matrix, n is the matching logarithm, β i is the maximum value of the measurement residual that can be tolerated in the i-th measurement, is a constant; through the truncated least squares cost function, a constant cost is assigned to the measurement value with a large residual, so that the transformation matrix estimation is insensitive to the measurement value with a large residual. The output of this part is the coarse alignment result, that is, the rotation matrix R and the translation matrix t, which will be used as the input for the next step of fine alignment.
6. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The truncated least squares and semidefinite relaxation registration results are used as the initial estimate of the transformation matrix and input into the fine registration algorithm for further fine registration; the fine registration algorithm can select the iterative closest point (ICP) algorithm or the point-to-plane ICP (ICP) algorithm; the cost function of the ICP algorithm is: Where T is the transformation matrix, n is the number of matching pairs, p i is a point in the source point cloud, q closest is the target point cloud with p i The point with the smallest Euclidean distance, ||·|| represents the bi-norm of the vector; The cost function of the point-surface ICP algorithm is: Among them, v i is the normal vector of the tangent plane of the target point; the output of this part is the rigid body transformation matrix T of the adjacent frame i,i+1 , i = 1, 2, ..., N and the rigid body transformation matrix T of the next adjacent frame i,i+2 ,i=1,2,…,N, which will be used as the input for establishing the pose graph in the next step.
7. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The pose graph is constructed, and the initial value of the pose node is determined based on the adjacent frame registration result; the adjacent frame registration result is the adjacent frame rigid body transformation matrix T i,i+1 ,i=1,2,…,N, the pose node is the pose matrix T i ,i=1,2,…,N, the calculation relationship between the two is: T1=I4 (11) T i =T i-1 ·T i-1,i ,i=2,3,…,N (12) Where I4 is a 4th-order unit matrix. Formula (11) indicates that the first pose node is set to the unit matrix as a reference. Formula (12) indicates that the initial value of the pose node is the initial value of the previous pose node multiplied by the rigid body transformation matrix from the previous pose node to the pose node. The output of this part is the pose graph node T i ,i=1,2,…,N。 8. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The pose graph is constructed based on the rigid body transformation matrix T of the adjacent frame i,i+1 , i = 1, 2, ..., N add adjacent frame constraint edges in the pose graph; add next adjacent frame constraint edges T based on the next adjacent frame rigid body transformation matrix i,i+2 ,i=1,2,…,N; add a loop constraint edge between the last pose node and the first pose node; The neighbor frame constraint edge is essentially the error term shown in formula (4), where T i -1 T i+1 The Lie algebraic form of the term is: Among them, ξ i and i+1 T i and T i+1 The corresponding Lie algebra is the optimization variable in the subsequent optimization, and has T i =exp(ξ i ) ∧ , T i+1 =exp(ξ i+1 ) ∧ , Indicates T i -1 The corresponding Lie algebra, and T i -1 =exp((-ξ i ) ∧ );in· ∧ The symbol represents the transformation of a vector into an antisymmetric matrix. ∨ The symbol represents the conversion of the antisymmetric matrix into a vector; in the graph optimization, the relative pose T i,i+1 It has been obtained through the point cloud registration algorithm, and its corresponding Lie algebra is denoted as ξ i,i+1 , so the error expression is for: from i,i+1 =ln(exp((-ξ i,i+1 ) ∧ )·exp((-ξ i ) ∧ )exp(ξ i+1 ) ∧ ) ∨ (14) Similarly, the next-neighbor frame error expression is for: from i,i+2 =ln(exp((-ξ i,i+2 ) ∧ )·exp((-ξ i ) ∧ )exp(ξ i+2 ) ∧ ) ∨ (15) Loop closure constraint error expression for: e N,1 =ln(exp((-ξ N,1 ) ∧ )·exp((-ξ N ) ∧ )exp(ξ1) ∧ ) ∨ (16) The output of this part is the three constraint edge error expressions e described in the pose graph i,i+1 、e i,i+2 and e N,1 , which is convenient for the next step to calculate the pose graph cost function.
9. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The cost function of the pose graph is defined as: The cost function F is a 6-dimensional vector, where the first three dimensions represent the translation error, the last three dimensions represent the rotation error, and Ω i is a preset information matrix, which represents the prediction of the correlation of the error terms corresponding to each element in e, and assigns different weights to each dimension of the error; the information matrix Ω i is a 6×6 diagonal matrix, and the main diagonal elements represent the optimization variables (t x ,t y ,t z ,r x ,r y ,r z ), the larger the diagonal element value, the larger the weight of the corresponding optimization variable; the cost function is iteratively solved until it converges; the output of this part is the point cloud pose T after graph optimization i O ,i=1,2,…,N, which will be used as the input for the next step of 3D reconstruction.
10. The point cloud 3D reconstruction method based on next-neighboring frame constrained pose graph optimization according to claim 1, characterized in that: The first frame point cloud pose is fixed to the unit matrix I4 as a reference; the pose obtained after the pose graph is optimized is T i O , i = 2, 3, ..., N, which is actually the transformation matrix T of each point cloud relative to the first frame point cloud 1,i , i = 2, 3, ..., N; the three-dimensional reconstruction transforms all point clouds into the first frame point cloud coordinate system, that is, for each frame point cloud P i ,i=2,3,…,N make the following transformations: Among them, P i T is the transformed point cloud; the output of this part is the set P of transformed point clouds i T ,i=2,3,…,N, that is, the three-dimensional reconstructed model.
Citation Information
Patent Citations
High-precision low-drift large-range three-dimensional point cloud map construction and repositioning method
CN116399354A
Method and Apparatus for Pose Planar Constraining on the Basis of Planar Feature Extraction
US20210192271A1
Cited By
Multi-modal data perception fused large-scene space three-dimensional map reconstruction method
CN120088423A
Three-dimensional modeling system and robot
CN120580369A
A three-dimensional modeling system and robot
CN120580369B
Data matching method and device, equipment, storage medium and computer program product
CN120852813A
Self-supervision three-dimensional scene mapping method based on multi-view pose self-optimization
CN121236129A
