CN114743008A - A method, device and computer equipment for segmenting point cloud data of single plant vegetation - Google Patents
A method, device and computer equipment for segmenting point cloud data of single plant vegetation Download PDFInfo
- Publication number
- CN114743008A CN114743008A CN202210645250.5A CN202210645250A CN114743008A CN 114743008 A CN114743008 A CN 114743008A CN 202210645250 A CN202210645250 A CN 202210645250A CN 114743008 A CN114743008 A CN 114743008A
- Authority
- CN
- China
- Prior art keywords
- point
- point cloud
- vegetation
- cloud data
- crown
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000012545 processing Methods 0.000 claims abstract description 59
- 230000011218 segmentation Effects 0.000 claims abstract description 36
- 238000003708 edge detection Methods 0.000 claims abstract description 25
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 claims abstract description 20
- 230000009466 transformation Effects 0.000 claims abstract description 17
- 238000012937 correction Methods 0.000 claims abstract description 12
- 238000013075 data extraction Methods 0.000 claims abstract description 9
- 238000004891 communication Methods 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 8
- 230000007797 corrosion Effects 0.000 claims description 7
- 238000005260 corrosion Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 claims description 4
- 230000000877 morphologic effect Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 2
- 230000001131 transforming effect Effects 0.000 claims 2
- 238000005192 partition Methods 0.000 claims 1
- 238000000638 solvent extraction Methods 0.000 claims 1
- 241000196324 Embryophyta Species 0.000 description 27
- 230000008569 process Effects 0.000 description 14
- 238000013461 design Methods 0.000 description 9
- 230000003628 erosive effect Effects 0.000 description 6
- 238000012549 training Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 239000002028 Biomass Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 240000004050 Pentaglottis sempervirens Species 0.000 description 1
- 235000004522 Pentaglottis sempervirens Nutrition 0.000 description 1
- 241000422846 Sequoiadendron giganteum Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000010339 dilation Effects 0.000 description 1
- 238000002592 echocardiography Methods 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/251—Fusion techniques of input or preprocessed data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/259—Fusion by voting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Computational Linguistics (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Image Processing (AREA)
Abstract
本发明涉及点云数据处理技术领域,公开了一种单株植被点云数据分割方法、装置及计算机设备,其方法是先通过植被点识别处理、插值处理和数学形态学确定出用于作为局部极值点的植被顶冠点,然后通过俯视点云与侧视点云的结合使用张量投票法提取得到树干,并将所述树干的中心点作为新极值点对所述局部极值点做校正处理,得到已校正的植被顶冠点,再然后根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到用于构建树冠边界的增长点,最后基于边缘检测而得的单株树冠轮廓,通过坐标仿射变换和点云数据提取,最终分割得到单株植被点云数据,如此可确保分割结果的准确性。
The invention relates to the technical field of point cloud data processing, and discloses a method, device and computer equipment for segmenting point cloud data of a single plant vegetation. The vegetation crown point of the extreme point, and then the tree trunk is extracted by the combination of the top-view point cloud and the side-view point cloud using the tensor voting method, and the center point of the trunk is used as the new extreme point. Correction processing is performed to obtain the corrected vegetation crown points, and then according to the predetermined growth restriction conditions based on the actual situation of the data, the crown growth processing is performed on the corrected vegetation crown points to obtain the growth used for constructing the crown boundary. Finally, based on the contour of a single tree canopy obtained by edge detection, through coordinate affine transformation and point cloud data extraction, the point cloud data of a single vegetation is finally obtained by segmentation, which can ensure the accuracy of the segmentation results.
Description
技术领域technical field
本发明属于点云数据处理技术领域,具体地涉及一种单株植被点云数据分割方法、装置及计算机设备。The invention belongs to the technical field of point cloud data processing, and in particular relates to a method, device and computer equipment for segmenting point cloud data of a single plant vegetation.
背景技术Background technique
单株植被(例如单株树木)的检测及鉴定,对于在森林或城市等场景的应用有着至关重要的意义。例如,在准确地单株树木识别的基础上,可以得到精确的树木总量,并从中计算出树木高度、胸径、树冠和体积等参数,进而可以提高估算森林生物量或树木年龄分布的准确度。因此如何从激光雷达(LiDAR)点云数据(其每一个点都包含了三维坐标信息——即X、Y和Z三个元素,有时还包含有颜色信息、反射强度信息和/或回波次数信息等)中检测及分割得到单株植被的点云数据,对于森林资源清查以及城市规划等方面具有重要的应用价值。The detection and identification of a single vegetation (such as a single tree) is of great significance for applications in forests or cities. For example, based on the accurate identification of individual trees, the precise total number of trees can be obtained, and parameters such as tree height, DBH, crown and volume can be calculated from it, which can improve the accuracy of estimating forest biomass or tree age distribution. . So how to get from LiDAR point cloud data (each point contains three-dimensional coordinate information - namely X, Y and Z three elements, sometimes also contains color information, reflection intensity information and/or number of echoes It has important application value for forest resource inventory and urban planning and so on.
目前,基于激光雷达(LiDAR)点云数据进行单株植被点云数据的检测及分割,主要存在如下问题:(1)由于树木形态复杂,使得极值点难确定,进而导致分割时易出现各种分割问题,例如,相邻两棵树共享极值点导致的欠分割问题,不规则的树木形状导致的错分割/过分割问题,等等;(2)在二维影像上进行树冠边界识别时,由于树冠边界不明确,使得分割结果不够准确,例如,相邻两棵树交叉严重或大树下面有小树。At present, the detection and segmentation of single vegetation point cloud data based on LiDAR point cloud data mainly has the following problems: (1) Due to the complex shape of trees, it is difficult to determine the extreme point, which leads to the easy occurrence of various points during segmentation. Various segmentation problems, such as under-segmentation caused by the sharing of extreme points between two adjacent trees, mis-segmentation/over-segmentation caused by irregular tree shapes, etc.; (2) Canopy boundary recognition on 2D images When the tree crown boundary is not clear, the segmentation result is not accurate enough, for example, two adjacent trees cross seriously or there are small trees under the big tree.
发明内容SUMMARY OF THE INVENTION
为了解决基于激光雷达点云数据进行单株植被点云数据的现有检测及分割方式所存在分割结果不准的问题,本发明目的在于提供一种单株植被点云数据分割方法、装置及计算机设备。In order to solve the problem of inaccurate segmentation results in the existing detection and segmentation methods of single plant vegetation point cloud data based on lidar point cloud data, the present invention aims to provide a single plant vegetation point cloud data segmentation method, device and computer equipment.
第一方面,本发明提供了一种单株植被点云数据分割方法,包括:In a first aspect, the present invention provides a method for segmenting point cloud data of a single vegetation, including:
将待分割的原始点云数据输入基于二值分类网络的且已完成训练的植被点识别模型中,输出得到植被点识别结果,其中,所述原始点云数据为融合有俯视点云和侧视点云的多源点云数据;Input the original point cloud data to be segmented into a vegetation point recognition model based on a binary classification network that has completed training, and output the vegetation point recognition results, wherein the original point cloud data is a fusion of top-down point clouds and side-view points. Cloud multi-source point cloud data;
将所述植被点识别结果中被识别出植被点的点云数据,插值处理成栅格化的冠层高度模型CHM影像数据;Interpolate the point cloud data of the identified vegetation points in the vegetation point identification result into rasterized canopy height model CHM image data;
根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点;According to the CHM image data, applying mathematical morphology to determine the vegetation crown point used as the local extreme point;
根据所述原始点云数据,应用张量投票法提取得到树干;According to the original point cloud data, the tensor voting method is applied to extract the tree trunk;
将所述树干的中心点作为新极值点反馈到所述CHM影像数据中对所述局部极值点做校正处理,得到已校正的植被顶冠点;Feeding back the center point of the trunk as a new extreme point to the CHM image data to perform correction processing on the local extreme point to obtain a corrected vegetation top point;
根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到增长点;According to the pre-determined growth restriction conditions based on the actual situation of the data, the canopy growth processing is performed on the corrected vegetation top and crown points to obtain the growth points;
对所述增长点和所述已校正的植被顶冠点标记上相同的记号,并将所述记号作为像素值写入新的影像数据中,其中,所述记号是指从像素值的取值范围内选出用于标记所述增长点和所述已校正的植被顶冠点的数值编号,所述新的影像数据与所述CHM影像数据具有相同的栅格;Mark the growth point and the corrected vegetation top point with the same mark, and write the mark as a pixel value into the new image data, wherein the mark refers to the value obtained from the pixel value Selecting a numerical number for marking the growth point and the corrected vegetation top point within the range, and the new image data and the CHM image data have the same grid;
对所述新的影像数据进行边缘检测处理,得到单株树冠轮廓;Perform edge detection processing on the new image data to obtain a single tree crown outline;
将所述单株树冠轮廓的行列号仿射变换为真实的地理坐标,得到目标分割空间;Affine transformation of the row and column numbers of the single tree canopy outline into real geographic coordinates to obtain the target segmentation space;
从所述原始点云数据中提取出位于所述目标分割空间中的点云数据,得到单株植被点云数据。The point cloud data located in the target segmentation space is extracted from the original point cloud data to obtain the point cloud data of a single plant.
基于上述发明内容,提供了一种能够从多源点云数据中准确检测并分割出单株植被点云数据的新方案,即在准备好待分割的且融合有俯视点云和侧视点云的原始点云数据后,先通过植被点识别处理、插值处理和数学形态学确定出用于作为局部极值点的植被顶冠点,然后通过俯视点云与侧视点云的结合使用张量投票法提取得到树干,并将所述树干的中心点作为新极值点对所述局部极值点做校正处理,得到已校正的植被顶冠点,再然后根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到用于构建树冠边界的增长点,最后基于边缘检测而得的单株树冠轮廓,通过坐标仿射变换和点云数据提取,最终分割得到单株植被点云数据,如此可确保分割结果的准确性,提升对于森林资源清查以及城市规划等方面具有重要的应用价值,便于实际应用和推广。Based on the above-mentioned content of the invention, a new solution is provided that can accurately detect and segment the point cloud data of a single plant from the multi-source point cloud data. After the original point cloud data, the vegetation crown points used as local extreme points are determined through vegetation point identification processing, interpolation processing and mathematical morphology, and then the tensor voting method is used by combining the top-view point cloud and the side-view point cloud. Extract the trunk, and use the center point of the trunk as a new extreme point to perform correction processing on the local extreme point to obtain the corrected vegetation crown point, and then according to the actual situation of the data. Pre-determined growth limit Condition, the crown growth process is performed on the corrected vegetation crown points to obtain the growth points used to construct the crown boundary, and finally the single tree crown outline obtained based on edge detection is extracted through coordinate affine transformation and point cloud data, The final segmentation obtains the point cloud data of a single plant, which ensures the accuracy of the segmentation results, and has important application value for forest resource inventory and urban planning, which is convenient for practical application and promotion.
在一个可能的设计中,所述二值分类网络采用RandLA-Net网络或基于RandLA-Net网络的改进结构。In a possible design, the binary classification network adopts a RandLA-Net network or an improved structure based on the RandLA-Net network.
在一个可能的设计中,根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点,包括:In a possible design, based on the CHM image data, mathematical morphology is applied to determine the vegetation crown points used as local extreme points, including:
采用中值滤波法对所述CHM影像数据进行影像噪声去除处理,得到新的CHM影像数据;Perform image noise removal processing on the CHM image data by using the median filter method to obtain new CHM image data;
根据所述新的CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点。According to the new CHM image data, mathematical morphology is applied to determine the vegetation crown points used as local extreme points.
在一个可能的设计中,根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点,包括:In a possible design, based on the CHM image data, mathematical morphology is applied to determine the vegetation crown points used as local extreme points, including:
对所述CHM影像数据进行形态学腐蚀运算处理,得到影像数据腐蚀结果;Perform morphological erosion operation processing on the CHM image data to obtain image data erosion results;
对所述CHM影像数据进行减去所述影像数据腐蚀结果的相减处理,得到影像数据相减结果;performing a subtraction process of subtracting the corrosion result of the image data on the CHM image data to obtain a subtraction result of the image data;
根据所述影像数据相减结果,确定位于正值区域中的最大值;According to the image data subtraction result, determine the maximum value located in the positive value area;
将与所述最大值对应的点确定为用于作为局部极值点的植被顶冠点。A point corresponding to the maximum value is determined as a vegetation crown point for use as a local extremum point.
在一个可能的设计中,根据所述原始点云数据,应用张量投票法提取得到树干,包括:In a possible design, according to the original point cloud data, the tensor voting method is applied to extract the tree trunk, including:
遍历所述原始点云数据中的各个原始点云:针对某一原始点云,先构建对应的方程:,式中,表示棒张量,表示处于以所述某一原始点云为中心的指定半径范围内的点云总数,表示自然数,表示所述某一原始点云与在所述指定半径范围内的第个邻域点云之间的特征向量且有,表示棒张量对邻域点作用的张量算子且有,然后求解所述方程得到所述棒张量的至少一个特征值,最后若判定所述至少一个特征值中的最大特征值大于预设的特征阈值,则确定所述某一原始点云为树干特征点;Traverse each original point cloud in the original point cloud data: for a certain original point cloud , first construct the corresponding equation: , where, represents a stick tensor, Indicates that it is in the original point cloud with the is the total number of point clouds within the specified radius from the center, represents a natural number, represents one of the original point clouds with the first radius within the specified radius neighborhood point cloud eigenvectors between and have , is a tensor operator representing the action of a stick tensor on a neighborhood point and has , then solve the equation to get the stick tensor At least one eigenvalue of , and finally if it is determined that the largest eigenvalue in the at least one eigenvalue is greater than the preset eigenvalue, then determine the certain original point cloud is the trunk feature point;
提取所述原始点云数据中的所有树干特征点,得到树干。All tree trunk feature points in the original point cloud data are extracted to obtain the tree trunk.
在一个可能的设计中,所述增长限制条件包括有树高限制条件、增长范围限制条件和/或相邻树竞争点限制条件,其中,所述树高限制条件包含有种子点树高H的最低值为1.5米,所述增长范围限制条件包含有所得增长点与种子点的最大距离R为3米,所述相邻树竞争点限制条件包含有与相邻树竞争的增长点要高于种子点树高H的0.7倍。In a possible design, the growth constraints include tree height constraints, growth range constraints and/or adjacent tree competition point constraints, wherein the tree height constraints include the tree height H of the seed point. The minimum value is 1.5 meters, the growth range constraints include that the maximum distance R between the obtained growth point and the seed point is 3 meters, and the adjacent tree competition point constraints include that the growth point competing with the adjacent tree is higher than Seed point tree height H is 0.7 times.
在一个可能的设计中,所述原始点云数据为对车载激光雷达点云数据、机载激光雷达点云数据和地面站激光雷达点云数据进行组合及配准处理后融合而得的多源点云数据,所述插值处理采用三角网插值法,所述边缘检测处理采用openCV边缘检测函数。In a possible design, the original point cloud data is a multi-source fusion obtained by combining and registering the vehicle lidar point cloud data, the airborne lidar point cloud data and the ground station lidar point cloud data. Point cloud data, the interpolation processing adopts the triangulation interpolation method, and the edge detection processing adopts the openCV edge detection function.
第二方面,本发明提供了一种单株植被点云数据分割装置,包括有植被点识别单元、插值处理单元、极值点确定单元、树干提取单元、极值点校正单元、树冠增长单元、记号处理单元、边缘检测单元、仿射变换单元和数据提取单元;In a second aspect, the present invention provides a single plant vegetation point cloud data segmentation device, including a vegetation point identification unit, an interpolation processing unit, an extreme point determination unit, a trunk extraction unit, an extreme point correction unit, a canopy growth unit, a token processing unit, an edge detection unit, an affine transformation unit and a data extraction unit;
所述植被点识别单元,用于将待分割的原始点云数据输入基于二值分类网络的且已完成训练的植被点识别模型中,输出得到植被点识别结果,其中,所述原始点云数据为融合有俯视点云和侧视点云的多源点云数据;The vegetation point identification unit is used for inputting the original point cloud data to be segmented into a vegetation point identification model based on a binary classification network and having completed training, and outputting a vegetation point identification result, wherein the original point cloud data It is multi-source point cloud data fused with top-view point cloud and side-view point cloud;
所述插值处理单元,通信连接所述植被点识别单元,用于将所述植被点识别结果中被识别出植被点的点云数据,插值处理成栅格化的冠层高度模型CHM影像数据;The interpolation processing unit, which is communicatively connected to the vegetation point identification unit, is used to interpolate the point cloud data of the identified vegetation points in the vegetation point identification result into rasterized canopy height model CHM image data;
所述极值点确定单元,通信连接所述插值处理单元,用于根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点;The extremum point determining unit is connected to the interpolation processing unit in communication, and is configured to apply mathematical morphology to determine the vegetation crest points used as local extremum points according to the CHM image data;
所述树干提取单元,用于根据所述原始点云数据,应用张量投票法提取得到树干;The tree trunk extraction unit is used for extracting tree trunks by applying tensor voting method according to the original point cloud data;
所述极值点校正单元,分别通信连接所述极值点确定单元和所述树干提取单元,用于将所述树干的中心点作为新极值点反馈到所述CHM影像数据中对所述局部极值点做校正处理,得到已校正的植被顶冠点;The extremum point correction unit is respectively connected to the extremum point determination unit and the tree trunk extraction unit in communication, and is used for feeding back the center point of the tree trunk as a new extremum point to the CHM image data. The local extreme point is corrected to obtain the corrected vegetation top point;
所述树冠增长单元,通信连接所述极值点校正单元,用于根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到增长点;The canopy growth unit is connected to the extreme point correction unit in communication, and is configured to perform a canopy growth process on the corrected vegetation top and crown points according to a predetermined growth restriction condition based on the actual situation of the data to obtain a growth point;
所述记号处理单元,通信连接所述树冠增长单元,用于对所述增长点和所述已校正的植被顶冠点标记上相同的记号,并将所述记号作为像素值写入新的影像数据中,其中,所述记号是指从像素值的取值范围内选出用于标记所述增长点和所述已校正的植被顶冠点的数值编号,所述新的影像数据与所述CHM影像数据具有相同的栅格;The marking processing unit is connected to the tree canopy growth unit in communication, and is used to mark the growth point and the corrected vegetation crown point with the same mark, and write the mark as a pixel value into a new image In the data, the mark refers to a numerical number selected from the range of pixel values for marking the growth point and the corrected vegetation top point, and the new image data is the same as the CHM image data has the same raster;
所述边缘检测单元,通信连接所述记号处理单元,用于对所述新的影像数据进行边缘检测处理,得到单株树冠轮廓;The edge detection unit is communicatively connected to the mark processing unit, and is used to perform edge detection processing on the new image data to obtain a single tree canopy outline;
所述仿射变换单元,通信连接所述边缘检测单元,用于将所述单株树冠轮廓的行列号仿射变换为真实的地理坐标,得到目标分割空间;The affine transformation unit is connected to the edge detection unit in communication, and is used for affine transformation of the row and column numbers of the outline of the single tree canopy into real geographic coordinates to obtain the target segmentation space;
所述数据提取单元,通信连接所述仿射变换单元,用于从所述原始点云数据中提取出位于所述目标分割空间中的点云数据,得到单株植被点云数据。The data extraction unit is connected to the affine transformation unit in communication, and is used for extracting point cloud data located in the target segmentation space from the original point cloud data to obtain single vegetation point cloud data.
第三方面,本发明提供了一种计算机设备,包括有依次通信连接的存储器、处理器和收发器,其中,所述存储器用于存储计算机程序,所述收发器用于收发消息,所述处理器用于读取所述计算机程序,执行如第一方面或第一方面中任意可能设计所述的单株植被点云数据分割方法。In a third aspect, the present invention provides a computer device, comprising a memory, a processor and a transceiver connected in sequence in communication, wherein the memory is used for storing a computer program, the transceiver is used for sending and receiving messages, and the processor is used for sending and receiving messages. After reading the computer program, execute the method for segmenting point cloud data of a single plant vegetation as described in the first aspect or any possible design of the first aspect.
第四方面,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,执行如第一方面或第一方面中任意可能设计所述的单株植被点云数据分割方法。In a fourth aspect, the present invention provides a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are executed on a computer, the first aspect or any possibility in the first aspect is executed. Design the described segmentation method of single vegetation point cloud data.
第五方面,本发明提供了一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使所述计算机执行如第一方面或第一方面中任意可能设计所述的单株植被点云数据分割方法。In a fifth aspect, the present invention provides a computer program product comprising instructions that, when the instructions are run on a computer, cause the computer to execute the single plant vegetation described in the first aspect or any possible design of the first aspect Point cloud data segmentation method.
本发明的有益效果:Beneficial effects of the present invention:
(1)通过本发明创造,提供了一种能够从多源点云数据中准确检测并分割出单株植被点云数据的新方案,即在准备好待分割的且融合有俯视点云和侧视点云的原始点云数据后,先通过植被点识别处理、插值处理和数学形态学确定出用于作为局部极值点的植被顶冠点,然后通过俯视点云与侧视点云的结合使用张量投票法提取得到树干,并将所述树干的中心点作为新极值点对所述局部极值点做校正处理,得到已校正的植被顶冠点,再然后根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到用于构建树冠边界的增长点,最后基于边缘检测而得的单株树冠轮廓,通过坐标仿射变换和点云数据提取,最终分割得到单株植被点云数据,如此可确保分割结果的准确性,提升对于森林资源清查以及城市规划等方面具有重要的应用价值,便于实际应用和推广。(1) The invention provides a new solution that can accurately detect and segment the point cloud data of a single plant from the multi-source point cloud data. After the original point cloud data of the viewpoint cloud, the vegetation crest points used as local extreme points are determined through vegetation point identification processing, interpolation processing and mathematical morphology. The tree trunk is extracted by the quantitative voting method, and the center point of the trunk is used as the new extreme point to correct the local extreme point to obtain the corrected vegetation crown point, which is then pre-determined based on the actual situation of the data. According to the growth restriction conditions, the crown growth processing is performed on the corrected vegetation crown points to obtain the growth points used to construct the crown boundary, and finally the single tree crown outline obtained based on edge detection is obtained through coordinate affine transformation and point cloud. Data extraction, and finally segmentation to obtain the point cloud data of a single plant, which can ensure the accuracy of the segmentation results, and has important application value for forest resource inventory and urban planning, which is convenient for practical application and promotion.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1是本发明提供的单株植被点云数据分割方法的流程示意图。FIG. 1 is a schematic flowchart of a method for segmenting point cloud data of a single plant vegetation provided by the present invention.
图2是本发明提供的单株植被点云数据分割装置的结构示意图。FIG. 2 is a schematic structural diagram of a device for segmenting point cloud data of a single plant of vegetation provided by the present invention.
图3是本发明提供的计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device provided by the present invention.
具体实施方式Detailed ways
下面结合附图及具体实施例来对本发明作进一步阐述。在此需要说明的是,对于这些实施例方式的说明虽然是用于帮助理解本发明,但并不构成对本发明的限定。本文公开的特定结构和功能细节仅用于描述本发明示例的实施例。然而,可用很多备选的形式来体现本发明,并且不应当理解为本发明限制在本文阐述的实施例中。The present invention will be further described below with reference to the accompanying drawings and specific embodiments. It should be noted here that, although the description of these embodiments is for helping understanding of the present invention, it does not constitute a limitation of the present invention. Specific structural and functional details disclosed herein are merely intended to describe exemplary embodiments of the present invention. The present invention, however, may be embodied in many alternative forms and should not be construed as limited to the embodiments set forth herein.
应当理解,尽管本文可能使用术语第一和第二等等来描述各种对象,但是这些对象不应当受到这些术语的限制。这些术语仅用于区分一个对象和另一个对象。例如可以将第一对象称作第二对象,并且类似地可以将第二对象称作第一对象,同时不脱离本发明的示例实施例的范围。It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another. For example, a first object could be referred to as a second object, and similarly a second object could be referred to as a first object, without departing from the scope of example embodiments of this invention.
应当理解,对于本文中可能出现的术语“和/或”,其仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A、单独存在B或者同时存在A和B等三种情况;对于本文中可能出现的术语“/和”,其是描述另一种关联对象关系,表示可以存在两种关系,例如,A/和B,可以表示:单独存在A或者同时存在A和B等两种情况;另外,对于本文中可能出现的字符“/”,一般表示前后关联对象是一种“或”关系。It should be understood that the term "and/or" that may appear in this document is only an association relationship for describing associated objects, indicating that there may be three kinds of relationships, for example, A and/or B, which may indicate: the existence of A, There are three situations such as B alone or A and B at the same time; for the term "/and" that may appear in this article, it is to describe another related object relationship, indicating that there can be two relationships, for example, A/ and B, It can be expressed as: the existence of A alone or the existence of A and B at the same time; in addition, for the character "/" that may appear in this article, it generally means that the related objects before and after are an "or" relationship.
如图1所示,本实施例第一方面提供的所述单株植被点云数据分割方法,可以但不限于由具有一定计算资源的计算机设备执行,例如由平台服务器、个人计算机(PersonalComputer,PC,指一种大小、价格和性能适用于个人使用的多用途计算机;台式机、笔记本电脑到小型笔记本电脑和平板电脑以及超级本等都属于个人计算机)、智能手机、个人数字助理(Personal Digital Assistant,PDA)或可穿戴设备等电子设备执行。如图1所示,所述单株植被点云数据分割方法,可以但不限于包括有如下步骤S1~S10。As shown in FIG. 1 , the method for segmenting point cloud data of a single plant vegetation provided in the first aspect of this embodiment may be executed by, but not limited to, a computer device with certain computing resources, such as a platform server, a personal computer (Personal Computer, PC , refers to a multi-purpose computer of size, price and performance suitable for personal use; desktops, notebooks to small notebooks and tablets, and ultrabooks are all personal computers), smartphones, Personal Digital Assistants (Personal Digital Assistants) , PDA) or electronic devices such as wearable devices. As shown in FIG. 1 , the method for segmenting point cloud data of a single plant of vegetation may, but is not limited to, include the following steps S1 to S10.
S1.将待分割的原始点云数据输入基于二值分类网络的且已完成训练的植被点识别模型中,输出得到植被点识别结果,其中,所述原始点云数据为融合有俯视点云和侧视点云的多源点云数据。S1. Input the original point cloud data to be segmented into a vegetation point recognition model based on a binary classification network and have completed training, and output a vegetation point recognition result, wherein the original point cloud data is a combination of a bird's-eye view point cloud and a Multi-source point cloud data for side view point clouds.
在所述步骤S1中,为了确保所述原始点云数据具有俯视点云和侧视点云,所述原始点云数据优选为对车载激光雷达点云数据、机载激光雷达点云数据和地面站激光雷达点云数据进行组合及配准处理后融合而得的多源点云数据。同时所述二值分类网络可优选采用RandLA-Net网络或基于RandLA-Net网络的改进结构,由于所述RandLA-Net网络是一种可进行大规模点云语义分割的现有网络结构,能够将整个点云作为输入,而不用拆分或合并等预处理以及后处理操作,因此可以通过常规训练得到可基于输入点云数据识别出植被点或非植被点的所述植被点识别模型。此外,所述原始点云数据的输入形式可以但不限于为包含有XYZ坐标信息和RGB颜色信息的文本文档格式。In the step S1, in order to ensure that the original point cloud data has a top-view point cloud and a side-view point cloud, the original point cloud data is preferably the point cloud data of the vehicle-mounted lidar, the point cloud of the airborne lidar and the ground station. The multi-source point cloud data obtained by combining and registering the lidar point cloud data. At the same time, the binary classification network can preferably use the RandLA-Net network or an improved structure based on the RandLA-Net network. Since the RandLA-Net network is an existing network structure that can perform large-scale point cloud semantic segmentation, it can The entire point cloud is used as input without preprocessing and post-processing operations such as splitting or merging, so the vegetation point recognition model that can identify vegetation points or non-vegetation points based on input point cloud data can be obtained through conventional training. In addition, the input form of the original point cloud data may be, but not limited to, a text document format containing XYZ coordinate information and RGB color information.
S2.将所述植被点识别结果中被识别出植被点的点云数据,插值处理成栅格化的冠层高度模型CHM影像数据。S2. Interpolate point cloud data of identified vegetation points in the vegetation point identification result into rasterized canopy height model CHM image data.
在所述步骤S2中,所述冠层高度模型(Canopy Height Model,CHM) 是激光雷达在森林区域能够获得的一种极为实用的模型,它是对地面上森林冠层高度的一种表达方式,反映了森林冠层在垂直方向上的高度变化和水平方向上的分布状态,通过CHM可以提取多种林业调查中重要的森林植被参数(如单木参数、林分参数、蓄积量和生物量等)。具体的,所述插值处理可以采用三角网插值法,也可以采用B样条插值法(B-Spline)、普通克里金插值法(OK)和反距离加权插值法(IDW)等,前述这些插值法均为现有方法,可以通过常规改动插值得到栅格化的所述CHM影像数据。In the step S2, the canopy height model (Canopy Height Model, CHM) is an extremely practical model that can be obtained by lidar in the forest area, and it is an expression of the height of the forest canopy on the ground , which reflects the height change of the forest canopy in the vertical direction and the distribution state in the horizontal direction. Through CHM, important forest vegetation parameters (such as single tree parameters, stand parameters, stock volume and biomass) can be extracted in various forestry investigations. Wait). Specifically, the interpolation processing may adopt the triangulation interpolation method, or may adopt the B-spline interpolation method (B-Spline), the ordinary kriging interpolation method (OK), the inverse distance weighted interpolation method (IDW), etc. The interpolation methods are all existing methods, and the rasterized CHM image data can be obtained by normal modification and interpolation.
S3.根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点。S3. According to the CHM image data, apply mathematical morphology to determine the vegetation crest points used as local extreme points.
在所述步骤S3中,所述数学形态学(Mathematical Morphology)是一门建立在格论和拓扑学基础之上的图像分析学科,是数学形态学图像处理的基本理论;其基本的运算包括:腐蚀和膨胀、开运算和闭运算、骨架抽取、极限腐蚀、击中击不中变换、形态学梯度、Top-hat变换、颗粒分析以及流域变换等。由于所述CHM影像数据中的每个像素点代表着植被点的真实高度,因此可将植被顶冠点看做影像的局部极值点,并采用数学形态学的方法进行确定,即具体的,根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点,包括但不限于有如下步骤S31~S34:S31.对所述CHM影像数据进行形态学腐蚀运算处理,得到影像数据腐蚀结果;S32.对所述CHM影像数据进行减去所述影像数据腐蚀结果的相减处理,得到影像数据相减结果;S33.根据所述影像数据相减结果,确定位于正值区域中的最大值;S34.将与所述最大值对应的点确定为用于作为局部极值点的植被顶冠点。在前述步骤S31中,由于腐蚀操作就是将图像(或图像的一小部分区域)与核(此核大小可设定为5*5的正方形)进行卷积,使得平滑的地形表面不会受到影响,而突出的局部会因为腐蚀而被削去凸出部分,因此通过前述相减处理,可以保留凸出的植被顶冠部分(即正值区域),进而可将与位于正值区域中的最大值对应的点确定为用于作为局部极值点的植被顶冠点。此外,为了提前去除影响噪声,优选的,根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点,还包括但不限于有:先采用中值滤波法对所述CHM影像数据进行影像噪声去除处理,得到新的CHM影像数据;然后再根据所述新的CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点。In the step S3, the mathematical morphology (Mathematical Morphology) is an image analysis subject based on lattice theory and topology, and is the basic theory of mathematical morphology image processing; its basic operations include: Erosion and dilation, opening and closing operations, skeleton extraction, limit erosion, hit-miss transform, morphological gradient, top-hat transform, particle analysis, and watershed transform, etc. Since each pixel point in the CHM image data represents the true height of the vegetation point, the vegetation crown point can be regarded as the local extreme point of the image, and the method of mathematical morphology is used to determine, that is, specifically, According to the CHM image data, applying mathematical morphology to determine the vegetation crown points used as local extreme points, including but not limited to the following steps S31 to S34: S31. Perform morphological erosion operation processing on the CHM image data , obtain the image data corrosion result; S32. Perform a subtraction process of subtracting the image data corrosion result on the CHM image data to obtain the image data subtraction result; S33. According to the image data subtraction result, determine that the image data is located in the positive The maximum value in the value area; S34. Determine the point corresponding to the maximum value as the vegetation crown point used as the local extreme value point. In the aforementioned step S31, since the erosion operation is to convolve the image (or a small area of the image) with the kernel (the kernel size can be set to a 5*5 square), the smooth terrain surface will not be affected , and the protruding parts will be cut off due to corrosion. Therefore, through the aforementioned subtraction processing, the protruding vegetation crown part (ie the positive area) can be retained, and then the largest part located in the positive area can be compared with The point corresponding to the value is determined as the vegetation crown point used as the local extreme point. In addition, in order to remove the influence noise in advance, preferably, according to the CHM image data, mathematical morphology is applied to determine the vegetation crown point used as the local extreme point, which also includes but is not limited to: first adopt the median filtering method to The CHM image data is subjected to image noise removal processing to obtain new CHM image data; and then, according to the new CHM image data, mathematical morphology is applied to determine the vegetation crown points used as local extreme points.
S4.根据所述原始点云数据,应用张量投票法提取得到树干。S4. According to the original point cloud data, the tensor voting method is applied to extract the tree trunk.
在所述步骤S4中,所述张量投票法是一种提取图像特征的方法,它是利用张量鲁棒性强的特性,提取图像中点、线和面特征的特点,消除图像中孤立点显著性,突出所提取的线和面特征,重新构建图像,从而达到去除噪声和突出边缘的目的。由于所述原始点云数据具有多源数据特点,因此可通过俯视点云与侧视点云的结合使用张量投票法提取得到树干,即具体的,根据所述原始点云数据,应用张量投票法提取得到树干,包括但不限于有如下步骤S41~S42:S41. 遍历所述原始点云数据中的各个原始点云:针对某一原始点云,先构建对应的方程:,式中,表示棒张量,表示处于以所述某一原始点云为中心的指定半径范围内的点云总数,表示自然数,表示所述某一原始点云与在所述指定半径范围内的第个邻域点云之间的特征向量且有(此处的表示从所述某一原始点云至所述第个邻域点云的有向线段),表示棒张量对邻域点作用的张量算子且有,然后求解所述方程得到所述棒张量的至少一个特征值,最后若判定所述至少一个特征值中的最大特征值大于预设的特征阈值,则确定所述某一原始点云为树干特征点;S42.提取所述原始点云数据中的所有树干特征点,得到树干。在前述步骤S41中,所述特征阈值可举例为0.9。In the step S4, the tensor voting method is a method for extracting image features. It uses the strong robustness of tensor to extract the characteristics of point, line and surface features in the image, and eliminate the isolation in the image. Point saliency, highlight the extracted line and surface features, and reconstruct the image, so as to achieve the purpose of removing noise and highlighting edges. Since the original point cloud data has the characteristics of multi-source data, the tree trunk can be extracted by using the tensor voting method by combining the top-view point cloud and the side-view point cloud. Specifically, according to the original point cloud data, tensor voting is applied. The tree trunk is extracted by the method, including but not limited to the following steps S41-S42: S41. Traverse each original point cloud in the original point cloud data: for a certain original point cloud , first construct the corresponding equation: , where, represents a stick tensor, Indicates that it is in the original point cloud with the is the total number of point clouds within the specified radius from the center, represents a natural number, represents one of the original point clouds with the first radius within the specified radius neighborhood point cloud eigenvectors between and have (here's represents one of the original point clouds from the to the neighborhood point cloud directed line segment), is a tensor operator representing the action of a stick tensor on a neighborhood point and has , then solve the equation to get the stick tensor At least one eigenvalue of , and finally if it is determined that the largest eigenvalue in the at least one eigenvalue is greater than the preset eigenvalue, then determine the certain original point cloud is the trunk feature point; S42. Extract all the trunk feature points in the original point cloud data to obtain the trunk. In the foregoing step S41, the feature threshold may be 0.9, for example.
S5.将所述树干的中心点作为新极值点反馈到所述CHM影像数据中对所述局部极值点做校正处理,得到已校正的植被顶冠点。S5. Feed back the center point of the tree trunk as a new extreme value point to the CHM image data to perform correction processing on the local extreme value point to obtain a corrected vegetation crown point.
在所述步骤S5中,所述校正处理的具体方式为现有常规方式,例如将所述新极值点与对应的所述局部极值点的中间点作为所述已校正的植被顶冠点。In the step S5, the specific method of the correction processing is an existing conventional method, for example, the intermediate point between the new extreme point and the corresponding local extreme point is used as the corrected vegetation crown point .
S6.根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到增长点。S6. According to the pre-determined growth restriction conditions based on the actual situation of the data, perform tree crown growth processing on the corrected vegetation crown points to obtain growth points.
在所述步骤S6中,所述树冠增长处理是指以植被顶冠点为中心对树冠边界进行四周延伸的处理,因此所述增长点即为在树冠增长处理后所得的新树冠边界点。具体的,所述增长限制条件包括但不限于有树高限制条件、增长范围限制条件和/或相邻树竞争点限制条件等,其中,所述树高限制条件包含但不限于有种子点(即所述已校正的植被顶冠点,由于所述树冠增长处理是指以植被顶冠点为中心对树冠边界进行四周延伸的处理,故而在此视为树冠增长的种子点)树高H的最低值为1.5米等,所述增长范围限制条件包含但不限于有所得增长点与种子点的最大距离R为3米等,所述相邻树竞争点限制条件包含但不限于有与相邻树竞争的增长点要高于种子点树高H的0.7倍等。In the step S6, the canopy growth process refers to the process of extending the tree crown boundary around the vegetation top crown point as the center, so the growth point is the new tree crown boundary point obtained after the tree crown growth process. Specifically, the growth constraints include, but are not limited to, tree height constraints, growth range constraints, and/or adjacent tree competition point constraints, etc., wherein the tree height constraints include but are not limited to having seed points ( That is, the corrected vegetation crown point, because the crown growth process refers to the process of extending the tree crown boundary around the vegetation crown point as the center, so it is regarded as the seed point of crown growth here) The height of the tree is H. The minimum value is 1.5 meters, etc., the growth range constraints include but are not limited to the maximum distance R between the obtained growth point and the seed point is 3 meters, etc., and the adjacent tree competition point constraints include but are not limited to adjacent trees. The growth point of the tree competition is higher than 0.7 times the tree height H of the seed point, etc.
S7.对所述增长点和所述已校正的植被顶冠点标记上相同的记号,并将所述记号作为像素值写入新的影像数据中,其中,所述记号是指从像素值的取值范围内选出用于标记所述增长点和所述已校正的植被顶冠点的数值编号,所述新的影像数据与所述CHM影像数据具有相同的栅格。S7. Mark the growth point and the corrected vegetation top point with the same mark, and write the mark as a pixel value into the new image data, wherein the mark refers to the value from the pixel value. Within the range of values, a numerical number for marking the growth point and the corrected vegetation top point is selected, and the new image data and the CHM image data have the same grid.
在所述步骤S7中,当所述取值范围为[0,255]时,可举例选取数值128来唯一标记所述增长点和所述已校正的植被顶冠点。In the step S7, when the value range is [0, 255], a value of 128 can be selected as an example to uniquely mark the growth point and the corrected vegetation top point.
S8.对所述新的影像数据进行边缘检测处理,得到单株树冠轮廓。S8. Perform edge detection processing on the new image data to obtain a single tree crown outline.
在所述步骤S8中,由于所述已校正的植被顶冠点及其对应的增长点都标记上了相同的记号,因此可以通过边缘检测处理确定与所述已校正的植被顶冠点对应的单株树冠轮廓。具体的,所述边缘检测处理可以但不限于采用openCV边缘检测函数。In the step S8, since the corrected vegetation crown point and its corresponding growth point are marked with the same sign, the edge detection process can be used to determine the corrected vegetation crown point corresponding to the Single tree canopy silhouette. Specifically, the edge detection processing may be, but not limited to, use of the openCV edge detection function.
S9.将所述单株树冠轮廓的行列号仿射变换为真实的地理坐标,得到目标分割空间。S9. Affine transform the row and column numbers of the individual tree canopy outlines into real geographic coordinates to obtain a target segmentation space.
在所述步骤S9中,由于所述新的影像数据与所述CHM影像数据具有相同的栅格,因此可以针对所述单株树冠轮廓的行列号,通过常规的仿射变换方式得到对应的真实地理坐标,进而得到由所有所述真实地理坐标围成的所述目标分割空间。In the step S9, since the new image data and the CHM image data have the same grid, the corresponding real images can be obtained by conventional affine transformation for the row and column numbers of the individual tree canopy contours. geographic coordinates, and then obtain the target segmented space enclosed by all the real geographic coordinates.
S10.从所述原始点云数据中提取出位于所述目标分割空间中的点云数据,得到单株植被点云数据。S10. Extract point cloud data located in the target segmentation space from the original point cloud data to obtain single vegetation point cloud data.
在所述步骤S10中,具体是对所述原始点云数据中的各个原始点云,分别做一个关于点与多边形轮廓(即所述目标分割空间的边界)的位置关系判断,将位于该多边形轮廓内的点云数据作为最终分割所得的所述单株植被点云数据。In the step S10, specifically, for each original point cloud in the original point cloud data, a judgment is made about the positional relationship between the point and the polygon outline (that is, the boundary of the target segmentation space). The point cloud data in the contour is used as the point cloud data of the single vegetation obtained by the final segmentation.
由此基于前述步骤S1~S10所描述的单株植被点云数据分割方法,提供了一种能够从多源点云数据中准确检测并分割出单株植被点云数据的新方案,即在准备好待分割的且融合有俯视点云和侧视点云的原始点云数据后,先通过植被点识别处理、插值处理和数学形态学确定出用于作为局部极值点的植被顶冠点,然后通过俯视点云与侧视点云的结合使用张量投票法提取得到树干,并将所述树干的中心点作为新极值点对所述局部极值点做校正处理,得到已校正的植被顶冠点,再然后根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到用于构建树冠边界的增长点,最后基于边缘检测而得的单株树冠轮廓,通过坐标仿射变换和点云数据提取,最终分割得到单株植被点云数据,如此可确保分割结果的准确性,提升对于森林资源清查以及城市规划等方面具有重要的应用价值,便于实际应用和推广。Therefore, based on the method for segmenting point cloud data of single plant vegetation described in the foregoing steps S1 to S10, a new solution that can accurately detect and segment point cloud data of single plant vegetation from multi-source point cloud data is provided. After the original point cloud data to be segmented and fused with the top-view point cloud and the side-view point cloud, the vegetation crest points used as local extreme points are determined through vegetation point identification processing, interpolation processing and mathematical morphology. The tree trunk is extracted by combining the top-view point cloud and the side-view point cloud using the tensor voting method, and the center point of the tree trunk is used as a new extreme point to correct the local extreme point to obtain the corrected vegetation crown Then, according to the growth restriction conditions pre-determined based on the actual situation of the data, the crown growth processing is performed on the corrected vegetation crown points to obtain the growth points used to construct the crown boundary. Tree canopy contour, through coordinate affine transformation and point cloud data extraction, and finally segmented to obtain single plant vegetation point cloud data, which can ensure the accuracy of segmentation results, and has important application value for forest resource inventory and urban planning, etc. It is convenient for practical application and promotion.
如图2所示,本实施例第二方面提供了一种实现第一方面所述的单株植被点云数据分割方法的虚拟装置,包括有植被点识别单元、插值处理单元、极值点确定单元、树干提取单元、极值点校正单元、树冠增长单元、记号处理单元、边缘检测单元、仿射变换单元和数据提取单元;As shown in FIG. 2 , a second aspect of this embodiment provides a virtual device for implementing the method for segmenting point cloud data of a single plant vegetation as described in the first aspect, including a vegetation point identification unit, an interpolation processing unit, and an extreme point determination unit. unit, trunk extraction unit, extreme point correction unit, crown growth unit, sign processing unit, edge detection unit, affine transformation unit and data extraction unit;
所述植被点识别单元,用于将待分割的原始点云数据输入基于二值分类网络的且已完成训练的植被点识别模型中,输出得到植被点识别结果,其中,所述原始点云数据为融合有俯视点云和侧视点云的多源点云数据;The vegetation point identification unit is used for inputting the original point cloud data to be segmented into a vegetation point identification model based on a binary classification network and having completed training, and outputting a vegetation point identification result, wherein the original point cloud data It is multi-source point cloud data fused with top-view point cloud and side-view point cloud;
所述插值处理单元,通信连接所述植被点识别单元,用于将所述植被点识别结果中被识别出植被点的点云数据,插值处理成栅格化的冠层高度模型CHM影像数据;The interpolation processing unit, which is communicatively connected to the vegetation point identification unit, is used to interpolate the point cloud data of the identified vegetation points in the vegetation point identification result into rasterized canopy height model CHM image data;
所述极值点确定单元,通信连接所述插值处理单元,用于根据所述CHM影像数据,应用数学形态学确定用于作为局部极值点的植被顶冠点;The extremum point determining unit is connected to the interpolation processing unit in communication, and is configured to apply mathematical morphology to determine the vegetation crest points used as local extremum points according to the CHM image data;
所述树干提取单元,用于根据所述原始点云数据,应用张量投票法提取得到树干;The tree trunk extraction unit is used for extracting tree trunks by applying tensor voting method according to the original point cloud data;
所述极值点校正单元,分别通信连接所述极值点确定单元和所述树干提取单元,用于将所述树干的中心点作为新极值点反馈到所述CHM影像数据中对所述局部极值点做校正处理,得到已校正的植被顶冠点;The extremum point correction unit is respectively connected to the extremum point determination unit and the tree trunk extraction unit in communication, and is used for feeding back the center point of the tree trunk as a new extremum point to the CHM image data. The local extreme point is corrected to obtain the corrected vegetation top point;
所述树冠增长单元,通信连接所述极值点校正单元,用于根据基于数据实际情况而预先确定的增长限制条件,对所述已校正的植被顶冠点进行树冠增长处理,得到增长点;The canopy growth unit is connected to the extreme point correction unit in communication, and is configured to perform a canopy growth process on the corrected vegetation top and crown points according to a predetermined growth restriction condition based on the actual situation of the data to obtain a growth point;
所述记号处理单元,通信连接所述树冠增长单元,用于对所述增长点和所述已校正的植被顶冠点标记上相同的记号,并将所述记号作为像素值写入新的影像数据中,其中,所述记号是指从像素值的取值范围内选出用于标记所述增长点和所述已校正的植被顶冠点的数值编号,所述新的影像数据与所述CHM影像数据具有相同的栅格;The marking processing unit is connected to the tree canopy growth unit in communication, and is used to mark the growth point and the corrected vegetation crown point with the same mark, and write the mark as a pixel value into a new image In the data, the mark refers to a numerical number selected from the range of pixel values for marking the growth point and the corrected vegetation top point, and the new image data is the same as the CHM image data has the same raster;
所述边缘检测单元,通信连接所述记号处理单元,用于对所述新的影像数据进行边缘检测处理,得到单株树冠轮廓;The edge detection unit is communicatively connected to the mark processing unit, and is used to perform edge detection processing on the new image data to obtain a single tree canopy outline;
所述仿射变换单元,通信连接所述边缘检测单元,用于将所述单株树冠轮廓的行列号仿射变换为真实的地理坐标,得到目标分割空间;The affine transformation unit is connected to the edge detection unit in communication, and is used for affine transformation of the row and column numbers of the outline of the single tree canopy into real geographic coordinates to obtain the target segmentation space;
所述数据提取单元,通信连接所述仿射变换单元,用于从所述原始点云数据中提取出位于所述目标分割空间中的点云数据,得到单株植被点云数据。The data extraction unit is connected to the affine transformation unit in communication, and is used for extracting point cloud data located in the target segmentation space from the original point cloud data to obtain single vegetation point cloud data.
本实施例第二方面提供的前述装置的工作过程、工作细节和技术效果,可以参见第一方面所述的单株植被点云数据分割方法,于此不再赘述。For the working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment, reference may be made to the method for segmenting point cloud data of a single plant vegetation described in the first aspect, and details are not described herein again.
如图3所示,本实施例第三方面提供了一种执行如第一方面所述的单株植被点云数据分割方法的计算机设备,包括有依次通信连接的存储器、处理器和收发器,其中,所述存储器用于存储计算机程序,所述收发器用于收发消息,所述处理器用于读取所述计算机程序,执行如第一方面所述的单株植被点云数据分割方法。具体举例的,所述存储器可以但不限于包括随机存取存储器(Random-Access Memory,RAM)、只读存储器(Read-OnlyMemory,ROM)、闪存(Flash Memory)、先进先出存储器(First Input First Output,FIFO)和/或先进后出存储器(First Input Last Output,FILO)等等;所述处理器可以但不限于采用型号为STM32F105系列的微处理器。此外,所述计算机设备还可以但不限于包括有电源模块、显示屏和其它必要的部件。As shown in FIG. 3 , a third aspect of this embodiment provides a computer device for executing the method for segmenting point cloud data of a single plant vegetation as described in the first aspect, including a memory, a processor and a transceiver that are sequentially connected in communication, Wherein, the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program, and execute the method for segmenting point cloud data of a single plant vegetation according to the first aspect. For example, the memory may include, but is not limited to, random-access memory (Random-Access Memory, RAM), read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), first-in-first-out memory (First Input First Output, FIFO) and/or First Input Last Output (FILO), etc.; the processor may be, but not limited to, a microprocessor of the STM32F105 series. In addition, the computer equipment may also include, but is not limited to, a power module, a display screen and other necessary components.
本实施例第三方面提供的前述计算机设备的工作过程、工作细节和技术效果,可以参见第一方面所述的单株植被点云数据分割方法,于此不再赘述。For the working process, working details, and technical effects of the aforementioned computer equipment provided in the third aspect of this embodiment, reference may be made to the method for segmenting point cloud data of a single vegetation plant described in the first aspect, which will not be repeated here.
本实施例第四方面提供了一种存储包含如第一方面所述的单株植被点云数据分割方法的指令的计算机可读存储介质,即所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,执行如第一方面所述的单株植被点云数据分割方法。其中,所述计算机可读存储介质是指存储数据的载体,可以但不限于包括软盘、光盘、硬盘、闪存、优盘和/或记忆棒(Memory Stick)等计算机可读存储介质,所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。A fourth aspect of this embodiment provides a computer-readable storage medium for storing instructions including the method for segmenting point cloud data of a single plant of vegetation as described in the first aspect, that is, the computer-readable storage medium stores instructions, when When the instructions are run on a computer, the method for segmenting point cloud data of a single plant vegetation as described in the first aspect is executed. The computer-readable storage medium refers to a carrier for storing data, which may include, but is not limited to, computer-readable storage media such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and/or a Memory Stick. Is a general purpose computer, special purpose computer, computer network, or other programmable device.
本实施例第四方面提供的前述计算机可读存储介质的工作过程、工作细节和技术效果,可以参见如第一方面所述的单株植被点云数据分割方法,于此不再赘述。For the working process, working details, and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment, reference may be made to the method for segmenting point cloud data of a single plant vegetation as described in the first aspect, which will not be repeated here.
本实施例第五方面提供了一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使所述计算机执行如第一方面所述的单株植被点云数据分割方法。其中,所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。A fifth aspect of this embodiment provides a computer program product including instructions, when the instructions are run on a computer, the computer is made to execute the method for segmenting point cloud data of a single plant vegetation as described in the first aspect. Wherein, the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
最后应说明的是,本发明不局限于上述可选的实施方式,任何人在本发明的启示下都可得出其他各种形式的产品。上述具体实施方式不应理解成对本发明的保护范围的限制,本发明的保护范围应当以权利要求书中界定的为准,并且说明书可以用于解释权利要求书。Finally, it should be noted that the present invention is not limited to the above-mentioned optional embodiments, and anyone can obtain other various forms of products under the inspiration of the present invention. The above specific embodiments should not be construed as limiting the protection scope of the present invention, which should be defined in the claims, and the description can be used to interpret the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210645250.5A CN114743008B (en) | 2022-06-09 | 2022-06-09 | A method, device and computer equipment for segmenting point cloud data of single plant vegetation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210645250.5A CN114743008B (en) | 2022-06-09 | 2022-06-09 | A method, device and computer equipment for segmenting point cloud data of single plant vegetation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114743008A true CN114743008A (en) | 2022-07-12 |
CN114743008B CN114743008B (en) | 2022-09-23 |
Family
ID=82287799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210645250.5A Active CN114743008B (en) | 2022-06-09 | 2022-06-09 | A method, device and computer equipment for segmenting point cloud data of single plant vegetation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114743008B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115808699A (en) * | 2022-11-08 | 2023-03-17 | 北京师范大学 | Grassland vegetation growth monitoring method |
CN116704333A (en) * | 2023-05-19 | 2023-09-05 | 中国电建集团江西省电力设计院有限公司 | Single tree detection method based on laser point cloud data |
CN118521592A (en) * | 2023-02-03 | 2024-08-20 | 浙江领见数智科技有限公司 | Tobacco plant extraction and counting method based on airborne Lidar point cloud data |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102324102A (en) * | 2011-10-08 | 2012-01-18 | 北京航空航天大学 | A Method for Automatically Filling the Structure and Texture Information of Hole Areas in Image Scenes |
US20120148162A1 (en) * | 2010-12-09 | 2012-06-14 | The Hong Kong University Of Science And Technology | Joint semantic segmentation of images and scan data |
CN104599280A (en) * | 2015-02-02 | 2015-05-06 | 武汉大学 | Road crack intersection extraction method and system |
CN106407898A (en) * | 2016-08-29 | 2017-02-15 | 中国林业科学研究院资源信息研究所 | Laser radar individual tree block identification method |
CN106716450A (en) * | 2014-05-06 | 2017-05-24 | 河谷控股Ip有限责任公司 | Image-based feature detection using edge vectors |
CN107274417A (en) * | 2017-07-05 | 2017-10-20 | 电子科技大学 | A Single Tree Segmentation Method Based on Airborne Laser Point Cloud Aggregation Relationship |
CN110223314A (en) * | 2019-06-06 | 2019-09-10 | 电子科技大学 | A kind of single wooden dividing method based on the distribution of tree crown three-dimensional point cloud |
CN111462134A (en) * | 2020-03-31 | 2020-07-28 | 武汉大学 | Single-tree segmentation method and system for fusion of high-resolution remote sensing images and lidar point clouds |
CN112347894A (en) * | 2020-11-02 | 2021-02-09 | 东华理工大学 | Single-plant vegetation extraction method based on transfer learning and Gaussian mixture model separation |
CN112435344A (en) * | 2020-11-27 | 2021-03-02 | 广东电网有限责任公司肇庆供电局 | Point cloud data processing method and device and terminal equipment |
AU2020104291A4 (en) * | 2020-12-23 | 2021-03-11 | Guilin University Of Technology | Singletree segmentation method based on chord angle discriminant clustering for layered LIDAR point cloud |
CN112634149A (en) * | 2020-12-10 | 2021-04-09 | 浙江大学 | Point cloud denoising method based on graph convolution network |
CN113591766A (en) * | 2021-08-09 | 2021-11-02 | 中国林业科学研究院资源信息研究所 | Multi-source remote sensing tree species identification method for unmanned aerial vehicle |
CN113902779A (en) * | 2021-09-28 | 2022-01-07 | 燕山大学 | Point cloud registration method based on tensor voting method |
CN114332172A (en) * | 2021-10-14 | 2022-04-12 | 中北大学 | An Improved Laser Point Cloud Registration Method Based on Covariance Matrix |
-
2022
- 2022-06-09 CN CN202210645250.5A patent/CN114743008B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120148162A1 (en) * | 2010-12-09 | 2012-06-14 | The Hong Kong University Of Science And Technology | Joint semantic segmentation of images and scan data |
CN102324102A (en) * | 2011-10-08 | 2012-01-18 | 北京航空航天大学 | A Method for Automatically Filling the Structure and Texture Information of Hole Areas in Image Scenes |
CN106716450A (en) * | 2014-05-06 | 2017-05-24 | 河谷控股Ip有限责任公司 | Image-based feature detection using edge vectors |
CN104599280A (en) * | 2015-02-02 | 2015-05-06 | 武汉大学 | Road crack intersection extraction method and system |
CN106407898A (en) * | 2016-08-29 | 2017-02-15 | 中国林业科学研究院资源信息研究所 | Laser radar individual tree block identification method |
CN107274417A (en) * | 2017-07-05 | 2017-10-20 | 电子科技大学 | A Single Tree Segmentation Method Based on Airborne Laser Point Cloud Aggregation Relationship |
CN110223314A (en) * | 2019-06-06 | 2019-09-10 | 电子科技大学 | A kind of single wooden dividing method based on the distribution of tree crown three-dimensional point cloud |
CN111462134A (en) * | 2020-03-31 | 2020-07-28 | 武汉大学 | Single-tree segmentation method and system for fusion of high-resolution remote sensing images and lidar point clouds |
CN112347894A (en) * | 2020-11-02 | 2021-02-09 | 东华理工大学 | Single-plant vegetation extraction method based on transfer learning and Gaussian mixture model separation |
CN112435344A (en) * | 2020-11-27 | 2021-03-02 | 广东电网有限责任公司肇庆供电局 | Point cloud data processing method and device and terminal equipment |
CN112634149A (en) * | 2020-12-10 | 2021-04-09 | 浙江大学 | Point cloud denoising method based on graph convolution network |
AU2020104291A4 (en) * | 2020-12-23 | 2021-03-11 | Guilin University Of Technology | Singletree segmentation method based on chord angle discriminant clustering for layered LIDAR point cloud |
CN113591766A (en) * | 2021-08-09 | 2021-11-02 | 中国林业科学研究院资源信息研究所 | Multi-source remote sensing tree species identification method for unmanned aerial vehicle |
CN113902779A (en) * | 2021-09-28 | 2022-01-07 | 燕山大学 | Point cloud registration method based on tensor voting method |
CN114332172A (en) * | 2021-10-14 | 2022-04-12 | 中北大学 | An Improved Laser Point Cloud Registration Method Based on Covariance Matrix |
Non-Patent Citations (1)
Title |
---|
RUI XIAO 等: "Efficient individual tree identification from multiple source point cloud", 《IOP CONFERENCE SERIES: EARTH AND ENVIRONMENTAL SCIENCE》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115808699A (en) * | 2022-11-08 | 2023-03-17 | 北京师范大学 | Grassland vegetation growth monitoring method |
CN115808699B (en) * | 2022-11-08 | 2025-05-30 | 北京师范大学 | A method for monitoring grassland vegetation growth |
CN118521592A (en) * | 2023-02-03 | 2024-08-20 | 浙江领见数智科技有限公司 | Tobacco plant extraction and counting method based on airborne Lidar point cloud data |
CN116704333A (en) * | 2023-05-19 | 2023-09-05 | 中国电建集团江西省电力设计院有限公司 | Single tree detection method based on laser point cloud data |
CN116704333B (en) * | 2023-05-19 | 2024-03-12 | 中国电建集团江西省电力设计院有限公司 | Single tree detection method based on laser point cloud data |
Also Published As
Publication number | Publication date |
---|---|
CN114743008B (en) | 2022-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114743008B (en) | A method, device and computer equipment for segmenting point cloud data of single plant vegetation | |
CN113902897B (en) | Training of target detection model, target detection method, device, equipment and medium | |
CN108109139B (en) | Airborne LIDAR three-dimensional building detection method based on gray voxel model | |
CN102520401B (en) | Building area extraction method based on LiDAR data | |
CN111898688A (en) | A tree species classification method for airborne LiDAR data based on 3D deep learning | |
CN106970375A (en) | A kind of method that building information is automatically extracted in airborne laser radar point cloud | |
CN112990086A (en) | Remote sensing image building detection method and device and computer readable storage medium | |
CN104536009A (en) | Laser infrared composite ground building recognition and navigation method | |
CN104049245A (en) | Urban building change detection method based on LiDAR point cloud spatial difference analysis | |
CN106157309A (en) | A kind of airborne LiDAR ground point cloud filtering method based on virtual Seed Points | |
CN112990085B (en) | Method and device for detecting change of culture pond and computer readable storage medium | |
CN116704333B (en) | Single tree detection method based on laser point cloud data | |
CN110135227A (en) | A Machine Learning-Based Automatic Segmentation Method of Laser Point Cloud Outdoor Scene | |
CN108399424A (en) | A kind of point cloud classifications method, intelligent terminal and storage medium | |
CN118334363B (en) | Topographic feature semantic modeling method based on remote sensing image and LiDAR analysis | |
CN115063698A (en) | Automatic identification and information extraction method and system for slope surface deformation crack | |
CN112669333A (en) | Single tree information extraction method | |
CN117830326A (en) | Method for obtaining forest tree structure parameters based on point cloud data | |
CN115061150A (en) | Building extraction method based on laser radar point cloud data pseudo-waveform feature processing | |
Mu et al. | Canopy lidar point cloud data k-means clustering watershed segmentation method | |
CN117152172A (en) | Point cloud data-based power transmission line tower and power line extraction method | |
CN113343819B (en) | Efficient unmanned airborne SAR image target segmentation method | |
CN112651986B (en) | Environment recognition method, recognition device, recognition system, electronic equipment and medium | |
CN109934837B (en) | 3D plant leaf contour extraction method, device and system | |
CN112884026A (en) | Image recognition assisted power transmission line laser LiDAR point cloud classification method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |