A method for reconstructing single-unit 3D models of city-level buildings based on point clouds

Through methods based on LiDAR point cloud and image data, the rapid and automated construction of 3D models of city-level buildings is achieved, solving the efficiency and accuracy problems in the reconstruction of 3D model of city-level scene buildings in the existing technology, and providing high-precision single-dimensional Solid model and object management capabilities to meet the application needs of smart cities.

CN116310192BActive Publication Date: 2024-08-23JIANGSU INST OF SURVEYING & MAPPING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211701380.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2024-08-23
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

Existing technology is difficult to realize the rapid automated construction and high-precision single reconstruction of 3D models of city-level scene buildings, and cannot meet the management and application needs of smart cities.

Method used

Using a method based on LiDAR point cloud and image data, by establishing a three-dimensional spatial mapping relationship between point cloud data and image data, the point cloud data is registered and segmented, and the building point cloud is extracted by combining geographical unit division and morphological operations. Carry out building roof surface segmentation and contour line extraction to achieve single reconstruction and texture mapping of the building's three-dimensional model.

Benefits of technology

It realizes the rapid reconstruction of 3D models of large-scale buildings in urban areas, reduces labor costs, improves the precision and application value of the model, and provides data support for refined management and scientific decision-making for smart cities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116310192B
    Figure CN116310192B
Patent Text Reader

Abstract

The present invention relates to a method for reconstructing a three-dimensional model of a city-level building based on point cloud, comprising: obtaining LiDAR point cloud data and image data, establishing a three-dimensional spatial mapping relationship between the point cloud data and the image data, registering the point cloud data and the image data, and then assigning the color information of the image data to the point cloud data; dividing the point cloud data into units based on geographic units, and establishing an index file for each unit data; dividing the point cloud into ground point cloud and non-ground point cloud, and obtaining the initial building point cloud from the non-ground point cloud using a height threshold; combining the visible light band difference vegetation index and echo characteristics to perform precise extraction of the initial building point cloud; segmenting the building roof surface, extracting the building outer contour line, and completing the reconstruction of the building three-dimensional model. The method of the present invention can realize the rapid reconstruction of a large-scale building three-dimensional model monomer in an urban area and the object-oriented management of the building model monomer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of reconstruction of three-dimensional model monomers of urban-level buildings in the natural resources industry and real-life three-dimensional China construction, and specifically involves massive laser point clouds, urban-level geographic scenes, three-dimensional model monomers of buildings, etc., and has the characteristics of automatic modeling, rapid reconstruction, and batch processing. Background Art

[0002] As an important part of the country's new infrastructure construction, the 3D model monomer data of buildings has a wide range of applications in the construction of real 3D China, natural resource management, economic and social development, etc. The 3D monomer reconstruction technology of buildings has become a research hotspot in the fields of photogrammetry, remote sensing and computer vision. With the continuous renewal of cities and the rapid development of information technology, urban management has become more and more refined, which has put forward higher requirements for the rapid and automatic construction technology of 3D model monomers of city-level scenes.

[0003] At present, the three-dimensional model of city-level scene buildings is mainly obtained by oblique photography technology. At the same time, image data is collected from different angles such as vertical tilt by aerial photography, and three-dimensional modeling is performed in combination with POS (positioning and attitude system) data. Three-dimensional modeling based on oblique photography technology belongs to regional modeling. The generated three-dimensional model is a continuous and irregular digital surface model of the entire area. The geographical elements on the model have the characteristics of "one skin", which cannot effectively manage each geographical object separately. It lacks functions such as visualization customization and object information query and analysis. It is impossible to manage and apply the three-dimensional model of buildings in the scene well. Further reconstruction of buildings is needed to fully utilize the advantages of three-dimensional data. In the construction of smart cities, high-precision three-dimensional modeling of buildings is required to highlight the characteristics and details of buildings, which puts higher requirements on the three-dimensional visualization and reconstruction of buildings. At present, the research content of the construction of building monomer models based on oblique photography is mainly to physically cut the overall scene three-dimensional model and separate different ground object monomer objects from it. This method has problems such as long preprocessing time, poor model effect, and obvious jaggedness. The obtained three-dimensional model has a low degree of refinement and cannot be applied to the construction of three-dimensional model monomers of city-level scene buildings.

[0004] In recent years, domestic and foreign scholars have carried out a lot of research work on the construction of building 3D models, and have achieved many results. However, the research objects have been limited to small-scale and relatively simple buildings, and many reconstructions require manual or human-computer interaction. The rapid automatic extraction of city-level scene buildings and the construction of high-LOD (multi-level of detail) level buildings have not been achieved, and the requirements of smart city development cannot be met. Therefore, there has been a great demand for the application of high-precision automatic reconstruction technology of building 3D models in urban scenes. Summary of the invention

[0005] The purpose of the present invention is to address the problems existing in the above-mentioned prior art, and to provide a point cloud-based method for reconstructing monomer three-dimensional models of urban-level buildings based on images and airborne LiDAR point clouds, so as to provide three-dimensional fine model data of buildings for the refined management, scientific decision-making and three-dimensional application of smart cities, which has important application value.

[0006] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:

[0007] The point cloud-based method for reconstructing a single body of a city-level building 3D model includes:

[0008] Obtain LiDAR point cloud data and image data, establish a three-dimensional spatial mapping relationship between the point cloud data and the image data, align the point cloud data and the image data, and assign the color information of the image data to the point cloud data;

[0009] Divide the point cloud data into units based on geographic units and create an index file for each unit data;

[0010] The point cloud is divided into ground point cloud and non-ground point cloud, and the point cloud with a height greater than a preset height threshold is extracted from the non-ground point cloud. The adjacent point clouds with similar geometric properties are merged as the target area. The target area is filtered based on the point cloud area, height difference threshold, intensity information and the building boundary point cloud being higher than the ground as constraints to obtain the initial building point cloud;

[0011] Combine the visible light band difference vegetation index and echo characteristics to extract the initial building point cloud and remove vegetation;

[0012] Segment the roof surface of the building, extract the outer contour of the building, regularize the obtained outer contour of the building using orthogonal constraint rules, and combine image data to assist in judging the building boundary, obtain the final contour of the multi-level building, assign the elevation information in the point cloud to the final contour of the multi-level building, and complete the reconstruction of the three-dimensional model of the building.

[0013] As a preferred implementation, the method further includes first normalizing the point cloud data, including:

[0014] Removal of gross error points: Compare the elevation value of a certain point with the elevation values ​​of each point in a given range. If it is significantly lower than other points, separate the point and use median filtering to remove gross error points.

[0015] Isolated point removal: Search for nearby points based on a set three-dimensional radius with a certain point as the center. If the number of points is less than the specified value, the point is judged as an isolated point and removed.

[0016] As a preferred implementation, the point cloud data and image data are registered in the following manner:

[0017] The coordinate systems of point cloud data and image data are unified, and data registration is performed based on the coordinate matching method. An affine transformation model is constructed between the point cloud data and the image data to establish a corresponding relationship.

[0018] As a preferred implementation, the method of assigning the color information of the image data to the point cloud data is:

[0019] According to the three-dimensional spatial mapping relationship between point cloud data and image data, the image pixel information where the point cloud position is located is obtained, and the image color information is assigned to the point cloud.

[0020] As a preferred implementation, the method of dividing the point cloud into ground point cloud and non-ground point cloud is:

[0021] The initial ground point cloud is obtained through morphological opening operation and grid division is performed. The lowest point of the grid is selected as the seed point for generating the starting irregular triangulated network. Regional growth is performed based on the seed point, and the regional growth result is used as the basic data for triangulated network filtering. Points in the point cloud that meet the preset threshold conditions are added to the irregular triangulated network that has been constructed. The irregular triangulated network is iteratively encrypted until all points are traversed and the original point cloud data is divided into ground points and non-ground points.

[0022] As a preferred implementation, after removing the vegetation, the extraction results are post-processed by area constraint and hole filling, including:

[0023] If the area of ​​a detected building object is smaller than the preset area threshold, it is identified as noise and removed; if the local radius of a building hole is smaller than the preset radius threshold, mathematical morphological operations are used to fill the hole.

[0024] As a preferred implementation, the roof surface of the building is divided in the following manner:

[0025] S1 randomly selects a point, uses the kd tree to create an index, searches for all points within a radius r with the point as the origin, and uses the least squares method to fit. If the fitting result is greater than the preset fitting threshold, reselect the point to create an index, and repeat S1 until the fitting result is less than or equal to the preset fitting threshold. The initial value of the plane parameter is determined based on the fitting result at this time.

[0026] S2 randomly selects three points and calculates the plane equation. It counts the number of point clouds that meet the distance threshold based on the distance from the point to the plane. It repeats the process several times and saves the result with the largest number of point clouds as the optimal plane. It further obtains multiple relatively independent building top surface point clouds.

[0027] As a preferred implementation, the method of extracting the outer contour line of the building is:

[0028] A two-dimensional coordinate point set is established based on the coordinates of the building roof surface. Any two points in the point set define a circle with a radius of α. A Delaunay triangulation is constructed based on the point set, and each edge of the triangle in the triangulation is judged:

[0029] If the length of a side of a triangle is greater than 2*α, delete the triangle;

[0030] If a circle with a radius of α passing through two points of an edge contains other points, delete the triangle;

[0031] After completing the above deletion judgment, the edge of the triangulated network is obtained on the obtained triangulated network to obtain the top surface contour line of the building.

[0032] As a preferred implementation, the method further comprises: after completing the reconstruction of the three-dimensional building model, performing texture mapping on the three-dimensional building model, including:

[0033] Roof surface texture mapping: Texture mapping is performed after spatial matching of the 3D model with the high-resolution image of the point cloud;

[0034] Side facade texture mapping: Count the angles of each line segment of the building's outline and divide it into two orthogonal directions. Calculate the sum of the lengths of all line segments in the two directions, mark the direction with the longer line segment as the front and back wall direction, and the other direction as the gable direction, and select different texture maps based on the direction differences.

[0035] As a preferred implementation, the roof surface texture map includes:

[0036] Get the spatial 3D information of a single face, calculate the coordinate range information of the face and get the image corresponding to the face, store it in the form of a spatial pairing group as input data for texture mapping;

[0037] Get the actual range and center point coordinates of the patch corresponding to the image, get the coordinate information of the relevant nodes of the patch, and perform subtraction translation operations on the patch according to the image coordinates, so that the maximum XY coordinate difference of the patch is within ±1000;

[0038] Perform texture mapping based on the face patch and its corresponding image information to complete texture mapping;

[0039] Perform additive translation operations on the patches uniformly to restore the spatial coordinates of the patches to the original coordinate information.

[0040] The method of the present invention has the following beneficial effects:

[0041] (1) It can realize the rapid reconstruction of 3D models of large-scale buildings in urban areas and improve work efficiency;

[0042] (2) It can realize the full process of automated construction of a single building 3D model, greatly reducing labor costs;

[0043] (3) It can realize the 3D reconstruction of the top details of buildings, give full play to the advantages of point cloud data, and broaden the application scope;

[0044] (4) It can realize the object-oriented management of building model entities, and provide data and technical support for the refined management, scientific decision-making, and three-dimensional application of natural resources, smart cities, and digital twins. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0046] The overall idea of ​​the present invention is as follows Figure 1 First, the LiDAR point cloud data and image data are obtained, and the point cloud data is denoised and registered. The geographic unit is used to divide the point cloud unit and establish the index. The point cloud is divided into ground point cloud and non-ground point cloud by integrating morphology, regional growth and progressive encryption irregular triangulated network filtering algorithm. The point cloud area, height difference threshold and echo information, visible light difference vegetation index, etc. are calculated to realize progressive building classification extraction. Based on the building roof point cloud, face detection, contour extraction and 3D reconstruction are performed, and the building is textured using orthophotos and standard textures, and the relevant attribute information is accessed to realize 3D monomer reconstruction and object management of the model.

[0047] (1) Data acquisition and preprocessing

[0048] Obtain point cloud and image data of urban areas and preprocess the data, mainly including point cloud normalization, spatial registration assignment, point cloud unit division, ground point cloud acquisition and other steps.

[0049] 1) Point cloud normalization

[0050] In the process of acquiring airborne LIDAR point cloud data, unnecessary abnormal point cloud noise will be caused due to reasons such as flying birds, laser multipath effects and scanning system errors, which need to be normalized.

[0051] Normalization processing mainly includes the removal of gross error points and isolated points. The removal of gross error points is done by comparing the elevation value of a certain point with the elevation value of each point in a given range. If the elevation value of the central point cloud data is significantly lower than the elevation value of other point cloud data, this point is separated and combined with median filtering to remove gross error points. The isolated point noise removal algorithm is used to search for adjacent points with a certain three-dimensional radius around the point. If the number of points is less than the specified point, it is judged as an isolated point and then removed.

[0052] 2) Spatial registration assignment

[0053] The main purpose of spatial registration is to assign the spectral information of the image to the point cloud data. It is divided into two steps. The first is the spatial registration of the point cloud image. First, the coordinate system of the point cloud and image data is unified, and an affine transformation model is built between the point cloud and the image to establish a corresponding relationship, thereby realizing the registration between the point cloud and the image data; the second is point cloud assignment: according to the spatial mapping relationship, after obtaining the image pixel information where the point cloud position is located, the color information of the image is assigned to the point cloud data to construct a three-dimensional point cloud city scene.

[0054] After spatial registration and assignment, the point cloud data will contain information that increases from four dimensions (X, Y, Z, I) to seven dimensions (X, Y, Z, I, R, G, B). Among them, (X, Y, Z) is the three-dimensional coordinates of the point cloud, I is the echo intensity value of the point cloud, and (R, G, B) is the spectral information value.

[0055] The specific process of point cloud assignment is: after data registration, the image pixel information of the point cloud position is obtained according to the spatial mapping relationship, and the color information of the image is assigned to the point cloud data. The assigned point cloud data will increase from four dimensions (X, Y, Z, I) to seven dimensions (X, Y, Z, I, R, G, B). Among them, (X, Y, Z) is the three-dimensional coordinate of the point cloud, I is the echo intensity value of the point cloud, and (R, G, B) is the spectral information value.

[0056] 3) Point cloud unit division

[0057] Due to the huge amount of point cloud data, the commonly used regular grid method for point cloud segmentation will result in incomplete building segmentation. Using geographic units such as blocks and main and secondary roads to divide the point cloud into units can reduce the amount of real-time processing data while retaining the accuracy of the original point cloud data and the integrity of the buildings. To facilitate subsequent dynamic scheduling and object management, the data and geographic units after unit division are stored, and a unit data index file is established. The subsequent dynamic scheduling and management of point cloud use are based on the index of unit division data.

[0058] 4) Effective point cloud division

[0059] Generally, the progressive encryption irregular triangulated network filtering algorithm is used to separate the ground point cloud and non-ground point cloud. This method has good adaptability to terrain, but because it uses the lowest laser point in each grid as the ground seed point, the number of ground seed points is small, and the effect of removing low buildings is poor. This paper integrates morphology, regional growth and progressive encryption irregular triangulated network filtering algorithm to achieve the acquisition of ground point cloud: first, the initial ground point cloud is acquired through morphological opening operation, the initial point cloud is gridded, and the lowest point of the grid is selected as the seed point for generating the starting TIN (irregular triangulated network); regional growth is performed based on the initial seed point, and the regional growth result is used as the basic data of triangulated network filtering. The points in the point cloud that meet the specific threshold conditions are added to the constructed TIN, and the TIN is continuously iterated and encrypted. The ground seed point of this method is obtained through morphological opening operation instead of using the lowest point in the defined grid. At the same time, regional growth is integrated in the progressive irregular triangulated network encryption algorithm, which is conducive to the accurate acquisition of ground point cloud; the specific algorithm steps are as follows:

[0060] ① Use morphological opening operation to obtain the initial ground seed points;

[0061] ② Based on the initial seed point, it is divided into a regular grid with unit spacing of a meter × a meter. The size of the grid a is based on the maximum building size in the area;

[0062] ③ Find the lowest point in each grid as the initial seed point, and use these initial seed points to generate a sparse irregular triangulated network TIN;

[0063] ④ By integrating the idea of ​​regional growth, regional growth is performed on the initial TIN point cloud, and the points that meet the threshold t in the neighborhood U(p,a) = {x|p-a<x<p+a} of the point element p in the initial TIN are directly added to the terrain, and the TIN is encrypted for the first time to reduce the subsequent workload;

[0064] ③ Based on the regional growth results, points that meet the conditions are continuously added to the TIN encryption. During the encryption process, if the vertical distance from a point to the nearest triangle and the maximum angle between the line from the point to the nearest vertex and the triangle are less than the set threshold, the point is added to the ground point set, and then the TIN is recalculated, and then the points in the non-ground point set are identified. This iterative process is encrypted layer by layer until all points are traversed and the original point cloud data is divided into ground points and non-ground points.

[0065] (2) Progressive building classification extraction

[0066] The non-ground point cloud contains the target objects of interest (buildings) and other feature objects (vegetation, cars, roads and bridges, etc.). After analyzing the data, it can be found that the height of the building is generally not less than 3 meters. The building is close to the high vegetation in height, and the top of the building is mostly one or more planes with regular shapes. Therefore, the non-ground points can be divided into lower points and higher points by setting the height threshold, where the higher point includes the building roof point, and then the point cloud area, height difference threshold and echo information are used to roughly extract the building point cloud, and then the visible light difference vegetation index is used to remove the vegetation that is misclassified into the building and perform post-processing optimization to obtain the final accurate building point cloud. Progressive classification extraction is mainly rough extraction of buildings and fine extraction of buildings.

[0067] 1) Rough extraction of buildings

[0068] First, based on point cloud filtering, non-ground points are divided into lower points and higher points by setting a height threshold, where the higher points include building roof points. By performing connectivity analysis on the higher point cloud, adjacent point clouds with similar geometric attributes are merged to construct a new target area. The point cloud area, height difference threshold, intensity information, and building boundary point cloud should be higher than the ground are used as constraints to filter the target area point cloud and obtain the initial building point cloud.

[0069] 2) Building Extraction

[0070] The tall vegetation around the building is similar in height to the building, and the two are often adjacent in space. It is difficult to separate the two using a simple height threshold method. VDVI (visible light band difference vegetation index) is used, and the calculation formula is: VDVI = (2×G – R - B) / (2×G + R + B), where R, G, and B represent the grayscale values ​​of the red, green, and blue bands of the image, respectively.

[0071] When the laser pulse hits the vegetation, two or more echoes will be generated, but the building will only have one echo. Therefore, the vegetation in the roughly extracted building point cloud is classified and removed by combining the VDVI features and the echo features.

[0072] The building extraction results generally contain a lot of small noise and holes, so they are post-processed by area constraint and hole filling. Buildings have a certain area, and the pixels of the same building are connected planes. Therefore, by setting an appropriate area threshold s, if the area of ​​a detected building object is less than s, it is considered to be noise removed. If the local radius of the building hole is less than r, the mathematical morphological operation is used to fill the hole to obtain the accurate point cloud of the building.

[0073] (3) 3D reconstruction of building monomers

[0074] The 3D reconstruction of building entities includes point cloud building 3D model reconstruction, texture mapping and production of 3D products.

[0075] 1) Reconstruction of single building 3D model

[0076] Since the airborne point cloud is acquired from the air, the top of the building is rich in information. Therefore, the 3D information of the top of the building can be reconstructed, and then the entire building can be reconstructed in 3D by combining the building's outline, elevation and other information. The specific steps include segmenting the building's roof surface and obtaining the building's outer contour line.

[0077] Building roof segmentation: First, randomly select a point P, use the topological relationship establishment algorithm kd tree (short for k-dimensional tree) to establish an index, then find points within the radius r of point P, and use the least squares method to fit all the found points. If the fitting result is greater than the set threshold, it means that the point cloud within the radius r of point P is irregularly distributed, with large differences, and the probability of being on the same plane is small. Discard the point P and repeat the selection until the initial value of the plane parameter is determined according to the fitting result.

[0078] On this basis, three points are randomly selected and the parameters of the plane equation determined by them are calculated. Then, according to the distance from the point to the plane, the number of point clouds that meet the distance threshold is counted. This is repeated several times, and the result of each time is compared with the previous one. The result with the largest number of point clouds is saved as the best result, and the best plane is obtained. Thus, multiple relatively independent building top surface point clouds calculated based on all P points are obtained.

[0079] Acquisition of the building's outer contour line: The building's roof surface coordinates form a two-dimensional coordinate point set S. Any two points in the S point set define a circle with a radius of α. When α is large enough, no point will be able to enter the circle defined by the two points. At this time, the two points are a line segment of the building's outer contour. All the line segments that meet the conditions form the building's outer contour line. Construct the point set S into a Delaunay triangulation, judge each edge of the triangle, and construct a Delaunay triangulation method, which can greatly reduce the time complexity of the Alpha-Shape algorithm, obtain more accurate building edges, and effectively overcome the jagged edge phenomenon of the contour extracted by the traditional Alpha-shapes algorithm. The accuracy, completeness, and quality are also better than the traditional Alpha-shapes algorithm.

[0080] The Delaunay triangulation can be regarded as multiple triangles. Take one of the triangles. If the length of a side in the triangle is greater than 2 times α, it means that the distance between the two points is too far and it is impossible to construct a circle that meets the requirements, then delete the triangle. If the circle passing through the two points of a certain edge and with a radius of α contains other points, it means that the two points are not peripheral contour points, then delete the triangle. Delete the above-mentioned triangle edges that do not meet the requirements, and find the edge of the triangulation on the obtained triangulation to obtain the top surface contour of the building. The obtained building contour is regularized using the orthogonal constraint rule, and the image is combined to assist in judging the building boundary, obtain the final contour of the multi-level building, and assign the elevation information in the point cloud to the building contour to achieve the reconstruction of the building's three-dimensional model.

[0081] 2) Re-baking of building model textures with precise mapping

[0082] The three-dimensional model of a building mainly includes the roof and side elevation of the building. Since the actual building components corresponding to the roof include the ridge, top platform and ancillary buildings, it is easy to cause a large workload for the top surface texture mapping and the texture mapping is not corresponding. In order to achieve efficient and automated texture mapping and truly reflect the building information, when accurately mapping the roof surface, it is necessary to spatially match the three-dimensional model with the high-resolution image of the point cloud at the same time to reduce the size of the baked texture file and speed up the texture baking speed. When mapping the side elevation, the angles of each line segment of the building outline are counted and divided into two orthogonal directions, and the lengths of all line segments in the two directions are calculated. The longer direction is marked as the front and rear wall direction, and the other direction is marked as the gable direction. Different texture mapping methods and mapping are used.

[0083] The specific steps are as follows:

[0084] ① Face traversal and splitting: Since the top surface graphics are composed of a set of faces with different normals, the spatial three-dimensional information of a single face is obtained by traversing and splitting the faces, and the coordinate range information of the face is calculated. The image information corresponding to the face is obtained through raster space data cutting and conversion technology, and stored in the form of spatial pairing groups as input data for texture mapping.

[0085] ② Optimization of patch coordinates: When the three-dimensional coordinates of the patch have large values, it is easy to cause excessive deviation of the texture mapping UV, and the texture file is easy to exceed the maximum storage capacity of a single texture file, causing texture mapping failure. The coordinate information of the patch needs to be translated and converted. By reading the actual range of the corresponding image, the center point coordinates of the image are obtained, and the coordinate information of the relevant nodes of the patch is read. The subtraction translation operation is uniformly performed so that the maximum XY coordinate difference of the patch is within ±1000, and the patch is stored after the translation operation is completed.

[0086] ③ Texture intelligent mapping: The purpose of intelligent mapping is to optimize the 3D space information file, compress the space occupied by data, set the 3D model to the editable state of the UV space system, create new empty texture graphic templates in batches, import the image files corresponding to the patches, set the name of the baked map automatically obtained by the material generation shader, specular reflectivity and other parameter variables, use the intelligent UV splitting algorithm to perform UV intelligent expansion on the patch graphics, use the Cycles renderer for UV coloring and rendering, and bake it into a small and fine texture map, and finally add and bind the new texture map to the model. After the mapping is completed, the 3D data of the completed texture map will be stored.

[0087] ④ Facet space repositioning: Restore the facet coordinate information of the model by reading the actual range of the corresponding image, obtaining the coordinates of the center point of the image, reading the coordinate information of the relevant nodes of the facet, and uniformly performing additive translation operations to restore the spatial coordinates of the facet to the original coordinate information.

[0088] ⑤ Side facade gable optimization mapping: Count the angles of each line segment of the building outline, divide it into two orthogonal directions, and calculate the sum of the lengths of all line segments in the two directions. The direction with the longer line segment is marked as the front and rear wall direction, and the other direction is marked as the gable direction. Automatically select different types of standard material textures for texture mapping of the side facade, and finally complete the texture mapping of the building model.

[0089] 3) Output of 3D model monomer results

[0090] By dynamically attaching relevant attribute information, object-oriented management of the model is achieved, and the three-dimensional model monomer results in different data formats are output according to application requirements.

[0091] By reading the vertex coordinates, texture corresponding coordinates, vertex normal vectors, faces and other information of the 3D model data, you can output OBJ files (Wavefront's standard 3D model files), MTL files (standard material library files), and also include the texture image files related to the materials.

[0092] By reading the vertex coordinates, texture corresponding coordinates, vertex normal vectors, faces and other information of the 3D model data, you can output an FBX file (Autodesk's cross-platform 3D creation and exchange format).

[0093] According to the cross-platform, network and mobile application service requirements of the 3D model, the geometry, texture and attribute information of the model data are obtained, and the distribution of the minimum bounding box of all model units in the geographic scene space is obtained. According to the multi-level organization rules of the terrain model, the triangular surface geometry of the distant coarse-detail level model is compressed according to a fixed compression ratio. The baking technology is used to replace the mid-ground to distant model textures with a low-resolution single texture, and a hierarchical directory tree is created to generate a 3D model tile set that complies with the OGC 3DTiles specification, which can be published as a service to provide visual and interactive 3D geographic information.

Claims

1. A method for reconstructing a single body of a city-level building three-dimensional model based on point cloud, characterized in that: include: Obtain LiDAR point cloud data and image data, establish a three-dimensional spatial mapping relationship between the point cloud data and the image data, align the point cloud data and the image data, and assign the color information of the image data to the point cloud data; Divide the point cloud data into units based on geographic units and create an index file for each unit data; The point cloud is divided into ground point cloud and non-ground point cloud, and the point cloud with a height greater than a preset height threshold is extracted from the non-ground point cloud. The adjacent point clouds with similar geometric properties are merged as the target area. The target area is filtered based on the point cloud area, height difference threshold, intensity information and the building boundary point cloud being higher than the ground as constraints to obtain the initial building point cloud; Combine the visible light band difference vegetation index and echo characteristics to extract the initial building point cloud and remove vegetation; Segment the roof of the building, extract the outer contour of the building, regularize the obtained outer contour of the building using the orthogonal constraint rule, and combine the image data to assist in judging the building boundary, obtain the final contour of the multi-level building, assign the elevation information in the point cloud to the final contour of the multi-level building, and complete the reconstruction of the building's three-dimensional model; the segmentation method of the building roof is: S1 randomly selects a point, uses the kd tree to create an index, searches for all points within a radius r with the point as the origin, and uses the least squares method to fit. If the fitting result is greater than the preset fitting threshold, reselect the point to create an index, and repeat S1 until the fitting result is less than or equal to the preset fitting threshold. The initial value of the plane parameter is determined based on the fitting result at this time. S2 randomly selects three points and calculates the plane equation. According to the distance from the point to the plane, the number of point clouds that meet the distance threshold is counted. The operation is repeated several times, and the result with the largest number of point clouds is saved as the best plane. Multiple relatively independent building top surface point clouds are further obtained. After the reconstruction of the building 3D model is completed, texture mapping is performed on the building 3D model, including: Roof surface texture mapping: Texture mapping is performed after spatial matching of the 3D model with the high-resolution image of the point cloud; Side facade texture mapping: Count the angles of each line segment of the building's outline and divide it into two orthogonal directions. Calculate the sum of the lengths of all line segments in the two directions, mark the direction with the longer line segment as the front and back wall direction, and the other direction as the gable direction, and select different texture maps based on the direction differences.

2. The method according to claim 1, characterized in that It also includes normalizing the point cloud data first, including: Removal of gross error points: Compare the elevation value of a certain point with the elevation values ​​of each point in a given range. If it is significantly lower than other points, separate the point and use median filtering to remove gross error points. Isolated point removal: Search for nearby points based on a set three-dimensional radius with a certain point as the center. If the number of points is less than the specified value, the point is judged as an isolated point and removed.

3. The method according to claim 1, characterized in that: The point cloud data and image data are registered in the following manner: The coordinate systems of point cloud data and image data are unified, and data registration is performed based on the coordinate matching method. An affine transformation model is constructed between the point cloud data and the image data to establish a corresponding relationship.

4. The method according to claim 1, characterized in that: The way to assign the color information of the image data to the point cloud data is: According to the three-dimensional spatial mapping relationship between point cloud data and image data, the image pixel information where the point cloud position is located is obtained, and the image color information is assigned to the point cloud.

5. The method according to claim 1, characterized in that The method of dividing the point cloud into ground point cloud and non-ground point cloud is: The initial ground point cloud is obtained through morphological opening operation and grid division is performed. The lowest point of the grid is selected as the seed point for generating the starting irregular triangulated network. Regional growth is performed based on the seed point, and the regional growth result is used as the basic data for triangulated network filtering. Points in the point cloud that meet the preset threshold conditions are added to the irregular triangulated network that has been constructed. The irregular triangulated network is iteratively encrypted until all points are traversed and the original point cloud data is divided into ground points and non-ground points.

6. The method according to claim 1, characterized in that After removing vegetation, the extraction results are post-processed by area constraint and hole filling, including: If the area of ​​a detected building object is smaller than the preset area threshold, it is identified as noise and removed; if the local radius of a building hole is smaller than the preset radius threshold, mathematical morphological operations are used to fill the hole.

7. The method according to claim 1, characterized in that The method of extracting the outer contour of the building is: A two-dimensional coordinate point set is established based on the coordinates of the building roof surface. Any two points in the point set define a circle with a radius of α. A Delaunay triangulation is constructed based on the point set, and each edge of the triangle in the triangulation is judged: If the length of a side of a triangle is greater than 2*α, delete the triangle; If a circle with a radius of α passing through two points of an edge contains other points, delete the triangle; After completing the above deletion judgment, the edge of the triangulated network is obtained on the obtained triangulated network to obtain the top surface contour line of the building.

8. The method according to claim 1, characterized in that The roof surface texture map includes: Get the spatial 3D information of a single face, calculate the coordinate range information of the face and get the image corresponding to the face, store it in the form of a spatial pairing group as input data for texture mapping; Get the actual range and center point coordinates of the patch corresponding to the image, get the coordinate information of the relevant nodes of the patch, and perform subtraction translation operations on the patch according to the image coordinates, so that the maximum XY coordinate difference of the patch is within ±1000; Perform texture mapping based on the face patch and its corresponding image information to complete texture mapping; Perform additive translation operations on the patches uniformly to restore the spatial coordinates of the patches to the original coordinate information.