A method and device for sequentially encoding and decoding point clouds
By using the Hilbert order method in point cloud encoding and decoding, the encoding and decoding order of point clouds is improved, the problem of low encoding and decoding efficiency under Morton order is solved, and the efficiency and synchronization of geometry and attribute decoding are improved. Reduced storage requirements.
Patent Information
- Application Number
- CN202011452464.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-12-08
AI Technical Summary
The point cloud encoding and decoding efficiency under Morton order is low, resulting in low geometric information encoding efficiency, and the spatial distance characteristics of adjacent points are poor, affecting the accuracy and efficiency of attribute encoding.
The point cloud encoding and decoding method based on Hilbert order is used to decode the space occupation code of the point cloud tree structure from the code stream to determine the status and spatial coordinates of the child nodes, improve the arrangement order of the child nodes, and improve the geometry. and attribute decoding synchronization and compression efficiency.
It improves the efficiency of point cloud encoding and decoding, reduces implementation complexity, and reduces storage requirements by decoding geometry and attributes in the same order.
Smart Images

Figure CN114615509B_ABST
Abstract
Description
Technical Field
[0001] The patent of this invention belongs to the field of point cloud encoding and decoding, and specifically relates to a method and device for sequential encoding and decoding of point clouds. Background Art
[0002] Point cloud is an ideal way to express three-dimensional scenes or three-dimensional objects. It is composed of a series of unconnected points in space. A frame of point cloud often contains hundreds of thousands or even hundreds of millions of points. Therefore, it is necessary to encode and compress the point cloud.
[0003] Point cloud is divided into geometric part and attribute part. Geometric information is used to express the structure of 3D objects, which is composed of 3D position coordinates x, y, z; while attribute information is used to express the surface properties of 3D scenes or objects. Common attribute information includes color, reflectivity, normal and transparency. The encoding and decoding of the geometric part is independent of the encoding and decoding of the attribute part; the encoding and decoding of the attribute part is based on the geometric part, that is, the geometric information has been encoded and decoded when the attribute is encoded and decoded, so the geometric information can be used to encode and decode the attribute. Therefore, geometric encoding and decoding is also crucial in the entire point cloud encoding and decoding.
[0004] Most point cloud compression algorithms are based on voxelized point clouds, which have the advantages of easy processing and controllable accuracy. Voxelized point clouds refer to point clouds whose position coordinates are quantized to a cube grid. The coordinates of the midpoint of each cube grid represent the coordinates of the midpoint of the cube grid. Therefore, when encoding the position information of the point cloud, only the index of the cube grid needs to be encoded, and the position accuracy can be controlled by the size of the cube grid.
[0005] At present, both the geometric encoding and attribute encoding of point clouds are based on the Morton order. For geometric encoding and decoding, a tree partitioning method is used. By recursively partitioning the entire point cloud, a tree structure is used to represent the geometric information of the point cloud. Taking the octree as an example, Figure 1 As shown, specifically for any point cloud, its bounding box B represents the largest cube that can contain all the points in the input point cloud, and tree partitioning is the process of continuously partitioning the bounding box B. Each partition divides a parent node into 8 child nodes. If there is at least one point cloud point in the child node, the occupancy state of the child node is occupied, otherwise it is unoccupied. If a node is occupied, it will continue to be divided until the child node is not occupied or divided into the smallest unit node, that is, a voxel block with a side length of 1. We use space occupancy codes to represent the occupancy of all child nodes of a node. The occupancy information of each child node is arranged in the order of the Morton code to generate the existing space occupancy code. The order of the Morton code is as follows Figure 2As shown in FIG. 1 , the corresponding relationship between the order of the occupancy symbols in the space occupancy code under the Morton order and the spatial position of the child node is fixed, that is, the 0th bit of the space occupancy code represents the child node with a spatial position of (0, 0, 0), the 1st bit of the space occupancy code represents the child node with a spatial position of (0, 0, 1), and so on, the 7th bit of the space occupancy code represents the child node with a spatial position of (1, 1, 1). All space occupancy codes are encoded in sequence according to the hierarchical traversal, and the geometric information of the point cloud can be fully represented. Usually, the occupancy of the encoded adjacent parent node and the occupancy of the encoded adjacent sibling node are used to estimate the spatial occupancy probability of the current child node, so as to perform entropy encoding or entropy decoding of the space occupancy code value of the current child node. The adjacent points under the Morton order are far and near in spatial distance, and the spatial neighbor characteristics are poor, resulting in inaccurate probability estimation, which will affect the efficiency of geometric information encoding.
[0006] The attribute encoding of the point cloud is after the geometric encoding of the point cloud, so the geometric coordinates of all point cloud points are known. The corresponding Morton code of each point is calculated according to the coordinates, and all point cloud points are reordered according to the size of the Morton code, and attribute encoding is performed on the basis of the Morton order. For a point whose attribute is to be encoded, the Morton code value of the points encoded in the previous order is smaller than the value of the Morton code of the current point. Reference points are found from these points for attribute prediction. Common methods include directly selecting N points with the closest Morton code to the current point from the points encoded in the previous order as reference points, or selecting N points with the closest spatial distance to the current point from the points encoded in the previous order as reference points, or selecting N points at specific coordinate positions in the points encoded in the previous order as reference points. After determining the reference point, the attribute values of these reference points are weighted averaged, and the attribute value obtained is the predicted attribute value of the current point. Generally speaking, the closer the spatial distance between the reference point and the current point is, the higher the attribute correlation between them is, the better the prediction effect is, and the lower the encoding bit rate is under the same distortion. However, since the spatial distance between adjacent or similar points in the Morton order will jump periodically, the spatial distance between adjacent points in the Morton order will fluctuate, the spatial correlation is not high, and the spatial neighbor characteristics are very poor, so the reference points found are often not ideal. Summary of the invention
[0007] In order to further improve the efficiency of point cloud encoding and decoding, the present invention proposes a method and device for sequential encoding and decoding of point clouds in order to solve the problem that the spatial distance between adjacent points in the Morton order will jump periodically.
[0008] The first object of the present invention is to provide a method for sequentially decoding a point cloud, comprising the following contents:
[0009] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream IN-1 , the space occupation code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud;
[0010] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N ;
[0011] Get the state s of the node I I N-1 ;
[0012] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional spatial coordinate value represented in binary format corresponding to the child node.
[0013] Preferably, the node status includes:
[0014] The state of the root node in the tree structure is pre-agreed between the encoder and the decoder, or is obtained by decoding from the bitstream.
[0015] Preferably, the determining of the state of the child node and the value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node comprises:
[0016] The state s of child node i i N It is based on its corresponding first short code h i N From the state s of node I I N-1 The corresponding function or table is uniquely determined;
[0017] The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node i is based on the first short code h corresponding to it. i N From the state s of node I I N-1 The corresponding function or table is uniquely determined.
[0018] Preferably, the method further comprises:
[0019] According to the first short code h of the leaf node where the point in the point cloud is located Nand the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N ;
[0020] When performing attribute decoding on a point in the current point cloud, a reference point of the current point is determined based on a point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and the attribute value of the current point is predicted and decoded based on the reconstructed attribute value of the reference point.
[0021] Preferably, the method further comprises:
[0022] When performing attribute decoding on a point in the current point cloud, a point at a specific geometric coordinate position is searched among the decoded points as a reference point for the current point, the specific geometric coordinate is converted into a first codeword corresponding to the coordinate, a point identical to the first codeword corresponding to the coordinate is searched among the decoded points as a reference point, and the attribute value of the current point is predicted and decoded based on the reconstructed attribute value of the reference point.
[0023] A second object of the present invention is to provide a point cloud sequential decoding device, comprising:
[0024] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud;
[0025] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N ;
[0026] Node status acquisition module: used to obtain the status s of the node I I N-1 ;
[0027] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i NThe value of the Nth bit in the one-dimensional spatial coordinate value represented in binary format corresponding to the child node.
[0028] Preferably, the node status includes:
[0029] The state of the root node in the tree structure is pre-agreed between the encoder and the decoder, or is obtained by decoding from the bitstream.
[0030] Preferably, the spatial coordinate analysis module comprises:
[0031] Subnode status acquisition unit: used to obtain the first short code h corresponding to the subnode i i N From the state s of node I I N-1 The corresponding function or table uniquely determines the state s of child node i i N ;
[0032] Spatial coordinate analysis module: used to calculate the first short code h corresponding to the child node i i N From the state s of node I I N-1 The corresponding function or table uniquely determines the value of the Nth bit in one-dimensional space coordinate value represented by the binary representation corresponding to the child node i.
[0033] Preferably, the device further comprises:
[0034] The first codeword acquisition module is used to obtain the first short code h of the leaf node where the point in the point cloud is located. N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N ;
[0035] Attribute decoding module: used to decode the attributes of points in the current point cloud, determine the reference point of the current point according to the point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point.
[0036] Preferably, the device further comprises:
[0037] Attribute decoding module: used to decode the attributes of points in the current point cloud, search for a point with a specific geometric coordinate position in the decoded points as a reference point for the current point, convert the specific geometric coordinates into the first codeword corresponding to the coordinates, search for a point in the decoded points that is the same as the first codeword corresponding to the coordinates as a reference point, and predict and decode the attribute value of the current point based on the reconstructed attribute value of the reference point.
[0038] The third object of the present invention is a method for sequentially encoding a point cloud, comprising:
[0039] Get the state s of node I at the N-1th layer of the point cloud tree structure I N-1 ;
[0040] The node I is divided according to the value of the Nth bit in the one-dimensional space coordinate value corresponding to the binary representation of the child node i containing the point in the point cloud and the state s of the node I. I N-1 Determine the state of the child node s i N and the first short code h of the child node i N ;
[0041] The first short code h corresponding to the child node i N As the child node in the space occupation code OC I N-1 The sequence number in the space occupied code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud;
[0042] Space occupation code OC I N-1 to encode.
[0043] A fourth object of the present invention is a point cloud sequential encoding device, comprising:
[0044] Node state acquisition module: used to obtain the state s of node I at the N-1th layer of the point cloud tree structure I N-1 ;
[0045] Node division module: used to divide the node I according to the value of the Nth bit in the one-dimensional space coordinate value corresponding to the binary representation of the sub-node i containing the point in the point cloud and the state s of the node I I N-1 Determine the state of the child node s i N and the first short code h of the child nodei N ;
[0046] Occupancy code sequence number acquisition module: used to obtain the first short code h corresponding to the child node i N As the child node in the space occupation code OC I N-1 The sequence number in the space occupied code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud;
[0047] Space occupancy code encoding module: used to encode space occupancy code OC I N-1 Encoding. Under the Morton order, the bit order of the space occupancy code of an octree node is consistent with the arrangement order of its child nodes in space. Each bit of the subnode serial number corresponds to each bit on the subnode spatial coordinate axis. The first bit of the serial number corresponds to the x-axis of the spatial coordinate, the second bit of the serial number corresponds to the y-axis of the spatial coordinate, and the third bit of the serial number corresponds to the z-axis of the spatial coordinate. The three sets of correspondences are independent of each other and do not affect each other. Under the new processing order proposed by the present invention, there are multiple correspondences between the bit order of the space occupancy code of an octree node and the arrangement order of its child nodes in space, which need to be determined according to the state of the node. Therefore, the spatial coordinates of a subnode in a certain dimension are no longer independently determined by a certain bit in the subnode serial number, but need to be determined jointly according to the state of the node and all bits in the subnode serial number. The serial numbers of all direct ancestor nodes of the point cloud point form a new codeword. The spatial coordinates of the point cloud point are obtained according to the serial numbers and states of all direct ancestor nodes of the point cloud point. The direct ancestor node of the child node refers to all nodes in the upper layer that divide the node, including the parent node, the parent node of the parent node, and so on. The root node is the direct ancestor node of all nodes. Using the above decoding method based on the new processing order, the order of the point cloud points obtained is also arranged in the order of the new codeword size. Predictive decoding of point cloud attributes in this new order can make the attribute values of the reference point and the point to be decoded more relevant.
[0048] The sequential encoding and decoding method of point cloud proposed by the present invention decodes in a non-Morton order in geometry, which has higher compression efficiency, and the geometry and attributes use the same order, which can improve the synchronization and parallelism of geometry and attribute decoding, save the sorting process at the decoding end, and reduce the complexity of implementation. In addition, since the geometry decoding and attribute decoding are in the same order, the decoding end does not need to save the geometry information decoded too early, which further reduces the storage amount. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below constitute a part of this application, and the schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without paying creative work.
[0050] Figure 1 It is a voxelized point cloud and its corresponding octree structure and its spatial occupancy code.
[0051] Figure 2 is the Morton code traversal order of the child nodes in a node.
[0052] Figure 3 It is a Hilbert order octree structure and its space occupancy code.
[0053] Figure 4 yes Figure 3 The voxelized point cloud corresponding to the octree structure.
[0054] Figure 5 is based on Figure 3 The decoding process of the octree space occupancy code.
[0055] Figure 6 These are the 12 states of a Hilbert order node. DETAILED DESCRIPTION
[0056] In order to further understand the present invention, preferred embodiments of the present invention are described below in conjunction with examples. However, it should be understood that these descriptions are only for further illustrating the features and advantages of the present invention, rather than limiting the claims of the present invention.
[0057] Example 1
[0058] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0059] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of the occupancy code sequentially indicate whether each child node of node I contains a point in the point cloud: N = 1, the spatial occupancy code of the 0th layer node of the octree, that is, the spatial occupancy code of the root node, is decoded from the bit stream. According to the occupancy code, which nodes among the 8 child nodes are occupied can be obtained, such as Figure 3As shown, the space occupation code of the root node is 00000100.
[0060] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the root node, we can know that the 5th node of the root node is occupied, so the serial number 5 (binary representation is 101) is used as the first short code of this node.
[0061] Get the state s of the node I I N-1 : The state of the octree root node is uniformly agreed to be s 0 ,s 0 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0062] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the child node - 101, and the state s of the root node 0 , look up the following table and get the state of the child node as s 2 ,like Figure 5 shown.
[0063]
[0064] According to the first short code of the child node - 101, and the state of the root node s 0 , look up the following table and find that the first bit value of the spatial coordinate x of the child node is 1, the first bit value of y is 1, and the first bit value of z is 1, such as Figure 5 shown.
[0065]
[0066] Example 2
[0067] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0068] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1, the space occupation code OC I N-1 The bits of the occupancy code sequentially indicate whether each child node of node I contains a point in the point cloud: N = 1, the spatial occupancy code of the 0th layer node of the octree, that is, the spatial occupancy code of the root node, is decoded from the bit stream. According to the occupancy code, which nodes among the 8 child nodes are occupied can be obtained, such as Figure 3 As shown, the space occupation code of the root node is 00000100.
[0069] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the root node, we can know that the 5th node of the root node is occupied, so the serial number 5 (binary representation is 101) is used as the first short code of this node.
[0070] Get the state s of the node I I N-1 :The state of the octree root node is s obtained by decoding from the header information of the bitstream 0 ,s 0 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0071] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the child node - 101, and the state s of the root node 0 , look up the following table and get the state of the child node as s 2 ,like Figure 5 shown.
[0072]
[0073] According to the first short code of the child node - 101, and the state of the root node s 0 , look up the following table and find that the first bit value of the spatial coordinate x of the child node is 1, the first bit value of y is 1, and the first bit value of z is 1, such as Figure 5 shown.
[0074]
[0075] Example 3
[0076] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0077] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of the occupancy code sequentially indicate whether each child node of node I contains a point in the point cloud: N = 1, the spatial occupancy code of the 0th layer node of the octree, that is, the spatial occupancy code of the root node, is decoded from the bit stream. According to the occupancy code, which nodes among the 8 child nodes are occupied can be obtained, such as Figure 3 As shown, the space occupation code of the root node is 00000100.
[0078] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the root node, we can know that the 5th node of the root node is occupied, so the serial number 5 (binary representation is 101) is used as the first short code of this node.
[0079] Get the state s of the node I I N-1 : The state of the octree root node is uniformly agreed to be s 2 ,s 2 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0080] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the child node - 101, and the state s of the root node 2 , look up the following table and get the state of the child node as s 1 .
[0081]
[0082] According to the first short code of the child node - 101, and the state of the root node s 2, look up the table below and find that the first bit value of the spatial coordinate x of the child node is 0, the first bit value of y is 1, and the first bit value of z is 0.
[0083]
[0084] Example 4
[0085] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0086] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 Each bit of the node indicates in sequence whether each child node of node I contains a point in the point cloud: N = 2, the space occupancy code of the first node of the first layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied, such as Figure 3 As shown, the space occupation code of this node is 01001000.
[0087] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the node, we can know that the first child node and the fourth child node of this node are occupied, so 001 is used as the first short code of the first child node, and 100 is used as the first short code of the fourth child node.
[0088] Get the state s of the node I I N-1 :For a node that is not a root node, its state is obtained by its parent node and its sequence number in the parent node. In this example, the state of the node is s 2 ,s 2 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0089] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i NThe value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the first child node - 001, and the state s of its parent node 2 , look up the following table and get the state of the child node as s 10 , according to the first short code of the 4th child node - 100, and the state s of its parent node 2 , look up the following table and get the state of the child node as s 9 ,like Figure 5 shown.
[0090]
[0091] According to the first short code of the first child node - 001, and the state s of its parent node 2 , look up the table below, and get the second bit value of the spatial coordinate x of the child node is 1, the second bit value of y is 0, and the second bit value of z is 0. Combined with the first short code of its direct ancestor node, its corresponding Hilbert code can be obtained as 101001. Combined with the spatial coordinates of its direct ancestor node, its x coordinate is 11, y coordinate is 10, and z coordinate is 10. According to the first short code of the fourth child node - 100, and the state s of its parent node 2 , look up the table below and get the second bit value of the child node's spatial coordinate x is 0, the second bit value of y is 1, and the second bit value of z is 1. Combined with the first short code of its direct ancestor node, its corresponding Hilbert code can be obtained as 101100. Combined with the spatial coordinates of its direct ancestor node, its x coordinate is 10, y coordinate is 11, and z coordinate is 11. Figure 5 shown.
[0092]
[0093] Example 5
[0094] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0095] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the first node of the second-layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied, such as Figure 3 As shown, the space occupied by this node is 10001000.
[0096] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : N=3. From the space occupancy code of the node, we can know that the 0th child node and the 4th child node of this node are occupied. Therefore, 000 is used as the first short code of the 1st child node, and 100 is used as the first short code of the 4th child node.
[0097] Get the state s of the node I I N-1 :For a node that is not a root node, its state is obtained by its parent node and its sequence number in the parent node. In this example, the state of the node is s 10 ,s 10 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0098] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one of the one-dimensional spatial coordinate values in the binary representation corresponding to the child node: the child node is at the last level of the octree, that is, the leaf node. At this time, the child node has been divided into the smallest voxel unit, representing a point in the point cloud, and will not be further divided. Therefore, there is no need to determine the state of the leaf node.
[0099] According to the first short code of the 0th child node - 000, and the state s of its parent node 10 , look up the table below, and get the third bit value of the spatial coordinate x of the child node is 1, the third bit value of y is 0, and the third bit value of z is 1. Combined with the first short code of its direct ancestor node, the Hilbert code corresponding to the point cloud point is 101001000. Combined with the spatial coordinates of its direct ancestor node, the x coordinate of the point cloud point is 111, the y coordinate is 100, and the z coordinate is 101, that is, the spatial coordinates are (7,4,5); according to the first short code of the fourth child node - 100, and the state s of its parent node 10, look up the table below and get the value of the third bit of the spatial coordinate x of the child node is 1, the value of the third bit of y is 1, and the value of the third bit of z is 0. Combined with the first short code of its direct ancestor node, the Hilbert code corresponding to the point cloud point is 101100100. Combined with the spatial coordinates of its direct ancestor node, the x coordinate of the point cloud point is 111, the y coordinate is 101, and the z coordinate is 100, that is, the spatial coordinates are (7,5,4). Figure 5 shown.
[0100]
[0101] Example 6
[0102] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0103] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0104] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0105] Get the state s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0106] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i NThe value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0107]
[0108]
[0109] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point. Figure 3 The code stream finally gets Figure 4 The point cloud point coordinates.
[0110] Example 7
[0111] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0112] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0113] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N: From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0114] Get the state s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0115] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0116]
[0117]
[0118] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0119] When performing attribute decoding on a point in the current point cloud, determine the reference point of the current point according to the point cloud point whose first codeword corresponding to the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding are arranged from small to large according to the Hilbert code, and perform attribute decoding on the point cloud points in sequence. For the current point to be decoded, directly use the first n points as the reference points of the current point, and then perform weighted average on the reconstructed attribute values of these n points to obtain the predicted attribute value of the current point, where n can be 1, 2, etc.
[0120] Example 8
[0121] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0122] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0123] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0124] Get the state s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0125] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i NThe value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0126]
[0127]
[0128] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0129] When performing attribute decoding on a point in the current point cloud, determine the reference point of the current point according to the point cloud point whose first codeword corresponding to the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding have been arranged from small to large according to the Hilbert code, and perform attribute decoding on the point cloud points in sequence. For the current point to be decoded, search for the M points preceding the current point, select the n points closest to the current point in space from the M points as the reference point of the current point, and then perform weighted average on the reconstructed attribute values of these n points to obtain the predicted attribute value of the current point, where n can be 1, 2, etc.
[0130] Example 9
[0131] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0132] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0133] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0134] Get the state s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0135] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0136]
[0137] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0138] When performing attribute decoding on a point in the current point cloud, determine the reference point of the current point based on the point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point based on the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding have been arranged from small to large according to the Hilbert code, and perform attribute decoding on the point cloud points in turn. For the current point to be decoded with geometric coordinates (x, y, z), search for the first M points whose Hilbert code is smaller than the current point, and find a point with specific coordinates from the M points as a reference point.
[0139] When decoding the attributes of points in the current point cloud, find a point with a specific geometric coordinate position in the decoded points as a reference point for the current point, convert the specific geometric coordinates into the first codeword corresponding to the coordinates, find a point with the same codeword as the first codeword corresponding to the coordinates in the decoded points as a reference point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: take all points with a spatial distance of 1 from the current point as an example, convert the position coordinates to be searched into a Hilbert code, such as converting the (x+1, y, z) coordinates into a Hilbert code, and then find a point corresponding to the Hilbert code from the previous M points, and use the point as a reference point for the current point. Use the same method to search for n points as reference points, and then perform weighted average on the reconstructed attribute values of these n points to obtain the predicted attribute value of the current point, where n is less than or equal to 6.
[0140] Example 10
[0141] This embodiment shows a point cloud sequential decoding method based on a new processing order. This embodiment is a point cloud decoding method based on the Hilbert order, which includes the following contents:
[0142] Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0143] For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0144] Get the state s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0145] According to the first short code h of the child node i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0146]
[0147] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0148] When performing attribute decoding on a point in the current point cloud, determine the reference point of the current point based on the point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point based on the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding have been arranged from small to large according to the Hilbert code, and perform attribute decoding on the point cloud points in turn. For the current point to be decoded with geometric coordinates (x, y, z), search for the first M points whose Hilbert code is smaller than the current point, and find a point with specific coordinates from the M points as a reference point.
[0149] When performing attribute decoding on a point in the current point cloud, a point at a specific geometric coordinate position is searched among the decoded points as a reference point for the current point, the specific geometric coordinate is converted into the first codeword corresponding to the coordinate, and a point identical to the first codeword corresponding to the coordinate is searched among the decoded points as a reference point. The attribute value of the current point is predicted and decoded according to the reconstructed attribute value of the reference point: taking all points whose spatial distance from the current point is 1 and square root 2 as an example, the position coordinates to be searched are converted into Hilbert code, such as converting the (x-1, y+1, z) coordinates into Hilbert code, and then searching for a point corresponding to the Hilbert code from the preceding M points, and using the point as a reference point for the current point. The same method is used to search for n points as reference points, and then the reconstructed attribute values of the n points are weighted averaged to obtain the predicted attribute value of the current point, where n is less than or equal to 18.
[0150] Embodiment 11
[0151] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0152] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of the occupancy code sequentially indicate whether each child node of node I contains a point in the point cloud: N = 1, the spatial occupancy code of the 0th layer node of the octree, that is, the spatial occupancy code of the root node, is decoded from the bit stream. According to the occupancy code, which nodes among the 8 child nodes are occupied can be obtained, such as Figure 3 As shown, the space occupation code of the root node is 00000100.
[0153] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the root node, we can know that the 5th node of the root node is occupied, so the serial number 5 (binary representation is 101) is used as the first short code of this node.
[0154] Node status acquisition module: used to obtain the status s of the node I I N-1 : The state of the octree root node is uniformly agreed to be s 0 ,s 0 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0155] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the child node - 101, and the state s of the root node 0 , look up the following table and get the state of the child node as s 2 ,like Figure 5 shown.
[0156]
[0157] According to the first short code of the child node - 101, and the state of the root node s 0 , look up the following table and find that the first bit value of the spatial coordinate x of the child node is 1, the first bit value of y is 1, and the first bit value of z is 1, such as Figure 5 shown.
[0158]
[0159]
[0160] Example 12
[0161] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0162] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of the occupancy code sequentially indicate whether each child node of node I contains a point in the point cloud: N = 1, the spatial occupancy code of the 0th layer node of the octree, that is, the spatial occupancy code of the root node, is decoded from the bit stream. According to the occupancy code, which nodes among the 8 child nodes are occupied can be obtained, such as Figure 3 As shown, the space occupation code of the root node is 00000100.
[0163] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child nodei N : From the space occupancy code of the root node, we can know that the 5th node of the root node is occupied, so the serial number 5 (binary representation is 101) is used as the first short code of this node.
[0164] Node status acquisition module: used to obtain the status s of the node I I N-1 :The state of the octree root node is s obtained by decoding from the header information of the bitstream 0 ,s 0 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0165] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the child node - 101, and the state s of the root node 0 , look up the following table and get the state of the child node as s 2 ,like Figure 5 shown.
[0166]
[0167] According to the first short code of the child node - 101, and the state of the root node s 0 , look up the following table and find that the first bit value of the spatial coordinate x of the child node is 1, the first bit value of y is 1, and the first bit value of z is 1, such as Figure 5 shown.
[0168]
[0169]
[0170] Embodiment 13
[0171] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0172] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1The bits of the occupancy code sequentially indicate whether each child node of node I contains a point in the point cloud: N = 1, the spatial occupancy code of the 0th layer node of the octree, that is, the spatial occupancy code of the root node, is decoded from the bit stream. According to the occupancy code, which nodes among the 8 child nodes are occupied can be obtained, such as Figure 3 As shown, the space occupation code of the root node is 00000100.
[0173] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the root node, we can know that the 5th node of the root node is occupied, so the serial number 5 (binary representation is 101) is used as the first short code of this node.
[0174] Node status acquisition module: used to obtain the status s of the node I I N-1 : The state of the octree root node is uniformly agreed to be s 2 ,s 2 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0175] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the child node - 101, and the state s of the root node 2 , look up the following table and get the state of the child node as s 1 .
[0176]
[0177] According to the first short code of the child node - 101, and the state of the root node s 2 , look up the table below and find that the first bit value of the spatial coordinate x of the child node is 0, the first bit value of y is 1, and the first bit value of z is 0.
[0178]
[0179] Embodiment 14
[0180] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0181] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 Each bit of the node indicates in sequence whether each child node of node I contains a point in the point cloud: N = 2, the space occupancy code of the first node of the first layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied, such as Figure 3 As shown, the space occupation code of this node is 01001000.
[0182] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupancy code of the node, we can know that the first child node and the fourth child node of this node are occupied, so 001 is used as the first short code of the first child node, and 100 is used as the first short code of the fourth child node.
[0183] Node status acquisition module: used to obtain the status s of the node I I N-1 :For a node that is not a root node, its state is obtained by its parent node and its sequence number in the parent node. In this example, the state of the node is s 2 ,s 2 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0184] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in the one-dimensional space coordinate value of the binary representation corresponding to the child node: according to the first short code of the first child node - 001, and the state s of its parent node 2 , look up the following table and get the state of the child node as s 10 , according to the first short code of the 4th child node - 100, and the state s of its parent node 2, look up the following table and get the state of the child node as s 9 ,like Figure 5 shown.
[0185]
[0186] According to the first short code of the first child node - 001, and the state s of its parent node 2 , look up the table below, and get the second bit value of the spatial coordinate x of the child node is 1, the second bit value of y is 0, and the second bit value of z is 0. Combined with the first short code of its direct ancestor node, its corresponding Hilbert code can be obtained as 101001. Combined with the spatial coordinates of its direct ancestor node, its x coordinate is 11, y coordinate is 10, and z coordinate is 10. According to the first short code of the fourth child node - 100, and the state s of its parent node 2 , look up the table below and get the second bit value of the child node's spatial coordinate x is 0, the second bit value of y is 1, and the second bit value of z is 1. Combined with the first short code of its direct ancestor node, its corresponding Hilbert code can be obtained as 101100. Combined with the spatial coordinates of its direct ancestor node, its x coordinate is 10, y coordinate is 11, and z coordinate is 11. Figure 5 shown.
[0187]
[0188]
[0189] Embodiment 15
[0190] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0191] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the first node of the second-layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied, such as Figure 3 As shown, the space occupied by this node is 10001000.
[0192] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1The serial number in is used as the first short code h corresponding to the child node i N : N=3. From the space occupancy code of the node, we can know that the 0th child node and the 4th child node of this node are occupied. Therefore, 000 is used as the first short code of the 1st child node, and 100 is used as the first short code of the 4th child node.
[0193] Node status acquisition module: used to obtain the status s of the node I I N-1 :For a node that is not a root node, its state is obtained by its parent node and its sequence number in the parent node. In this example, the state of the node is s 10 ,s 10 The order of child nodes corresponding to the state is as follows Figure 6 shown.
[0194] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one of the one-dimensional spatial coordinate values in the binary representation corresponding to the child node: the child node is at the last level of the octree, that is, the leaf node. At this time, the child node has been divided into the smallest voxel unit, representing a point in the point cloud, and will not be further divided. Therefore, there is no need to determine the state of the leaf node.
[0195] According to the first short code of the 0th child node - 000, and the state s of its parent node 10 , look up the table below, and get the third bit value of the spatial coordinate x of the child node is 1, the third bit value of y is 0, and the third bit value of z is 1. Combined with the first short code of its direct ancestor node, the Hilbert code corresponding to the point cloud point is 101001000. Combined with the spatial coordinates of its direct ancestor node, the x coordinate of the point cloud point is 111, the y coordinate is 100, and the z coordinate is 101, that is, the spatial coordinates are (7,4,5); according to the first short code of the fourth child node - 100, and the state s of its parent node 10 , look up the table below and get the value of the third bit of the spatial coordinate x of the child node is 1, the value of the third bit of y is 1, and the value of the third bit of z is 0. Combined with the first short code of its direct ancestor node, the Hilbert code corresponding to the point cloud point is 101100100. Combined with the spatial coordinates of its direct ancestor node, the x coordinate of the point cloud point is 111, the y coordinate is 101, and the z coordinate is 100, that is, the spatial coordinates are (7,5,4). Figure 5 shown.
[0196]
[0197] Example 16
[0198] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0199] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0200] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0201] Node status acquisition module: used to obtain the status s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0202] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0203]
[0204] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point. Figure 3 The code stream finally gets Figure 4 The point cloud point coordinates.
[0205] Embodiment 17
[0206] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0207] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0208] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0209] Node status acquisition module: obtain the status s of the node I I N-1 : For the root node, its status is agreed upon by the codec end, or is obtained by decoding from the bitstream; for nodes other than the root node, its status is obtained by parsing and is already determined.
[0210] Spatial coordinate parsing module: according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0211]
[0212] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0213] Attribute decoding module: when decoding the attributes of the points in the current point cloud, the reference point of the current point is determined according to the point cloud point whose first codeword corresponding to the decoded point is smaller than the first codeword corresponding to the current point, and the attribute value of the current point is predicted and decoded according to the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding are arranged from small to large according to the Hilbert code, and the attribute decoding of the point cloud points is performed in sequence. For the current point to be decoded, the first n points are directly used as the reference points of the current point, and the reconstructed attribute values of these n points are weighted averaged to obtain the predicted attribute value of the current point, and n can be 1, 2…
[0214] Embodiment 18
[0215] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0216] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream IN-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0217] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0218] Node status acquisition module: used to obtain the status s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0219] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0220]
[0221] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0222] Attribute decoding module: when decoding the attributes of the points in the current point cloud, the reference point of the current point is determined according to the point cloud point whose first codeword corresponding to the decoded point is smaller than the first codeword corresponding to the current point, and the attribute value of the current point is predicted and decoded according to the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding are arranged from small to large according to the Hilbert code, and the attribute of the point cloud points is decoded in sequence. For the current point to be decoded, the M points preceding the current point are searched, and the n points closest to the current point in space are selected from the M points as the reference points of the current point, and then the reconstructed attribute values of these n points are weighted averaged to obtain the predicted attribute value of the current point, and n can be 1, 2, etc.
[0223] Embodiment 19
[0224] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0225] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0226] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0227] Node status acquisition module: used to obtain the status s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0228] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0229]
[0230]
[0231] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0232] Attribute decoding module: used to perform attribute decoding on points in the current point cloud, determine the reference point of the current point according to the point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding have been arranged from small to large according to the Hilbert code, and perform attribute decoding on the point cloud points in turn. For the current point to be decoded with geometric coordinates (x, y, z), search for the first M points whose Hilbert code is smaller than the current point, and find the point with specific coordinates from the M points as the reference point.
[0233] Attribute decoding module: used to decode the attributes of points in the current point cloud, search for a point with a specific geometric coordinate position in the decoded points as a reference point for the current point, convert the specific geometric coordinates into the first codeword corresponding to the coordinates, search for a point with the same first codeword corresponding to the coordinates in the decoded points as a reference point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: taking all points with a spatial distance of 1 from the current point as an example, convert the position coordinates to be searched into a Hilbert code, such as converting the (x+1, y, z) coordinates into a Hilbert code, and then search for a point corresponding to the Hilbert code from the previous M points, and use the point as a reference point for the current point. The same method is used to search for n points as reference points, and then the reconstructed attribute values of these n points are weighted averaged to obtain the predicted attribute value of the current point, where n is less than or equal to 6.
[0234] Embodiment 20
[0235] This embodiment shows a point cloud sequential decoding device based on a new processing order. This embodiment is a point cloud decoding device based on the Hilbert order, which includes the following contents:
[0236] Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 The bits of in order indicate whether each child node of node I contains a point in the point cloud: the space occupancy code of the I-th node of the N-1-th layer octree is decoded from the bit stream, and according to the occupancy code, it can be obtained which nodes among the 8 child nodes are occupied.
[0237] The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N : From the space occupation code of node I, it can be known which sub-nodes are occupied in this node, and the sequence number of the occupied sub-node in the space occupation code of node I is used as its corresponding first short code.
[0238] Node status acquisition module: used to obtain the status s of the node I I N-1 : For the root node, its status is agreed upon by the codec end or obtained by decoding from the bitstream; for non-root nodes, its status has been parsed and determined.
[0239] Spatial coordinate parsing module: used to calculate the first short code h of the subnode i containing the point in the point cloud according to the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in one-dimensional spatial coordinate value of the binary representation corresponding to the child node: based on the first short code of the child node and the state of its parent node, search the following two tables respectively to obtain the state of the child node and the Nth bit of the three-dimensional spatial coordinate of the child node.
[0240]
[0241]
[0242] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer of the octree in turn, and obtain the Hilbert code of the occupied child node in each node and the Nth bit of the three-dimensional space coordinate of the occupied child node. After processing all the nodes in this layer, use the same method to process the nodes in the next layer until all the nodes in the code stream are processed. According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N , and finally obtain the Hilbert code H and three-dimensional space coordinates XYZ of each point cloud point.
[0243] Attribute decoding module: used to perform attribute decoding on points in the current point cloud, determine the reference point of the current point according to the point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: the point cloud points after point cloud geometry decoding have been arranged from small to large according to the Hilbert code, and perform attribute decoding on the point cloud points in turn. For the current point to be decoded with geometric coordinates (x, y, z), search for the first M points whose Hilbert code is smaller than the current point, and find the point with specific coordinates from the M points as the reference point.
[0244] Attribute decoding module: used to decode the attributes of points in the current point cloud, search for a point with a specific geometric coordinate position in the decoded points as a reference point for the current point, convert the specific geometric coordinates into the first codeword corresponding to the coordinates, search for a point with the same first codeword as the coordinates in the decoded points as a reference point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point: taking all points with a spatial distance of 1 and square root 2 from the current point as an example, convert the position coordinates to be searched into a Hilbert code, such as converting the (x-1, y+1, z) coordinates into a Hilbert code, and then search for a point corresponding to the Hilbert code from the previous M points, and use the point as a reference point for the current point. The same method is used to search for n points as reference points, and then the reconstructed attribute values of these n points are weighted averaged to obtain the predicted attribute value of the current point, where n is less than or equal to 18.
[0245] Embodiment 21
[0246] This embodiment shows a point cloud sequential encoding method based on a new processing order. This embodiment is a point cloud encoding method based on the Hilbert order, which includes the following contents:
[0247] Get the state s of node I at the N-1th layer of the point cloud tree structure I N-1 : For the root node, its state is an initial value agreed upon by the codec end and can also be written into the bitstream; for non-root nodes, its state has been parsed and determined.
[0248] The node I is divided according to the value of the Nth bit in the one-dimensional space coordinate value corresponding to the binary representation of the child node i containing the point in the point cloud and the state s of the node I. I N-1 Determine the state of the child node s i N and the first short code h of the child node i N :Partition the I-th node of the N-1-th layer octree to obtain a space occupancy code, indicating which of the 8 child nodes obtained by the division are occupied, according to the value of the N-th bit in the one-dimensional space coordinate value of the binary representation corresponding to the occupied child node and the state s of node I I N-1 For the index, search the following two tables respectively to obtain the state of the child node and the first short code of the child node.
[0249]
[0250] The first short code h corresponding to the child node i NAs the child node in the space occupation code OC I N-1 The sequence number in the space occupied code OC I N-1 Each bit of the sequence indicates whether each child node of node I contains a point in the point cloud: the occupancy information of the child nodes is arranged in ascending order according to the first short codes corresponding to them, forming a spatial occupancy code of node I;
[0251] Space occupation code OC I N-1 Encode each bit of the occupied code in turn and write it into the code stream.
[0252] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer octree in turn to obtain the space occupancy code of each occupied node. After processing all the nodes of this layer, use the same method to process the nodes of the next layer until each occupied node is divided into a basic voxel unit of size 1x1x1, and encode the obtained space occupancy code.
[0253] Embodiment 22
[0254] This embodiment shows a point cloud sequential encoding device based on a new processing order. This embodiment is a point cloud encoding device based on the Hilbert order, which includes the following contents:
[0255] Node state acquisition module: used to obtain the state s of node I at the N-1th layer of the point cloud tree structure I N-1 : For the root node, its state is an initial value agreed upon by the codec end and can also be written into the bitstream; for non-root nodes, its state has been parsed and determined.
[0256] Node division module: used to divide the node I according to the value of the Nth bit in the one-dimensional space coordinate value corresponding to the binary representation of the sub-node i containing the point in the point cloud and the state s of the node I I N-1 Determine the state of the child node s i N and the first short code h of the child node i N :Partition the I-th node of the N-1-th layer octree to obtain a space occupancy code, indicating which of the 8 child nodes obtained by the division are occupied, according to the value of the N-th bit in the one-dimensional space coordinate value of the binary representation corresponding to the occupied child node and the state s of node I I N-1 For the index, search the following two tables respectively to obtain the state of the child node and the first short code of the child node.
[0257]
[0258] Occupancy code sequence number acquisition module: used to obtain the first short code h corresponding to the child node i N As the child node in the space occupation code OC I N-1 The sequence number in the space occupied code OC I N-1 Each bit of the sequence indicates whether each child node of node I contains a point in the point cloud: the occupancy information of the child nodes is arranged in ascending order according to the first short codes corresponding to them, forming a spatial occupancy code of node I;
[0259] Space occupancy code encoding module: used to encode space occupancy code OC I N-1 Encode each bit of the occupied code in turn and write it into the code stream.
[0260] Repeat the above operation, and use the same method to process the remaining nodes of the N-1th layer octree in turn to obtain the space occupancy code of each occupied node. After processing all the nodes of this layer, use the same method to process the nodes of the next layer until each occupied node is divided into a basic voxel unit of size 1x1x1, and encode the obtained space occupancy code.
Claims
1. A method for sequentially decoding a point cloud, characterized in that include: Decode the space occupancy code OC of the current node I at the N-1th layer of the point cloud tree structure from the bitstream I N-1 , the space occupation code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud; For a child node i that contains a point in the point cloud, the child node is marked in the spatial occupancy code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N ; Get the state s of the node I I N-1 ; According to the Hilbert order rule, the first short code h of the child node i containing the point in the point cloud is i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in each dimensional spatial coordinate value represented by the binary representation corresponding to the child node.
2. The sequential decoding method of point cloud according to claim 1, characterized in that: The node status includes: The state of the root node in the tree structure is pre-agreed between the encoder and the decoder, or is obtained by decoding from the bitstream.
3. The sequential decoding method of point cloud according to claim 1, characterized in that: The determination of the state of the child node and the value of the Nth bit in each dimensional space coordinate value represented by the binary representation corresponding to the child node includes: The state s of child node i i N It is based on its corresponding first short code h i N From the state s of node I I N-1 The corresponding function or table is uniquely determined; The value of the Nth bit in each dimensional space coordinate value represented by the binary representation of the child node i is calculated based on the first short code h corresponding to it. i N From the state s of node I I N-1 Uniquely determined in the corresponding function or table.
4. The sequential decoding method of point cloud according to claim 1, characterized in that: The method further comprises: According to the first short code h of the leaf node where the point in the point cloud is located N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N ; When performing attribute decoding on a point in the current point cloud, a reference point of the current point is determined based on a point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and the attribute value of the current point is predicted and decoded based on the reconstructed attribute value of the reference point.
5. The sequential decoding method of point cloud according to claim 4, characterized in that: The method further comprises: When performing attribute decoding on a point in the current point cloud, a point with a specified geometric coordinate position is searched among the decoded points as a reference point for the current point, the specified geometric coordinate is converted into a first codeword corresponding to the coordinate, a point with the same first codeword as the first codeword corresponding to the coordinate is searched among the decoded points as a reference point, and the attribute value of the current point is predicted and decoded based on the reconstructed attribute value of the reference point.
6. A point cloud sequential decoding device, characterized in that include: Space occupancy code decoding module: used to decode the space occupancy code OC of the current node I in the N-1th layer of the point cloud tree structure from the bit stream I N-1 , the space occupation code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud; The first short code acquisition module is used to obtain the sub-node i containing the point in the point cloud in the space occupation code OC I N-1 The serial number in is used as the first short code h corresponding to the child node i N ; Node status acquisition module: used to obtain the status s of the node I I N-1 ; Spatial coordinate parsing module: used to, according to the Hilbert order, obtain the first short code h of the subnode i containing the point in the point cloud i N and the state s of node I I N-1 Determine the state of the child node s i N The value of the Nth bit in each dimensional spatial coordinate value represented by the binary representation corresponding to the child node.
7. The point cloud sequential decoding device according to claim 6, characterized in that: The node status includes: The state of the root node in the tree structure is pre-agreed between the encoder and the decoder, or is obtained by decoding from the bitstream.
8. The point cloud sequential decoding device according to claim 6, characterized in that: The spatial coordinate analysis module comprises: Subnode status acquisition unit: used to obtain the first short code h corresponding to the subnode i i N From the state s of node I I N-1 The corresponding function or table uniquely determines the state s of child node i i N ; Spatial coordinate analysis unit: used to calculate the first short code h corresponding to the child node i i N From the state s of node I I N-1 The corresponding function or table uniquely determines the value of the Nth bit in each dimensional space coordinate value represented by the binary representation corresponding to the child node i.
9. The point cloud sequential decoding device according to claim 6, characterized in that: The device also includes: The first codeword acquisition module is used to obtain the first short code h of the leaf node where the point in the point cloud is located. N and the first short code h of its direct ancestor node at each level 1 ,…,h N-1 , combined to get the first code word H=h corresponding to the point in the point cloud 1 h 2 …h N ; Attribute decoding module: used to decode the attributes of points in the current point cloud, determine the reference point of the current point according to the point cloud point whose corresponding first codeword in the decoded point is smaller than the first codeword corresponding to the current point, and predict and decode the attribute value of the current point according to the reconstructed attribute value of the reference point.
10. The point cloud sequential decoding device according to claim 9, characterized in that: The device also includes: Attribute decoding module: used to perform attribute decoding on points in the current point cloud, search for a point with a specified geometric coordinate position in the decoded points as a reference point for the current point, convert the specified geometric coordinates into a first codeword corresponding to the coordinates, search for a point with the same first codeword as the first codeword corresponding to the coordinates in the decoded points as a reference point, and predict and decode the attribute value of the current point based on the reconstructed attribute value of the reference point.
11. A method for sequentially encoding point clouds, characterized in that include: Get the state s of node I at the N-1th layer of the point cloud tree structure I N-1 ; The node I is divided, according to the Hilbert order, by the value of the Nth bit in each dimensional space coordinate value of the binary representation corresponding to the child node i containing the point in the point cloud and the state s of the node I I N-1 Determine the state of the child node s i N and the first short code h of the child node i N ; The first short code h corresponding to the child node i N As the child node in the space occupation code OC I N-1 The sequence number in the space occupied code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud; Space occupation code OC I N-1 to encode.
12. A point cloud sequential encoding device, characterized in that include: Node state acquisition module: used to obtain the state s of node I at the N-1th layer of the point cloud tree structure I N-1 ; Node partitioning module: used to partition the node I, according to the Hilbert order, by the value of the Nth bit in each dimensional space coordinate value of the binary representation corresponding to the child node i containing the point in the point cloud and the state s of the node I I N-1 Determine the state of the child node s i N and the first short code h of the child node i N ; Occupancy code sequence number acquisition module: used to obtain the first short code h corresponding to the child node i N As the child node in the space occupation code OC I N-1 The sequence number in the space occupied code OC I N-1 Each bit of indicates in order whether each child node of node I contains a point in the point cloud; Space occupancy code encoding module: used to encode space occupancy code OC I N-1 to encode.
