Three-dimensional reconstruction and rendering method based on non-parameter image
Through the 3D reconstruction and rendering method of non-parametric images, optical flow estimation and Gaussian splash rendering technology are used to solve the problems of reconstruction accuracy and speed in traditional methods, and achieve end-to-end real-time rendering and high-fidelity reconstruction, which is suitable for real-time applications. .
Patent Information
- Application Number
- CN202411001005.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-25
AI Technical Summary
Traditional dense visual 3D scene reconstruction methods have problems such as poor tracking accuracy, poor reconstruction quality, and inability to achieve end-to-end scene reconstruction. In recent years, the neural radiation field method requires parametric image input and is slow in training, which limits its real-time application. Widely used in applications.
Using a 3D reconstruction and rendering method based on non-parametric images, the optical flow estimation is performed through a pre-trained optical flow estimation network, a key frame map is constructed, the pose is optimized using the damped Gaussian-Newton method, and the 3D Gaussian scene representation is optimized through Gaussian splash rendering. , achieving end-to-end real-time rendering and high-fidelity reconstruction.
It achieves real-time rendering and high-quality reconstruction of any viewing angle, improves the tracking accuracy and quality of reconstruction, and is suitable for real-time application scenarios.
Smart Images

Figure CN118840490A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision three-dimensional reconstruction, and in particular to a three-dimensional reconstruction and rendering method based on non-parameter images. Background Art
[0002] Dense visual 3D scene reconstruction has important application value in robotics, virtual reality, and augmented reality. The core goal of this technology is to create high-fidelity 3D reconstruction of unknown environments and track the camera's pose in real time. In computer vision and robotics, this capability is widely used in application scenarios such as autonomous navigation, environmental perception, and augmented reality.
[0003] Traditional dense visual 3D scene reconstruction methods usually use point clouds, grids or voxel grids to represent scenes. For example, the method of recovering structure from motion (SFM) is used to estimate the pose of the image, and then the method of multi-view stereo matching (MVS) is used to construct the dense scene. This process has problems such as poor tracking accuracy, poor reconstruction quality and inability to achieve end-to-end scene reconstruction. The neural radiance field (NeRF) reconstruction method proposed in recent years has shown the potential for reconstructing high-fidelity scenes. However, due to its need for reference images as input and slow training speed, its widespread use in real-time applications is limited. For example: the existing invention "A method for 3D reconstruction of indoor scenes based on adaptive normal prior" (CN202410438152.3) has the disadvantage of needing to use the colmap tool to obtain the pose of each image, and the reconstruction time is long; "A method for constructing a 3D scene model based on neural radiance field" (CN202410037336.9) has the disadvantage of needing to use the SFM algorithm to obtain the pose of the image, and the quality of the reconstructed scene is poor.
[0004] In view of the above problems, the present invention discloses a 3D reconstruction and rendering method based on non-parametric images, which can be widely used in real-time rendering and high-quality reconstruction of scenes. The method does not require image pose input, reconstructs the properties of high-fidelity 3D Gaussian scenes end-to-end, and can perform real-time rendering of any viewing angle. Summary of the invention
[0005] The present invention discloses a 3D reconstruction and rendering method based on non-parametric images, which can realize end-to-end real-time rendering and high-fidelity reconstruction of scenes. To achieve the above-mentioned purpose, the present invention provides a 3D reconstruction and rendering method based on non-parametric images, comprising the following steps:
[0006] Use the pre-trained optical flow estimation network model to perform optical flow estimation on the input RGBD image data stream;
[0007] The images with optical flow greater than the set threshold are taken as key frames, and a key frame graph is constructed for the key frame set of the RGBD image data stream;
[0008] According to the key frame graph, a common view matrix is constructed with the average optical flow of the key frame pair as the common view value, and edges are established within the common view matrix with a length equal to the length of the historical key frame and a width equal to the length of the local key frame;
[0009] Use backprojection to filter out edges with low co-visibility, select keyframe pairs of appropriate edges, and use the damped Gauss-Newton method to optimize the pose of the current image;
[0010] For each key frame image, the two-dimensional pixel points are projected into the world space using the optimized pose, and Gaussian insertion and pruning are performed on each key frame image using Gaussian splash rendering visibility contour based on 3D Gaussian scene representation;
[0011] By dynamically selecting K key frame images in the frame image as dynamic sliding windows, the Gaussian splash loop is used to iteratively render color and depth information to optimize the 3D Gaussian scene representation.
[0012] The optical flow estimation is performed by training an optical flow estimation network using a public data set to obtain a pre-trained model, and the pre-trained model is used to estimate the optical flow of the currently input RGBD image data.
[0013] The edge is established by using the key frame set to construct a key frame graph, constructing a common view matrix with the average optical flow of the key frame pair as the common view value according to the key frame graph, and establishing the edge within the common view matrix with a length equal to the length of the historical key frame and a width equal to the length of the local key frame.
[0014] The optimized posture uses the inter-frame posture to project the pixels of the current frame image to the pixel area corresponding to the next frame image by using the key frame pair of suitable edges, uses the predicted optical flow as the real pixel position of the projection, and uses the damped Gauss-Newton method to iteratively optimize the posture of the current frame image to reduce the reprojection error between the two frames.
[0015] The Gaussian insertion and pruning, by representing the scene as isotropic 3D Gaussians, that is, representing the scene as a series of 3D Gaussian balls, the corresponding parameters are the center position, color, opacity and Gaussian radius of the 3D Gaussian balls. First, all the pixel points of the first key frame image are projected into the world space using the optimized posture as the initial isotropic 3D Gaussian scene representation, and a relatively good initial 3D Gaussian scene representation is obtained through a certain number of iterative optimizations. Then, each subsequent key frame image is subjected to Gaussian insertion and pruning, and the pixel points of the current frame are projected into the world space using the optimized posture and the Gaussian point cloud is inserted according to the contour visibility of the Gaussian splash rendering, and the Gaussian with less opacity is removed.
[0016] The optimized 3D Gaussian scene representation is achieved by selecting K dynamic key frames in the frame image as a dynamic sliding window, randomly selecting a key frame image in the dynamic sliding window, performing Gaussian splash rendering using the posture of the selected key frame image, and performing a loss on the corresponding color and depth compared to the real color and depth, and finally looping and iterating to optimize the 3D Gaussian scene representation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for the description of the embodiments or the prior art, and the present invention can be further understood in conjunction with the contents of the drawings. The components shown in the drawings are not necessarily drawn to scale, but the focus is on illustrating the principles of the embodiments.
[0018] Figure 1 It is a schematic diagram of the steps of a three-dimensional reconstruction and rendering method based on parameter-free images provided by the present invention.
[0019] Figure 2 It is a flowchart of an optical flow estimation network structure provided by an embodiment of the present invention.
[0020] Figure 3 It is a flowchart of Gaussian insertion and pruning for 3D Gaussian scene representation provided by an embodiment of the present invention.
[0021] Figure 4 A comparison chart of rendering results on a Replica dataset using a 3D reconstruction and rendering method based on non-parameter images and other methods provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following describes in detail an embodiment of the present invention taking 3D reconstruction of RGBD image sequences as an example, and examples of the embodiment are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0023] See also Figure 1 , Figure 2 and Figure 3 The present invention provides a three-dimensional reconstruction and rendering method based on non-parametric images, comprising the following steps:
[0024] S101, performing optical flow estimation on multi-view RGBD image data stream.
[0025] Specifically, the input image i and the input image j are respectively input into the optical flow estimation network as follows Figure 2, image i and image j respectively extract image features through the feature extraction network and construct a correlation body, query the relevant features in the correlation body and add them to two convolutional layers for convolution calculation, and at the same time, the optical flow of the previous frame image is convolved through two convolutional layers and the result of the convolution of the relevant features is output through a convolutional layer, and the image features extracted from image i after passing through the context feature network and the result after convolution as well as the optical flow of the previous frame image are input into two convolutional GRU networks for training to predict the change of optical flow from image i to image j, and the optical flow change between the two frames is estimated through the optical flow estimation network weights trained in the public data set.
[0026] S102: Select key frames according to the optical flow and construct a key frame graph.
[0027] Specifically, the optical flow change obtained by the above optical flow estimation network is used to set the fixed motion threshold between two frames of images to 4 pixels, and the images with optical flow changes greater than the set threshold are taken as key frames. At the same time, a key frame graph is constructed for the key frame set of the RGBD image data stream. The key frame graph contains information about each frame of the image, such as color, depth, pose, optical flow, etc.
[0028] S103: construct a common view matrix and edges according to the key frame graph.
[0029] Specifically, through the above key frame graph and the corresponding optical flow, a common view matrix with a length equal to the length of the historical key frame and a width equal to the length of the local key frame is constructed. The value of the common view matrix is the average value of the optical flow between the two frames. The corresponding edge is established by selecting a key frame pair with a radius of 3 centered on the current frame in the common view matrix.
[0030] S104, selecting a key frame pair with appropriate edges and optimizing the pose using the damped Gauss-Newton method.
[0031] Specifically, according to the edge selection optimization distance less than 25 established based on the common view matrix, the edge formed by the key frame pair with a radius of 1 centered on the key frame of the existing edge is suppressed, the selected key frame pair ij is processed, and the pixel of the current frame i image is projected to the pixel area corresponding to the next frame image j using the inter-frame pose, and the predicted optical flow is used as the real pixel position of the projection, and the damped Gauss-Newton method is used to iteratively optimize the pose of the current frame image to reduce the reprojection error between the two frames of images; the loss of the damped Gauss-Newton method optimization is as follows:
[0032]
[0033] Among them, (i, j)∈e represents any edge in the keyframe graph, ∏ c and is the projection and back-projection function, p iis the back-projected pixel position of keyframe i, P ij is the pose transformation from key frame i to j, p ij and w ij is the predicted optical flow and the associated confidence map, ∑ ij =diag w ij , is the Mahalanobis distance, according to the confidence weight w ij Weight the error term.
[0034] S105: Perform Gaussian insertion and pruning on the key frame image.
[0035] Specifically, the 3D Gaussian scene representation is optimized by passing the optimized pose of the current key frame to the back end; the scene is represented as an isotropic 3D Gaussian, that is, the scene is represented as a series of 3D Gaussian balls, and the corresponding parameters are the center position, color, opacity and Gaussian radius of the 3D Gaussian balls; Figure 3 As shown, first, according to the first frame key frame RGB image and depth image, all pixel points are back-projected into the camera space using the camera's intrinsic parameter matrix to form an initial point cloud, and this point cloud is transformed into the world space using the camera's extrinsic parameters as the initial representation of the isotropic 3D Gaussian scene. The attributes of this Gaussian point cloud include the center position of the Gaussian point, the color of the Gaussian point, the opacity of the Gaussian point, and the shape of the Gaussian point. A relatively good initial 3D Gaussian scene representation is obtained through a certain number of iterative optimizations. Then, Gaussian insertion and pruning are performed on each subsequent key frame image. Specifically, the camera's intrinsic parameter matrix and optimized posture are used to project the two-dimensional pixel points of the current frame into the world space to insert the Gaussian point cloud. The two-dimensional pixel points are rendered according to the visibility contour M of the Gaussian splash. p The selection is made and the Gaussian with smaller opacity is removed. The rendering formula of the visibility contour is as follows:
[0036]
[0037] Among them, F i , F j The opacity of the modeled 3D Gaussian sphere.
[0038] By continuously inserting and pruning Gaussians, the newly observed areas are modeled to achieve a complete representation of the scene.
[0039] S106: Use a dynamic sliding window to perform Gaussian splash rendering to optimize 3D Gaussian scene representation.
[0040] Specifically, the current key frame image is selected in the frame image, the previous key frame image and K-2 key frame images in the historical key frames are used as K dynamic key frame sliding windows, a key frame image is randomly selected from the K dynamic key frame images, and the position of the selected key frame image is used for Gaussian splash rendering to obtain the color C corresponding to the current key frame p With depth D p , the rendering formula is as follows:
[0041]
[0042] Among them, c i , d i is the color and depth of the 3D Gaussian sphere.
[0043] Then the loss is taken together with the real color and depth as the total loss function. The total loss function is designed as follows:
[0044]
[0045] Among them, the range of pixel p is to satisfy the visibility profile M p >0.9 pixels, D p and C p They are the color value and depth value rendered by pixel p, and L1 is the mean square error.
[0046] According to the pose estimation and scene optimization design, the total loss L map De-looping iterative optimization of 3D Gaussian scene representation.
[0047] Finally, as the final stage of the process of an embodiment of the present invention, experimental verification verifies the feasibility and effect of the method proposed in the present invention through actual experiments.
[0048] In the experimental verification stage, the present invention selected other dense reconstruction methods for quantitative and qualitative experiments. In the quantitative experiment part, the model of the present invention achieved the best in most indicators. The comparison results of the reconstructed camera tracking trajectory accuracy are shown in Table 1. The calculated indicator is ATE RMSE, in cm. The smaller the value, the better the pose tracking. The rendering indicators are shown in Table 2. The results show that the present invention achieves higher trajectory tracking accuracy and higher quality rendering; in the qualitative experiment, such as Figure 4 As shown, the rendering results of the method of the present invention and other methods on the Replica dataset show that the method of the present invention can reconstruct richer and more complex details.
[0049] Table 1 Comparison results of camera tracking trajectory accuracy of the proposed method and other methods on the Replica dataset
[0050]
[0051] Table 2 Experimental results of the proposed method and other methods on the Replica dataset
[0052]
[0053] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A three-dimensional reconstruction and rendering method based on non-parameter images, characterized in that: The following steps are involved: Use the pre-trained optical flow estimation network model to perform optical flow estimation on the input RGBD image data stream; The images with optical flow greater than the set threshold are taken as key frames, and a key frame graph is constructed for the key frame set of the RGBD image data stream; According to the key frame graph, a common view matrix is constructed with the average optical flow of the key frame pair as the common view value, and edges are established within the common view matrix with a length equal to the length of the historical key frame and a width equal to the length of the local key frame; Use backprojection to filter out edges with low co-visibility, select keyframe pairs of appropriate edges, and use the damped Gauss-Newton method to optimize the pose of the current image; For each key frame image, the two-dimensional pixel points are projected into the world space using the optimized pose, and Gaussian insertion and pruning are performed on each key frame image using Gaussian splash rendering visibility contour based on 3D Gaussian scene representation; By dynamically selecting K key frame images in the frame image as dynamic sliding windows, the Gaussian splash loop is used to iteratively render color and depth information to optimize the 3D Gaussian scene representation.
2. The optical flow estimation according to claim 1, characterized in that The optical flow estimation network is trained using a public dataset to obtain a pre-trained model, and the pre-trained model is used to estimate the optical flow of the current input RGBD image data.
3. The edge establishment method according to claim 1, wherein: A keyframe graph is constructed by using a keyframe set, a common view matrix with an average optical flow of keyframe pairs as the common view value is constructed according to the keyframe graph, and edges are established within the common view matrix with a length equal to the length of the historical keyframe and a width equal to the length of the local keyframe.
4. The optimized posture according to claim 1, characterized in that The pixels of the current frame image are projected to the pixel area corresponding to the next frame image using the inter-frame pose of the key frame pair with suitable edges. The predicted optical flow is used as the actual pixel position of the projection, and the damped Gauss-Newton method is used to iteratively optimize the pose of the current frame image to reduce the reprojection error between the two frames.
5. The Gaussian insertion and pruning method according to claim 1, characterized in that: By representing the scene as isotropic 3D Gaussians, that is, representing the scene as a series of 3D Gaussian balls, the corresponding parameters are the center position, color, opacity and Gaussian radius of the 3D Gaussian balls. First, all the pixels of the first key frame image are projected into the world space using the optimized pose as the initial isotropic 3D Gaussian scene representation. A relatively good initial 3D Gaussian scene representation is obtained through a certain number of iterative optimizations. Then, Gaussian insertion and pruning are performed on each subsequent key frame image. The pixel points of the current frame are projected into the world space using the optimized pose and the Gaussian point cloud is inserted according to the contour visibility of the Gaussian splash rendering. At the same time, the Gaussian with less opacity is removed.
6. The optimized 3D Gaussian scene representation according to claim 1, characterized in that: By selecting K dynamic key frames in the frame image as the dynamic sliding window, a key frame image is randomly selected in the dynamic sliding window, and the posture of the selected key frame image is used for Gaussian splash rendering. The corresponding color and depth are lost with the real color and depth. Finally, the 3D Gaussian scene representation is optimized in a loop iterative manner.
Citation Information
Patent Citations
Three-dimensional scene model construction method based on neural radiation field
CN117911618A
Indoor scene three-dimensional reconstruction method based on adaptive normal prior
CN118229920A
Cited By
Camera pose solving method, system and terminal based on 3DGS
CN119048603A
Dynamic real-time rendering method for large assembly scene based on three-dimensional Gaussian splashing
CN119229031A
Three-dimensional model optimization method and apparatus, and electronic device
CN119379916A
Gaussian splashing monocular reconstruction method based on neural network
CN119904580A
A neural network-based gaussian splash monocular reconstruction method
CN119904580B
