Point cloud completion method based on octree and multi-granularity grid fusion
By fusing octrees and multi-granularity rasteres, and combining attention mechanisms to align and optimize point cloud features, the problem of inaccurate geometric feature recognition in point cloud completion is solved, achieving high-precision and detail-preserving point cloud completion results.
Patent Information
- Application Number
- CN202511508313.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-22
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2045-10-22
AI Technical Summary
Existing point cloud completion methods struggle to accurately identify geometric features when processing incomplete point clouds, resulting in the loss or invalidation of point cloud details and an inability to recover the complete point cloud shape.
A method based on octree and multi-granularity raster fusion is adopted. Point cloud features are extracted by encoder, octree is constructed and node importance scores are calculated. Cross attention and self attention mechanisms are used for feature alignment and fusion, and a multilayer perceptron is combined to generate a complete point cloud.
It effectively identifies and repairs missing areas in point clouds, generating point clouds with rich details and complete structure, improving the accuracy and semantic consistency of point cloud completion, and preserving sharp features and local geometric details.
Smart Images

Figure CN120997408A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of point cloud reconstruction technology, and in particular to a point cloud completion method based on the fusion of octree and multi-granularity raster. Background Technology
[0002] Point clouds, as discrete data representations of the surface of three-dimensional objects, are acquired through sensors such as LiDAR and depth cameras and are widely used in fields such as autonomous driving and industrial inspection. Point clouds record the spatial geometric information of an object's surface and are a key carrier connecting the physical world and digital models. With the rapid development of 3D perception and modeling technologies, the requirements for the integrity and accuracy of point cloud data are increasing daily.
[0003] Point cloud completion aims to predict and repair incomplete 3D point cloud data using algorithms. Its goal is to reconstruct a complete 3D shape from partially scanned, occluded, or incomplete point clouds, restoring missing geometric structures and details. This technology is a key step in improving the robustness and reliability of 3D systems. Currently, mainstream point cloud completion methods can be mainly divided into two categories: methods based on traditional geometric processing and methods based on deep learning.
[0004] Traditional geometric processing methods typically rely on local geometric properties of point clouds (such as normal vectors and curvature) for surface interpolation or extrapolation. While these methods can maintain a certain level of geometric accuracy locally, they lack sufficient local contextual information to guide the repair process when the missing area of the point cloud is large, leading to method failure.
[0005] Deep learning-based methods typically employ an encoder-decoder architecture to map the incomplete input point cloud into a low-dimensional latent space, from which the complete point cloud is then decoded. While these methods have made significant progress in overall shape generation, information compression during the encoding process and the dominance of global features can easily lead to smoothing and blurring of details such as edges and holes in the generated completed point cloud, lacking sharp geometric features. When dealing with complex missing parts, it is difficult to guarantee the geometric and semantic coherence between the completed part and the known part, potentially resulting in the generation of unreasonable or distorted geometric structures. Summary of the Invention
[0006] Based on the above analysis, the embodiments of the present invention aim to provide a point cloud completion method based on the fusion of octree and multi-granularity grid, in order to solve the problem that the existing method of inaccurate identification of point cloud geometric features leads to the loss of point cloud details and the inability to recover a reasonable point cloud shape.
[0007] This invention provides a point cloud completion method based on the fusion of octree and multi-granularity raster, comprising the following steps: After normalizing the point cloud to be completed, the point cloud features are extracted by the encoder. An octree is constructed based on the normalized point cloud to be completed and its features. The key nodes and their point cloud features are extracted by calculating the importance score of each node in the octree. By using cross-attention, the point cloud features of the key nodes are aligned and fused with the point cloud features of the point cloud to be completed, resulting in aligned point cloud features of the key nodes. Then, multi-granularity rasterization projection and fusion are performed to obtain fused features of the key nodes. The fused features of key nodes are assigned to the corresponding nodes of the octree, and the nodes of the octree are optimized through a self-attention mechanism to obtain the optimized global point cloud features. The optimized global point cloud features are fed into the decoder to obtain the completed point cloud.
[0008] Based on further improvements to the above method, multi-granularity rasterization projection and fusion are performed to obtain the fusion features of key nodes, including: The point cloud features of the aligned key nodes are projected onto 3D grids of different resolutions to form a multi-resolution feature map pyramid. Dilated convolution is applied to the medium and high resolution features of the feature map pyramid to extract the first feature, and self-attention mechanism is applied to the low resolution features of the feature map pyramid to extract the second feature. The first feature and the upsampled second feature are then fused through a gated fusion mechanism to obtain the fused features of the key nodes.
[0009] Based on further improvements to the above method, a gating fusion mechanism is used to fuse the first feature and the upsampled second feature, including: The first feature and the upsampled second feature are concatenated along the channel dimension; the concatenated features are then convolved and input into the Sigmoid function to generate a spatially adaptive gated weight map. The first feature and the upsampled second feature are weighted and summed using a gated weighted graph.
[0010] Based on the further improvement of the above method, the decoder includes two multilayer perceptrons in series. The first multilayer perceptron generates a reference point cloud set based on the optimized global point cloud features. The optimized global point cloud features are propagated to the reference point cloud set and fused with the reference point cloud set before being fed into the second multilayer perceptron to predict the displacement field of each point cloud. The displacement field of each point cloud is added to the reference point set at corresponding points and then subjected to inverse normalization to output the completed point cloud.
[0011] Based on the further improvement of the above method, the importance score of each node in the octree is calculated by calculating the weighted sum of the curvature, density gradient and boundary distance of each node; the curvature is obtained by calculating the proportion of the smallest eigenvalue of the covariance matrix of the point cloud within the node; the density gradient is obtained by calculating the partial derivatives of the node density field in the three coordinate directions and summing the absolute values; the boundary distance is obtained by calculating the minimum distance from the point cloud within the node to the node boundary.
[0012] Based on the further improvement of the above method, key nodes are extracted by obtaining leaf nodes whose importance scores are greater than their corresponding final segmentation thresholds. The final segmentation threshold is the final value obtained by dynamically adjusting the segmentation threshold during the octree construction process according to the importance score of the node, the current recursion depth, the node offset, and the current node side length until the maximum recursion depth or the minimum node size is reached.
[0013] Based on the above method, a further improvement is made to align and fuse the point cloud features of the key nodes with the point cloud features of the point cloud to be completed through cross-attention, resulting in aligned point cloud features of the key nodes, including: The query matrix is calculated based on the point cloud features of the key nodes, the key matrix and value matrix are calculated based on the point cloud features of the point cloud to be completed, and then the enhanced features of the key nodes are obtained through cross attention. After residual connection and layer normalization of the enhanced features of key nodes, the point cloud features of the key nodes are aligned and output by the feedforward neural network.
[0014] Based on the above method, a further improvement is made to the point cloud to be completed, which involves normalization processing, including: Obtain the 2D image corresponding to the point cloud to be completed; The scale factor is calculated based on the camera focal length, the distance to the target object, and the pixel height in the image. After translating the point cloud coordinates to the center point, scale them to the unit sphere space using a scale factor.
[0015] Based on the above method, further improvements are made to the octree by optimizing each node through a self-attention mechanism to obtain optimized global point cloud features, including: Nodes belonging to the same parent node or the same depth are divided into blocks. A self-attention mechanism is calculated within each block. The calculation results of each block are subjected to residual connection and layer normalization to obtain the optimized point cloud features of each block. By stitching together the optimized point cloud features of all blocks and mapping them to the target dimension, the optimized global point cloud features are obtained.
[0016] Based on the above method, the network models used in the method are jointly trained in an end-to-end manner. During the training process, the joint loss function is minimized and the learnable parameters of each network model are updated through backpropagation. The joint loss function is a weighted sum of chamfer distance loss, Earth movement distance loss and displacement field regularization term loss.
[0017] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects: 1. By introducing an octree spatial index structure and a multi-granularity raster fusion mechanism, combined with attention-driven feature alignment and optimization strategies, missing regions in point clouds are effectively identified and repaired. The generated point clouds are rich in detail and structurally complete, improving computational efficiency and significantly enhancing the accuracy, detail preservation, and semantic consistency of point cloud completion.
[0018] 2. Octree segmentation based on multi-index importance scores: By integrating curvature, density gradient and boundary distance into a multi-index scoring mechanism, combined with a dynamic threshold adjustment strategy, it achieves adaptive identification of key regions for point cloud completion, accurately locates key regions such as edges and holes, and combines multi-granularity feature dual-channel fusion to better preserve sharp features and local geometric details during the completion process, avoiding over-smoothing.
[0019] 3. By using cross-attention and block self-attention mechanisms, we ensure that the completed part is consistent with the known part in terms of geometric structure and semantics, thus generating a reasonable overall shape.
[0020] In this invention, the above-described technical solutions can be combined with each other to achieve more preferred combinations. Other features and advantages of this invention will be set forth in the following description, and some advantages may become apparent from the description or be learned by practicing the invention. The objects and other advantages of this invention can be realized and obtained from what is particularly pointed out in the description and drawings. Attached Figure Description
[0021] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts. Figure 1 This is a flowchart of a point cloud completion method based on the fusion of an octree and a multi-granularity raster in an embodiment of the present invention. Detailed Implementation
[0022] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.
[0023] A specific embodiment of the present invention discloses a point cloud completion method based on the fusion of octree and multi-granularity raster, such as... Figure 1 As shown, it includes the following steps: S1. After normalizing the point cloud to be completed, the point cloud features are extracted by the encoder.
[0024] Point cloud data is usually collected by sensors such as 3D LiDAR and depth cameras, and sometimes some areas are missing due to occlusion, noise or limited viewpoint.
[0025] First, the point cloud data to be completed is normalized to eliminate scale differences, including: Obtain the 2D image corresponding to the point cloud to be completed; that is, obtain the 2D RGB depth map corresponding to the 3D point cloud data, so that the data of these two modalities match in physical size. The scale factor is calculated based on the camera focal length, the distance to the target object, and the pixel height in the image. After translating the point cloud coordinates to the center point, scale them to the unit sphere space using a scale factor.
[0026] Specifically, the normalized point cloud coordinates are calculated using the following formula: , in, and They represent the first The normalized coordinates and original coordinates of a point cloud Indicates the scale factor. Indicates the camera's focal length; This indicates the distance from the target object to the camera, in meters. This represents the actual pixel height of the target object in the image; Indicates the coordinates of the center point; This indicates the total number of point clouds to be completed; This represents the maximum distance from all point cloud coordinates to the center point, serving as the normalization reference.
[0027] Furthermore, the normalized point cloud is input into the encoder to extract its depth features. In this embodiment, the encoder uses a dynamic graph convolutional neural network (DGCNN), which outputs multi-scale features as point cloud features through multiple edge convolution operations.
[0028] Specifically, feature extraction using dynamic graph convolutional neural networks includes: For each point in the normalized point cloud, multiple nearest neighbors are found in the feature space defined by cosine similarity to construct a local graph. Calculate the feature difference between each point and its nearest neighbor, extract edge features through a multilayer perceptron with shared weights, and aggregate them through max pooling; repeat the above edge convolution operation at least three times, and concatenate the features output by each edge convolution operation to obtain multi-scale point cloud features.
[0029] It should be noted that when finding the nearest neighbor, the feature space of the first EdgeConv edge convolution operation is the coordinate space, and the subsequent ones are high-level feature spaces. That is, in the first EdgeConv layer, its input features are the initial three-dimensional coordinates of each point in the normalized point cloud and low-level attributes such as color. At this time, cosine similarity is calculated in this feature space to construct the local graph structure. In the subsequent EdgeConv layers, the features used to calculate cosine similarity are the high-order abstract features output by the previous EdgeConv layer.
[0030] For example, the number of nearest neighbors is 20, and 3 edge convolution operations are performed.
[0031] The formula for calculating multi-scale point cloud features is: , in, This represents the point cloud features of the point cloud to be completed. , Each point cloud Dimensional features; Point cloud after normalization The number of nearest neighbors, This represents a multilayer perceptron with shared weights. Indicates feature splicing, This indicates a max pooling operation. Indicates the number of edge convolution operations. Indicates the total number of times; This represents the normalized set of point clouds. Point cloud The The nearest neighbor.
[0032] S2. Construct an octree based on the normalized point cloud to be completed and its features. Extract key nodes and their point cloud features by calculating the importance score of each node in the octree.
[0033] It should be noted that, based on the normalized point cloud data and point cloud features, an octree structure is constructed, including: Using the bounding box of the point cloud as the root node, set the initial segmentation threshold and the minimum node size (i.e., the minimum voxel size); where the minimum node size is twice the average point spacing of the point cloud (the average point spacing is obtained by globally averaging the distances between each point and its nearest neighbor). Starting from the root node, the space containing the point cloud bounding box is recursively subdivided into eight child nodes (i.e., voxels) until the minimum node size is reached. At the same time, the segmentation threshold (subdivision granularity) is dynamically adjusted: high curvature regions are subdivided finely, and flat regions are subdivided coarsely.
[0034] During the recursive subdivision process, an importance score is calculated for each node to identify key regions (such as edges, holes, and sharp areas). The importance score is obtained by calculating the weighted sum of the curvature, density gradient, and boundary distance of each node; where curvature is obtained by calculating the proportion of the smallest eigenvalue of the point cloud covariance matrix within the node; density gradient is obtained by calculating the partial derivatives of the node's density field in the three coordinate directions and summing their absolute values; and boundary distance is obtained by calculating the minimum distance from the point cloud within the node to the node boundary.
[0035] It should be noted that curvature represents the degree of bending of the point cloud surface within a node; high curvature typically corresponds to edges or holes. Density gradient represents the rate of change of point density between nodes; abrupt changes usually occur at node boundaries. Boundary distance represents the distance from a node to a missing region of the point cloud; a smaller value indicates that the points within the node are closer to the boundary, which may be an edge or transition region, while a larger value may indicate a flat region. Together, these three factors constitute a complete importance assessment.
[0036] Specifically, the formula for calculating the importance score is as follows: , in, Represents a node Importance score , and Representing nodes respectively The curvature, density gradient, and boundary distance, , and These represent the weights of curvature, density gradient, and boundary distance, respectively. ; Represents a node The minimum eigenvalue of the point cloud covariance matrix. Represents a node The sum of all eigenvalues of the point cloud covariance matrix; , and These represent the nodal density fields at... , and Partial derivatives in the coordinate directions; Represents a node The geometric boundary; Represents a node Normalized point clouds, Represents a node The number of point clouds in the cloud.
[0037] It should be noted that the initial splitting threshold is dynamically adjusted during the octree construction process based on the node's importance score, the current recursion depth, the node offset, and the current node's side length, including: During the recursive subdivision process, if the importance score of a node is greater than the current segmentation threshold and the current depth has not reached the maximum value, offset detection is performed. The average Euclidean distance between all points within the node and the node center is calculated as the node offset. If the node offset exceeds the preset offset threshold, it is marked as a high-sensitivity region, and a preset proportion of the current node's side length, such as 10%, is taken as the segmentation threshold for the next subdivision. The subdivision is then continued, and the segmentation threshold is dynamically adjusted to the minimum node size. Otherwise, the subdivision is terminated.
[0038] After the recursion is completed, for each leaf node, the actual effective segmentation threshold of its level is recorded as the final segmentation threshold for that node; all nodes with importance scores greater than their corresponding final segmentation thresholds are marked as key nodes.
[0039] Establish a mapping relationship between the nodes in the octree to record the relationship between each point cloud point and the octree node.
[0040] The point cloud and its corresponding DGCNN point cloud features within key nodes are extracted. Then, within each key node, the point cloud features of all point clouds are aggregated using average pooling to obtain the point cloud features of the key node. When there are... There are 1 key node, and the point cloud features of each key node are as follows: In dimension 1, the point cloud features of all key nodes are represented as follows: .
[0041] It should be noted that, Represents the set of real numbers. express A real vector space of dimension 1.
[0042] S3. Align and fuse the point cloud features of the key nodes with the point cloud features of the point cloud to be completed by cross attention to obtain the aligned point cloud features of the key nodes. Then perform multi-granularity rasterization projection and fusion to obtain the fused features of the key nodes.
[0043] A cross-attention mechanism is used to align and fuse the point cloud features of key nodes with those of the point cloud to be filled in, thereby enhancing the semantic consistency of the missing regions. This includes: Based on the point cloud features of key nodes Calculate the query matrix Based on the point cloud features of the point cloud to be completed Calculate the key matrix Sum matrix Then, enhanced features of key nodes are obtained through cross-attention. The formula is shown below: , in, , and These represent the query matrix weight, key matrix weight, and value matrix weight, respectively. Indicates the scaling factor. This indicates the transpose operation.
[0044] The enhanced features of key nodes are subjected to residual connections and layer normalization, and the aligned point cloud features of the key nodes are output through a feedforward neural network, as shown in the following formula: , in, The feature matrix after the layer normalization is represented. Represents the projection matrix. Presentation layer normalization operation.
[0045] Finally, The input is fed into a feedforward neural network (FFN) for further feature processing and dimension adaptation to obtain the aligned point cloud features of the key nodes. The feedforward neural network consists of two linear transformation layers and a nonlinear activation function between them.
[0046] The formula is shown below: , in, This represents the point cloud features of the aligned key nodes. This indicates that feedforward neural network processing is being performed. This represents the dimension of the point cloud features for each aligned key node.
[0047] It should be noted that the point cloud features of the aligned key nodes not only incorporate global context information but also undergo nonlinear transformation, giving them stronger representation capabilities and providing high-quality input for subsequent multi-granularity raster fusion.
[0048] Furthermore, the aligned key node features are projected onto a multi-granularity raster and fused using a dual-path method to simultaneously capture details and global structure, including: The point cloud features of the aligned key nodes are projected onto 3D grids of different resolutions to form a multi-resolution feature map pyramid. Dilated convolution is applied to the medium and high resolution features of the feature map pyramid to extract the first feature, and self-attention mechanism is applied to the low resolution features of the feature map pyramid to extract the second feature. The first feature and the upsampled second feature are then fused through a gated fusion mechanism to obtain the fused features of the key nodes.
[0049] Specifically, rasterization projection divides 3D space into voxel grids of different resolutions (e.g., 128). 3 64 3 32 3 For each key node, its point cloud features are interpolated (e.g., trilinear interpolation) to the corresponding grid position. High resolution (128³) preserves edge details, is first voxelized, and then downsampled to medium resolution (64³) and low resolution (32³) using a 3×3×3 convolution with a stride of 2. Trilinear interpolation is used for each downsampling step, maintaining geometric continuity, thus completing multi-scale downsampling. Features are aggregated within each voxel grid using max pooling or average pooling as raster feature values. Finally, raster feature values of different resolutions are integrated to form a multi-resolution feature map pyramid.
[0050] The feature map at each resolution level is represented by the following formula: , in, Indicates the first Feature maps with high resolution. , This indicates the overall level of resolution, usually ; Indicates the first Level resolution, This indicates the highest resolution at level 1, where the depth dimension is the same as the height and width dimensions.
[0051] Furthermore, a dual-path fusion mechanism is adopted: 3D dilated convolution is applied to medium and high resolution features to extract the first feature. This is used to extract fine-grained features such as edges and textures. For example, the dilated convolution kernel size is set to 3, and the dilation / dilation ratio is set to 2.
[0052] A self-attention mechanism is applied to extract the second feature from the low-resolution features of the feature map pyramid. To capture long-range dependencies and global structural features. The second feature... Upsampling to At the same resolution, .
[0053] Finally, the first feature and the upsampled second feature are fused using a gating fusion mechanism to obtain the fused features of the key nodes, including: The first feature is concatenated with the upsampled second feature along the channel dimension; the concatenated feature is then convolved and input into the Sigmoid function to generate a spatially adaptive gated weight map. The formula is shown below: , in, This represents the Sigmoid function. This indicates a convolution operation, for example, using a 1×1 or 3×3 convolution kernel.
[0054] By using a gated weight map to perform a weighted summation of the first feature and the upsampled second feature, the fused features of the key nodes are obtained. The formula is shown below: , in, This represents element-wise multiplication, i.e., the Hadamard product; This indicates element-wise addition, which merges the weighted mid-to-high frequency and low-frequency features.
[0055] After the above steps, the fused features of the key nodes contain complete information from local details to global context. These features are obtained by deeply optimizing the point cloud features of the original key nodes.
[0056] S4. Assign the fused features of the key nodes to the corresponding nodes of the octree, and optimize each node of the octree through the self-attention mechanism to obtain the optimized global point cloud features.
[0057] It should be noted that, based on the mapping relationship established when constructing the octree in step S2, the fusion features of each key node are assigned to the nodes of its respective octree according to the index of each key node.
[0058] Furthermore, starting from the root node of the octree, each node of the octree is optimized level by level using a self-attention mechanism. Specifically, this means: Nodes belonging to the same parent node or the same depth are grouped into blocks. A self-attention mechanism is computed within each block. The computation results for each block are then subjected to residual connections and layer normalization to obtain the optimized point cloud features for each block. The optimized point cloud features of all blocks are then concatenated and mapped to the target dimension to obtain the optimized global point cloud features, as shown in the following formula: , in, This represents the optimized global point cloud features. and They represent the first Point cloud features before and after block optimization Indicates the total number of blocks. ; This indicates that self-attention calculation is being performed. Indicates the first Number of point clouds within each block This indicates a splicing operation. This represents the point cloud features after all blocks are stitched together. This represents a learnable weight matrix used to reduce the feature dimension from... Dimensional mapping to target dimension .
[0059] It should be noted that the optimized global point cloud features retain details of key regions while maintaining global consistency. Furthermore, the self-attention mechanism is computed only within each block, thus reducing the computational complexity from O(N^2) to O(N^2). 2 The value decreases to O(Nlog N).
[0060] S5. Input the optimized global point cloud features into the decoder to obtain the completed point cloud.
[0061] It should be noted that the decoder includes two multilayer perceptrons connected in series. The first multilayer perceptron generates a reference point cloud set based on the optimized global point cloud features. The optimized global point cloud features are then propagated to the reference point cloud set and fused with it before being fed into the second multilayer perceptron to predict the displacement field of each point cloud. The displacement field of each point cloud is then added to the reference point set at corresponding points, and after inverse normalization, the completed point cloud is output.
[0062] Specifically, the first multilayer perceptron generates a reference point cloud set based on the optimized global point cloud features, including: A 2D mesh is initialized, and the 2D coordinates of each mesh point are concatenated with the optimized global point cloud features to obtain a combined vector. This vector is then input into a shared multilayer perceptron. The last layer of the multilayer perceptron has an output dimension of 3. A nonlinear mapping function is used to output a 3D coordinate for each input combined vector, which is then combined to form a reference point cloud, providing a coarse spatial distribution framework.
[0063] It should be noted that the number of 2D mesh points (i.e. the number of points in the reference point cloud set) is the number of target point clouds, which is usually set based on prior knowledge of the point density of the complete object.
[0064] Furthermore, since the number of points corresponding to the optimized global point cloud features is the number of points to be filled in, which is less than the number of points in the reference point cloud set, the optimized global point cloud features are propagated to the reference point cloud set through nearest neighbor interpolation or trilinear interpolation. Then, the 3D coordinates of each point in the reference point cloud set are concatenated with the corresponding propagated global point cloud features and fed into the second multilayer perceptron to decode and output the 3D displacement field of each point.
[0065] Finally, by adding the 3D displacement field of each point to the reference point cloud point by point and then inversely normalizing it to the original physical scale, a refined and structurally complete point cloud coordinate can be obtained. The displacement field is responsible for local fine-tuning of the coarse reference points to accurately restore the detailed geometry, thus realizing end-to-end reconstruction from feature semantics to spatial coordinates.
[0066] It should be noted that the network models used in this embodiment are jointly trained end-to-end, including: the encoder in step S1, the cross-attention and multi-granularity grid fusion in step S3, the self-attention mechanism in step S4, and the decoder in step S5. During training, the joint loss function is minimized and the learnable parameters of each network model are updated through backpropagation.
[0067] Among them, the joint loss function It is the chamfer distance loss. Earth's distance traveled and displacement field The weighted sum of the regularization loss, the chamfer distance loss is used to measure the shape matching degree between the predicted point cloud and the real complete point cloud; the Earth movement distance loss is used to ensure the uniformity of the generated point distribution; and the L2 regularization loss of the displacement field is used to prevent overfitting.
[0068] Joint loss function The calculation formula is as follows: , in, , and These represent the weights of the chamfer distance loss, the Earth movement distance loss, and the displacement field regularization term loss, respectively; for example, they are set to 1.0, 0.5, and 0.1, respectively. Describing the L2 norm, Indicates the quantity to be retrieved; To create a true and complete point cloud; To predict the generated point cloud, This represents a bijection from the predicted point cloud to the actual complete point cloud.
[0069] Compared with existing technologies, this embodiment provides a point cloud completion method based on octree and multi-granularity raster fusion. By introducing an octree spatial index structure and a multi-granularity raster fusion mechanism, combined with attention-driven feature alignment and optimization strategies, it effectively identifies and repairs missing regions in point clouds. The generated point clouds are rich in detail and structurally complete, improving computational efficiency and significantly enhancing the accuracy, detail preservation, and semantic consistency of point cloud completion. Based on octree segmentation with multi-index importance scores, and through a multi-index scoring mechanism that integrates curvature, density gradient, and boundary distance, combined with a dynamic threshold adjustment strategy, it achieves adaptive identification of key regions for point cloud completion, accurately locating key regions such as edges and holes. Combined with multi-granularity feature dual-channel fusion, it better preserves sharp features and local geometric details during the completion process, avoiding over-smoothing. Through cross-attention and block self-attention mechanisms, it ensures that the completed part is consistent with the known part in terms of geometric structure and semantics, generating a reasonable overall shape.
[0070] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.
[0071] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A point cloud completion method based on octree and multi-granularity raster fusion, characterized in that, Includes the following steps: After normalizing the point cloud to be completed, the point cloud features are extracted by the encoder. An octree is constructed based on the normalized point cloud to be completed and its features. The key nodes and their point cloud features are extracted by calculating the importance score of each node in the octree. By using cross-attention, the point cloud features of the key nodes are aligned and fused with the point cloud features of the point cloud to be completed, resulting in aligned point cloud features of the key nodes. Then, multi-granularity rasterization projection and fusion are performed to obtain fused features of the key nodes. The fused features of the key nodes are assigned to the corresponding nodes of the octree, and the nodes of the octree are optimized through a self-attention mechanism to obtain the optimized global point cloud features. The optimized global point cloud features are fed into the decoder to obtain the completed point cloud.
2. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The process of performing multi-granularity raster projection and fusion to obtain the fused features of key nodes includes: The point cloud features of the aligned key nodes are projected onto three-dimensional grids of different resolutions to form a multi-resolution feature map pyramid. Dilated convolution is applied to the medium and high resolution features of the feature map pyramid to extract the first feature, and self-attention mechanism is applied to the low resolution features of the feature map pyramid to extract the second feature. The first feature and the upsampled second feature are then fused through a gated fusion mechanism to obtain the fused features of the key nodes.
3. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 2, characterized in that, The process of fusing the first feature with the upsampled second feature through a gating fusion mechanism includes: The first feature and the upsampled second feature are concatenated along the channel dimension; the concatenated features are then convolved and input into the Sigmoid function to generate a spatially adaptive gated weight map. The first feature and the upsampled second feature are weighted and summed using the gated weight graph.
4. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The decoder includes two multilayer perceptrons connected in series. The first multilayer perceptron generates a reference point cloud set based on the optimized global point cloud features. The optimized global point cloud features are propagated to the reference point cloud set and fused with the reference point cloud set before being fed into the second multilayer perceptron to predict the displacement field of each point cloud. The displacement field of each point cloud is added to the reference point set at corresponding points and then subjected to inverse normalization to output the completed point cloud.
5. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The importance score of each node in the octree is obtained by calculating the weighted sum of the curvature, density gradient and boundary distance of each node; the curvature is obtained by calculating the proportion of the minimum eigenvalue of the point cloud covariance matrix within the node. The density gradient is obtained by calculating the partial derivatives of the node density field in the three coordinate directions and summing their absolute values; the boundary distance is obtained by calculating the minimum distance from the point cloud inside the node to the node boundary.
6. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1 or 5, characterized in that, The key nodes are extracted by obtaining leaf nodes whose importance scores are greater than their corresponding final segmentation thresholds. The final segmentation threshold is the final value obtained by dynamically adjusting the segmentation threshold during the octree construction process based on the node's importance score, current recursion depth, node offset, and current node side length until the maximum recursion depth or minimum node size is reached.
7. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The step of aligning and fusing the point cloud features of key nodes with the point cloud features of the point cloud to be completed through cross-attention to obtain aligned point cloud features of key nodes includes: The query matrix is calculated based on the point cloud features of the key nodes, the key matrix and value matrix are calculated based on the point cloud features of the point cloud to be completed, and then the enhanced features of the key nodes are obtained through cross attention. After residual connection and layer normalization of the enhanced features of key nodes, the point cloud features of the key nodes are aligned and output by the feedforward neural network.
8. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The normalization process for the point cloud to be completed includes: Obtain the 2D image corresponding to the point cloud to be completed; The scale factor is calculated based on the camera focal length, the distance to the target object, and the pixel height in the image. After translating the point cloud coordinates to the center point, the scale factor is used to scale it to the unit sphere space.
9. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The optimization of each node of the octree using a self-attention mechanism to obtain optimized global point cloud features includes: Nodes belonging to the same parent node or the same depth are divided into blocks. A self-attention mechanism is calculated within each block. The calculation results of each block are subjected to residual connection and layer normalization to obtain the optimized point cloud features of each block. By stitching together the optimized point cloud features of all blocks and mapping them to the target dimension, the optimized global point cloud features are obtained.
10. The point cloud completion method based on octree and multi-granularity raster fusion according to claim 1, characterized in that, The network models used in the method are obtained through end-to-end joint training. During the training process, the joint loss function is minimized and the learnable parameters of each network model are updated through backpropagation. The joint loss function is a weighted sum of chamfer distance loss, Earth movement distance loss and displacement field regularization term loss.
Citation Information
Patent Citations
Ground height estimation method and system based on lightweight point cloud completion
CN115131758A
Deep learning point cloud geometric compression method based on slices
CN117528120A
Three-dimensional real scene reconstruction method based on autonomous cruise of robot and related equipment
CN120339522A
Industrial equipment digital twin model rapid reconstruction method and system based on laser point cloud
CN120339543A
3D indoor modeling method, system and device based on point cloud data
US20200111251A1