Single tree extraction method based on boundary point perception and ecological structure probability analysis
By employing boundary point perception and ecological structure probability analysis, the problem of insufficient extraction of individual trees in areas without obvious trunks or shrubs has been solved, enabling the extraction of individual trees in complex outdoor scenes and improving the accuracy and wide applicability of tree detection and extraction.
Patent Information
- Application Number
- CN202410689035.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-05-30
AI Technical Summary
Existing technologies neglect cases without obvious tree trunks or shrubs, resulting in insufficient extraction of individual trees and limiting the application scope of tree detection and extraction.
A method based on boundary point perception and ecological structure probability analysis is adopted. The polyhedron of tree points is constructed by Delaunay, and multiple tree clusters are detected by Euclidean clustering. The backbone points and boundary points are determined by combining the topological structure of tree points and the height ascending queue. An ecological probability distribution is constructed to extract individual trees.
It can extract individual trees, including shrubs, in complex outdoor scenes without requiring a large amount of human experience parameters, enriching the methodological system for tree detection and extraction, and promoting the perception and understanding of outdoor scenes under 3D visual intelligence.
Smart Images

Figure CN118608955B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of artificial intelligence computing methods, specifically relating to a method for extracting single trees based on boundary point perception and ecological structure probability analysis. Background Technology
[0002] Trees, as a core element in large-scale outdoor scenes, present a critical scientific challenge for 3D environmental perception and autonomous driving. Tree detection and extraction play a vital role in autonomous driving navigation, SLAM, embodied intelligence, and outdoor scene modeling. Against the backdrop of green industrial development plans, intelligent perception and digitization of outdoor scenes are essential. Therefore, with continuous technological advancements and accelerated urbanization, the complexity of application scenarios is increasing, placing more stringent and urgent demands on urban digitization and outdoor environmental perception capabilities. However, the diverse types of objects in outdoor scenes, the close connections between different objects, and the occlusion between objects undoubtedly increase the difficulty of tree detection and extraction. Therefore, exploring a method for rapid and accurate tree detection and extraction from outdoor scenes has significant theoretical importance and practical application value in scene perception.
[0003] With the rapid advancement of urban digitalization, tree detection and extraction have become crucial as an indispensable part of autonomous driving for new energy vehicles and the understanding and perception of outdoor scenes. Current research on tree detection and extraction in outdoor scenes based on 3D laser point clouds largely focuses on datasets with clearly visible tree trunks, neglecting cases where the dataset contains no obvious tree trunks or shrubs. This inadequate extraction of shrubs in the scene severely limits the application scope of single-tree extraction. Summary of the Invention
[0004] The purpose of this invention is to provide a method for extracting single trees based on boundary point perception and ecological structure probability analysis, which solves the problem in the prior art that ignores the existence of no obvious tree trunks or shrubs in the dataset, i.e., insufficient extraction of single trees in the scene.
[0005] The technical solution adopted in this invention is a method for extracting a single tree based on boundary point perception and ecological structure probability analysis, comprising the following steps:
[0006] Step 1: Construct a polyhedron of tree points using Delaunay, extract seed points using Euclidean clustering at a certain height threshold, and detect multiple tree clusters based on the number of seed points;
[0007] Step 2: After determining the multi-tree cluster, determine the labels of the backbone points and sense the boundary points through the topological structure of the tree points and the height ascending queue.
[0008] Step 3: Construct an ecological probability distribution to determine the final label of the boundary point. Finally, combine the backbone points and boundary points to extract individual trees.
[0009] The invention is further characterized by:
[0010] Step 1 is as follows:
[0011] Step 1.1: Tetrahedral subdivision of tree points and generation of topology;
[0012] Step 1.2: Separate the independent tree cluster polyhedra;
[0013] Step 1.3: Identify the tree seed points in a single tree cluster and detect multiple tree clusters based on the number of seed points.
[0014] Step 1.1 specifically involves:
[0015] Step 1.1.1: Construct a set P that covers all tree nodes. tree The large tetrahedron is used as the starting point of the Delaunay tetrahedron mesh, and its four vertex information is recorded.
[0016] Step 1.1.2, P tree The data points are added one by one to the updated tetrahedral grid. Each time a tree point is added to the tetrahedral grid, the tetrahedral grid is updated, and new tetrahedral grids are continuously formed and updated in real time.
[0017] Step 1.1.3, whenever P tree New point p in i When inserted into a Delaunay tetrahedral mesh, identify and remove those whose circumspheres contain p. i The tetrahedral elements are used, but their boundary structure is preserved, thus creating a Delaunay internal void in the mesh;
[0018] Step 1.1.4, connect the new point p i With all vertices on the boundary of the void, a new tetrahedral mesh is formed. These newly generated tetrahedra all conform to the Delaunay empty sphere criterion and are therefore all Delaunay tetrahedra.
[0019] Step 1.1.5, when P tree After inserting all points, delete the large tetrahedron containing the entire point set, and finally generate a tree-point polyhedron Σ={V,E} composed of Delaunay tetrahedrons, where V=P tree ={p i (x i ,y i ,z i | i = 1, 2, 3, ..., Ntree}, where x i ,y i ,z i For point p i The three-dimensional coordinate information, E = {e ij (p i ,p j |1≤i≠j≤N tree p i ,p j ∈P tree}, e ij It is from point p i and point p j The edges formed by connecting them;
[0020] Step 1.1.6: Extract the edge set E from the polyhedron Σ={V,E}, and iteratively calculate each element e in E. ij (p i ,p j The Euclidean distance of the point (i.e., the distance between the points) and points Euclidean distance w ij w ij Calculated by formula (1), where, and Points p i ,p j Three-dimensional coordinate information;
[0021]
[0022] In equation (1), 1 ≤ i ≠ j ≤ n;
[0023] Weight set W = {w ij (p i ,p j |1≤i≠j≤N tree p i ,p j ∈P tree}, generating the final tree-point weighted topology Σ={V,E,W}.
[0024] Step 1.2 specifically involves:
[0025] Step 1.2.1, from point set P tree Randomly select a point p in the middle n1 Initialize the new point set P bd P bd Includes all related to p n1 Points within a distance of no more than 2α, then from P bd Select two points p from the middle n2 ,p n3And calculate the centers o1, o2 of the two spheres passing through these three points and having a radius of α;
[0026] Step 1.2.2, traverse the point set P bd Calculate the distance from each point to the center of the sphere o1 and o2, and form a set d1 for the distance from each point to the center of the sphere o1 and a set d2 for the distance from each point to the center of the sphere o2. If at least one set d1 or d2 contains a distance value greater than or equal to α, then determine p. n1 ,p n2 ,p n3 It is an edge contour point, triangle p n1 ,p n2 ,p n3 This is the boundary triangle. Conversely, if the distance values in d1 and d2 are both less than α, it indicates that p n1 ,p n2 ,p n3 If the point is not an edge contour point, stop traversing and proceed to the next step.
[0027] Step 1.2.3, from P bd Select the next non-p group n2 ,p n3 The point is then determined, and the judgment process in steps 1.2.1 and 1.2.2 is repeated until P is reached. bd All points have been judged;
[0028] Step 1.2.4: After completing the above steps, then from P... tree Select the next point and repeat the judgment process from 1.2.1 to 1.2.3 until P. tree All points have been processed, and an m×3 boundary triangle matrix M is output, where m represents the number of boundary triangles contained in the final boundary surface, and each row of the matrix is a three-dimensional vector representing the coordinates of one vertex of a boundary triangle.
[0029] Step 1.2.5: Initialize a set Bou1 and a queue Q to store the boundary triangles of a single polyhedron: First, enqueue the points of the boundary triangles in the first row of matrix M into Q, dequeue them one by one, and search and delete the row containing this point in the boundary triangle matrix M, that is, all boundary points connected to the current point, until the search is completed, and then store these points in set Bou1.
[0030] Step 1.2.6, Initialize the boundary point set Bou i If i ≠ 1, follow steps 1.2.5 to sequentially query the boundary points in the boundary triangle matrix M until all boundary points are processed, and output the set of all boundary points {Bou1, Bou2, ..., Bou...}. n}, where n is the total number of individual tree clusters queried;
[0031] Step 1.2.7, calculate the bounding box of the boundary point set Bou i , find the maximum coordinate values x of Bou i , y max , z max and the minimum coordinate values x max , y min , z min , extract coordinate points p satisfying formula (2) from P min (x tree , y i , z i ), i i
[0032]
[0033] Place the coordinate points p satisfying formula (2) into the individual tree cluster set i , where i corresponds to Bou . i
[0034] Step 1.3 is specifically as follows:
[0035] Step 1.3.1, determine the maximum value z of the z-coordinate in the tree point cloud data max and the minimum value z min , calculate the height H of the entire scene through formula (3),
[0036] H = z max - z min (3)
[0037] Set the proportion of the retained bottom height to the scene height as h, where 0 < h < 1, and select points p in P whose z satisfies the corresponding conditions according to formula (4) tree (x i , y i , z i ), i i
[0038] z min ≤ z i ≤ h × z min (4)
[0039] In formula (4), 0 < h < 1;
[0040] Step 1.3.2, the points p selected in Step 1.3.1 whose z satisfies the corresponding conditions i are represented by i , N retain To determine the number of points to retain, initialize a candidate seed point set C1, randomly selected from P. retain Select a point And insert it into C1, and search the neighborhood ball in P according to the radius R. retain Search point p i Find the neighboring points and insert them into C1;
[0041] Step 1.3.3: Search all points in C1 using the neighborhood search ball method described in Step 1.3.1 until no more points are added to C1. Then, move the points in C1 from P... retain Delete them, and continue to initialize a new set of candidate seed points C according to the above operations. i (i>1), update P retain Proceed according to steps 1.3.1 and 1.3.2 until P... retain All points in the process have been processed;
[0042] Step 1.3.4, select the candidate seed point set C. i The point with the smallest coordinate value under the z-axis is used as the seed point of the tree. If a single tree cluster contains only a unique seed point, it is identified as a single tree cluster, and the individual tree is directly extracted from P. tree and Σ tree Delete the tree points and polyhedra corresponding to this tree. If a single tree cluster contains multiple seed points, it is identified as a multi-tree cluster.
[0043] Step 1.3.5: Insert all seed points contained in the identified multi-tree clusters into the seed point set in ascending order of height. In the middle, and obtain the final P tree ={p1,p2,…,p t},Σ tree ={Σ1,Σ2,…,Σ Σn}, here N tree , t and Σ n These represent the number of remaining individual trees, the number of remaining tree points, and the number of remaining polyhedra corresponding to multiple tree clusters, respectively.
[0044] Step 2 is as follows:
[0045] Step 2.1, set the seed points and the unsplit tree node set P tree ={p i (x i ,y i ,z i )|p1,p2,…,p t Sort and update the data according to the ascending height of each point, assuming S = {1, 2}, Ptree ={1,2,3,4,5,6,7}, initialize a queue Q, enqueue the seed point set S = {1,2} in ascending height order, at which point Q = {1,2}, and dequeue the points in Q in turn, and in Σ tree ={Σ1,Σ2,…,Σ Σn Search for points connected to the midpoint in the topology.
[0046] Step 2.2: Dequeue point 1 and search for the set of points directly connected to point 1, which is {4,7}. Mark {4,7} with the same label as point 1, and enqueue {4,7} in ascending order of height. At this point, Q = {2,4,7}. Dequeue point 2 and search for the set of points directly connected to point 2, which is {3,6}. Mark {3,6} with the same label as point 2, and enqueue {3,6} in ascending order of height. At this point, Q = {3,4,6,7}. Points 3 and 4 have already been marked with the same color, so points {1,2,3,4} are now considered backbone points. Point 6 is directly connected to point 5, so point 5 is first marked as green. When searching for point 7, since the labels of point 5 and point 7 are different, point 5 is marked as gray and inserted into the boundary point set. The backbone point set and boundary point set are now P. backbone ={1,2,3,4,6,7},P boundary ={5};
[0047] Step 2.3, following Step 2.2, divide the unsplit tree point set P tree By processing sequentially, the backbone point set of a single independent multi-tree cluster is obtained. and boundary point set N backbone N represents the number of backbone points. boundary The number of boundary points determines the number of backbone points that can be directly segmented, while the perceived boundary points require further ecological structure analysis based on the two nearest segmented individual trees.
[0048] Step 3 specifically involves:
[0049] Step 3.1, given a multi-tree cluster polyhedral topology Σ i ={V i E i W i} and the path p between the boundary point and the seed point th ={v1,v2,…,v k}, p th The weight is denoted as w(p) th ), is the sum of the weights of each edge in the path, w(p th The result is obtained from equation (5).
[0050]
[0051] In equation (5), w(v) j-1 ,v j () is point v j-1 v at the point j The weights;
[0052] According to equation (6), the transmission distance is minimized. If there exists a minimum w(u,v), the transmission distance is equal to w(u,v). Otherwise, w(u,v) is considered to be infinite.
[0053]
[0054] In equation (6), u and v are the boundary point and seed point, respectively, and p th Let u be the path from point u to point v.
[0055] Step 3.2: Sort all transmission distances in ascending order, and extract the first and second closest distances, i.e., the closest distance w1 and the second closest distance w2. The seed points corresponding to these two transmission distances are s1 and s2, respectively. The current point sets of Tree1 and Tree2 are as follows: and N tree 2}, N tree 1 and N tree 2 represents the number of individual tree points that have been segmented so far;
[0056] Set the radius of the spherical neighborhood to r = 0.25, search for the neighborhood points of the boundary point t1, then the centroids c1 and c2 of the current Tree1 and Tree2, and the local centroid c3 of the boundary point are calculated by equation (7):
[0057]
[0058] In equation (7), j = 1, 2, 3;
[0059] Step 3.3: Based on the growth law of branch length and trunk radius in ecological theory, the transmission distance is scaled by a 2 / 3 exponential. The scaled transmission distance is represented by equation (8), where R is the circle fitting radius that retains the bottom point cloud data.
[0060]
[0061] In equation (8), i = 1, 2;
[0062] Step 3.4, for trees and shrubs without obvious trunks, the radius of the circle after fitting. The average of all bottom circle fitting results for the multi-tree cluster is set, and the following settings are applied. The scaling factor k represents the ratio of the tree canopy to the shrubs, a vector. and The included angle β1 is the centroid deflection angle, and the vector and The included angle θ1 is a vertical included angle, where e1 is the intersection of the horizontal line and the vertical line, and β i ,θ i Calculated by equation (9), where For vectors The model,
[0063]
[0064] Step 3.5, regularize β1,β2,θ1,θ2,w1,w2:
[0065]
[0066] Step 3.6: Based on the three constraints of transmission distance, centroid deflection angle, and vertical angle, an ecological structure probability analysis method is proposed. The formula is shown in Equation (11), which represents the probability that boundary point t1 should be identified as the target tree. The term reduces the probability of belonging to a non-target tree, while Items and The purpose of this term is to increase the probability that a boundary point belongs to the target tree.
[0067]
[0068] In equation (11), a + b + c = 1;
[0069] Step 3.7: Compare Pr1 and Pr2. If Pr1 > Pr2, the boundary point is identified as belonging to Tree1; otherwise, it is identified as belonging to Tree2. Process the boundary points according to steps 3.1-3.6 until queue Q is empty, obtaining the backbone point set of a single independent multi-tree cluster. and boundary point set j is the number of individual trees. The number of backbone points. Given the number of boundary points, the set of backbone points with the same value j is finally combined with the set of boundary points to form the final set of individual trees. As shown in equation (12)
[0070]
[0071] The beneficial effects of this invention are:
[0072] This invention proposes a single tree extraction method based on boundary point perception and ecological structure probability analysis, which can be applied to outdoor scene perception, obstacle detection in autonomous driving of new energy vehicles, etc. In the process of extracting single trees, there is no need to set a large number of manual experience parameters, and there is no need for constraints on tree trunks and tree apexes. It can directly extract single trees (including shrubs) from complex outdoor scenes, enriching the relevant method system of tree detection and single tree extraction, and promoting its application in outdoor scene perception and understanding under three-dimensional visual intelligence. Attached Figure Description
[0073] Figure 1 This is the framework of the single tree extraction method based on boundary point perception and ecological structure probability analysis in this invention;
[0074] Figure 2 This is a tree cluster polyhedron diagram generated by the present invention;
[0075] Figure 3 This is a diagram showing the bottom clustering and seed point identification of the present invention;
[0076] Figure 4 This invention relates to backbone point segmentation and boundary point perception map based on a height-ascending queue.
[0077] Figure 5 is a schematic diagram of the ecological structure analysis of the boundary points of the present invention. In Figure 5(a), the ecological probability analysis diagram is shown. Figure 5(b) is a schematic diagram of the centroid deflection angle and Figure 5(c) is a schematic diagram of the vertical angle. Detailed Implementation
[0078] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0079] Example 1
[0080] This embodiment provides a method for extracting single trees based on boundary point perception and ecological structure probability analysis, such as... Figure 1 As shown, it includes the following steps:
[0081] Step 1: Construct a polyhedron of tree points using Delaunay, extract seed points using Euclidean clustering at a certain height threshold, and detect multiple tree clusters based on the number of seed points. Specifically:
[0082] Step 1.1: Use Bowyer-Watson to perform tetrahedral partitioning of tree points and generate the topology. The specific process is as follows:
[0083] Step 1.1.1: Construct a large tetrahedron that covers the entire tree point set, use it as the starting point of the Delaunay tetrahedron mesh, and record the information of its four vertices.
[0084] Step 1.1.2, P treeThe data points are added one by one to the updated tetrahedral grid. Each time a tree point is added to the tetrahedral grid, the tetrahedral grid is updated, and new tetrahedral grids are continuously formed and updated in real time.
[0085] Step 1.1.3, whenever P tree New point p in i When inserted into a Delaunay tetrahedral mesh, identify and remove those whose circumspheres contain p. i The tetrahedral elements are used, but their boundary structure is preserved, thus creating a Delaunay internal void in the mesh;
[0086] Step 1.1.4, connect the new point p i With all vertices on the boundary of the void, a new tetrahedral mesh is formed. These newly generated tetrahedra all conform to the Delaunay empty sphere criterion and are therefore all Delaunay tetrahedra.
[0087] Step 1.1.5, when P tree After inserting all points, delete the large tetrahedron containing the entire point set, and finally generate a tree-point polyhedron ∑={V,E} composed of Delaunay tetrahedrons, where V=P tree ={p i (x i ,y i ,z i | i = 1, 2, 3, ..., N tree}, where x i ,y i ,z i For point p i The three-dimensional coordinate information, E = {e ij (p i ,p j |1≤i≠j≤N tree p i ,p j ∈P tree}, e ij It is from point p i and point p j The edges formed by connecting them;
[0088] Step 1.1.6: Extract the edge set E from the polyhedron ∑={V,E}, and iteratively calculate each element e in E. ij (p i ,p j The Euclidean distance of the point (i.e., the distance between the points) and points Euclidean distance w ij w ij It can be calculated using formula (1), where, and Points p i ,p j Three-dimensional coordinate information;
[0089]
[0090] Weight set W = {w ij (p i ,p j |1≤i≠j≤N tree p i ,p j ∈P tree}, generating the final tree-point weighted topology Σ={V,E,W}, as follows Figure 2 As shown.
[0091] Step 1.2: Use alpha-shape to separate the independent tree cluster polyhedra. The specific process is as follows:
[0092] Step 1.2.1, from point set P tree Randomly select a point p in the middle n1 Initialize the new point set P bd P bd Includes all related to p n1 Points within a distance of no more than 2α, then from P bd Select two points p from the middle n2 ,p n3 And calculate the centers o1, o2 of the two spheres passing through these three points and having a radius of α;
[0093] Step 1.2.2, traverse the point set P bd Calculate the distance from each point to the center of the sphere o1 and o2, and form a set d1 for the distance from each point to the center of the sphere o1 and a set d2 for the distance from each point to the center of the sphere o2. If at least one set d1 or d2 contains a distance value greater than or equal to α, then determine p. n1 ,p n2 ,p n3 It is an edge contour point, triangle p n1 ,p n2 ,p n3 This is the boundary triangle. Conversely, if the distance values in d1 and d2 are both less than α, it indicates that p n1 ,p n2 ,p n3 If the point is not an edge contour point, stop traversing and proceed to the next step.
[0094] Step 1.2.3, from P bd Select the next non-p group n2 ,p n3The point is then determined, and the judgment process in steps 1.2.1 and 1.2.2 is repeated until P is reached. bd All points have been judged;
[0095] Step 1.2.4: After completing the above steps, then from P... tree Select the next point and repeat the judgment process from 1.2.1 to 1.2.3 until P. tree All points have been processed, and an m×3 boundary triangle matrix M is output, where m represents the number of boundary triangles contained in the final boundary surface, and each row of the matrix is a three-dimensional vector representing the coordinates of one vertex of a boundary triangle.
[0096] Step 1.2.5: Initialize a set Bou1 and a queue Q to store the boundary triangles of a single polyhedron: First, enqueue the points of the boundary triangles in the first row of matrix M into Q, dequeue them one by one, and search and delete the row containing this point in the boundary triangle matrix M, that is, all boundary points connected to the current point, until the search is completed, and then store these points in set Bou1.
[0097] Step 1.2.6, Initialize the boundary point set Bou i If i ≠ 1, follow steps 1.2.5 to sequentially query the boundary points in the boundary triangle matrix M until all boundary points are processed, and output the set of all boundary points {Bou1, Bou2, ..., Bou...}. n}, where n is the total number of individual tree clusters retrieved;
[0098] Step 1.2.7, calculate the boundary point set Bou i Find the bounding box of Bou i Maximum coordinate value x max ,y max ,z max and the minimum coordinate value x min ,y min ,z min From P tree Extract the coordinates p that satisfy formula (2) from the data. i (x i ,y i ,z i ),
[0099]
[0100] The coordinates of point p satisfying formula (2) i Add to a single tree cluster set Where i and Bou i Correspondingly.
[0101] Step 1.3: identify tree seed points in a single tree cluster, and detect multi-tree clusters based on the number of seed points. The specific process is as follows:
[0102] Step 1.3.1:
[0103] Step 1.3.1: determine the maximum value z of the z-coordinate in the tree point cloud data max and the minimum value z min ; calculate the height H of the entire scene using formula (3),
[0104] H = z max - z min (3)
[0105] Set the proportion of the retained bottom height to the scene height as h, where 0 < h < 1; select points p in P that meet the conditions according to formula (4) tree where z i satisfies the conditions i (x i , y i , z i ),
[0106] z min ≤ z i ≤ h × z min (4)
[0107] In formula (4), 0 < h < 1;
[0108] Step 1.3.2: the points p selected in Step 1.3.1 where z i meets the conditions i are represented by , N retain is the number of retained points; initialize a candidate seed point set C1, randomly select a point from P retain and insert it into C1; search for neighborhood points of point p in P using a neighborhood search sphere with radius R and insert the neighborhood points into C1; retain i
[0109] Step 1.3.3: search for all points in C1 using the neighborhood search sphere in Step 1.3.1 until the points in C1 no longer increase; delete the points in C1 from P retain and continue to initialize a new candidate seed point set C according to the aforementioned operation i (i > 1); process the updated P according to Step 1.3.1 and Step 1.3.2 retain until all points in P are processed; retain
[0110] Step 1.3.4, select the candidate seed point set C. i The point with the smallest coordinate value under the z-axis is used as the seed point of the tree. If a single tree cluster contains only a unique seed point, it is identified as a single tree cluster, and the individual tree is directly extracted from P. tree and Σ tree Delete the tree points and polyhedra corresponding to this tree. If a single tree cluster contains multiple seed points, it is identified as a multi-tree cluster.
[0111] Step 1.3.5: Insert all seed points contained in the identified multi-tree clusters into the seed point set in ascending order of height. In the middle, and obtain the final P tree ={p1,p2,…,p t}, Here N tree , t and Σ n These represent the number of remaining individual trees, the number of remaining tree nodes, and the number of remaining polyhedra corresponding to multiple tree clusters, respectively. Figure 3 As shown, N tree =20, ∑ n =4.
[0112] Step 2: After determining the multi-tree cluster, the labels of the backbone points are determined by the topological structure of the tree points and the height-ascending queue, and the boundary points are perceived.
[0113] Step 3: Construct an ecological probability distribution to determine the final labels of boundary points. Finally, combine the backbone points and boundary points to extract individual trees.
[0114] Example 2
[0115] This embodiment provides a method for extracting a single tree based on boundary point perception and ecological structure probability analysis. Building upon Embodiment 1, step 2 specifically involves:
[0116] Step 2.1, set the seed points and the unsplit tree node set P tree ={p i (x i ,y i ,z i )|p1,p2,…,p t Sort and update the data according to the ascending height of each point, assuming S = {1, 2}, P tree ={1,2,3,4,5,6,7}, such as Figure 4As shown, different colors represent different labels, and gray dots represent unsegmented dots. Following this assumption, the subsequent steps are described as follows: A queue Q is initialized, and the seed point set S = {1, 2} is enqueued in ascending order of height. At this point, Q = {1, 2}. The dots in Q are then dequeued sequentially. Search for points connected to the midpoint in the corresponding topological structure;
[0117] Step 2.2: Dequeue point 1 and search for the set of points directly connected to point 1, which is {4,7}. Mark {4,7} with the same color as point 1, and enqueue {4,7} in ascending order of height. At this point, Q = {2,4,7}. Dequeue point 2 and search for the set of points directly connected to point 2, which is {3,6}. Mark {3,6} with the same color as point 2, and enqueue {3,6} in ascending order of height. At this point, Q = {3,4,6,7}. Points 3 and 4 have already been marked with the same color, so points {1,2,3,4} are now considered backbone points. Figure 4 As shown, point 6 is directly connected to point 5, so point 5 is initially marked as green. However, when point 7 searches, it finds that point 5 has a different color, so point 5 is marked as gray and inserted into the boundary point set. At this point, the backbone point set and the boundary point set are P and P, respectively. backbone ={1,2,3,4,6,7},P boundary ={5}.
[0118] Step 2.3, following Step 2.2, divide the unsplit tree point set P tree By processing sequentially, the backbone point set of a single independent multi-tree cluster is obtained. and boundary point set N backbone N represents the number of backbone points. boundary The number of boundary points determines the number of backbone points that can be directly segmented, while the perceived boundary points require further ecological structure analysis based on the two nearest segmented individual trees.
[0119] Example 3
[0120] This embodiment provides a method for extracting a single tree based on boundary point perception and ecological structure probability analysis. Building upon embodiments 1-2, step 3 specifically involves:
[0121] Step 3.1,
[0122] Given a multi-tree cluster polyhedral topology Σ i ={V i E i W i} and the path p between the boundary point and the seed point th={v1,v2,…,v k}, p th The weight is denoted as w(p) th ), is the sum of the weights of each edge in the path, w(p th The result is obtained from equation (5).
[0123]
[0124] In equation (5), w(v) j-1 ,v j () is point v j-1 v at the point j The weights;
[0125] According to equation (6), the transmission distance is minimized. If there exists a minimum w(u,v), the transmission distance is equal to w(u,v). Otherwise, w(u,v) is considered to be infinite.
[0126]
[0127] In equation (6), u and v are the boundary point and seed point, respectively, and p th Let be the path from point u to point v;
[0128] Step 3.2: Sort all transmission distances in ascending order, and extract the first and second closest distances, i.e., the closest distance w1 and the second closest distance w2. The seed points corresponding to these two transmission distances are s1 and s2, respectively. The current point sets of Tree1 and Tree2 are as follows: and N tree 1 and N tree 2 represents the number of individual tree points that have been segmented so far;
[0129] Set the radius of the spherical neighborhood to r = 0.25, search for the neighborhood points of the boundary point t1, then the centroids c1 and c2 of the current Tree1 and Tree2, and the local centroid c3 of the boundary point are calculated by equation (7):
[0130]
[0131] In equation (7), j = 1, 2, 3;
[0132] Step 3.3: Based on the growth law of branch length and trunk radius in ecological theory, the transmission distance is scaled by a 2 / 3 exponential. The scaled transmission distance is represented by equation (8), where R is the circle fitting radius that retains the bottom point cloud data.
[0133]
[0134] In equation (8), i = 1, 2;
[0135] Step 3.4, as follows Figures 5(a)-5(c) As shown, vector and The included angle β1 is the centroid deflection angle, and the vector and The included angle θ1 is a vertical included angle, where e1 is the intersection of the horizontal line and the vertical line, and β i ,θ i Calculated by equation (9), where For vectors The model,
[0136]
[0137] Step 3.5, Regularize β1,β2,θ1,θ2,w1,w2:
[0138]
[0139] Step 3.6: Based on the three constraints of transmission distance, centroid deflection angle, and vertical angle, an ecological structure probability analysis method is designed, and its formula is shown in Equation (11), representing the probability that boundary point t1 should be identified as the target tree. The term reduces the probability of belonging to a non-target tree, while Items and The purpose of this term is to increase the probability that a boundary point belongs to the target tree.
[0140]
[0141] In equation (11), a + b + c = 1;
[0142] Step 3.7: Compare Pr1 and Pr2. If Pr1 > Pr2, the boundary point is identified as belonging to Tree1; otherwise, it is identified as belonging to Tree2. Process the boundary points according to steps 3.1-3.6 until queue Q is empty, obtaining the backbone point set of a single independent multi-tree cluster. and boundary point set j is the number of individual trees. The number of backbone points. Given the number of boundary points, the set of backbone points with the same value j is finally combined with the set of boundary points to form the final set of individual trees. As shown in equation (12),
[0143]
Claims
1. A method for extracting single trees based on boundary point perception and ecological structure probability analysis, characterized in that, Includes the following steps: Step 1: Construct a polyhedron of tree points using Delaunay, extract seed points using Euclidean clustering at a certain height threshold, and detect multiple tree clusters based on the number of seed points; Step 2: After determining the multi-tree cluster, determine the labels of the backbone points and sense the boundary points through the topological structure of the tree points and the height ascending queue. Step 3: Construct an ecological probability distribution to determine the final label of the boundary point, and finally combine the backbone points and boundary points to extract individual trees; Step 3 specifically involves: Step 3.1, given a multi-tree cluster polyhedral topology. and the path between the boundary point and the seed point , The weight is denoted as , is the sum of the weights of each edge in the path. Calculated from equation (5), In equation (5), It is a point Time The weights; Minimize the transmission distance according to equation (6), if there exists And if it is the minimum, then the transmission distance is equal to ,on the contrary, It is then considered to be infinitely large; In equation (6), , , ; Step 3.2: Sort all transmission distances in ascending order and take the first and second distances, i.e., the closest distances. and the second closest distance The seed points corresponding to these two transmission distances are respectively and The current point sets of Tree1 and Tree2 are respectively and , and This represents the number of individual tree points that have been segmented so far. Set the radius of the spherical neighborhood to Search boundary points If the neighboring points are the current centroids of Tree1 and Tree2, then the centroids of Tree1 and Tree2 are... and and the local centroid of the boundary points Calculated using equation (7): In equation (7), ; Step 3.3, based on the growth principle of branch length and trunk radius in ecological theory, the transmission distance is... The exponential scaling, the scaled transmission distance is represented by equation (8), where To preserve the circle fitting radius of the bottom point cloud data, In equation (8), ; Step 3.4, for trees and shrubs without obvious trunks, the radius of the circle after fitting. , The average of all bottom circle fitting results for the multi-tree cluster is set, and the following settings are applied. Scaling index A vector representing the ratio of tree canopy to shrub size. and The included angle The centroid deflection angle, vector and The included angle The included angle is perpendicular, where, It is the intersection of the horizontal line and the vertical line. , Calculated by equation (9), where For vectors The model, (9); Step 3.5, Regularization : (10); Step 3.6: Based on the three constraints of transmission distance, centroid deflection angle, and vertical angle, a probabilistic analysis method for ecological structure is proposed, and its formula is shown in equation (11), where represents the boundary point. The probability of it being identified as the target tree. The term reduces the probability of belonging to a non-target tree, while Items and The purpose of this term is to increase the probability that a boundary point belongs to the target tree. (11) In equation (11), ; Step 3.7, Comparison ,like Boundary points are then identified as belonging to Tree1, and vice versa, they are identified as belonging to Tree2. Boundary points are processed according to steps 3.1-3.6 until the queue is reached. If empty, you get the backbone point set of a single independent multi-tree cluster. and boundary point set , This represents the number of individual trees. The number of backbone points. The number of boundary points will eventually be The same set of backbone points and the same set of boundary points are combined into the final set of individual trees. As shown in equation (12) (12)。 2. The method for extracting a single tree based on boundary point perception and ecological structure probability analysis according to claim 1, characterized in that, Step 1 specifically involves: Step 1.1: Tetrahedral subdivision of tree points and generation of topology; Step 1.2: Separate the independent tree cluster polyhedra; Step 1.3: Identify the tree seed points in a single tree cluster and detect multiple tree clusters based on the number of seed points.
3. The method for extracting a single tree based on boundary point perception and ecological structure probability analysis according to claim 2, characterized in that, Step 1.1 specifically includes: Step 1.1.1: Construct a set of all tree nodes. The large tetrahedron is used as the starting point of the Delaunay tetrahedron mesh, and its four vertex information is recorded. Step 1.1.2, will The data points are added one by one to the updated tetrahedral grid. Each time a tree point is added to the tetrahedral grid, the tetrahedral grid is updated, and new tetrahedral grids are continuously formed and updated in real time. Step 1.1.3, whenever New points When inserted into a Delaunay tetrahedral mesh, identify and remove those whose circumspheres contain... The tetrahedral elements are used, but their boundary structure is preserved, thus creating a Delaunay internal void in the mesh; Step 1.1.4, Connect the new point With all vertices on the boundary of the void, a new tetrahedral mesh is formed. These newly generated tetrahedra all conform to the Delaunay empty sphere criterion and are therefore all Delaunay tetrahedra. Step 1.1.5, when After inserting all the points, delete the large tetrahedron containing the entire point set, and finally generate a tree-point polyhedron composed of Delaunay tetrahedrons. , ,in, For point Three-dimensional coordinate information, This represents the number of remaining individual trees. , It is a point and points The edges formed by connecting them; Step 1.1.6, Remove the polyhedron edge set in Iterative calculation Each element in The Euclidean distance, i.e., the point and points Euclidean distance , Calculated by formula (1), where, and Points Three-dimensional coordinate information; In equation (1), ; Weight set Generate the final tree-point weighted topology. .
4. The method for extracting a single tree based on boundary point perception and ecological structure probability analysis according to claim 3, characterized in that, Step 1.2 specifically includes: Step 1.2.1, from the point set Randomly select a point Initialize the new point set , Includes all with Distance not exceeding The point, then from Select two points And calculate the radius of the line passing through these three points. The center of the two balls ; Step 1.2.2, Traverse the point set Calculate the distance from each point to the center of the sphere. The distance from each point to the center of the sphere is calculated, and the distance from each point to the center of the sphere is calculated separately Distance set Each point to the center of the ball Distance set ,if At least one set contains greater than or equal to The distance value, then determine These are edge contour points, triangles. That is, the boundary triangle; conversely, if The distance values in all cases are less than This indicates If the point is not an edge contour point, stop traversing and proceed to the next step. Step 1.2.3: Repeat the judgment process in Steps 1.2.1 and 1.2.2 until... All points have been judged; Step 1.2.4: After completing steps 1.2.1 to 1.2.3, proceed from... Select the next point and repeat the judgment process from 1.2.1 to 1.2.3 until... All points have been processed, and a result is output. Boundary triangle matrix ,in This indicates the number of boundary triangles contained in the final boundary surface. Each row of the matrix is a three-dimensional vector, representing the coordinates of one vertex of a boundary triangle. Step 1.2.5: Initialize a set to store the boundary triangles of a single polyhedron. and queues First, the matrix The points of the first row of the boundary triangle are enqueued. In the middle, they sequentially dequeue and are placed in the boundary triangle matrix. Find and delete rows containing this point, i.e., all boundary points connected to the current point, until the search is complete, and then store these points in a set. middle; Step 1.2.6, Initialize the boundary point set Following steps 1.2.5, sequentially fill the boundary triangle matrix. The process continues until all boundary points are processed, at which point a set of all boundary points is output. , This represents the total number of individual tree clusters retrieved. Step 1.2.7, Calculate the set of boundary points Find the bounding box Maximum coordinate value and minimum coordinates ,from Extract the coordinates of the points that satisfy formula (2). , The coordinates of the points that satisfy formula (2) Add to a single tree cluster set ,in and Correspondingly.
5. The method for extracting a single tree based on boundary point perception and ecological structure probability analysis according to claim 4, characterized in that, Step 1.3 specifically includes: Step 1.3.1: Determine the maximum value of the z-axis in the tree point cloud data. and minimum value The height of the entire scene is calculated using formula (3). , Set the percentage of the scene height to retain the bottom height. ,in Select according to formula (4) middle Points that meet the conditions , In equation (4), ; Step 1.3.2, select from Step 1.3.1 middle Points that meet the conditions Form a set , To determine the number of points to retain, initialize a set of candidate seed points. Randomly from Select a point and insert into In the middle, according to the radius is The neighborhood search ball in Search points Find the neighboring points and insert the neighboring points into the neighborhood. middle; Step 1.3.3, will All points in the neighborhood are searched using the neighborhood search ball method in step 1.3.1 until... Until the number of points in the middle no longer increases, The point in Delete them, and continue to initialize a new set of candidate seed points according to steps 1.3.1 to 1.3.
2. The updated version Proceed according to steps 1.3.1 and 1.3.2 until... All points in the process have been processed; Step 1.3.4: Set the candidate seed points middle The point with the smallest coordinate value on the coordinate axis is used as the seed point of the tree. If a single tree cluster contains only a unique seed point, it is identified as a single tree cluster, and individual trees are directly extracted from it. and Delete the tree points and polyhedra corresponding to this tree. If a single tree cluster contains multiple seed points, it is identified as a multi-tree cluster. Step 1.3.5: Insert all seed points contained in the identified multi-tree clusters into the seed point set in ascending order of height. In, and obtain the final , ,here , These represent the number of remaining tree nodes and the number of polyhedra corresponding to the remaining multi-tree clusters, respectively.
6. The method for extracting a single tree based on boundary point perception and ecological structure probability analysis according to claim 5, characterized in that, Step 2 specifically involves: Step 2.1, set the seed points and the unsplit tree node set Sort and update the data in ascending order of height for each point, assuming... , Initialize a queue Set of seed points Enqueue the cells in ascending order of height. , in turn The point in the queue, and in Search for points connected to the midpoint in the corresponding topological structure; Step 2.2: Dequeue point 1 and search for the set of points directly connected to point 1. ,Will Mark it with the same label as point 1, and Enqueue members in ascending order of height. Dequeue point 2 and search the set of points directly connected to point 2. ,Will Mark it with the same label as point 2, and Enqueue members in ascending order of height. Points 3 and 4 are directly connected to points that have already been marked and have the same color, then point... At this point, all points are identified as backbone points. Point 6 is directly connected to point 5, so point 5 is initially marked as green. When point 7 is searched, the labels of points 5 and 7 are different, so point 5 is marked as gray and inserted into the boundary point set. Therefore, the backbone point set and the boundary point set are now respectively... , ; Step 2.3, following Step 2.2, divide the unsegmented tree point set. By processing sequentially, the backbone point set of a single independent multi-tree cluster is obtained. and boundary point set , The number of backbone points. The number of boundary points determines the number of backbone points that are directly segmented, while the perceived boundary points require further ecological structure analysis based on the two nearest segmented individual trees.
Citation Information
Patent Citations
Laser point cloud feature point extraction method based on triangular mesh
CN112036417A
Multi-relation perception heterogeneous graph visual question and answer method fusing syntax tree
CN117034185A
