CN104573705A - Clustering method for building laser scan point cloud data - Google Patents

Clustering method for building laser scan point cloud data Download PDF

Info

Publication number
CN104573705A
CN104573705A CN201410539285.6A CN201410539285A CN104573705A CN 104573705 A CN104573705 A CN 104573705A CN 201410539285 A CN201410539285 A CN 201410539285A CN 104573705 A CN104573705 A CN 104573705A
Authority
CN
China
Prior art keywords
point
points
point cloud
minpts
circle
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.)
Granted
Application number
CN201410539285.6A
Other languages
Chinese (zh)
Other versions
CN104573705B (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.)
Beijing University of Civil Engineering and Architecture
Original Assignee
Beijing University of Civil Engineering and Architecture
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 Beijing University of Civil Engineering and Architecture filed Critical Beijing University of Civil Engineering and Architecture
Priority to CN201410539285.6A priority Critical patent/CN104573705B/en
Publication of CN104573705A publication Critical patent/CN104573705A/en
Application granted granted Critical
Publication of CN104573705B publication Critical patent/CN104573705B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a clustering method for building laser scan point cloud data. The method comprises the following steps: converting the point cloud data into two-dimensional data to acquire a set X; appointing density threshold value MinPts; calculating the longest distance of MinPts objects with shortest distance from the point towards any point in the X; counting maximal and minimum value of the longest distance of all the points; classifying the difference value of the maximal and minimum value of the longest distance into n equal portions; making a circle by adopting the point generating the minimum value of the longest distance as the center and the gradual increasing value of the distance of the equal portions as the radius; calculating the number of points in each circle; adopting the difference value as a abscissa; adopting the numbers of the points in each circle as an ordinate; conducting fitting to form a curve; seeking points of inflexion of the curve; taking the number value of the abscissa corresponding to the points of inflexion as the value of sigma; building AQ-DBSCAN algorithm by adopting the MInPts and the sigma as conditions; conducting clustering on the points in the X to obtain the belonged cluster analysis of the points in the point cloud in the parts of the building.

Description

一种建筑物激光扫描点云数据的聚类方法A clustering method for building laser scanning point cloud data

技术领域 technical field

本发明涉及一种建筑物激光扫描点云数据的聚类方法。 The invention relates to a clustering method for building laser scanning point cloud data.

背景技术 Background technique

古建筑是人类文明的重要标志,是文化信息的特殊载体。因此,继承和保护古建筑是当代人不可推卸的责任。但是由于目前经济的发展和城市建设,以及古建筑被岁月侵蚀,使很多大型古建筑产生了不同程度的变形和破坏,古建筑保护面临着严峻的形势。 Ancient architecture is an important symbol of human civilization and a special carrier of cultural information. Therefore, inheriting and protecting ancient buildings is an unshirkable responsibility of contemporary people. However, due to the current economic development and urban construction, as well as the erosion of ancient buildings over time, many large ancient buildings have been deformed and damaged to varying degrees, and the protection of ancient buildings is facing a severe situation.

三维彩色扫描技术具有快速性,不接触性,穿透性,实时、动态、主动性,高密度、高精度,数字化、自动化等特性,随着其测量精度、扫描速度、空间解析度等方面的进步和价格的降低,在古建筑保护方面得到越来越广泛的应用。它采用非接触式测量手段,可以在不损伤物体的情况下,深入到复杂的环境和现场进行扫描操作,并直接将各种大型的、复杂的、不规则实体的三维数据完整地采集到计算机中,从而快速重构出扫描物体的三维模型。同时,它所采集的三维激光点云数据不仅包含目标的空间信息,而且记录了目标的反射强度信息和色彩灰度信息。 Three-dimensional color scanning technology has the characteristics of rapidity, non-contact, penetration, real-time, dynamic, initiative, high density, high precision, digitization, automation, etc. With the improvement of its measurement accuracy, scanning speed, spatial resolution, etc. With progress and price reduction, it has been more and more widely used in the protection of ancient buildings. It adopts non-contact measurement methods, which can go deep into complex environments and on-site scanning operations without damaging objects, and directly collect the three-dimensional data of various large, complex and irregular entities to the computer completely. In order to quickly reconstruct the 3D model of the scanned object. At the same time, the 3D laser point cloud data collected by it not only contains the spatial information of the target, but also records the reflection intensity information and color grayscale information of the target.

利用三维激光扫描仪可以快速的获取建筑的三维点云模型,点云数据中的每个点都包涵显性的三维坐标。基于点云数据,可以实现简单的建筑物三维浏览和漫游。然而,一方面单纯的点云数据结构数据量庞大,难以适用于古建筑物的高效漫游和浏览,另一方面由于无法提供语义(semantic)级别的信息,无法进行更高层次的分析研究,因此需要在此基础上进一步对点云数据进行处理,从而提取和重建物体的三维结构,以实现显示,分析、量测、仿真、模拟、监测,存储,检索等功能。而目前点云数据处理目前很大程度上需要人机交互,自动化程度较低。 The 3D point cloud model of the building can be quickly obtained by using a 3D laser scanner, and each point in the point cloud data contains explicit 3D coordinates. Based on point cloud data, simple 3D browsing and roaming of buildings can be realized. However, on the one hand, the pure point cloud data structure has a huge amount of data, which is difficult to be applied to the efficient roaming and browsing of ancient buildings. On the other hand, it cannot provide higher-level analysis and research because it cannot provide semantic information. On this basis, it is necessary to further process the point cloud data, so as to extract and reconstruct the three-dimensional structure of the object, so as to realize the functions of display, analysis, measurement, simulation, simulation, monitoring, storage, and retrieval. At present, point cloud data processing requires human-computer interaction to a large extent, and the degree of automation is low.

数据分割是点云数据特征提取和三维建模的重要步骤。Rabbani et al(2006) 描述数据分割为点云数据的逐点标识过程,具有相同标识的点被认为属于同一表面或区域,那些在连续区域内具有相似特征的点被分割到一个子集。 Data segmentation is an important step in feature extraction and 3D modeling of point cloud data. Rabbani et al (2006) describe the point-by-point identification process of data segmentation into point cloud data, points with the same identification are considered to belong to the same surface or area, and those points with similar characteristics in a continuous area are segmented into a subset.

当前的点云分割算法主要包括四类:基于聚类的分割、基于区域增长的分割、基于模型拟合的分割以及其他混合分割算法。 Current point cloud segmentation algorithms mainly include four categories: clustering-based segmentation, region-growing-based segmentation, model-fitting-based segmentation, and other hybrid segmentation algorithms.

一般聚类算法大致包括五种:层次方法、划分方法、基于密度的方法、基于模型的方法和基于网格的方法。 General clustering algorithms generally include five types: hierarchical methods, partition methods, density-based methods, model-based methods, and grid-based methods.

基于密度的聚类方法认为,簇是数据空间中被低密度区域分割开的高密度对象区域,而稀疏数据区域中的数据被认为是噪声数据。该算法设定一定的阀值,只要某点邻近区域的密度大于这个阈值,聚类就可以继续进行。这类方法可以发现任意形状的聚类,并能过滤“噪声”数据。可以发现任意形状的簇是该算法的最大优点,其主要缺点是对用户定义的密度参数比较敏感,不同的阀值对于聚类的结果影响比较大。该类方法的典型算法包括DBSCAN算法(Density-Based Spatial Clustering of Applications with Noise)等。 Density-based clustering methods consider clusters to be high-density object regions separated by low-density regions in the data space, while data in sparse data regions are considered noise data. The algorithm sets a certain threshold, and as long as the density of the adjacent area of a certain point is greater than this threshold, the clustering can continue. Such methods can discover clusters of arbitrary shape and can filter "noisy" data. It can be found that clusters of arbitrary shapes are the biggest advantage of the algorithm, and its main disadvantage is that it is sensitive to user-defined density parameters, and different thresholds have a greater impact on the clustering results. Typical algorithms of this type of method include DBSCAN algorithm (Density-Based Spatial Clustering of Applications with Noise) and so on.

发明内容 Contents of the invention

由于古建筑物点云数据在高斯球面或者其他曲线上的二维数据的聚类有多种形状,并且其中存在大量的噪音点。因此基于密度的聚类方法比较适用于该类数据的聚类。针对古建筑点云数据的特点,本发明提出了基于DBSCAN算法改进的AQ-DBSCAN算法,并提供一种利用AQ-DBSCAN算法对建筑物激光扫描点云数据的聚类方法,本发明的AQ-DBSCAN算法解决了DBSCAN算法中的邻域半径的自动估算问题,以及有效选取代表点即聚类中扩散时减少运算量以快速进行密度聚类处理的问题。 Because the clustering of point cloud data of ancient buildings on Gaussian spheres or other curves has various shapes, and there are a lot of noise points in them. Therefore, the density-based clustering method is more suitable for the clustering of this type of data. Aiming at the characteristics of ancient building point cloud data, the present invention proposes an improved AQ-DBSCAN algorithm based on the DBSCAN algorithm, and provides a clustering method for building laser scanning point cloud data using the AQ-DBSCAN algorithm. The AQ-DBSCAN algorithm of the present invention The DBSCAN algorithm solves the problem of automatic estimation of the neighborhood radius in the DBSCAN algorithm, and the problem of effectively selecting representative points, that is, reducing the amount of calculation when spreading in the cluster, so as to quickly perform density clustering processing.

本发明将AQ-DBSCAN算法应用到古建筑点云数据的聚类中,以得到点云中的点属于建筑物中哪个部位,为此,本发明提供的技术方案为: The present invention applies the AQ-DBSCAN algorithm to the clustering of ancient building point cloud data to obtain which part of the building the point in the point cloud belongs to. For this reason, the technical solution provided by the present invention is:

一种建筑物激光扫描点云数据的聚类方法,包括: A clustering method for building laser scanning point cloud data, comprising:

步骤一、将对建筑物进行激光扫描后得到的三维点云数据中的每个点都转化为二维数据,获得点云的二维数据的集合X; Step 1. Convert each point in the three-dimensional point cloud data obtained after laser scanning the building into two-dimensional data, and obtain a set X of two-dimensional data of the point cloud;

步骤二、指定密度阈值最小包含点数MinPts,对于集合X中的任意一个点,计算与该点距离最近的最小包含点数MinPts个对象的最远距离,并统计 集合X中所有点的最远距离的最大值和最小值; Step 2: Specify the density threshold minimum number of included points MinPts, for any point in the set X, calculate the farthest distance of the objects with the smallest number of included points MinPts closest to the point, and count the farthest distances of all points in the set X maximum and minimum values;

步骤三、将最远距离的最大值和最小值的差值m分成n等份,以点云中产生最远距离的最小值的点为圆心,以等份的间距m/n为单位逐级递增值为半径,做出n个圆,计算每个圆内点的数量; Step 3: Divide the difference m between the maximum value and the minimum value of the farthest distance into n equal parts, take the point in the point cloud that produces the minimum value of the farthest distance as the center, and use the equal distance m/n as the unit step by step The incremental value is the radius, make n circles, and calculate the number of points in each circle;

步骤四、以差值m作为横坐标,以等份的间距m/n作为横坐标的递增单位区间,以每个圆内点的数量Nm为纵坐标,绘制坐标图,并拟合坐标图上的点,形成绘制曲线; Step 4. Use the difference m as the abscissa, the equal distance m/n as the incremental unit interval of the abscissa, and the number N m of points in each circle as the ordinate, draw a coordinate map, and fit the coordinate map Points on to form a drawn curve;

步骤五、寻找所绘制的曲线的拐点,将该拐点对应的横坐标的数值作为邻域半径σ的取值; Step 5. Find the inflection point of the drawn curve, and use the value of the abscissa corresponding to the inflection point as the value of the neighborhood radius σ;

步骤六、以密度阈值MinPts和邻域半径σ为条件建立AQ-DBSCAN算法,并用AQ-DBSCAN算法对集合X中的点进行聚类,以得到所述点云中的点属于该建筑物中哪个部位的聚类分析。 Step 6. Establish the AQ-DBSCAN algorithm based on the density threshold MinPts and the neighborhood radius σ, and use the AQ-DBSCAN algorithm to cluster the points in the set X to obtain which building the points in the point cloud belong to Cluster analysis of parts.

优选的是,所述的建筑物激光扫描点云数据的聚类方法中,所述步骤六包括: Preferably, in the clustering method of described building laser scanning point cloud data, described step 6 comprises:

6.1)以点云中产生最远距离的最小值的点为圆心,以邻域半径σ为半径,画出第一级圆,如果该第一级圆中的点的个数小于MinPts,则消除该第一级圆,如果大于MinPts;则继续6.2) 6.1) Take the point that produces the minimum value of the farthest distance in the point cloud as the center of the circle, and use the neighborhood radius σ as the radius to draw the first-level circle. If the number of points in the first-level circle is less than MinPts, eliminate If the first-level circle is greater than MinPts; continue to 6.2)

6.2)以cσ其中0<c<1为半径,画出第一级子圆,若第一级圆和第一级子圆之间的环形区域中的点的个数小于MinPts,则选取环形区域中所有的点作为第二级圆心;若环形区域中的点的个数大于等于MinPts,则选取MinPts个点作为第二级圆心; 6.2) With cσ where 0<c<1 is the radius, draw the first-level sub-circle. If the number of points in the annular area between the first-level circle and the first-level sub-circle is less than MinPts, select the annular area All the points in are used as the second-level circle center; if the number of points in the annular area is greater than or equal to MinPts, select MinPts points as the second-level circle center;

6.3)以所选取的第二级圆心为圆心,以邻域半径σ为半径,画出至少一个第二级圆,如果任一个第二级圆中的点的个数小于MinPts,则消除该第二级圆,如果大于MinPts;则重复执行步骤6.2)和6.3),逐级画圆,直到所画出来的圆均被消除为止; 6.3) Draw at least one second-level circle with the selected second-level circle center as the center and the neighborhood radius σ as the radius. If the number of points in any second-level circle is less than MinPts, eliminate the second-level circle. If the secondary circle is greater than MinPts; then repeat steps 6.2) and 6.3), and draw circles step by step until the drawn circles are eliminated;

6.4)将所有级别的圆中的点聚为一类,并在所述点云中去除,而对剩余的点云中的点重复执行步骤二到步骤六的操作。 6.4) Gather the points in the circles of all levels into one class, and remove them from the point cloud, and repeat the operations from step 2 to step 6 for the points in the remaining point cloud.

优选的是,所述的建筑物激光扫描点云数据的聚类方法中,所述步骤6.2)中,选取MinPts个点作为第二级圆心的方法为: Preferably, in the clustering method of the building laser scanning point cloud data, in the step 6.2), the method of selecting MinPts points as the second-level center of circle is:

在该环形区域中,首先选取离第一级圆心距离最远的点作为第一点,然后选取距离该第一点的距离最远的点作为第二点,然后选取距离该第一点和第二点的距离之和最远的点作为第三点,按照此规律直到选取出第MinPts个点。 In the circular area, first select the point farthest from the center of the first level as the first point, then select the point farthest from the first point as the second point, and then select the distance between the first point and the second point. The farthest point of the sum of the distances of the two points is taken as the third point, and follow this rule until the MinPts point is selected.

优选的是,所述的建筑物激光扫描点云数据的聚类方法中,所述MinPts为4。 Preferably, in the clustering method of the building laser scanning point cloud data, the MinPts is 4.

优选的是,所述的建筑物激光扫描点云数据的聚类方法中,所述c为3/4。 Preferably, in the clustering method of building laser scanning point cloud data, the c is 3/4.

优选的是,所述的建筑物激光扫描点云数据的聚类方法中,所述拐点为斜率变化最大的点。 Preferably, in the clustering method of building laser scanning point cloud data, the inflection point is the point with the largest slope change.

优选的是,所述的建筑物激光扫描点云数据的聚类方法中,所述步骤一中,对建筑物进行激光扫描后得到的三维点云数据中的每个点都映射到高斯球从而转化为二维数据。 Preferably, in the clustering method of the building laser scanning point cloud data, in the first step, each point in the three-dimensional point cloud data obtained after the laser scanning of the building is mapped to a Gaussian sphere so that into two-dimensional data.

下面介绍DBSCAN算法的基本概念。 The basic concept of DBSCAN algorithm is introduced below.

DBSCAN算法: DBSCAN algorithm:

点集X中一点xi处的密度一般可以做如下定义: The density at a point x i in a point set X can generally be defined as follows:

ff DD. (( xx )) == &Sigma;&Sigma; ii == 11 nno KK (( xx -- xx ii &sigma;&sigma; )) Uu (( xx ii ))

其中U(xi)是点xi的权重;是核函数,核函数通常选择在原点的对称密度函数,如高斯函数、Epanechnikov核函数等;σ为核函数的带宽,实际上代表了一个以σ为半径的r球邻域。令 Where U( xi ) is the weight of point x i ; Is the kernel function, the kernel function usually chooses a symmetric density function at the origin, such as Gaussian function, Epanechnikov kernel function, etc.; σ is the bandwidth of the kernel function, which actually represents an r-sphere neighborhood with σ as the radius. make

U(xi)={1|xi∈X} U(x i )={1|x i ∈X}

KK (( xx -- xx ii &sigma;&sigma; )) == 11 ,, || || xx -- xx ii || || &sigma;&sigma; &le;&le; 11 00 ,, || || xx -- xx ii || || &sigma;&sigma; >> 11

则fD(x)就是DBSCAN算法中对密度的定义。 Then f D (x) is the definition of density in the DBSCAN algorithm.

定义1σ邻域:给定数据集合X,x0是集合X中的一个对象,则以x0为中心,以σ为半径的维超球体区域称为x0的σ邻域σx0,即: Define the 1σ neighborhood: given a data set X, x 0 is an object in the set X, then the dimensional hypersphere area with x 0 as the center and σ as the radius is called the σ neighborhood σx 0 of x 0 , namely:

σ(x0)={x∈X|D(x,x0)≤σ} σ(x 0 )={x∈X|D(x, x 0 )≤σ}

其中,D(x,x0)表示x与x0间的距离。 Wherein, D(x, x 0 ) represents the distance between x and x 0 .

定义2核心点:对于x0∈X,给定整数MinPts,如果σ(x0)内的对象个数满足|Nσ(x0)|≥MinPts,则称x0为(σ,MinPts)条件下的核心点。落在某个核心点的σ邻域内,但不是核心点的对象,称为边界点。 Definition 2 core point: For x 0 ∈ X, given an integer MinPts, if the number of objects in σ(x 0 ) satisfies |Nσ(x 0 )|≥MinPts, then x 0 is called (σ, MinPts) under the condition core point. Objects that fall within the σ neighborhood of a core point, but are not core points, are called boundary points.

定义3直接密度可达:在条件(σ,MinPts)下,如果对象x和x0满足: Definition 3 Direct density reachability: Under the condition (σ, MinPts), if the objects x and x 0 satisfy:

x∈σ(x0); x∈σ(x 0 );

|Nσ(x0)|≥MinPts。 |Nσ(x 0 )|≥MinPts.

则称x是从x0直接密度可达的。 Then x is said to be directly density-reachable from x 0 .

定义4密度可达:在数据集X中,对于对象序列x0,x1,x2,...,xn,如果在条件(σ,MinPts)下,xi到xi+1是直接密度可达的(0≤i<n),则称对象x0到xn是密度可达的。 Definition 4 Density reachable: In a data set X, for an object sequence x 0 , x 1 , x 2 , ..., x n , if under the condition (σ, MinPts), xi to xi+1 are direct Density reachable (0≤i<n), then the object x 0 to x n is said to be density reachable.

定义5密度相连:给定数据集X,在(σ,MinPts)条件下,如果存在对象x0,xi和xj,使得x0到xi和x0到xj是密度可达的,那么称xi和xj在(σ,MinPts)条件下是密度相连的。 Definition 5 Density connected: Given a data set X, under the condition of (σ, MinPts), if there are objects x 0 , x i and x j such that x 0 to x i and x 0 to x j are density reachable, Then it is said that xi and x j are density connected under the condition of (σ, MinPts).

定义6簇和噪声:所有密度相连的对象构成一个簇,如果一个对象不在任何簇中,那么这个对象称为噪声。 Definition 6 Clusters and noise: All density-connected objects form a cluster, and if an object is not in any cluster, then this object is called noise.

DBSCAN的算法步骤具体如下: The algorithm steps of DBSCAN are as follows:

DBSCAN算法需要预先给定σ和MinPts这两个参数,通过迭代搜索密度直接可达的点来建立簇。 The DBSCAN algorithm needs to pre-specify the two parameters σ and MinPts, and establish clusters by iteratively searching for points directly accessible to the density.

古建筑物构件的几何形状主要包括平面、圆柱等类型,映射到高斯球上为点、线等形状。DBSCAN算法能够识别任意形状的聚类,对于古建筑物高斯映射点云的初步分割具有较强的适用性。由于DBSCAN算法对于每个点都要进行邻域查询和计算,其运算效率较低,DBSCAN算法的时间复杂度为O(n2)。对于数据量很大的古建筑点云的来说,DBSCAN聚类算法的效率尤其显得低。 The geometric shapes of ancient building components mainly include planes, cylinders and other types, which are mapped to Gaussian spheres into shapes such as points and lines. The DBSCAN algorithm can identify clusters of arbitrary shapes, and has strong applicability for the preliminary segmentation of Gaussian mapping point clouds of ancient buildings. Since the DBSCAN algorithm needs to perform neighborhood query and calculation for each point, its operation efficiency is low, and the time complexity of the DBSCAN algorithm is O(n 2 ). For point clouds of ancient buildings with a large amount of data, the efficiency of the DBSCAN clustering algorithm is particularly low.

DBSCAN算法在确定(σ,MinPts)参数时,需要进行统计计算,绘制密度和点个数的曲线图,再通过人工选取来确定参数,人工选取显然不适用自动化古建筑点云分割需求。 When the DBSCAN algorithm determines the (σ, MinPts) parameters, it needs to perform statistical calculations, draw a graph of the density and the number of points, and then determine the parameters through manual selection. Manual selection is obviously not suitable for automatic ancient building point cloud segmentation requirements.

DBSCAN算法在某类别的增长时需要判断邻域内的每个点是否是核心点,这就要计算所有点σ(xi)邻域内的点个数。尽管可以在高斯映射后的点云数据上建立MultyGrid-KD树索引以加快判断速度,但该算法的运行效率依然较低。 The DBSCAN algorithm needs to judge whether each point in the neighborhood is a core point when a category grows, and it needs to calculate the number of points in the neighborhood of all points σ( xi ). Although the MultyGrid-KD tree index can be established on the point cloud data after Gaussian mapping to speed up the judgment, the operation efficiency of the algorithm is still low.

周水庚等(2000年)提出的FDBSCAN算法是针对DBSCAN的改进算法。FDBSCAN算法提出在邻域内选择指定个数的代表点(而不是所有邻域点)来代替进行类别增长。代表点的个数和空间的维度相关,即n维空间的代表点个数为2n个,这里的代表点即是指除圆点之外的第二级圆点、第三级圆点等等。 The FDBSCAN algorithm proposed by Zhou Shuigeng et al. (2000) is an improved algorithm for DBSCAN. The FDBSCAN algorithm proposes to select a specified number of representative points (not all neighborhood points) in the neighborhood instead of category growth. The number of representative points is related to the dimension of the space, that is, the number of representative points in n-dimensional space is 2n, and the representative points here refer to the second-level dots, third-level dots, etc. .

如图2中所示,展示了二维空间四个代表点的发散性对行聚类扩展效果的影响。在代表点的发散性不好的情况下,存在某点和xi密度可达,但通过代表点邻域搜索却搜索不到此点的情况。图2中点A指向xi,1指向的圆是σ(xi)的区域范围,点B是从σ(xi)选取出来的代表点,即第二级圆心,2指向的圆是代表点即第二级圆心的邻域区域范围,点C是从代表点B的邻域中进一步选出来的用来进行聚类扩展的代表点即第三级圆心。该图中,由于代表点都集中在邻域的上部区域,导致聚类的扩展方向都向上方发展,下方点对象无法被划归到相同类别中。 As shown in Figure 2, the influence of the divergence of the four representative points in the two-dimensional space on the expansion effect of row clustering is demonstrated. When the divergence of the representative points is not good, there is a situation that a certain point and xi density can be reached, but this point cannot be searched through the neighborhood search of the representative points. In Figure 2, point A points to x i , the circle pointed to by 1 is the area range of σ( xi ), point B is a representative point selected from σ( xi ), that is, the center of the second-level circle, and the circle pointed to by 2 represents The point is the range of the neighborhood area of the second-level circle center, and point C is the representative point further selected from the neighborhood representing point B for cluster expansion, that is, the third-level circle center. In this figure, since the representative points are all concentrated in the upper area of the neighborhood, the expansion direction of the clustering is all upward, and the lower point objects cannot be classified into the same category.

针对以上问题,一方面需要在后续对这些点及形成的相关小类进行合并处理。另一方面在代表点选取上,要兼顾算法的快速性和代表点的扩散性。周水庚等(2000年)提出了两个代表点的选取算法,但在算法效率和代表点的发散性上都不适合高斯球上的密集点云数据。 In view of the above problems, on the one hand, it is necessary to merge these points and related subcategories formed later. On the other hand, in the selection of representative points, both the speed of the algorithm and the diffusion of representative points should be taken into account. Zhou Shuigeng et al. (2000) proposed two algorithms for selecting representative points, but they are not suitable for dense point cloud data on the Gaussian sphere in terms of algorithm efficiency and divergence of representative points.

相对于DBSCAN、FDBSCAN算法,AQ-DBSCAN算法的改进主要体现在两点:一是在给定MinPts参数的前提下,提供了σ的自动估算,二是实现了更为快速的密度聚类算法。 Compared with DBSCAN and FDBSCAN algorithms, the improvement of AQ-DBSCAN algorithm is mainly reflected in two points: one is to provide automatic estimation of σ under the premise of given MinPts parameters, and the other is to realize a faster density clustering algorithm.

相对于FDBSCAN算法,AQ-DBSCAN在搜索算法除了依据高斯球曲面上数据的二维特性,将代表点个数定为4个,从而减少运算量外,还提出了适用于密集点云数据的代表点选取算法,在保证代表点扩散性的基础上提高代表点选取效率。 Compared with the FDBSCAN algorithm, the AQ-DBSCAN search algorithm not only sets the number of representative points to four according to the two-dimensional characteristics of the data on the Gaussian spherical surface, thereby reducing the amount of calculation, but also proposes a representative point cloud data suitable for dense point cloud data. The point selection algorithm improves the efficiency of representative point selection on the basis of ensuring the spread of representative points.

附图说明 Description of drawings

图1为本发明中以差值m作为横坐标,以每个圆内点的数量Nm为纵坐拟合形成的绘制曲线; Fig. 1 is in the present invention with difference m as abscissa, with the number N of points in each circle as the plotted curve formed by ordinate fitting;

图2为FDBSCAN算法中二维空间四个代表点的发散性对行聚类扩展效果的影响图; Figure 2 is a graph showing the influence of the divergence of the four representative points in the two-dimensional space on the effect of row clustering expansion in the FDBSCAN algorithm;

图3(a)是本发明中的一个实施例中的点云数据图; Fig. 3 (a) is the point cloud data figure in one embodiment of the present invention;

图3(b)是与图3(a)对应的点云数据的高斯映射图; Figure 3(b) is a Gaussian map of the point cloud data corresponding to Figure 3(a);

图3(c)是本发明一个实施例中自动统计的Nm曲线图; Fig. 3 (c) is the N m curve figure of automatic statistics in one embodiment of the present invention;

图3(d)是本发明一个实施例中利用AQ-DBSCAN算法得到的高斯球上 的聚类效果图; Fig. 3 (d) is the clustering effect figure on the Gaussian sphere that utilizes AQ-DBSCAN algorithm to obtain in one embodiment of the present invention;

图3(e)是本发明一个实施例中对应到空间曲面上的聚类效果图; Figure 3 (e) is a clustering effect diagram corresponding to a space surface in one embodiment of the present invention;

图3(f)是本发明一个实施例中利用DBSCAN算法得到的高斯球上的聚类效果图; Fig. 3 (f) is the clustering effect figure on the Gaussian sphere that utilizes DBSCAN algorithm to obtain in one embodiment of the present invention;

图3(g)是本发明一个实施例中利用AQ-DBSCAN算法后再进行下一步的处理后对太和殿外柱子点云数据的分割结果图; Fig. 3 (g) utilizes AQ-DBSCAN algorithm in an embodiment of the present invention and then carries out the next step after the processing to the segmentation result figure of the column point cloud data outside the Hall of Supreme Harmony;

图4(a)是本发明中的另一个实施例中的点云数据图; Fig. 4 (a) is the point cloud data figure in another embodiment in the present invention;

图4(b)是与图4(a)对应的点云数据的高斯映射图; Figure 4(b) is a Gaussian map of the point cloud data corresponding to Figure 4(a);

图4(c)是本发明另一个实施例中自动统计的Nm曲线图; Fig. 4 (c) is the N m curve figure of automatic statistics in another embodiment of the present invention;

图4(d)是本发明另一个实施例中利用AQ-DBSCAN算法得到的高斯球上的聚类效果图; Fig. 4 (d) is the clustering effect figure on the Gaussian sphere that utilizes AQ-DBSCAN algorithm to obtain in another embodiment of the present invention;

图4(e)是本发明另一个实施例中对应到空间曲面上的聚类效果图; Fig. 4 (e) is in another embodiment of the present invention, corresponds to the clustering effect diagram on the space surface;

图4(f)是本发明另一个实施例中利用DBSCAN算法得到的高斯球上的聚类效果图; Fig. 4 (f) is the clustering effect figure on the Gaussian sphere that utilizes DBSCAN algorithm to obtain in another embodiment of the present invention;

图4(g)是本发明另一个实施例中利用AQ-DBSCAN算法后再进行下一步的处理后对太和殿外门梁点云数据的分割结果图; Fig. 4 (g) utilizes AQ-DBSCAN algorithm in another embodiment of the present invention to carry out the segmentation result diagram of the door beam point cloud data outside the Hall of Supreme Harmony after the next step of processing again;

图5(a)是本发明中的再一个实施例中的点云数据图; Fig. 5 (a) is the point cloud data figure in another embodiment among the present invention;

图5(b)是与图5(a)对应的点云数据的高斯映射图; Figure 5(b) is a Gaussian map of the point cloud data corresponding to Figure 5(a);

图5(c)是本发明再一个实施例中自动统计的Nm曲线图; Fig. 5 (c) is the N m curve figure of automatic statistics in another embodiment of the present invention;

图5(d)是本发明再一个实施例中利用AQ-DBSCAN算法得到的高斯球上的聚类效果图; Fig. 5 (d) is the clustering effect figure on the Gaussian sphere that utilizes AQ-DBSCAN algorithm to obtain in another embodiment of the present invention;

图5(e)是本发明再一个实施例中对应到空间曲面上的聚类效果图; Fig. 5 (e) is a clustering effect diagram corresponding to the space surface in another embodiment of the present invention;

图5(f)是本发明再一个实施例中利用DBSCAN算法得到的高斯球上的聚类效果图; Fig. 5 (f) is the clustering effect figure on the Gaussian sphere that utilizes DBSCAN algorithm to obtain in another embodiment of the present invention;

图5(g)是本发明再一个实施例中利用AQ-DBSCAN算法后再进行下一步的处理后对太和门部分点云数据的分割结果图; Fig. 5 (g) is the segmentation result figure to the section point cloud data of Gate of Supreme Harmony after utilizing AQ-DBSCAN algorithm to carry out the processing of next step again in another embodiment of the present invention;

图6是DBSCAN和本发明的AQ-DBSCAN的算法耗时比较图; Fig. 6 is the time-consuming comparison diagram of the algorithm of DBSCAN and AQ-DBSCAN of the present invention;

图7是FDBSCAN和本发明的AQ-DBSCAN的算法耗时比较图。 Fig. 7 is a time-consuming comparison diagram of the algorithms of FDBSCAN and AQ-DBSCAN of the present invention.

具体实施方式 Detailed ways

下面结合附图对本发明做进一步的详细说明,以令本领域技术人员参照说明书文字能够据以实施。 The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.

如图1所示,本发明提供一种建筑物激光扫描点云数据的聚类方法,包括: As shown in Figure 1, the present invention provides a kind of clustering method of building laser scanning point cloud data, comprising:

步骤一、将对建筑物进行激光扫描后得到的三维点云数据中的每个点都映射到高斯球上转化为二维数据,获得点云的二维数据的集合X; Step 1. Map each point in the 3D point cloud data obtained after laser scanning the building to a Gaussian sphere and convert it into 2D data, and obtain a set X of 2D data of the point cloud;

步骤二、指定密度阈值最小包含点数MinPts,对于集合X中的任意一个点,计算与该点距离最近的最小包含点数MinPts个对象的最远距离,并统计集合X中所有点的最远距离的最大值和最小值;在二维数据的划分中一般取MinPts为4。 Step 2: Specify the density threshold minimum number of included points MinPts, for any point in the set X, calculate the farthest distance of the objects with the smallest number of included points MinPts closest to the point, and count the farthest distances of all points in the set X Maximum value and minimum value; in the division of two-dimensional data, MinPts is generally taken as 4.

步骤三、将最远距离的最大值和最小值的差值m分成n等份,以点云中产生最远距离的最小值的点为圆心,以等份的间距m/n为单位逐级递增值为半径,做出n个圆,计算每个圆内点的数量; Step 3: Divide the difference m between the maximum value and the minimum value of the farthest distance into n equal parts, take the point in the point cloud that produces the minimum value of the farthest distance as the center, and use the equal distance m/n as the unit step by step The incremental value is the radius, make n circles, and calculate the number of points in each circle;

步骤四、以差值m作为横坐标,以等份的间距m/n作为横坐标的递增单位区间,以每个圆内点的数量Nm为纵坐标,绘制坐标图,并拟合坐标图上的点,形成如图1所示的绘制曲线;图1中,由于平面和柱面在高斯球上的最远距离有一定差别,因此该曲线在向上延展的过程中表现出些微的波浪起伏。 Step 4. Use the difference m as the abscissa, the equal distance m/n as the incremental unit interval of the abscissa, and the number N m of points in each circle as the ordinate, draw a coordinate map, and fit the coordinate map The points above form the drawn curve shown in Figure 1; in Figure 1, due to the difference in the farthest distance between the plane and the cylinder on the Gaussian sphere, the curve shows slight undulations in the process of extending upward .

步骤五、寻找所绘制的曲线的拐点,该拐点为斜率变化最大的点,将该拐点对应的横坐标的数值作为邻域半径σ的取值。寻找拐点的方法为:连接如图1所示的曲线中的起点和终点形成直线L,计算该曲线上的每一点到直线L的距离H,统计H最大的点,即为该拐点。 Step 5. Find the inflection point of the drawn curve, the inflection point is the point with the largest slope change, and the value of the abscissa corresponding to the inflection point is taken as the value of the neighborhood radius σ. The method of finding the inflection point is: connect the starting point and the end point of the curve shown in Figure 1 to form a straight line L, calculate the distance H from each point on the curve to the straight line L, and count the point with the largest H as the inflection point.

邻域半径σ的取值自动统计的算法步骤具体如下: The algorithm steps for the automatic statistics of the value of the neighborhood radius σ are as follows:

步骤六、以密度阈值MinPts和邻域半径σ为条件建立AQ-DBSCAN算法,并用AQ-DBSCAN算法对集合X中的点进行聚类,以得到所述点云中的点属于该建筑物中哪个部位的聚类分析。 Step 6. Establish the AQ-DBSCAN algorithm based on the density threshold MinPts and the neighborhood radius σ, and use the AQ-DBSCAN algorithm to cluster the points in the set X to obtain which building the points in the point cloud belong to Cluster analysis of parts.

在该步骤六包括: In this step six include:

6.1)以点云中产生最远距离的最小值的点为圆心,以邻域半径σ为半径,画出第一级圆,如果该第一级圆中的点的个数小于MinPts,则消除该第一级圆,如果大于MinPts;则继续6.2),即选取代表点进行点的发散。 6.1) Take the point that produces the minimum value of the farthest distance in the point cloud as the center of the circle, and use the neighborhood radius σ as the radius to draw the first-level circle. If the number of points in the first-level circle is less than MinPts, eliminate If the first-level circle is larger than MinPts; continue to 6.2), that is, select representative points to diverge points.

6.2)以cσ其中0<c<1为半径,画出第一级子圆,若第一级圆和第一级子圆之间的环形区域中的点的个数小于MinPts,则选取环形区域中所有的点作为第二级圆心;若环形区域中的点的个数大于等于MinPts,则选取MinPts个点作为第二级圆心。其中,选取MinPts个点作为第二级圆心的方法为: 6.2) With cσ where 0<c<1 is the radius, draw the first-level sub-circle. If the number of points in the annular area between the first-level circle and the first-level sub-circle is less than MinPts, select the annular area All the points in are used as the second-level circle center; if the number of points in the annular area is greater than or equal to MinPts, select MinPts points as the second-level circle center. Among them, the method of selecting MinPts points as the second-level circle center is:

在该环形区域中,首先选取离第一级圆心距离最远的点作为第一点,然后选取距离该第一点的距离最远的点作为第二点,然后选取距离该第一点和第二点的距离之和最远的点作为第三点,按照此规律直到选取出第MinPts个点。 In the circular area, first select the point farthest from the center of the first level as the first point, then select the point farthest from the first point as the second point, and then select the distance between the first point and the second point. The farthest point of the sum of the distances of the two points is taken as the third point, and follow this rule until the MinPts point is selected.

即设x0为点集X中的一个对象,令0<c<σ,则 That is, let x 0 be an object in the point set X, let 0<c<σ, then

c(x0)={x∈σ(x0)|ε<D(χ,x0)≤σ} c(x 0 )={x∈σ(x 0 )|ε<D(χ, x 0 )≤σ}

c(x0)是x0邻域内第二级圆心(即代表点)的候选点集。c(x0)是以x0为中心,位于c和σ之间的环状区域。在σ(x0)的外围区域选取第二级圆心(代表点),有助于增强代表的扩散性并减少类别扩展时邻域查询的频率。c越接近于σ,则候选点的数量越少,搜索代表点的效率越高,但同时也可能会导致 点的发散性不好。针对古建筑点云数据特点,综合考虑扩散性和高效性因素,本算法的c取值为3σ/4。 c(x 0 ) is the candidate point set of the second-level circle center (ie representative point) in the neighborhood of x 0 . c(x 0 ) is a ring-shaped region centered on x 0 and located between c and σ. Selecting the second-level circle center (representative point) in the peripheral area of σ(x 0 ) is helpful to enhance the diffuseness of representatives and reduce the frequency of neighborhood queries during category expansion. The closer c is to σ, the fewer the number of candidate points and the higher the efficiency of searching for representative points, but at the same time it may lead to poor divergence of points. According to the characteristics of point cloud data of ancient buildings, considering the factors of diffusion and efficiency, the value of c in this algorithm is 3σ/4.

6.3)以所选取的第二级圆心为圆心,以邻域半径σ为半径,画出至少一个第二级圆,如果任一个第二级圆中的点的个数小于MinPts,则消除该第二级圆,如果大于MinPts;则重复执行步骤6.2)和6.3),逐级画圆,直到所画出来的圆均被消除为止; 6.3) Draw at least one second-level circle with the selected second-level circle center as the center and the neighborhood radius σ as the radius. If the number of points in any second-level circle is less than MinPts, eliminate the second-level circle. If the secondary circle is greater than MinPts; then repeat steps 6.2) and 6.3), and draw circles step by step until the drawn circles are eliminated;

6.4)将所有级别的圆中的点聚为一类,并在所述点云中去除,而对剩余的点云中的点重复执行步骤二到步骤六的操作。 6.4) Gather the points in the circles of all levels into one class, and remove them from the point cloud, and repeat the operations from step 2 to step 6 for the points in the remaining point cloud.

所述的建筑物激光扫描点云数据的聚类方法中,所述步骤6.2)中,选取MinPts个点作为第二级圆心的方法为: In the clustering method of the described building laser scanning point cloud data, in the described step 6.2), the method of selecting MinPts points as the second level of circle center is:

在该环形区域中,首先选取离第一级圆心距离最远的点作为第一点P1,然后选取距离该第一点的距离最远的点作为第二点,然后选取距离该第一点和第二点的距离之和最远的点作为第三点,按照此规律直到选取出第MinPts个点。 In this circular area, first select the point farthest from the center of the first level as the first point P1, then select the point farthest from the first point as the second point, and then select the distance from the first point and The point with the farthest sum of the distances of the second point is taken as the third point, and follow this rule until the MinPts point is selected.

即:设已有代表点集为P,待搜索的代表点为pk,则 That is: suppose the existing representative point set is P, and the representative point to be searched is p k , then

pp kk == maxmax xx &Element;&Element; cc (( xx 00 )) DD. (( xx ,, PP ))

其中 in

DD. (( xx ,, PP )) == minmin pp ii &Element;&Element; PP || || xx -- pp ii || || 22 ,,

以下是第二级圆心选取算法的具体描述: The following is the specific description of the second-level circle center selection algorithm:

本发明的AQ-DBSCAN的完整算法如下: The complete algorithm of AQ-DBSCAN of the present invention is as follows:

下面列举一些利用本发明的方法获得的建筑物的点云的聚类的实施例。本发明中的数据来源于故宫太和门及太和殿的地面激光扫描仪获取的点云。 Some examples of clustering of point clouds of buildings obtained by the method of the present invention are listed below. The data in the present invention comes from the point cloud acquired by the ground laser scanner of the Gate of Supreme Harmony in the Forbidden City and the Hall of Supreme Harmony.

在一个实施例中,如图3所示,本发明采集了太和殿外的柱子数据并进行了聚类。图3(a)是太和殿外柱子的点云数据。该点云采样的点数为141999个。图3(b)是与该柱子对应的高斯映射图。图3(c)是AQ-DBSCAN算法自动统计的Nm曲线图以及估算出的σ参数值(0.067831)。DBSCAN和FDBSCAN算法在参数估算上主要靠人工判断Nm曲线的形状和延生趋势的变化点位。从图3(c)中可以看出,AQ-DBSCAN算法给出σ值符合人工判断 的结果。图3(d)是在高斯球上的聚类效果图,由于圆柱和部分附属物在高斯球上有重叠,因此将其聚为一类,这些要通过以后的重叠区分析进行进一步分割。图3(e)是对应到空间曲面上的聚类效果图。图3(f)是采用现有的DBSCAN算法在高斯球上得到的聚类,从高斯球上可以看出,利用AQ-DBSCAN算法和DBSCAN算法得到的聚类效果完全一致。图3(g)是利用本发明的方法后再进行下一步的处理后对太和殿外柱子点云的分割结果图,可以看出,利用本发明的方法后,对古建筑点云的数据分割能取得较好的适用性。 In one embodiment, as shown in FIG. 3 , the present invention collects and clusters the column data outside the Hall of Supreme Harmony. Figure 3(a) is the point cloud data of the pillars outside the Hall of Supreme Harmony. The number of points sampled in this point cloud is 141999. Figure 3(b) is a Gaussian map corresponding to this column. Figure 3(c) is the N m curve of the automatic statistics of the AQ-DBSCAN algorithm and the estimated σ parameter value (0.067831). DBSCAN and FDBSCAN algorithms mainly rely on manual judgment of the shape of the N m curve and the change point of the extended trend in parameter estimation. It can be seen from Figure 3(c) that the AQ-DBSCAN algorithm gives the result that the σ value is in line with manual judgment. Figure 3(d) is the clustering effect diagram on the Gaussian sphere. Because the cylinders and some appendages overlap on the Gaussian sphere, they are clustered into one category, and these will be further divided through the analysis of the overlapping area in the future. Figure 3(e) is a clustering effect map corresponding to the space surface. Figure 3(f) is the clustering obtained on the Gaussian sphere using the existing DBSCAN algorithm. It can be seen from the Gaussian sphere that the clustering effects obtained by using the AQ-DBSCAN algorithm and the DBSCAN algorithm are completely consistent. Fig. 3 (g) is to utilize the method of the present invention to carry out the segmentation result diagram of the column point cloud outside the Hall of Supreme Harmony after the next step of processing again, as can be seen, after utilizing the method of the present invention, to the data of ancient building point cloud Segmentation can achieve better applicability.

在另一个实施例中,如图4所示,本发明采集了太和殿外门梁的数据并进行了聚类。图4(a)是太和殿外柱子上边横梁的点云数据。该点云采样的点数为642984个。图4(b)是与之对应的高斯映射图。图4(c)是AQ-DBSCAN算法自动统计的Nm曲线图以及的估算出的σ参数值(0.011236)。从图3(c)中可以看出,AQ-DBSCAN算法给出σ值符合人工判断的结果。图4(d)是4(a)在高斯球上的聚类效果图,图4(e)是对应到空间曲面上的聚类效果图,从图4(e)中可以看出,AQ-DBSCAN聚类将横梁的正面和侧面区分开来。图4(f)是采用现有的DBSCAN算法在高斯球上得到的聚类,从高斯球上可以看出,利用AQ-DBSCAN算法和DBSCAN算法得到的聚类效果完全一致。图4(g)是利用本发明的方法后再进行下一步的处理后对太和殿外门梁点云的分割结果图,可以看出,利用本发明的方法后,对古建筑点云的数据分割能取得较好的适用性。 In another embodiment, as shown in FIG. 4 , the present invention collects and clusters the data of the door beams outside the Hall of Supreme Harmony. Figure 4(a) is the point cloud data of the beams on the pillars outside the Hall of Supreme Harmony. The number of points sampled in this point cloud is 642984. Figure 4(b) is the corresponding Gaussian map. Figure 4(c) is the N m curve of the automatic statistics of the AQ-DBSCAN algorithm and the estimated σ parameter value (0.011236). It can be seen from Fig. 3(c) that the AQ-DBSCAN algorithm gives the result that the σ value conforms to the manual judgment. Figure 4(d) is the clustering effect diagram of 4(a) on the Gaussian sphere, and Figure 4(e) is the clustering effect diagram corresponding to the space surface. It can be seen from Figure 4(e) that AQ- The DBSCAN clustering differentiates the front and sides of the beam. Figure 4(f) is the clustering obtained by using the existing DBSCAN algorithm on the Gaussian sphere. It can be seen from the Gaussian sphere that the clustering effects obtained by using the AQ-DBSCAN algorithm and the DBSCAN algorithm are completely consistent. Fig. 4 (g) is to utilize the method of the present invention to carry out the segmentation result figure of the door beam point cloud outside the Hall of Supreme Harmony after the next step of processing again, as can be seen, after utilizing the method of the present invention, to the ancient building point cloud Data segmentation can achieve better applicability.

在再一个实施例中,如图5所示,本发明采集了太和门的部分数据,包括一个柱子和与之关联的横梁。图5(a)包括该柱子和该横梁的点云数据。该点云采样的点数为5771个。图5(b)是与之对应的高斯映射图。图5(c)是AQ-DBSCAN算法自动统计的Nm曲线图以及的估算出的σ参数值(0.014331)。从图中也可以看出,AQ-DBSCAN算法给出σ值符合人工判断的结果。图5(d)是在高斯球上的聚类效果图,由于圆柱和横梁在高斯球上有重叠,因此也将其聚为一类。图5(e)是对应到空间曲面上的聚类效果图。图5(f)是采用现有的DBSCAN算法在高斯球上得到的聚类,从高斯球上可以看出,利用AQ-DBSCAN算法和DBSCAN算法得到的聚类效果完全一致。 图5(g)是利用本发明的方法后再进行下一步的处理后对太和门部分数据的点云的分割结果图,可以看出,利用本发明的方法后,对古建筑点云的数据分割能取得较好的适用性。 In yet another embodiment, as shown in FIG. 5 , the present invention collects part of the data of the Gate of Supreme Harmony, including a column and its associated beams. Figure 5(a) includes the point cloud data of the column and the beam. The number of points sampled in this point cloud is 5771. Figure 5(b) is the corresponding Gaussian map. Figure 5(c) is the N m curve of the automatic statistics of the AQ-DBSCAN algorithm and the estimated σ parameter value (0.014331). It can also be seen from the figure that the AQ-DBSCAN algorithm gives the σ value in line with the result of manual judgment. Figure 5(d) is a clustering effect diagram on the Gaussian sphere. Since the cylinder and the beam overlap on the Gaussian sphere, they are also clustered into one category. Figure 5(e) is a clustering effect map corresponding to the space surface. Figure 5(f) is the clustering obtained by using the existing DBSCAN algorithm on the Gaussian sphere. It can be seen from the Gaussian sphere that the clustering effects obtained by using the AQ-DBSCAN algorithm and the DBSCAN algorithm are completely consistent. Fig. 5 (g) is to utilize the method of the present invention to carry out the segmentation result figure of the point cloud of the door of Supreme Harmony part data after the next step of processing again, as can be seen, after utilizing the method of the present invention, to the ancient building point cloud Data segmentation can achieve better applicability.

相对于DBSCAN算法,本发明利用AQ-DBSCAN进行区域扩展的方法,在保持算法效果一致的前提下,聚类速度有了极大的提高。 Compared with the DBSCAN algorithm, the method of the present invention uses AQ-DBSCAN to expand the region, and the clustering speed is greatly improved under the premise of keeping the algorithm effect consistent.

上面三个实施例的算法耗时如表1所示: The algorithm time consumption of the above three embodiments is shown in Table 1:

表1 DBSCAN、FDBSCAN、AQ-DBSCAN聚类算法的耗时 Table 1 Time-consuming of DBSCAN, FDBSCAN, AQ-DBSCAN clustering algorithms

在图6和图7中,以时间为横坐标,以处理的点数为总坐标做出耗时曲线,在图6中曲线A为DBSCAN算法的耗时,曲线B为AQ-DBSCAN算法的耗时,在图7中曲线C为FDBSCAN算法的耗时,曲线D为AQ-DBSCAN算法的耗时。从图6和图7及表1所示,从耗时比较中可以看出,AQ-DBSCAN算法的耗时明显少于DBSCAN和FDBSCAN算法。点数越多,AQ-DBSCAN算法的加速越明显。例如对于141999个点,DBSCAN耗时是AQ-DBSCAN的6倍,对于642984个点是65倍。 In Figure 6 and Figure 7, the time-consuming curve is made with time as the abscissa and the number of processed points as the total coordinate. In Figure 6, curve A is the time-consuming of the DBSCAN algorithm, and curve B is the time-consuming of the AQ-DBSCAN algorithm , in Fig. 7, the curve C is the time consumption of the FDBSCAN algorithm, and the curve D is the time consumption of the AQ-DBSCAN algorithm. As shown in Figure 6 and Figure 7 and Table 1, it can be seen from the time-consuming comparison that the time-consuming of the AQ-DBSCAN algorithm is significantly less than that of the DBSCAN and FDBSCAN algorithms. The more points, the more obvious the acceleration of AQ-DBSCAN algorithm. For example, for 141999 points, DBSCAN takes 6 times as long as AQ-DBSCAN, and for 642984 points, it takes 65 times.

由于古建筑点云的特殊性,使得通用邻域的分割方法在应用时往往具有较大不适用性。针对这些问题,本发明提出的适用于古建筑点云的一种聚类方法,将点云数据映射到高斯球上转化为二维数据后,对映射点集进行聚类,筛选出核心点集,为后期的特征提取和分割打下基础。 Due to the particularity of point clouds of ancient buildings, the general neighborhood segmentation method is often inapplicable when applied. In response to these problems, the present invention proposes a clustering method suitable for point clouds of ancient buildings. After the point cloud data is mapped onto a Gaussian sphere and transformed into two-dimensional data, the mapped point sets are clustered, and the core point set is screened out. , laying the foundation for later feature extraction and segmentation.

本发明为所有大型建筑的分割、存储、表达作了有益的探索,具有重要的理论价值和社会意义。 The invention makes a beneficial exploration for the division, storage and expression of all large buildings, and has important theoretical value and social significance.

尽管本发明的实施方案已公开如上,但其并不仅仅限于说明书和实施方式中所列运用,它完全可以被适用于各种适合本发明的领域,对于熟悉本领域的人员而言,可容易地实现另外的修改,因此在不背离权利要求及等同范 围所限定的一般概念下,本发明并不限于特定的细节和这里示出与描述的图例。 Although the embodiment of the present invention has been disclosed as above, it is not limited to the use listed in the specification and implementation, it can be applied to various fields suitable for the present invention, and it can be easily understood by those skilled in the art Therefore, the invention is not limited to the specific details and examples shown and described herein without departing from the general concept defined by the claims and their equivalents.

Claims (7)

1.一种建筑物激光扫描点云数据的聚类方法,其特征在于,包括:1. A clustering method of building laser scanning point cloud data, is characterized in that, comprises: 步骤一、将对建筑物进行激光扫描后得到的三维点云数据中的每个点都转化为二维数据,获得点云的二维数据的集合X;Step 1. Convert each point in the three-dimensional point cloud data obtained after laser scanning the building into two-dimensional data, and obtain a set X of two-dimensional data of the point cloud; 步骤二、指定密度阈值最小包含点数MinPts,对于集合X中的任意一个点,计算与该点距离最近的最小包含点数MinPts个对象的最远距离,并统计集合X中所有点的最远距离的最大值和最小值;Step 2: Specify the density threshold minimum number of included points MinPts, for any point in the set X, calculate the farthest distance of the objects with the smallest number of included points MinPts closest to the point, and count the farthest distances of all points in the set X maximum and minimum values; 步骤三、将最远距离的最大值和最小值的差值m分成n等份,以点云中产生最远距离的最小值的点为圆心,以等份的间距m/n为单位逐级递增值为半径,做出n个圆,计算每个圆内点的数量;Step 3: Divide the difference m between the maximum value and the minimum value of the farthest distance into n equal parts, take the point in the point cloud that produces the minimum value of the farthest distance as the center, and use the equal distance m/n as the unit step by step The incremental value is the radius, make n circles, and calculate the number of points in each circle; 步骤四、以差值m作为横坐标,以等份的间距m/n作为横坐标的递增单位区间,以每个圆内点的数量为纵坐标,绘制坐标图,并拟合坐标图上的点,形成绘制曲线;Step 4. Use the difference m as the abscissa, the equal distance m/n as the incremental unit interval of the abscissa, and the number of points in each circle as the ordinate, draw a coordinate map, and fit the coordinates on the map points to form a drawn curve; 步骤五、寻找所绘制的曲线的拐点,将该拐点对应的横坐标的数值作为邻域半径σ的取值;Step 5. Find the inflection point of the drawn curve, and use the value of the abscissa corresponding to the inflection point as the value of the neighborhood radius σ; 步骤六、以密度阈值MinPts和邻域半径σ为条件建立AQ-DBSCAN算法,并用AQ-DBSCAN算法对集合X中的点进行聚类,以得到所述点云中的点属于该建筑物中哪个部位的聚类分析。Step 6: Establish the AQ-DBSCAN algorithm based on the density threshold MinPts and the neighborhood radius σ, and use the AQ-DBSCAN algorithm to cluster the points in the set X to obtain which building the points in the point cloud belong to Cluster analysis of parts. 2.如权利要求1所述的建筑物激光扫描点云数据的聚类方法,其特征在于,所述步骤六包括:2. the clustering method of building laser scanning point cloud data as claimed in claim 1, is characterized in that, described step 6 comprises: 6.1)以点云中产生最远距离的最小值的点为圆心,以邻域半径σ为半径,画出第一级圆,如果该第一级圆中的点的个数小于MinPts,则消除该第一级圆,如果大于MinPts;则继续6.2)6.1) Take the point that produces the minimum value of the farthest distance in the point cloud as the center of the circle, and use the neighborhood radius σ as the radius to draw the first-level circle. If the number of points in the first-level circle is less than MinPts, eliminate If the first-level circle is greater than MinPts; continue to 6.2) 6.2)以cσ其中0<c<1为半径,画出第一级子圆,若第一级圆和第一级子圆之间的环形区域中的点的个数小于MinPts,则选取环形区域中所有的点作为第二级圆心;若环形区域中的点的个数大于等于MinPts,则选取MinPts个点作为第二级圆心;6.2) With cσ where 0<c<1 is the radius, draw the first-level sub-circle. If the number of points in the annular area between the first-level circle and the first-level sub-circle is less than MinPts, select the annular area All the points in are used as the second-level circle center; if the number of points in the annular area is greater than or equal to MinPts, select MinPts points as the second-level circle center; 6.3)以所选取的第二级圆心为圆心,以邻域半径σ为半径,画出至少一个第二级圆,如果任一个第二级圆中的点的个数小于MinPts,则消除该第二级圆,如果大于MinPts;则重复执行步骤6.2)和6.3),逐级画圆,直到所画出来的圆均被消除为止;6.3) Draw at least one second-level circle with the selected second-level circle center as the center and the neighborhood radius σ as the radius. If the number of points in any second-level circle is less than MinPts, eliminate the first-level circle If the secondary circle is greater than MinPts; then repeat steps 6.2) and 6.3), and draw circles step by step until the drawn circles are eliminated; 6.4)将所有级别的圆中的点聚为一类,并在所述点云中去除,而对剩余的点云中的点重复执行步骤二到步骤六的操作。6.4) Gather the points in the circles of all levels into one class, and remove them from the point cloud, and repeat steps 2 to 6 for the remaining points in the point cloud. 3.如权利要求2所述的建筑物激光扫描点云数据的聚类方法,其特征在于,所述步骤6.2)中,选取MinPts个点作为第二级圆心的方法为:3. the clustering method of building laser scanning point cloud data as claimed in claim 2, it is characterized in that, in described step 6.2), the method of choosing MinPts points as the second level of circle center is: 在该环形区域中,首先选取离第一级圆心距离最远的点作为第一点,然后选取距离该第一点的距离最远的点作为第二点,然后选取距离该第一点和第二点的距离之和最远的点作为第三点,按照此规律直到选取出第MinPts个点。In the circular area, first select the point farthest from the center of the first level as the first point, then select the point farthest from the first point as the second point, and then select the distance between the first point and the second point. The farthest point of the sum of the distances of the two points is taken as the third point, and follow this rule until the MinPts point is selected. 4.如权利要求1或3所述的建筑物激光扫描点云数据的聚类方法,其特征在于,所述MinPts为4。4. the clustering method of building laser scanning point cloud data as claimed in claim 1 or 3, is characterized in that, described MinPts is 4. 5.如权利要求4所述的建筑物激光扫描点云数据的聚类方法,其特征在于,所述c为3/4。5. the clustering method of building laser scanning point cloud data as claimed in claim 4, is characterized in that, described c is 3/4. 6.如权利要求1所述的建筑物激光扫描点云数据的聚类方法,其特征在于,所述拐点为斜率变化最大的点。6. The clustering method of building laser scanning point cloud data as claimed in claim 1, is characterized in that, described inflection point is the point that slope changes the most. 7.如权利要求1所述的基于AQ-DBSCAN算法的点云的聚类方法,其特征在于,所述步骤一中,对建筑物进行激光扫描后得到的三维点云数据中的每个点都映射到高斯球从而转化为二维数据。7. the clustering method of the point cloud based on AQ-DBSCAN algorithm as claimed in claim 1, is characterized in that, in described step 1, each point in the three-dimensional point cloud data that building is carried out laser scanning and obtains Both are mapped to a Gaussian sphere to be transformed into two-dimensional data.
CN201410539285.6A 2014-10-13 2014-10-13 A kind of clustering method of building Point Cloud of Laser Scanner Expired - Fee Related CN104573705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410539285.6A CN104573705B (en) 2014-10-13 2014-10-13 A kind of clustering method of building Point Cloud of Laser Scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410539285.6A CN104573705B (en) 2014-10-13 2014-10-13 A kind of clustering method of building Point Cloud of Laser Scanner

Publications (2)

Publication Number Publication Date
CN104573705A true CN104573705A (en) 2015-04-29
CN104573705B CN104573705B (en) 2017-10-13

Family

ID=53089726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410539285.6A Expired - Fee Related CN104573705B (en) 2014-10-13 2014-10-13 A kind of clustering method of building Point Cloud of Laser Scanner

Country Status (1)

Country Link
CN (1) CN104573705B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780509A (en) * 2016-12-01 2017-05-31 山东交通学院 Merge the building object point cloud layer time cluster segmentation method of multidimensional characteristic
CN107392209A (en) * 2017-07-11 2017-11-24 中国地质大学(武汉) A kind of method, module, device and storage device for extracting line segment
CN108871268A (en) * 2018-07-13 2018-11-23 湖南联智桥隧技术有限公司 A kind of Tunnel Overbreak & Underbreak numerical computation method based on laser point cloud
CN108957476A (en) * 2018-09-26 2018-12-07 中国计量大学 A kind of Diameter measure device and tree-walk measuring method based on unmanned plane
CN109144072A (en) * 2018-09-30 2019-01-04 亿嘉和科技股份有限公司 A kind of intelligent robot barrier-avoiding method based on three-dimensional laser
CN109344812A (en) * 2018-11-27 2019-02-15 武汉大学 An improved clustering-based method for denoising single-photon point cloud data
CN109523554A (en) * 2018-11-16 2019-03-26 北京建筑大学 A kind of ancient building point cloud automatic division method based on the wooden component
CN109948635A (en) * 2017-12-21 2019-06-28 北京万集科技股份有限公司 A kind of target identification method and device based on laser scanning
CN110096566A (en) * 2019-06-18 2019-08-06 武汉中海庭数据技术有限公司 A kind of determination method and system for the clustering parameter generating map lane line
CN110110802A (en) * 2019-05-14 2019-08-09 南京林业大学 Airborne laser point cloud classification method based on high-order condition random field
CN110246092A (en) * 2019-05-02 2019-09-17 江西理工大学 A kind of three-dimensional laser point cloud denoising method for taking neighborhood point mean distance and slope into account
CN111046330A (en) * 2018-10-12 2020-04-21 中国电子科技集团公司第三十八研究所 Method for generating effective points based on variable value space
CN111369609A (en) * 2020-03-04 2020-07-03 山东交通学院 A method for local deformation analysis of buildings based on point cloud surface feature constraints
CN111583257A (en) * 2020-05-28 2020-08-25 中国铁道科学研究院集团有限公司 Railway clearance foreign matter intrusion detection method, device and system
CN112070769A (en) * 2020-09-18 2020-12-11 福州大学 Layered point cloud segmentation method based on DBSCAN
CN112462347A (en) * 2020-12-28 2021-03-09 长沙理工大学 Laser radar point cloud rapid classification filtering algorithm based on density clustering
WO2021087760A1 (en) * 2019-11-05 2021-05-14 深圳市大疆创新科技有限公司 Target detection method, radar, device, and storage medium
CN113076773A (en) * 2020-01-03 2021-07-06 广州汽车集团股份有限公司 Target detection clustering method, system, computer device and readable storage medium
CN115049028A (en) * 2022-08-17 2022-09-13 中建五局第三建设有限公司 Construction area partitioning method, system, terminal and medium based on unsupervised learning
CN116910888A (en) * 2023-09-08 2023-10-20 临沂大学 A method and system for generating BIM model components of prefabricated buildings

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726255A (en) * 2008-10-24 2010-06-09 中国科学院光电研究院 Method for extracting interesting buildings from three-dimensional laser point cloud data
CN103614598A (en) * 2013-12-20 2014-03-05 西南铝业(集团)有限责任公司 Production method of aluminum alloy for rail-vehicle undercarriage plate
US20140098094A1 (en) * 2012-10-05 2014-04-10 Ulrich Neumann Three-dimensional point processing and model generation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726255A (en) * 2008-10-24 2010-06-09 中国科学院光电研究院 Method for extracting interesting buildings from three-dimensional laser point cloud data
US20140098094A1 (en) * 2012-10-05 2014-04-10 Ulrich Neumann Three-dimensional point processing and model generation
CN103614598A (en) * 2013-12-20 2014-03-05 西南铝业(集团)有限责任公司 Production method of aluminum alloy for rail-vehicle undercarriage plate

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵江洪等: "基于高斯映射的古建筑物点云分割", 《国际会议》 *

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780509A (en) * 2016-12-01 2017-05-31 山东交通学院 Merge the building object point cloud layer time cluster segmentation method of multidimensional characteristic
CN107392209A (en) * 2017-07-11 2017-11-24 中国地质大学(武汉) A kind of method, module, device and storage device for extracting line segment
CN109948635A (en) * 2017-12-21 2019-06-28 北京万集科技股份有限公司 A kind of target identification method and device based on laser scanning
CN109948635B (en) * 2017-12-21 2021-04-27 北京万集科技股份有限公司 Target identification method and device based on laser scanning
CN108871268A (en) * 2018-07-13 2018-11-23 湖南联智桥隧技术有限公司 A kind of Tunnel Overbreak & Underbreak numerical computation method based on laser point cloud
CN108871268B (en) * 2018-07-13 2021-02-02 湖南联智科技股份有限公司 Tunnel under-excavation numerical calculation method based on laser point cloud
CN108957476A (en) * 2018-09-26 2018-12-07 中国计量大学 A kind of Diameter measure device and tree-walk measuring method based on unmanned plane
CN109144072A (en) * 2018-09-30 2019-01-04 亿嘉和科技股份有限公司 A kind of intelligent robot barrier-avoiding method based on three-dimensional laser
CN111046330A (en) * 2018-10-12 2020-04-21 中国电子科技集团公司第三十八研究所 Method for generating effective points based on variable value space
CN111046330B (en) * 2018-10-12 2022-08-16 中国电子科技集团公司第三十八研究所 Method for generating effective points based on variable value space
CN109523554A (en) * 2018-11-16 2019-03-26 北京建筑大学 A kind of ancient building point cloud automatic division method based on the wooden component
CN109344812A (en) * 2018-11-27 2019-02-15 武汉大学 An improved clustering-based method for denoising single-photon point cloud data
CN109344812B (en) * 2018-11-27 2021-06-04 武汉大学 Improved cluster-based single photon point cloud data denoising method
CN110246092A (en) * 2019-05-02 2019-09-17 江西理工大学 A kind of three-dimensional laser point cloud denoising method for taking neighborhood point mean distance and slope into account
CN110246092B (en) * 2019-05-02 2022-09-02 江西理工大学 Three-dimensional laser point cloud denoising method considering neighborhood point mean distance and slope
CN110110802A (en) * 2019-05-14 2019-08-09 南京林业大学 Airborne laser point cloud classification method based on high-order condition random field
CN110096566A (en) * 2019-06-18 2019-08-06 武汉中海庭数据技术有限公司 A kind of determination method and system for the clustering parameter generating map lane line
WO2021087760A1 (en) * 2019-11-05 2021-05-14 深圳市大疆创新科技有限公司 Target detection method, radar, device, and storage medium
CN113076773A (en) * 2020-01-03 2021-07-06 广州汽车集团股份有限公司 Target detection clustering method, system, computer device and readable storage medium
CN111369609A (en) * 2020-03-04 2020-07-03 山东交通学院 A method for local deformation analysis of buildings based on point cloud surface feature constraints
CN111369609B (en) * 2020-03-04 2023-06-30 山东交通学院 Building local deformation analysis method based on point cloud curved surface feature constraint
CN111583257A (en) * 2020-05-28 2020-08-25 中国铁道科学研究院集团有限公司 Railway clearance foreign matter intrusion detection method, device and system
CN112070769A (en) * 2020-09-18 2020-12-11 福州大学 Layered point cloud segmentation method based on DBSCAN
CN112070769B (en) * 2020-09-18 2022-06-03 福州大学 A DBSCAN-based Hierarchical Point Cloud Segmentation Method
CN112462347A (en) * 2020-12-28 2021-03-09 长沙理工大学 Laser radar point cloud rapid classification filtering algorithm based on density clustering
CN112462347B (en) * 2020-12-28 2023-08-15 长沙理工大学 Laser radar point cloud rapid classification filtering algorithm based on density clustering
CN115049028A (en) * 2022-08-17 2022-09-13 中建五局第三建设有限公司 Construction area partitioning method, system, terminal and medium based on unsupervised learning
CN115049028B (en) * 2022-08-17 2022-12-13 中建五局第三建设有限公司 Construction area partitioning method, system, terminal and medium based on unsupervised learning
CN116910888A (en) * 2023-09-08 2023-10-20 临沂大学 A method and system for generating BIM model components of prefabricated buildings
CN116910888B (en) * 2023-09-08 2023-11-24 临沂大学 A method and system for generating BIM model components of prefabricated buildings

Also Published As

Publication number Publication date
CN104573705B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN104573705B (en) A kind of clustering method of building Point Cloud of Laser Scanner
Shi et al. Adaptive simplification of point cloud using k-means clustering
CN111475596B (en) Sub-segment similarity matching method based on multi-level track coding tree
CN105488770B (en) A kind of airborne laser radar point cloud filtering method of object-oriented
CN105740798B (en) A kind of point cloud object scene recognition methods based on structural analysis
CN106157309A (en) A kind of airborne LiDAR ground point cloud filtering method based on virtual Seed Points
CN104504709B (en) Feature ball based classifying method of three-dimensional point-cloud data of outdoor scene
Yang et al. A Point Cloud Simplification Method Based on Modified Fuzzy C‐Means Clustering Algorithm with Feature Information Reserved
CN109299301B (en) Three-dimensional model retrieval method based on shape distribution and curvature
CN105005029B (en) Multi-mode radar signal sorting method based on data field hierarchical clustering
CN105139379A (en) Airborne Lidar point cloud building top surface gradual extraction method based on classifying and laying
Estivill-Castro et al. Multi-level clustering and its visualization for exploratory spatial analysis
CN103310481A (en) Point cloud reduction method based on fuzzy entropy iteration
CN115546116B (en) Full coverage rock mass discontinuity surface extraction and spacing calculation method and system
CN103714153A (en) Density clustering method based on limited area data sampling
CN110493221A (en) A kind of network anomaly detection method based on the profile that clusters
CN114386466B (en) Parallel hybrid clustering method for candidate signal mining in pulsar search
CN116109601A (en) A real-time target detection method based on 3D lidar point cloud
CN104850712B (en) Surface sampled data topology Region Queries method in kind
He et al. A Method of Identifying Thunderstorm Clouds in Satellite Cloud Image Based on Clustering.
CN111209611A (en) A Directed Network Space Embedding Method Based on Hyperbolic Geometry
CN105574265B (en) Entire assembly model quantitative description towards model index
CN104361135A (en) Image retrieval method
CN106570104A (en) Multi-partition clustering preprocessing method of stream data
CN105631465A (en) Density peak-based high-efficiency hierarchical clustering method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171013

Termination date: 20211013