Modeling method for intrinsic decomposition model of polarization-guided neural implicit representation scene

Through the polarization-guided neural implicit representation scene model, combined with pBRDF and multi-layer perceptron, the intrinsic decomposition of NeRF is optimized, which solves the problem of NeRF's difficulty in expressing depth details in new perspective view synthesis in three-dimensional reconstruction, and achieves higher precision. Scene recognition and rendering quality.

CN118736136APending Publication Date: 2024-10-01NORTHEAST DIANLI UNIVERSITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410926821.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

During the 3D reconstruction process of NeRF, the synthesis of new perspective views is difficult to express depth details and geometric structures, resulting in imperfect spatial information and high-frequency noise when restoring the original 3D model, affecting the rendering quality.

Method used

The polarization-guided neural implicit eigendecomposition model of the scene is used, combined with the pBRDF model, through forward three-dimensional rendering and reverse Stokes loss calculation, using a multi-layer perceptron to convert the image sequence into a signed distance function, optimizing the surface normal and Reflective features reduce ambient light interference and highlight the main features of objects.

Benefits of technology

It improves the accuracy of scene recognition, outputs illumination, reflectivity and geometric shapes that are closer to the original scene, and enhances the spatial information integrity and rendering quality of the 3D model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736136A_ABST
    Figure CN118736136A_ABST
Patent Text Reader

Abstract

The invention provides a modeling method for an intrinsic decomposition model of a polarization-guided neural implicit representation scene, and belongs to the crossing field of computer vision and computer graphics. Polarization information is innovatively introduced to assist the intrinsic decomposition task of the nerve radiation field. The algorithm is combined with a pBRDF model to establish a function relationship between reflected light polarization and a surface normal. By adjusting the polarization state, the ambient light interference is reduced, so that the main body characteristics of the object are highlighted, and the physical attribute analysis of the object in the environment is realized with high precision. The space information of the recovered three-dimensional model is perfect and is matched with the original geometrical characteristics of the three-dimensional model. The reflected smoothness (roughness) degree, texture features and the like of the surface of the object accurately reveal microstructure information of the surface of the object. The scheme can be expanded to a complex environment and indoor and outdoor cross-scene application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an optimization model for eigendecomposing a scene represented implicitly by a neural network under the guidance of polarization, and belongs to the intersection of computer vision and computer graphics. Background Art

[0002] In recent years, NeRF has attracted much attention from researchers due to its novel neural implicit representation and excellent 3D reconstruction visual effects. The task of decomposing a scene into illumination, reflectivity, and shape (intrinsic decomposition) is essentially the process of inverse rendering. Among them, the surface normal reflects the authenticity of the interaction between light and the surface of the object. Its accurate confirmation can not only effectively reduce the workload of NeRF post-correction and optimization, but also significantly improve the rendering quality of the 3D scene. In NeRF, the synthesis of new perspective views is rendering, which is essentially a "one-way conversion process from 3D model to 2D image". Since the generated 2D images are often difficult to express the depth details and geometric structures that match the original scene, when using them to restore the original 3D model or scene, they will be accompanied by imperfect spatial information, such as volume differences, shape distortion, and inaccurate depth information caused by high-frequency noise. Therefore, the realization of scene intrinsic decomposition based on the NeRF framework requires innovation and improvement at the algorithm level.

[0003] The present invention proposes to construct a polarization-guided neural implicit representation scene intrinsic decomposition model, aiming to use polarization information as a constraint to assist the intrinsic decomposition algorithm in high-precision analysis of the current scene, and output illumination, reflectivity and shape that are more consistent with the original characteristic attributes of the object. At present, the common NeRF algorithm focuses on using multiple images to complete the synthesis of new perspective views of the target, but ignores the estimation of the illumination, reflectivity and geometry of the scene. Polarization is closely related to surface normals. The present invention combines pBRDF to construct a bidirectional intrinsic decomposition model. Through forward three-dimensional scene rendering and reverse Stokes loss calculation, the parameters of the model are continuously updated, the scene recognition accuracy is effectively improved, and NeRF eigendecomposition with polarization information optimization is realized. The present invention is of great significance to promoting the future eigendecomposition of neural radiation fields to move towards higher accuracy and stronger scene resolution capabilities. Summary of the invention

[0004] Purpose of the invention: To construct a polarization-guided scene decomposition optimization model, and to achieve intrinsic decomposition by utilizing polarization characteristics and combining the polarization bidirectional reflectance distribution function (pBRDF) model. The present invention can restore the lighting conditions, object reflectivity and geometric shape that are closer to the original scene.

[0005] Technical solution: The present invention proposes a polarization-guided neural implicit representation scene intrinsic decomposition model, which includes the following four steps:

[0006] S1. Use a multi-layer perceptron (MLP) to transform the scene to be expressed into a field represented by a signed distance function (SDF), and use it as the prior information for scene density prediction. Through a cyclic iterative sampling method, output accurate geometric features G(x) and surface normal information

[0007] 1) Input a set of scene image sequences, call Colmap to analyze them, and obtain the camera pose and view direction. and spatial position coordinates;

[0008] 2) Input the above image sequence into a multi-layer perceptron MLP to convert the scene to be expressed into a field represented by a signed distance function SDF. The multi-layer perceptron MLP contains 9 hidden layers, the number of neurons in each of the first 8 layers is 256, and the number of neurons in the 9th layer is 128; the first 8 layers and the 9th layer use ReLU function and Sigmoid function as activation functions respectively.

[0009] make Representation based on boundary surface The signed distance function SDF is

[0010]

[0011] in, represents the boundary surface of the object; ||·|| represents the Euclidean norm; p represents a point in space, and y represents a point on the boundary of the object; The indicative equation that represents the space occupied by an object in three-dimensional space,

[0012]

[0013] represents the space occupied by an object in three-dimensional space, and p represents a point in space;

[0014] 3) The transformed learnable signed distance function SDF is used to predict the density σ, that is,

[0015]

[0016] Among them, α is the number of sampling points, β is the Laplace variance, both of which are learnable parameters greater than 0; Ψ β represents the cumulative distribution function of the Laplace distribution with mean 0 and scale parameter β;

[0017] Let C(t) be the expected color of the camera ray, then the volume rendering formula in NeRF can be expressed as

[0018]

[0019] Wherein, T(s) is the cumulative transmittance from the sampling starting point to point s, σ(s) and c(s) are the density and color at point s respectively; the present invention adopts a discrete function form similar to the integral function of C(t) For approximation,

[0020]

[0021] Among them, T i , σ i and c i are the transmittance, density and color at the sampling point i in the discrete formula respectively; M is the end point on the sampling light;

[0022] Approximating discrete function form The point sampling strategy can be simplified as

[0023]

[0024] O(t) represents opacity, O(t) = 1-T(t),

[0025] It is defined by the signed distance function SDF, and its discrete form is expressed as

[0026]

[0027] In the example, k is the end point of the sampling ray, δ i is the distance difference between the next sampling point and the current sampling point;

[0028] Finally, combined with the volume density function definition After simplification, we get

[0029]

[0030] 4) The combination of the two density parameters α and β is optimized through a cyclic iterative framework, and finally a synergistic combination of the two parameters is obtained to complete the selection of the sampling strategy in the current scenario;

[0031] 5) The density of the sampling points σ i , combined with the inductive bias provided by the signed distance function SDF field, can guide the multi-layer perceptron MLP in step 2) to generate accurate object geometric features G(x), and provide surface normal data with good texture and geometric structure through gradient calculation

[0032] S2, taking the spatial position x of the input image sequence and the geometric features G(x) output in S1 as input, uses two multi-layer perceptrons MLP with similar structures to estimate the roughness and diffuse radiation respectively;

[0033] Both multi-layer perceptrons (MLPs) contain 4 hidden layers, each with 512 neurons. The first 3 layers use ReLU activation function, and the last layer uses Sigmoid function for nonlinear activation. The two MLPs can be abstracted as

[0034]

[0035] Where x and G(x) are the spatial position coordinates and geometric features obtained in step S1 respectively; M σ [·] represents the abstract MLP function for roughness estimation, M D [·] represents the abstract MLP function for diffuse radiance estimation; and are the estimated roughness and diffuse radiance, respectively;

[0036] S3, combining the view direction and the surface normal data to accurately estimate the reflection direction; combining the roughness estimated in step S2 with the reflection direction to form a composite feature vector, which corresponds to the input node of the first multi-layer perceptron MLP, using the first multi-layer perceptron MLP as a feature encoder to activate the high-frequency component, and using the second multi-layer perceptron MLP to generate accurate specular reflection radiation and lighting conditions;

[0037] 1) The surface normal data provided in step S1 and view direction Calculate and obtain the precise reflection direction Right now

[0038]

[0039] 2) The roughness estimate is obtained through a multi-layer perceptron MLP with 4 hidden layers. and reflection direction data Normalize it and encode it into a continuous vector form to overcome the nonlinear problem caused by directionality, and finally output the composite feature vector The number of neurons in each hidden layer of the multilayer perceptron MLP is 512, the first three layers use the ReLU activation function, and the last layer uses the Sigmoid function for nonlinear activation; the process can be abstracted as follows:

[0040]

[0041] 3) With composite feature vector As input, another multi-layer perceptron MLP with 4 hidden layers is used to complete the incident light and specular radiation The prediction generation of the multilayer perceptron has 512 neurons in each hidden layer, the first three layers use the ReLU activation function, and the last layer uses the Sigmoid function for nonlinear activation; the process can be abstracted as

[0042]

[0043] S4: Integrate the estimated specular radiation, diffuse radiation, lighting conditions and surface normal data in S1, S2 and S3, combine with the pBRDF model, perform polarized neural rendering, and obtain the Stokes vector prediction value At the same time, the polarization information of the target object is captured by a polarization camera, and the true value of its Stokes vector S = [s0, s1, s2] is derived. T ; Establish loss function and calculate The mean absolute error (MAE) between θ and S is calculated. The MAE is reduced through iterative cycles to optimize the model parameters. This method extends the Stokes vector component update to the global part of the constructed model to optimize the eigendecomposition algorithm.

[0044] 1) Combined with the pBRDF model, using the surface normal data calculated in step S1 The specular radiance predicted in step S3 and diffuse radiation data Perform polarization neural rendering to obtain the estimated Stokes vector Expressed as

[0045]

[0046] Among them, M PR [·] is an abstract MLP that completes the process of polarization neural rendering; the multi-layer perceptron MLP contains 9 hidden layers, the number of neurons in each of the first 8 layers is 256, and the number of neurons in the 9th layer is 128; the first 8 layers use the ReLU function and the last layer uses the Sigmoid function for nonlinear activation;

[0047] 2) Use a polarization camera to capture the polarization information of the target object, that is, the total intensity L o , diffuse reflection intensity L d and the specular reflection intensity L s The true value of can be expressed as

[0048] L o =L d +L s

[0049]

[0050]

[0051] definition It is composed of the vertical and parallel Fresnel transmission coefficient and Fresnel reflection coefficient as follows

[0052]

[0053] Among them, T ⊥ , T || are the vertical Fresnel transmission coefficient and the parallel Fresnel transmission coefficient, R ⊥ , R || are the vertical Fresnel reflection coefficient and the parallel Fresnel reflection coefficient, respectively. is the normal vector perpendicular to the viewing light, y o is the y-axis of the camera coordinate system;

[0054] And according to the definition: total intensity L o =s0, linear polarization degree Linear polarization angle φ o =tan -1 (s2 / s1) / 2, derive the true value of the Stokes vector S = [s0, s1, s2] T ;

[0055] 3) Measure the mean absolute error (MAE) between the model prediction results and the actual results. The Stokes loss function can be The modeling is as follows

[0056]

[0057] in, e is the weight coefficient; MAE[·] represents the loss calculation;

[0058] 4) Calculate the gradient of the model parameters according to the loss function, that is, the partial derivative of the loss function with respect to the parameters; start from the output layer, and use the chain rule to trace back and calculate the gradient layer by layer until the input layer, and complete the back propagation process of the entire network; then, the present invention uses the stochastic gradient descent optimization algorithm, combined with the calculated gradient, to update the weights of the network, and complete the model optimization when the predetermined number of iterations is reached or the preset MAE value is met;

[0059] Compared with the prior art, the present invention has the following advantages:

[0060] (1) The present invention innovatively introduces polarization information to assist the task of eigendecomposition of the neural radiation field. The algorithm combines the pBRDF model to establish a functional relationship between the polarization of reflected light and the surface normal. By adjusting the polarization state, the interference of ambient light is reduced, thereby highlighting the main features of the object and accurately analyzing the physical properties of objects in the environment. The three-dimensional model spatial information restored by the present invention is complete and consistent with its original geometric features. The smoothness (roughness) of the object surface, texture characteristics, etc. reflected accurately reveal the microstructure information of the object surface. This solution can be extended to complex environments and indoor and outdoor cross-scene applications.

[0061] (2) The present invention innovatively constructs a bidirectional neural radiation field eigendecomposition model. The forward structure focuses on using polarization to guide the neural radiation field for eigendecomposition; the reverse structure updates and expands the Stokes vector component to the global model, thereby continuously optimizing specular radiation, diffuse radiation, lighting conditions, surface normals, etc. The present invention uses the bionic polarization optical mechanism to render high-quality three-dimensional graphics effects, providing a feasible technical solution for researchers to conduct three-dimensional reconstruction research that collaborates with eigendecomposition and rendering. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the pBRDF model in the present invention.

[0063] Figure 2 It is the intrinsic decomposition optimization model of the neural radiation field under polarization guidance of the present invention.

[0064] Figure 3 It is a flow chart of the stochastic gradient descent optimization algorithm in the present invention. DETAILED DESCRIPTION

[0065] The technical solution adopted by the present invention is described in detail below in the form of specific embodiments in conjunction with the accompanying drawings.

[0066] In this embodiment, a method for modeling a polarization-guided neural implicit representation scene intrinsic decomposition model is provided, and the steps are as follows:

[0067] Step S1: Use a multi-layer perceptron (MLP) to convert the scene to be expressed into a field represented by SDF, and use it as the prior information for scene density prediction; output accurate geometric features G(x) and surface normal information through cyclic iterative sampling

[0068] In the practice of NeRF algorithm, the probability-based point sampling strategy performs poorly, that is, the point sampling process is very susceptible to aliasing effects and their derivative problems (signal distortion, signal loss, etc.). Such problems will directly lead to the distortion of the shape of the target part observed on each sampling ray, resulting in volume calculation deviation, thereby reducing the accuracy of scene density prediction and causing the estimated scene depth information to be doped with high-frequency noise. The method of the present invention can ensure the accuracy of point sampling and subsequent high-quality rendering effects.

[0069] like Figure 2 As shown, a set of scene image sequences are input, and Colmap is called to analyze them to obtain the camera pose and view (observation) direction. and spatial position coordinates. represents the space occupied by an object in three-dimensional space, then its indicative equation can be expressed as

[0070]

[0071] Here, p represents a point in space.

[0072] make Representation based on boundary surface The signed distance function SDF is

[0073]

[0074] in, represents the boundary surface of the object; ||·|| represents the Euclidean norm (L2 norm); y represents a point on the boundary of the object.

[0075] For the prediction calculation of density σ, the transformed and learnable SDF function can be used, that is,

[0076]

[0077] Among them, α is the number of sampling points, β is the Laplace variance, both of which are learnable parameters greater than 0; Ψ β Represents the cumulative distribution function of the Laplace distribution with mean 0 and scale parameter β.

[0078] Let C(t) be the expected color of the camera ray, then the volume rendering formula in NeRF can be expressed as

[0079]

[0080] Where T(s) is the cumulative transmittance from the sampling starting point to point s, σ(s) and c(s) are the density and color at point s, respectively.

[0081] In NeRF, C(t) is continuous, but the computer cannot directly process continuous integrals. Therefore, a discrete function similar to it is proposed for approximation, namely

[0082]

[0083] in, represents the discrete form of C(t); T i , σ i and c i are the transmittance, density and color at the sampling point i in the discrete formula respectively; M is the end point on the sampling light.

[0084] For a good point sampling strategy, the following relationship needs to be satisfied

[0085]

[0086] Where ∈ represents the error factor.

[0087] Since transparency dominates, the point sampling strategy can be changed to

[0088]

[0089] in, is the discrete form of T(t). In order to better fit with the SDF function, the transparency T(t) is converted to opacity O(t), O(t) = 1-T(t), then the point sampling strategy can be further expressed as

[0090]

[0091] in, It is defined by the SDF function. Its discrete form is

[0092]

[0093] Where k is the end point on the sampling ray, δ i is the distance difference between the next sampling point and the current sampling point.

[0094] To simplify The exponent of e (excluding the negative sign) is available To express, that is

[0095]

[0096] Similarly, to simplify the expression of O(t), E(t) is introduced

[0097]

[0098] Through the above simplification, we get the following formula

[0099]

[0100] Substituting the above two equations into the point sampling strategy expression, we can get

[0101]

[0102] Therefore, there is

[0103]

[0104] Defined by the volume density function, the following formula is finally derived

[0105]

[0106] It can be seen that the accuracy of opacity prediction is highly dependent on the density parameters α, β and δ i Let δ m is the maximum segment length. When the scene is subdivided into M segments, the opacity prediction error can be controlled within the expected range. In summary, the adjustment of the two density parameters α and β becomes the key.

[0107] The present invention designs a loop iteration framework: first, β is initialized and mean sampling is performed to obtain α; then, according to the above formula, the error is kept within the expected range and a larger β value is selected; the operations of increasing α and decreasing β are used as the loop content, and it is iterated within the error range, and finally a synergistic combination of the two parameters is obtained to complete the selection of the sampling strategy in the current scenario.

[0108] The present invention transforms the probability distribution problem of density prediction in NeRF into the optimization problem of density parameters, which reduces the complexity of the original algorithm while ensuring the accuracy of point sampling and realizes efficient prediction of opacity O(t). In addition, this sampling strategy is crucial for generating high-precision surface normal data. Figure 2 As shown in Figure 2, the sampling strategy proposed in the present invention can perform efficient density prediction, and the field represented by SDF can provide effective inductive bias (such as continuity and smoothness, accurate boundary representation, and simple geometric calculation, etc.). i The inductive bias can guide the MLP to generate accurate object geometric features G(x) and provide surface normal data with good texture and geometry through gradient calculation.

[0109] Step S2: Design two MLPs with 4 hidden layers, each with 512 neurons. The first 3 layers of the 4 hidden layers use the ReLU function, and the last layer uses the Sigmoid function for nonlinear activation. The two MLPs are used to estimate the roughness and diffuse radiation, respectively, which can be abstracted as

[0110]

[0111] Where x and G(x) are the spatial position coordinates and geometric features obtained in step S1 respectively; M σ [·] represents the abstract MLP function for roughness estimation, M D [·] represents the abstract MLP function for diffuse radiance estimation; and are the estimated roughness and diffuse radiance, respectively.

[0112] Step 3: Surface normal data provided by step S1 and view direction Calculate and obtain the precise reflection direction Right now

[0113]

[0114] Similarly, two MLPs with 4 hidden layers (512 neurons in each layer) are designed, where MLP1 is responsible for feature encoding, i.e., the estimation of roughness. and reflection direction data Normalize it and encode it into a continuous vector form to overcome the nonlinear problem caused by directionality, and finally output the composite feature vector This vector corresponds to the input node of MLP2. It can be abstracted as

[0115]

[0116] The first three hidden layers in MLP1 are specifically used to amplify the high-frequency information output, forming the additional Figure 2 The component in the entire model that is highly sensitive to high-frequency details of the image. This design ensures that MLP1 enhances the image's edges, textures and other detailed features while maintaining the integrity of the image structure, thus activating the high-frequency components. MLP2 collects reflection direction data Complete incident light and specular radiation The prediction generation can be abstracted as

[0117]

[0118] Step 4: First, use the surface normal data calculated in the above steps Predicted specular radiation and diffuse radiation data Polarized neural rendering is performed to obtain the predicted value of the Stokes vector. The pBRDF model is introduced to accurately analyze the complex interaction between light and the surface of the object under mixed polarization conditions. Subsequently, the Stokes loss function is established using the true value of the Stokes vector captured by the polarization camera as a guide. The error is continuously reduced to optimize the intrinsic decomposition algorithm and output lighting conditions, object reflectivity, and geometry that are more consistent with the original scene.

[0119] (1) Combined with Figure 2 , the forward 3D scene rendering process is given below:

[0120] As attached Figure 1 , the light is along the view direction The polarization state at the spatial position x can be modeled as a Stokes vector, which can be represented by four components:

[0121]

[0122] Under ideal conditions, ignoring the circular polarization s3, the Stokes vector can be modeled as a function of three polarization parameters: the total intensity L o =s0, linear polarization degree Linear polarization angle φ o =tan -1 (s2 / s1) / 2.

[0123] Objects interact with the diffuse and specular components of reflected light in very different ways. Diffuse reflection refers to the extensive scattering of light beneath the surface of an object, which is then evenly emitted from the surface, creating a soft and even lighting effect on the surface of the object. In contrast, the specular component can be visualized as light reflecting directly from the tiny specular areas on the surface of the object, presenting a bright and concentrated spot of light.

[0124] It can be seen that the interaction between light and the surface of an object is complex. While taking into account the physical mechanisms of diffuse reflection and specular reflection, the pBRDF model further defines the mixture of the two in terms of polarization characteristics, making the simulated light reflection behavior more realistic and close to nature.

[0125] make is the incident illumination. Considering that in real unconstrained conditions, the illumination comes from a distant light source, the Stokes vector has little dependence on x, and assuming that the polarization state of the light is completely unpolarized, we can get

[0126]

[0127] in, represents the incident Stokes vector at each point, The view direction for incident lighting.

[0128] With the pBRDF model, the outgoing Stokes vector for each point can be decomposed into a matrix multiplication of the diffuse and specular Mueller matrices:

[0129]

[0130] in, represents the outgoing Stokes vector at each point, M d 、M s They represent the decomposed diffuse reflection and specular reflection Mueller matrices respectively, and Ω represents the boundary surface of the object.

[0131] From the above two formulas, we can get

[0132]

[0133]

[0134] Among them, Fresnel 1 and Fresnel 2 represent different parameter matrices composed of Fresnel coefficients; is the surface normal, is the normal vector perpendicular to the viewing light, is the viewing direction, y o is the y-axis of the camera coordinate system. The Fresnel coefficient depends only on the elevation angle of the viewing ray relative to the surface normal, and is defined as It is composed of the vertical and parallel Fresnel transmission coefficient and Fresnel reflection coefficient as follows

[0135]

[0136] Among them, T ⊥ , T || are the vertical Fresnel transmission coefficient and the parallel Fresnel transmission coefficient, R ⊥ , R || They are the perpendicular Fresnel reflection coefficient and the parallel Fresnel reflection coefficient respectively.

[0137] Combined with the pBRDF model, the specular radiation, diffuse radiation, lighting conditions, and estimated surface normals output by steps S1, S2, and S3 are used for polarized neural rendering to obtain the estimated Stokes vector Expressed as

[0138]

[0139] Among them, M PR[·] is an abstract MLP to complete the process of polarization neural rendering. The multi-layer perceptron MLP contains 9 hidden layers, the number of neurons in each of the first 8 layers is 256, and the number of neurons in the 9th layer is 128. The first 8 layers use the ReLU function and the last layer uses the Sigmoid function for nonlinear activation.

[0140] (2) Combined with attachment Figure 2 , the reverse Stokes loss calculation process is given below:

[0141] The true value of the Stokes vector component of the target captured by the polarization camera can be expressed as

[0142] L o =L d +L s

[0143]

[0144] Among them, L d , L s The actual values ​​of diffuse reflection intensity and specular reflection intensity obtained by the polarization camera respectively.

[0145] The mean absolute error (MAE) between the model prediction results and the actual results can be expressed as The modeling is as follows

[0146]

[0147] in, e is the weight coefficient; MAE[·] represents the loss calculation.

[0148] As attached Figure 2 As shown, a complete network model is constructed in sequence according to steps S1, S2, S3 and S4. During the training process, a network rendering data set and a real data set are provided, and each MLP is trained successively. Specifically, the gradient of the model parameters is calculated according to the loss function, that is, the partial derivative of the loss function with respect to the parameters; starting from the output layer, through the chain rule, backtracking layer by layer and calculating the gradient until the input layer, the back propagation process of the entire network is completed; then, the present invention uses the stochastic gradient descent (SGD) optimization algorithm, combined with the calculated gradient, to update the weights of the network. The implementation process is detailed in Figure 3 , when the predetermined number of iterations is reached or the preset MAE value is met, the model optimization is completed. The present invention extends the Stokes vector component update to the global of the constructed model, so that each MLP can learn a feature expression that is more consistent with the real scene.

[0149] S5. Input the scene image sequence into Colmap to obtain the camera pose and view direction, i.e. the observation direction The spatial position coordinates and scene image sequence are input into the model trained in step S4, and the output is the lighting conditions, object reflectivity and geometric shape that match the original scene.

[0150] In summary, the present invention integrates intrinsic decomposition and rendering, introduces polarization information as a guide for optimizing scene intrinsic decomposition, and builds a bidirectional neural radiation field eigendecomposition model. This model can output lighting, reflectivity, and geometry that are more in line with the original scene, and complete high-quality polarization neural rendering. The design of the forward and reverse structures in the model can drive each MLP to continuously iterate and self-adjust, significantly improving the generalization ability of the model and the accuracy of predicting scene feature information.

Claims

1. A polarization-guided neural implicit representation of the scene intrinsic decomposition model modeling method, It is characterized in that The specific steps of this method are as follows: Step S1: Use the multi-layer perceptron MLP to convert the scene to be expressed into a field represented by SDF, and use it as the prior information for scene density prediction; output accurate geometric features G(x) and surface normal information through cyclic iterative sampling 1) Input a set of scene image sequences, call Colmap to analyze them, and obtain the camera pose and view direction. and spatial position coordinates; 2) Inputting the above image sequence into a multi-layer perceptron MLP to convert the scene to be expressed into a field represented by a signed distance function SDF; the multi-layer perceptron MLP has 9 hidden layers, the number of neurons in each of the first 8 layers is 256, and the number of neurons in the 9th layer is 128; the first 8 layers and the 9th layer use ReLU function and Sigmoid function as activation functions respectively; make Representation based on boundary surface The signed distance function SDF is in, represents the boundary surface of the object; ||·|| represents the Euclidean norm; p represents a point in space, and y represents a point on the boundary of the object; The indicative equation that represents the space occupied by an object in three-dimensional space, represents the space occupied by an object in three-dimensional space, and p represents a point in space; 3) The transformed learnable signed distance function SDF is used to predict the density σ, that is, Among them, α is the number of sampling points, β is the Laplace variance, both of which are learnable parameters greater than 0; Ψ β represents the cumulative distribution function of the Laplace distribution with mean 0 and scale parameter β; Let C(t) be the expected color of the camera ray, then the volume rendering formula in NeRF can be expressed as Wherein, T(s) is the cumulative transmittance from the sampling starting point to point s, σ(s) and c(s) are the density and color at point s respectively; the present invention adopts a discrete function form similar to the integral function of C(t) For approximation, Among them, T i , σ i and c i are the transmittance, density and color at the sampling point i in the discrete formula respectively; M is the end point on the sampling light; Approximating discrete function form The point sampling strategy can be simplified as O(t) represents opacity, O(t) = 1-T(t), It is defined by the signed distance function SDF, and its discrete form is expressed as In the example, k is the end point of the sampling ray, δ i is the distance difference between the next sampling point and the current sampling point; Finally, combined with the volume density function definition After simplification, we get 4) The combination of the two density parameters α and β is optimized through a cyclic iterative framework, and finally a synergistic combination of the two parameters is obtained to complete the selection of the sampling strategy in the current scenario; 5) The density of the sampling points σ i , combined with the inductive bias provided by the signed distance function SDF field, can guide the multi-layer perceptron MLP in step 2) to generate accurate object geometric features G(x), and provide surface normal data with good texture and geometric structure through gradient calculation Step S2: Taking the spatial position x of the input image sequence and the geometric feature G(x) output in step S1 as input, two multi-layer perceptrons MLP are used to estimate the roughness and diffuse radiation respectively; Both multi-layer perceptrons (MLPs) contain 4 hidden layers, each with 512 neurons. The first 3 layers use ReLU activation function, and the last layer uses Sigmoid function for nonlinear activation. The two MLPs can be abstracted as Where x and G(x) are the spatial position coordinates and geometric features obtained in step S1 respectively; M σ [·] represents the abstract MLP function for roughness estimation, M D [·] represents the abstract MLP function for diffuse radiance estimation; and are the estimated roughness and diffuse radiance, respectively; Step S3: Combine view directions and surface normal data Accurately estimate the reflection direction Combined with the roughness estimated in step S2 and reflection direction Form a composite feature vector that corresponds to the input node of MLP1, use MLP1 as a feature encoder to activate high-frequency components, and use MLP2 to generate accurate specular radiation and lighting conditions; 1) The surface normal data provided in step S1 and view direction Calculate and obtain the precise reflection direction Right now 2) The roughness estimate is obtained through a multi-layer perceptron MLP with 4 hidden layers. and reflection direction data Normalize it and encode it into a continuous vector form to overcome the nonlinear problem caused by directionality, and finally output the composite feature vector The number of neurons in each hidden layer of the multilayer perceptron MLP is 512, the first three layers use the ReLU activation function, and the last layer uses the Sigmoid function for nonlinear activation; the process can be abstracted as follows: 3) With composite feature vector As input, another multi-layer perceptron MLP with 4 hidden layers is used to complete the incident light and specular radiation The prediction generation of the multilayer perceptron has 512 neurons in each hidden layer, the first three layers use the ReLU activation function, and the last layer uses the Sigmoid function for nonlinear activation; the process can be abstracted as Step S4: Integrate the estimated specular radiation, diffuse radiation, lighting conditions and surface normal data in S1, S2 and S3, combine with the pBRDF model, perform polarized neural rendering, and obtain the Stokes vector prediction value At the same time, the polarization information of the target object is captured by a polarization camera, and the true value of its Stokes vector S = [s 0 ,s 1 ,s 2 ] T ; Establish loss function and calculate The mean absolute error between θ and S is calculated; the mean absolute error is reduced by iterative cycles to optimize the model parameters; this method extends the Stokes vector component update to the global part of the constructed model, thereby optimizing the eigendecomposition algorithm; 1) Combined with the pBRDF model, using the surface normal data calculated in step S1 The specular radiance predicted in step S3 and diffuse radiation data Perform polarization neural rendering to obtain the estimated Stokes vector Expressed as Among them, M PR [·] is an abstract MLP that completes the process of polarization neural rendering; the multi-layer perceptron MLP contains 9 hidden layers, the number of neurons in each of the first 8 layers is 256, and the number of neurons in the 9th layer is 128; the first 8 layers use the ReLU function and the last layer uses the Sigmoid function for nonlinear activation; 2) Use a polarization camera to capture the polarization information of the target object, that is, the total intensity L o , diffuse reflection intensity L d and the specular reflection intensity L s The true value of can be expressed as L o =L d +L s definition It is composed of the vertical and parallel Fresnel transmission coefficient and Fresnel reflection coefficient as follows Among them, T ⊥ 、T || are the vertical Fresnel transmission coefficient and the parallel Fresnel transmission coefficient, R ⊥ , R || are the vertical Fresnel reflection coefficient and the parallel Fresnel reflection coefficient, respectively. is the normal vector perpendicular to the viewing light, y o is the y-axis of the camera coordinate system; And according to the definition: total intensity L o =s 0 , linear polarization degree Linear polarization angle φ o =tan -1 (s 2 / s 1 ) / 2, derive the true value of the Stokes vector S = [s 0 ,s 1 ,s 2 ] T ; 3) To measure the mean absolute error between the model prediction results and the actual results, the Stokes loss function can be The modeling is as follows in, e is the weight coefficient; MAE[`] represents the loss calculation; 4) Calculate the gradient of the model parameters according to the loss function, that is, the partial derivative of the loss function with respect to the parameters; starting from the output layer, through the chain rule, backtrack and calculate the gradient layer by layer until the input layer, completing the back propagation process of the entire network; then, the present invention uses the stochastic gradient descent optimization algorithm, combined with the calculated gradient, to update the weights of the network, and completes the model optimization when the predetermined number of iterations is reached or the preset mean absolute error value is met.

2. The method for modeling the intrinsic decomposition model of the polarization-guided neural implicit representation scene according to claim 1, It is characterized in that The specific step of optimizing the combination of the two density parameters α and β through the loop iteration framework in step 4) of step S1 is: First, β is initialized and mean sampling is performed to obtain α. Then, according to the above formula, a larger β value is selected to keep the error within the expected range. The operations of increasing α and decreasing β are used as the loop content, and it is iterated within the error range to finally obtain a synergistic combination of the two parameters.

Citation Information

Cited By

  • Improved Shiny-NeRF three-dimensional reconstruction method based on NeRF

    CN120807799A

  • A Method and System for Identifying Necrotic Tissue in Complex Diabetic Foot Wounds Based on Multispectral Polarization Imaging and Microcirculation Oximetry

    CN122642840B