Single tree crown volume extraction method based on RGB point cloud

By combining deep semantic segmentation-clustering, the minimum enclosing rectangle method and the improved Alpha Shape slice convex hull method, single tree crown parameters are extracted from RGB point cloud data, which solves the lack of crown volume extraction accuracy and generalization in the existing technology. problem, achieving efficient parameter extraction in complex scenes.

CN118747808APending Publication Date: 2024-10-08ZHEJIANG FORESTRY UNIVERSITY

Patent Information

Application Number
CN202410914115.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing crown volume extraction methods have shortcomings in accuracy and generalization. In particular, it is difficult to effectively extract the parameters of a single tree crown in complex scenes, and methods based on point cloud data are limited by holes and gaps that affect calculation accuracy.

Method used

Using a method based on RGB point cloud, combined with deep semantic segmentation-clustering, minimum enclosing rectangle method and improved Alpha Shape slice convex hull method, the east-west crown width, north-south crown width, and crown width of a single tree crown were extracted from RGB point cloud data. Height and canopy volume parameters.

Benefits of technology

Effectively extracting single tree crown parameters in complex scenes improves the grasp of tree growth status and the accuracy of biomass estimation, and enhances the accuracy and efficiency of data acquisition for forest resource inventory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747808A_ABST
    Figure CN118747808A_ABST
Patent Text Reader

Abstract

The invention discloses a single tree crown volume extraction method based on RGB point cloud, and the method specifically comprises the steps: obtaining RGB remote sensing images of a target region, and synthesizing the RGB remote sensing images into RGB point cloud data based on an SfM algorithm; extracting the RGB point cloud data by using a deep semantic segmentation-clustering individual tree crown point cloud extraction method to obtain a target individual tree crown point cloud after instance segmentation; performing parameter extraction on the target individual tree crown point cloud after instance segmentation by using a minimum bounding rectangle method to obtain an east-west crown breadth, a south-north crown breadth and a crown height of each individual tree crown point cloud; and obtaining the volume of the crown point cloud of the target single tree by using an improved Alpha Shape slicing convex hull method. According to the method, the single tree crown point cloud of a specified tree species can be effectively extracted in a complex scene, the crown breadth, the crown height and the crown volume parameters of each single tree are extracted, and the method has important significance for mastering the tree growth state and estimating the biomass.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the fields of computer technology, three-dimensional point cloud segmentation technology and single tree parameter extraction, and in particular relates to a single tree crown volume extraction method based on RGB point cloud. Background Art

[0002] As one of the indispensable resources on earth, forests play a vital role in regulating climate, conserving water resources and maintaining the ecological environment. Maintaining the sustainable development of forests is the basis for human survival, and regular forest resource inventory is the foundation for sustainable development of forests.

[0003] Traditional forest resource inventory is usually measured manually, and surveyors often need to carry a large number of instruments and equipment to travel back and forth between different areas for measurement, which is not efficient when conducting resource inventory in large areas. In recent years, with the development of remote sensing technology, drone data acquisition platforms have rapidly become popular due to their low cost and easy portability. Therefore, the use of drones to collect remote sensing data has gradually become the main form of forest resource survey. However, most of the current research on single tree segmentation and parameter extraction focuses on two-dimensional image data, and images can only capture limited information about trees, such as length and height, and cannot fully retain deeper features such as tree morphology. These shortcomings lead to limited parameters that can be extracted, which to a certain extent restricts the further development of forest resource inventory methods. At the same time, with the development of sensors and the advancement of image algorithms, the popularity of lidar and depth cameras has also made the acquisition of three-dimensional point cloud data more convenient, and point cloud data has therefore been widely used in various fields. Compared with traditional image data, point cloud data has attracted much attention for its richer structural information, which provides more possibilities to meet the needs of forestry surveys. Point cloud data can not only provide more comprehensive parameters, but also significantly improve the accuracy of parameter extraction, providing strong support for forestry survey research. Therefore, three-dimensional point clouds are gradually replacing image data and becoming the main data source for forest resource inventory.

[0004] As the main component of trees, the extraction of standing tree parameters such as crown width, crown height and crown volume is of great significance for tree growth status and biomass estimation. Among them, crown volume is an important parameter. It is closely related to forest biomass production and ecosystem and environmental functions (such as carbon fixation and air pollution reduction). However, this parameter is rarely used in actual survey work because there is no good technical means to extract it, and its extraction accuracy is difficult to meet the requirements.

[0005] At present, some studies have proposed different methods for calculating tree crown volume, mainly the following: The first is based on formulas and models. This method usually uses measurable data, such as the tree's diameter at breast height, tree height, crown width, etc., to construct corresponding formulas or models to predict tree crown volume.

[0006] The second is the image-based method. This method usually uses high-resolution remote sensing image data to extract the crown area by segmenting the crown area, and then calculates the crown volume based on information such as height. The advantages of this method are fast speed, low requirements on sensors, and low data acquisition costs.

[0007] The third method is based on 3D point clouds. This method uses the unique 3D features of point clouds to extract tree crown volumes. The advantage is that the accuracy of parameter extraction is high, and it can extract single tree parameters that are difficult to extract by other methods. Compared with traditional measurement methods and parameter extraction methods based on remote sensing images, the parameter extraction method based on point cloud data has higher accuracy and efficiency, and can obtain single tree parameters more comprehensively.

[0008] In summary, the current research on crown volume extraction is still developing. However, most of these studies are still based on manual measurement and formula calculation. The volume formula has great limitations and poor generalization. The existing crown volume calculation method based on point cloud data is often limited by the holes and gaps in the point cloud data, which affects the calculation accuracy of the crown volume and makes it difficult to apply it to actual forest surveys. Summary of the invention

[0009] The purpose of the present invention is to solve the problems existing in the prior art and provide a method for extracting the crown volume of a single tree based on RGB point cloud. The present invention combines the deep semantic segmentation-clustering method, the minimum enclosing rectangle method and the improved AlphaShape slice convex hull method to effectively segment the crown point cloud of a single tree from a complex scene and extract the crown width, crown width, crown height and crown volume parameters of each single tree.

[0010] In order to achieve the above-mentioned invention object, the present invention specifically adopts the following technical solutions:

[0011] A method for extracting the volume of a single tree crown based on RGB point cloud comprises the following steps:

[0012] S1. Obtain an RGB remote sensing image of the target area, and synthesize the RGB remote sensing image into RGB point cloud data based on the SfM algorithm; wherein the RGB point cloud data format is in TXT format, including coordinate information and color information;

[0013] S2, using the deep semantic segmentation-clustering single tree crown point cloud extraction method to extract the RGB point cloud data and obtain the target single tree crown point cloud after instance segmentation;

[0014] S3, using the minimum enclosing rectangle method to extract parameters of the target single tree crown point cloud after instance segmentation, and obtain the east-west crown width, north-south crown width and crown height of each single tree crown point cloud;

[0015] S4. Use the improved Alpha Shape slicing convex hull method to perform AlphaShape operations, voxelization operations, point cloud slicing operations, and QuickHull convex hull operations on the target single tree crown point cloud in turn to obtain several convex hulls, and sum the volumes of each convex hull to obtain the volume of the target single tree crown point cloud.

[0016] Based on the above scheme, each step can be implemented in the following preferred specific manner.

[0017] Preferably, in step S1, an RGB remote sensing image is obtained by using a drone. In the process of obtaining the RGB remote sensing image, it is necessary to simultaneously meet the requirements that the flight altitude of the drone is not less than 50m, the lateral overlap rate and the longitudinal overlap rate of the drone are not less than 85%, and the flight area of ​​the drone is larger than the target area for single tree parameter extraction.

[0018] Preferably, in step S2, the specific process of extracting the single tree crown point cloud using the deep semantic segmentation-clustering based method is as follows:

[0019] S21, input the RGB point cloud data into the trained deep point cloud semantic segmentation network for semantic segmentation, and obtain the point cloud semantic segmentation result with classification labels;

[0020] S22, denoising the point cloud semantic segmentation result whose classification label is the single tree crown point cloud category by a point cloud denoising method based on distance statistics, to obtain a denoised point cloud semantic segmentation result;

[0021] S23. The MeanShift algorithm is used to extract the single tree crown point cloud from the denoised point cloud semantic segmentation result to obtain the target single tree crown point cloud after instance segmentation.

[0022] Preferably, in step S3, the specific process of using the minimum enclosing rectangle method to extract parameters is as follows:

[0023] S31, firstly, the target tree crown point cloud is processed into a minimum enclosing rectangle using a minimum enclosing rectangle method to obtain the spatial coordinates of each vertex of the minimum enclosing rectangle in a world coordinate system; the world coordinate system is constructed by an X-axis, a Y-axis, and a Z-axis that are perpendicular to each other;

[0024] S32, respectively obtaining extreme points representing the vertex space coordinates in the X-axis direction, the Y-axis direction, and the Z-axis direction, wherein the extreme point of the vertex space coordinates in the X-axis direction is the maximum value and the minimum value of the vertex coordinates in the X-axis direction, the extreme point of the vertex space coordinates in the Y-axis direction is the maximum value and the minimum value of the vertex coordinates in the Y-axis direction, and the extreme point of the vertex space coordinates in the Z-axis direction is the maximum value and the minimum value of the vertex coordinates in the Z-axis direction;

[0025] S33. Subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the X-axis direction to obtain the east-west crown width of the single tree crown point cloud, subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the Y-axis direction to obtain the north-south crown width of the single tree crown point cloud, and subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the Z-axis direction to obtain the crown height of the single tree crown point cloud.

[0026] Preferably, in step S4, the specific process of using the improved Alpha Shape slice convex hull method to calculate the volume is as follows:

[0027] S41. First, perform AlphaShape operation on the target single tree crown point cloud to obtain a geometric body with smooth surface;

[0028] S42, performing voxelization operation on the geometric body obtained in step S41 to obtain a dense point cloud;

[0029] S43, performing a point cloud slicing operation on the dense point cloud obtained in step S42 at a fixed distance in a direction perpendicular to the tree growth direction to obtain a plurality of point cloud slices;

[0030] S44, performing a QuickHull convex hull operation on each point cloud slice obtained in step S43, and obtaining a convex hull corresponding to each point cloud slice;

[0031] S45. Perform a sum operation on the volumes of each convex hull to obtain the volume of the target single tree crown point cloud.

[0032] Preferably, the deep point cloud semantic segmentation network in step S21 adopts Improved-RandLA-Net, which is obtained by adding a parallel attention chain to the feature extraction network of RandLA-Net. The attention chain extracts features of the network input through a cascaded SE attention mechanism and a CBAM attention mechanism, and the extracted features are fused into the features extracted by the original channels in RandLA-Net.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] The present invention can effectively extract the crown point cloud of individual trees of specified tree species in complex scenes, and extract the crown width, crown height and crown volume parameters of each individual tree, which is of great significance for understanding the growth status of trees and estimating biomass. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a flow chart of the steps of the method of the present invention;

[0036] Figure 2 It is a structural schematic diagram of the single tree crown point cloud extraction method of deep semantic segmentation-clustering of the present invention;

[0037] Figure 3 Schematic diagram of volume calculation using the improved Alpha Shape slicing convex hull method in this embodiment, where: (a) is the original target single tree crown point cloud; (b) is the geometric body with a smooth surface obtained after the AlphaShape operation; (c) is the dense point cloud obtained after the voxelization operation; (d) is the point cloud slice obtained after the point cloud slicing operation; (e) is the convex hull obtained after the QuickHull convex hull operation. DETAILED DESCRIPTION

[0038] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0039] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0040] like Figure 1 As shown, in a preferred implementation of the present invention, the above-mentioned single tree crown volume extraction method based on RGB point cloud includes the following steps S1 to S4. The specific implementation process is described in detail below.

[0041] S1. Obtain the RGB remote sensing image of the target area, and synthesize the RGB remote sensing image into RGB point cloud data based on the SfM algorithm (Structure from Motion). The RGB point cloud data format is TXT format, which contains coordinate information (X, Y, Z) and color information (R, G, B).

[0042] In step S1, in order to ensure the quality and integrity of the final generated point cloud of the target area, this embodiment uses a drone to obtain RGB remote sensing images. In the process of obtaining RGB remote sensing images, it is necessary to simultaneously meet the requirements that the flight altitude of the drone is not less than 50m, the lateral overlap rate and longitudinal overlap rate of the drone are not less than 85%, and the flight area of ​​the drone should be larger than the target area extracted by the single tree parameter. In addition, when using RGB remote sensing images to produce RGB point cloud data, precise point clouds should be produced as much as possible to improve the generation quality of point clouds.

[0043] S2. Use the deep semantic segmentation-clustering single tree crown point cloud extraction method to extract the RGB point cloud data and obtain the target single tree crown point cloud after instance segmentation.

[0044] In order to effectively extract the single tree crown point cloud, the present invention adopts a deep point cloud semantic segmentation network, a point cloud denoising method based on distance statistics and a MeanShift algorithm to form a deep semantic segmentation-clustering single tree crown point cloud extraction method to extract the single tree crown point cloud of the target area.

[0045] like Figure 2 As shown in FIG. 1 , the specific process of the single tree crown point cloud extraction method based on deep semantic segmentation and clustering is as follows:

[0046] S21, input the RGB point cloud data into the trained deep point cloud semantic segmentation network for semantic segmentation, and obtain the point cloud semantic segmentation result with classification labels;

[0047] S22, denoising the point cloud semantic segmentation result whose classification label is the single tree crown point cloud category by a point cloud denoising method based on distance statistics, to obtain a denoised point cloud semantic segmentation result;

[0048] S23. The MeanShift algorithm is used to extract the single tree crown point cloud from the denoised point cloud semantic segmentation result to obtain the target single tree crown point cloud after instance segmentation.

[0049] In this embodiment, the deep point cloud semantic segmentation network adopts Improved-RandLA-Net, and its implementation method belongs to the prior art. Specifically, Improved-RandLA-Net is obtained by adding a parallel attention chain to the feature extraction network of the deep point cloud semantic segmentation network RandLA-Net. The attention chain extracts features of the network input through a cascaded SE attention mechanism and a CBAM attention mechanism, and the extracted features are fused into the features extracted by the original channels in RandLA-Net.

[0050] In the deep point cloud semantic segmentation network Improved-RandLA-Net, the features extracted by the original network RandLA-Net are fused with the features extracted by the SE attention mechanism and the CBAM attention mechanism in the newly added attention chain by addition, and then input into the activation function; the Improved-RandLA-Net network accepts a point cloud file in TXT format with color information as input. The input point cloud adopts a random sampling method. After inputting the feature extraction network with attention chain, the aggregated point cloud local features are obtained, and then enter the semantic segmentation network for semantic segmentation, and finally outputs the point cloud semantic segmentation result with semantic classification labels.

[0051] It should also be noted that in step S2 of the present invention, in addition to using the deep semantic segmentation-clustering single tree crown point cloud extraction method to extract RGB point cloud data, other methods can also be used as long as the target single tree crown point cloud after instance segmentation can be obtained.

[0052] S3. Use the minimum enclosing rectangle method to extract parameters of the target single tree crown point cloud after instance segmentation to obtain the east-west crown width, north-south crown width and crown height of each single tree crown point cloud.

[0053] It should be noted that in step S3 of the present invention, when using the minimum enclosing rectangle method to extract parameters, the target tree crown point cloud needs to be framed with a rectangular frame as small as possible to ensure that all points of the target tree crown point cloud are within the rectangular frame. Specifically:

[0054] S31. First, the target single tree crown point cloud is processed by the minimum enclosing rectangle method to obtain the spatial coordinates of each vertex of the minimum enclosing rectangle in the world coordinate system, where the world coordinate system is constructed by mutually perpendicular X-axis, Y-axis and Z-axis.

[0055] S32, respectively obtain the extreme points representing the vertex space coordinates in the X-axis direction, the Y-axis direction and the Z-axis direction, the extreme point of the vertex space coordinates in the X-axis direction is the maximum value and the minimum value of the vertex coordinates in the X-axis direction, the extreme point of the vertex space coordinates in the Y-axis direction is the maximum value and the minimum value of the vertex coordinates in the Y-axis direction, and the extreme point of the vertex space coordinates in the Z-axis direction is the maximum value and the minimum value of the vertex coordinates in the Z-axis direction.

[0056] S33. Subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the X-axis direction to obtain the east-west crown width of the single tree crown point cloud, subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the Y-axis direction to obtain the north-south crown width of the single tree crown point cloud, and subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the Z-axis direction to obtain the crown height of the single tree crown point cloud.

[0057] S4. Use the improved Alpha Shape slicing convex hull method to perform AlphaShape operations, voxelization operations, point cloud slicing operations, and QuickHull convex hull operations on the target single tree crown point cloud in turn to obtain several convex hulls, sum the volumes of each convex hull to obtain the volume of the target single tree crown point cloud, and realize the calculation of the crown point cloud volume.

[0058] It should be noted that, in step S4 of the present invention, the specific process of using the improved Alpha Shape slice convex hull method to calculate the volume is as follows:

[0059] S41. First, perform an AlphaShape operation on the target single tree crown point cloud to obtain a geometric body with a smooth surface.

[0060] In this embodiment S41, the AlphaShape operation is first performed on the target tree crown point cloud to obtain a geometric body with a smooth surface. This step can not only effectively remove the noise points on the crown surface, but also fill some depressions and holes on the crown surface, accurately capture the structure and morphology of the target tree crown point cloud, and ensure that the obtained geometric body can retain the original shape of the crown. Therefore, this method performs better when processing irregular crown point clouds. Figure 3 Comparing (a) with 3(b), it can be seen that the original target single tree crown point cloud effectively fills the holes on the crown point cloud surface after the AlphaShape operation.

[0061] S42, performing voxelization operation on the geometric body obtained in step S41 to obtain a dense point cloud.

[0062] In this embodiment S42, secondly, the geometric body obtained in the previous step is voxelized to obtain a dense point cloud, such as Figure 3(c) The voxelization operation can effectively improve the data resolution, so that it can more accurately reflect the detailed features of the tree crown, and also lay the foundation for the subsequent point cloud slicing and convex hull operations.

[0063] S43, performing a point cloud slicing operation on the dense point cloud obtained in step S42 at a fixed distance in a direction perpendicular to the tree growth direction to obtain a plurality of point cloud slices.

[0064] In this embodiment S43, the dense point cloud obtained in step S42 is then sliced ​​at a fixed distance in the vertical direction to obtain a plurality of point cloud slices, such as Figure 3 (d) The point cloud slicing operation can effectively reduce the impact caused by the local segmentation error of the point cloud, which not only maintains the independence of each slice, but also enhances the robustness of the method of the present invention.

[0065] In this embodiment, the fixed distance of the point cloud slicing operation is set to 0.5m.

[0066] S44. Perform a QuickHull convex hull operation on each point cloud slice obtained in step S43, and obtain a convex hull for each point cloud slice.

[0067] In this embodiment S44, each point cloud slice obtained in step S43 is finally subjected to a QuickHull convex hull operation, and each point cloud slice corresponds to a convex hull, such as Figure 3 (e) as shown.

[0068] It should be noted that in this embodiment S44, the basic principle of the QuickHull convex hull operation is to find a convex core and gradually expand it into a convex bounding box. The specific steps are: first, find the extreme points in each direction, and the convex core formed by these extreme points must be included in the final convex hull; second, delete the point set in the convex core and find the extreme points again; if the remaining point set is not empty, find the farthest point of each face and add it to the convex hull to form a new convex core; then, repeat the steps until the point set is empty and return to the final convex hull.

[0069] S45. Perform a sum operation on the volumes of each convex hull to obtain the volume of the target single tree crown point cloud.

[0070] In S45 of this embodiment, the total volume of the target single tree crown point cloud is finally obtained by summing the volumes of each convex hull.

[0071] In summary, the improved Alpha Shape slicing convex hull method of the present invention can not only effectively retain the surface shape of the crown point cloud and fill the depressions and holes on the surface, but also adopts the idea of ​​point cloud slicing to reduce the impact caused by local segmentation errors of the point cloud, thereby showing good results in volume calculation.

[0072] In order to better demonstrate the specific implementation and technical effect of the present invention, the single tree crown volume extraction method based on RGB point cloud shown in steps S1 to S4 in the above preferred implementation is applied to a specific example.

[0073] Example

[0074] The specific implementation process of the single tree crown volume extraction method based on RGB point cloud used in this embodiment is as described above and will not be repeated here. Only the key steps in the implementation process of the method are shown.

[0075] 1. UAV RGB image acquisition

[0076] This embodiment is the following target area: Ginkgo Avenue on the campus of Zhejiang Agricultural and Forestry University in Lin'an District, Hangzhou City, Zhejiang Province is used as the target area for single tree crown volume extraction, and the representative ginkgo trees in this area are used as extraction objects. The data is divided into two parts, one is a panoramic view of Ginkgo Avenue taken on July 12, 2022, which is used as the training area (plot 1); the other part is a part of Ginkgo Avenue on July 10, 2023, which is used as the test area (plot 2).

[0077] This embodiment uses the Phantom 4RTK series drone of DJI Innovations Technology Co., Ltd. and its built-in camera as the image acquisition system. The detailed parameters of the drone image acquisition system are shown in Table 1. The images were collected on the campus of the East Lake Campus of Zhejiang Agriculture and Forestry University, and the flight operation was completed under clear and well-lit conditions. The flight altitude of the drone was 50m, and the lateral overlap rate and longitudinal overlap rate were 85%.

[0078] Table 1 Parameters of UAV image acquisition system

[0079]

[0080] 2. Point cloud data generation and dataset preparation

[0081] Point cloud data generation: All RGB images taken by the drone are placed into the drone mapping software Pix4Dmapper to generate a dense point cloud, and finally the RGB point cloud data of the target area is obtained.

[0082] Dataset production: Using the point cloud processing software CloudCompare, the acquired RGB point cloud data of the target area was divided into a training area and a test area, and the tree point clouds of the corresponding tree species in the target area were visually interpreted and manually labeled in combination with remote sensing images. During the data set production process, only the tree point clouds that met the requirements were labeled, and the other point clouds were labeled as background. Finally, after removing the point clouds that overlapped with the sample site 4 in the sample site 1, a total of 124 ginkgo tree point clouds remained in the sample site 1, all of which were used as training data; the sample site 4 contained a total of 31 ginkgo point clouds, all of which were used as test data.

[0083] In order to uniformly produce data sets, the data sets of this embodiment are produced with reference to the Stanford3dDataset_v1.2_Aligned_Version format standard of the point cloud semantic segmentation public data set S3DIS. The point cloud file is a TXT file (RGBXYZ format) containing color and coordinate information.

[0084] 3. Single tree crown volume extraction method based on RGB point cloud

[0085] In order to effectively segment the single tree crown point cloud from the complex scene and provide the east-west crown width, north-south crown width, crown height and crown volume parameters of each single tree, this embodiment proposes a single tree crown volume extraction method based on RGB point cloud, which consists of three parts: single tree crown point cloud extraction, crown width and height extraction, and crown volume extraction. The single tree crown point cloud extraction is implemented by the single tree crown point cloud extraction method of deep semantic segmentation-clustering, which is specifically composed of a deep point cloud semantic segmentation network, a point cloud denoising method based on distance statistics, and a MeanShift algorithm; the crown width and height extraction is implemented by the minimum enclosing rectangle method; the crown volume extraction is implemented by the improved Alpha Shape slicing convex hull method.

[0086] 4. Extraction of target single tree crown point cloud.

[0087] In order to effectively extract the tree point cloud of a specified tree species, this embodiment uses a single tree crown point cloud extraction method based on deep semantic segmentation-clustering to extract the single tree crown point cloud.

[0088] 4.1. Perform semantic segmentation on the target area based on the deep point cloud semantic segmentation network Improved-RandLA-Net. The method is as follows: input the training data (sample plot 1) into the deep point cloud semantic segmentation network Improved-RandLA-Net for training to obtain the trained deep point cloud semantic segmentation network Improved-RandLA-Net, input the test data (sample plot 2) into the trained deep point cloud semantic segmentation network to obtain the point cloud semantic segmentation result with classification labels of the target area.

[0089] The experimental environment of this embodiment is Intel Core i7-12700K CPU, 32G memory, NVIDIARTX 308012G graphics card, and the deep learning framework is: CUDA11.3, Python 3.6, Tensorflow-gpu 2.6.0. All experimental parameters in the experiment are unified: the K value of the nearest neighbor point is 16, the number of single input points is 40960, the initial learning rate is 0.01, the momentum is 0.95, and the number of model iterations is 100 times.

[0090] 4.2. Extract the entire target tree point cloud based on the classification label of semantic segmentation. The method is as follows: According to the classification label of the semantic segmentation result, the non-target tree species points are eliminated to obtain the entire point cloud containing only the tree points of the target tree species.

[0091] 4.3. The point cloud denoising method based on distance statistics is used to denoise the extracted tree point cloud. The method is as follows: the mean distance from each point to all neighboring points is calculated. Points with distance means outside a certain threshold are regarded as noise points and removed, and the entire point cloud of the ginkgo tree is obtained after the noise points are removed.

[0092] 4.4. Extraction of single tree point cloud based on point cloud clustering, and finally obtain single tree point cloud with location information and color information. The extraction method is as follows: the density-based point cloud clustering algorithm Meanshift is used. This algorithm uses the position of the point cloud in three-dimensional space and divides the point cloud according to the Euclidean distance between the point clouds. Therefore, the cluster center can be determined and clustered according to the density of the point cloud. The single tree point cloud is extracted by the characteristics of the tree point cloud being dense in the middle and sparse at the edge, and finally the single tree point cloud of the ginkgo tree with location information and color information is obtained.

[0093] 5. Parameter extraction based on the minimum enclosing rectangle method finally extracts the east-west crown width, north-south crown width and crown height of each single tree.

[0094] 6. Based on the improved Alpha Shape slice convex hull method, the crown volume of each single tree is finally extracted.

[0095] In order to extract the crown volume parameters of a single tree crown point cloud, this embodiment mainly uses the Alpha Shape algorithm to construct an improved Alpha Shape slice convex hull method, such as Figure 3 As shown in the figure, the improved Alpha Shape slicing convex hull method mainly includes the following steps:

[0096] 6.1. Perform AlphaShape operation on the tree crown point cloud to obtain a geometric body with a smooth surface.

[0097] 6.2. Voxelize the geometry obtained in the previous step to obtain a dense point cloud.

[0098] 6.3. Perform point cloud slicing operation on the dense point cloud obtained in the previous step at a fixed distance in the vertical direction to obtain several point cloud slices.

[0099] 6.4. Perform QuickHull convex hull processing on each point cloud slice obtained in the previous step and calculate the volume of the convex hull. By summing the volumes of each convex hull, the total volume of the crown point cloud is finally obtained.

[0100] This embodiment uses Precision as the evaluation index for the extraction of single tree crown point cloud, and uses Root Mean Squared Error (RMSE), Mean Absolute Error (MAE) and Mean Relative Error (MRE) as evaluation indexes for parameter extraction.

[0101] The evaluation index Precision reflects the completeness of the single tree point cloud extraction, and its calculation method is shown in formula (1).

[0102]

[0103] Where: TP represents the number of points that were originally labeled tree points and were correctly predicted; FP represents the number of points that were originally labeled tree points but were incorrectly predicted.

[0104] The calculation methods of root mean square error RMSE, mean absolute error MAE and mean relative error MRE are shown in equations (2), (3) and (4) respectively.

[0105]

[0106]

[0107] Where: y i It indicates the measured value of number i; represents the extracted value numbered i; n represents the number of test samples.

[0108] The final experimental results of this embodiment are shown in Table 2, Table 3, and Table 4.

[0109] Table 2 Comparison of single tree crown point cloud extraction results

[0110]

[0111] Table 3 Comparison of measured parameters and extracted parameters

[0112]

[0113]

[0114] Table 4 Calculation of crown volume by different methods

[0115]

[0116]

[0117] The method of this embodiment completes the whole process from data collection to single tree crown point cloud segmentation and then to single tree parameter extraction in the target sample plot. The Average Precision of the single tree segmentation accuracy of the final test sample plot is 97.35%, and the average error of the crown width and crown height is within 10%. The volume calculation method of the present invention has good accuracy in RMSE, MAE, and MRE, which are 11.653m3, 8.679m3 and 15.057% respectively. The experimental results prove that the feasibility and accuracy of the present invention in extracting single tree parameters provides a new perspective for forest resource surveys and provides technical support for the current work of extracting single tree parameters.

[0118] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A method for extracting the volume of a single tree crown based on RGB point cloud, characterized in that: The following steps are involved: S1. Obtain an RGB remote sensing image of the target area, and synthesize the RGB remote sensing image into RGB point cloud data based on the SfM algorithm; wherein the RGB point cloud data format is in TXT format, including coordinate information and color information; S2, using the deep semantic segmentation-clustering single tree crown point cloud extraction method to extract the RGB point cloud data and obtain the target single tree crown point cloud after instance segmentation; S3, using the minimum enclosing rectangle method to extract parameters of the target single tree crown point cloud after instance segmentation, and obtain the east-west crown width, north-south crown width and crown height of each single tree crown point cloud; S4. Use the improved Alpha Shape slicing convex hull method to perform AlphaShape operations, voxelization operations, point cloud slicing operations, and QuickHull convex hull operations on the target single tree crown point cloud in turn to obtain several convex hulls, and sum the volumes of each convex hull to obtain the volume of the target single tree crown point cloud.

2. The method for extracting the volume of a single tree crown based on RGB point cloud according to claim 1, characterized in that: In step S1, the RGB remote sensing image is obtained by using a drone. In the process of obtaining the RGB remote sensing image, it is necessary to simultaneously meet the requirements that the flight altitude of the drone is not less than 50m, the lateral overlap rate and the longitudinal overlap rate of the drone are not less than 85%, and the flight area of ​​the drone is larger than the target area for single tree parameter extraction.

3. The method for extracting the volume of a single tree crown based on RGB point cloud according to claim 1, characterized in that: In step S2, the specific process of extracting the single tree crown point cloud using the deep semantic segmentation-clustering based method is as follows: S21, input the RGB point cloud data into the trained deep point cloud semantic segmentation network for semantic segmentation, and obtain the point cloud semantic segmentation result with classification labels; S22, denoising the point cloud semantic segmentation result whose classification label is the single tree crown point cloud category by a point cloud denoising method based on distance statistics, to obtain a denoised point cloud semantic segmentation result; S23. The MeanShift algorithm is used to extract the single tree crown point cloud from the denoised point cloud semantic segmentation result to obtain the target single tree crown point cloud after instance segmentation.

4. The method for extracting the volume of a single tree crown based on RGB point cloud according to claim 1, characterized in that: In step S3, the specific process of using the minimum enclosing rectangle method to extract parameters is as follows: S31, firstly, the target tree crown point cloud is processed into a minimum enclosing rectangle using a minimum enclosing rectangle method to obtain the spatial coordinates of each vertex of the minimum enclosing rectangle in a world coordinate system; the world coordinate system is constructed by an X-axis, a Y-axis, and a Z-axis that are perpendicular to each other; S32, respectively obtaining extreme points representing the vertex space coordinates in the X-axis direction, the Y-axis direction, and the Z-axis direction, wherein the extreme point of the vertex space coordinates in the X-axis direction is the maximum value and the minimum value of the vertex coordinates in the X-axis direction, the extreme point of the vertex space coordinates in the Y-axis direction is the maximum value and the minimum value of the vertex coordinates in the Y-axis direction, and the extreme point of the vertex space coordinates in the Z-axis direction is the maximum value and the minimum value of the vertex coordinates in the Z-axis direction; S33. Subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the X-axis direction to obtain the east-west crown width of the single tree crown point cloud, subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the Y-axis direction to obtain the north-south crown width of the single tree crown point cloud, and subtract the maximum value of the vertex coordinate from the minimum value of the vertex coordinate in the Z-axis direction to obtain the crown height of the single tree crown point cloud.

5. The method for extracting the volume of a single tree crown based on RGB point cloud according to claim 1, characterized in that: In step S4, the specific process of using the improved Alpha Shape slice convex hull method to calculate the volume is as follows: S41. First, perform AlphaShape operation on the target single tree crown point cloud to obtain a geometric body with smooth surface; S42, performing voxelization operation on the geometric body obtained in step S41 to obtain a dense point cloud; S43, performing a point cloud slicing operation on the dense point cloud obtained in step S42 at a fixed distance in a direction perpendicular to the tree growth direction to obtain a plurality of point cloud slices; S44, performing a QuickHull convex hull operation on each point cloud slice obtained in step S43, and obtaining a convex hull corresponding to each point cloud slice; S45. Perform a sum operation on the volumes of each convex hull to obtain the volume of the target single tree crown point cloud.

6. The method for extracting the volume of a single tree crown based on RGB point cloud according to claim 3, characterized in that: The deep point cloud semantic segmentation network in step S21 adopts Improved-RandLA-Net, which is obtained by adding a parallel attention chain to the feature extraction network of RandLA-Net. The attention chain extracts features from the network input through a cascaded SE attention mechanism and a CBAM attention mechanism, and the extracted features are fused into the features extracted by the original channels in RandLA-Net.

Citation Information

Patent Citations

  • Method for calculating crown volume based on point cloud adaptive slicing

    CN115880354A

  • Three-dimensional point processing and model generation

    US20140192050A1

Cited By

  • Satellite remote sensing estimation method for aboveground biomass of desert steppe shrubs

    CN119942366A

  • Unmanned aerial vehicle remote sensing estimation method and estimation device for aboveground biomass of desert steppe shrubs

    CN120088684A

  • Tree parameter acquisition method based on image processing

    CN121686241A