Building point cloud structure feature extraction method, system, device and storage medium
By fusing curvature eigenvalues, centroid offset ratio, and tangent plane density variation coefficient, the problem of incomplete extraction of building point cloud structural features in existing technologies is solved, achieving high integrity and robustness extraction of building structural features and improving the accuracy of building deformation monitoring.
Patent Information
- Application Number
- CN202611593192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-15
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to fully extract structural feature point clouds, especially straight boundaries and fine structures, when processing point cloud data of large buildings, which affects the accuracy of building deformation monitoring.
A logical union fusion method using three feature criteria—curvature feature value, centroid offset ratio, and tangent plane density variation coefficient—is employed to identify and extract structural feature points of a building by calculating the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of each query point in the building's main point cloud.
It achieves high integrity and robustness in extracting building structural features, improves the recall rate of straight boundaries and fine structures, and enhances the accuracy and integrity of building structural feature extraction.
Smart Images

Figure CN123160909A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of point cloud data processing technology, specifically relating to methods, systems, equipment, and storage media for extracting structural features from building point clouds. Background Technology
[0002] Terrestrial Laser Scanning (TLS), with its high-precision, high-density, and non-contact full-field point cloud acquisition capabilities, has become an indispensable technical means in the field of building deformation monitoring.
[0003] TLS can acquire tens of millions of 3D point clouds of building facades in a single scan, providing a rich data foundation for detailed analysis of changes in the overall shape of buildings. However, when performing deformation analysis on the original building point clouds of tens of millions of points, a large number of flat wall point clouds carrying redundant geometric information exist in the massive data, and the point cloud density is not uniformly distributed due to different scanning stations. Therefore, it is necessary to further extract structural feature point clouds (including edges, window frame edges, floor boundaries, and outer contours, etc.) distributed in areas of geometric abrupt changes from the original building point clouds as a stable data carrier for subsequent deformation analysis.
[0004] Existing technologies for extracting structural feature point clouds typically employ curvature-based methods. The core idea is to identify geometrically abrupt structural features by analyzing the divergence of neighboring point clouds in three-dimensional space. However, real-world building point clouds often contain numerous single-sided overhanging straight edges (such as window frames and balcony edges) with extremely low curvature values. This makes it easy to miss straight boundaries and fine structures, resulting in incomplete extraction of building structural features from large-scale TLS point clouds and affecting the accuracy of subsequent building deformation monitoring. Summary of the Invention
[0005] To address the shortcomings of existing technologies in processing large-scale TLS building point clouds, this invention provides a method, system, device, and storage medium for extracting structural features from building point clouds.
[0006] To achieve the above objectives, the present invention provides the following technical solution: The method for extracting structural features from building point clouds includes the following steps: Obtain point cloud data of the main building structure; Calculate the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient for each query point in the main building point cloud; wherein, the centroid offset ratio characterizes the single-sided overhanging edge of the building point cloud, the tangent plane density variation coefficient characterizes the local density direction non-uniformity of the building point cloud, and the curvature feature value characterizes the degree of three-dimensional spatial divergence of the building point cloud. The curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of all query points are traversed. All query points that satisfy the preset multi-criteria judgment rule are extracted to form a set of building structural feature points. The set of building structural feature points constitutes the building structural features. The multi-criteria judgment rule is specifically: whether the curvature feature value is greater than or equal to a preset curvature feature value threshold, or whether the centroid offset ratio is greater than or equal to a preset centroid offset ratio threshold, or whether the tangent plane density variation coefficient is greater than or equal to a preset density variation coefficient threshold. If any of the above conditions are satisfied, the query point is extracted as a building structural feature point.
[0007] Preferably, the calculation step of the centroid offset ratio specifically involves randomly selecting a query point in the point cloud data of the main building, calculating the centroid of the neighborhood point set for the same spherical neighborhood of the query point, and calculating the centroid offset ratio based on the ratio of the Euclidean distance from the query point to the neighborhood centroid to the search radius.
[0008] Preferably, the calculation steps for the density variation coefficient of the tangent plane are as follows: taking a randomly selected query point as the center, collecting a set of neighborhood points within a radius r, constructing a local covariance matrix, and using local principal component analysis (PCA) to obtain the eigenvector corresponding to the minimum eigenvalue as the local normal vector; projecting all neighborhood points onto the local tangent plane, calculating the azimuth angle of each neighborhood point in the two-dimensional local coordinate system of the local tangent plane, uniformly dividing the azimuth angle space into several sectors, counting the number of points in each sector; calculating the average and standard deviation of the number of points in each sector, and obtaining the density variation coefficient of the tangent plane based on the ratio of the standard deviation to the average.
[0009] Preferably, the calculation steps of the curvature feature value are as follows: taking a randomly selected query point as the center, setting a search radius to construct a local spherical neighborhood point set, calculating the local covariance matrix of the local spherical neighborhood point set; performing eigenvalue decomposition on the local covariance matrix to obtain three eigenvalues arranged in descending order; and defining the proportion of the smallest eigenvalue to the sum of the eigenvalues as the curvature feature value of the query point.
[0010] Preferably, a predetermined proportion of point cloud data is randomly extracted from the point cloud data of the main building. The extracted point cloud data is manually labeled as real feature points or non-feature points to form a verification subset. In the verification subset, with the goal of optimizing the comprehensive index of integrity and low noise, a multi-dimensional grid search is performed on the given threshold combination. Each threshold combination in the grid is traversed to extract features, which are compared with the manually labeled true values. Based on the comparison results, the optimal threshold combination is obtained, and the curvature feature value threshold, centroid offset ratio threshold, and density variation coefficient threshold corresponding to the optimal threshold combination are output.
[0011] Preferably, the method further includes preprocessing the point cloud data of the main building, specifically including the following steps: The point cloud data of the main building is first filtered using cloth filtering to separate non-ground points from ground points, retaining the main building point cloud; the number of neighboring points is set to remove isolated noise points; based on four dimensions—real point cloud density, vertical height span, local geometric structure regularity, and two-dimensional projection compactness—the point cloud clusters after removing noise points are filtered step by step to remove non-building structures; a small number of sticky noise points are corrected to obtain the preprocessed main building point cloud data, and calculations are performed based on the preprocessed main building point cloud data.
[0012] This invention also provides a building point cloud structural feature extraction system, specifically including: The data acquisition module is used to acquire point cloud data of the main building structure.
[0013] The feature calculation module is used to calculate the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of each query point in the main building point cloud; wherein, the centroid offset ratio represents the single-sided overhang edge of the building point cloud, the tangent plane density variation coefficient represents the local density direction non-uniformity of the building point cloud, and the curvature feature value represents the degree of three-dimensional spatial divergence of the building point cloud.
[0014] The fusion judgment module is used to traverse the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of all query points, extract all query points that satisfy the preset multi-criteria judgment rules, and form a set of building structural feature points. The set of building structural feature points constitutes the building structural features. The multi-criteria judgment rules are specifically: judging whether the curvature feature value is greater than or equal to a preset curvature feature value threshold, or whether the centroid offset ratio is greater than or equal to a preset centroid offset ratio threshold, or whether the tangent plane density variation coefficient is greater than or equal to a preset density variation coefficient threshold; if any of the above conditions are satisfied, the query point is extracted as a building structural feature point.
[0015] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps described in the building point cloud structural feature extraction method.
[0016] The present invention also provides a computer-readable storage medium storing a computer program that, when loaded by a processor, can execute the steps described in the building point cloud structural feature extraction method.
[0017] The method for extracting structural features of building point clouds provided by this invention has the following beneficial effects: This invention achieves complementary extraction of multi-dimensional geometric mutation attributes by logically fusioning three feature criteria: curvature, 3D centroid offset ratio, and tangential plane density variation coefficient. Curvature feature values are used to capture crease nodes at multi-faceted intersections. The centroid offset ratio is introduced as a supplementary criterion, quantifying the offset of the neighborhood centroid relative to the query point to identify and complete straight boundaries and outer contours that curvature methods cannot detect. The tangential plane density variation coefficient transforms statistical objects into directional density distributions on local tangential planes, capturing local mutation information of fine structures such as thin window frames and small doorways, responding to subtle geometric features on facades with different orientations to improve the completeness of building structural feature extraction. The point is retained when any of the three criteria is triggered, maintaining high accuracy for curvature while significantly improving the recall rate of straight boundaries and fine structures, achieving high completeness and robustness in the extraction of building structural features. Attached Figure Description
[0018] To more clearly illustrate the embodiments and design schemes of the present invention, the accompanying drawings required for this embodiment will be briefly described below. The drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram of the complete point cloud of a building in an embodiment of the present invention.
[0020] Figure 2 This is a flowchart of the multi-feature fusion structural feature point cloud extraction method in an embodiment of the present invention.
[0021] Figure 3 This is a schematic diagram of the point cloud results of structural feature extraction using the curvature threshold in an embodiment of the present invention.
[0022] Figure 4 This is a schematic diagram illustrating the principle of point cloud centroid shift in an embodiment of the present invention, wherein, Figure 4 (a) is a schematic diagram of the centroid shift principle of point cloud inside a flat wall surface; Figure 4 (b) is a schematic diagram of the centroid shift of the point cloud at a single-sided suspended edge.
[0023] Figure 5 This is a schematic diagram showing the geometric coverage of the three types of criteria in an embodiment of the present invention: curvature characteristic value criterion, centroid offset ratio criterion, and tangent plane density variation coefficient.
[0024] Figure 6 This is a schematic diagram illustrating the extraction results of the curvature + centroid offset method according to an embodiment of the present invention, wherein, Figure 6 (a) is the overall rendering of the teaching building; Figure 6 (b) is the result of feature extraction in the vegetation-covered area; Figure 6(c) is the result of extracting the window frame; Figure 6 (d) represents the feature wall extraction effect.
[0025] Figure 7 This is a schematic diagram illustrating the extraction results of the three-criteria fusion method (curvature + centroid offset + tangent plane variation coefficient) according to an embodiment of the present invention. Figure 7 (a) is the overall rendering of the teaching building; Figure 7 (b) is the result of feature extraction in the vegetation-covered area; Figure 7 (c) is the result of extracting the window frame; Figure 7 (d) represents the feature wall extraction effect.
[0026] Figure 8 This is a schematic diagram illustrating the extraction results of the adaptive threshold linearity feature method according to an embodiment of the present invention, wherein, Figure 8 (a) is the overall rendering of the teaching building; Figure 8 (b) is the result of feature extraction in the vegetation-covered area; Figure 8 (c) is the result of extracting the window frame; Figure 8 (d) represents the feature wall extraction effect. Detailed Implementation
[0027] To enable those skilled in the art to better understand and implement the technical solutions of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and should not be construed as limiting the scope of protection of the present invention.
[0028] Example Taking a teaching building in a mining area as the research object, its plan outline is approximately convex, with dimensions of about 100 m × 11 m × 12 m. It is a brick-concrete structure, characterized by multiple doors and windows and flat walls. The southwest side of the building is partially obscured by vegetation, providing a real-world scenario for verifying the algorithm's anti-interference capabilities. The method for extracting building point cloud structural features provided by this invention will be described in detail below. Figure 2 As shown, the specific steps include: Step 1: Building TLS point cloud data acquisition.
[0029] TLS point cloud data was acquired using a multi-station terrestrial laser scanning method with a Leica ScanStation P50 instrument. The average point spacing was approximately 0.01 m, the angular resolution was set to 0.018° × 0.018°, and the nominal ranging accuracy was ±1.2 mm (1σ, at 100 m). The scanning stations were evenly distributed across all building orientations, with a total of 8 stations. The distance between adjacent stations was approximately 20–30 m, and the overlap between stations was no less than 30% to ensure registration accuracy. After multi-station ICP registration assisted by a spherical target, the root mean square error (RMSE) of the overall point cloud registration was better than 5 mm, yielding a complete point cloud of the building with an original number of 144,378,598 points.
[0030] Step 2: Preprocess the obtained point cloud of the building as a whole.
[0031] The preprocessing process specifically includes the following four steps: 1) Use Cloth Simulation Filter (CSF) to remove ground point clouds; 2) Statistical Outlier Removal (SOR, k=20, standard deviation factor=2.0) is used to denoise non-terrestrial point clouds; 3) The point cloud clusters are refined step by step based on four dimensions: actual point cloud density, vertical height span, local geometric structure regularity, and two-dimensional projection compactness. 4) Manually visually inspect and repair a small number of adhering noise points to finally obtain a complete building point cloud. The complete building surface point cloud structure is as follows: Figure 1 As shown.
[0032] Step 3: Calculation of local curvature eigenvalues (first criterion).
[0033] Curvature is a geometric quantity describing the degree of bending of a local surface. Curvature values typically increase significantly at locations such as building edges and boundaries. Feature extraction methods based on curvature feature values analyze the local neighborhood of each point in a point cloud, calculate the curvature feature value, and set a threshold to identify potential structural feature points. The selection of the search radius r is closely related to the average density of the point cloud: if r is too small, the number of neighborhood points is insufficient, and the feature value decomposition is unstable; if r is too large, the smoothing effect is too strong, and small structures are missed. Based on the average spacing of the point cloud (approximately 0.01 m), r is set to 0.05 m to ensure that the average number of points in each neighborhood is not less than 20.
[0034] Let the i-th query point in the building point cloud be... The unit is m, and a local spherical neighborhood point set is constructed with r as the search radius. The unit of r is m, containing k neighboring points, and its local covariance matrix is... Defined as: (1); In the formula: To define the query point The three-dimensional geometric centroid within a spherical neighborhood, in meters; Let x be the three-dimensional coordinate vector of the j-th point in the neighborhood. j ,y j ,z j ), unit m; subscript i is used to traverse all query points in the entire point cloud, marking the center of the current spherical neighborhood (only a single point); subscript j traverses all neighboring points inside the spherical neighborhood corresponding to the current query point; j=1…k, the summation operation loops over subscript j; Let be the i-th neighboring point within the spherical neighborhood, in units of ; T is the transpose. (unit is) Perform eigenvalue decomposition to obtain three eigenvalues in descending order. Local curvature eigenvalue estimator Defined as the proportion of the smallest eigenvalue to the sum of all eigenvalues: (2); in The range of values is Dimensionless; Units are When the three eigenvalues are equal (spherical distribution), Take the maximum value of 1 / 3; when the point cloud is completely planar, Set the curvature feature value threshold. When the query point is located on a flat wall of a building, Smaller, exhibiting low curvature eigenvalues ( When the query point is located at the edge of a door or window, at the corner of a wall where multiple surfaces intersect, or on a complex building wall structure, the neighboring point cloud diverges in three-dimensional space. Significantly increased, manifested as high curvature eigenvalues Therefore, curvature features can accurately capture the junction nodes of such structures, effectively eliminate redundant point clouds on flat walls, and ensure the basic accuracy of feature extraction.
[0035] However, when the query point is located on the straight edge of a window opening or the outer contour of a building, the point cloud distribution exists only on one side of the search sphere, i.e., a single-sided suspended state. Although this is a clear boundary feature, the point cloud on one side still closely adheres to the two-dimensional wall surface, and the neighborhood fitting surface of the edge point is still close to a plane. Therefore, the minimum eigenvalue of the covariance matrix is not found. It still approaches 0, resulting in curvature Extremely low. This means that while curvature feature values can eliminate planar point clouds with high accuracy, a large number of straight-line edge points are still misclassified by the algorithm as flat walls and thus missed, causing feature line breaks. For example... Figure 3 As shown, the building feature lines extracted solely by curvature thresholding are missing in many contour lines and door / window frame lines. Therefore, additional geometric constraints are introduced on top of curvature to enhance the robustness and completeness of the extraction.
[0036] Step 4: Calculation of the centroid offset ratio characteristic (second criterion).
[0037] A local spherical neighborhood point set is constructed using the same search radius r (=0.05m). For points on flat areas inside buildings, the point cloud within the spherical neighborhood is approximately uniformly distributed in all directions, and the centroid of the neighborhood highly coincides with the query point in space. However, for points located at wall edges, outer contours, or window frames, no point cloud exists on the suspended side of the search sphere, and the neighborhood point cloud exhibits a clear unilateral distribution, causing a significant shift in the centroid of the neighborhood relative to the query point. Although the neighborhood point cloud of such points exhibits asymmetry, its curvature is extremely low due to its close fit to the plane it occupies, making it difficult to identify using curvature methods. Figure 4 As shown in (a), the point cloud inside the flat wall uniformly surrounds the query point. Its three-dimensional geometric centroid μ is They tend to overlap. For example... Figure 4 As shown in (b), at the edge where one side is suspended, the geometric centroid μ will shift significantly towards the side with denser point cloud. This asymmetry in the three-dimensional spatial distribution is clearly distinguishable, making the centroid shift ratio the core basis of the supplementary criterion.
[0038] Because the point density of a 3D laser-scanned ground point cloud decreases with distance, a query point is defined to eliminate the influence of point density on the calculation of the centroid of the neighborhood. The three-dimensional geometric centroid within the spherical neighborhood The arithmetic mean of the coordinates of all neighboring points: (3); The calculated centroid depends only on the spatial distribution shape of the neighboring point cloud and is independent of the number of neighboring points, k. Based on this geometric distribution characteristic, and to eliminate the scale effect, a centroid offset ratio is introduced. As the second type of feature criterion, it is defined as the ratio of the Euclidean distance from the query point to the centroid of the neighborhood to the search radius: (4); The range of values is Dimensionless. When the neighborhood point cloud is uniformly distributed. Approaching 0; when the point cloud is biased to one side Gradually increasing, corresponding to strong boundary features.
[0039] Step 5: Fusion of local curvature feature value and centroid offset ratio feature as dual criteria.
[0040] Set the center of gravity offset ratio threshold. (Dimensionless), and the logical union of the curvature eigenvalue criterion: when or When this point is reached, it is marked as a structural feature point of the building.
[0041] The centroid shift feature compensates for the curvature feature's insensitivity to straight boundaries. Both feature characteristics characterize the geometric abrupt changes in point clouds from different dimensions and exhibit significant complementarity in representing building structures: the curvature feature criterion primarily responds to creases and intersections in the neighborhood point cloud that diverge in multiple directions, but it cannot detect straight boundaries that are suspended on one side; while the centroid shift criterion is highly sensitive to cases where the query point is suspended on one side, effectively responding to straight boundaries and outer contours distributed on one side of the neighborhood point cloud.
[0042] The response of the center of gravity offset ratio varies significantly under different geometric scenarios. The theoretical derivation for two typical scenarios—a single-sided suspended straight boundary and a boundary between two walls—is given below to verify the physical interpretability of this criterion.
[0043] Scenario 1 (Single-sided suspended straight line boundary): The query point is at the origin. Taking the wall as the xoy plane, the points in the neighborhood are evenly distributed in the y>0 region of the xoy plane, i.e., a semi-circular disk. Due to symmetry, the x-coordinate of the centroid of the semi-circular disk is... The y-coordinate is: (5); (6); (7); In the formula, A is the area of the semicircle, r is the search radius, a is the polar radius of the integration variable in polar coordinates (unit: m, integration interval: [0, R]), and θ is the azimuth angle (polar angle) of the polar integral (unit: rad, integration interval: [0, π]). At this point, the centroid offset ratio is: (8); Scenario 2 (Intersection of two walls): Assume the broken line extends along the x-axis. Points within the neighborhood are uniformly distributed on two semicircles in the xoy and xoz planes. Let the regions of the two semicircles be y>0 and z>0, respectively. Then the coordinates of the centroids of the two planes are... , Since the areas (or number of points) of the two faces are equal, the overall centroid is the arithmetic mean of the centroids of the two sub-faces, that is... At this point, the center of gravity offset ratio is: (9); Therefore, That is, the edge that is suspended on one side ( The centroid offset ratio of ≈0.424 is significantly greater than that at the boundary between the two surfaces ( The value is approximately 0.300, and the crease at the boundary between the two surfaces causes an increase in σ, which is reliably covered by the curvature criterion. Therefore, the logical union of the two criteria can effectively cover the main geometric types of the point cloud of building structural features. In practical applications, since the point cloud is not ideally uniformly distributed, the above theoretical values are only used as a reference for threshold setting, and the actual threshold is determined through multiple experimental optimizations.
[0044] Step 6: Calculation of the coefficient of variation of density in the tangential plane (third criterion).
[0045] The method combining tangential plane density variation coefficient also identifies structural boundaries based on the non-uniformity of the neighborhood point cloud, but its statistical object changes from the centroid offset in three-dimensional space to the directional density distribution on the local tangential plane. The core idea is that within a homogeneous planar region, the distribution of points in each direction tends to be uniform in the neighborhood of any query point in the tangential plane; while points located at geometric edges, corners, or structural abrupt changes show significant differences in point density in each direction within their neighborhood. Therefore, the two types of points can be distinguished by quantifying the non-uniformity of the neighborhood point density distribution. The coefficient of variation (CV) is a standardized metric in statistics that measures the dispersion of data, defined as the ratio of the standard deviation to the mean, suitable for comparisons at different mean scales. Introducing the tangential plane density variation coefficient as a third type of feature criterion, the directional non-uniformity of point density is statistically quantified through tangential plane sectors, achieving accurate identification of structural feature points.
[0046] First, its normal vector is estimated using local principal component analysis (PCA). Centered on the query point, collect the set of neighborhood points within a radius r, construct a local covariance matrix, and take the eigenvector corresponding to the smallest eigenvalue as the local normal vector. and the two with Orthogonal basis vectors u and v span the query point and are perpendicular to it. The local tangent plane.
[0047] Subsequently, all neighboring points are projected onto a local tangent plane, and the azimuth angle of each neighboring point is calculated in the two-dimensional local coordinate system of this tangent plane. and azimuth space Divide the area into 8 evenly distributed sectors. Count the number of points in each sector and record it as follows: Therefore, the density variation coefficient is calculated. (Dimensionless): (10); (11); in ( ) represents the i-th query point, and the number of points within each sector. Standard deviation; It is the average number of all sectors at the i-th query point; m (sectors) is the sector number, from 1 to M; M (sectors) is the total number of sectors divided at this query point; ( ) represents the number of point cloud points in the m-th sector of the i-th query point. When the query point is located in a flat area inside a building, the neighboring points are evenly distributed in all directions, the number of points in each sector tends to be equal, and the CV value approaches 0. When the query point is located near the edge of a wall or outline, the number of points in some sectors on the suspended side is 0 or very few, while the number of points in the point cloud sectors is high, resulting in an uneven distribution of the number of points and a significantly increased CV value. Given a discrimination threshold... When CV> This point is then marked as a feature point. Since density statistics are performed independently within the local tangent plane of each point, this criterion is insensitive to facade orientation and can respond with equal sensitivity to structural features on facades facing different orientations.
[0048] The selection of the number of sectors M affects the statistical stability of CV: if M is too small, the directional resolution is insufficient; if M is too large, the number of points in a single sector is too small, leading to unstable variance estimation. Through preliminary experimental analysis of the detection performance when M∈{4,6,8,12}, M=8 was finally selected as a compromise.
[0049] Step 7: Fusion of the three criteria.
[0050] At the intersection of two building walls, the local tangent plane estimated by PCA tends to be the bisector of the intersection angle. Through projection transformation, the two facades distributed in 3D space achieve angle compensation and coverage within the 2D tangent plane, making the point cloud density of each sector tend to be consistent, which may cause the coefficient of variation criterion to fail and miss feature points. Therefore, the tangent plane density coefficient of variation criterion is positioned as a supplement to, rather than a replacement for, the curvature and centroid offset criteria. For the boundary line between two facades, the curvature criterion has been reliably covered ( (Increase), therefore, occasional failures of the density variation coefficient of the tangential plane do not affect the overall integrity.
[0051] Given a threshold τ for the density variation coefficient of the tangent plane CV =0.6 (dimensionless), logically unioned with the curvature eigenvalue criterion and the centroid offset criterion: when or β≥τ β or CV≥τ CV When the value is reached, the point is marked as a feature point. Each threshold is determined by parameter search on the validation subset (approximately 10% of the data) with the goal of optimizing the integrity-noise composite index, and then the final result is evaluated on the remaining 90% of the test set to avoid overfitting.
[0052] In summary, the complementary relationship among the three criteria can be summarized as follows: the curvature eigenvalue criterion is highly sensitive to crease nodes (intersections of multiple surfaces); the centroid offset criterion is sensitive to straight boundaries with one side suspended; and the tangent plane density variation coefficient is sensitive to fine structures with significant local density differences, such as thin window frames and small door openings. These three criteria form a highly efficient extraction framework suitable for large-scale TLS point clouds, buildings with multiple doors and windows, and flat facades. Figure 5 A complementary diagram of the three criteria is presented. The curvature feature value criterion mainly covers multi-faceted intersection creases / corner nodes and the boundary lines between two walls, such as wall corners and edge intersections. The neighborhood point clouds in these areas are highly divergent in 3D space, and the curvature feature values are significantly increased. The centroid offset ratio criterion mainly covers single-sided suspended straight line boundaries / outer contour lines, such as window frames and building outer contour lines. The neighborhood point clouds in these areas are only distributed on one side of the query point, causing the neighborhood centroid to shift significantly towards the denser side of the point cloud. The tangential plane density variation coefficient (CV) criterion mainly covers fine structural areas with significant differences in density in local directions, such as fine structures like thin window frames and small door openings. The distribution of the neighborhood point clouds in these areas is extremely uneven in the sectors of the local tangential plane, and the variation coefficient is significantly increased. The three criteria are logically fused to achieve comprehensive and complementary coverage of multiple geometric types in the point cloud of building structural features, effectively overcoming the problems of feature line breaks and large omissions caused by a single curvature criterion.
[0053] Based on manually annotated reference ground truth values, quantitative comparisons were made across four dimensions: extraction completeness, number of extracted points, rejection rate, and computation time. The reference ground truth values were obtained by two operators familiar with point cloud processing manually segmenting and annotating the entire building point cloud in CloudCompare. The annotations included all visible edges, window frame edges, floor lines, and outer contour lines. After annotation, a third person reviewed the data, and disputed areas were represented by the union of the two annotations. The final reference feature point cloud consisted of approximately 12,320,000 points.
[0054] The integrity index is defined as the proportion of reference feature points covered by the extraction method to the total number of reference feature points, with a distance threshold of d=0.05 m. All algorithms were run on the same computing platform (Intel Core i7-12700, 32 GB RAM), with each method run independently three times and the average value taken. The results are shown in Table 1. To ensure that all methods achieve optimal extraction results, grid search was used to experiment with their respective threshold parameters multiple times. The optimal threshold for all methods was finally selected based on the highest integrity achieved without significant noise. =0.05、τ β =0.15、τ CV =0.6.
[0055] Table 1 Comparison of extraction results of various algorithms
[0056] like Figure 6 , Figure 7 and Figure 8 The results of the three methods were shown in four typical areas: the whole building, the area covered by vegetation, the window frame, and the feature wall.
[0057] from Figure 6 (a) and Figure 7 As can be seen from the overall effect comparison in (a), the improvement in overall integrity is limited whether or not the tangential plane density variation coefficient is introduced (97.69%→97.77%), but from... Figure 6 (b) and Figure 7 As seen in (b) (vegetation-occupied area): due to vegetation occlusion, both methods retain a small amount of vegetation noise on the southwest side of the building; after introducing the CV criterion, because the local tangent plane density distribution of vegetation points is more chaotic (CV value is higher), some vegetation points are misclassified as feature points, so the CV method has slightly more noise. However, since it covers more real structural boundary points at the same time, the overall integrity is still improved. The anti-interference ability needs to be further processed by subsequent filtering. Comparison Figure 6 (c) and Figure 7 (c) (Window frame extraction): The centroid offset method misses some fine window frame skeleton features (the centroid offset is covered by the surrounding wall points), while the CV method successfully fills in these details through multi-sector directional density analysis, and the continuity of the window frame line is significantly improved.
[0058] Figure 8 (a) shows the overall rendering of the teaching building. It can be seen that the adaptive threshold linearity method has the worst anti-interference ability among the three methods: Figure 8 In (b), the vegetation area has the highest density of noise points, and from Figure 8 As can be seen from (c), the extraction of the window sill line of the lowest floor of the building is seriously incomplete. Figure 8 In (d), only scattered points are retained for the feature walls, while the three-criteria fusion method of this application can achieve complete extraction of the windowsill line.
[0059] Overall, the three-criteria fusion method is the best in terms of both completeness and efficiency: its completeness is 0.51 percentage points higher than the adaptive linearity method; and compared with the two-criteria scheme, its completeness is improved by 0.08 percentage points.
[0060] This invention also provides a system for extracting structural features from building point clouds, comprising: The data acquisition module is used to acquire point cloud data of the main building structure.
[0061] The feature calculation module is used to calculate the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of each query point in the building's main point cloud. Among them, the centroid offset ratio represents the single-sided overhang edge of the building's point cloud, the tangent plane density variation coefficient represents the local density direction non-uniformity of the building's point cloud, and the curvature feature value represents the degree of three-dimensional spatial divergence of the building's point cloud.
[0062] The fusion judgment module is used to traverse the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of all query points, extract all query points that meet the preset multi-criteria judgment rules, and form a set of building structural feature points. The set of building structural feature points constitutes the building structural features. The multi-criteria judgment rules are as follows: determine whether the curvature feature value is greater than or equal to a preset curvature feature value threshold, or whether the centroid offset ratio is greater than or equal to a preset centroid offset ratio threshold, or whether the tangent plane density variation coefficient is greater than or equal to a preset density variation coefficient threshold. If any of the above conditions are met, the query point is extracted as a building structural feature point.
[0063] Each module in the aforementioned building point cloud structural feature extraction system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0064] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps in the embodiment of the building point cloud structural feature extraction method. Specific implementation methods can be found in the method embodiments, and will not be repeated here.
[0065] Furthermore, the present invention also provides a non-transitory computer-readable storage medium containing instructions, on which a computer program is stored. For example, a memory containing instructions that can be executed by a processor of a computer device to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc. When the computer program is executed by the processor, it can implement the steps in the embodiments of the building point cloud structural feature extraction method. Specific implementation methods can be found in the method embodiments, which will not be repeated here.
[0066] Those skilled in the art will understand that embodiments of the present invention can provide methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0067] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0068] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0069] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0070] It should be noted that the specific embodiments described above enable those skilled in the art to more fully understand the present invention, but do not limit the present invention in any way. Therefore, although the present invention has been described in detail in this specification and embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the present invention; and all technical solutions and improvements that do not depart from the spirit and scope of the present invention are covered within the protection scope of the present invention patent. No reference numerals in the claims should be construed as limiting the scope of the claims. Any simple variations or equivalent substitutions of technical solutions that can be readily obtained by those skilled in the art within the scope of the technology disclosed in the present invention are within the protection scope of the present invention.
Claims
1. A method for extracting structural features from building point clouds, characterized in that, Includes the following steps: Obtain point cloud data of the main building structure; Calculate the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient for each query point in the main building point cloud; wherein, the centroid offset ratio characterizes the single-sided overhanging edge of the building point cloud, the tangent plane density variation coefficient characterizes the local density direction non-uniformity of the building point cloud, and the curvature feature value characterizes the degree of three-dimensional spatial divergence of the building point cloud. The curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of all query points are traversed. All query points that satisfy the preset multi-criteria judgment rule are extracted to form a set of building structural feature points. The set of building structural feature points constitutes the building structural features. The multi-criteria judgment rule is specifically: whether the curvature feature value is greater than or equal to a preset curvature feature value threshold, or whether the centroid offset ratio is greater than or equal to a preset centroid offset ratio threshold, or whether the tangent plane density variation coefficient is greater than or equal to a preset density variation coefficient threshold. If any of the above conditions are satisfied, the query point is extracted as a building structural feature point.
2. The method for extracting structural features of building point clouds according to claim 1, characterized in that, The calculation steps for the centroid offset ratio are as follows: a query point is randomly selected in the point cloud data of the main building. For the same spherical neighborhood of the query point, the centroid of the neighborhood point set is calculated. The centroid offset ratio is calculated based on the ratio of the Euclidean distance from the query point to the neighborhood centroid to the search radius.
3. The method for extracting structural features of building point clouds according to claim 1, characterized in that, The calculation steps for the density variation coefficient of the tangent plane are as follows: taking a randomly selected query point as the center, collecting a set of neighborhood points within a radius r, constructing a local covariance matrix, and using local principal component analysis (PCA) to obtain the eigenvector corresponding to the smallest eigenvalue as the local normal vector; projecting all neighborhood points onto the local tangent plane, calculating the azimuth angle of each neighborhood point in the two-dimensional local coordinate system of the local tangent plane, uniformly dividing the azimuth angle space into several sectors, counting the number of points in each sector; calculating the average and standard deviation of the number of points in each sector, and obtaining the density variation coefficient of the tangent plane based on the ratio of the standard deviation to the average.
4. The method for extracting structural features of building point clouds according to claim 1, characterized in that, The specific steps for calculating the curvature feature value are as follows: taking a randomly selected query point as the center, setting a search radius to construct a local spherical neighborhood point set, calculating the local covariance matrix of the local spherical neighborhood point set; performing eigenvalue decomposition on the local covariance matrix to obtain three eigenvalues arranged in descending order; and defining the proportion of the smallest eigenvalue to the sum of the eigenvalues as the curvature feature value of the query point.
5. The method for extracting structural features of building point clouds according to claim 1, characterized in that, From the point cloud data of the main building, a set proportion of point cloud data is randomly extracted. The extracted point cloud data is manually labeled as real feature points or non-feature points to form a verification subset. In the verification subset, with the goal of optimizing the comprehensive index of integrity and low noise, a multi-dimensional grid search is performed on the given threshold combination. Each threshold combination in the grid is traversed to extract features, which are compared with the manually labeled ground truth. Based on the comparison results, the optimal threshold combination is obtained, and the curvature feature value threshold, centroid offset ratio threshold, and density variation coefficient threshold corresponding to the optimal threshold combination are output.
6. The method for extracting structural features of building point clouds according to claim 1, characterized in that, It also includes preprocessing the point cloud data of the main building, specifically including the following steps: The point cloud data of the main building is first filtered using cloth filtering to separate non-ground points from ground points, retaining the main building point cloud; the number of neighboring points is set to remove isolated noise points; based on four dimensions—real point cloud density, vertical height span, local geometric structure regularity, and two-dimensional projection compactness—the point cloud clusters after removing noise points are filtered step by step to remove non-building structures; a small number of sticky noise points are corrected to obtain the preprocessed main building point cloud data, and calculations are performed based on the preprocessed main building point cloud data.
7. A building point cloud structural feature extraction system, characterized in that, include: The data acquisition module is used to acquire point cloud data of the main building structure; The feature calculation module is used to calculate the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of each query point in the building's main point cloud; wherein, the centroid offset ratio represents the single-sided overhanging edge of the building's point cloud, the tangent plane density variation coefficient represents the local density direction non-uniformity of the building's point cloud, and the curvature feature value represents the degree of three-dimensional spatial divergence of the building's point cloud. The fusion judgment module is used to traverse the curvature feature value, centroid offset ratio, and tangent plane density variation coefficient of all query points, extract all query points that satisfy the preset multi-criteria judgment rules, and form a set of building structural feature points. The set of building structural feature points constitutes the building structural features. The multi-criteria judgment rules are specifically: judging whether the curvature feature value is greater than or equal to a preset curvature feature value threshold, or whether the centroid offset ratio is greater than or equal to a preset centroid offset ratio threshold, or whether the tangent plane density variation coefficient is greater than or equal to a preset density variation coefficient threshold; if any of the above conditions are satisfied, the query point is extracted as a building structural feature point.
8. A computer device, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is loaded by the processor, it is able to perform the steps of the method according to any one of claims 1 to 6.
