Method and device for uniform color enhancement of a real scene three-dimensional model

By using a foreground-background separation method based on a pre-trained model, combined with contour wave transform and texture image analysis, the problems of noise interference and unreasonable block division in the color balancing process of real-world 3D models are solved, achieving a more stable and consistent color balancing effect and improving the visual quality and realism of the model.

CN123200802APending Publication Date: 2026-12-01WUHAN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510711170.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2026-12-01

AI Technical Summary

Technical Problem

Existing color balancing techniques for real-world 3D models cannot completely eliminate noise interference and unreasonable segmentation, resulting in poor stability and low applicability of the color balancing effect.

Method used

A foreground-background separation method based on a pre-trained model is adopted. By using contour wave transformation, texture image analysis and relative radiometric consistency processing, the background image is extracted and texture image backfilling is performed to ensure the uniformity of lighting and overall tone and reduce the impact of noise interference.

Benefits of technology

It improves the visual quality and realism of the real-world 3D model, avoids the "block effect," and ensures that the model presents consistent texture features and visual harmony as a whole.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123200802A_ABST
    Figure CN123200802A_ABST
Patent Text Reader

Abstract

This application relates to the field of color balancing processing technology for real-world 3D models, and particularly to a method and apparatus for enhancing color balancing processing of real-world 3D models. The method includes: loading a pre-trained model used in image segmentation; generating prompt information based on the approximate location points or bounding boxes of dark targets whose tonal differences satisfy preset conditions in the texture images of the 3D model to be processed and the texture image of the reference model; inputting the prompt information into the pre-trained model, and learning the local features and edge information of the image to generate foreground and background masks; and using these masks to exclude foreground information and extract background information from the pre-trained model. This solves the problem in related technologies where relative radiation consistency processing techniques struggle to completely eliminate noise interference and unreasonable block division, leading to poor stability and low applicability of color balancing effects in real-world 3D models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of color uniformity processing technology for real-world 3D models, and in particular to a method and apparatus for color uniformity enhancement processing of real-world 3D models. Background Technology

[0002] The construction of realistic 3D models faces numerous technical challenges in complex environments involving multi-source data fusion, including heterogeneity of acquisition equipment, variable weather conditions, complex terrain, and inconsistent aerial photography conditions. These factors lead to complex and varied anomalies in the models (inconsistent overall color tone, uneven brightness across large areas of the scene, and inconsistencies in color tone and brightness between local models and surrounding models), which restricts their application in the construction of Digital China.

[0003] In related technologies, current color balancing techniques for realistic 3D models generally involve separating the texture image corresponding to the model and performing overall light and color balancing on the texture image or relative radiometric correction on abnormal areas. Overall light and color balancing is mainly used to adjust the image globally, making the brightness and color of the image more uniform across the entire range. Relative radiometric correction can preserve radiometric information and make precise adjustments to abnormal areas. Through radiometric consistency processing technology of texture images, it corrects the lighting and color differences that occur in oblique aerial photography, thereby eliminating color unevenness caused by batch acquisition, weather, or exposure issues, making the model present a more natural and harmonious visual effect, while improving its realism and aesthetics, and providing a stable foundation for subsequent integration and display. Radiometric consistency processing technology generally improves the effect of color balancing by improving image filtering methods and parameters of the radiometric model.

[0004] However, current image radiometric consistency processing techniques, whether image filtering methods or model parameter improvements, treat the entire image as a processing unit, inevitably introducing unnecessary noise and interference. While these methods attempt to filter out noise and interference by adjusting filtering techniques and improving parameters, they also modify the image outside of noise, failing to completely eliminate its influence. Furthermore, the cutoff frequency and contrast stretching parameters of these methods are often only applicable to the current image, resulting in poor transferability of the color homogenization process. Current relative radiometric consistency processing techniques are beginning to consider innovative improvements from the perspective of image processing units, reducing the impact of noise on image tone by using block segmentation. However, when areas that are too bright or too dark exceed half the image's surface, if proper block segmentation is not used, the automatically selected reference image will not be representative. This leads to significant changes in the overall image tone, and the resulting image homogenization and color homogenization results in boundaries between blocks, leading to unstable color homogenization effects.

[0005] In summary, the relative radiation consistency processing technology in related technologies has problems such as poor stability and low applicability of the color uniformity effect of real-scene 3D models due to the difficulty in completely eliminating the influence of noise interference and unreasonable block division. It urgently needs to be improved. Summary of the Invention

[0006] This application provides a method and apparatus for color uniform enhancement processing of real-scene 3D models, in order to solve the problems of poor stability and low applicability of the color uniform effect of real-scene 3D models due to the difficulty in completely eliminating the influence of noise interference and unreasonable block division in the relative radiation uniform processing technology in related technologies.

[0007] The first aspect of this application provides a method for color uniform enhancement processing of a real-world 3D model, comprising the following steps: loading a pre-trained model for image segmentation; generating prompt information based on the approximate location points or bounding boxes of dark targets whose tonal differences satisfy preset conditions in the texture image of the 3D model to be processed and the texture image of the reference model; inputting the prompt information into the pre-trained model, and learning the local features and edge information of the image to generate foreground and background masks, so as to exclude foreground information and extract background information from the pre-trained model based on the foreground and background masks.

[0008] Through the above technical solution, the embodiments of this application can learn the local features and edge information of the image based on the pre-trained model, generate foreground and background masks, and then extract the background image in a targeted manner to ensure the uniformity of lighting and overall tone. Thus, in the process of color uniform enhancement, it not only preserves the details and textures, but also ensures the consistency of the global visual effect, reducing the risk of affecting the overall image quality due to adjusting dark targets.

[0009] Optionally, in one embodiment of this application, after extracting the background information, the method further includes: The background images of the three-dimensional model to be processed and the reference model are subjected to contour wave transformation to obtain contour wave transformation data; texture image analysis is performed based on the contour wave transformation data to obtain texture analysis data; relative radiometric consistency processing based on foreground and background separation is performed based on the texture analysis data to obtain processed data; texture image backfilling is performed based on the processed data to obtain the reconstructed three-dimensional model.

[0010] Through the above technical solutions, the embodiments of this application can distinguish high-frequency and low-frequency information by performing contour wave transformation on the background images of the model to be processed and the reference model; utilize the texture image analysis algorithm of the real scene 3D model to achieve unified analysis of texture features of different tile levels within the scene range to meet different rendering and display requirements; adopt a relative radiation consistency processing algorithm for multi-scale textures to solve problems such as dark textures, uneven colors, and poor saturation of real scene 3D models caused by multi-source data, sensors, and lighting conditions, ensuring that the model presents consistent texture features as a whole and improving visual coordination; and utilize a texture image backfilling algorithm to backfill and reconstruct the processed texture image into an OSGB format real scene 3D model, avoiding obvious breaks or discontinuities and improving the visual quality and realism of the real scene 3D model.

[0011] Optionally, in one embodiment of this application, performing contour wave transformation on the background images of the three-dimensional model to be processed and the reference model to obtain contour wave transformation data includes: performing contour wave transformation on the background images of the three-dimensional model to be processed and the reference model based on a preset wavelet basis function to obtain multi-scale sub-band coefficients, and extracting low-frequency sub-bands and high-frequency sub-bands to obtain the contour wave transformation data.

[0012] Through the above technical solution, the embodiments of this application can separate high-frequency and low-frequency information in an image through contour wave transformation, use high-frequency subbands to represent local detail features such as edges, noise and texture, and then further remove high-frequency noise through filtering or thresholding, while retaining the main texture information of the background. Compared with traditional image filtering methods and model parameter improvement methods, it eliminates the influence of noise interference while ensuring that the image outside the noise is not modified, thus improving the transferability of the color balancing process.

[0013] Optionally, in one embodiment of this application, the step of performing texture image analysis based on the contour wave transformation data to obtain texture analysis data includes: extracting tile pyramid data based on a preset quadtree indexing mechanism and the contour wave transformation data; analyzing each tile of the tile pyramid data to obtain internal texture features, establishing an index between the tile and the texture features, and stitching the tile data together to obtain the texture analysis data.

[0014] Through the above technical solution, the embodiments of this application can utilize the texture image analysis algorithm of the real scene 3D model to uniformly analyze the texture features of different tile levels within the scene range, accurately load and analyze the tile data required for the current area, with the upper-level tile providing global context information and the lower-level tile providing more refined local data, ensuring the richness and accuracy of details, and meeting different rendering and display needs.

[0015] Optionally, in one embodiment of this application, the step of performing relative radiometric consistency processing based on foreground and background separation on the texture analysis data to obtain processed data includes: inspecting the radiometric difference values ​​of the low-frequency parts of the reference image and the image to be processed, and establishing a radiometric difference model; using the radiometric difference model to correct and adjust the low-frequency part of the texture analysis data obtained by contour wave transformation based on foreground and background separation, and determining the processed data.

[0016] Through the above technical solutions, the embodiments of this application can solve the problems of dark texture, uneven color, and poor saturation of real-world 3D models caused by multi-source data, sensors, and lighting conditions by performing relative radiation consistency processing on multi-scale texture data, thereby ensuring that the model presents consistent texture features as a whole and improving visual harmony.

[0017] Optionally, in one embodiment of this application, the step of backfilling the texture image based on the processed data to obtain the reconstructed 3D model includes: extracting texture data and geometric data based on the processed data and performing formatting processing, wherein, during the update process, the corresponding geometric data and texture information of the areas that need to be adjusted or optimized are replaced.

[0018] Through the above technical solution, the embodiments of this application can backfill the processed texture image and reconstruct it into a real-world 3D model in OSGB (Ordnance Survey Great Britain) format by backfilling the texture image, thereby avoiding obvious breaks or discontinuities and improving the visual quality and realism of the real-world 3D model.

[0019] A second aspect of this application provides a real-scene 3D model color uniformity enhancement processing device, comprising: a loading module for loading a pre-trained model for image segmentation; a generation module for generating prompt information based on the approximate location points or rectangles of dark targets whose tonal differences satisfy preset conditions in the texture image of the 3D model to be processed and the texture image of the reference model; and a processing module for inputting the prompt information into the pre-trained model, learning the local features and edge information of the image, generating foreground and background masks, and excluding foreground information and extracting background information from the pre-trained model based on the foreground and background masks.

[0020] Through the above technical solution, the embodiments of this application can learn the local features and edge information of the image based on the pre-trained model, generate foreground and background masks, and then extract the background image in a targeted manner to ensure the uniformity of lighting and overall tone. Thus, in the process of color uniform enhancement, it not only preserves the details and textures, but also ensures the consistency of the global visual effect, reducing the risk of affecting the overall image quality due to adjusting dark targets.

[0021] Optionally, in one embodiment of this application, it further includes: a transformation module, used to perform contour wave transformation on the background images of the three-dimensional model to be processed and the reference model to obtain contour wave transformation data; a parsing module, used to perform texture image parsing based on the contour wave transformation data to obtain texture parsing data; a consistency processing module, used to perform relative radiation consistency processing based on foreground and background separation based on the texture parsing data to obtain processed data; and a backfilling module, used to perform texture image backfilling based on the processed data to obtain the reconstructed three-dimensional model.

[0022] Through the above technical solutions, the embodiments of this application can distinguish high-frequency and low-frequency information by performing contour wave transformation on the background images of the model to be processed and the reference model; utilize the texture image analysis algorithm of the real scene 3D model to achieve unified analysis of texture features of different tile levels within the scene range to meet different rendering and display requirements; adopt a relative radiation consistency processing algorithm for multi-scale textures to solve problems such as dark textures, uneven colors, and poor saturation of real scene 3D models caused by multi-source data, sensors, and lighting conditions, ensuring that the model presents consistent texture features as a whole and improving visual coordination; and utilize a texture image backfilling algorithm to backfill and reconstruct the processed texture image into an OSGB format real scene 3D model, avoiding obvious breaks or discontinuities and improving the visual quality and realism of the real scene 3D model.

[0023] Optionally, in one embodiment of this application, the transformation module includes: an extraction unit, used to extract tile pyramid data based on a preset quadtree indexing mechanism and the contour wave transform data; and a parsing unit, used to parse each tile of the tile pyramid data to obtain internal texture features, establish an index between the tile and the texture features, and stitch the tile data together to obtain the texture parsing data.

[0024] Through the above technical solution, the embodiments of this application can separate high-frequency and low-frequency information in an image through contour wave transformation, use high-frequency subbands to represent local detail features such as edges, noise and texture, and then further remove high-frequency noise through filtering or thresholding, while retaining the main texture information of the background. Compared with traditional image filtering methods and model parameter improvement methods, it eliminates the influence of noise interference while ensuring that the image outside the noise is not modified, thus improving the transferability of the color balancing process.

[0025] Optionally, in one embodiment of this application, the consistency processing module includes: a modeling unit, which establishes a radiation difference model based on the low-frequency part quality inspection radiation difference values ​​of the reference image and the image to be processed; The adjustment unit is used to correct and adjust the low-frequency part of the texture parsing data obtained by contour wave transformation based on foreground and background separation using the radiation difference model, and to determine the processed data.

[0026] Through the above technical solutions, the embodiments of this application can solve the problems of dark texture, uneven color, and poor saturation of real-world 3D models caused by multi-source data, sensors, and lighting conditions by performing relative radiation consistency processing on multi-scale texture data, thereby ensuring that the model presents consistent texture features as a whole and improving visual harmony.

[0027] Optionally, in one embodiment of this application, the backfill module is used to extract texture data and geometric data based on the processed data and perform formatting processing, wherein, during the update process, the corresponding geometric data and texture information of the areas that need to be adjusted or optimized are replaced.

[0028] Through the above technical solution, the embodiments of this application can backfill the processed texture image and reconstruct it into an OSGB format real-world 3D model by backfilling the texture image, avoiding obvious breaks or discontinuities, and improving the visual quality and realism of the real-world 3D model.

[0029] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the real-scene 3D model color uniform enhancement processing method as described in the above embodiments.

[0030] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for color uniform enhancement processing of a real-world 3D model.

[0031] A fifth aspect of this application provides a computer program product that stores a computer program that, when executed by a processor, implements the above-described method for color uniformity enhancement processing of a real-world 3D model.

[0032] This application embodiment can separate the foreground and background texture images of the 3D model to be processed and the reference model texture image based on the foreground-background separation method, extract the background image, and then perform contour wave transform, texture image analysis, relative radiometric consistency processing, and texture image backfilling on the background image in sequence to obtain a reconstructed real-scene 3D model. The targeted extraction of the background image based on foreground-background separation ensures the uniformity of lighting and overall color tone. The contour wave transform removes noise interference and retains the main texture information of the background, ensuring the consistency of the model in overall presentation, improving the overall appearance of the model, and alleviating the "blocking effect" in image processing. Thus, it solves the problems of poor stability and low applicability of the color uniformity effect of the real-scene 3D model caused by the relative radiometric consistency processing technology in related technologies, which is difficult to completely eliminate noise interference and unreasonable block division.

[0033] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0034] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart of a method for color uniform enhancement processing of a real-scene 3D model according to an embodiment of this application; Figure 2 This is a flowchart illustrating a method for separating the foreground and background of a real-world 3D model texture image based on SAM (Segment Anything Model) according to a specific embodiment of this application. Figure 3 This is a flowchart illustrating a specific embodiment of a real-world 3D model color uniform enhancement processing method according to this application. Figure 4 This is a schematic diagram of the structure of the real-scene 3D model color uniform enhancement processing device according to an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0035] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0036] The following describes a method and apparatus for color uniform enhancement processing of a real-scene 3D model, with reference to the accompanying drawings. Addressing the problem mentioned in the background section regarding the relative radiometric consistency processing technique, which suffers from poor stability and low applicability in color uniformation of real-scene 3D models due to the difficulty in completely eliminating noise interference and unreasonable segmentation, this application provides a method for color uniform enhancement processing of a real-scene 3D model. In this method, foreground and background separation is performed on the texture image of the 3D model to be processed and the texture image of the reference model, extracting the background image. Then, based on the background image, contour wave transform, texture image analysis, relative radiometric consistency processing, and texture image backfilling are sequentially performed to obtain a reconstructed real-scene 3D model. The targeted extraction of the background image based on foreground and background separation ensures the uniformity of lighting and overall tone. Contour wave transform removes noise interference and retains the main texture information of the background, ensuring consistency in the overall model presentation, improving the overall visual appeal of the model, and alleviating the "blocking effect" in image processing. Therefore, this solves the problem of poor stability and low applicability in color uniformation of real-scene 3D models caused by the relative radiometric consistency processing technique, which suffers from poor stability and low applicability due to the difficulty in completely eliminating noise interference and unreasonable segmentation.

[0037] Specifically, Figure 1 This is a flowchart illustrating a method for color uniform enhancement processing of a real-world 3D model provided in an embodiment of this application.

[0038] like Figure 1 As shown, the color uniformity enhancement processing method for this real-world 3D model includes the following steps: In step S101, a pre-trained model for image segmentation is loaded.

[0039] Understandably, pre-trained models are an important technique in deep learning. They allow a base model to be pre-trained using large-scale data, and then fine-tuned or directly applied to adapt to specific tasks. Pre-trained models include, but are not limited to, autoencoder models, supervised pre-trained models, and multimodal models, and the specific type can be selected by relevant technical personnel based on the actual scenario.

[0040] As one possible approach, embodiments of this application may select the SAM model as a pre-trained model. This model can achieve automatic image segmentation with a small amount of prompting information (such as selecting a region or a point). A suitable SAM version is selected based on the image characteristics to balance processing speed and segmentation accuracy.

[0041] This application embodiment can load a pre-trained model so that it can be used to receive real-world 3D model texture image information and generate useful information.

[0042] In step S102, a prompt message is generated based on the approximate location points or rectangles of dark targets whose tonal differences in the texture images of the three-dimensional model to be processed and the reference model meet the preset conditions.

[0043] Those skilled in the art should understand that in 3D modeling and computer graphics, 3D model texture images and reference model texture images are two key concepts. A texture image is a 2D image mapped onto the surface of a 3D model, used to define the model's visual attributes such as color, material, and light reflection, making it more realistic during rendering. A reference texture image is a baseline image used to guide texture generation or matching, typically used for texture synthesis (such as AI-generated textures that match the style) and texture repair (repairing damaged or low-resolution textures).

[0044] In actual implementation, the embodiments of this application can provide initial prompts to the SAM model through manual annotation. The approximate location points or rectangles of dark targets such as windows and vegetation with large tonal differences in the texture image of the 3D model to be processed and the texture image of the reference model are input into the SAM model as prompts. Then, the SAM model is used to automatically generate foreground and background masks.

[0045] The embodiments of this application can generate location cues (points or rectangles) for dark targets (such as shadows, stains, and specific material areas) based on the tonal differences between the texture image of the 3D model to be processed and the texture image of the reference model. This can significantly improve the efficiency of texture restoration, style transfer, or defect detection.

[0046] In step S103, the prompt information is input into the pre-trained model, and the local features and edge information of the image are learned to generate foreground and background masks. Based on the foreground and background masks, foreground information is excluded from the pre-trained model and background information is extracted.

[0047] A foreground mask can be understood as pixels used to identify foreground objects in an image. In video surveillance, foreground objects typically refer to moving objects such as pedestrians and vehicles. Foreground masks help separate the target of interest from the background by marking the pixels of these moving objects. A background mask, on the other hand, can be understood as pixels used to identify background regions. In video processing, the background is a relatively static part, such as buildings and trees; background masks help extract these stable background elements from video frames.

[0048] Specifically, the SAM model can generate foreground and background masks by learning the local features and edge information of the image; the foreground mask corresponds to the dark target area segmented by the SAM model, while the background mask covers the main body part of the 3D model after excluding the dark target.

[0049] This application embodiment can extract background information by excluding foreground information from the model. The background image represents the overall color tone, lighting environment, and other characteristics of the image. The background image can determine the overall color tone of the 3D model and has an important impact on the overall visual effect of the 3D model. By using the above-mentioned SAM-based foreground and background separation method, the background image is extracted in a targeted manner, ensuring the unity of lighting and overall color tone. Thus, in the process of color uniform enhancement, both detailed textures are preserved and the consistency of the global visual effect is guaranteed, reducing the risk of affecting the overall image quality due to adjusting dark targets.

[0050] like Figure 2 As shown, in some embodiments, the texture image to be processed can be obtained first; then the SAM pre-trained model can be loaded; and then initial prompts can be provided to the SAM model through manual annotation. The prompts can be input into the loaded SAM pre-trained model to complete the separation of the foreground image and the background image.

[0051] Optionally, in one embodiment of this application, after extracting the background information, the method further includes: Contour wave transform is performed on the background images of the model to be processed and the reference model to obtain contour wave transform data; texture image analysis is performed based on the contour wave transform data to obtain texture analysis data; relative radiometric consistency processing based on foreground and background separation is performed based on the texture analysis data to obtain processed data; texture image backfilling is performed based on the processed data to obtain the texture image of the 3D model to be processed and the texture image of the reference model.

[0052] Among them, contour wave transform can be understood as a technology specifically designed to capture geometric structures such as edges, contours, and textures in images; texture image analysis can be understood as the process of extracting, quantifying, and understanding the structure, patterns, and semantic information of texture images through computational methods and visual techniques; relative radiometric consistency processing aims to eliminate or reduce the differences in radiometric (brightness) between images from multiple time periods, multiple sensors, or multiple scenes, so that different images have comparable radiometric values ​​on the same ground features; texture image backfilling can be understood as a technology for intelligent repair of missing, damaged, or occluded areas in texture images. Its core objective is to automatically generate visually coherent and semantically reasonable filling content based on the texture and structural features of known areas in the image.

[0053] Specifically, in this embodiment, the reconstruction of the real-world 3D model can be achieved by sequentially performing contour wave transformation, texture influence analysis, relative radiation consistency processing, and texture influence backfilling on the background images of the 3D model to be processed and the reference model.

[0054] This application embodiment can distinguish high-frequency and low-frequency information by performing contour wave transformation on the background images of the model to be processed and the reference model; it utilizes the texture image analysis algorithm of the real scene 3D model to achieve unified analysis of texture features of different tile levels within the scene range to meet different rendering and display requirements; it adopts a relative radiation consistency processing algorithm for multi-scale textures to solve problems such as dark textures, uneven colors, and poor saturation in the real scene 3D model caused by multi-source data, sensors, and lighting conditions, ensuring that the model presents consistent texture features as a whole and improving visual coordination; and it can use a texture image backfilling algorithm to backfill and reconstruct the processed texture image into the OSGB format real scene 3D model, avoiding obvious breaks or discontinuities and improving the visual quality and realism of the real scene 3D model.

[0055] Optionally, in one embodiment of this application, a contour wave transform is performed on the background images of the three-dimensional model to be processed and the reference model to obtain contour wave transform data. This includes: performing a contour wave transform on the background images of the background images of the three-dimensional model to be processed and the reference model based on a preset wavelet basis function to obtain multi-scale sub-band coefficients, and extracting low-frequency sub-bands and high-frequency sub-bands to obtain contour wave transform data.

[0056] Among them, wavelet basis functions include, but are not limited to, orthogonal wavelets, bioorthogonal wavelets, and continuous wavelets, which can be selected and set by relevant technical personnel according to specific scenarios.

[0057] In a specific embodiment, contour wave transformation of the background images of the 3D model to be processed and the reference model can be achieved through the following steps: Step S1.1: Contour Wave Transform Initialization Selecting appropriate wavelet basis functions to perform contourlet transform on the background images of the model to be processed and the reference model is a method of dual-scale, multi-directional wavelet transform that can effectively separate high-frequency and low-frequency information in an image.

[0058] Step S1.2: Transformation Decomposition The pure background image is subjected to contour wave transform to obtain multi-scale sub-band coefficients. The low-frequency sub-band represents the global features of the image, such as brightness and tone distribution; the high-frequency sub-band represents local details such as edges, noise and texture.

[0059] Step S1.3. Separation of high-frequency and low-frequency information Low-frequency subbands are extracted for overall background tone and illumination characteristics analysis, while high-frequency subbands are extracted for noise detection and texture feature analysis. High-frequency noise is further removed by filtering or thresholding to preserve the main texture information of the background.

[0060] This application embodiment can separate high-frequency and low-frequency information in an image through contour wave transform, using high-frequency subbands to represent local detail features such as edges, noise, and texture, and then further remove high-frequency noise through filtering or thresholding, while retaining the main texture information of the background. Compared with traditional image filtering methods and model parameter improvement methods, it eliminates the influence of noise interference while ensuring that the image outside the noise is not modified, thus improving the transferability of the color balancing process.

[0061] Optionally, in one embodiment of this application, texture image analysis is performed based on contour wave transformation data to obtain texture analysis data, including: extracting tile pyramid data based on a preset quadtree indexing mechanism and contour wave transformation data; analyzing each tile of the tile pyramid data to obtain internal texture features, establishing an index between the tile and the texture features, and stitching the tile data together to obtain texture analysis data.

[0062] Understandably, tile pyramid data is a hierarchical and tiled spatial data organization model used for the efficient storage, management, and visualization of large-scale geospatial data (such as maps, remote sensing images, or 3D scenes).

[0063] In some embodiments, texture image parsing can be implemented through the following steps: Step S2.1: Quadtree Index Structure and Tile Management In texture image parsing algorithms, the first thing to be processed is the root node tile. The root node tile is the starting node of the quadtree structure, which contains macroscopic information of the 3D model. Its function is to provide an overview of the entire model space and serve as an index and data carrier for other tiles.

[0064] The quadtree structure resembles an inverted tree, with each level's nodes representing tile regions of different resolutions. Each tile contains data about its corresponding geographic location. The quadtree partitioning allows for a hierarchical and recursive data structure, improving data storage and loading efficiency. To efficiently read and manage these tiles during realistic 3D modeling, the texture image analysis algorithm starts from the root node tile and progressively delves into the next level of tiles according to the quadtree structure. During the traversal, the algorithm calculates the set of all tiles that need to be loaded based on the currently defined spatial region.

[0065] Step S2.2: Texture Image Resolution Process The core step of texture image parsing algorithms is the dynamic loading and parsing of tile data. The algorithm calculates the range of tiles currently being loaded, obtaining the tile level and index position. The tile level represents the depth level of the tile in the quadtree; the higher the level, the higher the tile resolution, and the richer the amount of data and detail contained. The tile index indicates the specific location of the tile within the same level. By obtaining the tile level and index, the algorithm can accurately load and parse the tile data required for the current area.

[0066] Furthermore, to further improve the loading efficiency and accuracy of texture images, the algorithm employs an out-of-kernel rendering strategy. Under this strategy, the algorithm not only loads the data of the current tile but also reads the data of the parent tile and the child tile. The parent tile provides global contextual information, helping the algorithm understand the spatial layout of the entire model, while the child tile provides more refined local data, ensuring richness and accuracy of details.

[0067] By employing an out-of-core rendering strategy, the algorithm can acquire a set of all tiles from level 0 to level Z within the current range. Each tile corresponds to specific texture information, and a correspondence is established between these texture information and tile names. This indexing relationship greatly improves the efficiency of data management, avoids redundant storage of texture information and tile data, and allows for quick location of the corresponding texture information through tile names during subsequent rendering and querying processes.

[0068] Step S2.3: Output and saving texture data After parsing the tile set and texture information, the algorithm outputs and saves the established index relationship between tile names and texture names. This process ensures the matching between the texture image and the 3D data and provides the basic data for subsequent 3D model rendering. Through this efficient data storage method, the loading and rendering efficiency of 3D models is significantly improved.

[0069] In the OSGB format storage structure, each tile is stored hierarchically. Higher-level tiles contain broader geographic information, while lower-level tiles refine details of specific areas. This hierarchical storage method perfectly matches the processing flow of texture image analysis algorithms, effectively supporting efficient management and rendering of large-scale 3D scenes. By precisely loading and rendering tiles at different levels, the model can dynamically adjust details according to the user's perspective, ensuring an efficient and smooth real-time rendering experience.

[0070] This application embodiment can utilize the texture image analysis algorithm of the real scene 3D model to uniformly analyze the texture features of different tile levels within the scene range, accurately load and analyze the tile data required for the current area, with upper-level tiles providing global context information and lower-level tiles providing more refined local data, ensuring the richness and accuracy of details, and meeting different rendering and display needs.

[0071] Optionally, in one embodiment of this application, relative radiometric consistency processing based on foreground and background separation is performed on texture analysis data to obtain processed data, including: inspecting the radiometric difference value of the low-frequency part of the reference image and the image to be processed, and establishing a radiometric difference model; using the radiometric difference model to correct and adjust the low-frequency part of the texture analysis data obtained by contour wave transformation based on foreground and background separation, and determining the processed data.

[0072] The meaning of relative radiation uniformity treatment has been explained above, and will not be repeated here.

[0073] In actual implementation, relative radiation consistency processing based on foreground and background separation is performed on texture parsing data, which can be achieved through the following steps: Step S3.1: Obtain the radiation difference model By comparing and analyzing the low-frequency components obtained from the contour wave transform based on foreground and background separation of the reference image and the image to be processed, radiometric difference values ​​are extracted, and a radiometric difference model is established. This model can comprehensively reflect the differences between the image to be processed and the reference image in overall brightness, contrast, and color tone.

[0074] Step S3.2: Adjust low-frequency information Using the acquired radiation difference model, the low-frequency components of the image to be processed are corrected and adjusted. Specifically, pixel values ​​are processed through mathematical transformations, such as brightness compensation, contrast adjustment, and color tone correction. After the low-frequency components are corrected for differences, they are then recombined with the original high-frequency components.

[0075] By using contour wave transform to protect the high-frequency information of the image, only the low-frequency part is subjected to relative radiometric consistency processing by IR-MAD (Iteratively Reweighted Multivariate Alteration Detection). The IR-MAD method can automatically obtain invariant pixels between images without manual intervention, and the threshold is adaptive.

[0076] First, let's assume the image to be corrected is... Reference image is The specific algorithm steps for relative radiometric consistency processing based on wavelet transform and IR-MAD are as follows: (a) First, the original image and Perform n wavelet transforms to obtain the low-frequency components of the image. and and high-frequency components and ; (b) Then, the relative radiative heterogeneity processing method based on IR-MAD is used to process... and To achieve relative radiation uniformity, Become .

[0077] (c) Utilize replace ; (d) Finally, on The wavelet transform result is inversely transformed to obtain the radiation processing result.

[0078] Through the above technical solutions, the embodiments of this application can solve the problems of dark texture, uneven color, and poor saturation of real-world 3D models caused by multi-source data, sensors, and lighting conditions by using a relative radiation consistency processing algorithm on multi-scale textures, thereby ensuring that the model presents consistent texture features as a whole and improving visual harmony.

[0079] Optionally, in one embodiment of this application, texture image backfilling is performed based on the processed data to obtain a texture image of the three-dimensional model to be processed and a texture image of the reference model, including: extracting texture data and geometric data based on the processed data and performing formatting processing, wherein, during the update process, the corresponding geometric data and texture information of the areas that need to be adjusted or optimized are replaced.

[0080] The meaning of texture image backfilling has been explained above and will not be repeated here.

[0081] As an feasible approach, texture image backfilling can be achieved through the following steps: Step S4.1: Analyze the raw data, extract and optimize the geometry and texture information to ensure consistency across different tile levels.

[0082] Step S4.2: Format the optimized texture and geometry data to ensure compatibility with the OSGB file standard. Then, use a script or tool to write the processed data to an OSGB file, simultaneously recording the mapping relationship between tile levels and geometry data within the file.

[0083] Step S4.3: During the update process, for areas that need adjustment or optimization, the geometric data and texture information in their corresponding tiles can be directly replaced without reprocessing the entire set of data. This ability to update locally greatly improves the maintenance efficiency of 3D models.

[0084] Step S4.4: By loading the updated OSGB file, a realistic 3D model with clear textures and distinct features can be generated. This model not only meets the needs of detailed display but also maintains an efficient interactive experience in scenarios with massive data volumes.

[0085] The embodiments of this application can backfill the processed texture image and reconstruct it into an OSGB format real-world 3D model by backfilling the texture image, avoiding obvious breaks or discontinuities and improving the visual quality and realism of the real-world 3D model.

[0086] like Figure 3 As shown, to enable those skilled in the art to more clearly understand the real-scene 3D model color uniform enhancement processing method of the embodiments of this application, the process of real-scene 3D model color uniform enhancement processing is described in detail below with a specific embodiment, the process is as follows: (1) Separate the original 3D model of the real scene to obtain the model to be processed and the reference model; (2) Separate the foreground and background of the model to be processed and the reference model to obtain the foreground and background images of each model. Before separating the foreground and background, a texture data parsing operation of the model to be processed and the reference model can be performed to better ensure the separation effect of the foreground and background. (3) Perform contour wave transform on the separated background image to distinguish the high-frequency part and low-frequency part of the image, perform texture image analysis on the low-frequency data, extract tile pyramid data, construct texture pyramid, so as to obtain the multi-level texture pyramid to be processed and the reference multi-level texture pyramid. (4) Perform relative radiation consistency processing on the multi-level texture pyramid to be processed and the reference multi-level texture pyramid respectively to obtain the processed multi-level texture pyramid; (5) Backfill the texture data based on the processed multi-level texture pyramid to obtain the reconstructed real-world 3D model.

[0087] The real-scene 3D model color uniform enhancement processing method proposed in this application can separate the texture image of the 3D model to be processed and the texture image of the reference model based on the foreground and background separation method, extract the background image, and then perform contour wave transform, texture image analysis, relative radiometric consistency processing, and texture image backfilling on the background image in sequence to obtain a reconstructed real-scene 3D model. The targeted extraction of the background image based on foreground and background separation ensures the uniformity of lighting and overall tone. The contour wave transform removes noise interference and retains the main texture information of the background, ensuring the consistency of the model in the overall presentation, improving the overall appearance of the model, and alleviating the "blocking effect" in image processing. Thus, it solves the problems of poor stability and low applicability of the color uniform effect of the real-scene 3D model caused by the relative radiometric consistency processing technology in related technologies, which is difficult to completely eliminate noise interference and unreasonable block division.

[0088] Next, refer to the appendix. Figure 4 This application describes a real-scene 3D model color uniform enhancement processing device according to an embodiment of the present application.

[0089] Figure 4 This is a block diagram of the real-scene 3D model color uniform enhancement processing device according to an embodiment of this application.

[0090] like Figure 4 As shown, the real-scene 3D model color uniform enhancement processing device 10 includes: a loading module 100, a generation module 200, and a processing module 300.

[0091] The loading module 100 is used to load pre-trained models for image segmentation.

[0092] The generation module 200 is used to generate prompt information based on the approximate location points or rectangles of dark targets whose tonal differences in the texture image of the 3D model to be processed and the texture image of the reference model meet preset conditions.

[0093] The processing module 300 is used to input the prompt information into the pre-trained model, learn the local features and edge information of the image, and generate foreground and background masks. Based on the foreground and background masks, foreground information is excluded from the pre-trained model and background information is extracted.

[0094] Optionally, in one embodiment of this application, the real-scene 3D model color uniform enhancement processing device 10 further includes: a transformation module, a parsing module, a consistency processing module, and a backfilling module; wherein, the transformation module is used to perform contour wave transformation on the background images of the 3D model to be processed and the reference model to obtain contour wave transformation data; the parsing module is used to perform texture image parsing based on the contour wave transformation data to obtain texture parsing data; the consistency processing module is used to perform relative radiation consistency processing based on foreground and background separation based on the texture parsing data to obtain processed data; and the backfilling module is used to perform texture image backfilling based on the processed data to obtain the texture image of the 3D model to be processed and the texture image of the reference model.

[0095] Optionally, in one embodiment of this application, the transformation module includes: an extraction unit and a parsing unit; wherein, the extraction unit is used to extract tile pyramid data based on a preset quadtree indexing mechanism and contour wave transform data; the parsing unit parses each tile of the tile pyramid data to obtain internal texture features, establishes an index between the tile and the texture features, and splices the tile data to obtain texture parsing data.

[0096] Optionally, in one embodiment of this application, the consistency processing module includes: a modeling unit and an adjustment unit; the modeling unit is used to establish a radiation difference model based on the radiation difference value of the low-frequency part of the reference image and the image to be processed; the adjustment unit is used to correct and adjust the low-frequency part of the texture analysis data obtained by contour wave transformation based on foreground and background separation using the radiation difference model, and determine the processing data.

[0097] Optionally, in one embodiment of this application, the backfill module is used to extract texture data and geometric data based on the processed data and perform formatting processing, wherein, during the update process, the corresponding geometric data and texture information of the areas that need to be adjusted or optimized are replaced.

[0098] It should be noted that the foregoing explanation of the embodiment of the real-scene 3D model color uniform enhancement processing method also applies to the real-scene 3D model color uniform enhancement processing device of this embodiment, and will not be repeated here.

[0099] The real-scene 3D model color uniform enhancement processing device proposed in this application can perform foreground and background separation based on the foreground and background separation method to separate the texture image of the 3D model to be processed and the texture image of the reference model, extract the background image, and then perform contour wave transform, texture image analysis, relative radiometric consistency processing, and texture image backfilling on the background image in sequence to obtain a reconstructed real-scene 3D model. The background image is extracted in a targeted manner based on the foreground and background separation, which ensures the uniformity of lighting and overall tone. The contour wave transform removes noise interference and retains the main texture information of the background, ensuring the consistency of the model in the overall presentation, improving the overall appearance of the model, and alleviating the "blocking effect" in image processing. Thus, it solves the problems of poor stability and low applicability of the color uniform effect of the real-scene 3D model caused by the relative radiometric consistency processing technology in related technologies, which is difficult to completely eliminate noise interference and unreasonable block division.

[0100] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.

[0101] When the processor 502 executes the program, it implements the real-scene 3D model color enhancement processing method provided in the above embodiments.

[0102] Furthermore, electronic devices also include: Communication interface 503 is used for communication between memory 501 and processor 502.

[0103] The memory 501 is used to store computer programs that can run on the processor 502.

[0104] Memory 501 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0105] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0106] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.

[0107] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0108] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for color uniformity enhancement processing of a real-world 3D model.

[0109] This application also provides a computer program product storing a computer program that, when executed by a processor, implements the above-described method for color uniformity enhancement processing of a real-world 3D model.

[0110] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0111] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0112] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0113] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0114] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or more of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0115] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0116] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0117] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A method for color uniformity enhancement processing of a real-scene 3D model, characterized in that, Includes the following steps: Load a pre-trained model for image segmentation. Based on the approximate location points or rectangles of dark targets whose tonal differences satisfy preset conditions in the texture image of the 3D model to be processed and the texture image of the reference model, a prompt message is generated. The prompt information is input into the pre-trained model, and the local features and edge information of the image are learned to generate foreground and background masks. Based on the foreground and background masks, foreground information is excluded from the pre-trained model, and background information is extracted to obtain the background images of the 3D model to be processed and the reference model.

2. The method according to claim 1, characterized in that, After extracting the background information, the process also includes: The background images of the three-dimensional model to be processed and the reference model are subjected to contour wave transformation to obtain contour wave transformation data. Texture image analysis is performed based on the contour wave change data to obtain texture analysis data; Based on the texture parsing data, relative radiation consistency processing based on foreground and background separation is performed to obtain processed data; Based on the processed data, texture image backfilling is performed to obtain the reconstructed 3D model.

3. The method according to claim 2, characterized in that, The process of performing contourlet transform on the background images of the 3D model to be processed and the reference model to obtain contourlet transform data includes: Based on the preset wavelet basis function, a contour wave transform is performed to obtain multi-scale sub-band coefficients, and low-frequency sub-bands and high-frequency sub-bands are extracted to obtain the contour wave transform data.

4. The method according to claim 3, characterized in that, The process of performing texture image analysis based on the contour wave variation data to obtain texture analysis data includes: Tile pyramid data is extracted based on a preset quadtree indexing mechanism and the contour wave transform data. Each tile of the tile pyramid data is parsed to obtain its internal texture features, and an index is established between the tile and the texture features. The tile data is then stitched together to obtain the texture parsing data.

5. The method according to claim 4, characterized in that, The relative radiation consistency processing based on foreground and background separation, performed on the texture parsing data to obtain processed data, includes: A radiation difference model is established based on the low-frequency radiation difference values ​​of the reference image and the image to be processed. The low-frequency portion of the texture analysis data obtained by contour wave transformation based on foreground and background separation is corrected and adjusted using the radiation difference model to determine the processed data.

6. The method according to claim 2, characterized in that, The process of backfilling the texture image based on the processed data to obtain the reconstructed 3D model includes: Based on the processed data, texture data and geometric data are extracted and formatted. During the update process, the corresponding geometric data and texture information of the areas that need to be adjusted or optimized are replaced.

7. A device for color uniformity enhancement processing of a real-scene 3D model, characterized in that, include: The loading module is used to load pre-trained models for image segmentation. The generation module is used to generate prompt information based on the approximate location points or rectangles of dark targets whose tonal differences meet preset conditions in the texture image of the 3D model to be processed and the texture image of the reference model. The processing module is used to input the prompt information into the pre-trained model, learn the local features and edge information of the image, generate foreground and background masks, and based on the foreground and background masks, exclude foreground information and extract background information from the pre-trained model.

8. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the real-scene 3D model color uniform enhancement processing method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the real-scene 3D model color uniform enhancement processing method as described in any one of claims 1-6.

10. A computer program product, comprising a computer program, characterized in that, The computer program is executed to implement the real-scene 3D model color uniform enhancement processing method as described in any one of claims 1-6.