Method for extracting laser point cloud characteristics

文档序号:1243123 发布日期:2020-08-18 浏览:6次 中文

阅读说明:本技术 一种激光点云特征的提取方法 (Method for extracting laser point cloud characteristics ) 是由 纪刚 朱慧 杨丰拓 安帅 柴琦 蒋云飞 于 2020-04-01 设计创作,主要内容包括:本发明公开了一种激光点云特征的提取方法,包括如下步骤:选取中心点P<Sub>c</Sub>,以该点为球心,r为半径,形成球形区域S<Sub>1</Sub>;求S<Sub>1</Sub>内所有邻域点组成的多面体的质心P<Sub>c</Sub>’的坐标;在S<Sub>1</Sub>内重新划分一个同心的球形区域S<Sub>2</Sub>,S<Sub>2</Sub>的半径小于球形区域S<Sub>1</Sub>的半径,并求S<Sub>2</Sub>内所有邻域点组成的多面体的质心P<Sub>c</Sub>”的坐标;在P<Sub>c</Sub>、P<Sub>c</Sub>’、P<Sub>c</Sub>”三个点组成的平面内建立坐标系,坐标系原点为P<Sub>c</Sub>点;将球形区域S<Sub>1</Sub>内所有点的坐标都转换到新建的坐标系下,然后将所有的邻域点分别和球心P<Sub>c</Sub>连接组成向量,将所有的向量进行矢量叠加,求得的矢量即为中心点P<Sub>c</Sub>的特征。本发明所公开的方法能够快速提取出点云的特征,并且对于初始值的选定不是非常敏感,提高了鲁棒性,对于不同场景具有较好的适应性。(The invention discloses a method for extracting laser point cloud characteristics, which comprises the following steps: selecting a center point P c Taking the point as the center of the sphere and r as the radius, a spherical area S is formed 1 (ii) a Calculating S 1 Centroid P of polyhedron formed by all neighborhood points in polyhedron c The coordinates of'; at S 1 Inner subdivision into a concentric spherical region S 2 ,S 2 Is smaller than the spherical area S 1 And calculating S 2 Centroid P of polyhedron formed by all neighborhood points in polyhedron c "of the coordinates; at P c 、P c '、P c ' A coordinate system is established in a plane consisting of three points, and the origin of the coordinate system is P c Point; a spherical area S 1 All the coordinates of the inner points are converted into a newly-built coordinate system, and then all the neighborhood points are respectively matched with the sphere center P c Connecting to form vectors, and performing vector superposition on all the vectors to obtain a vector which is the central point P c The characteristics of (1). The method disclosed by the invention can be used for quickly extracting the characteristics of the point cloud, is not very sensitive to the selection of the initial value, improves the robustness and has better adaptability to different scenes.)

1. The method for extracting the laser point cloud features is characterized by comprising the following steps of:

step one, selecting a central point PcTaking the point as the center of the sphere and r as the radius, a spherical area S is formed1(ii) a Finding a spherical region S1Centroid P of polyhedron formed by all neighborhood points in polyhedroncThe coordinates of';

step two, in the spherical area S1Inner subdivision into a concentric spherical region S2Spherical region S2Is smaller than the spherical area S1And finding the spherical area S2Centroid P of polyhedron formed by all neighborhood points in polyhedronc"of the coordinates;

step three, in Pc、Pc'、Pc' A coordinate system is established in a plane consisting of three points, and the origin of the coordinate system is PcPoint, the direction of the X-axis being point PcPoint of direction PcThe direction of the' Y axis is perpendicular to the X axis and close to Pc"the direction, according to X, Y axis to establish the right hand coordinate system, the direction of Z axis is also uniquely determined;

step four, the spherical area S is processed1All the coordinates of the inner points are converted into a newly-built coordinate system, and then all the neighborhood points are respectively matched with the sphere center PcConnecting to form vectors, and performing vector superposition on all the vectors to obtain a vector which is the central point PcThe characteristics of (1).

2. The method for extracting laser point cloud features of claim 1, wherein in the first step, P isnIs the center of sphere Pc(x1,y1,z1) All neighborhood points of (1) are set as the ith neighborhood point PniHas the coordinates of (x)ni,yni,zni) Then the centroid Pc'(x2,y2,z2) The coordinates of (a) are:

where k is the neighborhood point PnThe number of (2).

3. The method for extracting laser point cloud features of claim 2, wherein in the second step, a spherical area S is initially set2Has a radius of a spherical region S1Is a half of the radius of (A), is provided with a spherical area S2Inner j neighborhood point PnjHas the coordinates of (x)nj,ynj,znj) Then the centroid Pc”(x3,y3,z3) The coordinates of (a) are:

wherein m is a spherical region S2Number of neighborhood points contained in, if m<3, then enlarging the spherical area S2Until m ≧ 3.

4. The method for extracting the laser point cloud features of claim 3, wherein three point coordinates in the third step are as follows: pc(x1,y1,z1),Pc'(x2,y2,z2),Pc”(x3,y3,z3) Make a vector The normal to the plane is perpendicular to the two vectors, so the normal vector

a=(y2-y1)(z3-z1)-(y3-y1)(z2-z1)

b=(x3-x1)(z2-z1)-(x2-y1)(z3-z1)

c=(x2-x1)(y3-y1)-(x3-x1)(y2-y1)

The plane equation is then:

a(x-x1)+b(y-y1)+c(z-z1)=0

the method is simplified as follows:

ax+by+cz+d=0

wherein:

d=-a·x1-b·y1-c·z1

let the origin of the coordinate system be PcThe direction vector of the X axis isThe direction vector of the Z axis isThe direction vector of the Y axis is:thus, the new coordinate system establishment is completed.

5. The method for extracting the laser point cloud features of claim 4, wherein in the fourth step, the coordinates of the point P in the new coordinate system are as follows:

nP=ToP

wherein, the corner mark n represents the coordinate under the new coordinate system, the corner mark o represents the coordinate of the original coordinate system, and T is a transformation matrix:

the conversion of the point to the new coordinate system can be written as:

then, all neighborhood points P are set under the coordinate systemnRespectively with the center of sphere PcConnected together to form k vectors, and the k vectors are vector-superposed again to obtain the final vector tau which is the desired point PcThe characteristics of (1).

Technical Field

The invention relates to a method for extracting laser point cloud characteristics.

Background

The point cloud is a data source widely used in many fields such as machine vision, three-dimensional reconstruction, machine learning and the like at present, and if the point cloud data is to be fully utilized, extraction of point cloud features is very important.

The existing method for extracting the point cloud features, such as PFH, is large in calculation amount and is not suitable for scenes with high real-time requirements, such as SLAM and the like, an improved algorithm FPFH reduces calculation complexity, but the method is essentially a histogram and describes the angle relationship between points, a probability histogram is finally counted, distance information is not available, and the problem of the scale of the point cloud is solved. And many current algorithms do not have rotational invariance.

Disclosure of Invention

In order to solve the technical problems, the invention provides a method for extracting laser point cloud features, so as to achieve the purposes of quickly extracting the features of the point cloud, not being very sensitive to the selection of an initial value and having better adaptability to different scenes.

In order to achieve the purpose, the technical scheme of the invention is as follows:

a method for extracting laser point cloud features comprises the following steps:

step one, selecting a central point PcTaking the point as the center of the sphere and r as the radius, a spherical area S is formed1(ii) a Finding a spherical region S1Centroid P of polyhedron formed by all neighborhood points in polyhedroncThe coordinates of';

step two, in the spherical area S1Inner subdivision into a concentric spherical region S2Ball, ballShaped region S2Is smaller than the spherical area S1And finding the spherical area S2Centroid P of polyhedron formed by all neighborhood points in polyhedronc"of the coordinates;

step three, in Pc、Pc'、Pc' A coordinate system is established in a plane consisting of three points, and the origin of the coordinate system is PcPoint, the direction of the X-axis being point PcPoint of direction PcThe direction of the' Y axis is perpendicular to the X axis and close to Pc"the direction, according to X, Y axis to establish the right hand coordinate system, the direction of Z axis is also uniquely determined;

step four, the spherical area S is processed1All the coordinates of the inner points are converted into a newly-built coordinate system, and then all the neighborhood points are respectively matched with the sphere center PcConnecting to form vectors, and performing vector superposition on all the vectors to obtain a vector which is the central point PcThe characteristics of (1).

In the above scheme, in step one, PnIs the center of sphere Pc(x1,y1,z1) All neighborhood points of (1) are set as the ith neighborhood point PniHas the coordinates of (x)ni,yni,zni) Then the centroid Pc'(x2,y2,z2) The coordinates of (a) are:

where k is the neighborhood point PnThe number of (2).

In the above scheme, in the second step, the spherical area S is initially set2Has a radius of a spherical region S1Is a half of the radius of (A), is provided with a spherical area S2Inner j neighborhood point PnjHas the coordinates of (x)nj,ynj,znj) Then the centroid Pc”(x3,y3,z3) The coordinates of (a) are:

wherein m is a ballShaped region S2Number of neighborhood points contained in, if m<3, then enlarging the spherical area S2Until m ≧ 3.

In the above scheme, in the third step, the coordinates of the three points are as follows: pc(x1,y1,z1),Pc'(x2,y2,z2),Pc”(x3,y3,z3) Make a vectorThe normal to the plane is perpendicular to the two vectors, so the normal vector

a=(y2-y1)(z3-z1)-(y3-y1)(z2-z1)

b=(x3-x1)(z2-z1)-(x2-y1)(z3-z1)

c=(x2-x1)(y3-y1)-(x3-x1)(y2-y1)

The plane equation is then:

a(x-x1)+b(y-y1)+c(z-z1)=0

the method is simplified as follows:

ax+by+cz+d=0

wherein:

d=-a·x1-b·y1-c·z1

let the origin of the coordinate system be PcThe direction vector of the X axis isThe direction vector of the Z axis isThe direction vector of the Y axis is:thus, the new coordinate system establishment is completed.

In the above scheme, in the fourth step, the coordinates of the point P in the new coordinate system are:

nP=ToP

wherein, the corner mark n represents the coordinate under the new coordinate system, the corner mark o represents the coordinate of the original coordinate system, and T is a transformation matrix:

the conversion of the point to the new coordinate system can be written as:

then, all neighborhood points P are set under the coordinate systemnRespectively with the center of sphere PcConnected together to form k vectors, and the k vectors are vector-superposed again to obtain the final vector tau which is the desired point PcThe characteristics of (1).

Through the technical scheme, the method for extracting the laser point cloud characteristics has the following beneficial effects:

the method is different from the characteristic point characterization mode of the histogram of PFH and FPFH, and the method characterizes the characteristics by directly constructing a space vector mode. The centroid of the two spherical areas is calculated, a three-dimensional space coordinate system is constructed by the centroid, and new vectors are constructed by the vectors of all the points in the coordinate system, so that the characteristics of the current point are represented, the rotation invariance is ensured, the influence of noise points is reduced, and the robustness is improved. The method can quickly extract the characteristics of the point cloud, is not very sensitive to the selection of the initial value, and has good adaptability to different scenes.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.

Fig. 1 is a schematic flow chart of a method for extracting laser point cloud features disclosed in the embodiment of the present invention;

FIG. 2 is a view of a spherical region S established1A schematic diagram of (a);

FIG. 3 shows a spherical region S established2And a schematic of a new coordinate system;

fig. 4 is a schematic diagram of vector superposition.

Detailed Description

The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

The invention provides a method for extracting laser point cloud characteristics, which comprises the following steps of:

step one, as shown in FIG. 2, select a center point PcTaking the point as the center of the sphere and r as the radius, a spherical area S is formed1(ii) a Finding a spherical region S1Centroid P of polyhedron formed by all neighborhood points in polyhedroncThe coordinates of';

Pnis the center of sphere Pc(x1,y1,z1) All neighborhood points of (1) are set as the ith neighborhood point PniHas the coordinates of (x)ni,yni,zni) Then the centroid Pc'(x2,y2,z2) The coordinates of (a) are:

where k is the neighborhood point PnThe number of (2).

Step two, as shown in FIG. 3, in the spherical region S1Inner subdivision into a concentric spherical region S2Spherical region S2Is smaller than the spherical area S1And finding the spherical area S2Centroid P of polyhedron formed by all neighborhood points in polyhedronc"of the coordinates;

initially setting a spherical region S2Has a radius of a spherical region S1Is a half of the radius of (A), is provided with a spherical area S2Inner j neighborhood point PnjHas the coordinates of (x)nj,ynj,znj) Then the centroid Pc”(x3,y3,z3) The coordinates of (a) are:

wherein m is a spherical region S2Number of neighborhood points contained in, if m<3, then enlarging the spherical area S2Until m ≧ 3.

Step three, in Pc、Pc'、Pc' A coordinate system is established in a plane consisting of three points, and the origin of the coordinate system is PcPoint, the direction of the X-axis being point PcPoint of direction PcThe direction of the' Y axis is perpendicular to the X axis and close to Pc"the direction, according to X, Y axis to establish the right hand coordinate system, the direction of Z axis is also uniquely determined;

the three-point coordinates are as follows: pc(x1,y1,z1),Pc'(x2,y2,z2),Pc”(x3,y3,z3) Make a vector The normal to the plane is perpendicular to the two vectors, so the normal vector

a=(y2-y1)(z3-z1)-(y3-y1)(z2-z1)

b=(x3-x1)(z2-z1)-(x2-y1)(z3-z1)

c=(x2-x1)(y3-y1)-(x3-x1)(y2-y1)

The plane equation is then:

a(x-x1)+b(y-y1)+c(z-z1)=0

the method is simplified as follows:

ax+by+cz+d=0

wherein:

d=-a·x1-b·y1-c·z1

let the origin of the coordinate system be PcThe direction vector of the X axis isThe direction vector of the Z axis isThe direction vector of the Y axis is:thus, the new coordinate system establishment is completed.

Step four, the spherical area S is processed1All the coordinates of the inner points are converted into a newly-built coordinate system, and then all the neighborhood points are respectively matched with the sphere center PcConnecting and forming vectors, as shown in FIG. 4, performing vector superposition on all vectors, and obtaining the vector as the central point PcThe characteristics of (1).

The coordinates of point P in the new coordinate system are:

nP=ToP

wherein, the corner mark n represents the coordinate under the new coordinate system, the corner mark o represents the coordinate of the original coordinate system, and T is a transformation matrix:

the conversion of the point to the new coordinate system can be written as:

then, all neighborhood points P are set under the coordinate systemnRespectively with the center of sphere PcConnected together to form k vectors, and the k vectors are vector-superposed again to obtain the final vector tau which is the desired point PcThe characteristics of (1).

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文本图像的倾斜校正方法、系统、设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!