CN115049813B - Coarse registration method, device and system based on first-order spherical harmonics - Google Patents
Coarse registration method, device and system based on first-order spherical harmonics Download PDFInfo
- Publication number
- CN115049813B CN115049813B CN202210984806.3A CN202210984806A CN115049813B CN 115049813 B CN115049813 B CN 115049813B CN 202210984806 A CN202210984806 A CN 202210984806A CN 115049813 B CN115049813 B CN 115049813B
- Authority
- CN
- China
- Prior art keywords
- point cloud
- target point
- spherical
- original point
- original
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 239000011159 matrix material Substances 0.000 claims abstract description 57
- 230000005484 gravity Effects 0.000 claims abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 4
- 230000006870 function Effects 0.000 claims description 56
- 238000004364 calculation method Methods 0.000 claims description 30
- 239000013598 vector Substances 0.000 claims description 28
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 8
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 238000000354 decomposition reaction Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000009616 inductively coupled plasma Methods 0.000 description 2
- 241000287196 Asthenes Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010561 standard procedure Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
Landscapes
- Engineering & Computer Science (AREA)
- Architecture (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to the technical field of three-dimensional data processing, solves the technical problem of low registration speed caused by long running time of the conventional coarse registration method, and particularly relates to a coarse registration method based on first-order spherical harmonics, which comprises the following steps: respectively constructing a spherical model for the registered original point cloud and the target point cloud, and performing spherical harmonic expansion on the spherical model to obtain the spherical harmonic coefficient of the limited original point cloud and the spherical harmonic coefficient of the target point cloud; according to the first-order spherical harmonic function, the spherical harmonic coefficient of the original point cloud and the spherical harmonic coefficient of the target point cloud, the primary spherical harmonic ellipsoid of the original point cloud and the target point cloud and the main shaft direction of the corresponding primary spherical harmonic ellipsoid are calculated, the rotation matrix of the coarse registration of the original point cloud and the target point cloud is calculated, the gravity center is aligned, and the coarse registration can be realized by applying the rotation matrix. According to the invention, the rotation matrix for coarse registration can be rapidly and accurately obtained by adopting the first-order spherical harmonic function, so that the coarse registration efficiency is improved, and the method has an important significance for rapidly performing a coarse registration task.
Description
Technical Field
The invention relates to the technical field of three-dimensional data processing, in particular to a coarse registration method, a coarse registration device and a coarse registration system based on first-order spherical harmonics.
Background
Compared with two-dimensional image information, the three-dimensional point cloud can describe the geometric attributes of the object more accurately and intuitively, but when scanning is carried out, all information of the measured object cannot be obtained at one time, so that scanning needs to be carried out in batches, and therefore point cloud data of different position information are spliced together, and a coordinate system is a basic and key work. However, when the point cloud data of different position information are spliced and coordinates are unified, the coarse registration is usually performed first, and a better initial transformation matrix is provided for the fine registration later.
For a registration task, an ICP (inductively coupled plasma) algorithm and a derivative algorithm thereof are a standard method of the registration task for many years, but the algorithm is based on the nearest search of points and points, is easy to fall into local optimum in a state of poor coarse posture to cause registration error, is not stable enough, and has high calculation cost.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a coarse registration method, a device and a system based on first-order spherical harmonics, solves the technical problem of low registration speed caused by long running time of the conventional coarse registration method, and achieves the purposes of quickly performing coarse registration and improving the working efficiency of a registration task.
In order to solve the technical problems, the invention provides the following technical scheme: a coarse registration method based on first-order spherical harmonics comprises the following steps:
s1, acquiring original point cloud data and target point cloud data acquired by point cloud acquisition equipment;
s2, respectively constructing an original point cloud spherical model and a target point cloud spherical model according to the original point cloud data and the target point cloud data;
s3, calculating first spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
s4, respectively calculating primary spherical harmonic ellipsoids of the original point cloud and the target point cloud according to the first-order spherical harmonic function and the primary spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
s5, respectively calculating rotation matrixes of rough registration of the original point cloud and the target point cloud according to primary spherical harmonic ellipsoids of the original point cloud and the target point cloud;
and S6, carrying out coarse registration on the original point cloud and the target point cloud according to the rotation matrix of the coarse registration of the original point cloud and the target point cloud to obtain a registration result.
Further, the step S2 of respectively constructing the original point cloud spherical model and the target point cloud spherical model specifically includes the following steps:
s201, respectively calculating the gravity centers of the original point cloud and the target point cloud according to the original point cloud data and the target point cloud data, and respectively converting all points in the original point cloud and the target point cloud into a spherical coordinate system;
s202, constructing a unit ball according to the gravity centers of the original point cloud and the target point cloud, and dividing the spherical surface of the unit ball to create a grid;
and S203, calculating lattices to which each point in the original point cloud and the target point cloud belongs respectively, and assigning a value to each lattice.
Further, the assigning of each lattice in step S203 includes:
if the lattice contains point clouds, the value of the lattice is the average value of the distances from the middle point to the origin point of the lattice;
if there is no point cloud in the grid, the value of the grid is 0.
Further, step S4 specifically includes the following steps:
s401, respectively decomposing the grid density functions of the original point cloud spherical model and the target point cloud spherical model in the form of radial functions into function forms under a Cartesian coordinate system;
s402, respectively applying inverse spherical harmonic transformation according to the three components of the function form under the Cartesian coordinate system to obtain primary spherical harmonic ellipsoids of the original point cloud and the target point cloud.
Further, step S5 specifically includes the following steps:
s501, calculating corresponding characteristic values and characteristic vectors according to three vectors of primary spherical harmonic ellipsoids of the original point cloud and the target point cloud which are aligned with the main shaft respectively;
s502, respectively normalizing the first-order spherical harmonic ellipsoids of the original point cloud and the target point cloud to form a rotation matrix from a parameter space to an object space;
and S503, respectively calculating a rotation matrix of the original point cloud transformed to the intermediate state and a rotation matrix of the target point cloud transformed to the intermediate state according to the rotation matrix of the object space, wherein the intermediate state refers to the intermediate state of the original point cloud and the target point cloud.
The invention also provides a technical scheme that: a first-order spherical harmonic based coarse registration apparatus, comprising:
a data acquisition module for acquiring original point cloud data and target point cloud data acquired by a point cloud acquisition device;
the spherical model building module is used for respectively building an original point cloud spherical model and a target point cloud spherical model according to the original point cloud data and the target point cloud data;
the first computing module is used for computing the first-order spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
the second calculation module is used for calculating primary spherical harmonic ellipsoids of the original point cloud and the target point cloud according to the first-order spherical harmonic function and the primary spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
the third calculation module is used for calculating a rotation matrix of rough registration of the original point cloud and the target point cloud according to the primary spherical harmonic ellipsoid of the original point cloud and the target point cloud;
a registration module for performing coarse registration on the original point cloud and the target point cloud according to the rotation matrix of the coarse registration of the original point cloud and the target point cloud to obtain a registration result
Further, the spherical model building module comprises:
the coordinate conversion unit is used for respectively calculating the gravity centers of the original point cloud and the target point cloud according to the original point cloud data and the target point cloud data and respectively converting all points in the original point cloud and the target point cloud into a spherical coordinate system;
the grid creating unit is used for constructing a unit ball according to the gravity centers of the original point cloud and the target point cloud and dividing the spherical surface of the unit ball to create a grid;
and the lattice value calculating unit is used for calculating lattices to which each point in the original point cloud and the target point cloud belongs respectively and assigning values to each lattice.
Further, the second calculation module includes:
the function decomposition unit is used for decomposing the mesh density functions of the original point cloud spherical model and the target point cloud spherical model in the radial function form into function forms under a Cartesian coordinate system;
and the primary spherical harmonic ellipsoid calculation unit is used for respectively applying the inverse spherical harmonic transformation according to the three components of the function form under the Cartesian coordinate system to obtain the primary spherical harmonic ellipsoid corresponding to the original point cloud and the target point cloud.
Further, the third computing module comprises:
the characteristic value and characteristic vector calculating unit is used for calculating corresponding characteristic values and characteristic vectors according to three vectors of the primary spherical harmonic ellipsoids of the original point cloud and the target point cloud which are aligned with the main shaft respectively;
the rotation matrix calculation unit is used for forming a rotation matrix from a parameter space to an object space by respectively normalizing the feature vectors of the primary harmonic ellipsoids of the original point cloud and the target point cloud;
and the intermediate state conversion unit is used for respectively calculating a rotation matrix of the original point cloud transformed to the intermediate state and a rotation matrix of the target point cloud transformed to the intermediate state according to the rotation matrix of the object space.
The invention also provides another technical scheme: a system for realizing a coarse registration method based on first-order spherical harmonics comprises a point cloud acquisition device and a computer device;
the point cloud acquisition equipment is in data communication with computer equipment and is used for acquiring an original point cloud and a target point cloud;
the computer equipment comprises at least one processor and a memory, and is used for receiving the original point cloud and the target point cloud acquired by the point cloud acquisition equipment, and calling and operating a registration algorithm in the memory through the processor to perform rough registration processing on the input point cloud data.
By means of the technical scheme, the invention provides a coarse registration method, a coarse registration device and a coarse registration system based on first-order spherical harmonics, which at least have the following beneficial effects:
1. according to the method, the spherical models of the original point cloud and the target point cloud are constructed, the first-order spherical harmonic coefficients of the spherical models are respectively calculated, then the first-order spherical harmonic functions are combined, the rotation matrix of rough registration between the original point cloud and the target point cloud can be calculated, then the centers of gravity of the original point cloud and the target point cloud are aligned, and the rotation matrix of the rough registration is applied, so that the rough registration of the point cloud is conveniently realized, and the point cloud registration speed is improved.
2. According to the invention, the first-order spherical harmonic function is adopted to calculate the rotation matrix for coarse registration of the original point cloud and the target point cloud, so that the coarse registration error is reduced, the point cloud registration precision is improved, and the method has an important significance for quickly and accurately performing a coarse registration task.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a coarse registration method of the present invention;
FIG. 2 is a three-dimensional point cloud, a spherical model and a primary spherical harmonic ellipsoid of the present invention;
FIG. 3 is a flowchart of the method for constructing a spherical model according to the present invention;
FIG. 4 is a flow chart of the present invention for calculating primary spherical harmonic ellipsoids;
FIG. 5 is a flow chart of the present invention for computing a rotation matrix for coarse registration;
FIG. 6 is a schematic diagram of the coarse registration process based on primary ellipsoid according to the present invention;
FIG. 7 is a schematic block diagram of the coarse registration apparatus of the present invention;
FIG. 8 is a schematic block diagram of a spherical model building block in the coarse registration apparatus of the present invention;
FIG. 9 is a schematic block diagram of a second computing module in the coarse registration apparatus of the present invention;
FIG. 10 is a functional block diagram of a third computing module of the coarse registration apparatus of the present invention;
fig. 11 is a functional block diagram of the coarse registration system of the present invention.
In the figure: 10. a data acquisition module; 20. a spherical model construction module; 21. a coordinate conversion module; 22. a mesh creating unit; 23. a grid value calculation unit; 30. a first calculation module; 40. a second calculation module; 41. a function decomposition unit; 42. a first harmonic ellipsoid calculation unit; 50. a third calculation module; 51. a feature vector calculation unit; 52. a rotation matrix calculation unit; 53. an intermediate state transition unit; 60. and a registration module.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof. Therefore, the realization process of how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Referring to fig. 1 to fig. 6, a first-order spherical harmonic-based coarse registration method according to the present embodiment is shown, where the coarse registration is generally used for registering two point clouds whose initial relative positions are completely unknown, and as shown in fig. 1, the coarse registration method specifically includes the following steps:
s1, acquiring original point cloud data and target point cloud data acquired by point cloud acquisition equipment.
Specifically, by performing data acquisition using a common point cloud acquisition device such as a laser radar, a three-dimensional point cloud can be acquired as shown in fig. 2 (a).
In this embodiment, two original point cloud data and target point cloud data, of which any relative position is completely unknown, are acquired by a laser radar acquisition device, and the original point cloud data is set as a point set P having n points, that is, the point set P isThe target point cloud data is ofSet of points Q, i.e. of points。
S2, respectively constructing an original point cloud spherical model and a target point cloud spherical model according to the original point cloud data and the target point cloud data. As shown in fig. 3, the specific steps of constructing the original point cloud spherical model and the target point cloud spherical model are as follows:
(1) The method comprises the following steps of constructing an original point cloud spherical model according to original point cloud data, and specifically comprises the following steps:
s201, calculating the gravity center of the original point cloud according to the original point cloud data, and converting all points in the original point cloud into a spherical coordinate system.
In this embodiment, the center of gravity of the original point cloud is defined asThen, thenThen, firstly, the origin of the coordinate system of the original point cloud is translated to the gravity center of the original point cloudTo obtainThen, then;
Then will beObtained by converting a Cartesian coordinate system into a spherical coordinate systemAnd then:
S202, constructing a unit ball according to the gravity center of the original point cloud, and dividing the spherical surface of the unit ball to create a grid.
In this embodiment, assume that the band limit of the spherical function model is B, and the center of gravity of the original point cloud is usedConstructing a unit ball at the center of the ball, and establishing meshes for the spherical surface of the unit ball by adopting an equiangular mesh division method, namely respectively aiming at zenith anglesAnd azimuth angleDividing 2B parts at equal angles to create grids, dividing 2 Bx 2B grids in total, and the center of each grid is as follows:
where j and k are indices of the lattice.
It should be noted that, assuming that the band limit of the spherical function model is B, this means that the spherical harmonic coefficients are non-zero only in a limited frequency range, and the other coefficients outside the frequency are zero.
S203, calculating the grids to which each point in the original point cloud belongs, and assigning a value to each grid.
In this embodiment, each point in the original point cloud is first mapped to the center of gravity of the original point cloud in step S202And assigning the grids according to points in each grid in the grids divided on the spherical surface of the unit ball constructed for the spherical center.
If the point cloud exists in the grid, taking the average value of the distances from the middle point of the grid to the origin of the coordinate system as the value of the grid, namely:whereinis a function of the r coordinate value under the returned spherical coordinate system; if there is no point cloud in the grid, 0 is taken as the value of the grid.
After the series of operations, the spherical model of the original point cloud can be obtained as follows:
(2) The method for constructing the spherical model of the target point cloud is the same as the method for constructing the spherical model of the original point cloud according to the data of the target point cloud, therefore, the spherical model of the target point cloud can be obtained by adopting the same operation steps, and detailed description is not expanded.
In the present embodiment, an exemplary structure of the spherical model is shown in fig. 2 (b).
S3, calculating first spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
(1) Using spherical harmonic expansionTo calculate the original point cloud spherical modelFirst order spherical harmonic coefficient ofIn particular, first order spherical harmonic coefficientIs the attitude characteristic of the original point cloud in the frequency domain and the first-order spherical harmonic coefficientThe specific expression of (a) is as follows:
wherein,is the order of spherical harmonic function, m is the order of spherical harmonic function, and satisfiesAnd with,Is associated with a Legendre function, and has an interval of,Are weights.
(2) The method for calculating the first-order spherical harmonic coefficient of the target point cloud spherical surface model is the same as the method for calculating the first-order spherical harmonic coefficient of the original point cloud spherical surface model, therefore, the first-order spherical harmonic coefficient of the target point cloud spherical surface model can be obtained by adopting the same operation steps, and detailed description is not repeated.
And S4, respectively calculating primary spherical harmonic ellipsoids of the original point cloud and the target point cloud according to the first-order spherical harmonic function and the primary spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model. As shown in fig. 4, the specific steps of calculating the primary spherical harmonic ellipsoid of the original point cloud and the target point cloud are as follows:
(1) Calculating a first harmonic ellipsoid of the original point cloud according to the first harmonic function and the first harmonic coefficient of the spherical model of the original point cloud, and the specific steps are as follows:
s401, decomposing the grid density function of the original point cloud spherical model in the radial function form into a function form under a Cartesian coordinate system.
Specifically, the mesh density function of the original point cloud spherical model in the form of radial functionDecomposed into the functional form G in the cartesian coordinate system, then:
s402, respectively applying inverse spherical harmonic transformation according to the three components of the function form under the Cartesian coordinate system to obtain a primary spherical harmonic ellipsoid of the original point.
Specifically, a spherical harmonic inverse transformation is applied to three components of the functional form G in the cartesian coordinate system, and a three-dimensional ellipsoid corresponding to the object space is obtainedAnd then:
wherein the expression of M is as follows:
(2) The method for calculating the primary spherical harmonic ellipsoid of the target point cloud is the same as the method for calculating the primary spherical harmonic ellipsoid of the original point cloud, and therefore the primary spherical harmonic ellipsoid of the target point cloud can be obtained by adopting the same operation. In this embodiment, an exemplary structure of the first order spherical harmonic ellipsoid is shown in fig. 2 (c).
And S5, respectively calculating rotation matrixes of the rough registration of the original point cloud and the target point cloud according to the primary spherical harmonic ellipsoids of the original point cloud and the target point cloud. As shown in fig. 5, the specific steps of calculating the rotation matrices for the coarse registration of the original point cloud and the target point cloud respectively are as follows:
(1) Calculating a rotation matrix of the original point cloud transformed to the intermediate state according to the primary spherical harmonic ellipsoid of the original point cloud, and specifically comprising the following steps of:
s501, corresponding characteristic values and characteristic vectors are calculated according to three vectors of the primary spherical harmonic ellipsoid of the original point cloud, which are aligned with the main shaft.
In this embodiment, the primary spherical harmonic ellipsoid of the original point cloudThe three vectors aligned with the principal axis have the longest vectorsShortest vectorAnd a centered saddle point vectorBy calculatingThe eigenvalue and eigenvector of (2) can be obtained、、Respectively corresponding to the non-negative characteristic value。
S502, forming a rotation matrix from a parameter space to an object space by respectively normalizing the feature vectors of the first harmonic ellipsoids of the original point cloud.
In this embodiment, the primary spherical harmonic ellipsoid of the original point cloudNormalized eigenvectors form a rotation matrix of the parameter spaceA rotation matrix R to the object space, wherein the specific expression of R is as follows:
it should be noted that, the left-hand multiplication is half of the length of three main axes of the first harmonic ellipsoid of the diagonal elements of the diagonal matrix, and the main function is to normalize the main axis vector, so as to ensure that the rotation matrix R of the object space does not have the coordinate axis stretching effect, and the original point cloud can be rotated to a uniform intermediate state through the rotation matrix R of the object space.
S503, calculating a rotation matrix of the original point cloud transformed to the intermediate state according to the rotation matrix of the object space, wherein the intermediate state refers to the intermediate state of the original point cloud and the target point cloud.
In this embodiment, the intermediate state between the original point cloud and the target point cloud is defined asOThe method of step S502 is adopted to obtain the original point cloudPChange toOIs a rotation matrix of。
(2) According to the first spherical harmonic ellipsoid of the target point cloud, a method for calculating a rotation matrix of the target point cloud transformed to the intermediate state and a method for calculating a rotation matrix of the original point cloud transformed to the intermediate state are adopted, therefore, the same operation is adopted to obtain the target point cloudQChange toOIs a rotation matrix of。
And S6, carrying out coarse registration on the original point cloud and the target point cloud according to the rotation matrixes of the coarse registration of the original point cloud and the target point cloud to obtain a registration result.
Specifically, as shown in fig. 6, the original point cloud is first obtainedPTranslation ofTo obtainThen toUsing a rotation matrixThen is translated againObtaining the original point cloudPResult of the registration ofI.e. byTo further realize the original point cloudPTo target point cloudQCoarse registration of (3).
The present embodiment also provides a system for implementing the above coarse registration method based on first-order spherical harmonics, as shown in fig. 7 to 10, specifically including:
the data acquisition module 10, the data acquisition module 10 is used for acquiring the original point cloud data and the target point cloud data acquired by the point cloud acquisition equipment.
The spherical model building module 20, the spherical model building module 20 is used for respectively building an original point cloud spherical model and a target point cloud spherical model according to the original point cloud data and the target point cloud data; the spherical model building module 20 includes:
the coordinate conversion unit 21 is used for respectively calculating the gravity centers of the original point cloud and the target point cloud according to the original point cloud data and the target point cloud data and respectively converting all points in the original point cloud and the target point cloud into a spherical coordinate system;
the grid creating unit 22 is used for creating a unit ball according to the gravity centers of the original point cloud and the target point cloud, and dividing the spherical surface of the unit ball to create a grid;
and the lattice value calculating unit 23 is used for calculating lattices to which each point in the original point cloud and the target point cloud belongs respectively and assigning a value to each lattice.
The first calculating module 30, the first calculating module 30 is used for calculating the first order spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model.
The second calculation module 40 is used for calculating primary spherical harmonic ellipsoids of the original point cloud and the target point cloud respectively according to the first-order spherical harmonic function and the primary spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model; the second calculation module 40 includes:
the function decomposition unit 41 is used for decomposing the mesh density functions of the original point cloud spherical model and the target point cloud spherical model in the radial function form into function forms in a Cartesian coordinate system respectively;
the primary spherical harmonic ellipsoid calculation unit 42 is configured to apply inverse spherical harmonic transformation to the three components of the function form in the cartesian coordinate system, respectively, to obtain a primary spherical harmonic ellipsoid corresponding to the original point cloud and the target point cloud.
The third calculation module 50 is used for calculating rotation matrixes of rough registration of the original point cloud and the target point cloud respectively according to the primary spherical harmonic ellipsoids of the original point cloud and the target point cloud; the third calculation module 50 includes:
the characteristic vector calculation unit 51, the characteristic value and characteristic vector calculation unit 51 is used for calculating corresponding characteristic values and characteristic vectors according to three vectors of primary spherical harmonic ellipsoids of the original point cloud and the target point cloud which are respectively aligned with the main shaft;
the rotation matrix calculating unit 52, the rotation matrix calculating unit 52 is configured to form a rotation matrix from the parameter space to the object space by using the feature vectors obtained by respectively normalizing the first-order spheroids of the original point cloud and the target point cloud;
and the intermediate state conversion unit 53, wherein the intermediate state conversion unit 53 is used for respectively calculating a rotation matrix of the original point cloud transformed to the intermediate state and a rotation matrix of the target point cloud transformed to the intermediate state according to the rotation matrix of the object space.
And the registration module 60, wherein the registration module 60 is configured to perform coarse registration on the original point cloud and the target point cloud according to the rotation matrix of the coarse registration of the original point cloud and the target point cloud to obtain a registration result.
As shown in fig. 11, the present embodiment further provides a system for implementing the above-mentioned coarse registration method based on first-order spherical harmonics, which includes a point cloud acquisition apparatus 100 and a computer apparatus 200;
the point cloud collection device 100 establishes data communication with the computer device 200, and the point cloud collection device 100 is used for collecting an original point cloud and a target point cloud;
the computer device 200 includes at least one processor and a memory, and is configured to receive the original point cloud and the target point cloud acquired by the point cloud acquiring device 100, and perform a coarse registration process on the input point cloud data by using the processor to invoke and run a registration algorithm in the memory.
According to the embodiment, the spherical models of the original point cloud and the target point cloud are established and the first-order spherical harmonic coefficients of the spherical models are calculated respectively, then the first-order spherical harmonic function is combined, the rotation matrix of coarse registration between the original point cloud and the target point cloud can be calculated, then the centers of gravity of the original point cloud and the target point cloud are aligned and the rotation matrix of the coarse registration is applied, so that the coarse registration can be realized quickly and accurately, and the method has important significance for quickly performing a coarse registration task.
The present invention has been described in detail with reference to the foregoing embodiments, and the principles and embodiments of the present invention have been described herein with reference to specific examples, which are provided only to assist understanding of the methods and core concepts of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. A coarse registration method based on first-order spherical harmonics is characterized by comprising the following steps:
s1, acquiring original point cloud data and target point cloud data acquired by point cloud acquisition equipment;
s2, respectively constructing an original point cloud spherical model and a target point cloud spherical model according to the original point cloud data and the target point cloud data;
s3, calculating the original point cloud spherical model and the target point cloud spherical modelFirst order spherical harmonic coefficientThe specific expression is as follows:
wherein,is the order of spherical harmonic function, m is the order of spherical harmonic function, and satisfiesAnd,is associated with a Legendre function, and is associated with a Legendre function interval of,In order to be the weight of the weight,Bis the band-limit of the spherical function model,the model is a spherical model and is characterized in that,is a top corner angle, and the top corner angle,is the azimuth;
s4, respectively calculating primary spherical harmonic ellipsoids of the original point cloud and the target point cloud according to the first-order spherical harmonic function and the primary spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
s5, respectively calculating rotation matrixes of rough registration of the original point cloud and the target point cloud according to primary spherical harmonic ellipsoids of the original point cloud and the target point cloud;
s6, carrying out coarse registration on the original point cloud and the target point cloud according to the rotation matrix of the coarse registration of the original point cloud and the target point cloud to obtain a registration result;
wherein, step S5 specifically includes the following steps:
s501, calculating corresponding characteristic values and characteristic vectors according to three vectors of primary spherical harmonic ellipsoids of the original point cloud and the target point cloud respectively aligned with a main shaft;
s502, respectively normalizing the feature vectors of the primary spherical harmonic ellipsoids of the original point cloud and the target point cloud to form a rotation matrix from a parameter space to an object space;
and S503, respectively calculating a rotation matrix of the original point cloud transformed to the intermediate state and a rotation matrix of the target point cloud transformed to the intermediate state according to the rotation matrix of the object space, wherein the intermediate state refers to the intermediate state of the original point cloud and the target point cloud.
2. The coarse registration method according to claim 1, wherein the step of separately constructing the original point cloud spherical model and the target point cloud spherical model in step S2 specifically comprises the steps of:
s201, respectively calculating the gravity centers of the original point cloud and the target point cloud according to the original point cloud data and the target point cloud data, and respectively converting all points in the original point cloud and the target point cloud into a spherical coordinate system;
s202, constructing a unit ball according to the gravity centers of the original point cloud and the target point cloud, and dividing the spherical surface of the unit ball to create a grid;
and S203, calculating lattices to which each point in the original point cloud and the target point cloud belongs respectively, and assigning a value to each lattice.
3. The coarse registration method according to claim 2, wherein the assigning each grid in step S203 comprises:
if the lattice contains point clouds, the value of the lattice is the average value of the distances from the middle point to the origin point of the lattice;
if there is no point cloud in the grid, the value of the grid is 0.
4. Coarse registration method according to claim 1, characterized in that step S4 comprises in particular the steps of:
s401, respectively decomposing the grid density functions of the original point cloud spherical model and the target point cloud spherical model in the form of radial functions into function forms in a Cartesian coordinate system;
s402, respectively applying inverse spherical harmonic transformation according to the three components of the function form in the Cartesian coordinate system to obtain a primary spherical harmonic ellipsoid corresponding to the original point cloud and the target point cloud.
5. A first-order spherical harmonic-based coarse registration apparatus, comprising:
a data acquisition module (10), the data acquisition module (10) being used for acquiring original point cloud data and target point cloud data acquired by a point cloud acquisition device;
a spherical model construction module (20), wherein the spherical model construction module (20) is used for respectively constructing an original point cloud spherical model and a target point cloud spherical model according to the original point cloud data and the target point cloud data;
a first computing module (30), the first computing module (30) being used for computing the first order spherical harmonic coefficient of the original point cloud spherical model and the target point cloud spherical modelThe specific expression is as follows:
wherein,is the order of spherical harmonic function, and m is the order of spherical harmonic functionAnd,is associated with a Legendre function, and is associated with a Legendre function interval of,In order to be the weight, the weight is,Bis the band limit of the spherical function model,the model is a spherical model and is characterized in that,is a zenith angle, and is a vertex angle,is the azimuth;
the second computing module (40), the second computing module (40) is used for respectively computing primary spherical harmonic ellipsoids of the original point cloud and the target point cloud according to the first order spherical harmonic function and the primary spherical harmonic coefficients of the original point cloud spherical model and the target point cloud spherical model;
a third calculation module (50), wherein the third calculation module (50) is used for calculating rotation matrixes of rough registration of the original point cloud and the target point cloud respectively according to the first order sphero-harmonious ellipsoid of the original point cloud and the target point cloud;
a registration module (60), wherein the registration module (60) is used for carrying out coarse registration on the original point cloud and the target point cloud according to the rotation matrix of the coarse registration of the original point cloud and the target point cloud to obtain a registration result;
wherein the third calculation module (50) comprises:
the characteristic vector calculation unit (51), the characteristic vector calculation unit (51) is used for calculating corresponding characteristic values and characteristic vectors according to three vectors of the primary spherical harmonic ellipsoid of the original point cloud and the target point cloud which are respectively aligned with the main shaft;
the rotation matrix calculation unit (52), the rotation matrix calculation unit (52) is used for forming a rotation matrix from a parameter space to an object space for the feature vectors respectively normalized by the primary spherical harmonic ellipsoids of the original point cloud and the target point cloud;
and the intermediate state conversion unit (53) is used for respectively calculating a rotation matrix of the original point cloud transformed to the intermediate state and a rotation matrix of the target point cloud transformed to the intermediate state according to the rotation matrix of the object space.
6. Coarse registration apparatus according to claim 5, characterized in that the spherical model building module (20) comprises:
the coordinate conversion unit (21) is used for respectively calculating the gravity centers of the original point cloud and the target point cloud according to the original point cloud data and the target point cloud data and respectively converting all points in the original point cloud and the target point cloud into a spherical coordinate system;
the grid creating unit (22) is used for constructing a unit ball according to the gravity centers of the original point cloud and the target point cloud and dividing the spherical surface of the unit ball to create a grid;
and the grid value calculating unit (23) is used for calculating grids to which each point in the original point cloud and the target point cloud belongs respectively and assigning values to each grid.
7. Coarse registration device according to claim 5, characterized in that said second calculation module (40) comprises:
a function decomposition unit (41), wherein the function decomposition unit (41) is used for decomposing the mesh density functions of the original point cloud spherical model and the target point cloud spherical model in the form of radial functions into function forms under a Cartesian coordinate system;
the primary spherical harmonic ellipsoid calculation unit (42) is used for respectively applying spherical harmonic inverse transformation according to the three components of the function form under the Cartesian coordinate system to obtain a primary spherical harmonic ellipsoid corresponding to the original point cloud and the target point cloud.
8. A system for implementing the coarse registration method of any of the above claims 1-4, characterized by comprising a point cloud acquisition device (100) and a computer device (200);
the point cloud acquisition equipment (100) is in data communication with the computer equipment (200), and the point cloud acquisition equipment (100) is used for acquiring an original point cloud and a target point cloud;
the computer device (200) comprises at least one processor and a memory, and is used for receiving the original point cloud and the target point cloud acquired by the point cloud acquisition device (100), and performing coarse registration processing on the input point cloud data by calling and operating a registration algorithm in the memory through the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210984806.3A CN115049813B (en) | 2022-08-17 | 2022-08-17 | Coarse registration method, device and system based on first-order spherical harmonics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210984806.3A CN115049813B (en) | 2022-08-17 | 2022-08-17 | Coarse registration method, device and system based on first-order spherical harmonics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115049813A CN115049813A (en) | 2022-09-13 |
CN115049813B true CN115049813B (en) | 2022-11-01 |
Family
ID=83168326
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210984806.3A Active CN115049813B (en) | 2022-08-17 | 2022-08-17 | Coarse registration method, device and system based on first-order spherical harmonics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115049813B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115984338A (en) * | 2022-12-27 | 2023-04-18 | 上海科技大学 | Global registration method based on spherical harmonic transformation and iterative optimization |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106780592A (en) * | 2016-06-30 | 2017-05-31 | 华南理工大学 | Kinect depth reconstruction algorithms based on camera motion and image light and shade |
CN107884741A (en) * | 2017-10-30 | 2018-04-06 | 北京理工大学 | A kind of more broadband sound source fast orienting methods of more ball arrays |
CN113313741A (en) * | 2021-06-03 | 2021-08-27 | 广西大学 | Point cloud self-registration method based on calibration sphere |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2396448B (en) * | 2002-12-21 | 2005-03-02 | Schlumberger Holdings | System and method for representing and processing and modeling subterranean surfaces |
CN109255815B (en) * | 2018-08-30 | 2019-11-12 | 天津理工大学 | A kind of object detection and recognition methods based on order spherical harmonic |
CN114612534B (en) * | 2022-03-17 | 2023-04-07 | 南京航空航天大学 | Whole-machine point cloud registration method of multi-view aircraft based on spherical harmonic characteristics |
-
2022
- 2022-08-17 CN CN202210984806.3A patent/CN115049813B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106780592A (en) * | 2016-06-30 | 2017-05-31 | 华南理工大学 | Kinect depth reconstruction algorithms based on camera motion and image light and shade |
CN107884741A (en) * | 2017-10-30 | 2018-04-06 | 北京理工大学 | A kind of more broadband sound source fast orienting methods of more ball arrays |
CN113313741A (en) * | 2021-06-03 | 2021-08-27 | 广西大学 | Point cloud self-registration method based on calibration sphere |
Also Published As
Publication number | Publication date |
---|---|
CN115049813A (en) | 2022-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111508021B (en) | Pose determining method and device, storage medium and electronic equipment | |
CN112862972B (en) | Surface structure grid generation method | |
CN104778688A (en) | Method and device for registering point cloud data | |
US10957062B2 (en) | Structure depth-aware weighting in bundle adjustment | |
CN112328715B (en) | Visual positioning method, training method of related model, related device and equipment | |
CN113792730B (en) | Method and device for correcting document image, electronic equipment and storage medium | |
CN112767456B (en) | Three-dimensional laser point cloud rapid relocation method | |
WO2023030163A1 (en) | Method, apparatus and device for converting texture map of three-dimensional model, and medium | |
Choi et al. | Spherical conformal parameterization of genus-0 point clouds for meshing | |
CN109685841B (en) | Registration method and system of three-dimensional model and point cloud | |
CN115049813B (en) | Coarse registration method, device and system based on first-order spherical harmonics | |
CN105654483A (en) | Three-dimensional point cloud full-automatic registration method | |
CN102411794B (en) | Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform | |
WO2022116678A1 (en) | Method and apparatus for determining pose of target object, storage medium and electronic device | |
CN113470091B (en) | Hub point cloud registration method and device, electronic equipment and storage medium | |
CN114241018B (en) | Tooth point cloud registration method, system and readable storage medium | |
CN116309880A (en) | Object pose determining method, device, equipment and medium based on three-dimensional reconstruction | |
CN114612534A (en) | Whole-machine point cloud registration method of multi-view aircraft based on spherical harmonic characteristics | |
CN111612887B (en) | Human body measuring method and device | |
CN116977375A (en) | Scene three-dimensional point cloud registration method, equipment and medium based on Gaussian mixture model | |
CN116468761A (en) | Registration method, equipment and storage medium based on probability distribution distance feature description | |
CN112164101B (en) | Three-dimensional point cloud matching method and device | |
CN114119684B (en) | Marker point registration method based on tetrahedral structure | |
CN106548466A (en) | The method and apparatus of three-dimensional reconstruction object | |
CN114004947B (en) | Correction method and device for space target geometric model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |