Convex hull-assisted three-dimensional point cloud registration method, device and medium based on FPFH
Through the FPFH feature and convex hull assistance method, three-dimensional point cloud registration is optimized, the problem of incomplete point cloud data acquisition is solved, registration efficiency and accuracy are improved, and data volume is reduced.
Patent Information
- Application Number
- CN202210148085.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-02-17
AI Technical Summary
The existing three-dimensional point cloud registration technology has large angle differences, resulting in incomplete acquisition of point cloud data, resulting in low registration efficiency and accuracy, especially due to the low proportion of effective corresponding points in the corresponding points concentration, which leads to Registration is difficult to achieve.
Using the convex hull-assisted three-dimensional point cloud registration method based on FPFH, the convex hull of the point cloud is calculated through the Quickhull algorithm, Poisson sampling and feature descriptor screening are performed, and the optimal transformation matrix is iteratively calculated using the k-d tree and RANSAC algorithm to optimize the corresponding points. Set selection and registration process.
The efficiency and accuracy of three-dimensional point cloud registration are improved, the error correspondence is eliminated, the proportion of effective corresponding point pairs is increased, the amount of data during three-dimensional reconstruction is reduced, and the registration efficiency is improved.
Smart Images

Figure CN114494379B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a convex hull-assisted three-dimensional point cloud registration method, device and medium based on FPFH. Background Art
[0002] At present, with the transformation of the manufacturing industry, intelligent manufacturing has higher and higher requirements for industrial robots. Traditional robots that realize single functions through programming will not be able to meet the needs of the manufacturing industry to develop in the direction of high efficiency and low cost. In many cases, we need industrial robots to have more advanced functions such as measurement, identification, analysis, and processing. Therefore, it has become an indispensable part to equip industrial robots with machine vision. Machine vision abandons the traditional measurement by contact and uses a non-contact measurement method. It not only solves the problem of being unable to directly contact the target object in some cases, but also avoids the absolute error that may be caused by improper operation during contact measurement. At the same time, for the problem that it is difficult to measure precise and complex objects, the measurement process is simplified and efficient, which plays a vital role in highly automated intelligent manufacturing production.
[0003] At the same time, with the development of machine vision in the industrial field, different visual technologies have been proposed according to actual needs and are also widely used in other fields. The description dimension of machine vision has also developed from two-dimensional images obtained by CCD cameras to three-dimensional images and three-dimensional information of objects obtained by depth cameras, structured light and other solutions. At the same time, these three-dimensional data can be processed to meet different needs. Point cloud data processing is one of them. Three-dimensional point clouds are widely used in many fields such as manufacturing, cultural relics protection, aerospace, virtual reality, 3D printing, medical science, film and television production, etc. Three-dimensional point cloud data can be obtained through depth cameras, laser radars, structured light and other methods. However, no matter which method is used, only partial point cloud images of three-dimensional target objects can be obtained. To obtain complete point cloud data of objects, three-dimensional point cloud registration technology is needed. Three-dimensional point cloud registration technology is the technical basis of point cloud data processing.
[0004] However, with the existing point cloud registration technology, when the angle difference when acquiring the point cloud data is large (such as 90 degrees), the obtained 3D point cloud data will be unable to be collected due to protrusions, blind spots, etc., and the number of points that can be used for correct matching in the overlapping areas between the point clouds is insufficient, resulting in fewer correct point pairs when directly using the FPFH feature descriptor of the point to match the corresponding points, which will make the final registration accuracy low, and thus require multiple registrations, which increases the uncertainty of the registration and reduces the efficiency of the registration.
[0005] It can be seen that there is an urgent need for an efficient and accurate FPFH-based convex hull-assisted 3D point cloud registration method. Summary of the invention
[0006] In view of this, the embodiments of the present disclosure provide a convex hull-assisted three-dimensional point cloud registration method, device and medium based on FPFH, which at least partially solve the problem of poor point cloud registration efficiency and accuracy in the prior art.
[0007] In a first aspect, an embodiment of the present disclosure provides a convex hull-assisted three-dimensional point cloud registration method based on FPFH, comprising:
[0008] Step 1: According to the source point cloud P and the target point cloud Q of the spatial target object, the convex hulls of the source point cloud P and the target point cloud Q are calculated using the Quickhull algorithm to obtain Q(P) and Q(Q);
[0009] Step 2: Perform Poisson sampling on the convex hull Q(P) and Q(Q) to obtain the point cloud P c and Q c Respectively represent the three-dimensional point cloud data of the convex hull Q(P) and Q(Q);
[0010] Step 3: Filter the point cloud P according to the preset conditions c and Q c The point in
[0011] Step 4: Filter the point cloud P c and Q c The points in the graph calculate their FPFH feature descriptors respectively and obtain F(P c )={F(p c ), p c ∈P c},F(Q c )={F(q c ), q c ∈Q c}, and construct the first kd tree according to the FPFH feature descriptor, where F(P c ) and F(Q c ) represent the filtered point clouds P c and Q c The FPFH feature descriptor, p c Represents the filtered point cloud P c The point in q c Represents the filtered point cloud Q c The point in
[0012] Step 5: For the filtered point cloud P c The feature descriptor F(P c ), in the point cloud Q c The first kd tree is used to query the FPFH feature descriptor F(q c), then P c and q c is a set of corresponding points, and the filtered point cloud P is obtained c Q c The corresponding point set K pqc , and, similarly, the filtered point cloud Q is obtained c P c The corresponding point set K qpc , select the corresponding point set K pqc and K qpc The point pairs included at the same time establish the corresponding point set K c ;
[0013] Step 6: According to the corresponding point set K c , the RANSAC algorithm is used to iteratively calculate the optimal transformation matrix T c ;
[0014] Step 7: Calculate the FPFH feature descriptors of the points in the source point cloud P and the target point cloud Q respectively, obtain F(P)={F(p), p∈P}, F(Q)={F(q), q∈Q} and construct a second kd tree for the FPFH feature descriptors of the point clouds, where F(P) and F(Q) represent the FPFH feature descriptors of P and Q respectively, where p represents a point in the source point cloud P, and q represents a point in the target point cloud Q;
[0015] Step 8: For each point in the source point cloud P, the feature descriptor F(P i ), in the target point cloud Q, the FPFH feature descriptor F(q) most similar to the point is searched through the second kd tree, then p and q are a set of corresponding points, and the corresponding point set K of the source point cloud P to Q is obtained pq , and similarly, the corresponding point set K of the target point cloud Q to P is obtained qp , select the corresponding point set K pq and K qp The point pairs included at the same time establish the corresponding point set K;
[0016] Step 9: Optimal transformation matrix T c Filtering the corresponding point set K, obtaining a new point set by filtering, and verifying the new point set;
[0017] Step 10: Using the new point set, the RANSAC algorithm is used to iteratively obtain the optimal transformation matrix T, and a preset number of iterations are performed, and the sampling process of each iteration is the same as step 6, to obtain the relationship transformation matrix between the source point cloud P and the target point cloud Q, and the source point cloud P is transformed by the relationship transformation matrix to obtain the alignment result.
[0018] According to a specific implementation method of the embodiment of the present disclosure, in step 3, the preset condition is: for the point cloud P c Point p in c , the source point cloud P has point p belonging to p c In a sphere with a radius R as the center, similarly, for the point cloud Q c Point q in c , the target point cloud Q has point q belonging to q c Inside a sphere with a radius of R as the center, that is:
[0019]
[0020] Among them, R is the set distance threshold.
[0021] According to a specific implementation of the embodiment of the present disclosure, step 6 includes:
[0022] In the corresponding point set K c Randomly select 3 pairs of corresponding points to establish point set K cn , and then use the point set K cn Calculate the initial transformation matrix T by the Umeyama algorithm ci ;
[0023] Evaluate the initial transformation matrix T ci The fitness and average error of the transformation matrix of the transformation matrix, when the average error of the fitness of the initial transformation matrix meets the preset conditions, the optimal transformation matrix T is updated c =T ci .
[0024] According to a specific implementation of the embodiment of the present disclosure, in step 9, the points in the corresponding point set K that meet the screening condition are retained to obtain a new point set, wherein the screening condition is
[0025]
[0026] Among them, r is the screening threshold.
[0027] In a second aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0028] at least one processor; and,
[0029] a memory communicatively connected to the at least one processor; wherein,
[0030] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the FPFH-based convex hull-assisted three-dimensional point cloud registration method in the aforementioned first aspect or any implementation of the first aspect.
[0031] In the third aspect, the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the FPFH-based convex hull-assisted three-dimensional point cloud registration method in the aforementioned first aspect or any implementation of the first aspect.
[0032] In a fourth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the FPFH-based convex hull-assisted three-dimensional point cloud registration method in the aforementioned first aspect or any implementation of the first aspect.
[0033] The convex hull-assisted three-dimensional point cloud registration scheme based on FPFH in the embodiment of the present disclosure includes: step 1: according to the source point cloud P and the target point cloud Q of the spatial target object, the convex hull of the source point cloud P and the target point cloud Q are calculated using the Quickhull algorithm to obtain Q(P) and Q(Q); step 2: Poisson sampling is performed on the convex hulls Q(P) and Q(Q) to obtain the point cloud P c and Q c Respectively represent the three-dimensional point cloud data of the convex hull Q(P) and Q(Q); Step 3: Filter the point cloud P according to the preset conditions c and Q c Points in; Step 4: For the filtered point cloud P c and Q c The points in the graph calculate their FPFH feature descriptors respectively and obtain F(P c )={F(p c ), p c ∈P c},F(Q c )={F(q c ), q c ∈Q c}, and construct the first kd tree according to the FPFH feature descriptor, where F(P c ) and F(Q c ) represent the filtered point clouds P c and Q c The FPFH feature descriptor, p c Represents the filtered point cloud P c The point in q cRepresents the filtered point cloud Q c Points in; Step 5: For the filtered point cloud P c The feature descriptor F(P c ), in the point cloud Q c The first kd tree is used to query the FPFH feature descriptor F(q c ), then P c and q c is a set of corresponding points, and the filtered point cloud P is obtained c Q c The corresponding point set K pqc , and, similarly, the filtered point cloud Q is obtained c P c The corresponding point set K qpc , select the corresponding point set K pqc and K qpc The point pairs included at the same time establish the corresponding point set K c ; Step 6: According to the corresponding point set K c , the RANSAC algorithm is used to iteratively calculate the optimal transformation matrix T c ; Step 7: Calculate the FPFH feature descriptors of the points in the source point cloud P and the target point cloud Q respectively, and obtain F(P) = {F(p), p∈P}, F(Q) = {F(q), q∈Q} and construct a second kd tree for the FPFH feature descriptors of the point cloud, where F(P) and F(Q) represent the FPFH feature descriptors of P and Q respectively, where p represents a point in the source point cloud P, and q represents a point in the target point cloud Q; Step 8: For the feature descriptor F(P) of each point in the source point cloud P, i ), in the target point cloud Q, the FPFH feature descriptor F(q) most similar to the point is searched through the second kd tree, then p and q are a set of corresponding points, and the corresponding point set K of the source point cloud P to Q is obtained pq , and similarly, the corresponding point set K of the target point cloud Q to P is obtained qp . Select the corresponding point set K pq and K qp The point pairs included at the same time establish the corresponding point set K; Step 9: Optimal transformation matrix T c Filter the corresponding point set K, obtain a new point set through screening, and verify the new point set at the same time; Step 10: Utilize the new point set and adopt the RANSAC algorithm to iteratively obtain the optimal transformation matrix T, perform a preset number of iterations and the sampling process of each iteration is the same as step 6, obtain the relationship transformation matrix between the source point cloud P and the target point cloud Q, and transform the source point cloud P through the relationship transformation matrix to obtain the alignment result.
[0034] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, the three-dimensional point cloud data and its convex hull are effectively combined, which optimizes the problem of difficulty in registration caused by the low ratio of effective corresponding points in the corresponding point set;
[0035] The transformation matrix calculated by the convex hull of the three-dimensional point cloud is used to screen the corresponding point set established by the eigenvalue, effectively eliminating the wrong corresponding relationship, increasing the proportion of valid corresponding point pairs, and improving the efficiency of subsequent registration;
[0036] The convex hull is used to assist the registration, and the characteristics of the convex hull are used to describe the external features of the 3D point cloud data, which increases the angle when acquiring the 3D point cloud data and reduces the amount of data required for 3D reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A schematic diagram of a process flow of a convex hull-assisted three-dimensional point cloud registration method based on FPFH provided in an embodiment of the present disclosure;
[0039] Figure 2 A schematic diagram of the overall design of a registration method for a convex hull-assisted three-dimensional point cloud registration method based on FPFH provided in an embodiment of the present disclosure;
[0040] Figure 3 A schematic diagram of three-dimensional point cloud data provided by an embodiment of the present disclosure;
[0041] Figure 4 A schematic diagram of point cloud data of a convex hull provided in an embodiment of the present disclosure;
[0042] Figure 5 A schematic diagram of a point cloud data registration result of a convex hull provided in an embodiment of the present disclosure;
[0043] Figure 6 A schematic diagram of a three-dimensional point cloud data registration result provided by an embodiment of the present disclosure;
[0044] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0046] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0047] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0048] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0049] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0050] The embodiment of the present disclosure provides a convex hull-assisted three-dimensional point cloud registration method based on FPFH, which can be applied to the three-dimensional point cloud registration process of miracle vision scenes.
[0051] See also Figure 1 , is a flow chart of a convex hull-assisted three-dimensional point cloud registration method based on FPFH provided by an embodiment of the present disclosure. Figure 1 and Figure 2 As shown, the method mainly comprises the following steps:
[0052] Step 1: According to the source point cloud P and the target point cloud Q of the spatial target object, the convex hulls of the source point cloud P and the target point cloud Q are calculated using the Quickhull algorithm to obtain Q(P) and Q(Q);
[0053] In specific implementation, the three-dimensional point cloud data P and Q of the space target object can be used, such as Figure 3 As shown, (a) is the source point cloud P, and (b) is the target point cloud Q. Then, the convex hull of the point cloud data is calculated by the Quickhull algorithm, and Q(P) and Q(Q) are obtained to represent the convex hull of the source point cloud P and the target point cloud Q respectively. The steps of the Quickhull algorithm are as follows:
[0054] 1.1. If the convex hull to be calculated is three-dimensional, firstly, four points that are not on the same plane are randomly selected from the point cloud to form a simple complex, that is, a tetrahedron. Four hyperplanes are generated based on each face.
[0055] 1.2. For each hyperplane F, traverse all unvisited points p in the point cloud. If the point p is above the hyperplane, it will be stored in the external point set of F. Traverse all hyperplanes to obtain the external point set.
[0056] 1.3. For each hyperplane F whose external point set is not empty, select the farthest point p in the external point set of F, initialize the visible hyperplane set V to F, and for all unvisited adjacent hyperplanes N of all hyperplanes in V, if point p is above N, add N to the set V.
[0057] 1.4. The ridge set H is the boundary of the hyperplanes in the hyperplane set V. For each ridge R in H, construct a new hyperplane F' with R and p, and connect the new hyperplane with its adjacent hyperplanes.
[0058] 1.5. For each new hyperplane F', visit the point q in the external point set of each hyperplane in the hyperplane set V. If point q is above F', store it in the external point set of F'.
[0059] 1.6. Delete the hyperplane in V and repeat step 1.2 until all the external point sets of the hyperplane are empty, and obtain Q(P) and Q(Q) which represent the convex hulls of the source point cloud P and the target point cloud Q respectively. Figure 4 As shown, (a) is the convex hull of the source point cloud P, and (b) is the convex hull of the target point cloud Q.
[0060] Step 2: Perform Poisson sampling on the convex hull Q(P) and Q(Q) to obtain the point cloud P c and Q c Respectively represent the three-dimensional point cloud data of the convex hull Q(P) and Q(Q);
[0061] In a specific implementation, after obtaining the convex hulls Q(P) and Q(Q), Poisson sampling can be performed on the convex hulls Q(P) and Q(Q) to obtain the point cloud P c and Q c Respectively represent the three-dimensional point cloud data of the convex hull Q(P) and Q(Q). Of course, other sampling methods can also be used, which are not listed here.
[0062] Step 3: Filter the point cloud P according to the preset conditions c and Q c The point in
[0063] Optionally, the preset condition is: for the point cloud P c Point p in c , the source point cloud P has point p belonging to p c In a sphere with a radius R as the center, similarly, for the point cloud Q c Point q in c , the target point cloud Q has point q belonging to q c Inside a sphere with a radius of R as the center, that is:
[0064]
[0065] Among them, R is the set distance threshold.
[0066] For example, the point cloud P can be screened c and Q c For the point cloud P c and Q c The points in need to satisfy the following conditions:
[0067] For the point cloud P c Point p in ci , point cloud P has point p i Belong to p ci In the sphere with radius R as the center, similarly, for the point cloud Q c Point q in ci , the target point cloud Q has point q i Belong to q ci is inside a sphere with a radius of R as the center. That is:
[0068]
[0069] Wherein, R is the set distance threshold, R = 0.006m;
[0070] For the filtered point cloud P c and Q cThe normal line is calculated from the points in the figure, and the search radius when calculating the normal line is 0.005 m. Of course, the distance threshold and the search radius can be adjusted according to actual needs.
[0071] Step 4: Filter the point cloud P c and Q c The points in the graph calculate their FPFH feature descriptors respectively and obtain F(P c )={F(p c ), p c ∈P c},F(Q c )={F(q c ), q c ∈Q c}, and construct the first kd tree according to the FPFH feature descriptor, where F(P c ) and F(Q c ) represent the filtered point clouds P c and Q c The FPFH feature descriptor, p c Represents the filtered point cloud P c The point in q c Represents the filtered point cloud Q c The point in
[0072] In specific implementation, the filtered point cloud P c and Q c Calculate the FPFH feature descriptor respectively, with a search radius of 0.005m, and get F(P c )={F(p c ), p c ∈P c},F(Q c )={F(q c ), q c ∈Q c} respectively represent P c and Q c FPFH point features, where p ci represents a point in the three-dimensional point cloud Pc, q ci Represents a point in the three-dimensional point cloud Qc, and constructs the first kd tree for query based on the FPFH features of the point cloud.
[0073] Step 5: For the filtered point cloud P c The feature descriptor F(P c ), in the point cloud Q c The first kd tree is used to query the FPFH feature descriptor F(q c ), then P c and q cis a set of corresponding points, and the filtered point cloud P is obtained c Q c The corresponding point set K pqc , and, similarly, the filtered point cloud Q is obtained c P c The corresponding point set K qpc , select the corresponding point set K pqc and K qpc The point pairs included at the same time establish the corresponding point set K c ;
[0074] In specific implementation, for the filtered point cloud P c The feature descriptor F(P c ), in the point cloud Q c The first kd tree is used to query the FPFH feature descriptor F(q c ), then P c and q c is a set of corresponding points, and the filtered point cloud P is obtained c Q c The corresponding point set K pqc , and, similarly, the filtered point cloud Q is obtained c P c The corresponding point set K qpc , select the corresponding point set K pqc and K qpc The point pairs included at the same time establish the corresponding point set K c By effectively combining the 3D point cloud data with its convex hull, the registration problem caused by the low ratio of effective corresponding points in the corresponding point set is optimized. The point cloud data registration result of the convex hull is shown in Figure 5 shown.
[0075] Step 6: According to the corresponding point set K c , the RANSAC algorithm is used to iteratively calculate the optimal transformation matrix T c ;
[0076] Furthermore, the step 6 comprises:
[0077] In the corresponding point set K c Randomly select 3 pairs of corresponding points to establish point set K cn , and then use the point set K cn Calculate the initial transformation matrix T by the Umeyama algorithm ci ;
[0078] Evaluate the initial transformation matrix T ci The fitness and average error of the transformation matrix of the transformation matrix, when the average error of the fitness of the initial transformation matrix meets the preset conditions, the optimal transformation matrix T is updatedc =T ci .
[0079] For example, using the corresponding point set K c , the RANSAC algorithm is used to iteratively calculate the optimal transformation matrix T c , set the number of iterations to n, n is set to 100000, and the sampling process for each iteration is as follows:
[0080] a) In the corresponding point set K c Randomly select 3 pairs of corresponding points (p ci ,q ci ) Establish point set K cn , using the point set K cn The initial transformation matrix T is calculated by the Umeyama algorithm ci , the initial transformation matrix T ci It is used to describe the point set K cn Point Cloud P c and point cloud Q c The transformation relationship when the points are rigidly transformed, the initial transformation matrix T ci It is expressed as follows:
[0081]
[0082] Among them, R represents the rotation component matrix, and t represents the translation component matrix;
[0083] b) For the initial transformation matrix T ci , the following conditions must be met, otherwise the sampling will end:
[0084]
[0085] Among them, μ is the distance threshold parameter, μ = 0.005; τ is the ratio threshold parameter, τ = 0.9;
[0086] c) For the corresponding point set K c , all corresponding point pairs (p ci ,q ci ) Establish corresponding point set K ce :
[0087]
[0088] Evaluate the current initial transformation matrix T ci , the evaluation parameter is F ci and RMSE ci , respectively represent the fitness and average error of the transformation matrix, expressed as follows:
[0089]
[0090] Where card(·) represents the number of elements in the set.
[0091] If one of the following conditions is met:
[0092]
[0093] Update the optimal transformation matrix T c =T ci , and record the evaluation parameter F of the current transformation matrix c =F ci , RMSE c =RMSE ci .
[0094] After step 6, the optimal transformation matrix T is obtained. c .
[0095] Step 7: Calculate the FPFH feature descriptors of the points in the source point cloud P and the target point cloud Q respectively, obtain F(P)={F(p), p∈P}, F(Q)={F(q), q∈Q} and construct a second kd tree for the FPFH feature descriptors of the point clouds, where F(P) and F(Q) represent the FPFH feature descriptors of P and Q respectively, where p represents a point in the source point cloud P, and q represents a point in the target point cloud Q;
[0096] In specific implementation, the FPFH feature descriptors of the points in the source point cloud P and the target point cloud Q can be calculated respectively to obtain F(P)={F(p), p∈P}, F(Q)={F(q), q∈Q}, and F(P) and F(Q) are used to represent the FPFH feature descriptors of P and Q respectively, where p represents a point in the source point cloud P, and q represents a point in the target point cloud Q, and a second kd tree is constructed for the FPFH feature descriptors of the point cloud.
[0097] Step 8: For each point in the source point cloud P, the feature descriptor F(P i ), in the target point cloud Q, the FPFH feature descriptor F(q) most similar to the point is searched through the second kd tree, then p and q are a set of corresponding points, and the corresponding point set K of the source point cloud P to Q is obtained pq , and similarly, the corresponding point set K of the target point cloud Q to P is obtained qp , select the corresponding point set K pq and K qp The point pairs included at the same time establish the corresponding point set K;
[0098] In a specific implementation, after obtaining the second kd tree, for each point in the source point cloud P, the feature descriptor F(P i), the FPFH feature descriptor F(q) most similar to the point can be queried in the target point cloud Q through the second kd tree, then p and q are a set of corresponding points, and the corresponding point set K of the source point cloud P to Q is obtained pq , and similarly, the corresponding point set K of the target point cloud Q to P is obtained qp . Select the corresponding point set K pq and K qp The point pairs included at the same time establish the corresponding point set K.
[0099] Step 9: Optimal transformation matrix T c Filtering the corresponding point set K, obtaining a new point set by filtering, and verifying the new point set;
[0100] Optionally, in step 9, the points in the corresponding point set K that meet the screening condition are retained to obtain a new point set, wherein the screening condition is
[0101]
[0102] Among them, r is the screening threshold.
[0103] In specific implementation, after obtaining the corresponding point set K, the transformation matrix T can be obtained by computing the convex hull point cloud c The corresponding point set K is screened, and only those points that meet the following conditions are retained in the point set K:
[0104]
[0105] Among them, r is the screening threshold, r = 0.005m.
[0106] By screening, we get a new corresponding point set K e , and at the same time for the point set K e To verify:
[0107] For the corresponding point set K, all corresponding point pairs (p i ,q j ) Establish corresponding point set K e :
[0108]
[0109] Where τ is the ratio threshold parameter, τ = 0.9.
[0110]
[0111] Where γ is the proportional parameter, γ = 0.6,
[0112] When the above conditions are met, it is considered that the point set K e To be effective.
[0113] Step 10: Using the new point set, the RANSAC algorithm is used to iteratively obtain the optimal transformation matrix T, and a preset number of iterations are performed, and the sampling process of each iteration is the same as step 6, to obtain the relationship transformation matrix between the source point cloud P and the target point cloud Q, and the source point cloud P is transformed by the relationship transformation matrix to obtain the alignment result.
[0114] In specific implementation, after obtaining the new point set K e After that, the new point set K can be used e , the RANSAC algorithm is used to iteratively obtain the optimal transformation matrix T, and a preset number of iterations are performed, and the sampling process of each iteration is the same as step 6, to obtain the relationship transformation matrix between the source point cloud P and the target point cloud Q, and the source point cloud P is transformed by the relationship transformation matrix to obtain the registration result as shown in Figure 6 shown.
[0115] The convex hull-assisted 3D point cloud registration method based on FPFH provided in this embodiment optimizes the difficulty in registration caused by the low proportion of valid corresponding point pairs in the corresponding point set by effectively combining the 3D point cloud data and its convex hull; the transformation matrix obtained by calculating the convex hull of the 3D point cloud is used to screen the corresponding point set established by using the eigenvalues, effectively eliminating erroneous corresponding relationships, increasing the proportion of valid corresponding point pairs, and improving the efficiency of subsequent registration; the convex hull is used to assist the registration, and the characteristics of the convex hull are used to describe the external features of the 3D point cloud data, thereby increasing the angle for obtaining the 3D point cloud data and reducing the amount of data required for 3D reconstruction.
[0116] See also Figure 7 The embodiment of the present disclosure further provides an electronic device 70, which includes: at least one processor and a memory connected to the at least one processor. The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the convex hull-assisted three-dimensional point cloud registration method based on FPFH in the aforementioned method embodiment.
[0117] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the FPFH-based convex hull-assisted three-dimensional point cloud registration method in the aforementioned method embodiment.
[0118] The embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the FPFH-based convex hull-assisted three-dimensional point cloud registration method in the aforementioned method embodiment.
[0119] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device 70 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0120] like Figure 7 As shown, the electronic device 70 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 70 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0121] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication device 709 may allow the electronic device 70 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 70 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0122] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0123] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0124] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0125] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can execute the relevant steps of the method embodiment.
[0126] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can perform the relevant steps of the method embodiment.
[0127] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0128] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0129] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware.
[0130] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
[0131] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A convex hull-assisted three-dimensional point cloud registration method based on FPFH, characterized in that: include: Step 1: According to the source point cloud P and the target point cloud Q of the spatial target object, the convex hulls of the source point cloud P and the target point cloud Q are calculated using the Quickhull algorithm to obtain Q(P) and Q(Q); Step 2: Perform Poisson sampling on the convex hull Q(P) and Q(Q) to obtain the point cloud P c and Q c Respectively represent the three-dimensional point cloud data of the convex hull Q(P) and Q(Q); Step 3: Filter the point cloud P according to the preset conditions c and Q c The point in Step 4: Filter the point cloud P c and Q c The points in the graph calculate their FPFH feature descriptors respectively and obtain F(P c )={F(p c ), p c ∈P c },F(Q c )={F(q c ), q c ∈Q c }, and construct the first kd tree according to the FPFH feature descriptor, where F(P c ) and F(Q c ) represent the filtered point clouds P c and Q c The FPFH feature descriptor, p c Represents the filtered point cloud P c The point in q c Represents the filtered point cloud Q c The point in Step 5: For the filtered point cloud P c The feature descriptor F(P c ), in the point cloud Q c The first kd tree is used to query the FPFH feature descriptor F(q c ), then P c and q c is a set of corresponding points, and the filtered point cloud P is obtained c Q c The corresponding point set K pqc , and similarly, the filtered point cloud Q is obtained c P c The corresponding point set K qpc , select the corresponding point set K pqc and K qpc The point pairs included at the same time establish the corresponding point set K c ; Step 6: According to the corresponding point set K c , the RANSAC algorithm is used to iteratively calculate the optimal transformation matrix T c ; Step 7: Calculate the FPFH feature descriptors of the points in the source point cloud P and the target point cloud Q respectively, obtain F(P)={F(p), p∈P}, F(Q)={F(q), q∈Q} and construct a second kd tree for the FPFH feature descriptors of the point clouds, where F(P) and F(Q) represent the FPFH feature descriptors of P and Q respectively, where p represents a point in the source point cloud P, and q represents a point in the target point cloud Q; Step 8: For each point in the source point cloud P, the feature descriptor F(P i ), in the target point cloud Q, the FPFH feature descriptor F(q) most similar to the point is searched through the second kd tree, then p and q are a set of corresponding points, and the corresponding point set K of the source point cloud P to Q is obtained pq , and similarly, the corresponding point set K of the target point cloud Q to P is obtained qp , select the corresponding point set K pq and K qp The point pairs included at the same time establish the corresponding point set K; Step 9: Optimal transformation matrix T c Filtering the corresponding point set K, obtaining a new point set by filtering, and verifying the new point set; Step 10: Using the new point set, the RANSAC algorithm is used to iteratively obtain the optimal transformation matrix T, and a preset number of iterations are performed, and the sampling process of each iteration is the same as step 6, to obtain the relationship transformation matrix between the source point cloud P and the target point cloud Q, and the source point cloud P is transformed by the relationship transformation matrix to obtain the alignment result.
2. The method according to claim 1, characterized in that In step 3, the preset condition is: for the point cloud P c Point p in c , the source point cloud P has point p belonging to p c In a sphere with a radius R as the center, similarly, for the point cloud Q c Point q in c , the target point cloud Q has point q belonging to q c Inside a sphere with a radius of R as the center, that is: Among them, R is the set distance threshold.
3. The method according to claim 1, characterized in that , the step 6 comprises: In the corresponding point set K c Randomly select 3 pairs of corresponding points to establish point set K cn , and then use the point set K cn Calculate the initial transformation matrix T by the Umeyama algorithm ci ; Evaluate the initial transformation matrix T ci The fitness and average error of the transformation matrix of the transformation matrix, when the average error of the fitness of the initial transformation matrix meets the preset conditions, the optimal transformation matrix T is updated c =T ci .
4. The method according to claim 1, characterized in that In step 9, the points in the corresponding point set K that meet the screening condition are retained to obtain a new point set, where the screening condition is Among them, r is the screening threshold.
5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the FPFH-based convex hull-assisted three-dimensional point cloud registration method described in any one of claims 1 to 4.
6. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the FPFH-based convex hull-assisted three-dimensional point cloud registration method according to any one of claims 1 to 4.
