Neural radiation field rendering method based on superpixel constraint
By introducing a neural radiation field rendering method with superpixel constraints in NeRF, the difficulty and noise problems of traditional 3D reconstruction methods in large-scale and complex scene processing are solved, and the accuracy and universality of three-dimensional reconstruction are improved, and the More precise scene geometry and appearance extraction.
Patent Information
- Application Number
- CN202410985700.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-15
AI Technical Summary
Traditional geometry-based 3D reconstruction methods face the problems of insufficient parameter adjustment difficulty, scalability and universality when dealing with large-scale and complex scenarios, and image noise and weak textures lead to hollow and loose geometric structures in the reconstruction results.
Using a neural radiation field rendering method based on superpixel constraints, the camera position is estimated through COLMAP software, and the superpixel is extracted using a multi-resolution segmentation algorithm, the RGB color mean of each superpixel is calculated, and the neural network is trained as a loss function. , optimized by backpropagation to obtain implicit 3D representations and new view synthesis.
It improves the accuracy of NeRF depth estimation, improves the three-dimensional reconstruction performance, achieves more accurate scene geometry and appearance extraction, and enhances the scalability and versatility of the method.
Smart Images

Figure CN118967912A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision and remote sensing technology, and in particular to a neural radiation field rendering method based on superpixel constraints. Background Art
[0002] The Neural Radiance Field (NeRF) framework has matured and is capable of learning and presenting realistic 3D scenes from unobserved viewpoints. Therefore, applying NeRF technology to 3D generation of remote sensing images can help obtain more refined 3D structures.
[0003] Converting 2D images into high-fidelity 3D scenes is a key future development direction for visual imaging technology, especially in the field of photogrammetry and remote sensing (PRS). High-precision 3D reconstruction of the real world can not only accurately reproduce buildings, roads, and infrastructure, but also present geographic information more intuitively through realistic 3D terrain models. This technology has wide applications in many fields such as smart cities, urban development and management, digital mapping, and navigation. In traditional geometry-based 3D reconstruction tasks, traditional large-scale 3D reconstruction algorithms face two major challenges: First, the need to carefully adjust parameters and processing during the modeling process increases the difficulty of implementation and debugging, thereby limiting the scalability and versatility of the method. Second, traditional methods usually rely on manually designed features to describe the geometric structure and texture information in the scene.
[0004] However, problems such as image noise and weak texture make it difficult for these methods to extract effective image feature points, resulting in holes and loose geometric structures in the reconstruction results. Strategies to improve and optimize these challenges may include: integrating more geometric information to improve structure capture capabilities, optimizing the use of computing resources to improve efficiency, and extending the NeRF framework to handle larger and more complex scenes and geometric structures. Summary of the invention
[0005] The present invention provides a neural radiation field rendering method based on superpixel constraints, thereby realizing superpixel texture consistency constraints and improving the NeRF depth estimation accuracy.
[0006] The present invention provides a neural radiation field rendering method based on superpixel constraints, comprising the following steps:
[0007] Step 1: Image preprocessing: using COLMAP software to estimate the camera pose from n input images;
[0008] Step 2: Use a multi-resolution segmentation algorithm to segment and extract superpixels from the two-dimensional image data set;
[0009] Step 3: Calculate the RGB color mean of the original pixels contained in each superpixel, and use the RGB color mean as the RGB color of the corresponding superpixel;
[0010] Step 4: Compare the RGB color value of the pixel rendered by the neural network with the RGB color value of the corresponding superpixel 2 The norm is used as a loss function to constrain the training of the neural network;
[0011] Step 5: Optimize the neural network through the back propagation algorithm until the neural network converges, and finally obtain an implicit three-dimensional representation of the scene covered by the input image;
[0012] Step 6: Synthesize a new view based on the implicit 3D representation of the scene covered by the input image and the new camera pose parameters.
[0013] Furthermore, in the neural radiation field rendering method based on superpixel constraints of the present invention, in step 1, the COLMAP tool is used to extract feature points and feature descriptors from the data set, and the SIFT algorithm is used to verify the geometric consistency of these feature points and their descriptors with the original image. Then, the incremental structure from motion (SFM) method is used for sparse reconstruction, and the three-dimensional coordinates and camera pose information of the image are obtained by matching the mapping relationship between the view coordinates and the actual three-dimensional building.
[0014] In the neural radiation field rendering method based on superpixel constraints described in the present invention, in step 1, if the input image is a satellite image, the camera model represented by the rational polynomial coefficient (RPC) function is used to correct the posture of the satellite image.
[0015] Among them, the camera model based on the RPC function is a mathematical model used to describe the photogrammetric geometric relationship in digital images, and its expression is:
[0016]
[0017] Where X, Y, Z represent the longitude, latitude and altitude of a three-dimensional point, and r, c represent the row and column of its projection on the imaging plane.
[0018] In the neural radiation field rendering method based on superpixel constraints of the present invention, in step 2, multi-resolution segmentation realizes superpixel extraction by minimizing the average heterogeneity of the generated segmented fragments, and the fusion factor f represents the increase in heterogeneity caused by the merging of two segmented fragments, and its formula is:
[0019] f=w color ·h color +(1-w color )·h shape
[0020] Among them, the fusion factor f is composed of the spectral heterogeneity component h color and the spatial heterogeneity component h shape Their relative importance is determined by the color factor w color definition.
[0021] In the neural radiation field rendering method based on superpixel constraints of the present invention, in step 3, each superpixel is traversed to calculate the RGB color mean of all original pixels therein. This process can be expressed by the following formula:
[0022]
[0023] Among them, RGBsuperpixel is the RGB color mean of the superpixel, N is the number of pixels in the superpixel, RGB i is the RGB color value of the i-th pixel.
[0024] This formula calculates the average RGB color of all pixels in a superpixel as the representative color of the superpixel.
[0025] In the neural radiation field rendering method based on superpixel constraints of the present invention, in step 4, superpixel texture consistency constraints are added in the learning process of the neural network to force the predicted grayscale values of a group of pixels inside the superpixel to be consistent, and the constraints on the scene geometry are realized by the constraints on the texture. The expression of the loss function is:
[0026]
[0027] in, is the predicted color of each pixel in the superpixel, R is the set of rays in each training batch, P is the superpixel corresponding to ray r, and the true color value of the superpixel is the mean color of all pixels in the superpixel.
[0028] In the neural radiation field rendering method based on superpixel constraints described in the present invention, in step 5, back propagation is an optimization technique based on gradient descent, which calculates the gradient of the loss function with respect to the network parameters and then updates the parameters in the opposite direction of the gradient to minimize the loss function value.
[0029] In the neural radiation field rendering method based on superpixel constraints of the present invention, in step 6, NeRF uses the principle of classical volume rendering to render the color of each light ray passing through the scene, and synthesizes the output color c and volume density σ into the image. Given a camera ray r(t)=o+td, the color C(r) of the corresponding pixel can be calculated by the following formula.
[0030]
[0031] Where o is the camera center, t n and t f are the near boundary and the far boundary respectively, and T(t) is the distance along the ray from t n The cumulative transmittance up to t can be calculated by the following formula.
[0032]
[0033] In the present invention, first, the images are preprocessed by COLMAP software to estimate the camera pose of each image. Secondly, a multi-resolution segmentation algorithm is used to segment the two-dimensional image dataset into compact and semantically consistent superpixels. Then, the RGB color mean of each superpixel is calculated as its representative color. Next, a loss function is defined, which is based on the l-value between the RGB color value of the pixel rendered by the neural network and the RGB color mean of the superpixel. 2 norm difference. Subsequently, the neural network is optimized by back-propagation until it converges to obtain an implicit 3D representation of the scene covered by the input image. Finally, a new view is synthesized based on the implicit 3D representation and the new camera pose parameters. The present invention can improve the 3D reconstruction performance through a superpixel constrained neural radiance field rendering method. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of a process flow of a neural radiation field rendering method based on superpixel constraints provided by an embodiment of the present invention;
[0035] Figure 2 A diagram showing experimental results of the DFC2019 dataset of the superpixel-constrained neural radiation field rendering method provided in an embodiment of the present invention;
[0036] Figure 3 A data graph showing the experimental results of the DFC2019 data set for the superpixel-constrained neural radiation field rendering method provided in an embodiment of the present invention;
[0037] Figure 4 A diagram showing experimental results of the UseGeo dataset of the superpixel-constrained neural radiance field rendering method provided in an embodiment of the present invention;
[0038] Figure 5 A data graph of the experimental results of the UseGeo dataset for the superpixel-constrained neural radiation field rendering method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention aims to explore a neural radiance field rendering method based on superpixel constraints. On the basis of NeRF, superpixels are used to establish spatial consistency constraints. The prior that the grayscale of each pixel is similar in the superpixel is used to reconstruct a new loss function to achieve accurate extraction of 3D geometry and appearance of large-scale scenes.
[0040] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0041] This embodiment provides a neural radiation field rendering method based on superpixel constraints, which mainly includes the following steps:
[0042] Step 1: Image preprocessing: using COLMAP software to estimate the camera pose from n input images;
[0043] Step 2: Use a multi-resolution segmentation algorithm to segment and extract superpixels from the two-dimensional image data set;
[0044] Step 3: Calculate the RGB color mean of the original pixels contained in each superpixel, and use the RGB color mean as the RGB color of the corresponding superpixel;
[0045] Step 4: Compare the RGB color value of the pixel rendered by the neural network with the RGB color value of the corresponding superpixel 2 The norm is used as a loss function to constrain the training of the neural network;
[0046] Step 5: Optimize the neural network through the back propagation algorithm until the neural network converges, and finally obtain an implicit three-dimensional representation of the scene covered by the input image;
[0047] Step 6: Synthesize a new view based on the implicit 3D representation of the scene covered by the input image and the new camera pose parameters.
[0048] The present invention is further described below.
[0049] See also Figure 1 , A neural radiation field rendering method based on superpixel constraints provided in this embodiment mainly includes the following steps: preprocessing the image through COLMAP software and performing camera pose estimation. Subsequently, the two-dimensional image dataset is segmented using a multi-resolution segmentation algorithm to generate compact and semantically consistent superpixels. Then, the RGB color mean of each superpixel is calculated as its representative color. Next, a loss function is defined based on the l2 norm difference between the RGB color value of the pixel rendered by the neural network and the RGB color mean of the superpixel. Subsequently, the neural network is optimized by backpropagation until it converges to obtain an implicit three-dimensional representation of the scene covered by the input image. Finally, a new view is synthesized based on the implicit three-dimensional representation and the updated camera pose parameters. .
[0050] Several main parts of this embodiment are explained below.
[0051] 1.1 Multi-scale superpixel segmentation
[0052] Multiresolution segmentation achieves superpixel extraction by minimizing the average heterogeneity of the generated segmented fragments. Initially, each segmented fragment represents a single pixel of the image. Subsequently, these segmented fragments are merged with adjacent segments based on the minimum increase in heterogeneity. The fusion factor f represents the increase in heterogeneity caused by the merging of two segmented fragments. Before the merging operation, the fusion factor is calculated for each adjacent segment of the selected segment, and the adjacent segment with the smallest fusion factor is selected for merging. It should be noted that merging will only occur when the fusion factor is less than the square of the scale parameter e. As shown in the following formula, the fusion factor f is composed of the spectral heterogeneity component h color and the spatial heterogeneity component h shape Their relative importance is determined by the color factor w color definition.
[0053] f=w color ·h color +(1-w color )·h shape
[0054] Spectral heterogeneity color It is defined based on the spectral response values of the pixels contained in the segmented fragment. The spatial heterogeneity h shape Affected by the compactness and smoothness of the segmentation. The growth of the segmentation is constrained, and the heterogeneity criteria can be adjusted by setting the scale parameter, color factor and compactness factor.
[0055] 1.2 Superpixel Loss Function
[0056] Calculate the predicted color for each pixel within the superpixel The color truth value of the superpixel The difference between them is shown in the following formula. Where R is the set of rays in each training batch, P is the superpixel corresponding to ray r, and the true color value of the superpixel is the mean color of all pixels in the superpixel. The texture consistency constraint ensures that the predicted color of each pixel in the superpixel converges to a single value, which helps limit the appearance of outliers, and It can be introduced into other NeRF-based methods.
[0057]
[0058] In order to verify the effect of the present invention, the following is a description in conjunction with experimental results.
[0059] According to the requirements, the present invention designs comparative tests on two data sets. The results of the comparative tests show that the effect of the neural radiation field rendering method based on superpixel constraints is better than other methods. The quality evaluation data of the rendered image and the predicted depth map of two selected areas on the DFC2019 data set are as follows: Figure 3 As shown. From the quantitative comparison, it can be seen that compared with previous work, the present invention achieves the most superior performance. Compared with Sat-NeRF, the PSNR value of the present invention is increased by an average of 0.63, and the SSIM value is increased by an average of 0.007. According to the reference DSM of the two areas, the elevation range of the JAX_068 area is -27 to 30 meters, and the elevation range of the JAX_214 area is -29 to 73 meters. The large elevation difference leads to a relatively high MAE value in the JAX_214 area. The MAE value of the present invention in the JAX_068 area is 0.07m lower than that of Sat-NeRF, and the MAE value in the JAX_214 area is 0.2m lower than that of Sat-NeRF. The quality evaluation data of the rendered image and the predicted depth map on track 1 of the UseGeo dataset are shown in Figure 2. Figure 5 As shown. From the numerical comparison, it can be seen that the present invention achieves the most superior performance in all evaluation indicators. For the PSNR indicator, the present invention is 0.45 higher than NeRF on average. Due to the scale difference between the predicted depth value and the reference depth value, all depth values are normalized to the range of [0, 1] before calculating the depth mean square error (DMSE), and then multiplied by the actual reference depth range. Compared with NeRF, the DMSE in the results synthesized by the present invention is reduced by 0.95 on average.
[0060] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to examples, a person of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the present invention, which should be covered by the scope of the patent claims of the present invention.
Claims
1. A neural radiance field rendering method based on superpixel constraints, characterized in that: The following steps are included Step 1: Image preprocessing: using COLMAP software to estimate the camera pose from n input images; Step 2: Use a multi-resolution segmentation algorithm to segment and extract superpixels from the two-dimensional image data set; Step 3: Calculate the RGB color mean of the original pixels contained in each superpixel, and use the RGB color mean as the RGB color of the corresponding superpixel; Step 4: The l2 norm of the RGB color value of the pixel rendered by the neural network and the RGB color value of the corresponding superpixel is used as a loss function to constrain the training of the neural network; Step 5: Optimize the neural network through the back propagation algorithm until the neural network converges, and finally obtain an implicit three-dimensional representation of the scene covered by the input image; Step 6: Synthesize a new view based on the implicit 3D representation of the scene covered by the input image and the new camera pose parameters.
2. The superpixel-constrained neural radiance field rendering method according to claim 1, characterized in that: In the step 1, if the input image is a satellite image, the posture of the satellite image is corrected using a camera model represented by a rational polynomial coefficient (RPC) function. Among them, the camera model based on the RPC function is a mathematical model used to describe the photogrammetric geometric relationship in digital images, and its expression is: Where X, Y, Z represent the longitude, latitude and altitude of a three-dimensional point, and r and c represent the row and column of its projection on the imaging plane.
3. The superpixel-constrained neural radiance field rendering method according to claim 1, characterized in that: In step 2, multi-resolution segmentation realizes superpixel extraction by minimizing the average heterogeneity of the generated segmented fragments. The fusion factor f represents the increase in heterogeneity caused by the merging of two segmented fragments, and its formula is: f=w color ·h color +(1-w color )·h shap e Among them, the fusion factor f is composed of the spectral heterogeneity component h color and the spatial heterogeneity component h shape Their relative importance is determined by the color factor w color definition.
4. The superpixel-constrained neural radiance field rendering method according to claim 1, characterized in that: In step 4, a superpixel texture consistency constraint is added during the learning process of the neural network to force the predicted grayscale values of a group of pixels inside the superpixel to be consistent. The constraint on the scene geometry is achieved by constraining the texture. The loss function is expressed as: in, is the predicted color of each pixel in the superpixel, R is the set of rays in each training batch, P is the superpixel corresponding to ray r, and the true color value of the superpixel is the mean color of all pixels in the superpixel.
Citation Information
Cited By
Neural radiation field DSM generation method based on two-dimensional triangulation network constraint
CN120374898A
A 2D triangulated network constrained neural radiation field DSM generation method
CN120374898B
