Building 3D model automatic modeling method based on three-dimensional point cloud
Through an automated modeling method based on three-dimensional point clouds, by calculating point cloud normals and curvatures for segmentation, statistical filtering and least squares fitting, the problem of low efficiency and accuracy of building modeling in the existing technology is solved and achieved. Efficient and accurate 3D model drawing and verification.
Patent Information
- Application Number
- CN202411111430.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In the existing technology, the overall accuracy and efficiency of 3D modeling of buildings are low, and it is difficult to reflect the overall size and shape of the building through slicing and manual tracking methods, resulting in low modeling efficiency.
An automated modeling method based on three-dimensional point clouds is adopted, by calculating point cloud normals for regional growth, setting normal and curvature difference thresholds to segment point cloud data, using statistical methods to establish filters to remove rough points, and combining the least square Multiplicatively fit the point cloud data, determine the drawing parameters of the 3D model, and draw and verify the model accuracy in the 3D modeling software.
It significantly improves the accuracy and consistency of building 3D models, improves modeling efficiency, ensures the geometric accuracy and visual consistency of the model, and is suitable for real-life cities, smart cities and other fields.
Smart Images

Figure CN118628682A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of 3D modeling, and in particular to an automated modeling method for a 3D building model based on a three-dimensional point cloud. Background Art
[0002] As an important tool in the digital age, 3D modeling technology is gradually penetrating into all walks of life, especially in the fields of architecture, urban planning, industrial design, etc., showing great application potential. With the continuous advancement of technology, the accuracy and efficiency of 3D modeling are constantly improving, providing a technical basis for the automated modeling of buildings. Three-dimensional point cloud technology obtains three-dimensional coordinate information of a large number of points on the surface of an object through laser scanning or other sensors, which can accurately reflect the shape, size, texture and other characteristics of the object. Compared with traditional real-scene 3D modeling technology, three-dimensional point cloud technology is efficient and accurate, which can greatly improve the accuracy and efficiency of architectural drawing.
[0003] In the existing technology, most of the building-related parameters are extracted through slicing and manual tracking methods to achieve building modeling. However, the slicing and manual tracking methods are difficult to reflect the overall size of the building and are not efficient. Therefore, how to improve the overall modeling accuracy and efficiency of the building is the problem we need to solve. To this end, an automatic building modeling method based on three-dimensional point cloud is proposed. Summary of the invention
[0004] The present invention aims to provide a method for automatically building a 3D model of a building based on a three-dimensional point cloud, so as to solve the problems raised in the above-mentioned background technology.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: The method for automatically building a 3D model of a building based on a 3D point cloud comprises the following steps: Step 1: collect the original point cloud data of the target building, calculate the normal of each point in the point cloud for regional growth, set the normal deviation threshold and curvature difference threshold to segment the original point cloud data, and segment the circular column point cloud of the building; Step 2: A filter is established based on a statistical method. The average distance from a point to its neighboring points is calculated, the mean and standard deviation are determined, and a distance threshold from the point to its neighboring points is set to remove gross errors from the segmented point cloud of circular columns of buildings. Step 3, traverse the point cloud after deleting gross errors, calculate the minimum and maximum elevation values of the point cloud, determine the elevation range of the target building components, and project the point cloud onto the horizontal plane. Use the least squares method to fit a circle on the projected point cloud to obtain the cross-sectional circle parameters, which are the center coordinates and radius of the cross-sectional circle. Step 4: Determine the drawing parameters of the 3D model based on the obtained cross-section circle parameters and the elevation range of the point cloud, draw the 3D model of the circular column of the target building in the 3D modeling software, and compare it with the original point cloud data to verify the accuracy and consistency of the model.
[0006] A further improvement of the technical solution of the present invention is that in step 1, the segmentation and extraction process of the point cloud of the circular column of the building is: Step 101, using a laser scanner or a 3D camera to collect 3D point cloud data of a target building, and using a KD tree algorithm to organize the point cloud data to quickly retrieve spatial neighboring points in the point cloud; Step 102, for each point , determine the point set within its neighborhood, and calculate the covariance moment of the point set , for the covariance matrix Perform eigenvalue decomposition, and the eigenvector corresponding to the minimum eigenvalue is the normal direction of the point; Step 103, calculate the normal change deviation between adjacent points, estimate the curvature of the point in the area, sort the points from small to large according to the curvature value, set the point with the smallest curvature value as the seed point, and calculate the normal difference between the seed point and the adjacent points; Step 104, setting a difference threshold. If the normal difference between the seed point and the neighboring point is less than the set difference threshold, and the curvature value is also less than the set difference threshold, the seed point is added to the seed point set and classified into one category. Step 105, removing the seed points classified into one category from the original point cloud, and growing the next area until the number of points remaining in the original point cloud is less than the minimum number of cluster points; Step 106, dividing the point cloud into different areas according to the curvature value and the normal direction, and separating the point cloud of the circular column of the building.
[0007] A further improvement of the technical solution of the present invention is that the expression of the covariance matrix is: ; in, is the covariance matrix, which is used to describe the distribution of points in the point cloud. is the number of neighbors of the considered point, is the 3D centroid of the nearest neighbor, For point The coordinate vector in space, is the mean vector of the points in the neighborhood; The expression of the eigenvalue decomposition is: ; in, is the covariance matrix eigenvalues, For the An eigenvector represents the main distribution trend of the point cloud in this direction. The eigenvalue is a non-negative real number, which represents the distribution variance of the point cloud in the direction of the eigenvector.
[0008] A further improvement of the technical solution of the present invention is that in step 2, the process of deleting gross errors from the point cloud of the circular column of the building is as follows: Step 201, input the point cloud of the circular column of the building, for each point in the point cloud , determine the set of spatial points in its neighborhood, and calculate the point To a point in its neighborhood The Euclidean distance of the point The average distance to the points in its neighborhood is denoted as , the point To a point in its neighborhood The expression of the Euclidean distance is: ; in, For point With point The Euclidean distance between The midpoint of three-dimensional space The coordinate vector of The midpoint of three-dimensional space The coordinate vector of The value range is , indicating distance; Said point The expression for the average distance to points in its neighborhood is: ; in, For point The average distance to points in its neighborhood, For point The number of points in the neighborhood of ; Step 202, calculate point The standard deviation of the distance to points in its neighborhood , analysis point The degree of dispersion of the distribution of the points in the neighborhood The standard deviation of the distance to points in its neighborhood The expression is: ; in, For point The standard deviation of the distance to points in its neighborhood, indicating that the point The degree of dispersion of point distribution within the neighborhood; Step 203, calculate all points The global mean of and standard deviation , and set a standard deviation multiple As the judgment threshold of gross error points, The value of is usually between 1 and 3, depending on the sensitivity to gross errors; Step 204, traverse the points in the point cloud , to determine whether it is a rough error point. The average distance to its neighboring points With the global mean The difference exceeds times the global standard deviation ,but For rough almost; Step 205: Delete all points identified as gross error points from the point cloud data.
[0009] A further improvement of the technical solution of the present invention is that: The global mean The expression is: ; in, For all points The global average value of represents the average distance of the entire point cloud neighborhood points. is the total number of points in the point cloud, For point The average distance to points in its neighborhood; All the points mentioned The global standard deviation The expression is: ; in, is the global standard deviation, indicating that all points Relative to the global average The degree of dispersion, the rough error point judgment condition, if the condition Established, then point Considered a rough cutoff.
[0010] A further improvement of the technical solution of the present invention is that in step 3, the process of obtaining the cross-section circle parameters is as follows: Step 301, traverse the point cloud after deleting gross errors, for each point , read its three-dimensional coordinates ; Step 302, calculate all points The minimum and maximum values of the coordinates (elevation values) and according to Minimum value of coordinate (elevation value) and maximum value , determine the elevation range ,in, , , , is the total number of points in the point cloud; Step 303: each point in the point cloud Project to On the horizontal plane, the projected point cloud is fitted with a circle, and the coordinates of the center of the circle are , the radius is ; Step 304: derive the radius of the circle according to the least squares principle and the center coordinates .
[0011] A further improvement of the technical solution of the present invention is that: the radius of the circle derived by the least squares principle is and the center coordinates , whose expression is: ; ; in, are the coordinates of the center of the circle, is the radius of the circle.
[0012] A further improvement of the technical solution of the present invention is that in step 4, the process of drawing the three-dimensional model of the circular column of the target building is: Step 401, using the cross-section circle parameters obtained from the point cloud data, including the center coordinates and radius , and extract the resulting elevation range ; Step 402, in the 3D modeling software, As the center of the bottom circle, Draw a circle with the same radius as the base radius. ,by As the center of the circle, draw another circle as the top surface of the cylinder; Step 403, using the "stretch" or "rotate" function of the 3D modeling software, Axis stretch to Create a cylinder with the height of Step 404 , compare the drawn three-dimensional cylindrical model with the original point cloud data to verify the accuracy and consistency of the model.
[0013] A further improvement of the technical solution of the present invention is that the process of verifying the accuracy and consistency of the model is: Step 4041, aligning the cylindrical model in the 3D modeling software and the original point cloud data correctly in the same coordinate system; Step 4042, for each point in the point cloud , calculate the shortest distance to the surface of the cylindrical model ; Step 4043, for all points Distance Perform statistical analysis and calculate the maximum error, minimum error, mean error, and standard deviation; Step 4044, set the error threshold, check whether the statistical error is within the set threshold, if the error of all points is within the set threshold, Are less than or equal to the threshold , then the model accuracy meets the requirements; Step 4045, if the model accuracy is insufficient, return to the modeling process for adjustment, re-fit the cross-section circle, adjust the elevation range or modify the modeling parameters, repeat the process of verifying the model until the model accuracy meets the requirements, and output the verified three-dimensional model to the required format for further use.
[0014] A further improvement of the technical solution of the present invention is that: the shortest distance The calculation formula is: ; in, For point The shortest distance to the surface of the cylindrical model, For any point on the cylindrical surface coordinate, is the radius, is the coordinate of the center of the cylinder base; The expression of the maximum error is: ; The expression of the minimum error is: ; The expression of the average error is: ; The expression of the standard deviation is: .
[0015] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art: The present invention provides an automated modeling method for 3D models of buildings based on three-dimensional point clouds. Compared with the traditional method of slicing point clouds and manually drawing cross-section circles, the method comprehensively considers the point cloud data of the entire cylinder and performs fitting through the least squares method, so that the drawn three-dimensional model is closer to the entire point cloud data. While improving the modeling accuracy, the method calculates relevant parameters and establishes the three-dimensional model, thereby improving the modeling efficiency. At the same time, the three-dimensional model established by this method can be applied to real cities, smart cities, metaverses, etc., and has certain promotion value.
[0016] The present invention provides an automated modeling method for 3D building models based on three-dimensional point clouds. By using point cloud processing technology, utilizing region growing method, statistical filtering and least squares method, the accuracy and consistency of the building model are significantly improved, the features of the building are accurately extracted from the original point cloud data, the distance from the point cloud to the model surface is accurately calculated, and statistical analysis is performed. This not only improves the geometric accuracy of the model, but also ensures the visual consistency of the model with the actual building, providing a reliable foundation for subsequent applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0018] Figure 1 is a flow chart of the method of the present invention; Figure 2 This is a flow chart for segmenting and extracting the point cloud of circular columns of a building according to the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Embodiment 1, as Figure 1 , Figure 2 As shown, the present invention provides a method for automatically building a 3D model of a building based on a three-dimensional point cloud, comprising the following steps: Step 1: Collect the original point cloud data of the target building, calculate the normal of each point in the point cloud for regional growth, set the normal deviation threshold and curvature difference threshold, segment the original point cloud data, and segment the circular column point cloud of the building. Use a laser scanner or a 3D camera to collect the 3D point cloud data of the target building, and use the KD tree algorithm to organize the point cloud data to quickly retrieve the spatial neighboring points in the point cloud. For each point , determine the point set within its neighborhood, and calculate the covariance moment of the point set , for the covariance matrix Perform eigenvalue decomposition, the eigenvector corresponding to the minimum eigenvalue is the normal direction of the point, calculate the normal change deviation between adjacent points, estimate the curvature of the point in the area, sort the points from small to large according to the curvature value, set the point with the smallest curvature value as the seed point, and calculate the normal difference between the seed point and the neighboring points, set the difference threshold, if the normal difference between the seed point and the neighboring point is less than the set difference threshold, and the curvature value is also less than the set difference threshold, then add the seed point to the seed point set and classify it into one category, remove the seed points classified into one category from the original point cloud, and grow the next area until the number of remaining points in the original point cloud is less than the minimum number of clustering points, then divide the point cloud into different areas according to the curvature value and normal direction, and segment the point cloud of the circular column of the building; Furthermore, the expression of the covariance matrix is: ; in, is the covariance matrix, which is used to describe the distribution of points in the point cloud. is the number of neighbors of the considered point, is the 3D centroid of the nearest neighbor, For point The coordinate vector in space, is the mean vector of the points in the neighborhood, and the covariance matrix is a A symmetric positive definite matrix, where is the dimension of the point, in two-dimensional or three-dimensional space, They are 2 or 3 respectively. The diagonal elements of the covariance matrix represent the variance of the point cloud in each dimension, and the off-diagonal elements represent the covariance between different dimensions. The expression of eigenvalue decomposition is: ; in, is the covariance matrix eigenvalues, For the The eigenvectors represent the main distribution trend of the point cloud in this direction. The eigenvalues are non-negative real numbers, which represent the distribution variance of the point cloud in the direction of the eigenvectors. The eigenvalues are usually sorted from large to small, that is, ,The eigenvector direction corresponding to the larger eigenvalue has a greater change in the point cloud, which can be considered as the main change direction of the point cloud; Step 2: Use a statistical method to establish a filter, calculate the average distance from a point to its neighboring points, determine the mean and standard deviation, set the distance threshold from the point to its neighboring points, and remove gross errors from the segmented point cloud of the circular columns of the building. Input the point cloud of the circular columns of the building, and for each point in the point cloud , determine the set of spatial points in its neighborhood, and calculate the point To a point in its neighborhood The Euclidean distance of the point The average distance to the points in its neighborhood is denoted as ,point To a point in its neighborhood The expression of the Euclidean distance is: ; in, For point With point The Euclidean distance between The midpoint of three-dimensional space The coordinate vector of The midpoint of three-dimensional space The coordinate vector of The value range is , indicating distance; point The expression for the average distance to points in its neighborhood is: ; in, For point The average distance to points in its neighborhood, For point The number of points in the neighborhood of ; Calculation Point The standard deviation of the distance to points in its neighborhood , analysis point The degree of discreteness of the distribution of neighboring points, point The standard deviation of the distance to points in its neighborhood The expression is: ; in, For point The standard deviation of the distance to the points in its neighborhood, indicating that the point The degree of dispersion of point distribution within the neighborhood; Calculate all points The global mean of and standard deviation , and set a standard deviation multiple As the judgment threshold of gross error points, The value of is usually between 1 and 3, depending on the sensitivity to gross errors, and iterates over the points in the point cloud. , to determine whether it is a rough error point. The average distance to its neighboring points With the global mean The difference exceeds times the global standard deviation ,but For gross error points, all points identified as gross error points are deleted from the point cloud data; Furthermore, all points The global mean of The expression is: ; in, For all points The global average value of represents the average distance of the entire point cloud neighborhood points. is the total number of points in the point cloud, For point The average distance to points in its neighborhood; All points The global standard deviation The expression is: ; in, is the global standard deviation, indicating that all points Relative to the global average The degree of dispersion, the rough error point judgment condition, if the condition If established, then point It is considered a rough handicap; Step 3: traverse the point cloud after deleting the gross errors, calculate the minimum and maximum elevation values of the point cloud, determine the elevation range of the target building components, and project the point cloud onto the horizontal plane. Use the least squares method to fit the projected point cloud to obtain the cross-sectional circle parameters, which are the center coordinates and radius of the cross-sectional circle. Traverse the point cloud after deleting the gross errors, and for each point after denoising , read its three-dimensional coordinates , calculate all points The minimum and maximum values of the coordinates (elevation values) and according to Minimum value of coordinate (elevation value) and maximum value , determine the elevation range ,in, , , , is the total number of points in the point cloud, and each point in the point cloud Project to On the horizontal plane, the projected point cloud is fitted with a circle, and the coordinates of the center of the circle are , the radius is , according to the least squares principle, the radius of the circle is derived and the center coordinates ; Furthermore, the least squares principle derives the radius of the circle and the center coordinates , whose expression is: ; ; in, are the coordinates of the center of the circle, is the radius of the circle; Step 4, according to the obtained cross-section circle parameters and the elevation range of the point cloud, determine the drawing parameters of the 3D model, and draw the 3D model of the circular column of the target building in the 3D modeling software, and compare it with the original point cloud data to verify the accuracy and consistency of the model, using the cross-section circle parameters obtained from the point cloud data, including the coordinates of the center of the circle and radius , and extract the resulting elevation range In 3D modeling software, As the center of the bottom circle, Draw a circle with the same radius as the base radius. ,by As the center of the circle, draw another circle as the top surface of the cylinder. Use the "extrude" or "revolve" function of the 3D modeling software to pass through the bottom circle along the Axis stretch to Create a cylinder at a height of 10000. Compare the drawn 3D cylinder model with the original point cloud data to verify the accuracy and consistency of the model. Align the cylinder model in the 3D modeling software with the original point cloud data in the same coordinate system. For each point in the point cloud , calculate the shortest distance to the surface of the cylindrical model , for all points Distance Perform statistical analysis, calculate the maximum error, minimum error, average error and standard deviation, set the error threshold, and check whether the statistical error is within the set threshold. Less than or equal to the threshold , the model accuracy meets the requirements. If the model accuracy is insufficient, return to the modeling process for adjustment, refit the cross-section circle, adjust the elevation range or modify the modeling parameters, and repeat the process of verifying the model until the model accuracy meets the requirements. The verified 3D model is then output to the required format for further use. Furthermore, the shortest distance The calculation formula is: ; in, For point The shortest distance to the surface of the cylindrical model, For any point on the cylindrical surface coordinate, is the radius, is the coordinate of the center of the cylinder base; The expression of the maximum error is: ; The expression of minimum error is: ; The expression of the average error is: ; The expression for standard deviation is: .
[0021] Example 2, based on Example 1, the present invention provides an experimental scheme, the experimental software environment is: Windows 11 64-bit operating system, VS2019 C++, PCL 1.12.1 (Point cloud library), the experimental data is collected by Tianbao 3D laser scanner, and the point cloud of Shandong Theater collected in a certain engineering project is used for the experiment. Shandong Theater is an antique building with four circular columns at the door. The overall point cloud data volume of the building is large. In order to reduce the calculation time and avoid interference from other data, the open source point cloud processing software CloudCompare is used to intercept the point cloud data of the cylinder and surrounding building components; The point cloud of the cylinder and the surrounding building structure is complex, and the curvature of the point clouds of each component varies greatly. In view of this, the region growing method is used to segment the point cloud region, calculate the normal and curvature of each point, and classify the points according to the normal deviation and curvature difference between the points to segment the cylinder point cloud; The calculation parameters are as follows: when calculating the point normal, the point cloud search radius is 32 and the number of search points is 30; when performing region growth segmentation of the point cloud, the normal deviation allowable value is 1.5 and the curvature difference allowable value is 1. When the normal deviation and curvature difference meet the above conditions at the same time, the points are classified into one category and the classified point clouds are stored separately; Due to measurement errors and other reasons, there are gross error points in the scanned data. By observing the point cloud, most of the gross error points are scattered outside the main point cloud. The statistical filtering method has a good effect on removing outlier gross error points. In view of this, the point cloud is filtered using statistical filtering to remove outlier gross error points. The calculation parameters are as follows: the number of nearest neighbor points is 5, and the standard deviation multiplier is 1.5; Traverse the points in the cylindrical point cloud and sort the elevation coordinates to obtain the minimum elevation of the cylindrical point cloud as 1.2788 meters and the maximum elevation as 8.0403 meters; The cylindrical point cloud after deleting the gross errors is projected onto the horizontal plane, and the least square method is used to fit the projected cylindrical cross-section point cloud to obtain the cross-section circle. The cross-section circle parameters are as follows: the center coordinates are (0.5039, 17.3408), and the radius is 0.3231 meters; Through the above process, the coordinates of the center of the cross-section circle, the radius, and the elevation range of the cylinder are obtained, and the drawing parameters of the cylindrical 3D model are obtained: the coordinates of the center of the cylinder bottom circle (0.5039, 17.3408, 1.2788), the cylinder height 6.7615, the cylindrical 3D model is drawn according to the parameters, and the drawn 3D model is compared with the cylindrical point cloud; Traverse the points in the cylindrical point cloud and calculate the distance between each point and the cylindrical surface. Some calculated values are shown in Table 1. The accuracy of the three-dimensional model is obtained by analyzing each distance: the maximum error is 0.008m, the minimum error is 0.000m, the average error is 0.002m, and the standard deviation is 0.002m; Table 1 3D model distance and distance of some points
[0022] The point cloud of each component of the building is segmented using Autodesk Recap software, and then imported into Autodesk Revit software to slice the point cloud to draw the component section contour line, change path and other information to establish a parametric component family library, and then establish a building construction model. The cylindrical point cloud is sliced, and the upper part of the cylindrical point cloud is relatively complete and the lower part of the cylindrical point cloud is seriously missing. The slice thickness is 0.1 meter. Three points are drawn in AUTOCAD to obtain the cylindrical section circle. The center coordinates of the circle drawn by the upper point cloud slice are (0.5033, 17.3404), and the radius is 0.3237m; the circle drawn by the lower point cloud slice has a center coordinate of (0.4999, 17.3422) and a radius of 0.3216m. The three-dimensional cylindrical model is drawn using the circle parameters drawn by the upper point cloud slice and the lower point cloud slice respectively. The points in the denoised cylindrical point cloud are traversed, and the distance between each point and the cylindrical surface is calculated. The three-dimensional model drawn by the lower slice with incomplete point cloud has a relatively large error, with a maximum error of 0.014 meters and a standard deviation of 0.005 meters. The three-dimensional model drawn by the upper slice with relatively complete point cloud has a relatively small error, with a maximum error of 0.010 meters and a standard deviation of 0.003 meters. Through comparison, it is found that the maximum error and standard deviation of the three-dimensional model drawn by the method in this paper are smaller than the results obtained by using Autodesk Recap software to segment the point clouds of various building components, importing Autodesk Revit software to slice the point cloud to draw the cross-section contour lines of the components, changing paths and other information to establish a parametric component family library, and then establishing a building construction model. This method can draw high-precision three-dimensional models.
[0023] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for automatically modeling a 3D building model based on a 3D point cloud, characterized in that: The following steps are involved: Step 1: Collect the original point cloud data of the target building, segment the original point cloud data by region growing method, calculate the normal of each point in the point cloud for region growing, set the normal deviation threshold and region difference threshold to segment each part of the point cloud, and segment the circular column point cloud of the building; Step 2: A filter is established based on a statistical method to calculate the average distance from the point cloud point to the neighboring point, determine the distance mean and standard deviation, set the distance threshold from the point to the neighboring point, and remove gross errors from the segmented point cloud of the circular column of the building; Step 3, traverse the point cloud, calculate the minimum and maximum elevation values of the point cloud, determine the elevation range of the target building components, project the point cloud onto the horizontal plane, use the least squares method to fit the projected point cloud into a circle, and obtain the cross-sectional circle parameters, which are the center coordinates and radius of the cross-sectional circle; Step 4: Determine the drawing parameters of the 3D model based on the obtained cross-section circle parameters and the elevation range of the point cloud, draw the 3D model of the circular column of the target building in the 3D modeling software, and compare it with the original point cloud data to verify the accuracy and consistency of the model.
2. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 1, characterized in that: In step 1, the segmentation and extraction process of the circular column point cloud of the building is as follows: Step 101, collecting three-dimensional point cloud data of the target building, and using the KD tree algorithm to organize the point cloud data, and quickly retrieve spatial neighboring points in the point cloud; Step 102, for each point , determine the point set within its neighborhood, and calculate the covariance moment of the point set , for the covariance matrix Perform eigenvalue decomposition, and the eigenvector corresponding to the minimum eigenvalue is the normal direction of the point; Step 103, calculate the normal change deviation between adjacent points, estimate the curvature of the point in the area, sort the points from small to large according to the curvature value, set the point with the smallest curvature value as the seed point, and calculate the normal difference between the seed point and the adjacent points; Step 104, setting a difference threshold. If the normal difference between the seed point and the neighboring point is less than the set difference threshold, and the curvature value is also less than the set difference threshold, the seed point is added to the seed point set and classified into one category. Step 105, removing the seed points classified into one category from the original point cloud, and growing the next area until the number of points remaining in the original point cloud is less than the minimum number of cluster points; Step 106, dividing the point cloud into different regions according to the curvature value and the normal direction, and segmenting the point cloud of the circular column of the building.
3. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 2, characterized in that: The expression of the covariance matrix is: ; in, is the covariance matrix, which is used to describe the distribution of points in the point cloud. is the number of neighbors of the considered point, is the 3D centroid of the nearest neighbor, For point The coordinate vector in space, is the mean vector of the points in the neighborhood; The expression of the eigenvalue decomposition is: ; in, is the covariance matrix eigenvalues, For the An eigenvector represents the main distribution trend of the point cloud in this direction. The eigenvalue is a non-negative real number, which represents the distribution variance of the point cloud in the direction of the eigenvector.
4. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 3, characterized in that: In step 2, the process of deleting gross errors from the point cloud of circular columns of the building is as follows: Step 201, input the point cloud of the circular column of the building, for each point in the point cloud , determine the set of spatial points in its neighborhood, and calculate the point To a point in its neighborhood The Euclidean distance of the point The average distance to the points in its neighborhood is denoted as , the point To a point in its neighborhood The expression of the Euclidean distance is: ; in, For point With point The Euclidean distance between The midpoint of three-dimensional space The coordinate vector of The midpoint of three-dimensional space The coordinate vector of Said point The expression for the average distance to points in its neighborhood is: ; in, For point The average distance to points in its neighborhood, For point The number of points in the neighborhood of ; Step 202, calculate point The standard deviation of the distance to points in its neighborhood , analysis point The discreteness of the distribution of the neighborhood points, the points The standard deviation of the distance to points in its neighborhood The expression is: ; in, For point The standard deviation of the distance to the points in its neighborhood, indicating that the point The degree of dispersion of point distribution within the neighborhood; Step 203, calculate all points The global mean of and standard deviation , and set a standard deviation multiple As the judgment threshold of noise points; Step 204, traverse the points in the point cloud , to determine whether it is a rough error point. The average distance to its neighboring points With the global mean The difference exceeds times the global standard deviation ,but For rough almost; Step 205: Delete all points identified as gross error points from the point cloud data.
5. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 4, characterized in that: All the points mentioned The global mean of The expression is: ; in, For all points The global average value of represents the average distance of the entire point cloud neighborhood points. is the total number of points in the point cloud, For point The average distance to points in its neighborhood; All the points mentioned The global standard deviation The expression is: ; in, is the global standard deviation, indicating that all points Relative to the global average The degree of discreteness.
6. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 5, characterized in that: In step 3, the process of obtaining the cross-section circle parameters is as follows: Step 301, traverse the point cloud after removing gross errors, for each point , read its three-dimensional coordinates ; Step 302, calculate all points The minimum and maximum values of the coordinates, and according to Minimum value of coordinate (elevation value) and maximum value , determine the elevation range ,in, , , , is the total number of points in the point cloud; Step 303: each point in the point cloud Project to On the horizontal plane, the projected point cloud is fitted with a circle, and the coordinates of the center of the circle are , the radius is ; Step 304: derive the radius of the circle according to the least squares principle and the center coordinates .
7. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 6, characterized in that: The least squares principle derives the radius of the circle and the center coordinates , whose expression is: ; ; in, are the coordinates of the center of the circle, is the radius of the circle.
8. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 7, characterized in that: In step 4, the process of drawing the three-dimensional model of the circular column of the target building is as follows: Step 401, using the cross-section circle parameters obtained from the point cloud data, including the center coordinates and radius , and extract the resulting elevation range ; Step 402, in the 3D modeling software, As the center of the bottom circle, Draw a circle with the same radius as the base radius. ,by As the center of the circle, draw another circle as the top surface of the cylinder; Step 403, using the "stretch" or "rotate" function of the 3D modeling software, Axis stretch to Create a cylinder with the height of Step 404 , compare the drawn three-dimensional cylindrical model with the original point cloud data to verify the accuracy and consistency of the model.
9. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 8, characterized in that: The process of verifying the accuracy and consistency of the model is: Step 4041, aligning the cylindrical model in the 3D modeling software and the original point cloud data correctly in the same coordinate system; Step 4042, for each point in the point cloud , calculate the shortest distance to the surface of the cylindrical model ; Step 4043, for all points Distance Perform statistical analysis and calculate the maximum error, minimum error, mean error, and standard deviation; Step 4044, set the error threshold, check whether the statistical error is within the set threshold, if the error of all points is within the set threshold, Less than or equal to the threshold , then the model accuracy meets the requirements; Step 4045, if the model accuracy is insufficient, return to the modeling process for adjustment, re-fit the cross-section circle, adjust the elevation range or modify the modeling parameters, repeat the process of verifying the model until the model accuracy meets the requirements, and output the verified three-dimensional model to the required format for further use.
10. The method for automatically building a 3D model of a building based on a three-dimensional point cloud according to claim 9, characterized in that: The shortest distance The calculation formula is: ; in, For point The shortest distance to the surface of the cylindrical model, For any point on the cylindrical surface coordinate, is the radius, is the coordinate of the center of the cylinder base; The expression of the maximum error is: ; The expression of the minimum error is: ; The expression of the average error is: ; The expression of the standard deviation is: .
Citation Information
Patent Citations
Ground object measurement method based on three-dimensional laser scanning technology
CN111707235A
Flexible cable identification and three-dimensional reconstruction method based on point cloud
CN112907735A
Urban three-dimensional automatic modeling method based on laser radar point cloud data
CN113487730A
Cylinder feature-based tree trunk point cloud efficient extraction method
CN114241217A
Processing and axis estimation method for film hole point cloud
CN116701969A
Cited By
Steel structure pre-assembly modeling method and system based on Internet of Things
CN118839414A
Method and equipment for measuring foundation bolt of overhead line system foundation and storage medium
CN119941823A
Road engineering visual modeling method and system based on BIM technology
CN120012198A
Three-dimensional digital adaptive modeling method for cultural relics
CN120580381A
Curved surface infrared thermal imaging detection temperature correction device and method based on laser array
CN121409421A
