CN104318622B - A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes - Google Patents

A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes Download PDF

Info

Publication number
CN104318622B
CN104318622B CN201410581951.2A CN201410581951A CN104318622B CN 104318622 B CN104318622 B CN 104318622B CN 201410581951 A CN201410581951 A CN 201410581951A CN 104318622 B CN104318622 B CN 104318622B
Authority
CN
China
Prior art keywords
point
neighborhood
triangular mesh
delaunay
dimensional
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
Application number
CN201410581951.2A
Other languages
Chinese (zh)
Other versions
CN104318622A (en
Inventor
安毅
孙康
李卓函
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian University of Technology
Original Assignee
Dalian University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dalian University of Technology filed Critical Dalian University of Technology
Priority to CN201410581951.2A priority Critical patent/CN104318622B/en
Publication of CN104318622A publication Critical patent/CN104318622A/en
Application granted granted Critical
Publication of CN104318622B publication Critical patent/CN104318622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/30Polynomial surface description

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Analysis (AREA)
  • Algebra (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention relates to a triangular mesh modeling method, in particular to a triangular mesh modeling method of indoor scene non-uniform three-dimensional point cloud data, which comprises the following steps: step 1, acquiring nonuniform three-dimensional point cloud data of an indoor scene: step 2, projection of a neighborhood tangent plane: step 3, optimizing the projection neighborhood N': step 4, obtaining the Delaunay adjacent edge of the given point p: and 5, finishing triangular mesh modeling: and repeating the steps 2-4, repeating the algorithm for each point, and then completing the triangular mesh modeling of the whole three-dimensional point cloud. According to the method, the sector area is uniformly divided and each direction is selected in a balanced mode, the adjacent points of the given point are well selected in each direction, the distribution of the adjacent points in each direction is more balanced, and accurate modeling of the non-uniform three-dimensional point cloud data of the indoor scene is achieved. Meanwhile, the selection of each nearest neighbor point also effectively simplifies the neighborhood of a given point, so that the method has lower running time and higher modeling efficiency.

Description

一种室内场景非均匀三维点云数据的三角网格建模方法A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes

技术领域technical field

本发明涉及一种三角网格建模方法,更具体地说,涉及一种室内场景非均匀三维点云数据的三角网格建模方法。The present invention relates to a triangular mesh modeling method, in particular to a triangular mesh modeling method for non-uniform three-dimensional point cloud data of an indoor scene.

背景技术Background technique

随着三维扫描测距技术的发展,三维点云数据在逆向工程、工业检测、自主导航等领域的应用越来越为广泛。三维点云数据处理技术作为实现上述应用的基础,发挥了至关重要的作用。在三维点云数据处理技术中,三维点云数据的三角网格建模是一个非常关键的技术。由于室内环境为一种结构化场景,因此三角网格建模技术特别适合室内场景的三维建模,其不仅可以形象逼真地描述室内场景,而且为室内场景的分类和目标识别打下了良好的基础。优秀三角网格建模方法的引入可以大幅度改善实际应用情况,提高应用性能。在获取室内场景三维点云数据时,激光测距设备逐行扫描的工作特性和室内环境结构的突然变化,极易造成扫描行间距的不稳定,从而使得三维点云数据的分布变得极其不均匀,给室内场景的三角网格建模带来了较大的困难。三维点云数据的三角网格建模一直是三维点云数据处理领域的研究热点,其建模方法大致可分为两大类:基于Delaunay三角化的建模方法和区域增长的建模方法。一般而言,基于Delaunay三角化的建模方法,虽然有良好的运行结果,但需要大量的运算,以致其算法的执行效率较低、建模速度较慢;区域增长的建模方法有良好的运行效率,建模速度较快,但有时其建模效果却不甚理想。针对于非均匀三维点云数据的三角网格建模,目前国内外罕见报道,已有的三角网格建模技术已不再适用。例如,比较著名的旋转球算法(Ball-Pivoting Algorithm)就需要按照不同大小的球多次运行来处理不均匀的三维点云数据,并且有时结果并不理想;再如,基于二维Delaunay三角化的曲面重建方法,其侧重于切平面内的采样点Delaunay邻边的构建,并将将它们反向投射到三维空间中,以形成三角网格模型,该方法运行速度较快,但对采样条件和点云分布有着严格的限制,无法处理非均匀三维点云数据,在每次局部三角化时,很难得到准确的Delaunay邻边,整体建模效果较差。With the development of 3D scanning ranging technology, 3D point cloud data is widely used in reverse engineering, industrial inspection, autonomous navigation and other fields. 3D point cloud data processing technology has played a vital role as the basis for realizing the above applications. In the 3D point cloud data processing technology, the triangular mesh modeling of 3D point cloud data is a very key technology. Since the indoor environment is a structured scene, the triangular mesh modeling technology is especially suitable for the 3D modeling of the indoor scene. It can not only describe the indoor scene vividly, but also lay a good foundation for the classification and target recognition of the indoor scene. . The introduction of an excellent triangular mesh modeling method can greatly improve the actual application situation and improve application performance. When obtaining 3D point cloud data of indoor scenes, the working characteristics of the laser ranging equipment and the sudden change of the indoor environment structure can easily cause the instability of the scanning line spacing, which makes the distribution of 3D point cloud data extremely unstable. Uniformity brings great difficulties to triangular mesh modeling of indoor scenes. Triangular mesh modeling of 3D point cloud data has always been a research hotspot in the field of 3D point cloud data processing, and its modeling methods can be roughly divided into two categories: modeling methods based on Delaunay triangulation and modeling methods based on region growth. Generally speaking, although the modeling method based on Delaunay triangulation has good running results, it requires a large number of calculations, so that the execution efficiency of the algorithm is low and the modeling speed is slow; the modeling method of region growth has good The operation efficiency and the modeling speed are fast, but sometimes the modeling effect is not ideal. For the triangular mesh modeling of non-uniform 3D point cloud data, there are rare reports at home and abroad, and the existing triangular mesh modeling technology is no longer applicable. For example, the well-known ball-pivoting algorithm (Ball-Pivoting Algorithm) needs to run multiple times according to different sizes of balls to process uneven 3D point cloud data, and sometimes the results are not ideal; another example, based on 2D Delaunay triangulation The surface reconstruction method focuses on the construction of the Delaunay adjacent edges of the sampling points in the tangent plane, and back-projects them into the three-dimensional space to form a triangular mesh model. This method runs faster, but the sampling conditions There are strict restrictions on the point cloud distribution and cannot handle non-uniform 3D point cloud data. In each local triangulation, it is difficult to obtain accurate Delaunay adjacent edges, and the overall modeling effect is poor.

发明内容Contents of the invention

为了克服现有技术中存在的不足,本发明目的是提供一种室内场景非均匀三维点云数据的三角网格建模方法。该方法针对一个室内场景,首先利用激光扫描测距仪获取室内场景的非均匀三维点云数据,其实质为三维空间内的一个非均匀点集,然后通过一定的表面建模方法将该点集构造成一个三角形网格拓扑结构,以准确描述真实的室内场景。该方法解决了由于点云数据分布不均匀而带来的建模质量较低、无法描述实际场景、与真实拓扑结构背离等问题,并且还具有较快的建模速度。In order to overcome the deficiencies in the prior art, the object of the present invention is to provide a triangular mesh modeling method for non-uniform 3D point cloud data of indoor scenes. This method is aimed at an indoor scene. First, the laser scanning rangefinder is used to obtain the non-uniform 3D point cloud data of the indoor scene, which is essentially a non-uniform point set in the 3D space. Then the point set is obtained by a certain surface modeling method. Constructed into a triangular mesh topology to accurately describe real indoor scenes. This method solves the problems of low modeling quality, inability to describe the actual scene, and deviation from the real topology due to the uneven distribution of point cloud data, and also has a faster modeling speed.

为了实现上述发明目的,解决现有技术中所存在的问题,本发明采取的技术方案是:一种室内场景非均匀三维点云数据的三角网格建模方法,包括以下步骤:In order to achieve the purpose of the above invention and solve the problems in the prior art, the technical solution adopted by the present invention is: a triangular mesh modeling method for non-uniform three-dimensional point cloud data of indoor scenes, comprising the following steps:

步骤1、获取室内场景非均匀三维点云数据:通过激光传感器,获取室内场景信息,作为非均匀三维点云数据;Step 1. Acquire non-uniform 3D point cloud data of indoor scenes: Obtain indoor scene information as non-uniform 3D point cloud data through laser sensors;

步骤2、邻域切平面投射:选取给定点p=(x,y,z),计算三维点云的平均距离d,设定5d为邻域半径,获取该给定点的邻域N={pi=(xi,yi,zi)|1≤i≤k},其中:pi为邻点,i为邻点的序号,k为邻点的个数,通过p点周围的邻域N,计算该点p的法向量n;通过该法向量n,构建p点处的切平面T,并将邻点pi投射到切平面T上,记投射后的点集为投射邻域N′;Step 2. Neighborhood tangent plane projection: select a given point p=(x, y, z), calculate the average distance d of the 3D point cloud, set 5d as the neighborhood radius, and obtain the neighborhood N={p of the given point i =(x i , y i , z i )|1≤i≤k}, where: p i is the neighbor point, i is the serial number of the neighbor point, k is the number of neighbor points, passing through the neighborhood around point p N, calculate the normal vector n of the point p; through the normal vector n, construct the tangent plane T at point p, and project the adjacent point p i onto the tangent plane T, and record the projected point set as the projected neighborhood N ';

步骤3、对投射邻域N′进行优化:通过扇形区域均匀划分和各向均衡选择,进一步优化给定点p的投射邻域N′,使给定点p在各个方向上均有最近的投射邻点,记优化后的点集为优化邻域N″;Step 3. Optimizing the projected neighborhood N′: Through the uniform division of the fan-shaped area and the balanced selection in all directions, further optimize the projected neighborhood N′ of the given point p, so that the given point p has the nearest projected neighbors in all directions , record the optimized point set as the optimized neighborhood N″;

步骤4、获取给定点p的Delaunay邻边:利用二维Delaunay方法对给定点p及其优化邻域N″进行三角网格建模,将获取的二维Delaunay三角网格反向映射到三维邻域空间,并提取和存储与给定点p相连的三维Delaunay邻边;Step 4. Obtain the Delaunay adjacent edge of the given point p: use the two-dimensional Delaunay method to carry out triangular mesh modeling on the given point p and its optimized neighborhood N″, and reversely map the obtained two-dimensional Delaunay triangular mesh to the three-dimensional adjacent domain space, and extract and store the 3D Delaunay adjacent edges connected to a given point p;

步骤5、完成三角网格建模:重复步骤2-4,对每个点重复上述算法,继而完成整个三维点云的三角网格建模。Step 5, complete triangular mesh modeling: repeat steps 2-4, repeat the above algorithm for each point, and then complete the triangular mesh modeling of the entire 3D point cloud.

所述步骤2邻域切平面投射,具体包括以下子步骤:The step 2 neighborhood tangent plane projection specifically includes the following sub-steps:

步骤(a)、计算三维点云的平均距离d,设定5d为邻域半径,提取给定点p的邻域N;Step (a), calculate the average distance d of the three-dimensional point cloud, set 5d as the neighborhood radius, and extract the neighborhood N of the given point p;

步骤(b)、通过公式Step (b), through the formula

求取邻域N的协方差矩阵M,式中:pi为邻点,i为邻点的序号,k为邻点的个数,T为向量转置符号,其将列向量转置为行向量;Find the covariance matrix M of the neighborhood N, where: p i is the neighbor point, i is the serial number of the neighbor point, k is the number of neighbor points, and T is the vector transposition symbol, which transposes the column vector into a row vector;

步骤(c)、求取M的特征值λ1、λ2、λ3123),以及相应的特征向量v1、v2、v3Step (c), obtaining the eigenvalues λ 1 , λ 2 , λ 3 of M (λ 123 ), and the corresponding eigenvectors v 1 , v 2 , v 3 ;

步骤(d)、将最小特征值λ1对应的特征向量v1单位化,即得到给定点p的法向量n;Step (d), unitize the eigenvector v1 corresponding to the minimum eigenvalue λ1, namely obtain the normal vector n of the given point p;

步骤(e)、将邻域N中的每个点均投射到法向量n所对应的切平面T上,将投射后的点集记为投射邻域N′。Step (e), project each point in the neighborhood N onto the tangent plane T corresponding to the normal vector n, and record the projected point set as the projected neighborhood N'.

所述步骤3对投射邻域N′进行优化,具体包括以下子步骤:The step 3 optimizes the projected neighborhood N', specifically including the following sub-steps:

步骤(a)、在切平面T内,以给定点p为原点,构建过原点p的直线,并使之从水平位置开始顺时针旋转一周,每间隔22.5度,划分一个扇形区域,最终可形成16个以原点p为中心的扇形区域;Step (a), in the tangent plane T, take the given point p as the origin, construct a straight line passing through the origin p, and make it rotate clockwise from the horizontal position for one circle, divide a fan-shaped area at an interval of 22.5 degrees, and finally form 16 fan-shaped areas centered on the origin p;

步骤(b)、将位于p点切平面T内的投射邻域N′置入步骤(a)中划分好的扇形区域内;Step (b), placing the projection neighborhood N' in the tangent plane T of point p into the fan-shaped area divided in step (a);

步骤(c)、提取每个扇形区域中距离原点p最近的点,这些点就构成优化后的点集,记为优化邻域N″。Step (c), extracting the points closest to the origin p in each fan-shaped area, these points constitute an optimized point set, which is recorded as the optimized neighborhood N″.

所述步骤4获取给定点p点的Delaunay邻边,具体包括以下子步骤:The step 4 obtains the Delaunay adjacent edge of the given point p, which specifically includes the following sub-steps:

步骤(a)、采用分治的方法,将优化邻域N″按照x坐标,划分为若干个小区域,每个小区域中的点个数不大于3,对于每个小区域而言,要求都能保证符合Delaunay判据;Step (a), using the divide and conquer method, divide the optimized neighborhood N" into several small areas according to the x coordinates, and the number of points in each small area is not more than 3. For each small area, it is required can guarantee to meet the Delaunay criterion;

步骤(b)、将相邻小区域整合为一个较大的符合Delaunay判据的区域;Step (b), integrating adjacent small areas into a larger area meeting the Delaunay criterion;

步骤(c)、重复步骤(b),再将每个较大区域逐层合并,直至所有较大区域合并为一个整体,至此,单次的局部Delaunay三角划分完成;根据Delaunay三角化的唯一性准则,可以得到唯一的Delaunay三角化结果;Step (c), repeat step (b), and then merge each larger area layer by layer until all larger areas are merged into a whole, so far, a single local Delaunay triangulation is completed; according to the uniqueness of Delaunay triangulation Criterion, the only Delaunay triangulation result can be obtained;

步骤(d)、从构建的二维Delaunay三角划分结果中提取与给定点p相连的边,将其反向映射到三维邻域空间,并进行存储,所存储的边即为给定点p点的三维Delaunay边。Step (d), extracting the edge connected to the given point p from the constructed two-dimensional Delaunay triangulation result, mapping it back to the three-dimensional neighborhood space, and storing it, the stored edge is the edge of the given point p Three-dimensional Delaunay edges.

本发明有益效果是:一种室内场景非均匀三维点云数据的三角网格建模方法,包括以下步骤:步骤1、获取室内场景非均匀三维点云数据:通过激光传感器,获取室内场景信息,作为非均匀三维点云数据;步骤2、邻域切平面投射:选取给定点p=(x,y,z),计算三维点云的平均距离d,设定5d为邻域半径,获取该给定点的邻域N={pi=(xi,yi,zi)|1≤i≤k},其中:pi为邻点,i为邻点的序号,k为邻点的个数,通过p点周围的邻域N,计算该点p的法向量n;通过该法向量n,构建p点处的切平面T,并将邻点pi投射到切平面T上,记投射后的点集为投射邻域N′;步骤3、对投射邻域N′进行优化:通过扇形区域均匀划分和各向均衡选择,进一步优化给定点p的投射邻域N′,使给定点p在各个方向上均有最近的投射邻点,记优化后的点集为优化邻域N″;步骤4、获取给定点p的Delaunay邻边:利用二维Delaunay方法对给定点p及其优化邻域N″进行三角网格建模,将获取的二维Delaunay三角网格反向映射到三维邻域空间,并提取和存储与给定点p相连的三维Delaunay邻边;步骤5、完成三角网格建模:重复步骤2-4,对每个点重复上述算法,继而完成整个三维点云的三角网格建模。与已有技术相比,本发明利用扇形区域均匀划分和各向均衡选择,较好地在各个方向上选择了给定点的邻点,使之邻域在各个方向上的分布更加均衡,实现了室内场景非均匀三维点云数据的精确建模。与此同时,各向最近邻点的选择还有效地精简了给定点的邻域,使本方法具有更低的运行时间和更高的建模效率。The beneficial effect of the present invention is: a triangular mesh modeling method for indoor scene non-uniform three-dimensional point cloud data, comprising the following steps: Step 1, obtaining indoor scene non-uniform three-dimensional point cloud data: using a laser sensor to obtain indoor scene information, As non-uniform 3D point cloud data; step 2, neighborhood tangent plane projection: select a given point p=(x, y, z), calculate the average distance d of the 3D point cloud, set 5d as the neighborhood radius, and obtain the given point The neighborhood of a fixed point N={p i =( xi ,y i , zi )|1≤i≤k}, where: p i is the neighbor point, i is the serial number of the neighbor point, and k is the number of neighbor points , through the neighborhood N around the point p, calculate the normal vector n of the point p; through the normal vector n, construct the tangent plane T at the point p, and project the neighboring point p i onto the tangent plane T, remember the projection The point set of is the projected neighborhood N′; step 3, optimize the projected neighborhood N′: through the uniform division of the fan-shaped area and the balanced selection in all directions, further optimize the projected neighborhood N′ of the given point p, so that the given point p is in There are the nearest projected neighbors in each direction, and the optimized point set is recorded as the optimized neighborhood N″; step 4, obtain the Delaunay adjacent edge of the given point p: use the two-dimensional Delaunay method to calculate the given point p and its optimized neighborhood N″ carry out triangular mesh modeling, reversely map the obtained two-dimensional Delaunay triangular mesh to the three-dimensional neighborhood space, and extract and store the three-dimensional Delaunay adjacent edges connected to the given point p; step 5, complete the triangular mesh construction Modeling: Repeat steps 2-4, repeat the above algorithm for each point, and then complete the triangular mesh modeling of the entire 3D point cloud. Compared with the prior art, the present invention utilizes the uniform division of the fan-shaped area and the balanced selection in all directions, and better selects the neighbors of a given point in each direction, so that the distribution of the neighborhood in each direction is more balanced, and the realization of Accurate Modeling of Inhomogeneous 3D Point Cloud Data for Indoor Scenes. At the same time, the selection of the nearest neighbor points in each direction also effectively simplifies the neighborhood of a given point, making this method have lower running time and higher modeling efficiency.

附图说明Description of drawings

图1是本发明的流程图。Fig. 1 is a flow chart of the present invention.

图2是本发明步骤的示意图。Figure 2 is a schematic diagram of the steps of the present invention.

图中:(a)是邻域切平面投射图,(b)是对投射邻域N′进行优化图,(c)是获取给定点p的Delaunay邻边图,(d)是切平面下的Delaunay建模图。In the figure: (a) is the neighborhood tangent plane projection graph, (b) is the optimized graph for the projected neighborhood N′, (c) is the Delaunay neighbor graph for obtaining a given point p, (d) is the graph under the tangent plane Delaunay modeling diagram.

图3是未采用本发明的局部平面三角网格建模示意图。Fig. 3 is a schematic diagram of local plane triangular mesh modeling without using the present invention.

图4是室内场景1非均匀三维点云数据的三角网格建模结果图。Fig. 4 is a diagram of the triangular mesh modeling results of the non-uniform 3D point cloud data of the indoor scene 1.

图中:(a)是整体效果图,(b)、(c)分别是局部细节图。In the figure: (a) is the overall rendering, (b) and (c) are the partial details.

图5是室内场景2非均匀三维点云数据的三角网格建模结果图;Fig. 5 is a triangular mesh modeling result diagram of indoor scene 2 non-uniform 3D point cloud data;

图中:(a)是整体效果图,(b)、(c)分别是局部细节图。In the figure: (a) is the overall rendering, (b) and (c) are the partial details.

具体实施方式detailed description

下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with accompanying drawing.

如图1所示,一种室内场景非均匀三维点云数据的三角网格建模方法,包括以下步骤:步骤1、获取室内场景非均匀三维点云数据:通过激光传感器,获取室内场景信息,作为非均匀三维点云数据;步骤2、邻域切平面投射:选取给定点p=(x,y,z),计算三维点云的平均距离d,设定5d为邻域半径,获取该给定点的邻域N={pi=(xi,yi,zi)|1≤i≤k},其中:pi为邻点,i为邻点的序号,k为邻点的个数,通过p点周围的邻域N,计算该点p的法向量n;通过该法向量n,构建p点处的切平面T,并将邻点pi投射到切平面T上,记投射后的点集为投射邻域N′;步骤3、对投射邻域N′进行优化:通过扇形区域均匀划分和各向均衡选择,进一步优化给定点p的投射邻域N′,使给定点p在各个方向上均有最近的投射邻点,记优化后的点集为优化邻域N″;步骤4、获取给定点p的Delaunay邻边:利用二维Delaunay方法对给定点p及其优化邻域N″进行三角网格建模,将获取的二维Delaunay三角网格反向映射到三维邻域空间,并提取和存储与给定点p相连的三维Delaunay邻边;步骤5、完成三角网格建模:重复步骤2-4,对每个点重复上述算法,继而完成整个三维点云的三角网格建模。As shown in Figure 1, a triangular mesh modeling method for non-uniform 3D point cloud data of indoor scenes comprises the following steps: Step 1, obtaining non-uniform 3D point cloud data of indoor scenes: obtaining indoor scene information through a laser sensor, As non-uniform 3D point cloud data; step 2, neighborhood tangent plane projection: select a given point p=(x, y, z), calculate the average distance d of the 3D point cloud, set 5d as the neighborhood radius, and obtain the given point The neighborhood of a fixed point N={p i =( xi ,y i , zi )|1≤i≤k}, where: p i is the neighbor point, i is the serial number of the neighbor point, and k is the number of neighbor points , through the neighborhood N around the point p, calculate the normal vector n of the point p; through the normal vector n, construct the tangent plane T at the point p, and project the neighboring point p i onto the tangent plane T, remember the projection The point set of is the projected neighborhood N′; step 3, optimize the projected neighborhood N′: through the uniform division of the fan-shaped area and the balanced selection in all directions, further optimize the projected neighborhood N′ of the given point p, so that the given point p is in There are the nearest projected neighbors in each direction, and the optimized point set is recorded as the optimized neighborhood N″; step 4, obtain the Delaunay adjacent edge of the given point p: use the two-dimensional Delaunay method to calculate the given point p and its optimized neighborhood N″ carry out triangular mesh modeling, reversely map the obtained two-dimensional Delaunay triangular mesh to the three-dimensional neighborhood space, and extract and store the three-dimensional Delaunay adjacent edges connected to the given point p; step 5, complete the triangular mesh construction Modeling: Repeat steps 2-4, repeat the above algorithm for each point, and then complete the triangular mesh modeling of the entire 3D point cloud.

所述步骤2邻域切平面投射,具体包括以下子步骤:The step 2 neighborhood tangent plane projection specifically includes the following sub-steps:

步骤(a)、计算三维点云的平均距离d,设定5d为邻域半径,提取给定点p的邻域N;Step (a), calculate the average distance d of the three-dimensional point cloud, set 5d as the neighborhood radius, and extract the neighborhood N of the given point p;

步骤(b)、通过公式Step (b), through the formula

求取邻域N的协方差矩阵M,式中:pi为邻点,i为邻点的序号,k为邻点的个数,T为向量转置符号,其将列向量转置为行向量;Find the covariance matrix M of the neighborhood N, where: p i is the neighbor point, i is the serial number of the neighbor point, k is the number of neighbor points, and T is the vector transposition symbol, which transposes the column vector into a row vector;

步骤(c)、求取M的特征值λ1、λ2、λ3123),以及相应的特征向量v1、v2、v3Step (c), obtaining the eigenvalues λ 1 , λ 2 , λ 3 of M (λ 123 ), and the corresponding eigenvectors v 1 , v 2 , v 3 ;

步骤(d)、将最小特征值λ1对应的特征向量v1单位化,即得到给定点p的法向量n;Step (d), unitize the eigenvector v1 corresponding to the minimum eigenvalue λ1, namely obtain the normal vector n of the given point p;

步骤(e)、将邻域N中的每个点均投射到法向量n所对应的切平面T上,将投射后的点集记为投射邻域N′;如图2中图(a)所示。Step (e), each point in the neighborhood N is projected onto the tangent plane T corresponding to the normal vector n, and the projected point set is recorded as the projected neighborhood N'; as shown in Figure 2 (a) shown.

所述步骤3对投射邻域N′进行优化,具体包括以下子步骤:The step 3 optimizes the projected neighborhood N', specifically including the following sub-steps:

步骤(a)、在切平面T内,以给定点p为原点,构建过原点p的直线,并使之从水平位置开始顺时针旋转一周,每间隔22.5度,划分一个扇形区域,最终可形成16个以原点p为中心的扇形区域;Step (a), in the tangent plane T, take the given point p as the origin, construct a straight line passing through the origin p, and make it rotate clockwise from the horizontal position for one circle, divide a fan-shaped area at an interval of 22.5 degrees, and finally form 16 fan-shaped areas centered on the origin p;

步骤(b)、将位于p点切平面T内的投射邻域N′置入步骤(a)中划分好的扇形区域内;Step (b), placing the projection neighborhood N' in the tangent plane T of point p into the fan-shaped area divided in step (a);

步骤(c)、提取每个扇形区域中距离原点p最近的点,这些点就构成优化后的点集,记为优化邻域N″;如图2中图(b)所示。Step (c), extracting the points closest to the origin p in each fan-shaped area, these points constitute the optimized point set, which is recorded as the optimized neighborhood N"; as shown in Figure 2 (b).

所述步骤4获取给定点p点的Delaunay邻边,具体包括以下子步骤:The step 4 obtains the Delaunay adjacent edge of the given point p, which specifically includes the following sub-steps:

步骤(a)、采用分治的方法,将优化邻域N″按照x坐标,划分为若干个小区域,每个小区域中的点个数不大于3,对于每个小区域而言,要求都能保证符合Delaunay判据;Step (a), using the divide and conquer method, divide the optimized neighborhood N" into several small areas according to the x coordinates, and the number of points in each small area is not more than 3. For each small area, it is required can guarantee to meet the Delaunay criterion;

步骤(b)、将相邻小区域整合为一个较大的符合Delaunay判据的区域;Step (b), integrating adjacent small areas into a larger area meeting the Delaunay criterion;

步骤(c)、重复步骤(b),再将每个较大区域逐层合并,直至所有较大区域合并为一个整体,至此,单次的局部Delaunay三角划分完成;根据Delaunay三角化的唯一性准则,可以得到唯一的Delaunay三角化结果;Step (c), repeat step (b), and then merge each larger area layer by layer until all larger areas are merged into a whole, so far, a single local Delaunay triangulation is completed; according to the uniqueness of Delaunay triangulation Criterion, the only Delaunay triangulation result can be obtained;

步骤(d)、从构建的二维Delaunay三角划分结果中提取与给定点p相连的边,将其反向映射到三维邻域空间,并进行存储,所存储的边即为给定点p点的三维Delaunay边;如图2中图(c)所示。之后重复运行,对原始点云数据中的每个点重复步骤2-4,得到最终切平面建模如图2中图(d)所示。将所有存储的边按照三角化结果显示,即可得到图4与图5所示的三角网格建模结果。Step (d), extracting the edge connected to the given point p from the constructed two-dimensional Delaunay triangulation result, mapping it back to the three-dimensional neighborhood space, and storing it, the stored edge is the edge of the given point p Three-dimensional Delaunay edge; as shown in Figure 2 (c). Then repeat the operation, repeat steps 2-4 for each point in the original point cloud data, and obtain the final tangent plane modeling as shown in Figure 2 (d). All stored edges are displayed according to the triangulation results, and the triangular mesh modeling results shown in Fig. 4 and Fig. 5 can be obtained.

综上所述,本发明没有对三维点云中的离散点进行直接三角网格建模,而是先对其进行邻域切平面投射,再利用扇形区域划分和各向均衡选择,来优化给定点的投射邻域,使之在各个方向上的分布更加均衡,并最终利用各向均衡的优化邻域来实现局部三角网格模型的建立。这不仅解决了室内场景非均匀三维点云数据的准确建模问题,避免建模过程中大面积空洞的产生,如图3所示,真实地描述了室内场景的拓扑结构,而且由于优化过程的存在,使得局部邻域建模时离散点的数量急剧下降,避免了局部领域大量数据点建模而带来的巨大运行开销,极大地提高了建模的运行效率,减少了建模所需的运行时间。To sum up, the present invention does not directly model the discrete points in the 3D point cloud with triangular meshes, but first performs neighborhood tangent plane projection on them, and then uses fan-shaped area division and isotropic balance selection to optimize the given points. The fixed-point projection neighborhood makes the distribution in all directions more balanced, and finally uses the balanced optimization neighborhood to realize the establishment of the local triangular mesh model. This not only solves the problem of accurate modeling of non-uniform 3D point cloud data in indoor scenes, but also avoids the generation of large-area holes in the modeling process. As shown in Figure 3, it truly describes the topology of indoor scenes. Existence, which makes the number of discrete points drop sharply during local neighborhood modeling, avoids the huge operating overhead caused by modeling a large number of data points in the local area, greatly improves the operating efficiency of modeling, and reduces the time required for modeling. operation hours.

Claims (4)

1.一种室内场景非均匀三维点云数据的三角网格建模方法,其特征在于包括以下步骤:1. a triangular mesh modeling method of indoor scene heterogeneous three-dimensional point cloud data, is characterized in that comprising the following steps: 步骤1、获取室内场景非均匀三维点云数据:通过激光传感器,获取室内场景信息,作为非均匀三维点云数据;Step 1. Acquire non-uniform 3D point cloud data of indoor scenes: Obtain indoor scene information as non-uniform 3D point cloud data through laser sensors; 步骤2、邻域切平面投射:选取给定点p=(x,y,z),计算三维点云的平均距离d,设定5d为邻域半径,获取该给定点的邻域N={pi=(xi,yi,zi)|1≤i≤k},其中:pi为邻点,i为邻点的序号,k为邻点的个数,通过p点周围的邻域N,计算该点p的法向量n;通过该法向量n,构建p点处的切平面T,并将邻点pi投射到切平面T上,记投射后的点集为投射邻域N′;Step 2. Neighborhood tangent plane projection: select a given point p=(x,y,z), calculate the average distance d of the 3D point cloud, set 5d as the neighborhood radius, and obtain the neighborhood N={p of the given point i =(x i , y i , z i )|1≤i≤k}, where: p i is the neighbor point, i is the serial number of the neighbor point, k is the number of neighbor points, passing through the neighborhood around point p N, calculate the normal vector n of the point p; through the normal vector n, construct the tangent plane T at point p, and project the adjacent point p i onto the tangent plane T, and record the projected point set as the projected neighborhood N '; 步骤3、对投射邻域N′进行优化:通过扇形区域均匀划分和各向均衡选择,进一步优化给定点p的投射邻域N′,使给定点p在各个方向上均有最近的投射邻点,记优化后的点集为优化邻域N″;Step 3. Optimizing the projected neighborhood N′: Through the uniform division of the fan-shaped area and the balanced selection in all directions, further optimize the projected neighborhood N′ of the given point p, so that the given point p has the nearest projected neighbors in all directions , record the optimized point set as the optimized neighborhood N″; 步骤4、获取给定点p的Delaunay邻边:利用二维Delaunay方法对给定点p及其优化邻域N″进行三角网格建模,将获取的二维Delaunay三角网格反向映射到三维邻域空间,并提取和存储与给定点p相连的三维Delaunay邻边;Step 4. Obtain the Delaunay adjacent edge of the given point p: use the two-dimensional Delaunay method to carry out triangular mesh modeling on the given point p and its optimized neighborhood N″, and reversely map the obtained two-dimensional Delaunay triangular mesh to the three-dimensional adjacent domain space, and extract and store the 3D Delaunay adjacent edges connected to a given point p; 步骤5、完成三角网格建模:重复步骤2-4,对每个点重复上述算法,继而完成整个三维点云的三角网格建模。Step 5, complete triangular mesh modeling: repeat steps 2-4, repeat the above algorithm for each point, and then complete the triangular mesh modeling of the entire 3D point cloud. 2.根据权利要求1所述一种室内场景非均匀三维点云数据的三角网格建模方法,其特征在于:所述步骤2邻域切平面投射,具体包括以下子步骤:2. according to the described triangular mesh modeling method of a kind of indoor scene heterogeneous three-dimensional point cloud data of claim 1, it is characterized in that: described step 2 neighborhood tangent plane projection, specifically comprises the following substeps: 步骤(a)、计算三维点云的平均距离d,设定5d为邻域半径,提取给定点p的邻域N;Step (a), calculate the average distance d of the three-dimensional point cloud, set 5d as the neighborhood radius, and extract the neighborhood N of the given point p; 步骤(b)、通过公式Step (b), through the formula Mm == ΣΣ ii == 11 kk (( pp ii -- pp )) (( pp ii -- pp )) TT -- -- -- (( 11 )) 求取邻域N的协方差矩阵M,式中:pi为邻点,i为邻点的序号,k为邻点的个数,T为向量转置符号,其将列向量转置为行向量;Find the covariance matrix M of the neighborhood N, where: p i is the neighbor point, i is the serial number of the neighbor point, k is the number of neighbor points, and T is the vector transposition symbol, which transposes the column vector into a row vector; 步骤(c)、求取M的特征值λ1、λ2、λ3,其中λ123,以及相应的特征向量v1、v2、v3Step (c), obtain the eigenvalues λ 1 , λ 2 , λ 3 of M, where λ 123 , and the corresponding eigenvectors v 1 , v 2 , v 3 ; 步骤(d)、将最小特征值λ1对应的特征向量v1单位化,即得到给定点p的法向量n;Step (d), unitize the eigenvector v1 corresponding to the minimum eigenvalue λ1, namely obtain the normal vector n of the given point p; 步骤(e)、将邻域N中的每个点均投射到法向量n所对应的切平面T上,将投射后的点集记为投射邻域N′。Step (e), project each point in the neighborhood N onto the tangent plane T corresponding to the normal vector n, and record the projected point set as the projected neighborhood N'. 3.根据权利要求1所述一种室内场景非均匀三维点云数据的三角网格建模方法,其特征在于:所述步骤3对投射邻域N′进行优化,具体包括以下子步骤:3. The triangular mesh modeling method of a kind of indoor scene heterogeneous three-dimensional point cloud data according to claim 1, is characterized in that: described step 3 optimizes projection neighborhood N ', specifically comprises the following substeps: 步骤(a)、在切平面T内,以给定点p为原点,构建过原点p的直线,并使之从水平位置开始顺时针旋转一周,每间隔22.5度,划分一个扇形区域,最终可形成16个以原点p为中心的扇形区域;Step (a), in the tangent plane T, take the given point p as the origin, construct a straight line passing through the origin p, and make it rotate clockwise from the horizontal position for one circle, divide a fan-shaped area at an interval of 22.5 degrees, and finally form 16 fan-shaped areas centered on the origin p; 步骤(b)、将位于p点切平面T内的投射邻域N′置入步骤(a)中划分好的扇形区域内;Step (b), placing the projection neighborhood N' in the tangent plane T of point p into the fan-shaped area divided in step (a); 步骤(c)、提取每个扇形区域中距离原点p最近的点,这些点就构成优化后的点集,记为优化邻域N″。Step (c), extracting the points closest to the origin p in each fan-shaped area, these points constitute an optimized point set, which is recorded as the optimized neighborhood N″. 4.根据权利要求1所述一种室内场景非均匀三维点云数据的三角网格建模方法,其特征在于:所述步骤4获取给定点p点的Delaunay邻边,具体包括以下子步骤:4. according to the triangular mesh modeling method of a kind of indoor scene heterogeneous three-dimensional point cloud data according to claim 1, it is characterized in that: described step 4 obtains the Delaunay adjacent edge of given point p point, specifically comprises the following substeps: 步骤(a)、采用分治的方法,将优化邻域N″按照x坐标,划分为若干个小区域,每个小区域中的点个数不大于3,对于每个小区域而言,要求都能保证符合Delaunay判据;Step (a), using the divide and conquer method, divide the optimized neighborhood N" into several small areas according to the x coordinates, and the number of points in each small area is not more than 3. For each small area, it is required can guarantee to meet the Delaunay criterion; 步骤(b)、将相邻小区域整合为一个较大的符合Delaunay判据的区域;Step (b), integrating adjacent small areas into a larger area meeting the Delaunay criterion; 步骤(c)、重复步骤(b),再将每个较大区域逐层合并,直至所有较大区域合并为一个整体,至此,单次的局部Delaunay三角划分完成;根据Delaunay三角化的唯一性准则,可以得到唯一的Delaunay三角化结果;Step (c), repeat step (b), and then merge each larger area layer by layer until all larger areas are merged into a whole, so far, a single local Delaunay triangulation is completed; according to the uniqueness of Delaunay triangulation Criterion, the only Delaunay triangulation result can be obtained; 步骤(d)、从构建的二维Delaunay三角划分结果中提取与给定点p相连的边,将其反向映射到三维邻域空间,并进行存储,所存储的边即为给定点p点的三维Delaunay边。Step (d), extracting the edge connected to the given point p from the constructed two-dimensional Delaunay triangulation result, mapping it back to the three-dimensional neighborhood space, and storing it, the stored edge is the edge of the given point p Three-dimensional Delaunay sides.
CN201410581951.2A 2014-10-25 2014-10-25 A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes Active CN104318622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410581951.2A CN104318622B (en) 2014-10-25 2014-10-25 A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410581951.2A CN104318622B (en) 2014-10-25 2014-10-25 A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes

Publications (2)

Publication Number Publication Date
CN104318622A CN104318622A (en) 2015-01-28
CN104318622B true CN104318622B (en) 2017-02-22

Family

ID=52373848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410581951.2A Active CN104318622B (en) 2014-10-25 2014-10-25 A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes

Country Status (1)

Country Link
CN (1) CN104318622B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809759A (en) * 2015-04-03 2015-07-29 哈尔滨工业大学深圳研究生院 Large-area unstructured three-dimensional scene modeling method based on small unmanned helicopter
CN106569270B (en) * 2015-10-12 2018-10-02 中国石油化工股份有限公司 The adaptive unstructured triangular grid method of regular grid rate pattern
CN105608732B (en) * 2015-12-18 2018-07-13 北京工业大学 A kind of optimization method of triangle grid model
CN109493380B (en) * 2017-09-11 2022-05-17 重庆大学 Method for calculating area of irregular shear surface in rock joint surface shear test
CN108334080B (en) * 2018-01-18 2021-01-05 大连理工大学 Automatic virtual wall generation method for robot navigation
CN108920574B (en) * 2018-06-22 2022-09-30 黑龙江科技大学 Efficient neighborhood searching method for large-scale three-dimensional point cloud data
CN109671152B (en) * 2018-12-01 2022-10-04 大连理工大学 A method for estimating geometric properties of line and point clouds based on Gaussian weighted discrete derivatives
US11816762B2 (en) * 2019-05-27 2023-11-14 Zhejiang University Three-dimensional reconstruction method based on half-peak probability density distribution
CN110264565B (en) * 2019-05-27 2021-07-30 浙江大学 A 3D Reconstruction Method Based on Half-Peak Probability Density Distribution
TWI766218B (en) 2019-12-27 2022-06-01 財團法人工業技術研究院 Reconstruction method, reconstruction system and computing device for three-dimensional plane
CN111815691B (en) * 2020-09-10 2020-12-18 熵智科技(深圳)有限公司 Neighborhood access method, device, equipment and medium for grid data structure
WO2022222077A1 (en) * 2021-04-21 2022-10-27 浙江大学 Indoor scene virtual roaming method based on reflection decomposition
CN114529675B (en) * 2022-02-21 2025-07-01 苏州数算软云科技有限公司 A 3D model optimization method for fast local Delaunay transformation
CN119416330B (en) * 2025-01-07 2025-07-11 山东省工业技术研究院 Open domain indoor scene hierarchical generation method and system based on large language model

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968299B1 (en) * 2000-04-14 2005-11-22 International Business Machines Corporation Method and apparatus for reconstructing a surface using a ball-pivoting algorithm
CN1835021A (en) * 2006-04-14 2006-09-20 东南大学 Curve triangle section structure method of 3-D scattered point set in 3-D scanning system
EP1793349A3 (en) * 2005-12-05 2007-10-24 Siemens Medical Solutions USA, Inc. Method and aparatus for discrete mesh filleting and rounding through ball pivoting
CN101377851A (en) * 2007-08-29 2009-03-04 鸿富锦精密工业(深圳)有限公司 System and method for computing a minimum distance from point cloud to point cloud
CN102881047A (en) * 2012-08-01 2013-01-16 桂林电子科技大学 Automatic non-closed implicit curved surface reconstruction method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968299B1 (en) * 2000-04-14 2005-11-22 International Business Machines Corporation Method and apparatus for reconstructing a surface using a ball-pivoting algorithm
EP1793349A3 (en) * 2005-12-05 2007-10-24 Siemens Medical Solutions USA, Inc. Method and aparatus for discrete mesh filleting and rounding through ball pivoting
CN1835021A (en) * 2006-04-14 2006-09-20 东南大学 Curve triangle section structure method of 3-D scattered point set in 3-D scanning system
CN101377851A (en) * 2007-08-29 2009-03-04 鸿富锦精密工业(深圳)有限公司 System and method for computing a minimum distance from point cloud to point cloud
CN102881047A (en) * 2012-08-01 2013-01-16 桂林电子科技大学 Automatic non-closed implicit curved surface reconstruction method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
3D mesh compression: survey, comparisons and emerging trends;ADRIEN MAGLO 等;《ACM Computing Surveys》;20130930;第39:1-39:40页 *
An Analysis and Implementation of a Parallel Ball Pivoting Algorithm;Julie Digne;《Image Processing》;20140701;第149-168页 *
The Ball-Pivoting Algorithm for Surface Reconstruction;Fausto Bernardini;《Visualization and Computer Graphics》;19991031;第349-359页 *
一种快速三维散乱点云的三角剖分算法;陈伟 等;《计算机仿真》;20090930;第338-341页 *
三维散乱点云快速曲面重建算法;宋大虎 等;《计算机应用研究》;20130831;第2527-2529页 *

Also Published As

Publication number Publication date
CN104318622A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104318622B (en) A Triangular Mesh Modeling Method for Inhomogeneous 3D Point Cloud Data in Indoor Scenes
CN103729872B (en) A kind of some cloud Enhancement Method based on segmentation resampling and surface triangulation
CN111581776A (en) Geometric reconstruction model-based isogeometric analysis method
CN107610061A (en) A kind of guarantor's edge point cloud hole repair method based on two-dimensional projection
CN105069840A (en) Three-dimensional normal distribution transformation point cloud registration method based on curvature feature
CN104363654B (en) Wireless sensor network tri-dimensional node positioning method based on Tunneling method
CN103310481A (en) Point cloud reduction method based on fuzzy entropy iteration
CN105631939B (en) A kind of three-dimensional point cloud distortion correction method and its system based on curvature filtering
CN101404061B (en) Three-dimensional dispersion point cloud topological neighbor data query method
CN108230452B (en) A Model Hole Filling Method Based on Texture Synthesis
CN106447767A (en) Point cloud data tree trunk three-dimension trunk axis curve construction-based tree trunk parameter extraction method
CN105118091A (en) Method and system for constructing multi-precision non-uniform geological grid curved surface model
CN101034482A (en) Method for automatically generating complex components three-dimensional self-adapting finite element grid
CN104317886A (en) Method for retrieving and selecting neighbor conditional data points in grid node interpolation under fault constraint
CN107610228A (en) Curved surface increment topology rebuilding method based on massive point cloud
CN103700135B (en) A kind of three-dimensional model local spherical mediation feature extracting method
CN109767492A (en) Space calculation method for three-dimensional model of transformer substation
Leung et al. A unified framework for isotropic meshing based on narrow-band Euclidean distance transformation
CN110910435B (en) Building point cloud extraction method and device, computer equipment and readable storage medium
CN104361625A (en) Ray principle based cloud data compaction algorithm with boundary reservation
CN104821015B (en) Surface sampling point α-shape curved surface topology rebuilding methods in kind
CN104794747B (en) A kind of three dimensional point cloud compressing method based on ray principle
CN105069844B (en) The geological surface approximating method of logic-based neighborhood
Qi et al. Robust slicing procedure based on surfel-grid
CN107705310B (en) Method and system for dividing land blocks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant