Three-dimensional gaussian point cloud color optimization method and device and terminal
By performing clustering and color correction on the 3D Gaussian point cloud, the problem of color inconsistency caused by multi-view training was solved, and the color consistency of the 3D Gaussian point cloud model was optimized, improving the visual quality and realism of the model.
Patent Information
- Application Number
- CN202611710811.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-11-02
- Publication Date
- 2026-11-27
AI Technical Summary
In existing 3D Gaussian point cloud reconstruction, the differences in lighting and inconsistent exposure caused by multi-view image inputs result in Gaussian points on the same physical surface learning incompatible color parameters, leading to static texture mottled phenomena and affecting the visual quality and realism of the model.
By acquiring a 3D Gaussian point cloud, clustering and partitioning are performed based on the spatial location, normal vector, and color parameters of the Gaussian points. The color distribution of each partition is statistically analyzed to determine the color baseline. Within the color correction range, the color parameters of the Gaussian points are converged and corrected to achieve color consistency optimization.
It eliminates the texture mottled and light-dark interlacing phenomena caused by multi-view training, enabling the 3D Gaussian point cloud model to present a uniform and coherent color performance under any viewpoint, thereby improving the visual quality and realism of the model.
Smart Images

Figure CN123181685A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of 3D reconstruction and rendering technology, and in particular to a 3D Gaussian point cloud color optimization method, device and terminal. Background Technology
[0002] Current 3D Gaussian sputtering technology achieves efficient reconstruction and rendering by carrying position, normal vectors, and color parameters through a massive number of Gaussian points. However, under multi-view image input conditions, issues such as lighting differences, white balance shifts, and inconsistent exposure exist between different viewpoints. This causes spatially adjacent Gaussian points on the same physical surface to learn incompatible color parameters during network training. Existing post-processing methods focus on geometric optimization, such as outlier removal or density resampling, completely ignoring spatial consistency modeling in the color dimension. Therefore, 3D Gaussian point clouds commonly exhibit static texture fragmentation—interlacing of light and dark areas, chaotic color blocks, and texture breaks appear on continuous physical surfaces such as walls and floors, severely affecting the model's visual quality and realism. Summary of the Invention
[0003] In view of this, embodiments of this application provide a three-dimensional Gaussian point cloud color optimization method, device and terminal, which can realize the semantic partitioning of Gaussian points corresponding to spatially continuous physical surfaces in a three-dimensional Gaussian point cloud, and complete the convergence correction of the original color parameters within each partition based on its own color distribution characteristics, thereby fundamentally solving the problem of static texture mottled caused by multi-view training.
[0004] In a first aspect, embodiments of this application provide a method for optimizing the color of a three-dimensional Gaussian point cloud, including: A three-dimensional Gaussian point cloud is obtained; the three-dimensional Gaussian point cloud is composed of multiple Gaussian points, each Gaussian point having a spatial position, normal vector and color parameters; Based on the spatial location, normal vector, and color parameters of each Gaussian point, determine the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point; Based on the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point, clustering partitioning is performed on multiple Gaussian points to divide the Gaussian points corresponding to spatially continuous physical surfaces into the same partition, resulting in multiple semantic partitions. The color distribution of all Gaussian points within each semantic partition is statistically analyzed to determine the color reference for each semantic partition. The color correction range is determined based on the color dispersion of the corresponding semantic partition. Within the color correction range, the color parameters of the corresponding Gaussian points in the corresponding semantic partition are converged and corrected to the color reference of the semantic partition to output the color-corrected 3D Gaussian point cloud.
[0005] Secondly, embodiments of this application provide a three-dimensional Gaussian point cloud color optimization device, comprising: The data acquisition module is used to acquire a three-dimensional Gaussian point cloud; the three-dimensional Gaussian point cloud is composed of multiple Gaussian points, each Gaussian point having a spatial position, normal vector and color parameters. The metric determination module is used to determine the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point based on the spatial location, normal vector, and color parameters of each Gaussian point. The clustering partitioning module is used to perform clustering partitioning on multiple Gaussian points based on the spatial neighborhood distance between each Gaussian point, the normal vector consistency and the color similarity, so as to divide the Gaussian points corresponding to the spatially continuous physical surface into the same partition and obtain multiple semantic partitions. The color reference determination module is used to statistically analyze the color distribution of all Gaussian points within each semantic partition and determine the color reference of the semantic partition. The color correction module is used to determine the color correction range based on the color dispersion of the corresponding semantic partition. Within the color correction range, the color parameters of the corresponding Gaussian points in the corresponding semantic partition are converged and corrected to the color reference of the semantic partition to output the color-corrected 3D Gaussian point cloud.
[0006] Thirdly, embodiments of this application provide a terminal device, the terminal device including a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the above-described three-dimensional Gaussian point cloud color optimization method.
[0007] The embodiments of this application have the following beneficial effects: This application acquires a three-dimensional Gaussian point cloud, which is composed of multiple Gaussian points, each Gaussian point having a spatial position, normal vector, and color parameters; based on the spatial position, normal vector, and color parameters of each Gaussian point, the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point are determined; based on the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point, clustering and partitioning are performed on the multiple Gaussian points, dividing the Gaussian points corresponding to spatially continuous physical surfaces into the same partition, resulting in multiple semantic partitions; the color distribution of all Gaussian points within each semantic partition is statistically analyzed to determine the color reference of each semantic partition; the color correction range is determined based on the color dispersion of the corresponding semantic partition, and within this color correction range, the color parameters of the corresponding Gaussian points within the corresponding semantic partition are converged and corrected towards the color reference of the semantic partition to output the color-corrected three-dimensional Gaussian point cloud. This method achieves overall color coordination of Gaussian points within the same physical surface at the static level, eliminating texture mottle, light and dark interlacing, and color discontinuity caused by spatial proximity but inconsistent colors due to multi-view training. This allows the 3D Gaussian point cloud model to present a uniform, coherent color representation that conforms to the characteristics of a real surface under any fixed viewpoint. Attached Figure Description
[0008] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 A schematic diagram of the structure of a terminal device according to an embodiment of this application is shown; Figure 2 This paper illustrates a first flowchart of a three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application. Figure 3 This paper illustrates a second flowchart of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application. Figure 4 The diagram illustrates the third process of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application. Figure 5 The diagram illustrates the fourth step of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application. Figure 6 The fifth flowchart of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application is shown. Figure 7 The sixth flowchart of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application is shown. Figure 8 The seventh flowchart of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application is shown. Figure 9 The eighth flowchart of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application is shown. Figure 10 The ninth flowchart of the three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application is shown. Detailed Implementation
[0010] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0011] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0012] In the following text, the terms "comprising," "having," and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more combinations thereof. Furthermore, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0013] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0014] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0015] This application provides a method, apparatus, and terminal for optimizing the color of three-dimensional Gaussian point clouds, which can solve the problems of static texture blemishes and dynamic rendering flicker in three-dimensional Gaussian sputtering reconstruction models, and improve the visual quality of real-world three-dimensional reconstruction, digital twin scene modeling, and real-time immersive rendering.
[0016] This method processes a raw 3D Gaussian point cloud, composed of a massive number of 3D Gaussian points. Each Gaussian point carries spatial location, normal vector, covariance matrix, red, green, and blue color parameters, and opacity parameters. The method constructs semantic partitions corresponding to spatially continuous physical surfaces, independently performing color baseline statistics, adaptive convergence correction, edge confidence-guided protective adjustments on each partition, and adjusting the opacity parameter in conjunction with texture difference features. The final output is an optimized 3D Gaussian point cloud model with consistent color, stable rendering, and faithful detail. This model can be directly integrated into standard 3D rendering engines for real-time visualization without modifying existing 3D Gaussian sputtering training or rendering pipelines.
[0017] See Figure 1 , Figure 1 This is a schematic diagram of the structure of the terminal device 100 provided in the embodiments of this application. Figure 1 The terminal device 100 shown includes at least one processor 110, a memory 150, at least one network interface 120, and a user interface 130. The various components in the terminal device 100 are coupled together via a bus system 140. The bus system 140 is used to implement data exchange, control signal transmission, and power distribution between these components. The processor 110 is used to execute the computer program stored in the memory 150 to implement the three-dimensional Gaussian point cloud color optimization method provided in this embodiment of the application.
[0018] The processor 110 can be an integrated circuit chip with signal processing capabilities. The processor 110 can be a general-purpose processor, including at least one of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Network Processor (NP), Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0019] User interface 130 includes one or more output devices 131 for presenting processing results, examples of which include a high-resolution display and a virtual reality headset. User interface 130 also includes one or more input devices 132 for receiving user commands, examples of which include a keyboard, mouse, touchscreen, and 3D spatial positioning handle. Memory 150 includes volatile and non-volatile memory. The volatile memory is random access memory used to temporarily store 3D Gaussian point cloud data, spatial index structures, and intermediate calculation results. The non-volatile memory is a solid-state drive or flash memory used to persistently store the original model, optimized model, and configuration parameters. Network interface 120 supports Ethernet, Wi-Fi, 5G, or fiber optic communication for transmitting 3D Gaussian point cloud data and optimization commands in a distributed environment.
[0020] In some embodiments, the memory 150 stores an operating system 151, a network communication module 152, a data management module 153, and a 3D Gaussian point cloud color optimization device 154. The operating system 151 provides underlying resource scheduling and hardware abstraction services; the network communication module 152 is responsible for the serialization and encapsulation of 3D Gaussian point cloud data, fragmented transmission, and breakpoint resumption; the data management module 153 implements memory-mapped loading, streaming block processing, and GPU memory page swapping of the 3D Gaussian point cloud. The 3D Gaussian point cloud color optimization device 154 is a collection of logical functional modules, including a data acquisition module 1541, a metric determination module 1542, a clustering and partitioning module 1543, a color reference determination module 1544, and a color correction module 1545. These modules run on the processor 110, and data is exchanged between modules through memory sharing or message queues. Module division is based on functional cohesion and can be dynamically merged or split according to the computational load, without constituting a limitation on the physical boundaries of the modules.
[0021] The memory 150 can be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store computer programs, and the processor can execute the computer programs accordingly after receiving execution instructions.
[0022] In other embodiments, the three-dimensional Gaussian point cloud color optimization device 154 can be implemented in hardware. As an example, the device can be an application-specific integrated circuit in the form of a hardware decoding processor, which is programmed to execute the three-dimensional Gaussian point cloud color optimization method provided in the embodiments of this application. The hardware implementation includes, but is not limited to, shader programs on a graphics processor, pipelined logic units in a field-programmable gate array, or custom computing cores in a dedicated neural network acceleration chip.
[0023] The following examples illustrate the color optimization method for this 3D Gaussian point cloud.
[0024] Figure 2 A schematic flowchart of a three-dimensional Gaussian point cloud color optimization method according to an embodiment of this application is shown. Exemplarily, the three-dimensional Gaussian point cloud color optimization method includes steps S100-S500: Step S100: Obtain the 3D Gaussian point cloud.
[0025] The 3D Gaussian point cloud consists of multiple Gaussian points, each with a spatial location, normal vector, and color parameters.
[0026] In this step, the 3D Gaussian point cloud can be exported from the trained 3D Gaussian sputtering model and stored on a local storage device or a remote server. The system loads the model file through a standard file reading interface and parses all the Gaussian point data contained therein. Each Gaussian point has a spatial location, normal vector, red, green, and blue three-channel color parameters, opacity parameter, and covariance matrix.
[0027] The spatial location defines the geometric center of the Gaussian point in 3D space; the normal vector represents the orientation of the local surface to which the Gaussian point belongs; the red, green, and blue color parameters represent the color of the Gaussian point; the opacity parameter controls the visibility of the Gaussian point during rendering; and the covariance matrix represents the direction of extension and scale of the Gaussian point in 3D space. All Gaussian points are organized into a contiguous memory array, supporting direct access by index and batch operations on the neighborhood.
[0028] Understandably, this step provides complete, accurate, and addressable data input for subsequent multi-dimensional metric calculations based on spatial location, normal vectors, and color parameters, ensuring that the entire optimization process operates on the native parameter level of the 3D Gaussian point cloud, without relying on 2D images or implicit representations.
[0029] Step S200: Based on the spatial location, normal vector, and color parameters of each Gaussian point, determine the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point.
[0030] In this step, by establishing quantitative relationships between Gaussian points in three dimensions—three-dimensional spatial location, local surface orientation, and visual color representation—a data foundation is laid for accurately merging Gaussian points belonging to the same physical surface into the same semantic partition. This relationship is composed of three metrics: spatial neighborhood distance, normal vector consistency, and color similarity, all serving the core objective of identifying a set of Gaussian points that are spatially adjacent, geometrically continuous, and visually harmonious.
[0031] In some implementations, such as Figure 3 As shown, step S200 specifically includes steps S210-S220: Step S210: Construct a spatial index structure for the 3D Gaussian point cloud, and obtain the set of neighborhood Gaussian points for each Gaussian point through the spatial index structure.
[0032] The spatial index structure is used to organize the spatial coordinates of all Gaussian points, enabling neighborhood retrieval of any Gaussian point to be completed in logarithmic time, thus supporting efficient computing in massive point cloud scenarios.
[0033] In practical implementation, a KD-Tree can be used as the index structure. It recursively partitions the three-dimensional space, organizing Gaussian points into a hierarchical tree structure based on spatial coordinates. For each Gaussian point, its spatial location is used as the query point, and its K nearest neighbor Gaussian point set is retrieved from the spatial index structure. Here, K is a positive integer. The choice of K value must balance the integrity of the neighborhood coverage with computational efficiency. When K is less than 8, the neighborhood samples are too few, making it difficult to stably represent local surface characteristics. When K is greater than 24, it easily introduces interference points that are far away and unrelated to the current Gaussian point, affecting the accuracy of subsequent measurement calculations. Therefore, in this embodiment, the value of K can be between 8 and 24.
[0034] In this step, the set of K nearest Gaussian points obtained by retrieving through the three-dimensional spatial proximity index structure is a parameter set consisting of the K Gaussian points with the current Gaussian point as the center. Each Gaussian point in this set retains its original spatial position, normal vector and color parameters, thus providing a complete and addressable data foundation for performing the measurement calculation between adjacent Gaussian points in step S220.
[0035] Step S220: Based on the spatial location, normal vector, and color parameters of each Gaussian point in the neighborhood Gaussian point set, calculate the spatial neighborhood distance, normal vector consistency, and color similarity between adjacent Gaussian points.
[0036] This step mainly involves performing three metric calculations for each Gaussian point and each Gaussian point in its corresponding neighborhood Gaussian point set, with the three metrics having an execution order dependency relationship.
[0037] Among them, spatial neighborhood distance It is obtained by calculating the Euclidean distance between the center coordinates of the two Gaussian points, and the calculation formula is as follows: ;in,( , , Let be the spatial coordinates of the Gaussian point i. , , Let be the spatial coordinates of Gaussian point j. This distance is used to determine whether two points are within a sufficiently close spatial range and is a prerequisite for initiating subsequent joint determination; a spatial distance threshold Td is set, and only when... Only then do we continue calculating the normal vector consistency and color similarity of that point pair; among which, The value can be adaptively set according to the overall Gaussian point distribution density of the scene, and is set to 1.5 to 3 times the mean length of each principal axis of the covariance matrix of all Gaussian points in the scene; this setting method can ensure It can adapt to the density of point clouds under different reconstruction accuracies, avoiding the omission of adjacent points and preventing distant points from interfering with the partitioning results.
[0038] Normal vector consistency It is obtained by calculating the cosine of the angle between the normal vectors of the two Gaussian points. The calculation formula is as follows: ;in, Let i be the normal vector of the Gaussian point. Let be the normal vector of the Gaussian point j, and both are unit vectors; this value represents the magnitude of the angle between the orientations of the local surfaces to which the two points belong. The closer to 1, the more consistent the orientation of the two surfaces; a normal vector consistency threshold Tn is set, when... When two points are geometrically continuous, it is determined that they are continuous. The value range is 0.7-0.9; this range corresponds to a spatial angle of approximately 45 degrees to 26 degrees, which can both accommodate the small normal deviation of the real curved surface caused by sampling discreteness or reconstruction error, and effectively distinguish surfaces with significantly different orientations (such as vertical walls and horizontal ground).
[0039] Color similarity It is obtained by calculating the Euclidean distance between two Gaussian points in the red, green, and blue three-channel color space. The calculation formula is as follows: ;in, , , These represent the red, green, and blue color values of the Gaussian point i, respectively. , , These are the corresponding channel color values of the Gaussian point j; this distance directly quantifies the visual difference between the two points in the standard RGB color space; a color similarity threshold is set. ,when When two points are judged to be similar in color, then... The value should be able to retain the inherent texture and color gradation fluctuations of the object while effectively filtering out systematic color deviations caused by uneven lighting from multiple viewing angles, white balance shifts, or differences in sensor response. The specific value can be set as needed, such as 20-60.
[0040] It should be noted that the calculation and determination of the above three metrics have a strict execution order and logical dependency: the spatial neighborhood distance must be calculated first. The calculation is performed, and it is confirmed that the conditions are met. Based on this, the consistency of the normal vector is then calculated. and confirm that it meets the requirements. Color similarity is only performed when both of the above geometric conditions are met. Calculation and Comparison. If any geometric condition is not met, further processing of the point pair is terminated directly, and it is not included in subsequent cluster analysis. This design ensures that the point pairs participating in the final partitioning decision are candidate combinations with reasonable adjacency relationships in both spatial location and surface orientation, thereby guaranteeing that the semantic partitioning results strictly correspond to the real three-dimensional physical surface, rather than cross-surface aggregation caused solely by similar colors.
[0041] Step S300: Based on the spatial neighborhood distance, normal vector consistency and color similarity between each Gaussian point, perform clustering partitioning on multiple Gaussian points, and divide the Gaussian points corresponding to the spatially continuous physical surface into the same partition to obtain multiple semantic partitions.
[0042] In this step, the three metrics calculated in S200 are fused into a single comparable similarity value, which drives the clustering process to achieve automatic identification and segmentation of physical surfaces in three-dimensional space. This process ensures that the final semantic partitions are not only spatially proximate and geometrically continuous, but also visually consistent, thus providing physically consistent data units for subsequent color benchmark statistics and convergence correction.
[0043] In some implementations, such as Figure 4 As shown, step S300 specifically includes steps S310-S330: Step S310: Determine the comprehensive similarity between adjacent Gaussian points based on spatial neighborhood distance, normal vector consistency, and color similarity.
[0044] Determining the comprehensive similarity between adjacent Gaussian points includes weighted summation of the first similarity component corresponding to spatial neighborhood distance, the second similarity component corresponding to normal vector consistency, and the third similarity component corresponding to color similarity, according to preset weights; wherein the sum of the weights of the first similarity component and the second similarity component is greater than the weight of the third similarity component.
[0045] Specifically, for each pair of adjacent Gaussian points obtained above (i.e., each Gaussian point and each Gaussian point in its neighborhood set), a single similarity value is constructed that comprehensively reflects their spatial proximity, geometric orientation consistency, and visual color similarity. This comprehensive similarity is not a simple average of the three metrics, but a weighted fusion based on their priority of contribution to physical surface modeling: spatial neighborhood distance and normal vector consistency, as the core criteria for geometric continuity, have a weighted sum greater than that of color similarity, to ensure that the partitioning results first meet the constraints of the real three-dimensional structure, and then are further refined by color information.
[0046] Specifically, the overall similarity is determined in the following ways: The first similarity component corresponding to the spatial neighborhood distance can be calculated using the formula... The result is obtained through calculation, and it can be understood that the calculation result varies with... Increase and decrease, when equal When the value is 0, When the value approaches 0, the value approaches 1.
[0047] For the second similarity component corresponding to the consistency of normal vectors, directly use ,in The cosine of the angle between the normal vectors of adjacent Gaussian points; the range of this value is [ 1, 1], but according to the preconditions of step S220, the actual participants in this step's calculation are... All must meet ,exist When the value range is 0.7-0.9, The actual value range is [0.7, 1]; For the third similarity component corresponding to color similarity, according to the formula The calculations were performed to obtain the result, where, Let be the maximum possible Euclidean distance between any two points in the RGB color space, and let its value be . This calculation allows the color similarity component to be on a comparable order of magnitude to the other two components, thus facilitating subsequent weighted fusion.
[0048] Subsequently, the three similarity components are weighted and summed according to preset weights to obtain the comprehensive similarity between adjacent Gaussian points. The calculation formula is as follows: ;in, , , These are the weight coefficients corresponding to the color similarity component, the normal vector consistency component, and the spatial neighborhood distance component, respectively, and the sum of the three is 1. and The sum is greater than .
[0049] It should be noted that this overall similarity... Only in spatial neighborhood distance And the normal vectors are consistent The calculation is performed under the premise that both conditions are met; if any geometric condition is not met, no comprehensive similarity is generated, and the point pair does not participate in subsequent clustering. This constraint strictly corresponds to the decision logic in step S220 to ensure that the comprehensive similarity is generated only based on point pairs that satisfy spatial adjacency and geometric orientation consistency.
[0050] Step S320: A density-based clustering algorithm is used to cluster all Gaussian points according to the comprehensive similarity to obtain the initial partition.
[0051] In this step, the comprehensive similarity between adjacent Gaussian points calculated in step S310 is used as a similarity measure between samples and input into a density-based clustering algorithm to identify sets of Gaussian points with high-density clustering characteristics in the comprehensive similarity space. This algorithm can automatically discover cluster structures of arbitrary shapes and effectively distinguish between high-density and sparse regions, thereby avoiding bias caused by manually pre-setting the number of clusters.
[0052] In practical implementation, the DBSCAN algorithm can be used as a density-based clustering algorithm. This algorithm uses comprehensive similarity as the similarity criterion, and groups Gaussian points with a comprehensive similarity higher than a preset clustering threshold into the same cluster to form an initial partition. Each initial partition corresponds to a set of Gaussian points that have local consistency in three dimensions: spatial location, geometric orientation, and visual color.
[0053] Step S330: For partitions in the initial partition where the number of Gaussian points is less than the preset minimum cluster size, perform a cluster merging operation to merge the corresponding initial partitions into the partitions with the closest spatial distance, thereby obtaining semantic partitions.
[0054] In this step, all initial partitions output in step S320 are filtered. If the number of Gaussian points in an initial partition is less than the preset minimum cluster size, it is determined to be a scattered cluster that does not meet the density connectivity requirement, and a cluster merging operation is performed.
[0055] The minimum cluster size is determined as follows: the minimum number of neighborhood samples (MinPts) required for the core points in the DBSCAN algorithm is taken as the sum of the total number of 3D Gaussian point clouds. The larger of the product of the cluster size factor η and the minimum cluster size is the preset minimum cluster size. MinPts is an inherent parameter of the DBSCAN algorithm, and its value can be 3-10. The total number of Gaussian points in the 3D Gaussian point cloud; The small cluster ratio coefficient ranges from 0.001 to 0.005. This setting satisfies the theoretical requirements of the DBSCAN algorithm for density connectivity and adapts to the statistical stability requirements of point clouds of different sizes. For scenarios containing tens of thousands to tens of millions of Gaussian points, the actual value range of the preset minimum cluster size is 20-100 Gaussian points.
[0056] Furthermore, for initial partitions identified as scattered clusters, this embodiment calculates the Euclidean distance between their centroid positions and the centroid positions of all other initial partitions, and merges them all into the initial partition with the closest Euclidean distance. This merging strategy is based on the assumption of spatial continuity of physical surfaces. That is, although scattered clusters cannot independently form stable statistical units due to insufficient points, their spatial positions must be close to the real physical surface represented by a certain main partition. Therefore, merging into the main partition with the closest spatial distance can maximize the geometric and semantic consistency of the merged region and avoid color reference distortion caused by cross-surface erroneous aggregation. All partitions obtained after the cluster merging operation are the semantic partitions output in this step.
[0057] In some implementations, such as Figure 5 As shown, after obtaining the semantic partition, steps S340-S350 are also included: Step S340: Determine the color dispersion of the semantic partition based on the color parameters of each Gaussian point in each color channel within each semantic partition.
[0058] In this step, for each semantic partition of the above output, the dispersion of color parameter distribution of all Gaussian points within it across the red, green, and blue color channels is calculated. This dispersion can be used to quantify the consistency level of the semantic partition in visual representation, providing a basis for subsequent identification of whether there are non-noise color differences caused by physical phenomena such as reflections and shadow gradations.
[0059] Specifically, the degree of color dispersion can be obtained by calculating the color variance of each color channel: for the red channel, calculate the variance of the R values at all Gaussian points. For the green channel, calculate the variance of the G values at all Gaussian points. For the blue channel, calculate the variance of the B values at all Gaussian points. Subsequently, the average of the variances of the three channels is taken as the color dispersion of the semantic partition. This calculation method directly reflects the overall fluctuation range of color distribution within the partition; the larger the value, the more significant the color difference.
[0060] Step S350: When the color dispersion of any semantic partition exceeds the preset dispersion threshold, perform a sub-region division operation on the semantic partition according to the color parameters in the color representation space to obtain multiple sub-partitions, and treat each sub-partition as an independent semantic partition.
[0061] For sub-partitions where the color dispersion still exceeds the preset dispersion threshold, if the corresponding color difference is determined to originate from the physical reality of the viewpoint-related reflection properties, then based on the determination result, color convergence correction will not be performed on the Gaussian points in the current sub-partition.
[0062] In this step, the color dispersion degree of each semantic partition calculated in step S340 is compared with its corresponding preset dispersion threshold to identify semantic partitions that exhibit non-uniform color distribution due to reflection or lighting gradient interference, thereby triggering the sub-region division operation.
[0063] The preset discrete threshold is set as follows: For each semantic partition, the color variance of all Gaussian points within it is calculated in the red, green, and blue color channels. The median of the color variance values obtained for each color channel for all semantic partitions is taken. Then, the arithmetic mean of the medians of the red, green, and blue channels is taken to obtain the global color variance benchmark value. The preset discrete threshold is 2 to 3 times this benchmark value. This setting utilizes the characteristic that semantic partitions correspond to real physical surfaces, giving variance statistics a clear physical meaning. Using the median of the variance of each channel avoids a few abnormal partitions, such as pure black areas and highly reflective mirror surfaces, from affecting the overall benchmark. The 2–3 times magnification factor takes into account the color fluctuation range caused by common errors in multi-view acquisition (such as white balance shift and uneven exposure), while effectively identifying significant color differentiation caused by real optical phenomena such as mirror reflection and glass refraction. When the color dispersion of a semantic partition exceeds this threshold, it can be determined that there is optical interference within it that needs to be further distinguished through sub-region division.
[0064] When the color dispersion of a semantic partition exceeds a preset dispersion threshold, it is determined that the partition has reflective surfaces or lighting gradient interference, requiring further subdivision. At this point, within the color representation space composed of red, green, and blue channels, a sub-region division operation is performed on the partition based on the color parameters of each Gaussian point within the semantic partition. Specifically, a K-Means clustering algorithm can be used, with the number of clusters K ranging from 2 to 4, splitting a subset of Gaussian points with significant color differences on the same geometric surface into independent sub-partitions. Each sub-partition obtained after the sub-region division operation is considered an independent semantic partition. Subsequent steps will perform color benchmark statistics, convergence correction, and flicker suppression operations on each sub-partition, except for those sub-partitions determined to have view-dependent reflection attributes, whose color convergence correction is exempted as described below. It can be understood that the above processing ensures that Gaussian points of different reflective colors in scenes such as reflective glass curtain walls are not mixed in the mean calculation, and that shadow areas and illuminated areas are corrected independently, thereby avoiding the problem of mean confusion caused by excessive color differences and improving the physical authenticity of the color benchmark.
[0065] It should be noted that for sub-regions where the color dispersion still exceeds the preset dispersion threshold after sub-region division, it is further determined whether the color difference originates from the physical reality of view-related reflection properties. The determination is based on the following: if the color variance within a single sub-region still exceeds the preset dispersion threshold after sub-region division, it is considered that the color difference belongs to the view-related reflection properties inherent in the material of the object, such as specular reflection, specular highlights, and glass refraction, rather than the color noise deviation introduced by multi-view training. For such sub-regions, the subsequent color convergence correction step will exempt the adjustment of color parameters on their Gaussian points, retaining their original color parameters unchanged to maintain the real reflection effect.
[0066] In other implementations, for sub-regions determined to have view-dependent reflection attributes, the convergence correction coefficient of the sub-region is set to 0.02 to 0.08 to preserve the real reflection effect while taking into account the color coordination with adjacent sub-regions. In other implementations, the above determination can also adopt a more lenient criterion, that is, when the color variance in a single sub-region exceeds 0.8 times the preset discrete threshold after the sub-region division operation, it is determined that its color difference originates from view-dependent reflection attributes.
[0067] Step S400: Statistically analyze the color distribution of all Gaussian points within each semantic partition to determine the color reference for each semantic partition.
[0068] In this step, color distribution statistics are performed independently for each semantic partition of the output above. The goal is to obtain a stable reference center value that accurately reflects the dominant color tendency of the physical surface represented by that partition. This reference center value will serve as the anchor point for subsequent color convergence correction. Therefore, color points deviating from the main distribution due to sensor response anomalies, local exposure deviations, or accidental fluctuations during the training process must be excluded to ensure that the final benchmark accurately represents the typical color performance of the surface under normal lighting conditions. The statistical process consists of two stages: first, extreme deviation points in each color channel are identified and removed; then, the mean of each channel is calculated based on the remaining points to form a three-channel independent color benchmark.
[0069] Specifically, such as Figure 6 As shown, step S400 specifically includes steps S410-S420: Step S410: According to the preset outlier determination rules, outlier identification is performed on each color channel of Gaussian points in each semantic partition, and Gaussian points that are determined to be outliers in any color channel are removed.
[0070] In this step, outlier identification adopts a channel-independent, point-by-point judgment strategy.
[0071] Specifically, for each Gaussian point, the color values of its red, green, and blue channels are examined to see if they fall within a reasonable range defined by the main distribution of data for each channel. If any channel's color value is deemed abnormal, the Gaussian point is discarded entirely and no longer participates in subsequent color benchmark calculations. This method is based on the physical coupling of RGB color parameters. For example, a significant deviation in a single channel often indicates unreliable acquisition or training inaccuracies in the corresponding spectral band. If only the abnormal channel is modified while the remaining channels are retained, the overall consistency of the color triplet will be disrupted, leading to a shift in the benchmark center and affecting the accuracy of subsequent corrections.
[0072] In some implementations, such as Figure 7 As shown, outlier identification is performed for each color channel, including steps S411-S413: Step S411: Calculate the first quartile, the third quartile, and the interquartile range based on the color value set of each color channel.
[0073] In this step, for all Gaussian points within the current semantic partition, extract all R values of their red channels to form a set. , ,…, The set of all G values in the green channel , ,…, The set of all B values in the blue channel , ,…, Sort each set in ascending order and calculate its first quartile. Third and quartiles and interquartile range (IQR) = - . and The data subjects are collectively defined into a concentrated interval, and IQR quantifies the width of this interval. This calculation method is not sensitive to outliers and can stably characterize the typical dispersion of RGB color values in each channel, providing a reliable statistical benchmark for subsequent anomaly detection.
[0074] Step S412: The lower limit is the value obtained by subtracting the product of the preset multiple and the interquartile range from the first quartile, and the upper limit is the value obtained by adding the product of the preset multiple and the interquartile range to the third quartile, thus forming the abnormal judgment boundary of the corresponding color channel.
[0075] Specifically, in this step, the anomaly detection threshold for the red channel is: For the green channel, the threshold for determining anomalies is: For the blue channel, the anomaly detection threshold is: Where m is a preset multiple, ranging from 1.5 to 2. This range is determined based on the independent characteristics of the three channels of RGB color parameters and the systematic color deviation introduced by multi-view fusion in 3D Gaussian sputtering reconstruction: m=1.5 can cover the normal deviations caused by sensor response fluctuations and uneven local exposure; when m=2, it can accommodate the reasonable color changes caused by the reflective properties of the object's surface material under different observation angles.
[0076] Step S413: Determine any Gaussian point on any color channel whose color value exceeds the corresponding anomaly determination limit as an anomaly.
[0077] In this step, for the i-th Gaussian point within the current semantic partition, its... Is the value less than or greater than ; Check its Is the value less than or greater than ; Check its Is the value less than or greater than If any of the above conditions are met, the Gaussian point is determined to be an outlier and is removed from the set of valid points in the current semantic partition. The removal operation is implemented using logical notation, maintaining the original order of the Gaussian point sequence to facilitate accurate association of each Gaussian point with its original position, normal vector, and geometric parameters in subsequent steps. Since the preset minimum cluster size set in step S330 is 20-100 Gaussian points, and IQR anomaly detection only applies to the main data distribution of each channel, the actual number of remaining points after removal is usually still significantly higher than this lower limit, thus ensuring sufficient statistical stability for subsequent mean calculations.
[0078] Step S420: Based on the remaining Gaussian points after removing outliers, calculate the color mean of each color channel and use the color mean of each color channel as the color reference for semantic partitioning.
[0079] In this step, for the subset of Gaussian points output in step S413 after removing outliers, the arithmetic mean is calculated independently on its red, green, and blue color channels. Specifically, for the red channel, the arithmetic mean of all R values of the remaining Gaussian points is calculated. For the green channel, calculate the arithmetic mean of all G values for the remaining Gaussian points. For the blue channel, calculate the arithmetic mean of all B values for the remaining Gaussian points. .
[0080] Then calculate ( , , This serves as the color reference for the semantic partition. After removing unreliable sampling points, this color reference represents the central color tendency of the physical surface of the partition in the standard RGB color space, and is the sole anchor point for subsequent color convergence correction operations.
[0081] In this embodiment, an arithmetic mean is used because RGB color values are approximately uniformly distributed under 8-bit quantization, and the average value can more sensitively respond to the offset trend of the main color area, which is beneficial for achieving accurate calibration of the overall tone during the convergence correction stage. In some implementations, the color reference is stored in floating-point form with a precision of not less than 16 bits to ensure smooth color transitions and no quantization breaks in subsequent correction calculations.
[0082] Step S500: Determine the color correction range based on the color dispersion of the corresponding semantic partition. Within the color correction range, converge and correct the color parameters of the corresponding Gaussian points in the corresponding semantic partition to the color reference of the semantic partition, so as to output the color-corrected 3D Gaussian point cloud.
[0083] In this step, the color reference for each semantic partition determined in step S420 is... , , Based on the color dispersion of the partition calculated in step S340, a correction scope that adapts to its own color distribution characteristics is dynamically set, and progressive color calibration is performed on the Gaussian points within the partition within this scope. This design can avoid under-correction (insufficient correction when the dispersion is large) or over-correction (smoothing out the real texture when the dispersion is small) caused by using a globally fixed threshold, ensuring that the correction intensity is strictly matched with the inherent color characteristics of the partition.
[0084] Specifically, a greater degree of color dispersion indicates a wider color range within that partition, potentially corresponding to highly reflective materials or complex lighting areas. In this case, the correction range needs to be expanded to accommodate reasonable color variations. Conversely, a smaller degree of color dispersion indicates a high degree of color consistency within that partition. In this case, the correction range should be narrowed, focusing on fine-tuning only minor deviations to preserve the object's inherent texture and details. It should be noted that the entire correction process centers on a color reference, using proportional scaling to guide the color parameters of each Gaussian point towards the reference, ultimately constraining the correction result within a physically achievable color space. This ensures the visual realism and rendering compatibility of the output point cloud.
[0085] In some implementations, such as Figure 8 As shown, within the color correction range, the color parameters of the corresponding Gaussian points within the corresponding semantic partition are converged and corrected towards the color reference of the semantic partition, including steps S510-S540: Step S510: Determine the color correction range centered on the color reference of the semantic partition based on the color dispersion of the semantic partition.
[0086] In this step, based on the color dispersion of the semantic partition calculated in step S340, a color reference is determined. , , The three-dimensional correction region is defined. This region has independent boundaries on the red, green, and blue channels, and its width increases with the degree of color dispersion and decreases with the degree of color dispersion.
[0087] Specifically, the width of the correction range is positively correlated with the degree of color dispersion. That is, when the degree of color dispersion is high, it indicates that the color range within the partition is large, which may correspond to highly reflective materials or complex lighting areas. In this case, the correction range is set to be wider to accommodate reasonable physical color changes. When the degree of color dispersion is low, it indicates that the color of the partition is highly consistent. In this case, the correction range is set to be narrower, allowing only fine correction of minor acquisition deviations, thereby preserving the inherent texture and details of the object.
[0088] Specifically, the color correction range is centered on the color reference in the red, green, and blue color channels. The product of the standard deviation of the channel and the preset scaling factor is used as the correction half-width of each channel. That is, the correction half-width of the red channel is the product of the scaling factor and the standard deviation of the red channel, the correction half-width of the green channel is the product of the scaling factor and the standard deviation of the green channel, and the correction half-width of the blue channel is the product of the scaling factor and the standard deviation of the blue channel. Among them, the standard deviation of each channel is the standard deviation of the semantic partition in that color channel, and the scaling factor ranges from 1.2 to 2.5.
[0089] Step S520: Set a convergence correction coefficient that is negatively correlated with the degree of color dispersion of semantic partitions.
[0090] In this step, a convergence correction coefficient between 0 and 1 is set based on the color dispersion of the semantic partition. . The value of is negatively correlated with the degree of color dispersion; that is, for homogeneous planar partitions with low color dispersion, The value ranges from 0.6 to 0.9; for texture-rich partitions with high color dispersion, The value ranges from 0.1 to 0.4. This range ensures that sufficient convergence is applied in homogeneous regions to eliminate acquisition noise, while only gentle guidance is applied in textured regions to preserve the inherent color details and local fluctuations of the object.
[0091] Step S530: Within the color correction range, perform proportional convergence correction on the color parameters of each Gaussian point in the semantic partition using the convergence correction coefficient.
[0092] In this step, for the i-th Gaussian point within the semantic partition, its original color parameters are used... , , and color reference , , Based on this, a proportional convergence correction is performed, and the correction formula is as follows: ; ; ;in, , , These are the original red, green, and blue channel color values of the i-th Gaussian point, respectively. , , These are the mean values of the color reference for this semantic partition in the red, green, and blue channels, respectively; The convergence correction coefficient set for step S520 has a value range of greater than 0 and less than 1. , , These are the corrected color values for the corresponding channels.
[0093] In some implementations, such as Figure 9 As shown, the proportional convergence correction also includes an edge protection step, which specifically includes steps S531-S533: Step S531: Obtain the geometric scale parameters and neighborhood local color gradients of each Gaussian point within the semantic partition.
[0094] In this step, for each Gaussian point within the semantic partition, its covariance matrix is read, the principal axis eigenvalues are extracted, and their arithmetic mean is calculated as the geometric scale factor for that Gaussian point. The smaller the value of this factor, the more compact the distribution of the Gaussian point in three-dimensional space, and the more likely it is to be located at the edge of an object or in a fine texture; the larger the value, the more spread out its distribution, corresponding more to flat surface areas. Simultaneously, the set of neighboring Gaussian points is queried in the KD-Tree index structure. The differences between the maximum and minimum values of the red, green, and blue channels of all Gaussian points within this neighborhood are calculated, and the maximum value among these three is taken as the local color gradient of the neighborhood of the Gaussian point. It can be understood that the larger the value, the more intense the color transition around it, and the more likely it is to be located at a color boundary or texture outline.
[0095] Step S532: Calculate the edge confidence level corresponding to each Gaussian point based on the geometric scale parameter and the local color gradient of the neighborhood.
[0096] In this step, for the i-th Gaussian point within the semantic partition, we first analyze the local color gradient of its neighborhood. Normalization is performed to obtain the standardized gradient. The calculation formula is as follows: ;in, Let be the local color gradient of the neighborhood of the i-th Gaussian point, that is, the maximum change amplitude of the RGB color values in the set of its neighborhood Gaussian points; It represents the maximum value of the local color gradient in the neighborhood of all Gaussian points in this semantic partition.
[0097] At the same time, its geometric scale factor Normalization is performed to obtain a standardized scale. The calculation formula is as follows: ;in, is the geometric scale factor of the i-th Gaussian point, which is obtained from the principal axis eigenvalues of its covariance matrix; This represents the maximum value of the geometric scale factor for all Gaussian points in the semantic partition.
[0098] Then, the standardized gradient With standardization scale The edges of the Gaussian points are obtained by weighting the data with fixed weights and then mapping it to the 0-1 interval using the Sigmoid function. The calculation formula is as follows: ;in, This is the weight for color gradient fusion, with a value of 0.6; This is the geometric scale fusion weight, with a value of 0.4; The sigmoid steepness coefficient ranges from 5 to 10; 0.5 is a bias term that ensures the edge confidence approaches 0.5 when both the local color gradient and geometric scale factor are at moderate levels. This can be understood as follows: when the local color gradient and geometric scale factor of a Gaussian point are large (i.e., the Gaussian point is small and located in an edge detail), the edge confidence approaches 1; when the local color gradient and geometric scale factor are small (i.e., the Gaussian point is large and located in a flat region), the edge confidence approaches 0.
[0099] Step S533: Attenuate the convergence correction coefficient according to the edge confidence, and perform proportional convergence correction according to the attenuated convergence correction coefficient, so that the Gaussian point with higher edge confidence corresponds to a smaller convergence correction intensity.
[0100] In this step, for the i-th Gaussian point within the semantic partition, its edge confidence is used. Convergence correction coefficients Perform linear decay to obtain the convergence correction coefficient after decay. The calculation formula is as follows: .
[0101] Subsequently, with Replace the aforementioned proportional convergence correction formula Recalculate , , It is understandable that when the edge confidence is close to 1, the attenuated convergence correction coefficient is close to 0, and color correction is almost ineffective, thus avoiding excessive smoothing of object outlines, railings, and fine textures; when the edge confidence is close to 0, the attenuated convergence correction coefficient is close to the original convergence correction coefficient, and color convergence correction is performed normally.
[0102] Step S540: Perform interval clamping on the corrected color parameters to limit the corrected color parameters to the color correction range.
[0103] This step corrects the color parameters for each Gaussian point output in step S530 or S533. , , Boundary constraints are applied to its corresponding red, green, and blue color channels to ensure that it falls strictly within the color correction range of that channel.
[0104] The color correction range is determined by step S510, and its range on the red channel is as follows: The scope of the green channel is The range on the blue channel is ;in, , , These are the corrected half-widths for each channel, calculated using the following formula: ; ; ;in, , , These are the standard deviations of the semantic partition in the red, green, and blue channels, respectively. It should be noted that the standard deviation of the corresponding channel is obtained by taking the square root of the color variance of the semantic partition in that color channel, and the color variance is the same set of data obtained in step S340 for calculating the degree of color dispersion.
[0105] The specific clamping operation is as follows: If Less than Then Set as ; like Greater than Then Set as ;like Less than Then Set as ; like Greater than Then Set as ; like Less than Then Set as ;like Greater than Then Set as .
[0106] It is understood that this embodiment can ensure that the final output color parameters both obey the proportional convergence correction logic and are strictly within the physically reasonable range defined by the color distribution characteristics of the semantic partition itself, thereby eliminating abnormal values that exceed the RGB 8-bit representation range of 0 to 255 or violate the material reflection law, thus ensuring the compatibility and visual fidelity of the 3D Gaussian point cloud in the rendering engine.
[0107] In some implementations, such as Figure 10 As shown, after the color parameters of the Gaussian points within the semantic partition are converged and corrected to the color reference of the semantic partition, steps S600-S900 are also included: Step S600: Obtain the opacity parameters of each Gaussian point within the semantic partition.
[0108] In this step, the original stored opacity parameter Ori for each Gaussian point in the semantic partition is read. This parameter is a scalar value with a range of 0-1, and is used to control the visibility and weight contribution of the Gaussian point in the 3D Gaussian sputtering rendering process.
[0109] Step S700: Extract the texture difference features of the semantic partition; the texture difference features include the color dispersion of each color channel in the semantic partition, and the mean of the local color gradient in the neighborhood of the Gaussian point in the semantic partition.
[0110] In this step, the texture difference feature is composed of the average of the RGB three-channel color variances within the semantic partition and the mean of the local color gradients in the neighborhood. Specifically, the color variances of the semantic partition in the red, green, and blue channels can be directly obtained by taking the arithmetic mean of the calculation results from step S340. Then, the set of neighboring Gaussian points for each Gaussian point within the semantic partition is queried in the KD-Tree index structure. The magnitude of the RGB color value changes within each neighborhood is statistically analyzed, and the arithmetic mean of all neighborhood results is calculated to obtain the mean of the local color gradients in the neighborhood. Ultimately, the texture difference features of this semantic partition are represented as a two-dimensional vector. .
[0111] Step S800: Determine the flicker sensitivity coefficient of the semantic partition based on the texture difference characteristics.
[0112] Among them, the flicker sensitivity coefficient increases as the texture difference feature decreases.
[0113] In this step, based on texture difference features The flicker sensitivity coefficient, Sflicker, is negatively correlated with the magnitude of the vector. A smaller magnitude indicates a more uniform color distribution and smoother local color changes in the semantic region, suggesting a homogeneous planar area. This area is more susceptible to flickering due to dynamic changes in Gaussian point weights during viewpoint switching, hence a larger Sflicker value. Conversely, a larger magnitude indicates richer texture and more dramatic color changes in the semantic region, suggesting inherent flicker resistance, hence a smaller Sflicker value. This negative correlation can be achieved through a predefined mapping function to ensure the flicker sensitivity coefficient remains within the range of 0 to 1.
[0114] In some implementations, the preset mapping function can be: the flicker sensitivity coefficient equal to 1 minus the smaller of the ratio of the magnitude of the texture difference feature vector to the upper limit of the magnitude, where the upper limit of the magnitude is the maximum magnitude of the texture difference feature vector of each semantic partition in the entire 3D Gaussian point cloud; in other implementations, the preset mapping function can also adopt an exponential decay form, that is, the flicker sensitivity coefficient equals a power of the negative value of the product of the decay coefficient and the magnitude, with the natural constant as the base, where the decay coefficient ranges from 0.5 to 2.0. Both of the above methods satisfy the negative correlation between smaller texture difference features and larger flicker sensitivity coefficients, and the calculation results naturally fall within the range of 0 to 1.
[0115] Step S900: Based on the flicker sensitivity coefficient, adjust the opacity parameter of each Gaussian point within the semantic partition in a coordinated manner, so that the higher the flicker sensitivity coefficient of the semantic partition, the greater the degree to which the opacity parameter of the Gaussian point is reduced.
[0116] Specifically, the opacity parameters of each Gaussian point within the semantic partition are adjusted in a coordinated manner, including reducing the opacity parameters of each Gaussian point within the semantic partition by multiplying the preset adjustment coefficient, the flicker sensitivity coefficient, and the opacity parameter.
[0117] In this step, for the i-th Gaussian point within the semantic partition, its original opacity parameter is used. Based on the flicker sensitivity factor Sflicker, the adjusted opacity parameter is calculated as follows. : ;in, The preset adjustment coefficient has a value range of greater than 0 and less than 0.3; Sflicker is the flicker sensitivity coefficient of the semantic partition calculated in step S800. Let be the original opacity parameter for the i-th Gaussian point.
[0118] Then, to Enforce range constraints: If If less than 0, set to 0; if If the value is greater than 1, it is set to 1. This linkage adjustment mechanism reduces the opacity of some Gaussian points in a homogeneous plane region, weakening the fluctuation of their weight contribution when the viewing angle changes. This suppresses color flickering and screen jumps during dynamic roaming, while having minimal impact on the opacity of texture-rich areas, thus ensuring that the rendering effect of details is not lost.
[0119] This application's embodiments achieve a synergistic improvement in the static texture and dynamic rendering quality of a 3D Gaussian point cloud model by constructing a multi-dimensional color optimization system under semantic partitioning constraints. At the static level, a clustering partitioning mechanism based on physical surface continuity ensures that Gaussian points on the same wall, ground, or object surface are assigned to the same processing unit. Combined with IQR-based outlier removal and channel-adaptive color benchmark calculation, it effectively eliminates color blemishes, uneven brightness, and texture breaks caused by multi-view training, resulting in a uniform, natural, and realistic overall visual performance of the model. At the dynamic level, through the design of convergence correction range and convergence coefficient driven by color dispersion, coupled with edge confidence-guided local attenuation protection, it suppresses color jumps caused by weight switching in homogeneous areas while fully preserving object outlines, fine textures, and specular details. Furthermore, it introduces texture difference features linked to opacity adjustment, extending flicker suppression from the color domain to the rendering weight domain, significantly reducing screen flicker and color jitter during viewpoint roaming without sacrificing texture fidelity. The entire optimization process operates entirely on the native parameters of the 3D Gaussian point cloud, without relying on 2D image reconstruction or external priors. It is compatible with existing 3D Gaussian sputtering training and rendering pipelines, has strong engineering feasibility, and can be directly applied to practical business scenarios such as real-world 3D reconstruction, digital twin modeling, industrial scene visualization, and immersive real-time rendering.
[0120] The following describes the implementation of the three-dimensional Gaussian point cloud color optimization device provided in the embodiments of this application.
[0121] In some embodiments, such as Figure 1 As shown, the 3D Gaussian point cloud color optimization device includes: The data acquisition module 1541 is used to acquire a three-dimensional Gaussian point cloud. The three-dimensional Gaussian point cloud consists of multiple Gaussian points, each of which has a spatial position, normal vector, and color parameters.
[0122] The metric determination module 1542 is used to determine the spatial neighborhood distance, normal vector consistency, and color similarity between Gaussian points based on the spatial location, normal vector, and color parameters of each Gaussian point.
[0123] The clustering partitioning module 1543 is used to perform clustering partitioning on multiple Gaussian points based on the spatial neighborhood distance, normal vector consistency and color similarity between each Gaussian point, and to divide the Gaussian points corresponding to the spatially continuous physical surface into the same partition, thus obtaining multiple semantic partitions.
[0124] The color reference determination module 1544 is used to statistically analyze the color distribution of all Gaussian points within each semantic partition and determine the color reference of the semantic partition.
[0125] The color correction module 1545 is used to determine the color correction range based on the color dispersion of the corresponding semantic partition. Within the color correction range, the color parameters of the corresponding Gaussian points in the corresponding semantic partition are converged and corrected to the color reference of the semantic partition, so as to output the color-corrected 3D Gaussian point cloud.
[0126] In some implementations, the metric determination module is specifically used to: construct a spatial index structure for a 3D Gaussian point cloud, obtain a set of neighboring Gaussian points for each Gaussian point through the spatial index structure; and calculate the spatial neighborhood distance, normal vector consistency, and color similarity between adjacent Gaussian points based on the spatial location, normal vector, and color parameters of each Gaussian point in the set of neighboring Gaussian points.
[0127] In some implementations, the clustering partitioning module is specifically used to: determine the comprehensive similarity between adjacent Gaussian points based on spatial neighborhood distance, normal vector consistency, and color similarity; use a density-based clustering algorithm to cluster all Gaussian points according to the comprehensive similarity to obtain initial partitions; and perform a cluster merging operation on partitions in the initial partitions where the number of Gaussian points is less than the preset minimum cluster size, merging the corresponding initial partitions into the partitions with the closest spatial distance to obtain semantic partitions.
[0128] When determining the overall similarity between adjacent Gaussian points, the clustering partitioning module is also used to perform a weighted summation of the first similarity component corresponding to spatial neighborhood distance, the second similarity component corresponding to normal vector consistency, and the third similarity component corresponding to color similarity according to preset weights; wherein, the sum of the weights of the first similarity component and the second similarity component is greater than the weight of the third similarity component.
[0129] In some implementations, after obtaining semantic partitions, the clustering partitioning module is further used to determine the color dispersion of semantic partitions based on the color parameters of each Gaussian point in each color channel within each semantic partition. When the color dispersion of any semantic partition exceeds a preset dispersion threshold, a sub-region division operation is performed on the semantic partition in the color representation space based on the color parameters to obtain multiple sub-partitions, and each sub-partition is treated as an independent semantic partition. Among them, for sub-partitions in which the color dispersion still exceeds the preset dispersion threshold, if it is determined that the corresponding color difference originates from the physically real view-related reflection attributes, then based on the determination result, color convergence correction is not performed on the Gaussian points in the current sub-partition.
[0130] In some implementations, the color reference determination module is specifically used to perform outlier identification for each color channel of Gaussian points in each semantic partition according to a preset outlier determination rule, and remove Gaussian points that are determined to be outliers in any color channel; based on the remaining Gaussian points after removing outliers, calculate the color mean of each color channel, and use the color mean of each color channel as the color reference of the semantic partition.
[0131] When performing outlier identification for each color channel, the color reference determination module is also used to calculate the first quartile, the third quartile, and the interquartile range based on the color value set of each color channel respectively; the value obtained by subtracting the product of the preset multiple and the interquartile range from the first quartile is used as the lower limit, and the value obtained by adding the product of the preset multiple and the interquartile range to the third quartile is used as the upper limit, thus forming the outlier determination boundary for the corresponding color channel; any Gaussian point in any color channel whose color value exceeds the corresponding outlier determination boundary is determined as an outlier.
[0132] In some implementations, the color correction module is further configured to determine a color correction range centered on the color reference of the semantic partition based on the color dispersion of the semantic partition; wherein the color correction range increases with the increase of the color dispersion of the semantic partition; a convergence correction coefficient that is negatively correlated with the color dispersion of the semantic partition is set; within the color correction range, the color parameters of each Gaussian point in the semantic partition are proportionally converged and corrected using the convergence correction coefficient; and interval clamping is performed on the corrected color parameters to limit the corrected color parameters within the color correction range.
[0133] In some implementations, the color correction module is also used to obtain the geometric scale parameters and neighborhood local color gradients of each Gaussian point within the semantic partition; calculate the edge confidence corresponding to each Gaussian point based on the geometric scale parameters and neighborhood local color gradients; attenuate the convergence correction coefficient according to the edge confidence, and perform proportional convergence correction according to the attenuated convergence correction coefficient, so that the Gaussian point with higher edge confidence corresponds to a smaller intensity of convergence correction.
[0134] In some implementations, the color correction module is also used to obtain the opacity parameters of each Gaussian point within the semantic partition; extract the texture difference features of the semantic partition; the texture difference features include the color dispersion of each color channel within the semantic partition, and the mean value of the local color gradient in the neighborhood of the Gaussian point within the semantic partition; determine the flicker sensitivity coefficient of the semantic partition based on the texture difference features; wherein the flicker sensitivity coefficient increases as the texture difference features decrease; and adjust the opacity parameters of each Gaussian point within the semantic partition in a linked manner based on the flicker sensitivity coefficient, so that the higher the flicker sensitivity coefficient of the semantic partition, the greater the degree to which the opacity parameters of the Gaussian points are reduced.
[0135] Specifically, the opacity parameters of each Gaussian point within the semantic partition are adjusted in a coordinated manner, including reducing the opacity parameters of each Gaussian point within the semantic partition by multiplying the preset adjustment coefficient, the flicker sensitivity coefficient, and the opacity parameter.
[0136] It is understood that the device in this embodiment corresponds to the three-dimensional Gaussian point cloud color optimization method in the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described again here.
[0137] This application also provides a computer-readable storage medium for storing the computer program used in the aforementioned terminal device. For example, the computer-readable storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0138] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that, in alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0139] In addition, the functional modules or units in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0140] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0141] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for optimizing the color of a three-dimensional Gaussian point cloud, characterized in that, include: Obtain a 3D Gaussian point cloud; The three-dimensional Gaussian point cloud is composed of multiple Gaussian points, each of which has a spatial position, a normal vector, and color parameters. Based on the spatial location, normal vector, and color parameters of each Gaussian point, determine the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point; Based on the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point, clustering partitioning is performed on multiple Gaussian points to divide the Gaussian points corresponding to spatially continuous physical surfaces into the same partition, resulting in multiple semantic partitions. The color distribution of all Gaussian points within each semantic partition is statistically analyzed to determine the color reference for each semantic partition. The color correction range is determined based on the color dispersion of the corresponding semantic partition. Within the color correction range, the color parameters of the corresponding Gaussian points in the corresponding semantic partition are converged and corrected to the color reference of the semantic partition to output the color-corrected 3D Gaussian point cloud.
2. The three-dimensional Gaussian point cloud color optimization method according to claim 1, characterized in that, The step of determining the spatial neighborhood distance, normal vector consistency, and color similarity among Gaussian points based on their spatial location, normal vector, and color parameters includes: Construct a spatial index structure for the three-dimensional Gaussian point cloud, and obtain the set of neighborhood Gaussian points for each Gaussian point through the spatial index structure; Based on the spatial location, normal vector, and color parameters of each Gaussian point in the neighborhood Gaussian point set, the spatial neighborhood distance, normal vector consistency, and color similarity between adjacent Gaussian points are calculated respectively.
3. The three-dimensional Gaussian point cloud color optimization method according to claim 1, characterized in that, Based on the spatial neighborhood distance, normal vector consistency, and color similarity among the Gaussian points, clustering and partitioning are performed on multiple Gaussian points, dividing Gaussian points corresponding to spatially continuous physical surfaces into the same partition, resulting in multiple semantic partitions, including: Based on the spatial neighborhood distance, the normal vector consistency, and the color similarity, the comprehensive similarity between adjacent Gaussian points is determined. A density-based clustering algorithm is used to cluster all the Gaussian points according to the comprehensive similarity to obtain the initial partition; For partitions in the initial partition where the number of Gaussian points is less than the preset minimum cluster size, a cluster merging operation is performed to merge the corresponding initial partitions into the partitions with the closest spatial distance, thereby obtaining the semantic partitions.
4. The three-dimensional Gaussian point cloud color optimization method according to claim 1, characterized in that, After obtaining the semantic partition, the process further includes: The color dispersion of the semantic partition is determined based on the color parameters of each Gaussian point in each color channel within each semantic partition. When the color dispersion of any semantic partition exceeds a preset dispersion threshold, a sub-region division operation is performed on the semantic partition in the color representation space according to the color parameters to obtain multiple sub-partitions, and each sub-partition is regarded as an independent semantic partition. Specifically, for sub-partitions where the color dispersion still exceeds the preset dispersion threshold, if it is determined that the corresponding color difference originates from the physically real viewpoint-related reflection properties, then based on the determination result, color convergence correction will not be performed on the Gaussian points in the current sub-partition.
5. The three-dimensional Gaussian point cloud color optimization method according to claim 1, characterized in that, The step of statistically analyzing the color distribution of Gaussian points within each semantic partition and determining the color reference for each semantic partition includes: According to the preset outlier determination rules, outlier identification is performed on each color channel of Gaussian point in each semantic partition, and Gaussian points that are determined to be outliers in any color channel are removed. Based on the remaining Gaussian points after removing outliers, the color mean of each color channel is calculated, and the color mean of each color channel is used as the color reference of the semantic partition.
6. The three-dimensional Gaussian point cloud color optimization method according to claim 1, characterized in that, Within the color correction range, the color parameters of the corresponding Gaussian points in the corresponding semantic partition are converged and corrected towards the color reference of the semantic partition, including: Based on the color dispersion of the semantic partition, a color correction range centered on the color reference of the semantic partition is determined; wherein, the color correction range increases as the color dispersion of the semantic partition increases; Set a convergence correction coefficient that is negatively correlated with the degree of color dispersion of the semantic partition; Within the color correction range, the color parameters of each Gaussian point in the semantic partition are proportionally converged and corrected using the convergence correction coefficient. Range clamping is performed on the corrected color parameters to limit the corrected color parameters to the range of color correction.
7. The three-dimensional Gaussian point cloud color optimization method according to claim 6, characterized in that, The proportional convergence correction also includes an edge protection step: Obtain the geometric scale parameters and neighborhood local color gradients of each Gaussian point within the semantic partition; Based on the geometric scale parameters and the neighborhood local color gradient, calculate the edge confidence of each Gaussian point; The convergence correction coefficient is attenuated based on the edge confidence, and the proportional convergence correction is performed according to the attenuated convergence correction coefficient, so that the Gaussian point with higher edge confidence corresponds to a smaller intensity of convergence correction.
8. The three-dimensional Gaussian point cloud color optimization method according to claim 1, characterized in that, After correcting the color parameters of the Gaussian points within the semantic partition to converge to the color reference of the semantic partition, the method further includes: Obtain the opacity parameters of each Gaussian point within the semantic partition; Extract the texture difference features of the semantic partition; the texture difference features include the color dispersion of each color channel in the semantic partition, and the mean of the local color gradient in the neighborhood of the Gaussian point in the semantic partition. Based on the texture difference features, the flicker sensitivity coefficient of the semantic partition is determined; wherein the flicker sensitivity coefficient increases as the texture difference features decrease; Based on the flicker sensitivity coefficient, the opacity parameter of each Gaussian point within the semantic partition is adjusted in a coordinated manner, so that the higher the flicker sensitivity coefficient of the semantic partition, the greater the degree to which the opacity parameter of the Gaussian point is reduced.
9. A three-dimensional Gaussian point cloud color optimization device, characterized in that, include: The data acquisition module is used to acquire 3D Gaussian point clouds; The three-dimensional Gaussian point cloud is composed of multiple Gaussian points, each of which has a spatial position, a normal vector, and color parameters. The metric determination module is used to determine the spatial neighborhood distance, normal vector consistency, and color similarity between each Gaussian point based on the spatial location, normal vector, and color parameters of each Gaussian point. The clustering partitioning module is used to perform clustering partitioning on multiple Gaussian points based on the spatial neighborhood distance between each Gaussian point, the normal vector consistency and the color similarity, so as to divide the Gaussian points corresponding to the spatially continuous physical surface into the same partition and obtain multiple semantic partitions. The color reference determination module is used to statistically analyze the color distribution of all Gaussian points within each semantic partition and determine the color reference of the semantic partition. The color correction module is used to determine the color correction range based on the color dispersion of the corresponding semantic partition. Within the color correction range, the color parameters of the corresponding Gaussian points in the corresponding semantic partition are converged and corrected to the color reference of the semantic partition to output the color-corrected 3D Gaussian point cloud.
10. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the three-dimensional Gaussian point cloud color optimization method according to any one of claims 1-8.
