A fast and high-precision dense reconstruction method and system based on 3D Gaussian rasterization

Through the dense reconstruction method based on 3D Gaussian rasterization, the accuracy and efficiency problems of dense geometric reconstruction in the existing technology are solved, and fast and high-precision 3D model reconstruction is achieved, which is suitable for applications in complex scenes.

CN118314271BActive Publication Date: 2024-09-13ZHEJIANG UNIV +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410725903.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-13
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing dense geometry reconstruction technology is susceptible to mismatching and noise, making it difficult to generate high-precision, high-fidelity 3D surface models. Moreover, neural network-based methods have high computational overhead, limiting real-time applicability.

Method used

A fast and high-precision dense reconstruction method based on 3D Gaussian rasterization is used to initialize the 3D Gaussian ellipsoid parameters and compress them into Gaussian planes. Combined with multi-view geometric constraints and exposure compensation, the number of Gaussian planes is optimized to achieve the fusion and reconstruction of high-precision geometric information. .

Benefits of technology

It achieves fast and high-precision dense reconstruction, reduces computational overhead, improves reconstruction speed and accuracy, and is suitable for geometric reconstruction of complex scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314271B
    Figure CN118314271B
Patent Text Reader

Abstract

The present invention proposes a fast, high-precision dense reconstruction method and system based on 3D Gaussian rasterization, which belongs to the field of scene reconstruction. The 3D Gaussian ellipsoid parameters in the scene are initialized using the multi-view RGB image of the scene to be reconstructed; the 3D Gaussian ellipsoid is compressed into a Gaussian plane, and the Gaussian rasterized image of the RGB image and the geometric information of the RGB image are rendered; the rendering results are jointly optimized by combining the image reconstruction constraints based on exposure compensation, the single-view geometric constraints of adaptive sampling, the multi-view photometric constraints and the multi-view geometric constraints, and the 3D Gaussian ellipsoid parameters are updated until the optimization requirements are met; in the joint optimization process, the fixed-frequency Gaussian shearing method is used to optimize the number of Gaussian planes; and the dense scene is reconstructed using the optimized results. The rendering result obtained by the present invention is unbiased and can fit the actual surface in the scene without bias, achieving high-precision reconstruction while improving the reconstruction speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of scene reconstruction, and in particular to a fast, high-precision dense reconstruction method and system based on 3D Gaussian rasterization. Background Art

[0002] Dense and accurate mapping of unknown environments is a very important issue in the field of computer vision. This technology is widely used in application scenarios such as robotics, autonomous driving, AR, VR, and AI content generation. In the field of robotics, this technology gives robots the ability to perceive the geometry of unknown environments, which is the basis for robots to achieve path planning and obstacle avoidance. For the AR / VR field, only based on dense geometric mapping can AR / VR immersive occlusion and collision effects be achieved, and users can be provided with a more realistic effect experience. For AI content generation, fast 3D geometric reconstruction helps to quickly generate geometrically consistent virtual content.

[0003] Traditional dense geometric reconstruction is usually based on the multi-view stereo pipeline followed by traditional methods. A common approach is to decompose the multi-view stereo problem into several parts, first extracting dense point clouds from multi-view images by block matching or feature point matching methods, and then constructing surface structures by triangulation or implicit surface fitting. Although these methods have been widely used and deeply studied in academia and industry. Traditional methods are susceptible to artifacts caused by the introduction of false matches or noise. In response, some methods aim to enhance the completeness and accuracy of reconstruction by integrating deep neural networks into the matching process. However, the reliance on the quality of the generated point cloud is still often prone to missing or noisy surfaces. There are also learning-based methods that enhance the point cloud generation process by learning image features and cost volume construction. However, these methods are inherently limited by volume resolution and cannot recover geometric details.

[0004] With the development of deep learning, many works have used pure deep neural networks to predict surface models in an end-to-end manner directly from single or multiple image conditions using point clouds, voxels and triangular meshes or implicit fields. However, these methods usually incur significant computational overhead during network inference and require a large number of labeled training 3D models, which limits their applicability in real-time and real-world applications. With the rapid development of neural surface reconstruction tasks, a well-designed scene restoration method, called NeRF, has emerged. NeRF-based methods take 5D ray information as input and predict density and sampled colors in continuous space, producing significantly more realistic rendering results. However, this representation method is insufficient in capturing high-fidelity surfaces. Therefore, some methods transform the NeRF-based network architecture into a surface reconstruction framework by integrating intermediate representations such as occupancy or signed distance fields. Although the NeRF-based framework exhibits powerful surface reconstruction capabilities, the stacked multi-layer perceptron (MLP) layers impose limitations on inference time and representation capabilities. To address this challenge, various subsequent studies aim to reduce the reliance on MLP layers by decomposing scene information into separable structures such as points and voxels, or even without MLP layers.

[0005] Inspired by Point-NeRF and Plenoxels, 3D Gaussian rasterization was proposed to eliminate the reliance on neural networks and represent the scene as multiple anisotropic Gaussian fields. Using rasterization for forward rendering significantly speeds up training and inference time compared to NeRF-based methods. However, the sparse nature of 3D Gaussian rasterization hinders the extraction of high-fidelity surface structures. Recently, SuGaR proposed a method to quickly extract mesh surfaces from 3D Gaussian rasterization by introducing a regularization term to encourage Gaussians to fit to the scene surface. First, the 3D point cloud is sampled from the Gaussian using the density field; then the mesh surface is extracted from these sampled point clouds using Poisson reconstruction; finally, the Gaussian and mesh surface are bound together, and the mesh surface and Gaussian are jointly optimized to further improve the accuracy of the mesh surface. Although encouraging Gaussians to fit to the surface can improve the accuracy of geometric reconstruction, irregular 3D Gaussian shapes are difficult to model smooth geometric surfaces. In addition, due to the discreteness and disorder of Gaussian, relying solely on image reconstruction loss can easily lead to overfitting, resulting in incomplete geometric information and mismatch with the actual surface. Summary of the invention

[0006] In order to solve the existing problems in the technology, the present invention proposes a fast high-precision dense reconstruction method and system based on 3D Gaussian rasterization, firstly based on 3D Gaussian rasterization optimization to obtain the high-precision geometry of the multi-view RGB image in the scene to be reconstructed, and then the geometric information of the multi-view RGB image is fused to obtain a high-precision dense model, that is, the dense reconstruction result corresponding to the multi-view RGB image. The present invention can achieve fast and high-precision dense reconstruction.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0008] In a first aspect, the present invention proposes a fast and high-precision dense reconstruction method based on 3D Gaussian rasterization, comprising:

[0009] Initialize the 3D Gaussian ellipsoid parameters in the scene using the multi-view RGB images of the scene to be reconstructed;

[0010] Compressing the 3D Gaussian ellipsoid into a Gaussian plane, and rendering the Gaussian plane to obtain a Gaussian rasterized image of the RGB image and geometric information of the RGB image; the geometric information of the RGB image includes a normal map of the Gaussian plane, a plane-to-camera distance map, and a depth map;

[0011] Combined with the image reconstruction constraint based on exposure compensation, the single-view geometric constraint based on adaptive sampling, the multi-view photometric constraint based on photometric consistency, and the multi-view geometric constraint based on geometric projection error, the Gaussian rasterized image of the rendered RGB image and the geometric information of the RGB image are jointly optimized, and the 3D Gaussian ellipsoid parameters are updated until the optimization requirements are met; and in the joint optimization process, the fixed-frequency Gaussian shearing method is used to optimize the number of Gaussian planes;

[0012] The dense scene is reconstructed using the geometric information of the optimized RGB image.

[0013] Furthermore, compressing the 3D Gaussian ellipsoid into a Gaussian plane includes:

[0014] Compress along the shortest axis of the Gaussian ellipsoid and compress the Gaussian ellipsoid into a Gaussian plane.

[0015] Furthermore, the normal map of the Gaussian plane and the distance map from the plane to the camera are directly obtained by rendering the Gaussian plane corresponding to the RGB image, and the depth map is converted from the normal map of the Gaussian plane and the distance map from the plane to the camera.

[0016] Furthermore, the image reconstruction constraint based on exposure compensation includes:

[0017] Get the exposure factor of the original RGB image;

[0018] Correct the Gaussian rasterized image using the exposure factor;

[0019] The global photometric consistency loss between the corrected Gaussian rasterized image and the original RGB image, and the structural similarity loss between the Gaussian rasterized rendered image and the original RGB image before correction are combined to obtain the image reconstruction constraint loss term based on exposure compensation.

[0020] Furthermore, the single view geometric constraints of the adaptive sampling include:

[0021] Design a fixed sampling template, predict the sampling offset of the neighboring sampling points of each pixel in the RGB image relative to the fixed sampling template, and combine the pixel position, the offset of the fixed sampling template relative to the pixel, and the sampling offset of the neighboring sampling points relative to the fixed sampling template to obtain the position of the neighboring sampling points of each pixel;

[0022] The local plane normals of the neighboring sampling points are calculated, and the local plane normals of each pixel in the RGB image are constrained to be consistent with the normals in the normal map, thus obtaining the single view geometric constraint loss term for adaptive sampling.

[0023] Furthermore, the multi-view photometric constraint and multi-view geometric constraint include:

[0024] Get the RGB image pair of the current view and the adjacent view, calculate the homography matrix of the corresponding pixels in the RGB image pair from the current view to the adjacent view, and construct the multi-view photometric constraint loss term:

[0025]

[0026] in, represents the multi-view photometric constraint loss term, Represents the set of pixels that have corresponding relationships in the RGB image pair of the current view and the adjacent view. Represents a pixel point of the RGB image of the current perspective contained in the pixel point set. Respectively represent the image blocks captured with the pixel as the center in the RGB images of the current view and the adjacent view. represents the photometric consistency of the image patch, Represents the homography matrix from the current view to the neighboring view;

[0027] Calculate the homography matrix of the corresponding pixels in the RGB image pair from the adjacent view to the current view, combine the homography matrix from the current view to the adjacent view and the homography matrix from the adjacent view to the current view to calculate the geometric projection error, and construct the multi-view geometric constraint loss term:

[0028]

[0029]

[0030] in, represents the multi-view geometric constraint loss term, represents the homography matrix from the neighboring view to the current view, Represents pixel The geometric projection error, Represents the norm.

[0031] Furthermore, before introducing the multi-view photometric constraint and the multi-view geometric constraint, it also includes determining the pixel point Is the geometric projection error of the pixel below the threshold? If so, Multi-view photometric constraints and multi-view geometric constraints are added for joint optimization, otherwise, multi-view photometric constraints and multi-view geometric constraints are not added.

[0032] Furthermore, the fixed-frequency Gaussian shearing method comprises:

[0033] At a fixed frequency, invalid Gaussian planes are cut according to multi-view effective observations, wherein the multi-view effective observations refer to determining whether each Gaussian plane is visible to RGB images that meet a threshold number requirement, and if so, the Gaussian plane is a valid Gaussian plane, otherwise it is an invalid Gaussian plane.

[0034] Furthermore, the method of reconstructing a dense scene using geometric information of the optimized RGB image includes:

[0035] Get the optimized depth map corresponding to the multi-view RGB image;

[0036] Normal visibility judgment is used to remove noise points in the depth map. The normal visibility judgment refers to judging whether the pixel point of the RGB image corresponding to the point on the depth map is visible in space. If it is visible, the point on the depth map is not a noise point, otherwise the point on the depth map is a noise point;

[0037] The validity of the remaining points in the depth map is judged based on multi-view geometric constraints, and invalid points in the depth map are eliminated. The multi-view geometric constraint judgment refers to judging whether the geometric projection error of the pixel point of the RGB image corresponding to the point on the depth map is lower than the threshold. If so, the point on the depth map is a valid point, otherwise the point on the depth map is an invalid point.

[0038] Compared with the prior art, the advantages of the present invention are:

[0039] 1) The present invention adopts an unbiased depth rendering method, first flattens the 3D Gaussian ellipsoid into a Gaussian plane, and based on the Gaussian plane, uses Gaussian rasterization to render the Gaussian rasterized image of the RGB image and the geometric information of the RGB image. These geometric information are unbiased and can be unbiasedly fitted with the actual surface.

[0040] 2) Based on the rendered Gaussian rasterized image and the geometric information of the RGB image, the present invention combines multiple constraints for optimization to ensure geometric consistency between multiple views. In addition, considering the dynamic changes in camera exposure, the method based on exposure compensation is adopted to achieve high-precision reconstruction in outdoor scenes with drastic exposure changes.

[0041] 3) The present invention reduces the number of Gaussian planes and improves the reconstruction speed by cutting the Gaussian planes that have no gain in the reconstruction result. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of a framework of a fast and high-precision dense reconstruction method based on 3D Gaussian rasterization shown in an embodiment of the present invention.

[0043] Figure 2 It is a distribution comparison diagram of the center points of the Gaussian ellipsoid obtained by the present invention and the existing method under the conditions of image reconstruction constraints and true value depth constraints; wherein, Figure 2 (a) in the figure is the input indoor scene image. Figure 2 (b) is the result obtained by rendering using the existing method. Figure 2 (c) is the rendering result of the present invention.

[0044] Figure 3 The objects and indoor and outdoor scenes are reconstructed based on the method of the present invention; wherein, Figure 3 (a) is a Gaussian rasterized image rendered by the present invention. Figure 3 (b) is a mesh surface image rendered by the present invention. Figure 3 (c) in the figure is the mesh surface normal map obtained by rendering of the present invention.

[0045] Figure 4 is a comparison diagram of the reconstruction effects of the method of the present invention and the existing method; wherein, Figure 4 (a) is the input RGB image. Figure 4 (b) is the reconstruction effect of the existing Neus method. Figure 4 (c) is the reconstruction effect of the existing NeuralAngelo method. Figure 4 (d) is the reconstruction effect of the existing SuGaR method. Figure 4 (e) in the figure is the reconstruction effect of the present invention.

[0046] Figure 5It is a mixed reality effect picture produced by combining the object reconstructed by the method of the present invention with the outdoor scene; wherein, Figure 5 (a) is the input RGB image. Figure 5 (b) shows the mixed reality effect of the reconstruction result under two perspectives. DETAILED DESCRIPTION

[0047] The present invention is described in detail below in conjunction with the accompanying drawings. The technical features of each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0048] The present invention realizes fast high-precision dense geometric reconstruction based on 3D Gaussian rasterization. First, the high-precision geometry of the multi-view RGB image in the scene to be reconstructed is obtained based on the 3D Gaussian rasterization optimization, and then the geometric information of the multi-view RGB image is fused to obtain a high-precision dense model, that is, the dense reconstruction result corresponding to the multi-view RGB image.

[0049] In order to obtain the high-precision geometry of the multi-view RGB image of the scene to be reconstructed, refer to Figure 1 The present invention is based on 3D Gaussian rasterization. First, through a new depth rendering method, it can not only render a Gaussian rasterized image based on the input multi-view RGB image, but also render geometric information such as a normal map, a plane-to-camera distance map, and a depth map. Then, multiple constraint relationships such as adaptive sampling single-view geometric constraints, multi-view photometric constraints, and multi-view geometric constraints based on a sampling point estimation model are introduced to optimize the above geometric information and obtain globally consistent high-precision geometric information. In addition, considering the drastic changes in outdoor camera exposure, an image exposure coefficient prediction method based on an image exposure coefficient prediction model is used to introduce an image reconstruction constraint based on exposure compensation, which not only ensures the geometric consistency of the RGB image, but also ensures the photometric consistency of the RGB image. In the above-mentioned optimization process of multiple constraints, a Gaussian shearing method based on multiple views is used to accelerate the reconstruction process.

[0050] In a specific embodiment of the present invention, a fast high-precision dense reconstruction method based on 3D Gaussian rasterization mainly includes the following steps:

[0051] S1, preprocess the multi-view RGB image to obtain a 3D Gaussian ellipsoid.

[0052] Collect multi-view RGB images of the scene to be reconstructed, use the SFM algorithm (such as COLMAP) to process the RGB images, and obtain the pose of each RGB image and all sparse point clouds; use the RGB images, poses and sparse point clouds to initialize the 3D Gaussian ellipsoid parameters, and the 3D Gaussian ellipsoid parameters include the center point position, rotation matrix, scale coefficient, color coefficient and occupancy coefficient. In this embodiment, one RGB image corresponds to several 3D Gaussian ellipsoids. These initialized Gaussian ellipsoid parameters will be optimized and updated in the following steps.

[0053] S2, obtaining a Gaussian rasterized image of the RGB image and geometric information of the RGB image according to the 3D Gaussian ellipsoid rendering.

[0054] Since the 3D Gaussian ellipsoid has an irregular shape and cannot fit the surface well, and it is also difficult to convert it into regular geometric parameters, the present embodiment first flattens the 3D Gaussian ellipsoid into a Gaussian plane. The obtained plane shape can be used to conveniently render a Gaussian rasterized image, a normal map of the RGB image, and a plane-to-camera distance map, and then the plane-to-camera distance map is converted into a depth map.

[0055] In this step, the covariance matrix of the 3D Gaussian ellipsoid represents the shape of the i-th 3D Gaussian ellipsoid. Represents the orthogonal basis of the three axes of the ellipsoid, the scale coefficient It defines the size along each axis, and the superscript T indicates transposition. When the scale factor is compressed along a certain axis, the Gaussian ellipsoid will be compressed into a plane with this axis as the normal. This embodiment compresses the Gaussian ellipsoid along the axis with the minimum scale factor, so that the compressed Gaussian plane is as close as possible to the shape of the original 3D Gaussian ellipsoid.

[0056] In one embodiment of the present invention, by adding the constraint of minimizing the shortest axis To compress the 3D Gaussian ellipsoid, the above constraints are expressed as:

[0057]

[0058] in, Represents the L1 norm. Through the above constraints, the 3D Gaussian ellipsoid can be compressed into a plane, and the normal of the plane is the axial direction corresponding to the minimum scale coefficient. Since the axial direction has two ambiguous directions, this embodiment uses the viewing direction to determine the specific normal direction, that is, the angle between the viewing direction and the normal must be greater than 90 degrees. After determining the normal direction of each Gaussian plane, this embodiment uses Hybrid rendering method, rendering to get the normal map N:

[0059]

[0060] in, is the rotation matrix from the current camera to the world system, is the opacity through the i-th Gaussian plane, M is the set of Gaussian planes through which the ray emitted by the camera passes, is the axial direction of the i-th Gaussian plane.

[0061] The distance from a single Gaussian plane to the camera can be expressed as:

[0062]

[0063] in, is the position of the camera in the world system, is the Gaussian center position of the i-th Gaussian plane. Therefore, we can also use Hybrid rendering method, rendering the plane to camera distance map :

[0064]

[0065] After obtaining the normal map and the plane-to-camera distance map, the depth map D is further obtained through the intersection of the ray emitted by the camera and the Gaussian plane:

[0066]

[0067] in, is the homogeneous coordinate of the pixel point of the RGB image, and K is the intrinsic parameter matrix of the camera.

[0068] S3, updating the 3D Gaussian ellipsoid parameters according to the Gaussian rasterized image obtained by rendering and the geometric information of the RGB image.

[0069] In this embodiment, image reconstruction constraints based on exposure compensation, single-view geometric constraints of adaptive sampling, multi-view photometric constraints and multi-view geometric constraints are introduced to jointly optimize the geometric information of the rendered Gaussian rasterized image and the RGB image, and update the 3D Gaussian ellipsoid parameters. Among them, image reconstruction constraints and single-view geometric constraints of adaptive sampling can maintain the consistency of global photometrics, local depth and normal. However, due to the discreteness and irregularity of the Gaussian plane, the geometric structure under multiple views cannot be guaranteed to be completely consistent, so multi-view photometric and geometric constraints are added, and high-precision geometric information is finally obtained under the joint optimization of the above constraints.

[0070] S31, Image reconstruction constraints based on exposure compensation

[0071] In the image reconstruction constraints, the present invention takes into account the influence of camera exposure and adds exposure compensation, specifically:

[0072] Due to the dramatic changes in outdoor lighting, the exposure difference of each image is large, which will cause many floating points to be generated in the Gaussian rasterization process. In this embodiment, an image exposure coefficient prediction model based on an encoder and an MLP network is used. First, the encoder is used to encode an exposure vector z of length n for each RGB image, and then the exposure vector is passed through the MLP network to generate the exposure coefficient of the RGB image, and the Gaussian rasterized rendering image is restored to obtain a photometric consistency image:

[0073]

[0074] in, is the Gaussian rasterized rendering image before correction, It is the rectified Gaussian rasterized rendered image.

[0075] Image reconstruction constraints based on exposure compensation are expressed as:

[0076]

[0077] Among them, I is the input RGB image, that is, the true value image; represents the structural similarity constraint, represents the L1 constraint. The constraint ensures that the rectified Gaussian rasterized rendering image is consistent with the true value image. The constraint requires that the Gaussian rasterized image before correction has a similar structure to the true image. By introducing an image reconstruction constraint based on exposure compensation, it can be ensured that the Gaussian rasterized image is globally photometrically consistent and has a similar structure to the true image.

[0078] S32, Single-view geometry constraints for adaptive sampling

[0079] Assume that the neighboring pixels on the image satisfy the same local plane assumption. This assumption can be used to constrain the local depth and normal to be consistent. After rendering the depth map, sample four neighboring pixels around a pixel in the RGB image according to a certain rule. The local plane normal can be calculated from the depth of these four neighboring pixels, which is considered to be the normal of the pixel. Finally, the normal map can be calculated from the depth map through the local plane assumption. By constraining the normal map to be consistent with the normal rendered in step S2, the local plane normal can be calculated from the depth map. Figure 1 Ensure that the local depth and normal are exactly the same.

[0080] However, since neighboring pixel points may not necessarily satisfy the local plane assumption, in this embodiment, neighboring pixel points are not obtained by fixed sampling or random sampling, but are obtained through a sampling point estimation model based on image convolution. In this embodiment, the sampling point estimation model adopts a CNN neural network with a UNet structure (hereinafter referred to as the UNet network) to predict the sampling offset of the sampling point on the fixed sampling template, and then determine the sampling point position.

[0081] In a specific implementation of the present invention, the RGB image is processed by the UNet network to obtain the sampling offsets of the four neighboring pixel points corresponding to each pixel point in the RGB image relative to the four upper, lower, left, and right azimuth points of the fixed sampling template; assuming that the four upper, lower, left, and right azimuth points of the fixed sampling template are relative to the pixel point in the RGB image p = [u,v] T The offset is , the sampling offset estimated by the UNet network is , then the pixel point The positions of the four neighboring pixels (i.e., sampling points) are For convenience, we use Represents a pixel in an RGB image The corresponding four sampling point coordinates. According to the obtained sampling point position, linear interpolation is performed on the depth map (because the estimated sampling point position is not the actual pixel position) to obtain the sampling point depth , back-project the depth into the camera space to get the spatial point under the camera system , where K represents the intrinsic parameter matrix of the camera, Represents a pixel in an RGB image The corresponding homogeneous coordinates of the kth sampling point; the local plane normals of the four sampling points can be further determined as:

[0082]

[0083] in, , , , The four sampling points are the spatial points under the camera system. Represents a pixel in an RGB image The local plane normal is estimated at . The pixel point in the RGB image of the local plane estimation Normal It should be consistent with the normal rendered in step S2. This constraint is also the adaptive single view geometry constraint.

[0084] S33, Multi-view Photometric Constraints

[0085] From the RGB image of the current view r, select another RGB image of the adjacent view n. According to the plane-to-camera distance map and normal map corresponding to the pair of RGB images obtained in step S2, the homography matrix of the corresponding pixel points in the pair of RGB images can be obtained:

[0086]

[0087] in, and They are the rotation and translation transformation of the camera from view r to view n, and They are the normal map corresponding to the RGB image of view r and the distance map from the plane to the camera. and They are the camera intrinsic parameters under viewing angle n and viewing angle r respectively.

[0088] Pixels on the RGB image at view angle r The pixel points on the RGB image of view n can be transformed by the homography matrix :

[0089]

[0090] If the homography matrix is ​​correct, then the two pixels The luminosity is consistent.

[0091] In a specific implementation of the present invention, for a pixel point in an RGB image , take The 5×5 image block with the center point is used to evaluate the photometric consistency between the pixels in the image block and the pixels in the RGB images of its adjacent perspectives. This constraint is the multi-view photometric constraint. If the image block is out of bounds, it is filled with 0.

[0092] The above multi-view photometric constraints It can be expressed as:

[0093]

[0094] in, Represents the set of pixels on the RGB image of view r that have a corresponding relationship with the RGB image of view n. Respectively represent taking image blocks on the RGB image of viewing angle r and the RGB image of viewing angle n, Represents the photometric calculation of an image patch.

[0095] S34, Multi-view Geometric Constraints

[0096] Referring to the formula in step S33, similarly, the homography matrix from the RGB image at viewing angle n to the RGB image at viewing angle r is calculated: .

[0097] If there is no occlusion relationship in space, the forward and backward geometric projections of views n and r should be consistent, that is, they satisfy the following formula:

[0098]

[0099] in, represents the geometric projection error, represents the norm, are the pixels on the RGB images at viewing angles n and r respectively.

[0100] The above multi-view geometric constraints It is expressed as:

[0101]

[0102] in, Represents the set of pixels on the RGB image of view r that have a corresponding relationship with the RGB image of view n. Represents the geometric projection error.

[0103] if If it is less than the threshold, there is no occlusion relationship. The multi-view geometric constraint is to make the The value is as small as possible. If the spatial point is not visible to both views, the multi-view photometric and multi-view geometric constraints will be wrong constraints. Therefore, in this embodiment, the judgment threshold is set to 2. When the value is less than 2, the spatial point is considered to be visible in both views, and multi-view photometric constraints and multi-view geometric constraints are added to the pixel point. Otherwise, multi-view photometric constraints and multi-view geometric constraints are abandoned. The value can not only determine the occlusion of spatial points, but also measure the degree of geometric consistency.

[0104] S4, during the optimization process of step S3, the invalid Gaussian plane is cut according to the effective observation of multiple views at a fixed frequency to reduce the complexity of dense reconstruction and accelerate the reconstruction process.

[0105] In a specific implementation of the present invention, if a Gaussian plane is visible in the RGB image under less than 3 viewing angles, the Gaussian plane is likely to be an under-constrained floating point and will not bring any benefit to the dense reconstruction process. These potential invalid Gaussian planes are cut to reduce the number of Gaussian planes and improve the rendering speed.

[0106] In this embodiment, when defining whether a Gaussian plane is visible to an RGB image at a certain viewing angle, it is considered that if the Gaussian plane is observed when the cumulative transparency of light in a certain view is less than 0.5, then the Gaussian plane is considered to be observable by the view, otherwise it is considered that the Gaussian plane cannot be observed by the view. Based on this, all views are traversed, and the number of views in which each Gaussian plane is effectively observed is counted. When the number of views is less than 3, the Gaussian is cut.

[0107] S5, repeat the above steps S2-S4 until the optimization requirements are met, record the optimal depth map generated in step S2 at this time, and fuse the optimal depth maps corresponding to the multi-view RGB images to obtain a dense reconstruction model.

[0108] In this step, since the 3D Gaussian ellipsoid parameters have reached the optimal state after being optimized in all the previous steps, the depth map in the geometric information generated thereby is also in the optimal state.

[0109] In a specific implementation of the present invention, for the optimal depth map corresponding to the multi-view RGB image, the following operations are performed:

[0110] First, the normal visibility is used to remove noise points. The normal visibility judgment is implemented based on step S34. Since the points on the RGB image and the depth image correspond one to one, the local plane normal corresponding to the point on the depth image is judged. The angle between the point and the current viewing angle of the camera. If the angle exceeds a threshold (for example, 91 degrees), the point is considered visible; otherwise, it is considered invisible and the depth value corresponding to the point is removed from the depth map.

[0111] Then, the validity of the remaining depth points is determined based on the multi-view geometric constraints, which is also implemented based on step S34. If step S34 calculates a certain pixel point If the value is less than 1, the depth corresponding to the pixel is considered accurate and reliable; otherwise, the depth is considered unreliable and the depth value corresponding to the point is removed from the depth map.

[0112] After the above two rounds of screening, the remaining valid depth points are projected into the world space, and a dense reconstruction model is obtained by fusion using a grid-based fusion reconstruction algorithm. In this embodiment, the TSDF Fusion algorithm is used, and the process of obtaining a dense reconstruction model based on depth point fusion can be implemented by existing technologies in the art, which will not be repeated here.

[0113] The present invention can be applied to any image-based reconstruction scheme. Based on the input image, without any other prior information, a high-precision dense reconstruction result can be quickly obtained. The dense mapping result can be used to generate more complex AR, VR and MR effects such as occlusion and collision. It can also be applied to the field of robotics to achieve path planning and obstacle avoidance functions. It can also be used in the field of AIGC to generate high-precision 3D models.

[0114] In order to verify the effect of the present invention, this embodiment is experimentally compared with the existing methods on multiple public data sets, where: Figure 2 This is a comparison diagram of the distribution of the center points of the Gaussian ellipsoid obtained by the present invention and the existing method under the conditions of image reconstruction constraints and true depth constraints. Figure 2 (a) in the figure is the input indoor scene image. Figure 2 (b) is the result obtained by the existing rendering method. It can be seen that the center point of the Gaussian ellipsoid does not fit the actual surface very well and the noise is very large. Figure 2 (c) in the figure is the result obtained by the present invention. It can be seen that the position of the center point of the Gaussian ellipsoid fits the actual surface and the noise is significantly lower. Figure 3 The objects and indoor and outdoor scenes reconstructed based on the method of the present invention are: Figure 3 (a) is a Gaussian rasterized image rendered by the present invention. Figure 3 (b) is a mesh surface image rendered by the present invention. Figure 3 (c) in the figure is a normal map of the mesh surface rendered by the present invention. It can be seen that the present invention is suitable for the reconstruction of various scenes such as indoor and outdoor scenes and single objects. Figure 4 This is a comparison of the reconstruction effects of the method of the present invention and other existing methods (Neus method, NeuralAngelo method, SuGaR method), where: Figure 4 (a) is the input RGB image. Figure 4 (b) is the reconstruction effect of the existing Neus method. Figure 4 (c) is the reconstruction effect of the existing NeuralAngelo method. Figure 4 (d) is the reconstruction effect of the existing SuGaR method. Figure 4 (e) in the figure is the reconstruction effect of the present invention. It can be seen that the method of the present invention can reconstruct more surface details, and the surface accuracy is obviously better than other methods. Figure 5 It is a mixed reality effect image generated by combining the object reconstructed by the method of the present invention with the outdoor scene, wherein: Figure 5 (a) is the input RGB image. Figure 5(b) is the mixed reality effect under two perspectives in the reconstruction result. It can be seen that since the objects and scenes reconstructed by the method of the present invention are of high precision, after combining them, a more realistic object occlusion relationship can be obtained.

[0115] Further testing of the reconstruction time of the method of the present invention and other existing methods (Neus method, NeuralAngelo method, SuGaR method) shows that on Nvidia RTX 4090 GPU, the reconstruction time of Neus, NeuralAngelo, SuGaR and the method of the present invention is 12 hours, 128 hours, 2 hours and 1 hour respectively. It can be seen that the reconstruction result obtained by the method of the present invention is significantly improved compared with the previous method, and the optimization time is significantly faster than the previous method.

[0116] In this embodiment, a fast high-precision dense reconstruction system based on 3D Gaussian rasterization is also provided, which is used to implement the above embodiment. The terms "module", "unit", etc. used below can implement a combination of software and / or hardware for predetermined functions. Although the system described in the following embodiments is preferably implemented in software, it is also possible to implement hardware, or a combination of software and hardware.

[0117] This embodiment provides a fast and high-precision dense reconstruction system based on 3D Gaussian rasterization, including:

[0118] A Gaussian ellipsoid parameter initialization module is used to initialize the 3D Gaussian ellipsoid parameters in the scene using the multi-view RGB image of the scene to be reconstructed;

[0119] A rendering module, which is used to compress the 3D Gaussian ellipsoid into a Gaussian plane, and obtain a Gaussian rasterized image of the RGB image and geometric information of the RGB image according to the Gaussian plane rendering; the geometric information of the RGB image includes a normal map of the Gaussian plane, a plane-to-camera distance map, and a depth map;

[0120] A joint optimization module is used to jointly optimize the Gaussian rasterized image of the rendered RGB image and the geometric information of the RGB image by combining the image reconstruction constraints based on exposure compensation, the single-view geometric constraints of adaptive sampling, the multi-view photometric constraints and the multi-view geometric constraints, and update the 3D Gaussian ellipsoid parameters until the optimization requirements are met; and in the joint optimization process, a fixed-frequency Gaussian shearing method is used to optimize the number of Gaussian planes;

[0121] The dense scene reconstruction module is used to reconstruct the dense field using the geometric information of the optimized RGB image.

[0122] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment, and the implementation methods of the remaining modules will not be repeated here. The system embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0123] The embodiments of the system of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The system embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, the corresponding computer program instructions in the non-volatile memory are read into the memory by the processor of any device with data processing capabilities and run.

[0124] Obviously, the above-described embodiments and drawings are only some examples of the present application. For those of ordinary skill in the art, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that, although the work done in this development process may be complicated and lengthy, for those of ordinary skill in the art, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application. Without departing from the concept of the present application, several variations and improvements can also be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A fast and high-precision dense reconstruction method based on 3D Gaussian rasterization, characterized in that: include: Initialize the 3D Gaussian ellipsoid parameters in the scene using the multi-view RGB images of the scene to be reconstructed; Compressing the 3D Gaussian ellipsoid into a Gaussian plane, and rendering the Gaussian plane to obtain a Gaussian rasterized image of the RGB image and geometric information of the RGB image; the geometric information of the RGB image includes a normal map of the Gaussian plane, a plane-to-camera distance map, and a depth map; Combined with the image reconstruction constraint based on exposure compensation, the single-view geometric constraint based on adaptive sampling, the multi-view photometric constraint based on photometric consistency, and the multi-view geometric constraint based on geometric projection error, the Gaussian rasterized image of the rendered RGB image and the geometric information of the RGB image are jointly optimized, and the 3D Gaussian ellipsoid parameters are updated until the optimization requirements are met; and in the joint optimization process, the fixed-frequency Gaussian shearing method is used to optimize the number of Gaussian planes; The image reconstruction constraint based on exposure compensation includes: Obtain the exposure coefficient of the original RGB image; use the exposure coefficient to correct the Gaussian rasterized image; combine the global photometric consistency loss of the corrected Gaussian rasterized image and the original RGB image, and the structural similarity loss of the Gaussian rasterized rendered image before correction and the original RGB image to obtain the image reconstruction constraint loss term based on exposure compensation; The single view geometric constraints of the adaptive sampling include: Design a fixed sampling template, predict the sampling offset of the neighboring sampling points of each pixel in the RGB image relative to the fixed sampling template, and combine the pixel position, the offset of the fixed sampling template relative to the pixel, and the sampling offset of the neighboring sampling points relative to the fixed sampling template to obtain the position of the neighboring sampling points of each pixel; calculate the local plane normal of the neighboring sampling points, constrain the local plane normal of each pixel in the RGB image to be consistent with the normal in the normal map, and obtain the single view geometric constraint loss term of adaptive sampling; The multi-view photometric constraint and multi-view geometric constraint include: Get the RGB image pair of the current view and the adjacent view, calculate the homography matrix of the corresponding pixels in the RGB image pair from the current view to the adjacent view, and construct the multi-view photometric constraint loss term: Among them, L mvrgb represents the multi-view photometric constraint loss term, V represents the set of corresponding pixels in the RGB image pair of the current view and the adjacent view, and p r Represents a pixel point of the RGB image of the current perspective contained in the pixel point set, I r (.),I n (.) represent the image blocks centered on the pixel in the RGB images of the current view and the adjacent view, NCC(.) represents the photometric consistency of the image blocks, and H rn Represents the homography matrix from the current view to the neighboring view; Calculate the homography matrix of the corresponding pixels in the RGB image pair from the adjacent view to the current view, combine the homography matrix from the current view to the adjacent view and the homography matrix from the adjacent view to the current view to calculate the geometric projection error, and construct the multi-view geometric constraint loss term: Among them, L mvgeo represents the multi-view geometric constraint loss term, H nr represents the homography matrix from the neighboring view to the current view, Represents pixel p r The geometric projection error is , ‖.‖ represents the norm; the dense scene is reconstructed using the geometric information of the optimized RGB image.

2. The fast high-precision dense reconstruction method based on 3D Gaussian rasterization according to claim 1, characterized in that: The method of compressing the 3D Gaussian ellipsoid into a Gaussian plane includes: Compress along the shortest axis of the Gaussian ellipsoid and compress the Gaussian ellipsoid into a Gaussian plane.

3. The fast high-precision dense reconstruction method based on 3D Gaussian rasterization according to claim 1, characterized in that: The normal map of the Gaussian plane and the distance map from the plane to the camera are directly obtained by rendering the Gaussian plane corresponding to the RGB image, and the depth map is converted from the normal map of the Gaussian plane and the distance map from the plane to the camera.

4. The fast high-precision dense reconstruction method based on 3D Gaussian rasterization according to claim 1, characterized in that: Before introducing the multi-view photometric constraint and the multi-view geometric constraint, it also includes determining the pixel point p r Is the geometric projection error of the pixel p lower than the threshold? If so, r Multi-view photometric constraints and multi-view geometric constraints are added for joint optimization, otherwise, multi-view photometric constraints and multi-view geometric constraints are not added.

5. The fast high-precision dense reconstruction method based on 3D Gaussian rasterization according to claim 1, characterized in that: The fixed-frequency Gaussian shearing method comprises: At a fixed frequency, invalid Gaussian planes are cut according to multi-view effective observations, wherein the multi-view effective observations refer to determining whether each Gaussian plane is visible to RGB images that meet a threshold number requirement, and if so, the Gaussian plane is a valid Gaussian plane, otherwise it is an invalid Gaussian plane.

6. The fast high-precision dense reconstruction method based on 3D Gaussian rasterization according to claim 1, characterized in that: The method of reconstructing a dense scene using geometric information of the optimized RGB image includes: Get the optimized depth map corresponding to the multi-view RGB image; Normal visibility judgment is used to remove noise points in the depth map. The normal visibility judgment refers to judging whether the pixel point of the RGB image corresponding to the point on the depth map is visible in space. If it is visible, the point on the depth map is not a noise point, otherwise the point on the depth map is a noise point; The validity of the remaining points in the depth map is judged based on multi-view geometric constraints, and invalid points in the depth map are eliminated. The multi-view geometric constraint judgment refers to judging whether the geometric projection error of the pixel point of the RGB image corresponding to the point on the depth map is lower than the threshold. If so, the point on the depth map is a valid point, otherwise the point on the depth map is an invalid point.

7. A fast and high-precision dense reconstruction system based on 3D Gaussian rasterization, characterized in that: include: A Gaussian ellipsoid parameter initialization module is used to initialize the 3D Gaussian ellipsoid parameters in the scene using the multi-view RGB image of the scene to be reconstructed; A rendering module, which is used to compress the 3D Gaussian ellipsoid into a Gaussian plane, and obtain a Gaussian rasterized image of the RGB image and geometric information of the RGB image according to the Gaussian plane rendering; the geometric information of the RGB image includes a normal map of the Gaussian plane, a plane-to-camera distance map, and a depth map; A joint optimization module is used to jointly optimize the Gaussian rasterized image of the rendered RGB image and the geometric information of the RGB image by combining the image reconstruction constraints based on exposure compensation, the single-view geometric constraints of adaptive sampling, the multi-view photometric constraints and the multi-view geometric constraints, and update the 3D Gaussian ellipsoid parameters until the optimization requirements are met; and in the joint optimization process, a fixed-frequency Gaussian shearing method is used to optimize the number of Gaussian planes; The image reconstruction constraint based on exposure compensation includes: Obtain the exposure coefficient of the original RGB image; use the exposure coefficient to correct the Gaussian rasterized image; combine the global photometric consistency loss of the corrected Gaussian rasterized image and the original RGB image, and the structural similarity loss of the Gaussian rasterized rendered image before correction and the original RGB image to obtain the image reconstruction constraint loss term based on exposure compensation; The single view geometric constraints of the adaptive sampling include: Design a fixed sampling template, predict the sampling offset of the neighboring sampling points of each pixel in the RGB image relative to the fixed sampling template, and combine the pixel position, the offset of the fixed sampling template relative to the pixel, and the sampling offset of the neighboring sampling points relative to the fixed sampling template to obtain the position of the neighboring sampling points of each pixel; calculate the local plane normal of the neighboring sampling points, constrain the local plane normal of each pixel in the RGB image to be consistent with the normal in the normal map, and obtain the single view geometric constraint loss term of adaptive sampling; The multi-view photometric constraint and multi-view geometric constraint include: Get the RGB image pair of the current view and the adjacent view, calculate the homography matrix of the corresponding pixels in the RGB image pair from the current view to the adjacent view, and construct the multi-view photometric constraint loss term: Among them, L mvrgb represents the multi-view photometric constraint loss term, V represents the set of corresponding pixels in the RGB image pair of the current view and the adjacent view, and p r Represents a pixel point of the RGB image of the current perspective contained in the pixel point set, I r (.),I n (.) represent the image blocks centered on the pixel in the RGB images of the current view and the adjacent view, NCC(.) represents the photometric consistency of the image blocks, and H rn Represents the homography matrix from the current view to the neighboring view; Calculate the homography matrix of the corresponding pixels in the RGB image pair from the adjacent view to the current view, combine the homography matrix from the current view to the adjacent view and the homography matrix from the adjacent view to the current view to calculate the geometric projection error, and construct the multi-view geometric constraint loss term: Among them, L mvgeo represents the multi-view geometric constraint loss term, H nr represents the homography matrix from the neighboring view to the current view, Represents pixel p r The geometric projection error of , ‖.‖ represents the norm; The dense scene reconstruction module is used to reconstruct the dense scene using the geometric information of the optimized RGB image.

Citation Information

Cited By

  • An indoor scene three-dimensional surface reconstruction method based on generative completion and cross-view constraints

    CN122906250A