A point cloud-guided multi-view neural implicit surface reconstruction method

Through the multi-view neural implicit surface reconstruction method based on point cloud guidance, combined with uncertainty learning and photometric consistency constraints, the accuracy and speed problems of the neural implicit surface reconstruction method in complex scenes are solved, and a more efficient Geometric characterization and accurate surface reconstruction.

CN117689747BActive Publication Date: 2024-09-17WUHAN TUKE INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311570019.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2024-09-17
Estimated Expiration
2043-11-23

AI Technical Summary

Technical Problem

Existing neural implicit surface reconstruction methods are difficult to achieve accurate geometric expression and speed when processing complex scenes, and under-constrained optimization problems make it difficult to handle complex scenes in the real world.

Method used

A multi-view neural implicit surface reconstruction method based on point cloud guidance is adopted. Through the uncertainty learning and projection mechanism of point clouds, combined with photometric consistency loss for regularization constraints, the implicit displacement network is used to refine the signed distance field and improve Representational accuracy of geometric networks.

Benefits of technology

The accuracy and speed of geometric representation are improved, and complex scenes can be better processed. Through the reliability guidance and photometric consistency constraints of point clouds, noise and outliers are reduced, and reconstruction accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117689747B
    Figure CN117689747B
Patent Text Reader

Abstract

The present invention discloses a multi-view neural implicit surface reconstruction method based on point cloud guidance, and the specific steps are as follows: S1 preprocessing step, S2 data sampling step, S3 gradient vector loss calculation step, S4 color value acquisition step, S5 uncertainty loss calculation step, S6 implicit displacement loss calculation step, S7 loss acquisition step, S8 scene surface model acquisition step; the present invention provides a multi-view neural implicit surface reconstruction method based on point cloud guidance, which solves the technical problem that existing methods are difficult to reconstruct scene details.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and more specifically, to a multi-view neural implicit surface reconstruction method based on point cloud guidance. Background Art

[0002] The multi-view neural implicit surface reconstruction method aims to reconstruct the surface model of the scene in multi-view images with camera poses through volume rendering and surface rendering techniques. This method can learn the three-dimensional expression of the scene in an unsupervised manner. The reconstructed model has better integrity than the traditional point cloud to mesh method and can express the geometric appearance of the model, so it has a high reconstruction potential. Recently, multi-view surface reconstruction methods based on neural implicit learning have been rapidly developed. Although neural implicit surface reconstruction methods have shown impressive results on simple scenes, due to the indirect optimization of geometric expression in the color field, the geometric expression is not accurate enough and the speed is not fast enough. The problem of under-constrained optimization of the geometric field makes it difficult for multi-view surface reconstruction methods based on neural implicit learning to handle complex scenes in the real world. Since the traditional method of using point cloud reconstruction still has an advantage in accuracy, combining point cloud constraints to produce accurate neural implicit expressions is a direction worth exploring to improve reconstruction accuracy. Summary of the invention

[0003] The present invention overcomes the shortcomings of the prior art and provides a multi-view neural implicit surface reconstruction method based on point cloud guidance to solve the technical problem that the prior methods are difficult to reconstruct scene details.

[0004] The technical solution of the present invention is as follows:

[0005] A multi-view neural implicit surface reconstruction method based on point cloud guidance, the specific steps are as follows:

[0006] S1 preprocessing step: set the corresponding camera for the scene that needs to reconstruct the 3D model, and obtain K scene images and camera information of the corresponding images; select one image from the K scene images as the reference image, and the adjacent N-1 images as the neighborhood images; use the pre-trained multi-view stereo network to generate a depth map and a confidence map for the reference image, and filter out unreliable depth values ​​based on photometric consistency and geometric consistency; project the depth map of the filtered reference image to generate a point cloud, and use principal component analysis to calculate the point cloud normal;

[0007] S2 data sampling step: randomly select an image from K images as the target image, randomly select M pixels in the image, emit M rays from the camera center O through each pixel, and sample P sampling points on each ray;

[0008] S3 gradient vector loss calculation steps: Use position encoding and multi-scale hash encoding to encode the sampling points obtained in step S2 to obtain the encoding features of each sampling point, input the geometric network composed of four layers of multi-layer perceptron MLP, output the signed distance value, feature vector, and uncertainty value for each sampling point, and derive the signed distance value to obtain the gradient vector, and use the gradient vector to obtain the Eikonal loss L eik ;

[0009] S4: Step of obtaining color value: use multi-scale hash coding to encode the sampling points obtained in step S2, obtain the encoding features of each sampling point, respectively connect the viewing direction v of the corresponding ray r, the feature vector learned by the geometric network and the normal vector of the sampling point; input the corresponding information data into the color network composed of two-layer perceptron MLP, and output the predicted color value of the point;

[0010] Convert the signed distance value learned in step S3 into volume density, and render the obtained color value using volume rendering to obtain the color of ray r Use the rendered color and the corresponding color true value to obtain the color loss L rgb ;

[0011] S5 uncertainty loss calculation step: Randomly select N points from the point cloud corresponding to the target image c points, and each point cloud point outputs a signed distance value, a feature vector, and an uncertainty value through S3. The uncertainty loss L is obtained by using the uncertainty value and the signed distance value. usdf ;

[0012] S6 implicit displacement loss calculation steps: set the threshold ε, filter the point cloud according to the uncertainty value obtained in S5, perform position encoding and multi-scale hash encoding on the filtered point cloud to obtain the encoding feature, input the implicit displacement network composed of two layers of MLP, output the implicit displacement value, and use the implicit displacement value and the signed distance value obtained in S5 to calculate the implicit displacement loss L idf ;

[0013] S7 loss acquisition step: According to the signed distance value obtained in S5, the point cloud points are projected onto the implicit surface of the geometric network coding, and the projection position is projected onto the target image and the neighborhood image again. The normalized cross-correlation value is calculated using the projection patches on different views to further obtain the photometric consistency loss L pc ;

[0014] Derivative the signed distance value obtained in S5 to obtain the gradient vector at the location of the point cloud point, and use the gradient vector and the point cloud normal calculated by S1 to calculate the normal loss L n ;

[0015] S8 scene surface model acquisition step: during the training process, steps S2 to S7 are continuously repeated until the preset number of iterations is reached; after the training is completed, the signed distance field learned by the geometric network in S3 and the implicit displacement field learned by the implicit displacement network in S6 are added to obtain the final refined signed distance field, and the Marching Cube algorithm is used to extract the surface model of the scene from the zero level of the final signed distance field.

[0016] Furthermore, the S1 preprocessing step specifically includes the following:

[0017] S101: For each reference image and its corresponding N-1 neighboring images, input them into a pre-trained multi-view stereo vision network to obtain a depth map and a confidence map corresponding to the reference image. This process will be repeated until the depth maps and confidence maps corresponding to all images are obtained; wherein the multi-view stereo vision network adopts the TransMVSNet network;

[0018] S102: filtering out unreliable depths in the depth map of each image according to photometric consistency and geometric consistency, leaving only reliable depths, photometric consistency filtering filtering the predicted depth map based on the confidence map generated by the process of predicting the depth map of the multi-view stereo vision network, and geometric consistency filtering filtering the predicted depth by calculating the reprojection error;

[0019] S103: Based on the camera intrinsic and extrinsic parameters, the depth map of the filtered reference image is projected to generate a point cloud, and the point cloud normal is calculated using the principal component analysis method. The obtained normal is bidirectional, and the normal direction is corrected according to the direction from the point cloud point to the camera center.

[0020] Furthermore, in the S2 data sampling step, the distances of the P sampling points to the camera center o are t i |i=1,...,P, then the three-dimensional position of the sampling point is expressed as p(t)=o+tv, where v is the direction of the ray.

[0021] Furthermore, the S3 gradient vector loss calculation steps specifically include the following:

[0022] S301: Use position coding to encode the sampling points to obtain coding features. For a sampling point p, use Fourier series to express more high-frequency information:

[0023]

[0024] Where L is the number of levels used for position encoding, and p is the sampling point;

[0025] S302: Encode the sampling points using multi-scale hash coding to obtain a learnable feature vector; that is, construct a multi-resolution feature grid with learnable parameters θ in space ψ is a feature vector, which is divided into L levels, each level contains T feature vectors, that is, the hash table size of each level is T, and the dimension of each feature vector is F; the feature grid of each level is independent, and the feature vector is stored on the vertices of the grid; in order to combine features of different frequencies, the resolution of the grid is sampled in the geometric space, and the hash grid resolution of the lth level is R l It can be defined by the following formula;

[0026]

[0027]

[0028] Where R max is the highest resolution of the grid, R min is the minimum resolution of the grid, b is the growth factor, which changes with the change of L;

[0029] For a sampling point p, the encoded features on the hash grid of each level are obtained by interpolation And concatenate them together to form the feature vector h(p):

[0030]

[0031] S303: Connect the position encoding feature PE(p) and the hash encoding feature h(p) and send them to the geometric network composed of four layers of MLP to generate the signed distance value f(p), feature vector fea(p), uncertainty value σ for the sampling point p 2 (p); Derivative the signed distance value to obtain the gradient vector Use this gradient vector to design the Eikonal loss L eik As shown in the following formula:

[0032]

[0033] Where M is the number of sampling rays, P is the number of sampling points on each ray, and p i,j Represents the jth sampling point on the i-th ray.

[0034] Furthermore, the step of obtaining the color value in S4 specifically includes the following steps:

[0035] S401: Use the same multi-scale hash coding as S302 to encode the sampling point p obtained in step S2 to obtain the encoded feature h(p), which is connected to the viewing direction v of the corresponding ray r, the feature vector fea(p) learned by the geometric network, and the gradient vector of the sampling point Input a color network consisting of two layers of MLP and output the predicted color value C of the point p ;

[0036] S402: For a sampling point p(t i ), the signed distance value obtained by S303 is f(p(t i )), use the Sigmoid function to convert it into voxel density α i :

[0037]

[0038] where Φ s (x) = (1 + e -sx ) -1 is the Sigmoid function, s is a trainable parameter;

[0039] S403: Use volume rendering to render the color value obtained in step S401 to obtain the color of ray r

[0040]

[0041] in P is the number of sampling points on the ray.

[0042] S404: Using Rendering Colors and the corresponding color truth value C i Design color loss L rgb :

[0043]

[0044] N p is the pixel sampling point.

[0045] Furthermore, the S5 uncertainty loss calculation steps specifically include the following:

[0046] S501: Randomly select N points from the point cloud corresponding to the target image. c points, after the position encoding and multi-scale hash encoding described in S3, each point cloud point x p Get the encoding feature PE(x p ) and h(x p ), input into the geometric network in S303, and output the signed distance value f(x p), the eigenvector fea(x p ), uncertainty value σ 2 (x p );

[0047] S502: Design the uncertainty loss L using the uncertainty value and signed distance value of the point cloud usdf :

[0048]

[0049] Furthermore, the S6 implicit displacement loss calculation steps specifically include the following:

[0050] S601: Set a threshold ε, filter the point cloud according to the uncertainty value obtained in S501, and the number of filtered point clouds is N f , the same position encoding and multi-scale hash encoding method as in S3 are used for the filtered point cloud to obtain the encoded features, and then input into the implicit displacement network composed of two layers of MLP. p Output implicit displacement value f d (x p );

[0051] S602: The implicit displacement field is a refined field function based on the signed distance field. d (x p ) and the signed distance value f(x p ) are added to get the final signed distance value and calculate the implicit displacement loss L idf :

[0052] f final (x p )=f(x p )+f d (x p )

[0053]

[0054] Among them, N f is the number of point clouds, f final (x p ) is the signed distance value, x p Point cloud point.

[0055] Furthermore, the photometric consistency loss L in the S7 loss acquisition step pc The details include:

[0056] S701: For point cloud point x p , according to the signed distance value f(x p ) and its derivative, xp The inverse of the signed distance value at Always facing the outside of the surface, so the point cloud point is projected onto the implicit surface t encoded by the geometric network according to the following formula p superior:

[0057]

[0058] S702: To ensure the projection position t p Exactly distributed on the real surface, using geometric consistency to constrain t p The position of the projection position t p Project it onto the target image and the neighborhood image again to get the target image I r Projection patchI r (s) and the neighborhood image I s Projection patch I s (s), the normalized cross-correlation value is calculated using the projection patches on different views. The specific formula is as follows:

[0059]

[0060] Among them, Cov is covariance and Var is variance;

[0061] S703: Calculate the photometric consistency loss L according to the NCC value pc , the specific formula is as follows:

[0062]

[0063] The NCC value is calculated by selecting 4 neighboring views and then taking the average value as the photometric consistency loss.

[0064] Furthermore, the normal loss L in the S7 loss acquisition step n The details include:

[0065] S711: Derivative the signed distance value obtained in step S5 to obtain the gradient vector at the location of the point cloud point, and use the gradient vector and the point cloud normal calculated in S1 to calculate the L1 loss and Cosine loss of the normal, as shown in the following formula:

[0066]

[0067]

[0068] where n xp is the point cloud point x p The normal line of is x p The gradient vector at ;

[0069] S712: Normal loss L n Contains L 1 and L cos , L n =L 1 +L cos .

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

[0071] In order to improve the expression of geometric networks and solve the under-constraint problem in the optimization process, the present invention proposes uncertainty learning of point clouds, which is used to evaluate the reliability of point clouds while optimizing geometry, and focuses on the position guidance of reliable points; at the same time, a projection mechanism of point clouds is proposed, which uses point clouds to be projected from three-dimensional space to implicit surfaces, and then projected onto two-dimensional images, and combines photometric consistency loss to indirectly impose regularization constraints on the learned signed distance field, making the geometric representation more accurate; an implicit displacement network is proposed to additionally correct the deviation between learning rendering and point modeling for the locations of high-fidelity points. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 It is a schematic diagram of the overall structure of the present invention. DETAILED DESCRIPTION

[0073] The embodiments of the present invention are described in detail below, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and cannot be used as a limitation of the present invention.

[0074] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the field to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.

[0075] The numbers of the steps mentioned in each embodiment are only for the convenience of description and have no substantial sequence relationship. Different steps in each specific embodiment can be combined in different sequences to achieve the purpose of the invention.

[0076] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0077] like Figure 1 As shown in FIG. 1 , a multi-view neural implicit surface reconstruction method based on point cloud guidance is shown in FIG. 1 . The specific steps are as follows:

[0078] S1 preprocessing step: Set the corresponding camera for the scene that needs to reconstruct the 3D model, and obtain K scene images and camera information of the corresponding images. Select one image from the K scene images as the reference image, and the adjacent N-1 images as the neighborhood images. Use the pre-trained multi-view stereo network to generate a depth map and confidence map for the reference image, and filter out unreliable depth values ​​based on photometric consistency and geometric consistency. Project the depth map of the filtered reference image to generate a point cloud, and use principal component analysis to calculate the point cloud normal. Specifically include the following:

[0079] S101: For each reference image and its corresponding N-1 neighboring images, input them into the pre-trained multi-view stereo vision network to obtain the depth map and confidence map corresponding to the reference image. This process will be repeated until the depth maps and confidence maps corresponding to all images are obtained. The multi-view stereo vision network uses the TransMVSNet network.

[0080] S102: Filter out unreliable depths in the depth map of each image based on photometric consistency and geometric consistency, leaving only reliable depths. Photometric consistency filtering filters the predicted depth map based on the confidence map generated by the multi-view stereo vision network depth map prediction process. Geometric consistency filtering calculates the reprojection error to filter the predicted depth.

[0081] S103: Based on the camera intrinsic and extrinsic parameters, the depth map of the filtered reference image is projected to generate a point cloud, and the point cloud normal is calculated using the principal component analysis method. The obtained normal is bidirectional, and the normal direction is corrected according to the direction from the point cloud point to the camera center.

[0082] S2 data sampling step: randomly select one image from K images as the target image, randomly select M pixels in the image, emit M rays from the camera center O through each pixel, and sample P sampling points on each ray. The specific distances of the P sampling points to the camera center o are t i |i=1,...,P, then the three-dimensional position of the sampling point is expressed as p(t)=o+tv, where v is the direction of the ray.

[0083] S3 gradient vector loss calculation steps: Use position encoding and multi-scale hash encoding to encode the sampling points obtained in step S2 to obtain the encoding features of each sampling point, input the geometric network composed of four layers of multi-layer perceptron MLP, output the signed distance value, feature vector, and uncertainty value for each sampling point, and derive the signed distance value to obtain the gradient vector, and use the gradient vector to obtain the Eikonal loss L eik The details are as follows:

[0084] S301: Use position coding to encode the sampling points to obtain coding features. For a sampling point p, use Fourier series to express more high-frequency information:

[0085]

[0086] Where L is the number of levels used for position encoding, which is generally set to 6.

[0087] S302: Use multi-scale hash coding to encode the sampling points to obtain a learnable feature vector. That is, construct a multi-resolution feature grid with learnable parameters θ in space. ψ is a feature vector, which is divided into L levels, each level contains T feature vectors, that is, the hash table size of each level is T, and the dimension of each feature vector is F. The feature grid of each level is independent, and the feature vector is stored at the vertices of the grid. In order to combine features of different frequencies, the resolution of the grid is sampled in the geometric space. The hash grid resolution of the lth level is R l It can be defined by the following formula.

[0088]

[0089]

[0090] Where R max is the highest resolution of the grid, R min is the minimum resolution of the grid, and b is the growth factor, which changes with L.

[0091] For a sampling point p, the encoded features on the hash grid of each level are obtained by interpolation And concatenate them together to form the feature vector h(p):

[0092]

[0093] S303: Connect the position encoding feature PE(p) and the hash encoding feature h(p) and send them to the geometric network composed of four layers of MLP to generate the signed distance value f(p), feature vector fea(p), uncertainty value σ for the sampling point p 2 (p). Taking the derivative of the signed distance value gives the gradient vector Use this gradient vector to design the Eikonal loss L eik As shown in the following formula:

[0094]

[0095] Where M is the number of sampling rays, P is the number of sampling points on each ray, and p i,jRepresents the jth sampling point on the i-th ray.

[0096] S4: Step of obtaining color value: Use multi-scale hash coding to encode the sampling points obtained in step S2, obtain the encoding features of each sampling point, and connect the viewing direction v of the corresponding ray r, the feature vector learned by the geometric network, and the normal vector of the sampling point. Input the corresponding information data into the color network composed of two-layer perceptron MLP, and output the predicted color value of the point.

[0097] Convert the signed distance value learned in step S3 into volume density, and render the obtained color value using volume rendering to obtain the color of ray r Use the rendered color and the corresponding color true value to obtain the color loss L rgb The specific steps include:

[0098] S401: Use the same multi-scale hash coding as S302 to encode the sampling point p obtained in step S2 to obtain the encoded feature h(p), which is connected to the viewing direction v of the corresponding ray r, the feature vector fea(p) learned by the geometric network, and the gradient vector of the sampling point Input a color network consisting of two layers of MLP and output the predicted color value C of the point p .

[0099] S402: For a sampling point p(t i ), the signed distance value obtained by S303 is f(p(t i )), use the Sigmoid function to convert it into voxel density α i :

[0100]

[0101] where Φ s (x) = (1 + e -sx ) -1 is the Sigmoid function, and s is a trainable parameter.

[0102] S403: Use volume rendering to render the color value obtained in step S401 to obtain the color of ray r

[0103]

[0104] in P is the number of sampling points on the ray.

[0105] S404: Using Rendering Colors and the corresponding color truth value C i Design color loss L rgb:

[0106]

[0107] N p is the pixel sampling point.

[0108] S5 uncertainty loss calculation step: Randomly select N points from the point cloud corresponding to the target image c points, and each point cloud point outputs a signed distance value, a feature vector, and an uncertainty value through S3. The uncertainty loss L is obtained by using the uncertainty value and the signed distance value. usdf .

[0109] The details include:

[0110] S501: Randomly select N points from the point cloud corresponding to the target image. c points, after the position encoding and multi-scale hash encoding described in S3, each point cloud point x p Get the encoding feature PE(x p ) and h(x p ), input into the geometric network in S303, and output the signed distance value f(x p ), the eigenvector fea(x p ), uncertainty value σ 2 (x p ).

[0111] S502: Design the uncertainty loss L using the uncertainty value and signed distance value of the point cloud usdf :

[0112]

[0113] S6 implicit displacement loss calculation steps: set the threshold ε, filter the point cloud according to the uncertainty value obtained in S5, perform position encoding and multi-scale hash encoding on the filtered point cloud to obtain the encoding feature, input the implicit displacement network composed of two layers of MLP, output the implicit displacement value, and use the implicit displacement value and the signed distance value obtained in S5 to calculate the implicit displacement loss L idf The details are as follows:

[0114] S601: Set a threshold ε, filter the point cloud according to the uncertainty value obtained in S501, and the number of filtered point clouds is N f , the same position encoding and multi-scale hash encoding method as in S3 are used for the filtered point cloud to obtain the encoded features, and then input into the implicit displacement network composed of two layers of MLP. p Output implicit displacement value f d (x p ).

[0115] S602: The implicit displacement field is a refined field function based on the signed distance field. d (x p ) and the signed distance value f(x p ) are added to get the final signed distance value and calculate the implicit displacement loss L idf :

[0116] f final (x p )=f(x p )+f d (x p )

[0117]

[0118] Among them, N f is the number of point clouds, f final (x p ) is the signed distance value, x p Point cloud point.

[0119] S7 loss acquisition step: According to the signed distance value obtained in S5, the point cloud points are projected onto the implicit surface of the geometric network coding, and the projection position is projected onto the target image and the neighboring image again. The normalization cross-correlation (NCC) value is calculated using the projection patches on different views to further obtain the photometric consistency loss L pc The details are as follows:

[0120] S701: For point cloud point x p , according to the signed distance value f(x p ) and its derivative, x p The inverse of the signed distance value at Always facing the outside of the surface, so the point cloud point is projected onto the implicit surface t encoded by the geometric network according to the following formula p superior:

[0121]

[0122] S702: To ensure the projection position t p Exactly distributed on the real surface, using geometric consistency to constrain t p The position of the projection. That is, p Project it onto the target image and the neighborhood image again to get the target image I r Projection patchI r (s) and the neighborhood image I sProjection patch I s (s), the normalization cross-correlation (NCC) is calculated using the projection patches on different views. The specific formula is as follows:

[0123]

[0124] Among them, Cov is the covariance and Var is the variance.

[0125] S703: Calculate the photometric consistency loss L according to the NCC value pc , the specific formula is as follows:

[0126]

[0127] The NCC value is calculated by selecting four neighboring views and then taking the average value as the photometric consistency loss. This method indirectly constrains the expression of the signed distance field through two projections, making it more accurate.

[0128] Derivative the signed distance value obtained in S5 to obtain the gradient vector at the location of the point cloud point, and use the gradient vector and the point cloud normal calculated by S1 to calculate the normal loss L n The details are as follows:

[0129] S711: Derivative the signed distance value obtained in step S5 to obtain the gradient vector at the location of the point cloud point, and use the gradient vector and the point cloud normal calculated in S1 to calculate the L1 loss and Cosine loss of the normal, as shown in the following formula:

[0130]

[0131]

[0132] where n xp is the point cloud point x p The normal line of is x p The gradient vector at .

[0133] S712: Normal loss L n Contains L 1 and L cos , L n =L 1 +L cos .

[0134] S8 scene surface model acquisition step: Repeat steps S2 to S7 during the training process until the preset number of iterations is reached. After the training is completed, the signed distance field learned by the geometric network in S3 and the implicit displacement field learned by the implicit displacement network in S6 are added to obtain the final refined signed distance field, and the Marching Cube algorithm is used to extract the surface model of the scene from the zero level of the final signed distance field.

[0135] In summary, the neural implicit surface reconstruction method provided by this scheme has a significant gain in the accuracy of the reconstructed surface. The gain mainly comes from the following aspects: This scheme learns the reliability of the point cloud through the uncertainty loss of the point cloud, and then generates a stronger constraint on the high reliability points, and then provides an explicit supervision signal for the learning of the geometric network signed distance field. The projection of the point cloud from three dimensions to two dimensions and the constraint of photometric consistency loss enable the learning of a more accurate signed distance value for outliers and noise points, which is a regularization constraint on the signed distance field. The implicit displacement network uses high-fidelity points to further compensate for the geometric deviation between neural rendering and point modeling, and is a refinement network based on the signed distance field.

[0136] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0137] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0142] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A multi-view neural implicit surface reconstruction method based on point cloud guidance, It is characterized in that The specific steps are as follows: S1 preprocessing step: set the corresponding camera for the scene that needs to reconstruct the 3D model, and obtain K scene images and camera information of the corresponding images; select one image from the K scene images as the reference image, and the adjacent N-1 images as the neighborhood images; use the pre-trained multi-view stereo network to generate a depth map and a confidence map for the reference image, and filter out unreliable depth values ​​based on photometric consistency and geometric consistency; project the depth map of the filtered reference image to generate a point cloud, and use principal component analysis to calculate the point cloud normal; S2 data sampling step: randomly select an image from K images as the target image, and randomly select N p pixels, and emit N rays from the camera center O through each pixel p rays, and sample p sampling points on each ray; S3 gradient vector loss calculation steps: Use position encoding and multi-scale hash encoding to encode the sampling points obtained in step S2 to obtain the encoding features of each sampling point, input the geometric network composed of four layers of multi-layer perceptron MLP, output the signed distance value, feature vector, and uncertainty value for each sampling point, and derive the signed distance value to obtain the gradient vector, and use the gradient vector to obtain the Eikonal loss L eik ; S4: Step of obtaining color value: use multi-scale hash coding to encode the sampling points obtained in step S2 to obtain the encoding features of each sampling point, respectively connect the viewing direction v of the corresponding ray r, the feature vector learned by the geometric network and the normal vector of the sampling point; input the corresponding information data into the color network composed of two layers of MLP, and output the color value predicted by the sampling point; Convert the signed distance value learned in step S3 into volume density, and render the obtained color value using volume rendering to obtain the color of ray r Use the rendered color and the corresponding color true value to obtain the color loss L rgb ; S5 uncertainty loss calculation step: Randomly select N points from the point cloud corresponding to the target image c points, and each point cloud point outputs a signed distance value, a feature vector, and an uncertainty value through S3. The uncertainty loss L is obtained by using the uncertainty value and the signed distance value. usdf ; S6 implicit displacement loss calculation steps: set the threshold ε, filter the point cloud according to the uncertainty value obtained in S5, perform position encoding and multi-scale hash encoding on the filtered point cloud to obtain the encoding feature, input the implicit displacement network composed of two layers of MLP, output the implicit displacement value, and use the implicit displacement value and the signed distance value obtained in S5 to calculate the implicit displacement loss L idf ; S7 loss acquisition step: According to the signed distance value obtained in S5, the point cloud points are projected onto the implicit surface of the geometric network coding, and the projection position is projected onto the target image and the neighborhood image again. The normalized cross-correlation value is calculated using the projection patches on different views to further obtain the photometric consistency loss L pc ; Derivative the signed distance value obtained in S5 to obtain the gradient vector at the location of the point cloud point, and use the gradient vector and the point cloud normal calculated by S1 to calculate the normal loss L n ; S8 scene surface model acquisition step: during the training process, steps S2 to S7 are continuously repeated until a preset number of iterations is reached; After the training is completed, the signed distance field learned by the geometric network in S3 and the implicit displacement field learned by the implicit displacement network in S6 are added to obtain the final refined signed distance field, and the surface model of the scene is extracted from the zero level of the final signed distance field using the Marching Cube algorithm; The S3 gradient vector loss calculation steps are as follows: S301: Use position coding to encode the sampling points to obtain coding features. For a sampling point p, use Fourier series to express more high-frequency information of the position coding feature PE(p): PE(p)=[sin(p·2 0 π),cos(p·2 0 π),....,sin(π·2 L π),cos(p·2 L p)] Where L is the number of levels used for position encoding, and p is the sampling point; S302: Encode the sampling points using multi-scale hash coding to obtain a learnable feature vector; that is, construct a multi-resolution feature grid with learnable parameters θ in space ψ is a feature vector, which is divided into L levels, each level contains T feature vectors, that is, the hash table size of each level is T, and the dimension of each feature vector is F; the feature grid of each level is independent, and the feature vector is stored on the vertices of the grid; in order to combine features of different frequencies, the resolution of the grid is sampled in the geometric space, and the hash grid resolution of the lth level is R l It can be defined by the following formula; Where R max is the highest resolution of the grid, R min is the minimum resolution of the grid, b is the growth factor, which changes with the change of L; For a sampling point p, the encoded features on the hash grid of each level are obtained by interpolation And concatenate them together to form the hash-encoded feature h(p): S303: Connect the position encoding feature PE(p) and the hash encoding feature h(p) and send them to the geometric network composed of four layers of MLP to generate the signed distance value f(p), feature vector fea(p), uncertainty value σ for the sampling point p 2 (p); The gradient vector ▽f(p) is derived by taking the derivative of the signed distance value, and the Eikonal loss L is designed using this gradient vector eik As shown in the following formula: Where M is the number of sampling rays, p is the number of sampling points on each ray, and p i,j Represents the jth sampling point on the i-th ray; S4 step of obtaining the color value specifically includes the following steps: S401: Use the same multi-scale hash coding as S302 to encode the sampling point p obtained in step S2 to obtain the hash coding feature h(p), respectively connect the viewing direction v of the corresponding ray r, the feature vector fea(p) learned by the geometric network and the gradient vector ▽f(p) of the sampling point, input the color network composed of two layers of MLP, and output the color value C predicted by the sampling point p ; S402: For a sampling point p(t i ), the signed distance value obtained by S303 is f(p(t i )), use the Sigmoid function to convert it into voxel density α i : where Φ s (x) = (1 + e -sx ) -1 is the Sigmoid function, s is a trainable parameter; S403: Use volume rendering to render the color value obtained in step S401 to obtain the color of ray r in p is the number of sampling points on the ray, c i is the true value of the color; S404: Using Rendering Colors and the corresponding color truth value c i Design color loss L rgb : N p is the number of pixel sampling points; The specific steps of S5 uncertainty loss calculation are as follows: S501: Randomly select N points from the point cloud corresponding to the target image. c points, after the position encoding and multi-scale hash encoding described in S3, each point cloud point x p Get the position encoding feature PE(x p ) and the hash code feature h(x p ), input into the geometric network in S303, and output the signed distance value f(x p ), the eigenvector fea(x p ), uncertainty value σ 2 (x p ); S502: Design the uncertainty loss L using the uncertainty value and signed distance value of the point cloud usdf : The specific steps for calculating the S6 implicit displacement loss are as follows: S601: Set a threshold ε, filter the point cloud according to the uncertainty value obtained in S501, and the number of filtered point clouds is N f , the same position encoding and multi-scale hash encoding method as in S3 are used for the filtered point cloud to obtain the encoded features, and then input into the implicit displacement network composed of two layers of MLP. p Output implicit displacement value f d (x p ); S602: The implicit displacement field is a refined field function based on the signed distance field. d (x p ) and the signed distance value f(x p ) are added to get the final signed distance value and calculate the implicit displacement loss L idf : f final (x p )=f(x p )+f d (x p ) Among them, N f is the number of point clouds, f final (x p ) is the final signed distance value, x p is a point cloud point; Photometric consistency loss L in S7 loss acquisition step pc Obtained through the following steps: S701: For point cloud point x p , according to S501, the signed distance value f(x p ) and its derivative, x p The derivative of the signed distance value at ▽f(x p ) is always facing outside the surface, so the point cloud point is projected to the implicit surface position t encoded by the geometric network according to the following formula p superior: S702: To ensure the projection position t p Exactly distributed on the real surface, using geometric consistency to constrain t p The position of the projection position t p Project it onto the target image and the neighborhood image again to get the target image I r Projection patch I r (s) and the neighborhood image I s Projection patch I s (s), the normalized cross-correlation value is calculated using the projection patches on different views. The specific formula is as follows: Among them, Cov is covariance and Var is variance; S703: According to NCC (I r (s),I s (s)) value to calculate the photometric consistency loss L pc , the specific formula is as follows: By selecting four neighboring views to calculate NCC (I r (s),I s (s)) values, and then the average value is taken as the photometric consistency loss; Normal loss L in S7 loss acquisition step n Obtained through the following steps: S711: Derivative the signed distance value obtained in step S5 to obtain the gradient vector at the location of the point cloud point, and use the gradient vector and the point cloud normal calculated in S1 to calculate the L1 loss and Cosine loss L of the normal cos , the specific formula is as follows: where n xp is the point cloud point x p The normal of ▽f(x p ) is x p The gradient vector at ; S712: Normal loss L n Contains L 1 and L cos , L n =L 1 +L cos .

2. According to the point cloud-guided multi-view neural implicit surface reconstruction method of claim 1, Features: The S1 preprocessing steps specifically include the following: S101: For each reference image and its corresponding N-1 neighboring images, input them into a pre-trained multi-view stereo vision network to obtain a depth map and a confidence map corresponding to the reference image. This process will be repeated until the depth maps and confidence maps corresponding to all images are obtained; wherein the multi-view stereo vision network adopts the TransMVSNet network; S102: filtering out unreliable depths in the depth map of each image according to photometric consistency and geometric consistency, leaving only reliable depths, photometric consistency filtering filtering the predicted depth map based on the confidence map generated by the process of predicting the depth map of the multi-view stereo vision network, and geometric consistency filtering filtering the predicted depth by calculating the reprojection error; S103: Based on the camera intrinsic and extrinsic parameters, the depth map of the filtered reference image is projected to generate a point cloud, and the point cloud normal is calculated using the principal component analysis method. The obtained normal is bidirectional, and the normal direction is corrected according to the direction from the point cloud point to the camera center.

3. According to the point cloud-guided multi-view neural implicit surface reconstruction method of claim 1, Features: The distances from the p sampling points to the camera center o in the S2 data sampling step are t i |i=1,...,p, then the three-dimensional position of the sampling point is expressed as p(t)=o+tv, where v is the direction of the ray.