Method, device, equipment and medium for constructing three-dimensional spatial topological structure of vegetation

By performing voxelization and eigenvector analysis on the vegetation three-dimensional point cloud data, a cylinder enclosing model is constructed, and object primitive normal vectors are identified, which solves the problem of low accuracy in extracting the topology structure of the vegetation three-dimensional space and achieves a high-precision vegetation space. Obtain topology information.

CN118097031BActive Publication Date: 2024-09-06JIANGXI NUCLEAR IND SURVEYING & MAPPING INST GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410489852.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-06
Estimated Expiration
2044-04-23

AI Technical Summary

Technical Problem

The accuracy and robustness of vegetation three-dimensional space topology extraction in the existing technology are low, and it is impossible to extract high-precision vegetation three-dimensional topology from complex natural environments.

Method used

By acquiring three-dimensional point cloud data for voxel processing, the point cloud data of branches and leaves are determined, the feature vectors of vegetation are obtained to construct a cylinder surrounding model with adaptive direction changes, the target point cloud data is screened, and generated using a preset model recognition algorithm. The object primitive normal vector constructs the three-dimensional spatial topological structure of vegetation, including vegetation skeleton lines.

Benefits of technology

It achieves high-precision and highly robust separation of branches and leaves, obtains accurate vegetation spatial topology information, and improves the effects of three-dimensional visualization research and forest ecosystem simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097031B
    Figure CN118097031B
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and medium for constructing a three-dimensional spatial topological structure of vegetation, the method comprising: voxelizing three-dimensional point cloud data, constructing a cylindrical enclosure model with adaptive direction changes according to a first eigenvector, screening branch point cloud data and leaf point cloud data according to the cylindrical enclosure model to determine target point cloud data of vegetation to be topologically determined, identifying dense areas in the target point cloud data through a preset model recognition algorithm to generate object primitive normal vectors of branches corresponding to the vegetation to be topologically determined, and generating a three-dimensional spatial topological structure of the vegetation to be topologically determined according to the object primitive normal vectors, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically determined. Thus, high-precision and high-robustness separation of branches and leaves is achieved, and accurate vegetation spatial topological information is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of digital modeling technology, and in particular to a method, device, equipment and medium for constructing a three-dimensional spatial topological structure of vegetation. Background Art

[0002] In information technology, digital models are used to represent a basic carrier of information. A good digital model can efficiently and comprehensively reflect the information it represents, and provide the most direct basis for data processing, information analysis and extraction based on it. The quality of digital model design directly affects the functionality of the software, the accuracy of output information, and the service level provided by the system. In the technology of extracting the three-dimensional spatial structure of vegetation, due to the complexity and diversity of the space where vegetation exists, the accuracy and robustness of the extraction of the three-dimensional spatial topological structure of vegetation are low, making it impossible to extract high-precision three-dimensional topological structure of vegetation from complex natural environments. Summary of the invention

[0003] In order to overcome the technical problem of low accuracy in extracting the three-dimensional spatial topological structure of vegetation in the related art, the present disclosure provides a method, device, equipment and medium for constructing the three-dimensional spatial topological structure of vegetation.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for constructing a three-dimensional spatial topological structure of vegetation is provided, the method comprising:

[0005] Acquire three-dimensional point cloud data of vegetation to be topologically inspected in a preset detection area, and perform voxel processing on the three-dimensional point cloud data to determine branch point cloud data and leaf point cloud data in the three-dimensional point cloud data;

[0006] Acquire a first feature vector of the vegetation to be topologically modified, and construct a cylindrical enclosure model with adaptive direction change according to the first feature vector, wherein the first feature vector is used to indicate growth law characteristics and spatial distribution characteristics of the vegetation to be topologically modified;

[0007] The branch point cloud data and the leaf point cloud data are screened according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed;

[0008] Identify the dense area in the target point cloud data by using a preset model recognition algorithm to generate object primitive normal vectors corresponding to the branches of the vegetation to be topologically constructed;

[0009] A three-dimensional spatial topological structure of the vegetation to be topologically modified is generated according to the primitive normal vector of the object, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically modified.

[0010] Optionally, the identifying the dense area in the target point cloud data by using a preset model recognition algorithm to generate a branch object primitive corresponding to the branch of the vegetation to be topologically constructed includes:

[0011] Determine the horizontal domain bandwidth and the vertical domain bandwidth of the vegetation to be topologically constructed by using a mean value shift algorithm;

[0012] According to the horizontal domain bandwidth and the vertical domain bandwidth, cylindrical branches in the target point cloud data are extracted to generate the object primitive normal vector.

[0013] Optionally, extracting cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate the object primitive normal vector includes:

[0014] Extracting cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate an initial normal vector;

[0015] The initial normal vector is adaptively determined by a Gaussian mapping method to generate the object primitive normal vector.

[0016] Optionally, the adaptively determining the initial normal vector by using a Gaussian mapping method to generate the object primitive normal vector includes:

[0017] Determining curvature information of the initial normal vector on a preset Gaussian sphere;

[0018] Determining the Gaussian curvature on the preset Gaussian sphere according to the curvature information and the initial normal vector;

[0019] Determining the adaptability of the initial normal vector according to the Gaussian curvature;

[0020] According to the adaptability, an initial normal vector is adjusted to generate the object primitive normal vector.

[0021] Optionally, generating the three-dimensional spatial topological structure of the vegetation to be topologically modified according to the object primitive normal vector includes:

[0022] identifying under-segmented object primitives in the object primitive normal vectors;

[0023] Optimizing the under-segmented object primitive based on the direction of the object primitive normal vector to generate a target object primitive normal vector;

[0024] The three-dimensional space topological structure is generated according to the primitive normal vector of the target object.

[0025] Optionally, generating the three-dimensional space topological structure according to the target object primitive normal vector includes:

[0026] Determining the vegetation skeleton line of the vegetation to be topologically constructed according to the primitive normal vector of the target object;

[0027] The three-dimensional space topological structure is constructed according to the vegetation skeleton line.

[0028] Optionally, performing voxel processing on the three-dimensional point cloud data to determine the branch point cloud data and the leaf point cloud data in the three-dimensional point cloud data includes:

[0029] voxelize the branches and leaves in the three-dimensional point cloud data to generate branch voxels of the branches and leaf voxels of the leaves;

[0030] The branch point cloud data of the branch and the leaf point cloud data of the leaf are determined from the three-dimensional point cloud data according to the first fractal dimension corresponding to the branch voxel and the second fractal dimension corresponding to the leaf voxel.

[0031] According to a second aspect of an embodiment of the present disclosure, a device for constructing a three-dimensional spatial topological structure of vegetation is provided, the device comprising:

[0032] An acquisition module is used to acquire three-dimensional point cloud data of vegetation to be topologically inspected in a preset detection area, and to determine branch point cloud data and leaf point cloud data in the three-dimensional point cloud data by voxelizing the three-dimensional point cloud data;

[0033] A first generating module is used to obtain a first characteristic vector of the vegetation to be topologically modified, and to construct a cylindrical enclosure model with adaptive direction change according to the first characteristic vector, wherein the first characteristic vector is used to indicate the growth law characteristics and spatial distribution characteristics of the vegetation to be topologically modified;

[0034] A determination module, used for screening the branch point cloud data and the leaf point cloud data according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed;

[0035] A second generation module is used to identify the dense area in the target point cloud data by using a preset model recognition algorithm to generate an object primitive normal vector of the branch corresponding to the vegetation to be topologically constructed;

[0036] An execution module is used to generate a three-dimensional spatial topological structure of the vegetation to be topologically modified according to the object primitive normal vector, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically modified.

[0037] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0038] a memory having a computer program stored thereon;

[0039] A processor is used to execute the computer program in the memory to implement the steps of the method for constructing the three-dimensional spatial topological structure of vegetation as described in any one of the first aspects of the present disclosure.

[0040] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method for constructing a three-dimensional spatial topological structure of vegetation provided in the first aspect of the present disclosure are implemented.

[0041] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0042] Through the above method, the three-dimensional point cloud data of the vegetation to be topologically constructed in the preset detection area is obtained, and the three-dimensional point cloud data is voxelized to determine the branch point cloud data and the leaf point cloud data in the three-dimensional point cloud data, and the first feature vector of the vegetation to be topologically constructed is obtained. According to the first feature vector, a cylindrical enclosure model with adaptive direction change is constructed, and the branch point cloud data and the leaf point cloud data are screened according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed, and the dense area in the target point cloud data is identified by the preset model recognition algorithm to generate the object primitive normal vector of the branch corresponding to the vegetation to be topologically constructed, and according to the object primitive normal vector, the three-dimensional spatial topological structure of the vegetation to be topologically constructed is generated, and the three-dimensional spatial topological structure includes the vegetation skeleton line of the vegetation to be topologically constructed. In this way, high-precision and high-robustness separation of branches and leaves is achieved, and accurate vegetation spatial topological information is obtained.

[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0045] Figure 1 The present invention is a flowchart of a method for constructing a three-dimensional spatial topological structure of vegetation according to an exemplary embodiment.

[0046] Figure 2 It is a block diagram of a device for constructing a three-dimensional spatial topological structure of vegetation according to an exemplary embodiment.

[0047] Figure 3 is a block diagram of an electronic device 300 according to an exemplary embodiment. DETAILED DESCRIPTION

[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0049] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0050] This application aims to construct a theoretical framework for extracting the three-dimensional spatial topological structure of vegetation under the guidance of spatial fractal geometry, achieve high-precision and high-robustness separation of branches and leaves, obtain accurate spatial topological information of vegetation, and lay a theoretical foundation for the study of three-dimensional vegetation visualization. This application research will provide a technical demonstration and implementation method for the application of lidar technology in three-dimensional vegetation visualization analysis, which will help study the growth mechanism of trees, forest ecosystem simulation and change prediction.

[0051] For example, this application intends to comprehensively deepen the research on the theory and method of vegetation three-dimensional spatial topological structure extraction based on the existing research results, and provide technical demonstration and implementation methods for LiDAR technology in the study of vegetation micro-scale branch and leaf separation and topological structure extraction and analysis. The research content mainly includes the following three aspects: (1) Multi-scale integrated learning branch and leaf separation method guided by fractal geometry; (2) Meanshift object primitive acquisition and Gaussian mapping normal vector estimation method; (3) Optimization segmentation based on object primitive decomposition and Hough transform cylinder parameter estimation method.

[0052] Figure 1 is a flow chart of a method for constructing a three-dimensional spatial topological structure of vegetation according to an exemplary embodiment. Figure 1 As shown, the method is applied in a terminal and includes the following steps.

[0053] Step S11, obtaining three-dimensional point cloud data of the vegetation to be topologically modified in the preset detection area, and performing voxel processing on the three-dimensional point cloud data to determine the branch point cloud data and the leaf point cloud data in the three-dimensional point cloud data.

[0054] For example, in this embodiment, voxelization of 3D point cloud data refers to the process of discretizing 3D point cloud data into voxels. A voxel is a small cube in a 3D space, which can be used to represent a point in the 3D space. The main steps of voxelization of 3D point cloud data are as follows: (1) Selecting the voxel size: First, a suitable voxel size needs to be selected. The selection of the voxel size depends on the density of the point cloud data and the features to be extracted. Generally speaking, the smaller the voxel size, the finer the extracted features, but the greater the amount of calculation. (2) Creating a voxel grid: Next, a voxel grid needs to be created. A voxel grid is a 3D space that is divided into many small cubes, namely voxels. (3) Mapping the point cloud data to the voxel grid: Then, the point cloud data is mapped to the voxel grid. Each point cloud data point is mapped to the voxel in which it is located. (4) Calculating the features of the voxels: Finally, the features of each voxel are calculated. The features of the voxel can be the number of points in the voxel, the average value of the points in the voxel, the variance of the points in the voxel, etc.

[0055] Optionally, the above step S11 includes:

[0056] voxelize the branches and leaves in the three-dimensional point cloud data to generate branch voxels and leaf voxels;

[0057] According to the first fractal dimension corresponding to the branch voxel and the second fractal dimension corresponding to the leaf voxel, the branch point cloud data of the branch and the leaf point cloud data of the leaf are determined from the three-dimensional point cloud data.

[0058] For example, in this embodiment, a uniform voxelization or octagonal voxelization method is used to voxelize the point cloud data in a preset detection area. For each voxel generated, the number of points contained therein is calculated, and then the voxels are divided into branch voxels and leaf voxels according to the point density of each voxel. Generally, voxels with higher point density are considered to be branch voxels, while voxels with lower point density are considered to be leaf voxels. Based on the branch voxels and leaf voxels, the branch point cloud data and the leaf point cloud data in the three-dimensional point cloud data are extracted respectively. In this embodiment, through voxelization processing, the three-dimensional point cloud data is classified by the density of the point cloud, so as to accurately separate the branch point cloud and the leaf point cloud in the vegetation to be topologically processed from the three-dimensional point cloud data.

[0059] Step S12: obtaining a first characteristic vector of the vegetation to be topologically determined, and constructing a cylindrical enclosure model with adaptive direction changes according to the first characteristic vector.

[0060] For example, in this embodiment, according to the growth habits, spatial distribution law and other information of the vegetation to be topologically modified, the first feature vector of the vegetation to be topologically modified is extracted, and the first feature vector is used to indicate the growth law characteristics and spatial distribution characteristics of the vegetation to be topologically modified. Determine the parameters of the cylindrical enclosure model: According to the generation rule feature vector of the vegetation to be topologically modified, determine the radius, height and direction and other parameters of the cylindrical enclosure model. Construct a cylindrical enclosure model: According to the determined parameters, construct a cylindrical enclosure model with adaptive direction changes. For example, assuming that the vegetation to be topologically modified is a tree, its generation rule feature vector is: [tree height, crown diameter, trunk diameter, trunk density]. According to the feature vector, the parameters of the cylindrical enclosure model can be determined as follows: radius: half of the crown diameter; height: tree height; direction: the direction in which the tree grows; according to these parameters, a cylindrical enclosure model with adaptive direction changes can be constructed. This cylindrical enclosure model can better simulate the shape and growth direction of the tree, thereby providing more accurate geometric information for vegetation topology modeling.

[0061] Step S13, screening the branch point cloud data and the leaf point cloud data according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed.

[0062] For example, in this embodiment, fractal theory is introduced into the separation of branches and leaves. By voxelizing the three-dimensional point cloud data and calculating the fractal dimension of the vegetation point cloud, the ability to separate branches and leaves is enhanced. Then, according to the natural growth rules of vegetation, a growth rule feature vector is constructed to enhance the recognition ability of branches. A cylindrical enclosure model with adaptive direction changes is cleverly constructed to statistically distribute the spatial distribution of the point cloud and enhance the ability to distinguish branches and leaves. In order to make full use of the spatial information of three-dimensional vegetation point cloud data at different scales, an integrated learning model is adopted to fuse the multi-scale classification results, and the accuracy of branch and leaf separation is significantly improved through a progressive iterative cycle mode.

[0063] Step S14, identifying dense areas in the target point cloud data using a preset model recognition algorithm to generate object primitive normal vectors of branches corresponding to the vegetation to be topologically identified.

[0064] For example, in this embodiment, dense areas in the target point cloud data are identified by a preset model recognition algorithm to generate object primitive normal vectors of branches corresponding to the vegetation to be topologically modified. The following steps can be followed: (1) Pre-training model: First, a model that can identify dense areas in point cloud data needs to be pre-trained. The model can be pre-trained using deep learning methods or other machine learning methods. (2) Applying the pre-trained model: Applying the pre-trained model to the target point cloud data to identify dense areas in the point cloud data. (3) Extracting normal vectors of dense areas: For each identified dense area, extract its normal vector. The point cloud normal estimation algorithm can be used to extract the normal vector. (4) Generating object primitive normal vectors of branches corresponding to the vegetation to be topologically modified: Based on the extracted normal vectors, generate object primitive normal vectors of branches corresponding to the vegetation to be topologically modified.

[0065] Optionally, in some embodiments, the above step S14 includes:

[0066] Determine the horizontal domain bandwidth and the vertical domain bandwidth of the vegetation to be topologically constructed by using a mean value shift algorithm;

[0067] According to the horizontal domain bandwidth and the vertical domain bandwidth, cylindrical branches in the target point cloud data are extracted to generate the object primitive normal vector.

[0068] Optionally, extracting cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate the object primitive normal vector includes:

[0069] Extracting cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate an initial normal vector;

[0070] The initial normal vector is adaptively determined by a Gaussian mapping method to generate the object primitive normal vector.

[0071] For example, in this embodiment, the range of the cylindrical branches is determined according to the horizontal domain bandwidth and the vertical domain bandwidth, the point cloud data within the range of the cylindrical branches is extracted from the target point cloud data, and the normal vector of the cylindrical branches is calculated for the extracted point cloud data. The normal vector can be calculated using a point cloud normal estimation algorithm. For example, on the premise of determining the horizontal domain bandwidth and the vertical domain bandwidth of the cylindrical branches through limited experiments, the range of the cylindrical branches can be determined according to these bandwidths, the point cloud data within the range of the cylindrical branches is extracted from the target point cloud data, and the normal vector of the cylindrical branches is calculated using a point cloud normal estimation algorithm. In this way, the initial normal vector of the cylindrical branches can be obtained. These normal vectors can be used for further processing, such as tree modeling, tree classification, and tree growth simulation.

[0072] Optionally, the adaptively determining the initial normal vector by using a Gaussian mapping method to generate the object primitive normal vector includes:

[0073] Determining curvature information of the initial normal vector on a preset Gaussian sphere;

[0074] Determining the Gaussian curvature on the preset Gaussian sphere according to the curvature information and the initial normal vector;

[0075] Determining the adaptability of the initial normal vector according to the Gaussian curvature;

[0076] According to the adaptability, an initial normal vector is adjusted to generate the object primitive normal vector.

[0077] For example, in this embodiment, the normal vector of the object primitive can be determined by the Gaussian mapping method through the following steps: (1) calculating the curvature of each point on the object primitive; (2) normalizing the curvature vector of each point to obtain the normal vector of the point; (3) mapping the normal vector of each point to the unit sphere by the Gaussian mapping method; (4) each point on the unit sphere corresponds to a point with the largest curvature on the object primitive; (5) translating each point on the unit sphere inward along its radius by a unit distance to obtain the mirror point of the point; (6) mapping the mirror point of each point back to the object primitive by the inverse mapping of the Gaussian mapping method; (7) these points mapped back to the object primitive are the primitive normal vectors of each point on the object primitive.

[0078] For example, in this embodiment, the Meanshift method is used to obtain object primitives, which overcomes the disadvantage of inaccurate initial cluster number setting. The kernel function of the Meanshift method is set to a cylindrical shape, and the automatic extraction of cylindrical branches is achieved by constructing the horizontal domain bandwidth and the vertical domain bandwidth. Combined with the Gaussian mapping method, the adaptive determination of the normal vector of the object primitive is achieved by statistically analyzing the distribution of the intersection points of the Gaussian spherical mapping, breaking through the technical bottleneck of the inaccurate calculation of the normal vector of the traditional object primitive and being susceptible to noise interference.

[0079] For example, the Meanshift method is a nonparametric pattern recognition algorithm used to find dense areas in data. It is an iterative algorithm that starts from a point in the data and then moves the point to the location with the highest density around the point. Repeat this process until the point converges to a local density maximum. The algorithm of the Meanshift method is as follows: (1) Select an initial point X0; (2) Calculate the weights Wi of all points in the area of ​​X0. The weight function is usually a kernel function, such as a Gaussian kernel function; (3) Calculate the weighted average X1 of all points in the neighborhood of X0; (4) Move X0 to X1; (5) Repeat steps 2-4 until X0 converges to a local density maximum.

[0080] Step S15, generating a three-dimensional spatial topological structure of the vegetation to be topologically modified according to the primitive normal vector of the object, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically modified.

[0081] For example, in this embodiment, a normal vector discrimination method for object primitive decomposition is proposed to effectively identify under-segmented object primitives.

[0082] The segmentation results are optimized based on the normal vector direction, which improves the detection ability of the method for bifurcated branches. Based on the normal vector of the object primitive, the Hough transform cylinder detection is degenerated into a two-dimensional circular detection, and the parameter space is reduced from 5 dimensions to 3 dimensions, which reduces the complexity of the method implementation. The vegetation skeleton line extraction is converted into the central axis link of the object primitive, which effectively solves the shortcomings of the traditional point primitive method, such as low accuracy, large amount of calculation, and long operation time.

[0083] Optionally, the above step S15 includes:

[0084] identifying under-segmented object primitives in the object primitive normal vectors;

[0085] Optimizing the under-segmented object primitive based on the direction of the object primitive normal vector to generate a target object primitive normal vector;

[0086] The three-dimensional space topological structure is generated according to the primitive normal vector of the target object.

[0087] Optionally, generating the three-dimensional space topological structure according to the target object primitive normal vector includes:

[0088] Determining the vegetation skeleton line of the vegetation to be topologically constructed according to the primitive normal vector of the target object;

[0089] The three-dimensional space topological structure is constructed according to the vegetation skeleton line.

[0090] Through the above method, the three-dimensional point cloud data of the vegetation to be topologically constructed in the preset detection area is obtained, and the three-dimensional point cloud data is voxelized to determine the branch point cloud data and the leaf point cloud data in the three-dimensional point cloud data, and the first feature vector of the vegetation to be topologically constructed is obtained. According to the first feature vector, a cylindrical enclosure model with adaptive direction change is constructed, and the branch point cloud data and the leaf point cloud data are screened according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed, and the dense area in the target point cloud data is identified by the preset model recognition algorithm to generate the object primitive normal vector of the branch corresponding to the vegetation to be topologically constructed, and according to the object primitive normal vector, the three-dimensional spatial topological structure of the vegetation to be topologically constructed is generated, and the three-dimensional spatial topological structure includes the vegetation skeleton line of the vegetation to be topologically constructed. In this way, high-precision and high-robustness separation of branches and leaves is achieved, and accurate vegetation spatial topological information is obtained.

[0091] Figure 2 1 is a block diagram of a device for constructing a three-dimensional spatial topological structure of vegetation according to an exemplary embodiment. Figure 2 The device 100 includes an acquisition module 110, a first generation module 120, a determination module 130, a second generation module 140 and an execution module 150.

[0092] An acquisition module 110 is used to acquire three-dimensional point cloud data of vegetation to be topologically analyzed in a preset detection area, and to determine branch point cloud data and leaf point cloud data in the three-dimensional point cloud data by voxelizing the three-dimensional point cloud data;

[0093] A first generating module 120 is used to obtain a first feature vector of the vegetation to be topologically modified, and to construct a cylindrical enclosure model with adaptive direction change according to the first feature vector, wherein the first feature vector is used to indicate the growth law characteristics and spatial distribution characteristics of the vegetation to be topologically modified;

[0094] A determination module 130, configured to screen the branch point cloud data and the leaf point cloud data according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed;

[0095] The second generating module 140 is used to identify the dense area in the target point cloud data by using a preset model recognition algorithm to generate the object primitive normal vector of the branch corresponding to the vegetation to be topologically constructed;

[0096] The execution module 150 is used to generate a three-dimensional spatial topological structure of the vegetation to be topologically modified according to the object primitive normal vector, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically modified.

[0097] Optionally, the second generating module 140 includes:

[0098] A determination submodule, used to determine the horizontal domain bandwidth and the vertical domain bandwidth of the vegetation to be topologically determined by a mean value shift algorithm;

[0099] A generating submodule is used to extract cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate the object primitive normal vector.

[0100] Optionally, generate submodules, including:

[0101] A first generating unit, configured to extract cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth, so as to generate an initial normal vector;

[0102] The second generating unit is used to adaptively determine the initial normal vector by Gaussian mapping method to generate the object primitive normal vector.

[0103] Optionally, the second generating unit is used to:

[0104] Determining curvature information of the initial normal vector on a preset Gaussian sphere;

[0105] Determining the Gaussian curvature on the preset Gaussian sphere according to the curvature information and the initial normal vector;

[0106] Determining the adaptability of the initial normal vector according to the Gaussian curvature;

[0107] According to the adaptability, an initial normal vector is adjusted to generate the object primitive normal vector.

[0108] Optionally, the execution module 150 includes:

[0109] an identification submodule, configured to identify under-segmented object primitives in the object primitive normal vectors;

[0110] A first generating submodule, configured to optimize the under-segmented object primitive based on the direction of the object primitive normal vector to generate a target object primitive normal vector;

[0111] The second generating submodule is used to generate the three-dimensional space topological structure according to the primitive normal vector of the target object.

[0112] Optionally, the second generation submodule is used to:

[0113] Determining the vegetation skeleton line of the vegetation to be topologically constructed according to the primitive normal vector of the target object;

[0114] The three-dimensional space topological structure is constructed according to the vegetation skeleton line.

[0115] Optionally, the acquisition module 110 is configured to:

[0116] voxelize the branches and leaves in the three-dimensional point cloud data to generate branch voxels of the branches and leaf voxels of the leaves;

[0117] The branch point cloud data of the branch and the leaf point cloud data of the leaf are determined from the three-dimensional point cloud data according to the first fractal dimension corresponding to the branch voxel and the second fractal dimension corresponding to the leaf voxel.

[0118] Through the above method, the three-dimensional point cloud data of the vegetation to be topologically constructed in the preset detection area is obtained, and the three-dimensional point cloud data is voxelized to determine the branch point cloud data and leaf point cloud data in the three-dimensional point cloud data, and the first feature vector of the vegetation to be topologically constructed is obtained. According to the first feature vector, a cylindrical enclosure model with adaptive direction change is constructed, and the branch point cloud data and leaf point cloud data are screened according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed. The dense area in the target point cloud data is identified by the preset model recognition algorithm to generate the object primitive normal vector of the branch corresponding to the vegetation to be topologically constructed, and according to the object primitive normal vector, the three-dimensional spatial topological structure of the vegetation to be topologically constructed is generated, and the three-dimensional spatial topological structure includes the vegetation skeleton line of the vegetation to be topologically constructed. In this way, high-precision and high-robustness separation of branches and leaves is achieved, and accurate vegetation spatial topological information is obtained.

[0119] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0120] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the steps of the method for constructing a three-dimensional spatial topological structure of vegetation provided by the present disclosure.

[0121] Figure 3 3 is a block diagram of an electronic device 300 according to an exemplary embodiment. For example, the device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0122] Reference Figure 3 , device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 303 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .

[0123] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the method for constructing the three-dimensional spatial topological structure of vegetation. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 303 and the processing component 302.

[0124] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0125] The power supply component 306 provides power to the various components of the device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.

[0126] The multimedia component 303 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 303 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0127] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.

[0128] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0129] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, and the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300, and the temperature change of the device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0130] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0131] In an exemplary embodiment, the device 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned method for constructing a three-dimensional spatial topological structure of vegetation.

[0132] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0133] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned method for constructing the three-dimensional spatial topological structure of vegetation. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip including a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned method for constructing the three-dimensional spatial topological structure of vegetation can be implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned method for constructing the three-dimensional spatial topological structure of vegetation.

[0134] In another exemplary embodiment, a computer program product is also provided, which includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned method for constructing a three-dimensional spatial topological structure of vegetation when executed by the programmable device.

[0135] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0136] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for constructing a three-dimensional spatial topological structure of vegetation, It is characterized in that The method comprises: Acquire three-dimensional point cloud data of vegetation to be topologically inspected in a preset detection area, and perform voxel processing on the three-dimensional point cloud data to determine branch point cloud data and leaf point cloud data in the three-dimensional point cloud data; Acquire a first feature vector of the vegetation to be topologically modified, and construct a cylindrical enclosure model with adaptive direction change according to the first feature vector, wherein the first feature vector is used to indicate growth law characteristics and spatial distribution characteristics of the vegetation to be topologically modified; The branch point cloud data and the leaf point cloud data are screened according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed; Identify the dense area in the target point cloud data by using a preset model recognition algorithm to generate object primitive normal vectors corresponding to the branches of the vegetation to be topologically constructed; A three-dimensional spatial topological structure of the vegetation to be topologically modified is generated according to the primitive normal vector of the object, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically modified.

2. The method for constructing a three-dimensional spatial topological structure of vegetation according to claim 1, It is characterized in that The method of identifying the dense area in the target point cloud data by using a preset model recognition algorithm to generate an object primitive normal vector corresponding to the branch of the vegetation to be topologically constructed includes: Determine the horizontal domain bandwidth and the vertical domain bandwidth of the vegetation to be topologically constructed by using a mean value shift algorithm; According to the horizontal domain bandwidth and the vertical domain bandwidth, cylindrical branches in the target point cloud data are extracted to generate the object primitive normal vector.

3. The method for constructing a three-dimensional spatial topological structure of vegetation according to claim 2, It is characterized in that The extracting of cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate the object primitive normal vector includes: Extracting cylindrical branches in the target point cloud data according to the horizontal domain bandwidth and the vertical domain bandwidth to generate an initial normal vector; The initial normal vector is adaptively determined by a Gaussian mapping method to generate the object primitive normal vector.

4. The method for constructing a three-dimensional spatial topological structure of vegetation according to claim 3, It is characterized in that Adaptively determining the initial normal vector by using a Gaussian mapping method to generate the object primitive normal vector includes: Determining curvature information of the initial normal vector on a preset Gaussian sphere; Determining the Gaussian curvature on the preset Gaussian sphere according to the curvature information and the initial normal vector; Determining the adaptability of the initial normal vector according to the Gaussian curvature; According to the adaptability, an initial normal vector is adjusted to generate the object primitive normal vector.

5. The method for constructing a three-dimensional spatial topological structure of vegetation according to any one of claims 1 to 4, It is characterized in that The step of generating the three-dimensional spatial topological structure of the vegetation to be topologically constructed according to the primitive normal vector of the object comprises: identifying under-segmented object primitives in the object primitive normal vectors; Optimizing the under-segmented object primitive based on the direction of the object primitive normal vector to generate a target object primitive normal vector; The three-dimensional space topological structure is generated according to the primitive normal vector of the target object.

6. The method for constructing a three-dimensional spatial topological structure of vegetation according to claim 5, It is characterized in that The step of generating the three-dimensional space topological structure according to the target object primitive normal vector comprises: Determining the vegetation skeleton line of the vegetation to be topologically constructed according to the primitive normal vector of the target object; The three-dimensional space topological structure is constructed according to the vegetation skeleton line.

7. The method for constructing a three-dimensional spatial topological structure of vegetation according to claim 5, It is characterized in that The voxelization process is performed on the three-dimensional point cloud data to determine the branch point cloud data and the leaf point cloud data in the three-dimensional point cloud data, including: voxelize the branches and leaves in the three-dimensional point cloud data to generate branch voxels of the branches and leaf voxels of the leaves; The branch point cloud data of the branch and the leaf point cloud data of the leaf are determined from the three-dimensional point cloud data according to the first fractal dimension corresponding to the branch voxel and the second fractal dimension corresponding to the leaf voxel.

8. A device for constructing a three-dimensional spatial topological structure of vegetation. It is characterized in that The device comprises: An acquisition module is used to acquire three-dimensional point cloud data of vegetation to be topologically inspected in a preset detection area, and to determine branch point cloud data and leaf point cloud data in the three-dimensional point cloud data by voxelizing the three-dimensional point cloud data; A first generating module is used to obtain a first characteristic vector of the vegetation to be topologically modified, and to construct a cylindrical enclosure model with adaptive direction change according to the first characteristic vector, wherein the first characteristic vector is used to indicate the growth law characteristics and spatial distribution characteristics of the vegetation to be topologically modified; A determination module, used for screening the branch point cloud data and the leaf point cloud data according to the cylindrical enclosure model to determine the target point cloud data of the vegetation to be topologically constructed; A second generation module is used to identify the dense area in the target point cloud data by using a preset model recognition algorithm to generate an object primitive normal vector of the branch corresponding to the vegetation to be topologically constructed; An execution module is used to generate a three-dimensional spatial topological structure of the vegetation to be topologically modified according to the object primitive normal vector, wherein the three-dimensional spatial topological structure includes a vegetation skeleton line of the vegetation to be topologically modified.

9. An electronic device, It is characterized in that include: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the steps of the method for constructing a three-dimensional spatial topological structure of vegetation as described in any one of claims 1-7.

10. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the program instructions are executed by a processor, the steps of the method for constructing a three-dimensional spatial topological structure of vegetation described in any one of claims 1 to 7 are implemented.