Partitioning method, encoder, decoder and computer storage medium

The partitioning method for LOD classification in G-PCC encoders addresses high complexity and accuracy issues by using Morton codes and spatial distribution analysis to predict neighbor nodes, enhancing encoding efficiency and reconstruction quality.

JP2024123172AActive Publication Date: 2024-09-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2024100630
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-10
Estimated Expiration
2040-01-06

AI Technical Summary

Technical Problem

Current LOD classification methods for point clouds in Geometry-based Point Cloud Compression (G-PCC) encoders suffer from high computational complexity and insufficient accuracy in neighbor node prediction, leading to increased encoding bits and decreased efficiency due to the lack of consideration for spatial distribution characteristics.

Method used

A partitioning method that calculates Morton codes and performs right-shift operations to determine neighbor nodes based on spatial distribution, reducing the need for spatial distance calculations and improving accuracy of neighbor node prediction.

Benefits of technology

This approach reduces computational complexity and improves encoding efficiency by accurately predicting neighbor nodes, enhancing reconstruction quality and reducing bit overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024123172000001
    Figure 2024123172000001
Patent Text Reader

Abstract

To provide a partitioning method, an encoder, a decoder, and a computer storage medium, which can improve the accuracy of prediction attributes of neighbor nodes, and effectively reduce encoding bit overheads, thereby increasing encoding and decoding efficiency.SOLUTION: A method includes: calculating a Morton code of a point of a point cloud to be partitioned; determining a right shift bit number corresponding to the i-th level of detail layer in the point cloud to be partitioned; determining a Morton code of a parent node corresponding to a current node in the i-th LOD layer; searching, in a preset storage area, for a neighbor node corresponding to the parent node according to the determined Morton code of the parent node; partitioning the current node into the i-th LOD layer and partitioning the neighbor node into the (i+1)th LOD layer; and determining corresponding partitioned LOD layers of the point cloud to be partitioned.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to a Level of Detail (LOD) segmentation technique in the field of video encoding and decoding, and more particularly to a segmentation method, an encoder, a decoder, and a computer storage medium. [Background technology]

[0002] In the frame of the encoder of Geometry-based Point Cloud Compression (G-PCC), the geometric information of the point cloud and the attribute information corresponding to each point cloud are coded respectively. After the geometry coding is completed, the geometric information is reconstructed, and the coding of the attribute information depends on the reconstructed geometric information. The coding of the attribute information is mainly coding of the color information. There are mainly two types of transformation methods for coding the color information. One method is the lifting transformation, which performs LOD division based on distance, and the other method is the Region Adaptive Hierarchal Transform (RAHT), which performs it directly. Both of these methods transform the color information from the spatial domain to the frequency domain, obtain the high-frequency and low-frequency coefficients through transformation, and finally quantize and code the coefficients to generate a binary bitstream.

[0003] Currently, when performing LOD classification on a point cloud based on distance, on the one hand, the computational complexity is relatively high, and on the other hand, due to a lack of factors to be considered, the accuracy of the neighbor nodes obtained by searching is insufficient, the prediction residual is relatively large, the number of encoding bits increases, and the encoding efficiency decreases. Summary of the Invention [Problem to be solved by the invention]

[0004] The embodiments of the present application provide a partitioning method, an encoder, a decoder, and a computer storage medium, which can improve the accuracy of prediction attributes of neighbor nodes, effectively reduce the bit overhead of encoding, and improve the efficiency of encoding and decoding. [Means for solving the problem]

[0005] The technical solution according to the embodiment of the present application can be realized as follows.

[0006] In a first aspect, embodiments of the present application provide a partitioning method, applied to an encoder or a decoder, comprising: calculating a Morton code for points in the awaiting segmentation point cloud based on the awaiting segmentation point cloud; The number of right shift bits N corresponding to the i-th Level of Detail (LOD) layer in the point cloud to be segmented i Determine i, where i is an integer equal to or greater than 0, and N i is an integer greater than 0, determining whether i is less than or equal to M-1, where M indicates a preset number of layers for the LOD division; If i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be segmented is calculated by multiplying the Morton code by N i bit-shifting and storing the right-shifted Morton code in a preset storage area; determining a Morton code for a parent node corresponding to a current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; Partitioning the current node into an i-th LOD layer and partitioning the neighbor node into an i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; If i is greater than M-1, determining the 0th LOD layer to the M-1th LOD layer as LOD layers to be segmented corresponding to the point cloud awaiting segmentation.

[0007] In a second aspect, an embodiment of the present application provides an encoder, comprising: a first calculation unit, a first determination unit, a first judgment unit, a first right shift unit, a first search unit and a first partition unit; The first calculation unit is configured to calculate, based on the point cloud awaiting partition, a Morton code for a point in the point cloud awaiting partition; The first determining unit determines a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0 and N i is an integer greater than 0, The first judging unit is configured to determine whether i is less than or equal to M-1, where M represents a preset number of layers of the LOD division; The first right shift unit, for the i-th LOD layer, shifts the Morton code of the point in the point cloud to be segmented by N to the right, where i is less than or equal to M-1. i The bit-shift is set to store the right-shifted Morton code in a preset storage area, The first determining unit is further configured to determine a Morton code of a parent node corresponding to the current node in the i-th LOD layer; The first search unit is configured to search for a neighbor node corresponding to the parent node in the preset storage area according to the determined Morton code of the parent node; A first partitioning unit is configured to partition the current node into an i-th LOD layer and partition the neighbor node into an i+1-th LOD layer; The first judgment unit is further configured to update i based on i+1 and return to judging whether i is less than or equal to M-1; The first determining unit is further configured to determine, when i is greater than M-1, the 0th LOD layer to the M-1th LOD layer as LOD layers to be segmented corresponding to the point cloud awaiting segmentation.

[0008] In a third aspect, embodiments of the present application provide an encoder, comprising: a first memory and a first processor; the first memory is adapted to store a computer program executable by the first processor; The first processor, when executing the computer program, is used to carry out the method according to the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a decoder, comprising: a second calculation unit, a second decision unit, a second judgment unit, a second right shift unit, a second search unit and a second partition unit; a second calculation unit configured to calculate, based on the point cloud awaiting segmentation, a Morton code for a point in the point cloud awaiting segmentation; The second determining unit determines a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0 and N i is an integer greater than 0, The second judging unit is configured to determine whether i is less than or equal to M-1, where M represents a preset number of layers of the LOD division; A second right shift unit, for the i-th LOD layer, shifts the Morton code of the point in the point cloud to the right by N, where i is less than or equal to M−1. i The bit-shift is set to store the right-shifted Morton code in a preset storage area, The second determining unit is further configured to determine a Morton code of a parent node corresponding to the current node in the i-th LOD layer; The second search unit is configured to search for a neighbor node corresponding to the parent node in the preset storage area according to the determined Morton code of the parent node; The second partitioning unit is configured to partition the current node into an i-th LOD layer and partition the neighbor node into an i+1-th LOD layer; The second judgment unit is further configured to update i based on i+1 and return to judging whether i is less than or equal to M-1; The second determining unit is further configured to determine, when i is greater than M-1, the 0th LOD layer to the M-1th LOD layer as LOD layers to be segmented corresponding to the point cloud awaiting segmentation.

[0010] In a fifth aspect, embodiments of the present application provide a decoder, comprising a second memory and a second processor; the second memory is adapted to store a computer program executable by the second processor; The second processor, when executing the computer program, is used to carry out the method according to the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer storage medium having a computer program stored thereon, the computer program being configured to, when executed by a first processor, implement a method according to the first aspect, or, when executed by a second processor, implement a method according to the first aspect. Effect of the Invention

[0012] The embodiments of the present application provide a segmentation method, an encoder, a decoder, and a computer storage medium, comprising: calculating a Morton code of a point in the point cloud to be segmented based on the point cloud to be segmented; and calculating a number of right shift bits N corresponding to an i-th level of detail (LOD) layer in the point cloud to be segmented. i Determine i, where i is an integer equal to or greater than 0, and N iis an integer greater than 0, and determine whether i is less than or equal to M-1, where M indicates the number of preset layers of the LOD partition, and if i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be partitioned is calculated by multiplying the Morton code by N i determining a Morton code of a parent node corresponding to the current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; classifying the current node into the i-th LOD layer and classifying the neighbor node into the i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; and if i is greater than M-1, determining the 0-th LOD layer to the M-1-th LOD layer as LOD layers to be classified corresponding to the point cloud to be classified. Thus, the technical solution of the present application does not calculate the spatial distance between the current node and the neighbor node, but uses the Morton code to search for a neighbor node of the parent node corresponding to the current node every time an LOD layer is classified, and predicts the neighbor node by using the current node as a sampling point. This not only reduces the computational complexity, but also improves the accuracy of predicted attributes of neighbor nodes by taking into account the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, and effectively reduces the bit overhead of encoding, thereby improving the efficiency of encoding and decoding. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a flow block diagram of G-PCC encoding according to the related technical solution. [Diagram 2] FIG. 2 is a flow block diagram of G-PCC decoding according to the related art solution. [Figure 3A] FIG. 3A is a structural schematic diagram of the LOD generation process according to the related technical solution. [Figure 3B] FIG. 3B is a structural schematic diagram of another LOD generating process according to the related art. [Figure 4] FIG. 4 is a flow diagram of a classification method according to an embodiment of the present application. [Diagram 5] FIG. 5 is a flow diagram illustrating the determination of the initial right shift bit number according to an embodiment of the present application. [Figure 6] FIG. 6 is a schematic diagram of the spatial relationship between a current node and neighboring nodes according to an embodiment of the present application. [Figure 7] FIG. 7 is a detailed flow diagram of the classification method according to an embodiment of the present application. [Figure 8] FIG. 8 is a structural schematic diagram of an encoder according to an embodiment of the present application. [Figure 9] FIG. 9 is a schematic diagram of a specific hardware structure of an encoder according to an embodiment of the present application. [Figure 10] FIG. 10 is a structural schematic diagram of a decoder according to an embodiment of the present application. [Figure 11] FIG. 11 is a schematic diagram of a specific hardware structure of a decoder according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] In order to more fully understand the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings, which are for reference and explanation only and are not intended to limit the embodiments of the present application.

[0015] In the frame of the point cloud G-PCC encoder, the point cloud input to the 3D image model is divided into slices, and then each slice is encoded independently.

[0016] Referring to FIG. 1, FIG. 1 shows a flow block diagram of G-PCC encoding according to the related technical solution. The flow block diagram of G-PCC encoding shown in FIG. 1 is applied to a point cloud encoder, which first divides the point cloud data into a number of slices according to slice division for the point cloud data to be encoded. In each slice, the geometric information of the point cloud and the attribute information corresponding to each point cloud are respectively encoded. In the geometric encoding process, first, coordinate transformation is performed on the geometric information to include all the point clouds in one bounding box, and then quantization is performed. This quantization step mainly plays the role of scaling. Due to quantization rounding, the geometric information of some point clouds is the same, so it is determined whether to remove overlapping points based on parameters. The process of quantization and removing overlapping points is also called a voxelization process. Then, octree division is performed on the bounding box. In the geometric information coding flow based on octree, the bounding box is divided equally into 8 subcubes, and each non-empty subcube (containing a point in the point cloud) is divided equally into 8 subcubes. When the leaf node obtained by the division is a 1×1×1 unit cube, the division is stopped. Arithmetic coding is performed on the points in the leaf node to generate a binary geometric bit stream, i.e., a geometric bit stream. In the process of coding geometric information based on triangle soup, octree division must also be performed first. Unlike the coding of geometric information based on octree, the trisoup does not need to divide the point cloud into unit cubes with side length of 1×1×1 for each level, but divides until the side length of the block (subblock) becomes W, and then stops the division. Based on the surface according to the distribution of the point cloud in each block, at most 12 vertices (intersections) consisting of the surface and the 12 sides of the block are obtained, and arithmetic coding is performed on the vertices (surface fitting is performed based on the intersections), and a binary geometric bit stream, i.e., a geometric bit stream is generated.Vertex is also used in the implementation of the geometric reconstruction process, and the reconstructed set of information is used to encode the attributes of the point cloud.

[0017] After the geometric coding is completed, the geometric information is reconstructed. Currently, attribute coding is mainly performed on color information. In the attribute coding process, the color information (i.e., attribute information) is first converted from RGB color space to YUV color space. Then, the reconstructed geometric information is used to recolor the point cloud, and the uncoded attribute information is associated with the reconstructed geometric information. There are mainly two conversion methods in the color information coding process. One method is a distance-based lifting transformation that partitions depending on the Level of Detail (LOD). Currently, LOD partitioning is mainly divided into two methods: distance-based LOD partitioning (mainly for Category 1 sequences) and fixed sampling rate-based LOD partitioning (mainly for Category 3 sequences). The other method is a transformation that directly performs Region Adaptive Hierarchical Transform (RAHT). Here, both of these methods convert color information from spatial domain to frequency domain, obtain high frequency coefficients and low frequency coefficients through the conversion, and finally quantize the coefficients (i.e., quantized coefficients). Finally, the geometric coded data that has undergone octree division and surface fitting and the attribute coded data that has undergone quantized coefficient processing are slice-synthesized, and then the vertex coordinates of each block are coded (i.e., arithmetic coding) in order to generate a binary attribute bit stream, i.e., attribute bit stream.

[0018] Referring to FIG. 2, FIG. 2 shows a flow block diagram of G-PCC decoding according to the related technical solution. The flow block diagram of G-PCC decoding shown in FIG. 2 is applied to a point cloud decoder, which first performs independent decoding on the geometric bit stream and the attribute bit stream in the binary bit stream obtained. In the decoding of the geometric bit stream, the geometric information of the point cloud is obtained through arithmetic decoding-octree synthesis-surface fitting-geometric reconstruction-inverse coordinate transformation. In the decoding of the attribute bit stream, the attribute information of the point cloud is obtained through arithmetic decoding-inverse quantization-lifting inverse transformation based on LOD or inverse transformation based on RAHT-inverse color transformation. Based on the geometric information and attribute information, a 3D image model of the point cloud data to be encoded is reduced.

[0019] In the flow block diagram of G-PCC encoding shown in Figure 1, LOD division is mainly used in two methods, Prediction and Lifting, in point cloud attribute conversion. The following describes the distance-based LOD division in detail.

[0020] JPEG2024123172000002.jpg43147

[0021] The LOD partitioning process is performed after the geometric reconstruction of the point cloud, and the geometric coordinate information of the point cloud can be directly obtained. The LOD partitioning process can be applied to the point cloud encoder and the point cloud decoder simultaneously, and the specific process is as follows:

[0022] (1) Place all points in the point cloud into a set of “never visited” points, and initialize the set of “visited” points (denoted by V) to the empty set.

[0023] JPEG2024123172000003.jpg17147

[0024] JPEG2024123172000004.jpg49147

[0025] JPEG2024123172000005.jpg14147

[0026] (4) Iterate continuously by repeating steps (1) to (3) until all LOD layers have been generated or all points have been traversed.

[0027] Referring to FIG. 3A, FIG. 3A shows a structural schematic diagram of a LOD generating process according to a related technical solution.

[0028] In Figure 3A, the point cloud includes 10 points, which are P0, P1, P2, P3, P4, P5, P6, P7, P8, and P9, and performs LOD partitioning based on distance thresholds. Thus, the LOD0 set includes P0, P5, P4, and P2 in order, the LOD1 set includes P0, P5, P4, P2, P1, P6, and P3 in order, and the LOD2 set includes P0, P5, P4, P2, P1, P6, P3, P9, P8, and P7 in order.

[0029] In the related technical proposal, a technical proposal for LOD classification based on Morton code was put forward. Compared with the original technical proposal for LOD classification by traversing and searching all points, the technical proposal for LOD classification based on Morton code can reduce the computational complexity.

[0030] JPEG2024123172000006.jpg35147

[0031] JPEG2024123172000007.jpg43147

[0032] JPEG2024123172000008.jpg38147

[0033] Furthermore, D0 (initial distance threshold) and ρ (distance threshold ratio for adjacent LOD layer division) are initial parameters customized by the user, and ρ>1. Let I denote the index of all points. At the kth iteration, a point at LODk searches for its nearest neighbor, i.e., the point with the closest distance, from LOD0 to LODk-1 layers, where k=1,2,...,N-1. Here, N is the total number of layers of LOD division. When k=0, at the 0th iteration, a point at LOD0 directly searches for its nearest neighbor from LOD0. The specific process is as follows:

[0034] JPEG2024123172000009.jpg8147

[0035] (2) At the kth iteration, set L(k) stores the points belonging to the kth LOD, and set O(k) stores the set of points with a higher level of detail than the kth LOD. Here, the calculation process of L(k) and O(k) is as follows:

[0036] First, both O(k) and L(k) are initialized to the empty set.

[0037] JPEG2024123172000010.jpg53147

[0038] (3) In the process of each iteration, sets L(k) and O(k) are calculated respectively, and points in O(k) are used to predict points in set L(k). If set R(k)=L(k) / L(k-1), that is, R(k) is the point set of the difference between LOD(k-1) and LOD(k) sets, for a point located in set R(k), search for the nearest h prediction neighbors from set O(k) (generally, h can be 3). The specific process of searching for the nearest neighbors is as follows:

[0039] a. For a point Pi in a set R(k), the Morton code corresponding to the point is Mi. b. Search the set O(k) for the index j of the first point greater than the Morton code Mi corresponding to the current point Pi. c. Based on index j, search for the nearest neighbor of the current point Pi within a search range [j-SR2, j+SR2] in set O(k) (where SR2 indicates a search range, and the value is typically 8, 16, 32, 64).

[0040] (4) Continuously iterate over steps (1)-(3) until all points in set I have been traversed in total.

[0041] Referring to Fig. 3B, Fig. 3B shows a structural schematic diagram of another LOD generating process according to the related technical solution. In Fig. 3B, the point cloud includes 10 points, which are P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, and performs LOD classification according to the Morton code, and first arranges according to the ascending order of the Morton code, and the order of the 10 points is P4, P1, P9, P5, P0, P6, P8, P2, P7, P3, and then searches for the nearest neighbor. Thus, the LOD0 set still includes P0, P5, P4, P2 in order, the LOD1 set still includes P0, P5, P4, P2, P1, P6, P3 in order, and the LOD2 set still includes P0, P5, P4, P2, P1, P6, P3, P9, P8, P7 in order.

[0042] However, in the current solution, before point cloud attribute conversion Prediction and lifting, LOD division is first performed based on different distance thresholds. Specifically, the current LOD division calculates the distance between all points every time. If the distance between the point and all points is less than the distance threshold, the point may be added to the current LOD layer; otherwise, the point is placed in the next layer and LOD division is performed, and iterated continuously according to different threshold ranges until all points are traversed or the division of all LOD layers is performed, which increases the calculation complexity. In addition, since different point clouds have different spatial distributions, the object densities of different point clouds are different. When LOD division is performed based on the distance threshold, the accuracy of the neighbor nodes obtained by searching is insufficient without considering the spatial distribution characteristics of the point cloud, and finally, the prediction residual obtained by predicting based on the neighbor nodes is relatively large, and there is still a relatively large redundancy in the attribute information, which increases the number of coding bits and does not ensure the achievement of optimal coding and decoding efficiency.

[0043] An embodiment of the present application provides a segmentation method, which may be applied to an encoder (which may also be referred to as a point cloud encoder) or a decoder (which may also be referred to as a point cloud decoder), comprising: calculating a Morton code of a point in the point cloud to be segmented based on the point cloud to be segmented; and calculating a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i Determine i, where i is an integer equal to or greater than 0, and N i is an integer greater than 0, and determine whether i is less than or equal to M-1, where M indicates the number of preset layers of the LOD partition, and if i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be partitioned is calculated by multiplying the Morton code by N idetermining a Morton code of a parent node corresponding to the current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; classifying the current node into the i-th LOD layer and classifying the neighbor node into the i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; and if i is greater than M-1, determining the 0-th LOD layer to the M-1-th LOD layer as LOD layers to be classified corresponding to the point cloud to be classified. Thus, the technical solution of the present application does not calculate the spatial distance between the current node and the neighbor node, but uses the Morton code to search for a neighbor node of the parent node corresponding to the current node every time an LOD layer is classified, and predicts the neighbor node by using the current node as a sampling point. This not only reduces the computational complexity, but also improves the accuracy of predicted attributes of neighbor nodes by taking into account the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, and effectively reduces the bit overhead of encoding, thereby improving the efficiency of encoding and decoding.

[0044] Hereinafter, each embodiment of the present application will be described in detail with reference to the drawings.

[0045] Please refer to Fig. 4, which shows a flow diagram of a partitioning method according to an embodiment of the present application. As shown in Fig. 4, applied to an encoder or a decoder, the method may include the following steps S401 to S409.

[0046] In step S401, based on a point cloud awaiting segmentation, Morton codes of points in the point cloud awaiting segmentation are calculated.

[0047] Note that in a point cloud, the points may be all the points in the point cloud, or may be a subset of the points in the point cloud, which are relatively concentrated in space.

[0048] As will be described further, the partitioning method according to the embodiment of the present application improves the LOD generation process in lifting and predictive attribute transformation. That is, before performing lifting or predictive transformation, it is necessary to first partition the LOD layer using the partitioning method. Specifically, the partitioning method may be applied to the LOD generation part in the G-PCC encoding flow block diagram shown in FIG. 1, or may be applied to the LOD generation part in the G-PCC decoding flow block diagram shown in FIG. 2, or may be simultaneously applied to the LOD generation part in the G-PCC encoding flow block diagram shown in FIG. 1 and the LOD generation part in the G-PCC decoding flow block diagram shown in FIG. 2. The embodiment of the present application is not specifically limited.

[0049] In this way, after obtaining the point cloud to be partitioned, the Morton code of the points in the point cloud to be partitioned can be calculated first, so that in subsequent iterations, the Morton code can be used to search for the neighbor nodes of the parent node corresponding to the current node, thereby using the current node as a sampling point to help predict the neighbor nodes when partitioning the LOD layer.

[0050] In step S402, a right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented is i Determine.

[0051] Note that i is an integer equal to or greater than 0, and N iwhere M is an integer greater than 0. To partition the point cloud to be partitioned into multiple LOD layers, an iterative method is used here for partitioning. The number of layers of LOD partitioning for the point cloud to be partitioned may be preset. In general, the preset number of layers of LOD partitioning may be denoted as M, where M is an integer greater than 0.

[0052] In this manner, after determining the Morton codes of the points in the point cloud to be partitioned, the Morton codes of the points in the point cloud to be partitioned may be sorted to determine the number of right shift bits corresponding to each LOD layer. The method may include sorting Morton codes of points in the point cloud awaiting segmentation according to a preset sorting policy, and determining the sorted Morton codes as Morton codes of points in the point cloud awaiting segmentation.

[0053] The preset sorting policy may be an ascending policy from lowest to highest, a descending policy from highest to lowest, or even another sorting policy (e.g., a random sorting policy, etc.). Preferably, the preset sorting policy is an ascending policy. That is, the Morton codes of the points in the point cloud awaiting classification are sorted in ascending order from lowest to highest, and the sorted Morton codes are determined as the Morton codes of the points in the point cloud awaiting classification.

[0054] In this way, after sorting the Morton codes, an initial number of right shift bits of the Morton codes of the points in the point cloud to be segmented can be determined based on the sorted Morton codes. Here, the initial number of right shift bits indicates the number of right shift bits (which may be denoted as N0) corresponding to the 0th LOD layer of the Morton codes of the points in the point cloud to be segmented. Specifically, in some embodiments, when i is equal to 0, for step S402, the number of right shift bits N corresponding to the i-th LOD layer in the point cloud to be segmented is determined asi To determine Sampling the sorted Morton code to obtain Morton codes of K sampling points, where K is an integer greater than 0; performing a right shift operation on the Morton code of the K sampling points to obtain K sampling points corresponding to the right shifted Morton code; determining whether the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point; if the K sampling points corresponding to the right-shifted Morton codes do not correspond to at least one neighbor node per sampling point, continuing to perform the step of performing right-shifting on the Morton codes of the K sampling points; When the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point, obtaining a right-shift bit number of the K sampling points, and determining the right-shift bit number as an initial right-shift bit number of the Morton code of the point in the point cloud to be partitioned, wherein the initial right-shift bit number indicates a corresponding right-shift bit number N0 in a 0th LOD layer of the Morton code of the point in the point cloud to be partitioned.

[0055] That is, when dividing the LOD layer initially, i.e. dividing the 0th LOD layer, firstly, the sorted Morton code is sampled to obtain the Morton code of K sampling points, then the Morton code of the K sampling points is continuously right-shifted until the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point, and finally, the obtained right-shift bit number is set as the initial right-shift bit number N0. Specifically, the process of obtaining the initial right-shift bit number N0 may include the following steps S501 to S506 as shown in FIG. 5.

[0056] In step S501, the sorted Morton code is sampled to obtain the Morton code for K sampling points.

[0057] In step S502, n=0.

[0058] In step S503, n=n+3.

[0059] In step S504, the Morton code of the K sampling points is right-shifted by n bits.

[0060] In step S505, it is determined whether the number of corresponding neighbor nodes per sampling point is greater than one.

[0061] In step S506, N0=n.

[0062] Note that n is a preset variable, and the initial value of n is set to 0. Then, in order to execute the subsequent step S504, that is, to perform n-bit right shift processing on the Morton code of K sampling points, the value of n is updated to n+3 each time.

[0063] Also, for step S505, if the judgment result is "Yes", execute step S506, that is, obtain the initial right-shift bit number N0; if the judgment result is "No", return to step S503 and execute until the judgment result of step S505 becomes "Yes", thereby finally obtaining the initial right-shift bit number N0.

[0064] As will be described further, K is an integer greater than 0, and for example, the value of K may be set to 100, but the embodiment of the present application is not specifically limited. That is, in the process of determining the initial right-shift bit number N0, the value of K is generally set randomly, but the method of obtaining the value of K may further include performing characteristic analysis on the point cloud to be segmented to determine the value of K.

[0065] Here, the value of K is generally related to the characteristic information of the point cloud awaiting segmentation, such as the number of points in the point cloud awaiting segmentation, spatial density, etc. In this way, the value of K can be determined by performing characteristic analysis on the point cloud awaiting segmentation, and further the initial right shift bit number N0 can be determined. The value of K is obtained by combining the characteristics of the entire point cloud awaiting segmentation, which can improve the efficiency of encoding and decoding.

[0066] It can be seen that after sorting the Morton codes, a right shift process can be continuously performed based on the difference value between the maximum Morton code and the minimum Morton code to determine the initial right shift bit number N0. Specifically, in some embodiments, when i is equal to 0, for step S402, the right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented is i To determine determining a maximum Morton code and a minimum Morton code based on the sorted Morton codes; calculating a difference value between the maximum Morton code and the minimum Morton code; performing a right shift process on the difference value, and if the right shifted difference value satisfies a preset range, obtaining a right shift bit number of the difference value; determining the number of right shift bits as an initial number of right shift bits for the point cloud to be segmented.

[0067] Since the Morton codes are sorted in ascending order from lowest to highest, the maximum Morton code and the minimum Morton code can be determined based on the sorted Morton codes, and the difference value (which may be expressed as delta) between the maximum Morton code and the minimum Morton code can be calculated.

[0068] Shift the delta bit to the right, and then obtain the shifted delta after shifting the delta bit to the right by N bits, so that the shifted delta satisfies the preset range, and at this time, N can be determined as the initial right shift bit number N0. Shifting the delta bit to the right by N bits may be regarded as shifting the maximum Morton code bit to the right by N bits, shifting the minimum Morton code bit to the right by N bits, and then calculating the difference between the two, and shifting the obtained difference value, i.e., the delta bit, to the right by N bits.

[0069] As will be described further, the preset range indicates whether the number of corresponding neighbor nodes per sampling point is greater than 1. In this way, if the difference value shifted right by N bits satisfies the preset range, the number of right shift bits N at this time can be determined as the initial number of right shift bits NO, thereby improving the efficiency of encoding and decoding.

[0070] Further, an initial right shift bit number N0 is determined, that is, the right shift bit number corresponding to the 0th LOD layer in the point cloud to be segmented is determined, and then, based on the initial right shift bit number N0, the right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented is determined. iHere, i is not equal to 0. Specifically, in some embodiments, when i is equal to 0, for step S402, a right shift bit number N i To determine Using the first preset calculation model, a right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented is calculated. i This may include determining:

[0071] Further, in some embodiments, the first preset calculation model is used to calculate a right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented. i To determine The number of right shift bits N corresponding to the i-1th LOD layer i-1 and The number of right shift bits N corresponding to the i-1th LOD layer i-1 and a preset value to obtain an added value; The sum is shifted to the right by a number of bits N corresponding to the i-th LOD layer. i and determining as:

[0072] That is, when dividing the subsequent LOD layers, the number of right shift bits corresponding to the i-th LOD layer is determined based on the number of right shift bits corresponding to the previous LOD layer (i-1-th LOD layer). Here, the first preset calculation model is as follows.

[0073] JPEG2024123172000011.jpg34146

[0074] It should be noted that the preset value may be specifically set based on the actual point cloud spatial information. Preferably, the preset value may be equal to 3. The embodiment of the present application is not limited.

[0075] Additionally, in some embodiments, the method further comprises: The method may further include performing a characteristic analysis on the point cloud to be segmented to determine the preset value.

[0076] Here, the preset value generally relates to the characteristic information of the point cloud to be partitioned, such as the number of points in the point cloud to be partitioned, spatial density, etc. In this way, the characteristic analysis can be performed on the point cloud to be partitioned to determine the preset value. The preset value corresponding to each LOD layer can be the same or different. For example, according to the characteristics of the point cloud to be partitioned, the corresponding preset value when calculating the right shift bit number of different LOD layers can be adaptively adjusted, so that the adjacent regions corresponding to different regions can be more accurately searched, and the prediction performance can be further improved.

[0077] In this way, after the number of right shift bits corresponding to each LOD layer is determined, the right shift process is performed based on the number of right shift bits corresponding to each LOD layer, so that the division of each LOD layer can be performed.

[0078] In step S403, it is determined whether i is equal to or smaller than M-1.

[0079] Here, M indicates the number of preset layers of the LOD division, where M is an integer greater than 0. If i is equal to or less than M-1, division needs to be performed for each LOD layer, so steps S404 to S408 are executed. If i is greater than M-1, division for each LOD has already been completed, so step S409 is executed.

[0080] In step S404, if i is equal to or smaller than M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be segmented is calculated by multiplying the Morton code by N i The Morton code is bit-shifted to the right and stored in a preset storage area.

[0081] In step S405, the Morton code of the parent node corresponding to the current node in the i-th LOD layer is determined.

[0082] In step S406, based on the Morton code of the determined parent node, a neighbor node corresponding to the parent node is searched in the preset storage area.

[0083] In step S407, the current node is classified into the i-th LOD layer, and the neighbor node is classified into the i+1-th LOD layer.

[0084] The preset storage area may be indicated by inputMorton. Mainly, before the division of each LOD layer, the Morton code of the point in the point cloud waiting for division is right-shifted and then stored in inputMorton, which contributes to the search for the corresponding neighbor node by the subsequent Morton code.

[0085] As will be described further, before searching for corresponding neighbor nodes by Morton code, it is necessary to first determine the Morton code of the parent node corresponding to the current node in the i-th LOD layer. Specifically, in some embodiments, for step S405, determining the Morton code of the parent node corresponding to the current node in the i-th LOD layer can be: The number of right shift bits N corresponding to the i-th LOD layer i performing a right shift operation on the Morton code of the current node in the i-th LOD layer based on determining the right-shifted Morton code as the Morton code of a parent node corresponding to the current node in the i-th LOD layer.

[0086] Here, the Morton code of the current node is denoted by childrenMorton, and the Morton code of the parent node is denoted by parentMorton, and the correspondence between the two is expressed as follows:

[0087] JPEG2024123172000012.jpg9147

[0088] That is, the number of right shift bits corresponding to the i-th LOD layer, N i Based on this, the Morton code of the current node in the i-th LOD layer (denoted by childrenMorton) is i The bit-shifted and then right-shifted Morton code may be determined as the Morton code (denoted as parentMorton) of the parent node corresponding to the current node in the i-th LOD layer.

[0089] Furthermore, after determining the Morton code of the parent node corresponding to the current node, searching for a neighbor node corresponding to the parent node based on the Morton code of the parent node may be performed. Specifically, in some embodiments, for step S406, searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node may include: determining a Morton code for a neighbor node corresponding to the parent node based on the determined Morton code for the parent node; The method may further include searching, based on the Morton code of the neighbor node, for a neighbor node corresponding to the Morton code of the neighbor node in the preset storage area.

[0090] Further, determining a Morton code of a neighbor node corresponding to the parent node based on the determined Morton code of the parent node includes: Calculating the Morton codes of all neighbor nodes that are coplanar, colinear, and co-point with the parent node based on the determined Morton code of the parent node to obtain the Morton codes of the first quantity of neighbor nodes; comparing the Morton codes of the first number of neighbor nodes with the Morton code of the current node; discarding the Morton code of the neighbor node if the Morton code of the neighbor node is less than the Morton code of the current node; If the Morton code of the neighbor node is equal to or greater than the Morton code of the current node, reserve the Morton code of the neighbor node and obtain a second number of Morton codes of the neighbor node, the second number being equal to or less than the first number; determining the Morton codes of the second number of neighbor nodes as the Morton codes of neighbor nodes corresponding to the parent node.

[0091] After the Morton code of the parent node is determined, the Morton codes of the neighbor nodes that are on the same plane (six neighbor nodes in total), on the same line (12 neighbor nodes in total), and at the same point (eight neighbor nodes in total) as the parent node may be calculated, and the Morton code of the parent node itself may be added to obtain the Morton codes of a first quantity (e.g., 27) of neighbor nodes in total. Since the LOD layers are divided in ascending order of the Morton codes, the 27 neighbor nodes may be narrowed down to a second quantity (e.g., 20) of neighbor nodes. Specifically, the Morton codes of the 27 neighbor nodes are each compared with the Morton code of the current node. If the Morton code of a neighbor node is smaller than the Morton code of the current node, the Morton code of the neighbor node may be discarded. For example, if the Morton codes of seven neighbor nodes are smaller than the Morton code of the current node, then the Morton codes of the seven neighbor nodes are excluded and the Morton codes of the remaining 20 neighbor nodes are equal to or greater than the Morton code of the current node, i.e., only the Morton codes of the remaining 20 neighbor nodes are retained. Here, the remaining 20 neighbor nodes may include the parent node corresponding to the current node, the coplanar neighbor nodes (three neighbor nodes), the colinear neighbor nodes (nine neighbor nodes), and the co-located neighbor nodes (seven neighbor nodes).

[0092] For example, refer to FIG. 6, which shows a schematic diagram of the spatial relationship between a current node and neighbor nodes according to an embodiment of the present application. In FIG. 6, the space block marked with a bold mark is the current node. As can be seen from FIG. 6, there are 6 neighbor nodes on the same plane as the space block, there are 12 neighbor nodes on the same line as the space block, and there are 8 neighbor nodes on the same point as the space block. In this way, based on the determined Morton code of the parent node, the Morton code of the neighbor node corresponding to the parent node can be determined, and the Morton code of the neighbor node can be used to search for the corresponding neighbor node in the preset storage area (inputMorton).

[0093] In this way, for the i-th LOD layer, after searching and obtaining the neighbor nodes, the current node may be partitioned into the i-th LOD layer, i.e., placed in set O(k), and the neighbor nodes may be partitioned into the i+1-th LOD layer, i.e., placed in set L(k), where k is an integer equal to or greater than 0. In this way, the partitioning for the i-th LOD layer can be realized.

[0094] Furthermore, to improve the effect of the predictive attribute of the neighboring nodes, the neighboring nodes may be predicted by calculating the center of mass of the adjacent region, and taking the point closest to the center of mass as the target node. Thus, in some embodiments, after obtaining the Morton codes of the first quantity of neighboring nodes, the method further includes: determining an adjacent region corresponding to a current node in the i-th LOD layer based on the awaiting segmentation point cloud; calculating a center of mass of the neighboring region, and selecting a node from the current node and the first number of neighbor nodes that is closest to the center of mass as a goal node; Partitioning the target node into the i-th LOD layer and partitioning remaining nodes into the i+1-th LOD layer.

[0095] The remaining nodes indicate nodes other than the target node among the current node and the first number of neighbor nodes. In this way, the adjacent region corresponding to the current node in the i-th LOD layer can be determined based on the neighbor nodes of the parent node corresponding to the current node, and then the center of mass of the adjacent region can be calculated, and the node closest to the center of mass can be selected as the target node from the current node and the first number of neighbor nodes. Then, the target node is partitioned into the i-th LOD layer, and the remaining nodes are partitioned into the i+1-th LOD layer, and partitioning for the i-th LOD layer can also be realized.

[0096] As will be further described, after determining the adjacent region corresponding to the current node in the i-th LOD layer based on the neighbor nodes of the parent node corresponding to the current node, the adjacent region can be further partitioned into different spatial regions, and the corresponding points selected from the different spatial regions can be the target node. Then, the target node is partitioned into the i-th LOD layer, and the remaining nodes are partitioned into the i+1-th LOD layer, and the partitioning for the i-th LOD layer can also be realized. At the same time, since the further spatial partitioning is performed for the adjacent region, the prediction performance can be further improved.

[0097] In step S408, i is updated based on i+1, and the process returns to determining whether i is less than or equal to M-1.

[0098] In step S409, if i is greater than M-1, the 0th LOD layer to the M-1th LOD layer are determined as LOD layers to be segmented corresponding to the point cloud awaiting segmentation.

[0099] After the segmentation for the i-th LOD layer, the value of i is updated using i=i+1, and then the process returns to step S403 to determine whether i is equal to or less than M-1. If the segmentation for the M-1-th LOD layer is not performed, that is, if i is equal to M, it indicates that the segmentation of the LOD layers of the point cloud waiting to be segmented has already been performed, and at this time, the 0-th LOD layer to the M-1-th LOD layer may be determined as the LOD layers to be segmented corresponding to the point cloud waiting to be segmented.

[0100] As will be further described, after performing a right shift operation on the Morton codes of the points in the point cloud to be partitioned, different sets can be obtained, i.e., the points in the point cloud to be partitioned are clustered to partition points in adjacent regions in space (i.e., points that are relatively concentrated in space) into the same set. Then, partitioning of LOD layers is performed for each set. Specifically, in some embodiments, the method further includes: performing a right shift operation on the Morton codes of points in the point cloud awaiting segmentation to obtain a plurality of sets, each set including a portion of the point cloud awaiting segmentation; The method may further include performing, for each of the plurality of sets, a step of performing LOD layer segmentation on a portion of the point clouds awaiting segmentation that are included in each set.

[0101] That is, by adjusting the number of right shift bits of the Morton code of the points in the point cloud to be partitioned, the point cloud to be partitioned is partitioned into a number of sets, each set including a part of the point cloud to be partitioned, i.e., a part of the points in the point cloud to be partitioned. For each set, the partitioning method of the embodiment of the present application is also used to search for the neighbor node of the parent node corresponding to the current node based on the Morton code. This partitioning method can partition the point clouds in adjacent regions in space into the same set, which can further improve the prediction performance.

[0102] In the embodiment of the present application, the LOD layer may be divided by searching for neighbor nodes based on the Morton code. Specifically, whether the Morton code of the current node is used to search for neighbor nodes of a parent node corresponding to the current node, i.e., the current node is used as a sampling point to predict neighbor nodes, or the Morton code of the current node is used to divide adjacent regions in the point cloud space, i.e., to divide the spatially close parts in the point cloud space to obtain different sets (or clustering), the effect of attribute prediction based on neighbor nodes can be improved, thereby improving the coding efficiency.

[0103] That is, by searching for the neighbor node of the parent node corresponding to the current node based on the Morton code and predicting the neighbor node with the current node as a sampling point, the spatial distribution characteristics of the point cloud and the spatial distance between the points in the point cloud can be taken into consideration together, and the effect of attribute prediction based on the neighbor node can be improved. That is, under the premise that the performance is not basically affected, the reconstruction quality of the attribute part can be improved, and further, the encoding and decoding time and the computational complexity of the predicted attribute can be reduced, thereby improving the efficiency of the encoding. Peak signal to noise ratio (PSNR) may be used as an objective standard for image evaluation. The higher the PSNR, the better the image quality. BD-rate may also be used as a parameter for evaluating the performance. When the BD-rate is a negative value, it indicates that the bit rate is reduced and the performance is improved under the same PSNR conditions. In addition, the larger the absolute value of the BD-rate, the greater the gain in performance. As shown in Table 1, under the premise that the performance is basically not affected, the BD-rate of the reconstructed point cloud can be obviously improved by reducing the bitrate of the color channels (denoted by U and V) of the attribute part.

[0104] [Table 1]

[0105] An embodiment of the present application provides a segmentation method, which comprises: calculating a Morton code of a point in the point cloud to be segmented based on the point cloud to be segmented; and calculating a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i Determine i, where i is an integer equal to or greater than 0, and N i is an integer greater than 0, and determine whether i is less than or equal to M-1, where M indicates the number of preset layers of the LOD partition, and if i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be partitioned is calculated by multiplying the Morton code by N i determining a Morton code of a parent node corresponding to the current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; classifying the current node into the i-th LOD layer and classifying the neighbor node into the i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; and if i is greater than M-1, determining the 0-th LOD layer to the M-1-th LOD layer as LOD layers to be classified corresponding to the point cloud to be classified. Thus, the technical solution of the present application does not calculate the spatial distance between the current node and the neighbor node, but uses the Morton code to search for a neighbor node of the parent node corresponding to the current node every time an LOD layer is classified, and predicts the neighbor node by using the current node as a sampling point. This not only reduces the computational complexity, but also improves the accuracy of predicted attributes of neighbor nodes by taking into account the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, and effectively reduces the bit overhead of encoding, thereby improving the efficiency of encoding and decoding.

[0106] Based on the same invention-creation of the above embodiments, referring to FIG. 7, FIG. 7 shows a detailed flow schematic diagram of the classification method according to the embodiments of the present application. As shown in FIG. 7, it is applied to an encoder or a decoder, and the detailed flow may include the following steps S701 to S711.

[0107] In step S701, based on the point cloud waiting for classification, calculate the Morton code of the points in the point cloud waiting for classification.

[0108] In step S702, sort the Morton codes of the points in the point cloud waiting for classification in ascending order.

[0109] Note that for the point cloud waiting for classification, if the point cloud waiting for classification contains N points, each point is denoted as Pi, and the Morton code corresponding to each point Pi is Mi, where i = 0, 1, 2,..., N - 1. That is, first calculate the Morton code (which may also be denoted by packVoxel) corresponding to the points in the point cloud waiting for classification, and then sort the Morton codes of the points in the point cloud waiting for classification in ascending order from low to high, and the sorted Morton codes may be determined as the Morton codes of the points in the point cloud waiting for classification.

[0110] In step S703, determine whether lodindex < lodcount.

[0111] Note that lodindex indicates which LOD layer the currently processed classification is, for example, it is the lodindex-th LOD layer, and lodcount indicates the total number of classification layers of the preset point cloud waiting for classification. Here, lodcount is an integer greater than 0, and lodindex is an integer greater than or equal to 0 and less than or equal to lodcount - 1.

[0112] Furthermore, as will be further described, when lodindex < lodcount, that is, when the judgment result is "yes", step S704 is executed. When lodindex ≧ lodcount, that is, when the judgment result is "no", the flow ends.

[0113] In step S704, when the judgment result is "yes", it is determined whether lodindex == 0.

[0114] In step S705, when the judgment result is "yes", the initial right shift bit number N of the Morton code of the points in the point cloud waiting for classification is calculated.

[0115] In step S706, when the judgment result is "no", N curlod = N lastlod + 3, and N curlod is determined as N.

[0116] Note that N curlod indicates the right shift bit number corresponding to the currently processed LOD layer, and N lastlod indicates the right shift bit number corresponding to the previous processed LOD layer. For example, if the initial right shift bit number corresponding to the 0th LOD layer is 4, the right shift bit number corresponding to the 1st LOD layer is 7, the right shift bit number corresponding to the 2nd LOD layer is 10, and the right shift bit number corresponding to the 3rd LOD layer is 13. By analogy, the right shift bit numbers corresponding to each LOD layer can be obtained.

[0117] In this way, when lodindex < lodcount, it is necessary to further determine whether lodindex is equal to 0. When lodindex is equal to 0, that is, when the judgment result is "yes", step S705 is executed, that is, the initial right shift bit number N of the Morton code of the points in the point cloud waiting for classification is calculated. When lodindex is not equal to 0, that is, when the judgment result is "no", step S706 is executed, that is, N curlod = N lastlodIt is +3, and then N curlod is determined as N and used for the execution of the subsequent step S707.

[0118] In step S707, the Morton code of the points in the point cloud waiting for classification is shifted N bits to the right, and the shifted Morton code is stored in inputMorton.

[0119] In step S708, it is determined whether pointindex < inputMorton.size.

[0120] Note that pointindex indicates the index number of the current node in inputMorton, and inputMorton.size indicates the length of inputMorton. In this way, when pointindex < inputMorton.size, that is, when the judgment result is "yes", it indicates that the current node is still in the lodindex-th LOD layer, and it is necessary to execute step S709 at this time. When pointindex ≥ inputMorton.size, that is, when the judgment result is "no", it indicates that the current node is not in the lodindex-th LOD layer, and it is necessary to execute step S710 at this time.

[0121] In step S709, when the judgment result is "yes", the current node is added to the set O(lodindex), and the neighbor node corresponding to the current node is added to the set L(lodindex).

[0122] In step S710, pointindex = pointindex + 1, and the process returns to the execution of step S708.

[0123] In step S711, when the judgment result is "no", lodindex = lodindex + 1, and the process returns to the execution of step S703.

[0124] When pointindex < inputMorton.size, add the current node to the set O(lodindex), that is, classify the current node into the lodindex-th LOD layer. At the same time, add the neighbor node corresponding to the current node to the set L(lodindex), that is, classify the neighbor node corresponding to the current node into the (lodindex + 1)-th LOD layer. Then, set pointindex = pointindex + 1, and return to the execution of step S708 until pointindex = inputMorton.size - 1, thereby realizing the classification for the lodindex-th LOD layer. Further, when pointindex ≥ inputMorton.size, it indicates the completion of the classification for the lodindex-th LOD layer. At this time, it is necessary to set lodindex = lodindex + 1, and return to the execution of step S703 until lodindex = lodcount - 1, thereby realizing the classification for the (lodcount - 1)-th LOD layer. Thereby, the LOD classification for the point cloud waiting for classification is also realized. Here, the 0-th LOD layer to the (lodcount - 1)-th LOD layer are determined as the LOD layers corresponding to the point cloud waiting for classification.

[0125] Specifically, the Morton codes of the sorted point clouds waiting to be partitioned may be sampled to obtain the Morton codes of K sampling points, and the Morton codes of the K sampling points may be right-shifted to obtain the initial right-shift bit number N corresponding to the point clouds waiting to be partitioned, and the right-shift bit number corresponding to each LOD layer may be determined. Then, when partitioning each LOD layer, the Morton codes of the points in the input point clouds waiting to be partitioned are shifted right by N bits, and the right-shifted Morton codes are stored in inputMorton. At this time, the Morton code of the parent node corresponding to the current node may be calculated, and the Morton code of the neighbor node may be calculated by the parent node. Finally, the neighbor node corresponding to the Morton code of the neighbor node is searched from inputMorton, and the current node is partitioned into O(lodindex), and the neighbor nodes obtained by the search are partitioned into L(lodindex).

[0126] In the embodiment of the present application, there is no need to calculate the spatial distance between the current node and the neighbor node. Generally, the spatial distance between the current node and the neighbor node that is in the same parent node as the current node in space and on the same plane or line and at the same point as the current node is considered to be very close, and they may be considered to belong to the same adjacent region. At this time, the neighbor node of the parent node corresponding to the current node may be searched for based on the Morton code. Compared with the conventional technical solution that searches for the neighbor node based on different distance thresholds, the classification method of the embodiment of the present application does not require the setting of different threshold parameters, and does not require the calculation of the spatial distance between points every time, which can greatly reduce the calculation complexity.

[0127] Furthermore, in the embodiment of the present application, each time the LOD layer is partitioned, only the neighbor nodes of the parent node corresponding to the current node are determined, and the current node is added to the set O(k), and the neighbor nodes corresponding to the current node are added to the set L(k), so that the spatial distribution characteristics of the point cloud are also considered in the spatial distribution, rather than only considering the spatial geometric distance between the points, that is, by considering the spatial geometric distance of the points in the space and the spatial distribution characteristics of the point cloud in the space together, the prediction performance can be improved, and relatively good encoding and decoding performance can be obtained. It should be noted that the partitioning method of the embodiment of the present application searches and samples the neighbor nodes of the current node only based on the Morton code of the original point cloud. Compared with the original partitioning method that searches for the nearest neighbor within a certain range based on the index of the Morton code every time, the calculation complexity is greatly reduced.

[0128] This embodiment provides a partitioning method, which is applied to the encoder or decoder. The above embodiment is used to explain the specific implementation of the embodiment in detail, and the technical solution of the present application does not calculate the spatial distance between the current node and the neighboring node, but uses the Morton code to search for the neighboring node of the parent node corresponding to the current node every time the LOD layer is partitioned, and predicts the neighboring node by using the current node as a sampling point. This not only reduces the computational complexity, but also improves the accuracy of the predicted attributes of the neighboring node by considering the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, effectively reduces the bit overhead of the encoding, and improves the efficiency of the encoding and decoding.

[0129] Based on the same invention idea as the above embodiment, refer to FIG. 8, which shows a structural schematic diagram of an encoder 80 according to an embodiment of the present application. As shown in FIG. 8, the encoder 80 may include a first calculation unit 801, a first determination unit 802, a first judgment unit 803, a first right shift unit 804, a first search unit 805 and a first partition unit 806; The first calculation unit 801 is configured to calculate, based on the point cloud awaiting partition, a Morton code of a point in the point cloud awaiting partition; The first determining unit 802 determines a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0 and N i is an integer greater than 0, The first judging unit 803 is configured to determine whether i is less than or equal to M-1, where M indicates a preset number of layers of the LOD division; A first right shift unit 804 shifts the Morton code of the point in the point cloud to be segmented to the right by N, for the i-th LOD layer, where i is less than or equal to M−1. i The bit-shift is set to store the right-shifted Morton code in a preset storage area, The first determining unit 802 is further configured to determine a Morton code of a parent node corresponding to the current node in the i-th LOD layer; The first search unit 805 is configured to search for a neighbor node corresponding to the parent node in the preset storage area according to the determined Morton code of the parent node; The first partitioning unit 806 is configured to partition the current node into an i-th LOD layer and partition the neighbor node into an i+1-th LOD layer; The first judgment unit 803 is further configured to update i based on i+1 and return to judging whether i is less than or equal to M-1; The first determining unit 802 is further configured to determine, when i is greater than M-1, the 0th LOD layer to the M-1th LOD layer as the LOD layers to be segmented corresponding to the point cloud to be segmented.

[0130] In the above technical solution, referring to Fig. 8, the encoder 80 may further include a first sorting unit 807. The first sorting unit 807 is configured to sort the Morton codes of the points in the point cloud to be segmented according to a preset sorting policy, and determine the sorted Morton codes as the Morton codes of the points in the point cloud to be segmented.

[0131] In the above technical solution, referring to Fig. 8, the encoder 80 may further include a first sampling unit 808. The first sampling unit 808 is configured to sample the sorted Morton code to obtain a Morton code of K sampling points, where K is an integer greater than 0; the first right-shift unit 804 is further configured to perform a right-shift operation on the Morton code of the K sampling points to obtain K sampling points corresponding to the right-shifted Morton code; The first judgment unit 803 is further configured to judge whether the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point, and if the K sampling points corresponding to the right-shifted Morton code do not correspond to at least one neighbor node per sampling point, continue to perform a step of performing a right shift processing on the Morton code of the K sampling points, and if the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point, obtain a right shift bit number of the K sampling points, and determine the right shift bit number as an initial right shift bit number of the Morton code of the point in the point cloud to be partitioned, where the initial right shift bit number indicates a corresponding right shift bit number N0 in the 0th LOD layer of the Morton code of the point in the point cloud to be partitioned.

[0132] In the above technical solution, referring to Fig. 8, the encoder 80 may further include a first analysis unit 809. The first analysis unit 809 is configured to perform characteristic analysis on the point cloud to be segmented, and determine the value of K.

[0133] In the above technical solution, the first determining unit 802 is further configured to determine a maximum Morton code and a minimum Morton code according to the sorted Morton codes; The first calculation unit 801 is further configured to calculate a difference value between the maximum Morton code and the minimum Morton code; The first right shift unit 804 is further configured to perform a right shift operation on the difference value, and obtain a right shift bit number of the difference value when the right shifted difference value satisfies a preset range; The first determining unit 802 is further configured to determine the right-shift bit number as an initial right-shift bit number of the point cloud to be partitioned.

[0134] In the above technical solution, the first determining unit 802 further determines, when i is not equal to 0, a right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented by using a first preset calculation model: i is set to determine

[0135] In the above technical solution, the first determining unit 802 specifically determines the right shift bit number N corresponding to the i-1th LOD layer. i-1 and shift the number of right bits N corresponding to the i-1th LOD layer. i-1 and a preset value to obtain an added value, and the added value is shifted to the right by a number of bits N corresponding to the i-th LOD layer. i It is set to determine as follows.

[0136] In the above technical solution, the first analysis unit 809 is further configured to perform characteristic analysis on the point cloud to be classified, and determine the preset value.

[0137] In the above technical solution, the preset value is equal to 3.

[0138] In the above technical solution, the first right shift unit 804 further determines a right shift bit number N i A right shift operation is performed on the Morton code of the current node in the i-th LOD layer based on The first determining unit 802 is further configured to determine the right-shifted Morton code as the Morton code of a parent node corresponding to the current node in the i-th LOD layer.

[0139] In the above technical solution, the first determining unit 802 is further configured to determine, according to the determined Morton code of the parent node, a Morton code of a neighbor node corresponding to the parent node; The first search unit 805 is specifically configured to search, according to the Morton code of the neighbor node, in the preset storage area for a neighbor node corresponding to the Morton code of the neighbor node.

[0140] In the above technical solution, the first calculation unit 801 is further configured to calculate, according to the determined Morton code of the parent node, the Morton codes of all neighbor nodes that are in the same plane, in the same line, and at the same point as the parent node, to obtain the Morton codes of the first quantity of neighbor nodes; The first determination unit 802 is specifically configured to compare the Morton codes of the first quantity of neighbor nodes with the Morton code of the current node, respectively, and discard the Morton code of the neighbor node if the Morton code of the neighbor node is smaller than the Morton code of the current node; and if the Morton code of the neighbor node is equal to or greater than the Morton code of the current node, reserve the Morton code of the neighbor node and obtain the Morton codes of a second quantity of neighbor nodes; and when the second quantity is smaller than or equal to the first quantity, determine the Morton codes of the second quantity of neighbor nodes as the Morton codes of the neighbor nodes corresponding to the parent node.

[0141] In the above technical solution, the first determining unit 802 is further configured to determine, according to the point cloud to be segmented, an adjacent region corresponding to a current node in the i-th LOD layer; The first calculation unit 801 is further configured to calculate a center of mass of the adjacent region, and select a node closest to the center of mass from the current node and the first quantity of neighbor nodes as a goal node; The first partitioning unit 806 is further configured to partition the target node into an i-th LOD layer and partition remaining nodes into an i+1-th LOD layer, the remaining nodes indicating nodes other than the target node among the current node and the first quantity of neighbor nodes.

[0142] In the above technical solution, the first right shift unit 804 is further configured to perform right shifting on the Morton codes of the points in the point clouds to be segmented to obtain a plurality of sets, each set including a portion of the point clouds to be segmented among the point clouds to be segmented; The first segmentation unit 806 is further configured to perform, for each set of the plurality of sets, a step of performing LOD layer segmentation on a portion of the point clouds to be segmented that are included in each set, respectively.

[0143] As can be understood, in this embodiment, a "unit" may be a part of an electronic circuit, a part of a processor, a part of a program or software, etc., and may be a module or a non-modular one. Each component in this embodiment may be integrated into one processing unit, each unit may exist physically, or two or more units may be integrated into one unit. The integrated unit may be realized in the form of hardware or in the form of a software function module.

[0144] The integrated unit can be realized in the form of a software function module and stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of this embodiment or a part of the contribution to the prior art, or all or a part of the technical solution, may be embodied in the form of a software product, and the computer software product is stored in a storage medium and includes some instructions for a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or a part of the steps of the method described in this embodiment. The storage medium includes various media capable of storing program code, such as a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0145] Therefore, this embodiment provides a computer storage medium, which is applied to the encoder 80, and a segmentation program is stored in the computer storage medium, and when the segmentation program is executed by the first processor, the method according to any one of the embodiments is realized.

[0146] Based on the above configuration of the encoder 80 and the computer storage medium, refer to FIG. 9. FIG. 9 shows a specific hardware structure of the encoder 80 according to an embodiment of the present application, which may include a first communication interface 901, a first memory 902 and a first processor 903, and each component is coupled by a first bus system 904. As can be seen, the first bus system 904 is used to realize the connection communication between these components. In addition to a data bus, the first bus system 904 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are denoted as the first bus system 904 in FIG. 9. Among them, The first communication interface 901 is used for transmitting and receiving signals in the process of transmitting and receiving information with other external network elements; The first memory 902 is used to store a computer program executable by the first processor 903, When the first processor 903 executes the computer program, calculating Morton codes for points in the awaiting segmentation point cloud based on the awaiting segmentation point cloud; The number of right shift bits N corresponding to the i-th Level of Detail (LOD) layer in the point cloud to be segmented i Determine i, where i is an integer equal to or greater than 0, and N i is an integer greater than 0, determining whether i is less than or equal to M-1, where M indicates a preset number of layers for the LOD division; If i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be segmented is calculated by multiplying the Morton code by N i bit-shifting and storing the right-shifted Morton code in a preset storage area; determining a Morton code for a parent node corresponding to a current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; Partitioning the current node into an i-th LOD layer and partitioning the neighbor node into an i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; If i is greater than M-1, the 0th LOD layer to the M-1th LOD layer are determined as LOD layers to be segmented corresponding to the point cloud awaiting segmentation.

[0147] As can be appreciated, the first memory 902 in the present embodiment may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Here, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM) used as an external cache. By way of example and not of limitation, many types of RAM are available, such as static random access memory (SRAM, Static RAM), dynamic random access memory (DRAM, Dynamic RAM), synchronous dynamic random access memory (SDRAM, Synchronous DRAM), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate SDRAM), enhanced synchronous dynamic random access memory (ESDRAM, Enhanced SDRAM), synchronously linked dynamic random access memory (SLDRAM, Synchlink DRAM), direct memory access memory (DRRAM, Direct Rambus RAM). The first memory 902 of the systems and methods described herein includes, but is not limited to, these and any other suitable types of memory.

[0148] The first processor 903 may be an integrated circuit chip and has the ability to process signals. In the implementation process, each step of the above method can be performed by an instruction of an integrated logic circuit of hardware or a software form in the first processor 903. The first processor 903 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware module. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be realized or performed. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application are directly performed in a hardware decode processor, or are performed in a combination of hardware and software modules in the decode processor. The software module may be located in a storage medium matured in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically rewritable programmable memory, a register, etc. The storage medium is in the first memory 902, and the first processor 903 reads the information in the first memory 902 and performs the steps of the above method together with its hardware.

[0149] As can be appreciated, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSPs), Digital Signal Processors (DSPDs), Programmable Logic Devices (PLDs), Field-Programmable Gate Arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof. For a software implementation, the techniques described herein may be implemented by functional modules (e.g., processes, functions, etc.) described herein. The software code may be stored in a memory and executed by the processor. The memory may be implemented within the processor or external to the processor.

[0150] Alternatively, as another embodiment, the first processor 903 is further configured to perform the method according to any one of the above embodiments when executing said computer program.

[0151] An embodiment of the present application provides an encoder, which may include a first calculation unit, a first determination unit, a first judgment unit, a first right-shift unit, a first search unit, and a first segmentation unit. The first calculation unit is configured to calculate, based on a point cloud to be segmented, a Morton code of a point in the point cloud to be segmented. The first determination unit is configured to calculate a number of right-shift bits N corresponding to an i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0 and N iis an integer greater than 0. The first judging unit is configured to determine whether i is less than or equal to M-1, where M represents a preset layer number of LOD partitions. The first right shifting unit shifts the Morton code of the point in the point cloud to be partitioned to the right by N for the i-th LOD layer if i is less than or equal to M-1. i The first determining unit is further configured to bit-shift the Morton code and store the right-shifted Morton code in a preset storage area. The first determining unit is further configured to determine a Morton code of a parent node corresponding to the current node in the i-th LOD layer. The first searching unit is configured to search for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node. The first partitioning unit is configured to partition the current node into the i-th LOD layer and partition the neighbor node into the i+1-th LOD layer. The first judging unit is further configured to update i based on i+1 and return to judging whether i is less than or equal to M-1. The first determining unit is further configured to determine the 0-th LOD layer to the M-1-th LOD layer as LOD layers partitioned corresponding to the point cloud to be partitioned if i is greater than M-1. In this way, the technical solution of the present application does not calculate the spatial distance between the current node and the neighbor node, but instead searches for the neighbor node of the parent node corresponding to the current node using the Morton code every time the LOD layer is divided, and predicts the neighbor node using the current node as a sampling point, which not only reduces the computational complexity, but also improves the accuracy of the predicted attributes of the neighbor node by considering the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, effectively reduces the bit overhead of the encoding, and improves the efficiency of the encoding and decoding.

[0152] Based on the same invention idea of ​​the above embodiment, refer to Fig. 10, Fig. 10 shows a structural schematic diagram of a decoder 100 according to an embodiment of the present application. As shown in Fig. 10, the decoder 100 may include a second calculation unit 1001, a second determination unit 1002, a second judgment unit 1003, a second right shift unit 1004, a second search unit 1005 and a second partition unit 1006; The second calculation unit 1001 is configured to calculate, based on the point cloud awaiting partition, a Morton code of a point in the point cloud awaiting partition; A second determining unit 1002 determines a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0 and N i is an integer greater than 0, The second judging unit 1003 is configured to determine whether i is less than or equal to M-1, where M represents the preset number of layers of the LOD division; A second right shift unit 1004 shifts the Morton code of the point in the point cloud to be segmented to the right by N, for the i-th LOD layer, where i is less than or equal to M−1. i The bit-shift is set to store the right-shifted Morton code in a preset storage area, The second determining unit 1002 is further configured to determine a Morton code of a parent node corresponding to the current node in the i-th LOD layer; a second search unit 1005 configured to search, according to the determined Morton code of the parent node, in the preset storage area for a neighbor node corresponding to the parent node; A second partitioning unit 1006 is configured to partition the current node into an i-th LOD layer and partition the neighbor node into an i+1-th LOD layer; The second judgment unit 1003 is further configured to update i based on i+1, and return to judging whether i is less than or equal to M-1; The second determining unit 1002 is further configured to determine, when i is greater than M-1, the 0th LOD layer to the M-1th LOD layer as the LOD layers to be segmented corresponding to the point cloud to be segmented.

[0153] In the above technical solution, referring to Fig. 10, the decoder 100 may further include a second sorting unit 1007. The second sorting unit 1007 is configured to sort the Morton codes of the points in the point cloud to be segmented according to a preset sorting policy, and determine the sorted Morton codes as the Morton codes of the points in the point cloud to be segmented.

[0154] In the above technical solution, referring to Fig. 10, the decoder 100 may further include a second sampling unit 1008. The second sampling unit 1008 is configured to sample the sorted Morton code to obtain a Morton code of K sampling points, where K is an integer greater than 0; the second right-shift unit 1004 is further configured to perform a right-shift operation on the Morton code of the K sampling points to obtain K sampling points corresponding to the right-shifted Morton code; The second judgment unit 1003 is further configured to judge whether the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point, and if the K sampling points corresponding to the right-shifted Morton code do not correspond to at least one neighbor node per sampling point, continue to perform a step of performing a right shift processing on the Morton code of the K sampling points, and if the K sampling points corresponding to the right-shifted Morton code correspond to at least one neighbor node per sampling point, obtain a right shift bit number of the K sampling points, and determine the right shift bit number as an initial right shift bit number of the Morton code of the point in the point cloud to be partitioned, where the initial right shift bit number indicates a corresponding right shift bit number N0 in the 0th LOD layer of the Morton code of the point in the point cloud to be partitioned.

[0155] In the above technical solution, referring to Fig. 10, the decoder 100 may further include a second analysis unit 1009. The second analysis unit 1009 is configured to perform characteristic analysis on the point cloud to be segmented, and determine the value of K.

[0156] In the above technical solution, the second determining unit 1002 is further configured to determine a maximum Morton code and a minimum Morton code according to the sorted Morton codes; the second calculation unit 1001 is further configured to calculate a difference value between the maximum Morton code and the minimum Morton code; The second right shift unit 1004 is further configured to perform a right shift operation on the difference value, and obtain a right shift bit number of the difference value when the right shifted difference value satisfies a preset range; The second determining unit 1002 is further configured to determine the right-shift bit number as an initial right-shift bit number of the point cloud to be partitioned.

[0157] In the above technical solution, the second determining unit 1002 further determines, when i is not equal to 0, a right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented by using a first preset calculation model. i is set to determine

[0158] In the above technical solution, the second determining unit 1002 specifically determines the right shift bit number N corresponding to the i-1th LOD layer. i-1 and shift the number of right bits N corresponding to the i-1th LOD layer. i-1 and a preset value to obtain an added value, and the added value is shifted to the right by a number of bits N corresponding to the i-th LOD layer. i It is set to determine as follows.

[0159] In the above technical solution, the second analysis unit 1009 is further configured to perform characteristic analysis on the point cloud to be segmented, and determine the preset value. In the above technical solution, the preset value is equal to 3.

[0160] In the above technical solution, the second right shift unit 1004 further determines a right shift bit number N i A right shift operation is performed on the Morton code of the current node in the i-th LOD layer based on The second determining unit 1002 is further configured to determine the right-shifted Morton code as the Morton code of a parent node corresponding to the current node in the i-th LOD layer.

[0161] In the above technical solution, the second determining unit 1002 is further configured to determine, according to the determined Morton code of the parent node, a Morton code of a neighbor node corresponding to the parent node; The second search unit 1005 is specifically configured to search, according to the Morton code of the neighbor node, in the preset storage area for a neighbor node corresponding to the Morton code of the neighbor node.

[0162] In the above technical solution, the second calculation unit 1001 is further configured to calculate, according to the Morton code of the determined parent node, the Morton codes of all neighbor nodes that are in the same plane, in the same line, and at the same point as the parent node, to obtain the Morton codes of the first quantity of neighbor nodes; The second determination unit 1002 is specifically configured to compare the Morton codes of the first quantity of neighbor nodes with the Morton code of the current node, respectively, discard the Morton code of the neighbor node if the Morton code of the neighbor node is smaller than the Morton code of the current node, reserve the Morton code of the neighbor node if the Morton code of the neighbor node is equal to or greater than the Morton code of the current node, and obtain the Morton codes of the second quantity of neighbor nodes, and when the second quantity is smaller than the first quantity, determine the Morton codes of the second quantity of neighbor nodes as the Morton codes of the neighbor nodes corresponding to the parent node.

[0163] In the above technical solution, the second determining unit 1002 is further configured to determine, according to the point cloud to be segmented, an adjacent region corresponding to a current node in the i-th LOD layer; The second calculation unit 1001 is further configured to calculate a center of mass of the adjacent region, and select a node closest to the center of mass from the current node and the first quantity of neighbor nodes as a goal node; The second partitioning unit 1006 is further configured to partition the target node into an i-th LOD layer and partition remaining nodes into an i+1-th LOD layer, the remaining nodes indicating nodes other than the target node among the current node and the first quantity of neighbor nodes.

[0164] In the above technical solution, the second right shift unit 1004 is further configured to perform right shifting on the Morton codes of the points in the point clouds to be segmented to obtain a plurality of sets, each set including a portion of the point clouds to be segmented among the point clouds to be segmented; The second segmentation unit 1006 is further configured to perform, for each set of the plurality of sets, a step of performing LOD layer segmentation on a portion of the point clouds to be segmented that are included in each set, respectively.

[0165] As can be understood, in this embodiment, a "unit" may be a part of an electronic circuit, a part of a processor, a part of a program or software, etc., and may be a module or a non-modular one. Each component in this embodiment may be integrated into one processing unit, each unit may exist physically, or two or more units may be integrated into one unit. The integrated unit may be realized in the form of hardware or in the form of a software function module.

[0166] The integrated unit can be realized in the form of a software function module and stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, this embodiment provides a computer storage medium, which is applied to the decoder 100, and a partitioning program is stored in the computer storage medium, and when the partitioning program is executed by the second processor, the method according to any one of the embodiments is realized.

[0167] Based on the above configuration of the decoder 100 and the computer storage medium, refer to FIG. 11. FIG. 11 shows a specific hardware structure of the decoder 100 according to an embodiment of the present application, which may include a second communication interface 1101, a second memory 1102 and a second processor 1103, and each component is coupled by a second bus system 1104. As can be seen, the second bus system 1104 is used to realize the connection communication between these components. In addition to the data bus, the second bus system 1104 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are denoted as the second bus system 1104 in FIG. 11. Among them, The second communication interface 1101 is used for transmitting and receiving signals in the process of transmitting and receiving information with other external network elements; The second memory 1102 is used to store a computer program executable by the second processor 1103, When the second processor 1103 executes the computer program, calculating Morton codes for points in the awaiting segmentation point cloud based on the awaiting segmentation point cloud; The number of right shift bits N corresponding to the i-th Level of Detail (LOD) layer in the point cloud to be segmented i Determine i, where i is an integer equal to or greater than 0, and N i is an integer greater than 0, determining whether i is less than or equal to M-1, where M indicates a preset number of layers for the LOD division; If i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be segmented is calculated by multiplying the Morton code by N i bit-shifting and storing the right-shifted Morton code in a preset storage area; determining a Morton code for a parent node corresponding to a current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; Partitioning the current node into an i-th LOD layer and partitioning the neighbor node into an i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; If i is greater than M-1, the 0th LOD layer to the M-1th LOD layer are determined as LOD layers to be segmented corresponding to the point cloud awaiting segmentation.

[0168] Alternatively, as another embodiment, the second processor 1103 is further configured to perform the method according to any one of the above embodiments when executing said computer program.

[0169] As can be appreciated, the hardware functions of the second memory 1102 and the first memory 902 are similar, and the hardware functions of the second processor 1103 and the first processor 903 are similar, so they will not be repeated here.

[0170] An embodiment of the present application provides a decoder, which may include a second calculation unit, a second determination unit, a second judgment unit, a second right shift unit, a second search unit, and a second segmentation unit. The second calculation unit is configured to calculate, based on the point cloud to be segmented, a Morton code of a point in the point cloud to be segmented. The second determination unit is configured to calculate a number of right shift bits N corresponding to an i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0 and N i is an integer greater than 0. The second judgment unit is configured to determine whether i is less than or equal to M-1, where M represents the number of preset layers of the LOD partition. The second right shift unit shifts the Morton code of the point in the point cloud to be partitioned to the right by N for the i-th LOD layer if i is less than or equal to M-1. iThe second determining unit is further configured to bit-shift the Morton code and store the right-shifted Morton code in a preset storage area. The second determining unit is further configured to determine a Morton code of a parent node corresponding to the current node in the i-th LOD layer. The second searching unit is configured to search for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node. The second partitioning unit is configured to partition the current node into the i-th LOD layer and partition the neighbor node into the i+1-th LOD layer. The second judging unit is further configured to update i based on i+1 and return to judging whether i is less than or equal to M-1. The second determining unit is further configured to determine the 0-th LOD layer to the M-1-th LOD layer as LOD layers partitioned corresponding to the point cloud to be partitioned if i is greater than M-1. In this way, the technical solution of the present application does not calculate the spatial distance between the current node and the neighbor node, but instead searches for the neighbor node of the parent node corresponding to the current node using the Morton code every time the LOD layer is divided, and predicts the neighbor node using the current node as a sampling point, which not only reduces the computational complexity, but also improves the accuracy of the predicted attributes of the neighbor node by considering the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, effectively reduces the bit overhead of the encoding, and improves the efficiency of the encoding and decoding.

[0171] It is to be noted that, in this application, the terms "comprise", "include", or any other variation thereof, imply a non-exclusive inclusion, whereby a process, method, article, or apparatus that comprises a set of elements includes not only those elements, but also other elements not expressly recited, or further elements inherent in such process, method, article, or apparatus. In the absence of a more limited limitation, an element defined by a sentence "comprising a..." does not exclude the presence of other identical further elements in the process, method, article, or apparatus that comprises the element.

[0172] The numbers of the above embodiments of the present application are for illustrative purposes only and do not represent the superiority or inferiority of the embodiments.

[0173] The methods disclosed in any of the method embodiments of the present application can be arbitrarily combined, if they do not conflict, to obtain new method embodiments.

[0174] Features disclosed in any of the product embodiments according to the present application may be combined in any manner that does not conflict to obtain new product embodiments.

[0175] Features disclosed in any method or apparatus embodiment according to the present application may be combined in any manner not in conflict to obtain new method or apparatus embodiments.

[0176] The above are only specific embodiments of the present application, and the scope of protection of the present application is not limited thereto, and any changes or replacements that can be easily conceived by any person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims. [Industrial Applicability]

[0177] In an embodiment of the present application, the method is applied to an encoder, which calculates a Morton code of a point in the point cloud to be segmented based on the point cloud to be segmented, and a right shift bit number N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented. i Determine i, where i is an integer equal to or greater than 0, and N i is an integer greater than 0, and determine whether i is less than or equal to M-1, where M indicates the number of preset layers of the LOD partition, and if i is less than or equal to M-1, for the i-th LOD layer, the Morton code of the point in the point cloud to be partitioned is calculated by multiplying the Morton code by N idetermining a Morton code of a parent node corresponding to the current node in the i-th LOD layer; searching for a neighbor node corresponding to the parent node in the preset storage area based on the determined Morton code of the parent node; classifying the current node into the i-th LOD layer and classifying the neighbor node into the i+1-th LOD layer; updating i based on i+1 and returning to determine whether i is less than or equal to M-1; and if i is greater than M-1, determining the 0-th LOD layer to the M-1-th LOD layer as LOD layers to be classified corresponding to the point cloud to be classified. Thus, the technical solution of the present application does not calculate the spatial distance between the current node and the neighbor node, but uses the Morton code to search for a neighbor node of the parent node corresponding to the current node every time an LOD layer is classified, and predicts the neighbor node by using the current node as a sampling point. This not only reduces the computational complexity, but also improves the accuracy of predicted attributes of neighbor nodes by taking into account the spatial distribution characteristics of the point cloud, improves the reconstruction quality of the attribute part, and effectively reduces the bit overhead of encoding, thereby improving the efficiency of encoding and decoding.

Claims

1. A partitioning method is applied to an encoder, the method comprising: determining position information of points in the point cloud awaiting classification based on the point cloud awaiting classification; The number of right shift bits N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented i where i is an integer equal to or greater than 0, and N i is an integer greater than 0, and M indicates the maximum number of preset layers of the LOD partition; For the i-th LOD layer, the position information of the points in the point cloud to be divided is i bit-shifting the position information to the right and storing the position information in a preset storage area; Determining position information of a parent point corresponding to a current point in the i-th LOD layer; Searching for a neighbor point corresponding to the parent point in the preset storage area based on the position information of the determined parent point; Partitioning the current point into the i+1th LOD layer or partitioning the neighboring point into the i-th LOD layer.

2. The method further comprises: The method of claim 1 , further comprising: sorting position information of points in the point cloud awaiting classification according to a preset sorting policy; and determining the sorted position information as the position information of points in the point cloud awaiting classification.

3. The method further comprises: determining maximum and minimum location information based on the sorted location information; calculating a difference value between the maximum position information and the minimum position information; performing a right shift process on the difference value, and if the right shifted difference value satisfies a preset range, obtaining a right shift bit number of the difference value; determining the number of right shift bits as an initial number of right shift bits for the point cloud to be partitioned.

4. The number of right shift bits N corresponding to the i-th LOD layer in the point cloud to be segmented i To determine If i is less than or equal to M−1, a first preset calculation model is used to calculate the right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented. i The method of claim 1 , further comprising determining:

5. Determining position information of a parent point corresponding to a current point in the i-th LOD layer includes: The number of right shift bits N corresponding to the i-th LOD layer i performing a right shift process on the position information of the current point in the i-th LOD layer based on and determining the right-shifted position information as the position information of a parent point corresponding to the current point in the i-th LOD layer.

6. searching for a neighbor point corresponding to the parent point in the preset storage area based on the position information of the determined parent point; determining location information of a neighbor point corresponding to the parent point based on the determined location information of the parent point; The method according to claim 1 , further comprising: searching, based on the location information of the neighbor point, in the preset storage area, for a neighbor point corresponding to the location information of the neighbor point.

7. Determining location information of a neighbor point corresponding to the parent point based on the location information of the determined parent point includes: Calculating location information of all neighbor points that are on the same plane, line, and point as the parent point based on the determined parent point location information to obtain location information of a first quantity of neighbor points; comparing the location information of the first number of neighbor points with the location information of the current point; If the location information of the neighbor point is smaller than the location information of the current point, discarding the location information of the neighbor point; If the location information of the neighbor point is equal to or greater than the location information of the current point, reserve the location information of the neighbor point to obtain location information of a second number of neighbor points, and the second number is equal to or less than the first number; and determining location information of the second number of neighbor points as location information of neighbor points corresponding to the parent point.

8. A partitioning method is applied to a decoder, the method comprising: determining position information of points in the point cloud awaiting classification based on the point cloud awaiting classification; The number of right shift bits N corresponding to the i-th level of detail (LOD) layer in the point cloud to be segmented i where i is an integer equal to or greater than 0, and N i is an integer greater than 0, and M indicates the maximum number of preset layers of the LOD partition; For the i-th LOD layer, the position information of the points in the point cloud to be divided is i bit-shifting the position information to the right and storing the position information in a preset storage area; Determining position information of a parent point corresponding to a current point in the i-th LOD layer; Searching for a neighbor point corresponding to the parent point in the preset storage area based on the position information of the determined parent point; Partitioning the current point into the i+1th LOD layer or partitioning the neighboring point into the i-th LOD layer.

9. The method further comprises: The method of claim 8 , further comprising: sorting position information of points in the point cloud awaiting classification according to a preset sorting policy; and determining the sorted position information as the position information of points in the point cloud awaiting classification.

10. The method further comprises: determining maximum and minimum location information based on the sorted location information; calculating a difference value between the maximum position information and the minimum position information; performing a right shift process on the difference value, and if the right shifted difference value satisfies a preset range, obtaining a right shift bit number of the difference value; determining the number of right shift bits as an initial number of right shift bits for the to-be-partitioned point cloud.

11. The number of right shift bits N corresponding to the i-th LOD layer in the point cloud to be segmented i To determine If i is less than or equal to M−1, a first preset calculation model is used to calculate the right shift bit number N corresponding to the i-th LOD layer in the point cloud to be segmented. i 9. The method of claim 8, further comprising determining:

12. Determining position information of a parent point corresponding to a current point in the i-th LOD layer includes: The number of right shift bits N corresponding to the i-th LOD layer i performing a right shift process on the position information of the current point in the i-th LOD layer based on and determining the right-shifted position information as the position information of a parent point corresponding to the current point in the i-th LOD layer.

13. searching for a neighbor point corresponding to the parent point in the preset storage area based on the position information of the determined parent point; determining location information of a neighbor point corresponding to the parent point based on the determined location information of the parent point; The method according to claim 8 , further comprising: searching, based on the location information of the neighbor point, in the preset storage area, for a neighbor point corresponding to the location information of the neighbor point.

14. Determining location information of a neighbor point corresponding to the parent point based on the location information of the determined parent point includes: Calculating location information of all neighbor points that are on the same plane, line, and point as the parent point based on the determined parent point location information to obtain location information of a first quantity of neighbor points; comparing the location information of the first number of neighbor points with the location information of the current point; If the location information of the neighbor point is smaller than the location information of the current point, discarding the location information of the neighbor point; If the location information of the neighbor point is equal to or greater than the location information of the current point, reserve the location information of the neighbor point to obtain location information of a second number of neighbor points, and the second number is equal to or less than the first number; and determining location information of the second number of neighbor points as location information of neighbor points corresponding to the parent point.

15. An encoder, comprising: a first determining unit, a first right shifting unit, a first searching unit and a first partitioning unit; The first determination unit determines position information of a point in the point cloud to be segmented according to the point cloud to be segmented, and determines a right shift bit number N corresponding to an i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0, and N i is an integer greater than 0, M indicates the maximum number of preset layers of the LOD division, The first right shift unit shifts the position information of the points in the point cloud to be segmented to the right by N for the i-th LOD layer. i The bit-shifted data is stored in a preset storage area based on the right-shifted position information. The first determining unit is further configured to determine position information of a parent point corresponding to a current point in an i-th LOD layer; The first search unit is configured to search for a neighbor point corresponding to the parent point in the preset storage area according to the determined position information of the parent point; The first partitioning unit is an encoder configured to partition the current point into an i+1-th LOD layer or partition the neighbor point into an i-th LOD layer.

16. a decoder, comprising a second decision unit, a second right shift unit, a second search unit and a second partition unit; The second determination unit determines, based on the point cloud to be segmented, position information of a point in the point cloud to be segmented; and a right shift bit number N corresponding to an i-th level of detail (LOD) layer in the point cloud to be segmented. i where i is an integer equal to or greater than 0, and N i is an integer greater than 0, M indicates the maximum number of preset layers of the LOD division, The second right shift unit shifts the position information of the points in the point cloud to be segmented to the right by N for the i-th LOD layer. i The bit-shifted data is stored in a preset storage area based on the right-shifted position information. The second determining unit is further configured to determine position information of a parent point corresponding to a current point in an i-th LOD layer; The second search unit is configured to search for a neighbor point corresponding to the parent point in the preset storage area according to the determined position information of the parent point; The second partitioning unit is a decoder configured to partition the current point into an i+1th LOD layer or partition the neighbor point into an i-th LOD layer.

Citation Information

Patent Citations

  • Point cloud encoding and decoding method, encoding device and decoding device

    CN109889840A

  • Point Cloud Compression

    US20190080483A1

  • Bezier volume representation of point cloud attributes

    US20190228050A1

  • Indexation of massive point cloud data for efficient visualization

    US20200027248A1

  • Information processing device and method

    WO2019078000A1