Method for cleaning three-dimensional digital model data of ancient buildings based on bionic vision modeling
By using the watershed algorithm and distribution function mapping in biomimetic visual modeling, the problems of noise and distortion in the data cleaning of 3D digital models of ancient buildings were solved, and high-precision data repair and integrity restoration were achieved.
Patent Information
- Application Number
- CN202611391947.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-20
AI Technical Summary
Existing general data cleaning algorithms are insufficient to meet the cleaning requirements of 3D digital model data of ancient buildings, and cannot effectively remove noise and correct data distortion.
A biomimetic visual modeling approach is adopted, which uses the watershed algorithm for region segmentation, establishes a visual model, calculates the distribution function, and corrects low-value regions through data mapping to achieve high-precision data cleaning.
It achieves high-precision and high-efficiency restoration of the three-dimensional digital model of ancient buildings, removes noise and corrects data distortion, and fills in missing data areas.
Smart Images

Figure CN123141237A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digitization of traditional architectural heritage, specifically to a method for cleaning data of three-dimensional digital models of ancient buildings based on biomimetic visual modeling. Background Technology
[0002] Digital visual translation of traditional architectural heritage transforms physical buildings into digital formats, enhancing public accessibility to this heritage. This technology utilizes 3D scanning to accurately reconstruct historical buildings. 3D scanning employs laser or structured light emitters to capture the shape of an object's surface and, based on reflected light information, rapidly generates a 3D digital model, enabling high-precision and efficient reconstruction of ancient architectural structures.
[0003] During the digitization process, the technical team set up multiple scanning points around the building, pre-calculating the position, angle, and scanning range of each point to ensure data integrity. Then, the team continuously rotated the scanner, generating millions of data points. After data acquisition, the raw data underwent cleaning to remove noise introduced by various factors and correct any distorted data.
[0004] Data cleaning can be categorized into rule-based, statistical, and artificial intelligence-based algorithms. However, these general-purpose algorithms are not well-suited for cleaning 3D digital model data of ancient buildings. Summary of the Invention
[0005] The technical problem this invention aims to solve is that in the traditional process of digital visual translation of architectural heritage, it is necessary to clean the original data to remove noise introduced by various factors and fill in any blank areas that may exist in the data. However, common algorithms cannot meet the cleaning requirements of 3D digital model data of ancient buildings. This invention provides a data cleaning method for 3D digital models of ancient buildings based on biomimetic visual modeling. It adopts data cleaning that conforms to the human visual system, enabling high-precision and high-efficiency restoration of the structure of ancient buildings.
[0006] The technical solution adopted by this invention to solve its technical problem is: a method for cleaning data of three-dimensional digital models of ancient buildings based on bionic visual modeling, including: S1, using the watershed algorithm to segment the bionic visual region, and cleaning the entire set of data. Divided into visual regions S2. Establish a visual model for each region and calculate the distribution function. S3, Actual data distribution in the computational region , distribution function Modify the data in the low-value area; S4, calculate the distribution of the modified data. , the original data Mapping to distribution function S5, move each data point up; Replace with the mapped value To obtain the results for the entire region .
[0007] The three-dimensional digital model data The shape of the ancient building's surface is captured using laser or structured light emitters, and information about reflected light is collected to obtain data. The data obtained Used to generate three-dimensional digital models of ancient buildings.
[0008] The watershed algorithm in step S1 includes, but is not limited to, steps such as denoising / enhancing contrast, marking foreground / background data, generating elevation maps, priority queue diffusion, tracking pool conflicts, and marking regions and watersheds.
[0009] Step S2 establishes a model based on the data from each region, assuming a Gaussian distribution. Data for each visual region The distribution can be represented as In the formula, and These are the mean vector and covariance matrix of the region, respectively, obtained through calculation: .
[0010] Step S3 includes: S31, discretizing the data; S32, calculating the distribution of the discretized data. S33, in In low-value regions, the distribution function and data distribution For comparison, select the one that is higher than the distribution function. S34. Calculate the difference between these data and data within a certain range, and replace the data with the mean of the range with the data with the largest difference, until... The value is not higher than the distribution function. The value of .
[0011] Discretization involves dividing the data range into several discrete intervals and using the intermediate value to represent the data value falling within each sub-interval. After discretization, the number of data points in each interval is counted to obtain the data distribution. .
[0012] The The low-value range is selected based on actual needs, including but not limited to... , , and Range, etc.
[0013] The mapping is performed after data modification in the low-value region is completed, by comparing the data distribution. and distribution function This allows the data to be arranged and new values to be generated one by one, transforming the original data... Mapping to distribution function Above, that is correspond and Consistent distribution function The distribution of .
[0014] The mapping process prioritizes changing data that has a large difference from the surrounding data, which is obtained by calculating the difference from the surrounding data.
[0015] According to data distribution and distribution function The comparison results show that... and Some data are the same, and the mapping process aims to keep as much data unchanged as possible.
[0016] The beneficial effects of this invention are that biomimetic visual modeling can treat spatially adjacent and similar data as analytical primitives, while possessing characteristics such as nonlinearity, bandpass, multi-channel, and visual masking effects. Using biomimetic visual modeling for data cleaning can effectively ensure the integrity of architectural heritage data, accurately reflect the actual visual effect of the buildings, and effectively remove noise, correct data distortion, and fill in missing data. The cleaned 3D digital model of ancient buildings can reconstruct the structure of ancient buildings with high precision and efficiency. Attached Figure Description
[0017] Figure 1 This is a flowchart of the ancient building data cleaning method of the present invention.
[0018] Figure 2 This is a flowchart illustrating the modified low-value area data processing workflow of the ancient building data cleaning method of this invention.
[0019] Figure 3 This is a schematic diagram of the original data in an embodiment of the present invention.
[0020] Figure 4 This is the distribution function of an embodiment of the present invention. Line graph.
[0021] Figure 5 This is the actual data distribution in the embodiments of the present invention. picture.
[0022] Figure 6 This is a modified data distribution according to an embodiment of the present invention. picture.
[0023] Figure 7 This is data from an embodiment of the present invention. Mapping to distribution function The diagram above. Detailed Implementation
[0024] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0025] like Figure 1 As shown, the data cleaning method for the three-dimensional digital model of ancient buildings based on biomimetic visual modeling includes the following steps: S1, using the watershed algorithm to segment the biomimetic visual regions, and cleaning the entire set of data. Divided into visual regions S2. Establish a visual model for each region and calculate the distribution function. S3, Actual data distribution in the computational region , distribution function Modify the data in the low-value area; S4, calculate the distribution of the modified data. , the original data Mapping to distribution function S5, move each data point up; Replace with the mapped value To obtain the results for the entire region .
[0026] like Figure 2 As shown, step S3, modifying the low-value region data, includes: S31, discretizing the data; S32, calculating the distribution of the discretized data. S33, in In low-value regions, the distribution function and data distribution For comparison, select the one that is higher than the distribution function. S34. Calculate the difference between these data and data within a certain range, and replace the data with the mean of the range with the data with the largest difference, until... The value is not higher than the distribution function. The value of .
[0027] Discretization involves dividing the range of data values into several discrete intervals and using the intermediate value to represent the data value falling within each sub-interval. After discretization, the number of data points in each interval is counted to obtain the data distribution. .
[0028] As can be seen, a significant feature of this invention is the use of biomimetic visual modeling to clean the three-dimensional digital model data. The key step is to obtain the distribution function, and after data modification, the mapping from data to the distribution function is completed. This method can better showcase the visual effects of ancient buildings.
[0029] Example
[0030] This embodiment uses biomimetic visual modeling to clean the 3D digital model data of ancient buildings. For example... Figure 3 The image shows distance scan data for a partial facade of an ancient building. Higher grayscale values indicate greater distances. To facilitate subsequent operations, the distance data has been normalized. The following steps are... Figure 1 The following steps are used for data cleaning:
[0031] Step S1: Use the watershed algorithm to segment the biomimetic visual region, dividing the entire set of data. Divided into visual regions The K-means algorithm was used to segment the data into 11 regions. The following discussion focuses on these regions. For example.
[0032] Step S2, establish the region The visual model. Calculation. mean vector Covariance Matrix Finally, the distribution function is calculated using the following formula. : The final distribution function is as follows: Figure 4 As shown.
[0033] Step S3, calculate the region Actual data distribution ,like Figure 5 As shown. Definition for The low-value region. By comparison Figure 4 and Figure 5 You can see in Some data points in the low-value region are higher than the distribution function. The value of is calculated. The difference between these data points and the data within a range of the five adjacent data points is selected, and the data points with larger differences are replaced with the mean of the data within the range of the five adjacent data points, until . The value is not higher than the distribution function. The value. The modified data distribution is as follows: Figure 6 As shown. From Figure 6 As can be seen, in Within the range, The values are all less than or equal to The value of .
[0034] Step S4: Calculate the modified data distribution ,like Figure 6 As shown, and the original data Mapping to distribution function Above, such as Figure 7 As shown. The mapping is achieved by comparing the data distribution. and distribution function This allows the data to be arranged and new values to be generated one by one, transforming the original data... Mapping to distribution function Above, that is correspond and Consistent distribution function The distribution. From Figure 7 As can be seen, the data distribution before mapping and distribution function The differences are significant; after modifying the data, the data distribution and distribution function... Consistent.
[0035] Step S5, transfer each data Replace with the mapped value And the same method was used to obtain results for the other 10 regions.
[0036] This completes the data cleaning of the three-dimensional digital model of the ancient building.
[0037] Based on the preferred embodiments of the present invention described above, those skilled in the art can make various changes and modifications without departing from the technical concept of the invention. The technical scope of this invention is not limited to the contents of the specification, but must be determined by the scope of the claims.
Claims
1. A method for cleaning data of three-dimensional digital models of ancient buildings based on biomimetic visual modeling, comprising: S1. Use the watershed algorithm to segment the biomimetic visual region, dividing the entire set of data. Divided into visual regions ; S2. Establish a visual model for each region and calculate the distribution function. S3, Actual data distribution in the computational region , distribution function Modify the data in the low-value area; S4, calculate the distribution of the modified data. , the original data Mapping to distribution function S5, move each data point up; Replace with the mapped value To obtain the results for the entire region .
2. The method for cleaning ancient building data as described in claim 1, characterized in that, The three-dimensional digital model data The shape of the ancient building's surface is captured using laser or structured light emitters, and information about reflected light is collected to obtain data. The data obtained Used to generate three-dimensional digital models of ancient buildings.
3. The method for cleaning ancient building data as described in claim 1, characterized in that, The watershed algorithm in step S1 includes, but is not limited to, steps such as denoising / enhancing contrast, marking foreground / background data, generating elevation maps, priority queue diffusion, tracking pool conflicts, and marking regions and watersheds.
4. The method for cleaning ancient building data as described in claim 1, characterized in that, Step S2 establishes a model based on the data from each region, assuming a Gaussian distribution. Data for each visual region The distribution can be represented as In the formula, and These are the mean vector and covariance matrix of the region, respectively, obtained through calculation: .
5. The method for cleaning ancient building data as described in claim 1, characterized in that, Step S3 includes: S31, discretizing the data; S32, calculating the distribution of the discretized data. S33, in In low-value regions, the distribution function and data distribution For comparison, select the one that is higher than the distribution function. S34. Calculate the difference between these data and data within a certain range, and replace the data with the mean of the range with the data with the largest difference, until... The value is not higher than the distribution function. The value of .
6. The method for cleaning ancient building data as described in claims 1 and 5, characterized in that, Discretization involves dividing the data range into several discrete intervals and using the intermediate value to represent the data value falling within each sub-interval. After discretization, the number of data points in each interval is counted to obtain the data distribution. .
7. The method for cleaning ancient building data as described in claims 1 and 5, characterized in that, The The low-value range is selected based on actual needs, including but not limited to... , , and Range, etc.
8. The method for cleaning ancient building data as described in claim 1, characterized in that, The mapping is performed after the data modification in the low-value region is completed, by comparing the data distribution. and distribution function This allows the data to be arranged and new values to be generated one by one, transforming the original data... Mapping to distribution function Above, that is correspond and Consistent distribution function The distribution of .
9. The method for cleaning ancient building data as described in claims 1 and 8, characterized in that, The mapping process prioritizes changing data that has a large difference from the surrounding data, which is obtained by calculating the difference from the surrounding data.
10. The method for cleaning ancient building data as described in claims 1, 8, and 9, characterized in that, According to data distribution and distribution function The comparison results show that... and Some data are the same, and the mapping process aims to keep as much data unchanged as possible.
