CN109887013B - PCA-based point cloud registration final determination method and system - Google Patents
PCA-based point cloud registration final determination method and system Download PDFInfo
- Publication number
- CN109887013B CN109887013B CN201910031977.2A CN201910031977A CN109887013B CN 109887013 B CN109887013 B CN 109887013B CN 201910031977 A CN201910031977 A CN 201910031977A CN 109887013 B CN109887013 B CN 109887013B
- Authority
- CN
- China
- Prior art keywords
- point cloud
- matrix
- main direction
- registration
- final
- 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
Images
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses a point cloud registration final determination method and a point cloud registration final determination system based on PCA, wherein a translation matrix and a covariance orthogonal eigenvector matrix of two point clouds after the translation matrix is applied are calculated according to a classical PCA algorithm, then a coordinate system is established by respectively taking the maximum and second large vectors in the eigenvector matrix as a first main direction and a second main direction, then coordinate values of points of the two point clouds with the farthest distance from a coordinate origin in the two directions under the coordinate system are calculated, the coordinate values in the two directions are analyzed, when the multiplication of the coordinate values is less than zero, the main vectors in the directions of the two point clouds are reversed, otherwise, the final eigenvector matrix is obtained, a rotation matrix is calculated according to the final eigenvector matrix, and the point cloud registration is realized by applying the rotation matrix. By the method, whether the point cloud registration is correct or not does not need to be judged after the point cloud registration like the existing method, the final correct result can be directly determined to realize the point cloud registration, the registration operation is simplified, and the registration efficiency and the registration precision are improved.
Description
Technical Field
The invention relates to rough registration of point clouds, in particular to a point cloud registration final determination method and system based on PCA.
Background
With the rapid development of computer aided design, the point cloud and point cloud registration technology is a key step in industrial application. The point cloud registration is that one point cloud is overlapped with the other point cloud to the maximum extent by using coordinate transformation, and the registration speed and precision of the point cloud and the point cloud influence the subsequent other procedures. The current point cloud registration mainly comprises two forms of coarse registration and fine registration, wherein the coarse registration is the basis of the fine registration, and a PCA (principal component analysis) method in the coarse registration is the most common method. At present, point cloud registration by using a PCA method is mature, but when orthogonal feature vectors of two point clouds are obtained, the feature vectors have the possibility of reversal, and at this time, it is difficult to determine a final transformation matrix; the second method is to calculate the bounding boxes of two point clouds after the transformation matrix acts on the point clouds, finally calculate the contact ratio of the bounding boxes, determine the final transformation matrix if the contact ratio meets the requirement, or else, determine the final transformation matrix by reversing the original characteristic vector.
Disclosure of Invention
The invention mainly aims to provide a point cloud registration final determination method and a point cloud registration final determination system based on PCA (principal component analysis), so as to solve the problems of complexity and time consumption of a point cloud and point cloud registration method in the prior art.
The invention is realized by the following technical scheme:
a PCA-based point cloud registration final determination method comprises the following steps:
step 1: importing two point clouds P for registrationaAnd PbIn which P isbFor reference point clouds, PaThe point cloud is to be moved;
step 2: to point cloud PaObtaining point cloud P 'by using translation matrix T obtained by classical PCA method'aTwo point clouds P 'after translation matrix transformation'aAnd PbThe centers of the two are overlapped;
and step 3: respectively calculating point cloud P'aAnd PbOf the covariance orthogonal eigenvector matrix MaAnd MbWherein M isa=[Ma1,Ma2,Ma1×Ma2],Mb=[Mb1,Mb2,Mb1×Mb2];
And 4, step 4: the feature vector matrix MaAnd MbEstablishing a coordinate system by taking the maximum vector and the second large vector as a first main direction and a second main direction respectively;
and 5: respectively calculating point cloud P'aAnd point cloud PbThe coordinate values of the points with the maximum distance from the coordinate origin 0 in the first main direction and the second main direction in each coordinate system are respectively P'amax1、P′amax2And Pbmax1、Pbmax2;
Step 6: when P'amax1*Pbmax1When < 0, — Ma1As the final Ma1Is P'amax1*Pbmax1When > 0, M is maintaineda1Invariably, when P'amax2*Pbmax2When < 0, — Ma2As the final Ma2Is P'amax2*Pbmax2When > 0, M is maintaineda2The change is not changed;
and 7: m determined according to step 6a1、Ma2Through Ma1×Ma2Determining the third direction of the coordinate system and applying MaAnd MbTo calculate a final rotation matrix R;
and 8: to point cloud P'aUsing rotation matrix R to make point cloud P'aRotate to and with point cloud PbThe maximum overlapping is realized.
A PCA-based point cloud registration finalization system, comprising:
a point cloud importing module for importing two point clouds P for registrationaAnd PbIn which P isbFor reference point clouds, PaThe point cloud is to be moved;
translation transformation module for point cloud PaObtaining point cloud P 'by using translation matrix T obtained by classical PCA method'aTwo point clouds P 'after translation matrix transformation'aAnd PbThe centers of the two are overlapped;
a feature vector matrix calculation module for calculating point cloud P'aAnd PbOf the covariance orthogonal eigenvector matrix MaAnd MbWherein M isa=[Ma1,Ma2,Ma1×Ma2],Mb=[Mb1,Mb2,Mb1×Mb2];
A coordinate system creation module for creating the eigenvector matrix MaAnd MbEstablishing a coordinate system by taking the maximum vector and the second large vector as a first main direction and a second main direction respectively;
a coordinate calculation module for calculating point cloud P'aAnd point cloud PbThe coordinate values of the points with the maximum distance from the coordinate origin 0 in the first main direction and the second main direction in each coordinate system are respectively P'amax1、P′amax2And Pbmax1、Pbmax2;
A feature vector reverse module for when P'amax1*Pbmax1When < 0, — Ma1As the final Ma1Is P'amax1*Pbmax1When > 0, M is maintaineda1Invariably, when P'amax2*Pbmax2When < 0, — Ma2As the final Ma2Is P'amax2*Pbmax2When > 0, M is maintaineda2The change is not changed;
a rotation matrix calculation module for calculating M determined by the eigenvector reversal modulea1、Ma2Through Ma1×Ma2Determining the third direction of the coordinate system and applying MaAnd MbTo calculate a final rotation matrix R;
a registration module for registering point cloud P'aUsing rotation matrix R to make point cloud P'aRotate to and with point cloud PbThe maximum overlapping is realized.
Compared with the prior art, the method and the system for finally determining the point cloud registration based on the PCA provided by the invention comprise the steps of firstly calculating a translation matrix and a covariance orthogonal eigenvector matrix of two point clouds after applying the translation matrix according to a classical PCA algorithm, then respectively taking the maximum and second large vectors in the eigenvector matrix as a first main direction and a second main direction to create a coordinate system, then calculating coordinate values of points of the two point clouds with the farthest distances from coordinate origin points in the two directions under the coordinate system, analyzing the coordinate values in the two directions, and when the multiplication of the coordinate values is less than zero, indicating that the main vectors in the directions of the two point clouds are reversed, otherwise, obtaining a final eigenvector matrix, calculating a rotation matrix according to the main vectors, and applying the rotation matrix to realize the point cloud registration. By the method, whether the point cloud registration is correct or not does not need to be judged after the point cloud registration like the existing method, the final correct result can be directly determined to realize the point cloud registration, the registration operation is simplified, and the registration efficiency and the registration precision are improved.
Drawings
FIG. 1 is a schematic flow chart of a point cloud registration final determination method based on PCA according to an embodiment of the present invention;
FIG. 2 is two raw point clouds used for registration;
FIG. 3 is two point cloud locations that have undergone a translation transformation;
FIG. 4 is a diagram of the feature vector forming coordinate system possibilities;
FIG. 5 is point cloud P'aA point with the maximum distance from the origin of coordinates 0;
FIG. 6 is a point cloud PbA point with the maximum distance from the origin of coordinates 0;
FIG. 7 is two point cloud locations that have undergone a rotational transformation;
fig. 8 is a schematic diagram of the principle of composition of a PCA-based point cloud registration final determination system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the following embodiments and the accompanying drawings.
As shown in fig. 1, the method for final determination of point cloud registration based on PCA provided by the embodiment of the present invention includes:
step 1: importing two point clouds P for registrationaAnd PbIn which P isbFor reference point clouds, PaThe point cloud to be moved. FIG. 2 shows the point clouds PaAnd Pb。
Step 2: to point cloud PaObtaining point cloud P 'by using translation matrix T obtained by classical PCA method'aTwo point clouds P 'after translation matrix transformation'aAnd PbThe centers of which coincide. As shown in FIG. 3, the last two point clouds P 'of the translation matrix transformation'aAnd PbThe centers of (i.e., the cross symbol in fig. 3) coincide.
And step 3: respectively calculating point cloud P'aAnd PbOf the covariance orthogonal eigenvector matrix MaAnd MbWherein M isa=[Ma1,Ma2,Ma1×Ma2],Mb=[Mb1,Mb2,Mb1×Mb2]。
And 4, step 4: the feature vector matrix MaAnd MbThe medium maximum and second large vectors create a coordinate system as the first principal direction and the second principal direction, respectively. As shown in FIG. 4, by point cloud P'aFor example, by means of the eigenvector matrix Ma2 x 2 possibilities for creating a coordinate system, point cloud PbThe same is true.
And 5: respectively calculating point cloud P'aAnd point cloud PbThe coordinate values of the points with the maximum distance from the coordinate origin 0 in the first main direction and the second main direction in each coordinate system are respectively P'amax1、P′amax2And Pbmax1、Pbmax2As shown in fig. 5 and 6.
Step 6: when P'amax1*Pbmax1When < 0, — Ma1As the final Ma1Is P'amax1*Pbmax1When > 0, M is maintaineda1Invariably, when P'amax2*Pbmax2When < 0, — Ma2As the final Ma2Is P'amax2*Pbmax2When > 0, M is maintaineda2And is not changed.
And 7: m determined according to step 6a1、Ma2Through Ma1×Ma2Determining the third direction of the coordinate system and applying MaAnd MbTo calculate the final rotation matrix R.
And 8: to point cloud P'aUsing rotation matrix R to make point cloud P'aRotate to and with point cloud PbThe maximum overlapping is realized. As can be seen from fig. 7, after the rotation transformation, the two point clouds are overlapped to the maximum extent.
Based on the above method, an embodiment of the present invention further provides a PCA-based point cloud registration final determination system, as shown in fig. 8, the system includes:
a point cloud importing module 1 for importing two point clouds P for registrationaAnd PbIn which P isbFor reference point clouds, PaThe point cloud to be moved.
A translation transformation module 2 for point cloud PaObtaining point cloud P 'by using translation matrix T obtained by classical PCA method'aTwo point clouds P 'after translation matrix transformation'aAnd PbThe centers of which coincide.
A feature vector matrix calculating module 3 for calculating point clouds P'aAnd PbOf the covariance orthogonal eigenvector matrix MaAnd MbWherein M isa=[Ma1,Ma2,Ma1×Ma2],Mb=[Mb1,Mb2,Mb1×Mb2]。
A coordinate system creation module 4 for creating a feature vector matrix MaAnd MbThe medium maximum and second large vectors create a coordinate system as the first principal direction and the second principal direction, respectively.
A coordinate calculation module 5 for calculating point clouds P'aAnd point cloud PbThe coordinate values of the points with the maximum distance from the coordinate origin 0 in the first main direction and the second main direction in each coordinate system are respectively P'amax1、P′amax2And Pbmax1、Pbmax2。
Feature vector inverse Module 6, for when P'amax1*Pbmax1When < 0, — Ma1As the final Ma1Is P'amax1*Pbmax1When is greater than 0Maintenance of Ma1Invariably, when P'amax2*Pbmax2When < 0, — Ma2As the final Ma2Is P'amax2*Pbmax2When > 0, M is maintaineda2And is not changed.
A rotation matrix calculation module 7 for calculating M determined by the eigenvector reversal module 6a1、Ma2Through Ma1×Ma2Determining the third direction of the coordinate system and applying MaAnd MbTo calculate the final rotation matrix R.
A registration module 8 for registering the point cloud P'aUsing rotation matrix R to make point cloud P'aRotate to and with point cloud PbThe maximum overlapping is realized.
Each module in the system is configured to execute each step in the method, and specific reference may be made to the description of each step in the method, which is not described herein again.
The above-described embodiments are merely preferred embodiments, which are not intended to limit the scope of the present invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (2)
1. A point cloud registration final determination method based on PCA is characterized by comprising the following steps:
step 1: importing two point clouds P for registrationaAnd PbIn which P isbFor reference point clouds, PaThe point cloud is to be moved;
step 2: to point cloud PaObtaining point cloud P 'by using translation matrix T obtained by classical PCA method'aTwo point clouds P 'after translation matrix transformation'aAnd PbThe centers of the two are overlapped;
and step 3: respectively calculating point cloud P'aAnd PbOf the covariance orthogonal eigenvector matrix MaAnd MbWherein M isa=[Ma1,Ma2,Ma1×Ma2],Mb=[Mb1,Mb2,Mb1×Mb2];
And 4, step 4: the feature vector matrix MaCreating a coordinate system by taking the maximum vector and the second large vector as a first main direction and a second main direction respectively, and taking M asbEstablishing a coordinate system by taking the maximum vector and the second large vector as a first main direction and a second main direction respectively;
and 5: respectively calculating point cloud P'aAnd point cloud PbThe coordinate values of the point with the maximum distance from the coordinate origin O in the first main direction and the second main direction in the corresponding main direction in each coordinate system are respectively P'amax1、P′amax2And Pbmax1、Pbmax2;
Step 6: when P'amax1*Pbmax1<At 0, will be-Ma1As the final Ma1Is P'amax1*Pbmax1>At 0, maintain Ma1Invariably, when P'amax2*Pbmax2<At 0, will be-Ma2As the final Ma2Is P'amax2*Pbmax2>At 0, maintain Ma2The change is not changed;
and 7: m determined according to step 6a1、Ma2Through Ma1×Ma2Determining the third direction of the coordinate system and applying MaAnd MbTo calculate a final rotation matrix R;
and 8: to point cloud P'aUsing rotation matrix R to make point cloud P'aRotate to and with point cloud PbThe maximum overlapping is realized.
2. A PCA-based point cloud registration finalization system, comprising:
a point cloud importing module for importing two point clouds P for registrationaAnd PbIn which P isbFor reference point clouds, PaThe point cloud is to be moved;
translation transformation module for point cloud PaObtaining point cloud P 'by using translation matrix T obtained by classical PCA method'aTwo point clouds P 'after translation matrix transformation'aAnd PbThe centers of the two are overlapped;
feature(s)A vector matrix calculation module for calculating point cloud P'aAnd PbOf the covariance orthogonal eigenvector matrix MaAnd MbWherein M isa=[Ma1,Ma2,Ma1×Ma2],Mb=[Mb1,Mb2,Mb1×Mb2];
A coordinate system creation module for creating the eigenvector matrix MaCreating a coordinate system by taking the maximum vector and the second large vector as a first main direction and a second main direction respectively, and taking M asbEstablishing a coordinate system by taking the maximum vector and the second large vector as a first main direction and a second main direction respectively;
a coordinate calculation module for calculating point cloud P'aAnd point cloud PbThe coordinate values of the point with the maximum distance from the coordinate origin O in the first main direction and the second main direction in the corresponding main direction in each coordinate system are respectively P'amax1、P′amax2And Pbmax1、Pbmax2;
A feature vector reverse module for when P'amax1*Pbmax1<At 0, will be-Ma1As the final Ma1Is P'amax1*Pbmax1>At 0, maintain Ma1Invariably, when P'amax2*Pbmax2<At 0, will be-Ma2As the final Ma2Is P'amax2*Pbmax2>At 0, maintain Ma2The change is not changed;
a rotation matrix calculation module for calculating M determined by the eigenvector reversal modulea1、Ma2Through Ma1×Ma2Determining the third direction of the coordinate system and applying MaAnd MbTo calculate a final rotation matrix R;
a registration module for registering point cloud P'aUsing rotation matrix R to make point cloud P'aRotate to and with point cloud PbThe maximum overlapping is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910031977.2A CN109887013B (en) | 2019-01-14 | 2019-01-14 | PCA-based point cloud registration final determination method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910031977.2A CN109887013B (en) | 2019-01-14 | 2019-01-14 | PCA-based point cloud registration final determination method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109887013A CN109887013A (en) | 2019-06-14 |
CN109887013B true CN109887013B (en) | 2021-06-25 |
Family
ID=66925941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910031977.2A Active CN109887013B (en) | 2019-01-14 | 2019-01-14 | PCA-based point cloud registration final determination method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109887013B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2617218B (en) * | 2022-09-27 | 2024-04-10 | Imagination Tech Ltd | Ray tracing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106600639A (en) * | 2016-12-09 | 2017-04-26 | 江南大学 | Genetic algorithm and adaptive threshold constraint-combined ICP (iterative closest point) pose positioning technology |
CN108389256A (en) * | 2017-11-23 | 2018-08-10 | 千寻位置网络有限公司 | Two three-dimensional interactive unmanned plane electric force pole tower inspection householder methods |
CN108629835A (en) * | 2017-03-20 | 2018-10-09 | 哈尔滨工业大学 | Based on EO-1 hyperion, true coloured picture and the indoor method for reconstructing and system for putting cloud complementation |
CN108830902A (en) * | 2018-04-19 | 2018-11-16 | 江南大学 | A kind of workpiece identification at random and localization method based on points cloud processing |
WO2018224634A1 (en) * | 2017-06-08 | 2018-12-13 | Renault S.A.S | Method and system for identifying at least one moving object |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105551015A (en) * | 2015-12-02 | 2016-05-04 | 南京邮电大学 | Scattered-point cloud image registering method |
CN107301619A (en) * | 2017-05-27 | 2017-10-27 | 上海船舶工艺研究所 | A kind of point cloud registration method for hull structural member |
-
2019
- 2019-01-14 CN CN201910031977.2A patent/CN109887013B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106600639A (en) * | 2016-12-09 | 2017-04-26 | 江南大学 | Genetic algorithm and adaptive threshold constraint-combined ICP (iterative closest point) pose positioning technology |
CN108629835A (en) * | 2017-03-20 | 2018-10-09 | 哈尔滨工业大学 | Based on EO-1 hyperion, true coloured picture and the indoor method for reconstructing and system for putting cloud complementation |
WO2018224634A1 (en) * | 2017-06-08 | 2018-12-13 | Renault S.A.S | Method and system for identifying at least one moving object |
CN108389256A (en) * | 2017-11-23 | 2018-08-10 | 千寻位置网络有限公司 | Two three-dimensional interactive unmanned plane electric force pole tower inspection householder methods |
CN108830902A (en) * | 2018-04-19 | 2018-11-16 | 江南大学 | A kind of workpiece identification at random and localization method based on points cloud processing |
Non-Patent Citations (7)
Title |
---|
A robust and accurate automated registration method for turbine blade precision metrology;He, Wantao 等;《INTERNATIONAL JOURNAL OF ADVANCED MANUFACTURING TECHNOLOGY》;20180831;全文 * |
Registration method for three-dimensional point cloud in rough and fine registrations based on principal component analysis and iterative closest point algorithm;Tian, Heqiang 等;《TRAITEMENT DU SIGNAL》;20171231;全文 * |
基于改进 ICP 算法的点云自动配准技术;钟莹 等;《控制工程》;20140131;全文 * |
基于点云旋转归一化的猪体体尺测点提取方法;王可 等;《农业工程学报》;20170228;全文 * |
多特征零件非接触式尺寸检测中点云数据分析与处理方法;张慧慧;《中国优秀硕士学位论文全文数据库信息科技辑》;20170315;全文 * |
工业 CT 扫描模型与原始模型粗配准方法的研究;张荣 等;《现代制造工程》;20141231;全文 * |
工业CT重建模型与原始CAD模型粗配准的改进;段黎明 等;《计算机集成制造系统》;20130430;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109887013A (en) | 2019-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107220997B (en) | Stereo matching method and system | |
CN107358629B (en) | Indoor mapping and positioning method based on target identification | |
WO2021232941A1 (en) | Three-dimensional model generation method and apparatus, and computer device and storage medium | |
CN103632366A (en) | Parameter identification method for elliptical target | |
CN108305278B (en) | Image matching correlation improvement method in ORB-SLAM algorithm | |
CN112819871B (en) | Table image registration method based on straight line segmentation | |
CN112764004B (en) | Point cloud processing method, device, equipment and storage medium | |
Han et al. | An improved corner detection algorithm based on harris | |
Liu et al. | A torus patch approximation approach for point projection on surfaces | |
CN109887013B (en) | PCA-based point cloud registration final determination method and system | |
CN108010114B (en) | Geometric shape recognition method and feature recognition method for basic primitive point cloud curved surface | |
Wang et al. | Joint head pose and facial landmark regression from depth images | |
CN109410246A (en) | The method and device of vision tracking based on correlation filtering | |
CN115601430A (en) | Texture-free high-reflection object pose estimation method and system based on key point mapping | |
Cao et al. | Fast incremental structure from motion based on parallel bundle adjustment | |
CN110517299A (en) | Elastic image registration algorithm based on local feature entropy | |
CN106023314A (en) | B spline master curve fitting method based on rotary axis direction mapping | |
WO2018233318A1 (en) | Maze-solving method based on line-plane spatial relationship | |
WO2024082602A1 (en) | End-to-end visual odometry method and apparatus | |
WO2019047673A1 (en) | Method and device for evaluating longitudinal control model of end-to-end automatic driving system | |
Wan et al. | 6DOF object positioning and grasping approach for industrial robots based on boundary point cloud features | |
CN106056599B (en) | A kind of object recognition algorithm and device based on Object Depth data | |
CN101976446A (en) | Tracking method of multiple feature points of microscopic sequence image | |
CN116416608A (en) | Monocular three-dimensional real-time detection algorithm based on key points | |
CN103186711B (en) | Based on software cost appraisal procedure under non-orthogonal coordinate system |
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 |