Point group encoding method, decoding method, device, and electronic device
By determining the context of encoding and decoding target nodes based on occupancy and position within a structure tree, the method addresses low encoding efficiency in point cloud sequences, enhancing geometric compression and encoding efficiency.
Patent Information
- Application Number
- JP2024531439
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-03
- Filing Date
- 2022-12-01
- Publication Date
- 2024-10-30
- Estimated Expiration
- 2042-12-01
AI Technical Summary
The existing methods for encoding point cloud sequences, particularly those with multiple planar features, suffer from low encoding efficiency due to the use of separate encoding techniques for sparse and dense point cloud sequences, leading to unoccupied space inefficiencies.
A method that determines the context of encoding and decoding target nodes based on the occupancy information and position of reference nodes within a structure tree, utilizing entropy encoding to improve encoding efficiency by predicting occupancy information and enhancing geometric compression.
This approach improves the encoding efficiency by better utilizing occupancy information in point cloud sequences, leading to enhanced geometric compression performance and increased encoding efficiency.
Smart Images

Figure 2024539768000001_ABST
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to China Patent Application No. 202111466682.1, filed in China on December 03, 2021, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of codecs, and in particular to a point cloud encoding method, a decoding method, an apparatus, and an electronic device. [Background technology]
[0003] In the framework of the point cloud digital audio video coding standard (AVS) encoder, the geometric information of the point cloud and the attribute information corresponding to each point are coded separately. Currently, the spatial occupation code coding adopts a context-based adaptive binary arithmetic encoder, and the sparse point cloud sequence and the dense point cloud sequence are coded using different context models. However, for a point cloud sequence with multiple planar features, there is still unoccupied space in such a point cloud sequence, and the coding efficiency is still low when coding is performed using a method based on the sparse point cloud sequence and the dense point cloud sequence. Summary of the Invention
[0004] The embodiments of the present application provide a point cloud encoding method, a decoding method, an apparatus, and an electronic device that can solve the problem of low encoding efficiency in related technologies.
[0005] In the first aspect, An encoding side obtains a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence, where m is a positive integer; a step of determining a context of the subnode to be coded based on occupancy information of the m reference nodes and a position of the subnode to be coded in the node to be coded, the subnode to be coded being any one of the subnodes obtained by dividing the node to be coded based on a tree structure; the encoding side entropy-encoding the subnode to be encoded based on the context to generate a target code stream.
[0006] In the second aspect, A decoding side obtains a decoding target node in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer; a step of determining a context of the subnode to be decoded based on occupancy information of the m reference nodes and a position of the subnode to be decoded in the node to be decoded by the decoding side, the subnode to be decoded being any one of the subnodes obtained by dividing the node to be decoded based on a tree structure; the decoding side entropy-decoding the subnode to be decoded based on the context to generate a target code stream.
[0007] In the third aspect, A first acquisition module for acquiring a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence, where m is a positive integer; a first determination module for determining a context of the to-be-coded subnode based on occupancy information of the m reference nodes and a position of the to-be-coded subnode in the to-be-coded node, the to-be-coded subnode being any one of the subnodes obtained by dividing the to-be-coded node based on a tree structure; an encoding module for entropy encoding the subnode to be encoded based on the context to generate a target code stream.
[0008] In the fourth aspect, A second acquisition module for acquiring a node to be decoded in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer; a second determination module for determining a context of the subnode to be decoded based on occupancy information of the m reference nodes and a position of the subnode to be decoded in the node to be decoded, the second determination module being any subnode obtained by dividing the node to be decoded based on a tree structure; a decoding module for entropy decoding the subnode to be decoded based on the context to generate a target code stream.
[0009] In a fifth aspect, there is provided an electronic device including a processor and a memory, wherein the memory stores a program or command executable by the processor, and when the program or command is executed by the processor, steps of the point cloud encoding method described in the first aspect are realized, or steps of the point cloud decoding method described in the second aspect are realized.
[0010] In a sixth aspect, there is provided a readable storage medium having stored thereon a program or command which, when executed by a processor, causes steps of the point cloud encoding method described in the first aspect to be realized or the steps of the point cloud decoding method described in the second aspect to be realized.
[0011] In a seventh aspect, there is provided a chip including a processor and a communication interface, the communication interface and the processor being coupled, the processor executing a program or command to implement a method according to the first aspect or to be used to implement a method according to the second aspect.
[0012] In an eighth aspect, there is provided a computer program / program product stored on a storage medium and executed by at least one processor to implement a method according to the first aspect or to implement a method according to the second aspect.
[0013] In a ninth aspect there is provided a communications device configured to execute and thereby implement a method according to the first aspect or to implement a method according to the second aspect.
[0014] In an embodiment of the present application, the encoding side can predict the occupancy information of the node to be encoded based on the occupancy information of the encoded reference node, and determine the context of the subnode to be encoded based on the prediction result of the node to be encoded and the position of the subnode to be encoded in the node to be encoded, thereby making better use of the occupancy information of the encoded nodes in the point cloud sequence to improve the geometric compression performance of the point cloud and enhance the encoding efficiency of the encoding side. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 is a framework diagram of an AVS encoder. [Diagram 2] 1 is a flowchart of a point cloud encoding method provided in an embodiment of the present application. [Figure 3a] FIG. 2 is a schematic diagram of encoding target nodes and reference nodes in a point cloud sequence. [Figure 3b] FIG. 2 is a schematic diagram of a node in a point cloud sequence. [Figure 4a] FIG. 2 is a schematic diagram of a subnode to be coded and adjacent subnodes in a point cloud sequence. [Figure 4b] FIG. 2 is a schematic diagram of a node to be coded and adjacent nodes in a point cloud sequence. [Figure 5a] 1 is a schematic diagram (part 1) of a node to be coded, a subnode to be coded, and adjacent nodes in a point cloud sequence. [Figure 5b]13 is a schematic diagram (part 2) of a node to be coded, a subnode to be coded, and adjacent subnodes in a point cloud sequence. FIG. [Figure 6] 1 is a flowchart of a point cloud decoding method provided in an embodiment of the present application. [Figure 7] FIG. 2 is a configuration diagram of a point cloud encoding device provided in an embodiment of the present application. [Figure 8] FIG. 2 is a configuration diagram of a point cloud decoding device provided in an embodiment of the present application. [Figure 9] FIG. 1 is a block diagram of an electronic device provided in an embodiment of the present application. [Figure 10] FIG. 2 is a configuration diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, the technical solutions in the embodiments of the present application will be clearly described with reference to the drawings in the embodiments of the present application. Of course, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art belong to the protection scope of the present application.
[0017] The terms "first", "second", etc. in the specification and claims of this application are not intended to describe a particular order or sequence, but are intended to distinguish between similar objects. It should be understood that the terms used in this manner may be substituted for each other where appropriate, so that the embodiments of this application may be performed in an order other than that shown or described herein. It should also be understood that the objects distinguished by "first" and "second" generally belong to one category, and the number of objects is not limited, for example, the first object may be one or more. In addition, in the specification and claims, "and / or" represents at least one of the connected objects, and the symbol " / " generally represents that the related objects before and after are in an "or" relationship.
[0018] In order to better understand the technical solution of the present application, the following briefly describes the related art related to the technical solution of the present application.
[0019] Figure 1 shows the framework diagram of the AVS encoder. In the framework of the point cloud AVS encoder, the geometric information of the point cloud and the attribute information corresponding to each point are encoded separately. First, the point cloud is preprocessed. First, the smallest rectangular parallelepiped that contains all points in all input point clouds is constructed for the point cloud, and is called a bounding box. The origin coordinate of the bounding box is composed of the minimum values in three dimensions, x, y, and z, of the coordinates of each point in the point cloud. Next, coordinate transformation (i.e., coordinate translation shown in Figure 1) is performed on the points in the point cloud. Using this coordinate origin as a reference, the original coordinates of the point are converted to relative coordinates with respect to the coordinate origin. After that, coordinate quantization is further performed on the geometric coordinates of the point, and this quantization mainly plays the role of scaling. By quantizing and rounding, the geometric information of some points becomes the same, and it is determined whether or not to remove points with overlapping geometric information based on the parameters. Next, the preprocessed point cloud is divided into a structure tree (e.g., octree, quadtree, binary tree) according to the order of breadth-first traversal. Taking the octree division shown in FIG. 1 as an example, the bounding box after preprocessing is taken as the root node, which is divided into eight equal parts to generate eight sub-cubes as its sub-nodes, and the occupancy information (also called occupancy information) of the sub-node is represented by eight bits, called the space occupancy code. If there is a point in the sub-cube, it indicates that the sub-node is occupied, and the value of the corresponding occupancy bit is 1, otherwise it is 0. The occupied sub-cube is continued to be divided, and the division is stopped until the leaf node obtained by the division is a 1x1x1 unit cube, and the encoding of the geometric octree is completed. In the process of the octree encoding, the generated space occupancy code and the number of points contained in the final leaf node are entropy coded to obtain an output code stream. In the geometric decoding process based on octree, the decoding side will follow the order of breadth-first traversal to continuously analyze to obtain the occupancy code of each node, and then continuously divide the node sequentially, stopping the division until a 1x1x1 unit cube is obtained, and then analyze to obtain the number of points contained in each leaf node, and finally restore it to obtain the geometric reconstruction point cloud information.
[0020] After the geometric coding is completed, the geometric information is reconstructed. Currently, attribute coding is mainly performed on attribute information such as color and reflectance information. First, it is determined whether to perform color space conversion. If color space conversion is performed, the color information is converted from the red-green-blue (RGB) color space to the luminance-chromaticity (YUV) color space. Then, the reconstructed point cloud is recolored using the original point cloud, so that the uncoded attribute information corresponds to the reconstructed geometric information. Color information coding is divided into two modules: attribute prediction and attribute conversion. For the attribute prediction process, the point cloud is first sorted, and then differential prediction is performed. Here, the sorting method is Hilbert sorting. Attribute prediction is performed on the sorted point cloud using a differential method, and finally the prediction residual is quantized and entropy coded to generate a binary code stream. In the attribute transformation process, first, a wavelet transform is performed on the point cloud attribute, and the transformation coefficients are quantized. Then, the attribute reconstruction value is obtained by inverse quantization and inverse wavelet transform. Then, the difference between the original attribute and the attribute reconstruction value is calculated to obtain the attribute residual, which is quantized. Finally, the quantized transformation coefficients and attribute residual are entropy coded to generate a binary code stream.
[0021] The point cloud encoding method provided in the embodiments of the present application will be described in detail below by means of several embodiments and application scenarios with reference to the drawings.
[0022] 2 is a flow chart of a point cloud encoding method provided in an embodiment of the present application. As shown in FIG. 2, the method includes the following steps 201, 202 and 203.
[0023] In step 201, the encoding side obtains a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence.
[0024] Here, m is a positive integer. The encoding side may be, for example, an electronic device such as a mobile phone, a tablet, a computer, etc., and this application does not specifically limit it.
[0025] It should be noted that the encoding side can sequentially encode the nodes in the point cloud sequence according to a preset encoding order, and the encoding target node can be an unencoded node arranged first in the preset encoding order among the unencoded nodes in the point cloud sequence, where the reference node is an encoded node in the point cloud sequence, for example, the reference node can be any one of the encoded nodes, or the reference node can be any one of the encoded nodes belonging to the same node division hierarchical level as the encoding target node, or the reference node can be an encoded node adjacent to the encoding target node.
[0026] Here, the node split hierarchical level refers to a node hierarchical level at which a structural tree (e.g., binary tree, quad tree, octree, etc.) is split for a node. For example, node 1 obtains nodes 11 and 12 based on binary tree split, node 11 obtains nodes 111 and 112 based on binary tree split, and node 12 obtains nodes 121 and 122 based on binary tree split, where node 11 and node 12 belong to the same node split hierarchical level, and node 111, node 112, node 121 and node 122 belong to the same node split hierarchical level.
[0027] In step 202, the encoding side determines a context of the subnode to be encoded based on the occupancy information of the m reference nodes and the position of the subnode to be encoded in the node to be encoded, and the subnode to be encoded is any of the subnodes obtained by dividing the node to be encoded based on a structure tree.
[0028] Here, the occupancy information of a node refers to the occupancy status of each subnode based on the structural tree division of the node, and the occupancy status includes occupied or unoccupied. The occupancy information of the reference node may refer to the occupancy status of each subnode of the reference node. For example, if the reference node obtains subnode 1 and subnode 2 based on binary tree division, the occupancy information of the reference node may represent that subnode 1 is occupied and subnode 2 is unoccupied. Or, the occupancy information of the reference node may refer to the number of occupied subnodes and the number of unoccupied subnodes in the reference node. For example, if the reference node obtains eight subnodes based on octree division, the occupancy information of the reference node may represent that the number of occupied subnodes is 3 and the number of unoccupied subnodes is 5. Alternatively, the occupancy information of the reference node may refer to the occupancy status of each subnode of the reference node in the preset area, for example, if the reference node obtains eight subnodes based on octree division, the occupancy information of the reference node may be expressed as the occupancy status in the low plane area and the occupancy status in the high plane area, and the low plane area and the high plane area may be two plane areas on the target direction of the reference node, as shown in Fig. 3a, in the z-axis direction of the coordinate system, the subnodes of the low plane area of the reference node (filled subnodes in Fig. 3) are occupied, but the subnodes of the high plane area (unfilled subnodes in Fig. 3a) are not occupied. Optionally, the occupancy information of the reference node may be in other display manners, and the detailed description is omitted in this application.
[0029] It is understood that the reference node is an encoded node in the point cloud sequence, and can further obtain the occupancy information of the encoded reference node. In the embodiment of the present application, after obtaining m reference nodes, predict the occupancy information of the node to be encoded according to the occupancy information of the m reference nodes, and then determine the prediction result of the node to be encoded.
[0030] For example, in Fig. 3a, the dashed frame indicates the node to be coded, and the solid frame indicates the reference node, i.e., there are three reference nodes in Fig. 3a, and the filled part indicates the occupied subnodes. If it is assumed that these nodes obtain eight subnodes based on octree division, the lower four subnodes are subnodes in the low plane area, and the upper four nodes are subnodes in the high plane area in the z-axis direction. If the occupancy information of the reference nodes is the occupancy status of the reference node low plane area and the occupancy status of the high plane area, the occupied subnodes in the three reference nodes in Fig. 3a are all in the low plane area, and the unoccupied subnodes are all in the high plane area. Based on the occupancy information of the three reference nodes, it can be predicted that the occupied subnodes in the node to be coded are also in the low plane area, and thus a prediction result for the occupancy information of the node to be coded is obtained.
[0031] It should be noted that after obtaining the node to be coded, the coding side can perform tree division on the node to be coded by a tree division method such as octree, quadtree, binary tree, etc. For example, if an encoded node belonging to the same node division hierarchical level as the node to be coded obtains eight subnodes based on octree division, the node to be coded also obtains eight subnodes based on octree division. Furthermore, the coding side sequentially codes each divided subnode of the node to be coded based on a preset coding order, and the subnode to be coded is, that is, any uncoded subnode obtained by dividing the node to be coded based on the tree.
[0032] In an embodiment of the present application, the encoding side predicts occupancy information of a node to be encoded based on m reference nodes, and after obtaining a prediction result of the node to be encoded, the encoding side determines a context of the subnode to be encoded based on the prediction result and the position of the subnode to be encoded in the node to be encoded.
[0033] In step 203, the encoding side entropy codes the subnode to be encoded based on the context to generate a target codestream.
[0034] Optionally, the encoding side can assign an adaptive probability model to the subnode to be encoded after determining the context of the subnode to be encoded, and then arithmetically code, i.e., entropy code, the occupied bit code of the subnode to be encoded based on the adaptive probability model to generate a target code stream, for example, a binary code stream.
[0035] In an embodiment of the present application, the encoding side predicts the occupancy information of the node to be encoded based on the occupancy information of the reference node encoded. Then, the context of the subnode to be encoded can be determined based on the prediction result of the node to be encoded and the position of the subnode to be encoded in the node to be encoded. This can make better use of the occupancy information of the encoded nodes in the point cloud sequence to improve the geometric compression performance of the point cloud and increase the encoding efficiency of the encoding side.
[0036] Optionally, step 201 includes: The encoding side obtains a node to be encoded in a point cloud sequence; The encoding side obtains k encoded nodes prior to the encoding target node based on a node encoding order, where k is a positive integer; and if at least one encoded node among the previous k encoded nodes has a target plane feature, the encoding side obtains m encoded reference nodes in the point cloud sequence.
[0037] In the embodiment of the present application, the encoding side obtains a node to be encoded in the point cloud sequence, and then obtains k encoded nodes before the node to be encoded according to the node encoding order. For example, assuming that eight nodes are arranged as node 0, node 1, node 2, ... node 7 according to the node encoding order, the node to be encoded is node 7, that is, when the node before node 7 is encoded, the value of k is assumed to be 3, and the three encoded nodes before the node to be encoded are node 4, node 5, and node 6, respectively.
[0038] Furthermore, if at least one coded node among the previous k coded nodes has a target plane feature, the coding side obtains m coded reference nodes in the point cloud sequence.Optionally, the m reference nodes may be nodes among the k coded nodes, m≦k, or the m reference nodes may not belong to the k coded nodes, or only some of them may belong to the k coded nodes.For example, the m reference nodes may be adjacent m coded nodes of the coding target node, in which case some of the reference nodes are not among the previous k coded nodes, because these reference nodes are not related to the coding order.
[0039] Alternatively, the target plane characteristic may mean that the n subnodes obtained by dividing a node according to an n-ary tree are divided into two planes along the target coordinate axis, and all the occupied subnodes are located in one plane, and all the subnodes in the other plane are not occupied, that is, the node is a node having the target plane characteristic. For example, the node in Fig. 3b obtains eight subnodes through octree division, among which the subnodes with numbers 0, 2, 4, and 6 constitute the first plane, and the subnodes with numbers 1, 3, 5, and 7 constitute the second plane. If at least one subnode of the four subnodes in the first plane is occupied, but not all the four subnodes in the second plane are occupied, or all the four subnodes in the first plane are not occupied, but at least one subnode of the four subnodes in the second plane is occupied, the node is a node having the target plane characteristic.
[0040] In the embodiment of the present application, if at least one of the k coded nodes before the coding target node has a target plane feature, it is considered that the coding target node may also have the target plane feature. For example, all the occupied subnodes in the coding target node are located in the first plane or the second plane, and the coding side obtains m coded reference nodes in the point cloud sequence. Thus, the occupancy information of the coding target node is predicted based on the occupancy information of the m reference nodes. By determining whether at least one of the k coded nodes has a target plane feature, the prediction accuracy for the occupancy information of the coding target node can be improved.
[0041] Alternatively, if the previous k encoded nodes all do not have the target plane feature, the encoding side does not need to obtain the m encoded reference nodes, and further does not predict the occupancy information of the node to be encoded based on the occupancy information of the reference node, and the encoding side can use related conventional means to perform entropy coding of the node to be encoded, and detailed description is omitted here.
[0042] Optionally, when at least one encoded node among the previous k encoded nodes has a target plane feature, the step of the encoding side obtaining m encoded reference nodes in the point cloud sequence includes: When the number of encoded nodes having a target plane feature among the previous k encoded nodes is equal to or greater than a first threshold, the encoding side obtains m encoded reference nodes in the point cloud sequence; Here, the first threshold is a positive integer less than k.
[0043] In an embodiment of the present application, the encoding side obtains k encoded nodes before the encoding target node, and then obtains the number of encoded nodes having the target plane feature among the k encoded nodes before. If the number of encoded nodes having the target plane feature is equal to or greater than a first threshold, it is considered that the encoding target node may also have the target plane feature. For example, if all the occupied subnodes in the encoding target node are located in the first plane or the second plane, the encoding side further obtains m encoded reference nodes in the point cloud sequence.
[0044] Alternatively, the first threshold value may be a value preset by a user, or may be an empirical value obtained by the encoding side based on a finite number of tests.
[0045] Optionally, step 201 may further include: The encoding side obtains a node to be encoded in a point cloud sequence; A step of determining a target coordinate system on the encoding side based on the coordinate values of the encoding target node; The encoding side determines, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the encoding target node and has the same coordinate value on a target coordinate axis as the encoding target node, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; The encoding side may obtain m reference nodes from the candidate reference nodes.
[0046] The geometric information of a node in a point cloud sequence can be expressed by the coordinate values (e.g., x1, y1, z1) under the Cartesian coordinate system of the node. In this case, it can be understood that each node in a point cloud sequence includes corresponding coordinate values. In an embodiment of the present application, after obtaining a node to be encoded in a point cloud sequence, the encoding side can also obtain a coordinate value corresponding to the node to be encoded accordingly, and determine a target coordinate system according to the coordinate value, where the target coordinate system is a coordinate system corresponding to the coordinate value of the node to be encoded. Based on the target coordinate system, the encoding side can determine the coordinate origin and each coordinate axis of the target coordinate system, and can also obtain the coordinate values of other nodes in the point cloud sequence, and can determine the relative position of the node and the node to be encoded according to the coordinate value of the node.
[0047] The encoding side determines a node in the point cloud sequence that belongs to the same node division hierarchical level as the encoding target node and has the same coordinate value on the target coordinate axis as the encoding target node as a candidate reference node. For example, assuming that the target coordinate axis is the z axis and the coordinate value of the encoding target node is (x1, y1, z1), the candidate reference node is an encoded node whose z axis coordinate value is also z1, and the coordinate value of the reference node can be expressed as (x1-a*xNodeSize, y1-b*yNodeSize, z1), where a and b are all integers equal to or greater than 0, and a and b cannot simultaneously take the value 0, xNodeSize is the node side length in the x-axis direction of the encoding target node, and yNodeSize is the node side length in the y-axis direction of the encoding target node. Furthermore, m reference nodes are selected from these reference nodes.
[0048] It should be noted that the target plane feature can be determined based on the target coordinate axis. For example, if the target coordinate axis is assumed to be the z-axis, the target plane is a plane perpendicular to the z-axis. If a subnode divided based on the structure tree of a node is located on the target plane, the node is a node having a target plane feature.
[0049] In the embodiment of the present application, the encoding side predicts the occupancy information of the node to be encoded based on the occupancy information of m reference nodes, while the m reference nodes are selected from the nodes in the point cloud sequence that belong to the same node division hierarchical level as the node to be encoded and have the same coordinate value on the target coordinate axis as the node to be encoded. The m reference nodes are the nodes around the node to be encoded, so as to effectively utilize the spatial geometric relationship between nodes in the point cloud sequence, and further improve the prediction accuracy of the occupancy situation of the node to be encoded.
[0050] Optionally, the occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the method includes: a step of the encoding side determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The method further includes a step in which the encoding side obtains a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, where the first subnodes are subnodes located in the first plane and the second subnodes are subnodes located in the second plane.
[0051] Optionally, step 202 specifically includes: The encoding side predicts the occupancy information of the encoding target node based on the occupancy information of the m reference nodes, and determines a prediction result of the encoding target node; The encoding side determines a context of the subnode to be encoded based on a prediction result of the node to be encoded and a position of the subnode to be encoded in the node to be encoded.
[0052] Optionally, the step of the encoding side predicting the occupancy information of the encoding target node based on the occupancy information of the m reference nodes and determining the prediction result of the encoding target node includes: a step of the encoding side determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The encoding side obtains a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, where the first subnodes are subnodes located in the first plane and the second subnodes are subnodes located in the second plane; The encoding side predicts occupancy information of the node to be encoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determines a prediction result of the node to be encoded.
[0053] It should be noted that the encoding side can divide any node in the point cloud sequence into a first plane and a second plane according to the above method, including but not limited to a reference node and a node to be encoded. For example, in FIG. 3a, the dashed frame indicates the node to be encoded, and the solid frame indicates the reference node, that is, there are three reference nodes in FIG. 3a, and these nodes obtain eight subnodes according to octree division. Assuming that the target coordinate axis is the z axis, take the leftmost reference node as an example, the first plane of the reference node is the plane where the lower four nodes are located, and the second plane is the plane where the upper four nodes are located. Similarly, the first plane of other reference nodes is also the plane where the lower four nodes are located, and the second plane is also the plane where the upper four nodes are located.
[0054] Alternatively, the target coordinate axis may be the x-axis or the y-axis, and the first plane and the second plane are also correspondingly, that is, planes perpendicular to the x-axis or the y-axis, and a detailed description thereof is omitted here.
[0055] In the embodiment of the present application, the number of occupied first subnodes in the first plane and the number of occupied second subnodes in the second plane of m reference nodes are obtained by dividing the node into a first plane and a second plane, and the occupancy information of the encoding target node can be predicted according to the number of occupied first subnodes and the number of occupied second subnodes, and the prediction result of the encoding target node can be determined.
[0056] Continuing with FIG 3a, the dashed frame indicates the node to be coded, and the solid frame indicates the reference node, in FIG 3a, there are three reference nodes, and the filled ones are occupied subnodes, that is, in FIG 3a, the number of occupied first subnodes is 10, and the number of occupied second subnodes is 0. Since it can be seen that the number of occupied first subnodes of the reference node is greater than the number of occupied second subnodes, and the occupied subnodes of the reference node are all located in the first plane, it is predicted that the occupancy information of the node to be coded may also be that the occupied subnodes are located in the first plane, and the subnodes in the second plane are unoccupied.
[0057] Optionally, the step of the encoding side predicting the occupancy information of the encoding target node based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determining the prediction result of the encoding target node, if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a first condition, the encoding side predicts that at least one of the first subnodes in the encoding target node is occupied and the second subnode in the encoding target node is unoccupied, and determines that the prediction result of the encoding target node is a first prediction result, wherein the first condition is that the number of occupied first subnodes in the m reference nodes is greater than a second threshold and the number of occupied second subnodes is less than a third threshold; if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a second condition, the encoding side predicts that at least one of the second subnodes in the encoding target node is occupied and the first subnode in the encoding target node is unoccupied, and determines that the prediction result of the encoding target node is a second prediction result, wherein the second condition is that the number of occupied second subnodes in the m reference nodes is greater than the second threshold and the number of occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, the encoding side predicts that at least one of the first subnodes and at least one of the second subnodes in the node to be encoded are occupied, and determines that the prediction result of the node to be encoded is a third prediction result.
[0058] In an embodiment of the present application, if the number of occupied subnodes, i.e., occupied first subnodes, in the first plane of the m reference nodes is greater than a second threshold and the number of occupied subnodes, i.e., occupied second subnodes, in the second plane is less than a third threshold, the prediction result of the node to be coded is a first prediction result that at least one first subnode in the first plane of the node to be coded is occupied and all second subnodes in the second plane of the node to be coded are unoccupied.
[0059] If the number of occupied first subnodes in the first plane of the m reference nodes is smaller than a third threshold and the number of occupied second subnodes in the second plane is greater than a second threshold, the prediction result of the node to be coded is a second prediction result that all first subnodes in the first plane of the node to be coded are unoccupied and at least one second subnode in the second plane of the node to be coded is occupied.
[0060] If the number of occupied first subnodes in the first plane and the number of occupied second subnodes in the second plane of the m reference nodes do not meet either the first or second condition, for example, the number of occupied first subnodes in the m reference nodes is smaller than the second threshold and the number of occupied second subnodes is greater than the third threshold, or the number of occupied first subnodes in the m reference nodes is smaller than the second threshold and the number of occupied second subnodes is smaller than the third threshold, the prediction result of the node to be coded is a third prediction result that at least one first subnode in the first plane of the node to be coded is occupied and at least one second subnode in the second plane is occupied.
[0061] In an embodiment of the present application, the occupancy information of the node to be coded is predicted by comparing the occupied first subnode and the occupied second subnode with the magnitudes of the second threshold and the third threshold, thereby effectively improving the prediction accuracy of the occupancy status of the node to be coded.
[0062] Optionally, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
[0063] For example, the first subnode and the second subnode in the reference node are divided based on an octree, i.e., when the value of n is 8, the number of reference nodes is 3, i.e., the value of m is 3, then the second threshold is a positive integer less than or equal to 11, and the third threshold is a positive integer less than or equal to 12.
[0064] In an embodiment of the present application, the encoding side determines a prediction result of a node to be encoded, and then determines a context of the subnode to be encoded based on the prediction result and the position of the subnode to be encoded in the node to be encoded.
[0065] Optionally, step 202 specifically includes: When the prediction result of the node to be coded is the first prediction result, and the subnode to be coded is located on a second plane of the node to be coded, the coding side determines a first preset model as a context of the subnode to be coded; When the prediction result of the node to be coded is the second prediction result, and the subnode to be coded is located on a first plane of the node to be coded, the coding side determines a second preset model as a context of the subnode to be coded; When the prediction result of the node to be coded is the first prediction result, and the subnode to be coded is located on a first plane of the node to be coded, the coding side obtains adjacent nodes of the subnode to be coded, and determines a context of the subnode to be coded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be coded is the second prediction result, and the subnode to be coded is located in a second plane of the node to be coded, the coding side obtains adjacent nodes of the subnode to be coded, and determines a context of the subnode to be coded according to the occupancy status of the adjacent nodes; and when the prediction result of the node to be encoded is the third prediction result, the encoding side obtains adjacent nodes of the subnode to be encoded, and determines a context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
[0066] Specifically, when the encoding side determines that the prediction result of the node to be encoded is a first prediction result, i.e., at least one first subnode in a first plane of the node to be encoded is occupied and all second subnodes in a second plane of the node to be encoded are not occupied, for a subnode to be encoded located in the second plane of the node to be encoded, the encoding side determines a first preset model as the context of such a subnode to be encoded, i.e., assigns the first preset model to the subnode to be encoded, the first preset model is an adaptive probability model, and the encoding side arithmetically codes the occupied bit code of the subnode to be encoded based on the adaptive probability model to generate a target code stream.
[0067] When the encoding side determines that the prediction result of the node to be encoded is the second prediction result, i.e., all the first subnodes in the first plane of the node to be encoded are not occupied, and at least one second subnode in the second plane of the node to be encoded is occupied, for the subnode to be encoded located in the first plane of the node to be encoded, the encoding side determines a second preset model as the context of such subnode to be encoded. That is, the encoding side assigns a second preset model to the subnode to be encoded, and the second preset model is also an adaptive probability model, and the encoding side arithmetically codes the occupied bit code of the subnode to be encoded based on the adaptive probability model to generate a target code stream. Alternatively, the first preset model and the second preset model may be the same probability model, for example, both may be adaptive probability models.
[0068] When the encoding side determines that the prediction result of the node to be encoded is the first prediction result, for a subnode to be encoded located in a first plane in the node to be encoded, the encoding side obtains adjacent nodes of the subnode to be encoded, and determines the context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
[0069] When the encoding side determines that the prediction result of the node to be encoded is the second prediction result, for a subnode to be encoded located in the second plane in the node to be encoded, the encoding side can similarly obtain adjacent nodes of the subnode to be encoded, and determine the context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
[0070] When the encoding side determines that the prediction result of the node to be encoded is the third prediction result, that is, at least one first subnode in the first plane of the node to be encoded is occupied, and at least one second subnode in the second plane of the node to be encoded is occupied, for a subnode to be encoded in the node to be encoded, the encoding side can similarly obtain adjacent nodes of the subnode to be encoded, and determine a context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
[0071] Alternatively, the encoding side obtains the adjacent nodes of the subnode to be encoded, and determines the context of the subnode to be encoded based on the occupancy status of the adjacent nodes, which can be realized in two different ways, and these two ways are described in detail below.
[0072] Method 1 Taking octree division as an example, in the division method of octree breadth-first traversal, the adjacent information that the encoding side can obtain for the encoding target subnode in the encoding target node includes adjacent subnodes in three target directions. Illustratively, the encoding side obtains adjacent subnodes in three directions, left, front, bottom, and right, and includes three adjacent subnodes that are coplanar with the current encoding target subnode, three collinear adjacent subnodes, and one common point adjacent subnode.
[0073] Regarding the context design of the subnode hierarchy, for a subnode to be coded, the coding side searches for the occupancy status of three coplanar adjacent subnodes, three colinear adjacent subnodes, one copoint adjacent subnode in the left front lower direction of the same hierarchy as the subnode to be coded, and adjacent subnodes that are two subnode side lengths away from the current subnode to be coded in the negative direction on the dimension with the shortest subnode side length. Taking the shortest side length of the subnode in the x-axis direction as an example, the reference node selected by each subnode is as shown in Figure 4a, the dashed frame node is the current node to be coded, the filling node is the current subnode to be coded, and the solid frame node is the adjacent subnode selected by each subnode.
[0074] The coding side considers in detail the occupancy status of the three coplanar adjacent subnodes, the three collinear subnodes, and the subnode that is two subnode side lengths away from the current subnode to be coded in the negative direction on the shortest dimension of the subnode side length, and there are a total of 27=128 types of occupancy status of these seven subnodes. If at least one is occupied, there are a total of 27-1=127 types of situations, and one context is assigned to each situation. If all of these seven subnodes are unoccupied, the occupancy status of the copoint adjacent subnode is further considered. The copoint adjacent subnode has two possibilities: it is occupied or it is unoccupied. One context is assigned individually to the situation where the copoint adjacent subnode is occupied, and if the copoint adjacent subnode is also unoccupied, the occupancy status of the adjacent node in the hierarchy of the node to be coded is further considered. In this way, a total of 127+2-1=128 contexts can be obtained based on the occupancy status of the adjacent subnode in the hierarchy of the subnode to be coded.
[0075] If the eight adjacent subnodes of the target node are not occupied, the occupancy status of four adjacent nodes in the target node hierarchy is obtained as shown in Fig. 4b. Among them, the node in the dashed box is the target node, and the node in the solid box is the adjacent node. The context is determined for the target node hierarchy by the following steps 1 and 2.
[0076] 1. First, obtain the coplanar adjacent nodes in three preset directions of the node to be coded, and exemplarily obtain the three coplanar adjacent nodes at the top right and bottom of the node to be coded. The three adjacent nodes that are coplanar at the top right and bottom of the node to be coded may have a total of 23=8 different occupancy situations, and one context is assigned to the situation where at least one is occupied. When further combined with the position of the subnode to be coded in the node to be coded, the set of coplanar adjacent nodes provides a total of (8-1)×8=56 contexts. If the three coplanar adjacent nodes at the top right and bottom of the node to be coded are all unoccupied, further obtain the occupancy situations of the other three sets of adjacent nodes (i.e., the coplanar adjacent at the bottom left front, the colinear adjacent at the top right and bottom rear, and the colinear adjacent at the bottom left front) in the hierarchy of the node to be coded.
[0077] 2. Obtain the distance between the nearest occupied node and the current node, and the specific correspondence between the occupancy status of adjacent nodes and the distance is shown in Table 1.
[0078] [Table 1]
[0079] As can be seen from Table 1, there are a total of three distance values, and when one context is assigned to each of these three values and further combined with the positional status of the subnode to be coded in the node to be coded, the total is 3 × 8 = 24 contexts.
[0080] Up to now, the total number of contexts determined by the above method 1 is 128+56+24=208, and the encoding side assigns one adaptive probability model to each context.
[0081] Method 2 After the encoding side determines the node to be encoded, for each subnode to be encoded, the encoding side can obtain six adjacent nodes that are coplanar and collinear with the node to be encoded in the hierarchy of the node to be encoded, as shown in Figure 5a. In Figure 5a, the nodes in the dashed frame are the node to be encoded, the filled nodes are each subnode to be encoded, and the solid frame nodes are the coplanar and collinear adjacent nodes of the node to be encoded. For the three coplanar adjacent nodes, there are a total of 23 = 8 types of situations, taking into account their respective distribution situations, and for the remaining three collinear adjacent nodes, only the number of occupied nodes among the three adjacent nodes is obtained, that is, there are a total of 4 types of situations, 0, 1, 2, and 3. Together, there are a total of 4 x 8 = 32 types of situations, and by setting one context for each situation, a total of 32 contexts are obtained for the hierarchy of the node to be encoded.
[0082] Furthermore, for each subnode to be coded, adjacent nodes in the target direction at the same level as the subnode to be coded are obtained. For example, as shown in Fig. 5b, three coplanar adjacent subnodes are obtained, which are to the left, in front, and below the subnode to be coded (in the negative direction of each coordinate axis). In Fig. 5b, the dashed frame node is the node to be coded, the filler node is the subnode to be coded, and the solid frame node is the coplanar adjacent node at the same level as the subnode to be coded. There are a total of 23 = 8 types of occupancy situations of the coplanar adjacent nodes at the same level as the subnode to be coded, and one context is assigned to each situation, so that the subnode to be coded is provided with a total of 8 contexts.
[0083] Since there is no interference between the contexts of the node hierarchy to be coded and the subnode hierarchy to be coded, the total number of contexts that can be determined by method 2 is 32×8=256, and the coding side assigns one adaptive probability model to each context.
[0084] Alternatively, when the prediction result of the node to be encoded is the third prediction result, or when the prediction result of the node to be encoded is the first prediction result and the subnode to be encoded is located in a first plane of the node to be encoded, or when the prediction result of the node to be encoded is the second prediction result and the subnode to be encoded is located in a second plane of the node to be encoded, the encoding side can determine the context of the subnode to be encoded by the above-mentioned method 1 or method 2.
[0085] An embodiment of the present application further provides a point cloud decoding method. Figure 6 is a flow chart of the point cloud decoding method provided in an embodiment of the present application. As shown in Figure 6, the method includes the following steps 601, 601 and 603:
[0086] In step 601, the decoding side obtains a node to be decoded in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer.
[0087] In step 602, the decoding side determines a context of the subnode to be decoded based on the occupancy information of the m reference nodes and the position of the subnode to be decoded in the node to be decoded, and the subnode to be decoded is any of the subnodes obtained by dividing the node to be decoded based on a structural tree.
[0088] In step 603, the decoding side entropy decodes the subnode to be decoded based on the context to generate a target code stream.
[0089] Optionally, step 601 specifically includes: The decoding side acquires a node to be decoded in a point cloud sequence; The decoding side obtains k decoded nodes before the decoding target node based on a node decoding order, where k is a positive integer; and if at least one decoded node among the previous k decoded nodes has a target plane feature, the decoding side obtains m decoded reference nodes in the point cloud sequence.
[0090] Optionally, when at least one decoded node among the previous k decoded nodes has a target plane feature, the step of the decoding side obtaining the m decoded reference nodes in the point cloud sequence includes: The method includes a step of determining that the previous k decoded nodes match the target plane feature when the number of decoded nodes having the target plane feature among the previous k decoded nodes is equal to or greater than a first threshold value; Here, the first threshold is a positive integer less than k.
[0091] Optionally, step 601 may further include: The decoding side acquires a node to be decoded in a point cloud sequence; A step of determining a target coordinate system on the decoding side based on the coordinate values of the node to be decoded; A step in which the decoding side determines, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the decoding target node and has the same coordinate value on a target coordinate axis as the decoding target node, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; The decoding side may obtain m reference nodes from the candidate reference nodes.
[0092] Optionally, the occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the method includes: a step of determining a first plane and a second plane of a node by the decoding side, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The method further includes a step in which the decoding side obtains the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, where the first subnodes are subnodes located in the first plane and the second subnodes are subnodes located in the second plane.
[0093] Optionally, step 602 specifically includes: The decoding side predicts occupancy information of the node to be decoded based on the occupancy information of the m reference nodes, and determines a prediction result of the node to be decoded; The decoding side determines a context of the subnode to be decoded based on a prediction result of the node to be decoded and a position of the subnode to be decoded in the node to be decoded.
[0094] Optionally, the step of determining a context of the subnode to be decoded based on a prediction result of the node to be decoded and a position of the subnode to be decoded in the node to be decoded by the decoding side includes: a step of determining a first plane and a second plane of a node by the decoding side, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The decoding side obtains a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane, and the second subnodes being subnodes located in the second plane; The decoding side predicts occupancy information of the node to be decoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determines the prediction result of the node to be decoded.
[0095] Optionally, the step of the decoding side predicting the occupancy information of the node to be decoded based on the number of the first subnodes occupied and the number of the second subnodes occupied in the m reference nodes, and determining the prediction result of the node to be decoded, If the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a first condition, the decoding side predicts that at least one of the first subnodes in the decoding target node is occupied and the second subnode in the decoding target node is not occupied, and determines that the prediction result of the decoding target node is a first prediction result, wherein the first condition is that the number of occupied first subnodes in the m reference nodes is greater than a second threshold and the number of occupied second subnodes is less than a third threshold; If the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a second condition, the decoding side predicts that at least one of the second subnodes in the decoding target node is occupied and the first subnode in the decoding target node is unoccupied, and determines that the prediction result of the decoding target node is a second prediction result, wherein the second condition is that the number of occupied second subnodes in the m reference nodes is greater than the second threshold and the number of occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, the decoding side predicts that at least one of the first subnodes and at least one of the second subnodes in the node to be decoded is occupied, and determines that the prediction result of the node to be decoded is a third prediction result.
[0096] Optionally, step 602 specifically includes: When the prediction result of the node to be decoded is the first prediction result, and the subnode to be decoded is located on a second plane of the node to be decoded, the decoding side determines a first preset model as a context of the subnode to be decoded; When the prediction result of the node to be decoded is the second prediction result, and the subnode to be decoded is located on a first plane of the node to be decoded, the decoding side determines a second preset model as a context of the subnode to be decoded; When the prediction result of the node to be decoded is the first prediction result, and the subnode to be decoded is located in a first plane of the node to be decoded, the decoding side obtains adjacent nodes of the subnode to be decoded, and determines a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the second prediction result, and the subnode to be decoded is located in a second plane of the node to be decoded, the decoding side obtains adjacent nodes of the subnode to be decoded, and determines a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the third prediction result, the decoding side obtains adjacent nodes of the subnode to be decoded, and determines a context of the subnode to be decoded based on the occupancy status of the adjacent nodes.
[0097] Optionally, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
[0098] In an embodiment of the present application, the decoding side can predict the occupancy information of the node to be decoded based on the occupancy information of the decoded reference node, and determine the context of the subnode to be decoded based on the prediction result of the node to be decoded and the position of the subnode to be decoded in the node to be decoded, thereby making better use of the occupancy information of the decoded nodes in the point cloud sequence, improving the decompression performance of the point cloud, and enhancing the decoding efficiency of the decoding side.
[0099] It should be noted that the point cloud decoding method provided in the embodiments of the present application differs from the above-mentioned point cloud encoding method only in the execution body, and the specific execution steps and realization process can refer to the specific description in the above-mentioned point cloud encoding method, and the description will be omitted here.
[0100] The point cloud encoding method provided in the embodiments of the present application may be executed by a point cloud encoding device. In the embodiments of the present application, the point cloud encoding device executes the point cloud encoding method as an example to describe the point cloud encoding device provided in the embodiments of the present application.
[0101] FIG. 7 is a block diagram of a point cloud encoding device provided in an embodiment of the present application. As shown in FIG. 7, the point cloud encoding device 700 includes: A first acquisition module 701 for acquiring a node to be coded in a point cloud sequence and m coded reference nodes in the point cloud sequence, where m is a positive integer; a first determination module 702 for determining a context of the encoding target subnode based on the occupancy information of the m reference nodes and the position of the encoding target subnode in the encoding target node, the first determination module 702 being one of the subnodes obtained by dividing the encoding target node based on a tree structure; an encoding module 703 for entropy encoding the to-be-encoded subnode based on the context to generate a target code stream.
[0102] Optionally, the first acquisition module 701 further comprises: obtaining a node to be coded in a point cloud sequence; obtaining k coded nodes prior to the node to be coded based on a node coding order, where k is a positive integer; If at least one coded node among the previous k coded nodes has a target planar feature, obtaining m coded reference nodes in the point cloud sequence.
[0103] Optionally, the first acquisition module 701 further comprises: If the number of encoded nodes having the target plane feature among the previous k encoded nodes is equal to or greater than a first threshold, then the number of encoded m reference nodes in the point cloud sequence is obtained; Here, the first threshold is a positive integer less than k.
[0104] Optionally, the first acquisition module 701 further comprises: obtaining a node to be coded in a point cloud sequence; determining a target coordinate system based on the coordinate values of the encoding target node; determining, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the encoding target node and has the same coordinate value on a target coordinate axis as the encoding target node, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; obtaining m reference nodes from the candidate reference nodes.
[0105] Optionally, the occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the point cloud encoding device 700 is a third determination module for determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; and a third acquisition module for acquiring the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes, wherein the first subnodes are subnodes located in the first plane and the second subnodes are subnodes located in the second plane.
[0106] Optionally, the first determination module 702 further comprises: predicting occupancy information of the encoding target node based on occupancy information of the m reference nodes, and determining a prediction result of the encoding target node; determining a context of the subnode to be coded based on the prediction result of the node to be coded and the position of the subnode to be coded in the node to be coded.
[0107] Optionally, the first determination module 702 further comprises: a step of the encoding side determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The encoding side obtains a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, where the first subnodes are subnodes located in the first plane and the second subnodes are subnodes located in the second plane; The encoding side predicts occupancy information of the node to be encoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determines the prediction result of the node to be encoded.
[0108] Optionally, the first determination module 702 further comprises: predicting that at least one of the first subnodes in the node to be encoded is occupied and the second subnode in the node to be encoded is unoccupied if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a first condition, and determining that the prediction result of the node to be encoded is a first prediction result, wherein the first condition is that the number of occupied first subnodes in the m reference nodes is greater than a second threshold and the number of occupied second subnodes is less than a third threshold; predicting that at least one of the second subnodes in the node to be encoded is occupied and the first subnode in the node to be encoded is unoccupied, and determining that the prediction result of the node to be encoded is a second prediction result, if the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes meet a second condition, wherein the second condition is that the number of the occupied second subnodes in the m reference nodes is greater than the second threshold and the number of the occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, predicting that at least one of the first subnodes and at least one of the second subnodes in the node to be encoded are occupied, and determining that the prediction result of the node to be encoded is a third prediction result.
[0109] Optionally, the first determination module 702 further comprises: determining a first preset model as a context of the subnode to be encoded when the prediction result of the node to be encoded is the first prediction result and the subnode to be encoded is located in a second plane of the node to be encoded; determining a second preset model as a context of the subnode to be encoded when the prediction result of the node to be encoded is the second prediction result and the subnode to be encoded is located in a first plane of the node to be encoded; When the prediction result of the node to be coded is the first prediction result and the subnode to be coded is located in a first plane of the node to be coded, obtaining adjacent nodes of the subnode to be coded, and determining a context of the subnode to be coded according to the occupancy status of the adjacent nodes; if the prediction result of the node to be coded is the second prediction result and the subnode to be coded is located in a second plane of the node to be coded, obtaining adjacent nodes of the subnode to be coded, and determining a context of the subnode to be coded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be encoded is the third prediction result, obtaining adjacent nodes of the subnode to be encoded and determining a context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
[0110] Optionally, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
[0111] In an embodiment of the present application, the point cloud encoding device 700 can predict the occupancy information of the node to be encoded according to the occupancy information of the encoded reference node, and determine the context of the subnode to be encoded according to the prediction result of the node to be encoded and the position of the subnode to be encoded in the node to be encoded, thereby making better use of the occupancy information of the encoded nodes in the point cloud sequence to improve the performance of geometric compression of the point cloud, and increasing the encoding efficiency of the point cloud encoding device 700.
[0112] The point cloud encoding device 700 in the embodiment of the present application may be an electronic device, for example, an electronic device having an operating system, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than a terminal. Exemplarily, the terminal includes, but is not limited to, the types of terminal 11 listed above, and the other devices may be a server, a network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
[0113] The point cloud encoding device 700 provided in the embodiment of the present application can realize each process realized in the embodiment of the method shown in Fig. 1, and achieve the same technical effect. In order to avoid repetition, the description is omitted here.
[0114] The point cloud decoding method provided in the embodiment of the present application may be executed by a point cloud decoding device. In the embodiment of the present application, the point cloud decoding device executes the point cloud decoding method as an example to describe the point cloud decoding device provided in the embodiment of the present application.
[0115] FIG. 8 is a block diagram of a point cloud decoding device provided in an embodiment of the present application. As shown in FIG. 8, the point cloud decoding device 800 includes: A second acquisition module 801 for acquiring a node to be decoded in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer; A second determination module 802 for determining a context of the subnode to be decoded based on the occupancy information of the m reference nodes and the position of the subnode to be decoded in the node to be decoded, the second determination module 802 being any subnode obtained by dividing the node to be decoded based on a tree structure; a decoding module 803 for entropy decoding the subnode to be decoded based on the context to generate a target code stream.
[0116] Optionally, the second acquisition module 801 further comprises: obtaining a node to be decoded in a point cloud sequence; obtaining k decoded nodes prior to the decoding target node based on a node decoding order, where k is a positive integer; If at least one decoded node among the previous k decoded nodes has a target planar feature, obtaining m decoded reference nodes in the point cloud sequence.
[0117] Optionally, the second acquisition module 801 further comprises: if the number of decoded nodes having the target plane feature among the previous k decoded nodes is equal to or greater than a first threshold, then the number of decoded m reference nodes in the point cloud sequence is obtained; Here, the first threshold is a positive integer less than k.
[0118] Optionally, the second acquisition module 801 further comprises: obtaining a node to be decoded in a point cloud sequence; determining a target coordinate system based on the coordinate values of the decoding target node; determining, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the node to be decoded and has the same coordinate value on a target coordinate axis as the node to be decoded, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; obtaining m reference nodes from the candidate reference nodes.
[0119] Optionally, the occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the point cloud decoding device 800: a fourth determination module for determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; and a fourth acquisition module for acquiring a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, where the first subnodes are subnodes located in the first plane and the second subnodes are subnodes located in the second plane.
[0120] Optionally, the second determination module 802 further comprises: predicting occupancy information of the node to be decoded based on occupancy information of the m reference nodes, and determining a prediction result of the node to be decoded; determining a context of the subnode to be decoded based on the prediction result of the node to be decoded and the position of the subnode to be decoded in the node to be decoded.
[0121] Optionally, the second determination module 802 further comprises: determining a first plane and a second plane of a node, the first plane and the second plane being parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; obtaining a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane and the second subnodes being subnodes located in the second plane; predicting occupancy information of the node to be decoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determining a prediction result of the node to be decoded.
[0122] Optionally, the second determination module 802 further comprises: predicting that at least one of the first subnodes in the node to be decoded is occupied and the second subnode in the node to be decoded is not occupied, and determining that the prediction result of the node to be decoded is a first prediction result, if the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes meet a first condition, wherein the first condition is that the number of the occupied first subnodes in the m reference nodes is greater than a second threshold and the number of the occupied second subnodes is less than a third threshold; predicting that at least one of the second subnodes in the node to be decoded is occupied and the first subnode in the node to be decoded is unoccupied, and determining that the prediction result of the node to be decoded is a second prediction result, if the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes meet a second condition, wherein the second condition is that the number of the occupied second subnodes in the m reference nodes is greater than the second threshold and the number of the occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, predicting that at least one of the first subnodes and at least one of the second subnodes in the node to be decoded are occupied, and determining that the prediction result of the node to be decoded is a third prediction result.
[0123] Optionally, the second determination module 802 further comprises: determining a first preset model as a context of the subnode to be decoded when the prediction result of the node to be decoded is the first prediction result and the subnode to be decoded is located in a second plane of the node to be decoded; determining a second preset model as a context of the subnode to be decoded when the prediction result of the node to be decoded is the second prediction result and the subnode to be decoded is located in a first plane of the node to be decoded; When the prediction result of the node to be decoded is the first prediction result and the subnode to be decoded is located in a first plane of the node to be decoded, obtaining adjacent nodes of the subnode to be decoded, and determining a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the second prediction result and the subnode to be decoded is located in a second plane of the node to be decoded, obtaining adjacent nodes of the subnode to be decoded, and determining a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the third prediction result, obtaining an adjacent node of the subnode to be decoded, and determining a context of the subnode to be decoded based on the occupancy status of the adjacent node.
[0124] Optionally, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
[0125] In an embodiment of the present application, the point cloud decoding device 800 can predict the occupancy information of the node to be decoded based on the occupancy information of the decoded reference node, and determine the context of the subnode to be decoded based on the prediction result of the node to be decoded and the position of the subnode to be decoded in the node to be decoded, thereby making better use of the occupancy information of the decoded nodes in the point cloud sequence to improve the decompression performance of the point cloud and enhance the decoding efficiency of the point cloud decoding device 800.
[0126] The point cloud decoding device 800 in the embodiment of the present application may be an electronic device, for example, an electronic device having an operating system, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than a terminal. Illustratively, the terminal includes, but is not limited to, the types of terminal 11 listed above, and the other devices may be a server, a network attached storage (Network Attached Storage, NAS), etc., and is not specifically limited in the embodiment of the present application.
[0127] The point cloud decoding device 800 provided in the embodiment of the present application can realize each process realized in the embodiment of the method shown in Fig. 6, and achieve the same technical effect. In order to avoid repetition, the description is omitted here.
[0128] Optionally, as shown in FIG. 9, the embodiment of the present application further provides a communication device 900. The communication device includes a processor 901 and a memory 902, and the memory 902 stores a program or command executable on the processor 901. For example, when the communication device 900 is an encoding side, the program or command is executed by the processor 901 to realize each process of the embodiment of the method described in FIG. 1 above, and the same technical effect can be achieved. When the communication device 900 is a decoding side, the program or command is executed by the processor 901 to realize each process of the embodiment of the method described in FIG. 6 above, and the same technical effect can be achieved. In order to avoid repetition, the description is omitted here.
[0129] The embodiment of the present application further provides a terminal. The implementation processes and realization manners of the method embodiments in the above-mentioned Figures 1 and 6 can all be applied to the embodiment of the terminal, and can achieve the same technical effects. Specifically, Figure 10 is a hardware configuration schematic diagram of the terminal implementing the embodiment of the present application.
[0130] The terminal 1000 includes at least some of the following components, but is not limited to: a high-frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
[0131] Those skilled in the art can understand that the terminal 1000 may further include a power source (e.g., a battery) for supplying power to each component, and the power source is logically connected to the processor 1010 via a power management system, and the power management system can further realize functions such as charge / discharge management and power consumption management. The structure of the terminal shown in FIG. 10 does not limit the terminal, and the terminal may include more or fewer components than those shown, or a combination of some components, or a different component arrangement, and the description will be omitted here.
[0132] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 for processing image data of a static image or a video captured by an image capture device (e.g., a camera) in a video capture mode or an image capture mode, and a microphone 10042. The display unit 1006 may include a display panel 10061, which may be arranged in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. The other input devices 10072 may include, but are not limited to, a physical keyboard, a function button (e.g., a volume control button, a switch button, etc.), a trackball, a mouse, and an operation lever, and the description thereof is omitted here.
[0133] In the embodiment of the present application, the radio frequency unit 1001 can receive downlink data from the network side device, and then transmit the data to the processor 1010 for processing, and can also transmit uplink data to the network side device. Typically, the radio frequency unit 1001 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc.
[0134] The memory 1009 can be used to store software programs or commands and various data. The memory 1009 may mainly include a first storage area for storing programs or commands and a second storage area for storing data, where the first storage area can store an operating system, an application or command required for at least one function (e.g., a sound playback function, an image playback function, etc.), etc. The memory 1009 may also include a volatile memory or a non-volatile memory, or the memory 1009 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be Random Access Memory (RAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synch link Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable memories.
[0135] The processor 1010 may include one or more processing units, and optionally integrates an application processor that mainly processes operations related to an operating system, a user interface, and applications, and a modem processor that mainly processes wireless communication signals, such as a baseband processor, in the processor 1010. It can be understood that the modem processor does not have to be integrated into the processor 1010.
[0136] Here, when the terminal 1000 is the encoding side, the processor 1010 obtaining a node to be coded in a point cloud sequence and m coded reference nodes in the point cloud sequence, where m is a positive integer; determining a context of the subnode to be coded based on occupancy information of the m reference nodes and a position of the subnode to be coded in the node to be coded, the subnode to be coded being any one of the subnodes obtained by dividing the node to be coded based on a tree structure; and entropy coding the to-be-coded subnode based on the context to generate a target codestream.
[0137] Optionally, the processor 1010 further comprises: obtaining a node to be coded in a point cloud sequence; obtaining k coded nodes prior to the node to be coded based on a node coding order, where k is a positive integer; If at least one coded node among the previous k coded nodes has a target planar feature, obtaining m coded reference nodes in the point cloud sequence.
[0138] Optionally, the processor 1010 further comprises: If the number of encoded nodes having the target plane feature among the previous k encoded nodes is equal to or greater than a first threshold, then the number of encoded m reference nodes in the point cloud sequence is obtained; Here, the first threshold is a positive integer less than k.
[0139] Optionally, the processor 1010 further comprises: obtaining a node to be coded in a point cloud sequence; determining a target coordinate system based on the coordinate values of the encoding target node; determining, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the encoding target node and has the same coordinate value on a target coordinate axis as the encoding target node, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; obtaining m reference nodes from the candidate reference nodes.
[0140] Optionally, the occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the processor 1010 further: determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; and obtaining a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane and the second subnodes being subnodes located in the second plane.
[0141] Optionally, the processor 1010 further comprises: to determine a context of the to-be-coded subnode based on the occupancy information of the m reference nodes and the position of the to-be-coded subnode in the to-be-coded node; predicting occupancy information of the encoding target node based on occupancy information of the m reference nodes, and determining a prediction result of the encoding target node; determining a context of the subnode to be encoded based on the prediction result of the node to be encoded and the position of the subnode to be encoded in the node to be encoded.
[0142] Optionally, the processor 1010 further comprises: determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; obtaining a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane and the second subnodes being subnodes located in the second plane; predicting occupancy information of the node to be encoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determining a prediction result of the node to be encoded.
[0143] Optionally, the processor 1010 further comprises: predicting that at least one of the first subnodes in the node to be encoded is occupied and the second subnode in the node to be encoded is unoccupied if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a first condition, and determining that the prediction result of the node to be encoded is a first prediction result, wherein the first condition is that the number of occupied first subnodes in the m reference nodes is greater than a second threshold and the number of occupied second subnodes is less than a third threshold; predicting that at least one of the second subnodes in the node to be encoded is occupied and the first subnode in the node to be encoded is unoccupied, and determining that the prediction result of the node to be encoded is a second prediction result, if the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes meet a second condition, wherein the second condition is that the number of the occupied second subnodes in the m reference nodes is greater than the second threshold and the number of the occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, predicting that at least one of the first subnodes and at least one of the second subnodes in the node to be encoded are occupied, and determining that the prediction result of the node to be encoded is a third prediction result.
[0144] Optionally, the processor 1010 further comprises: determining a first preset model as a context of the subnode to be encoded when the prediction result of the node to be encoded is the first prediction result and the subnode to be encoded is located in a second plane of the node to be encoded; determining a second preset model as a context of the subnode to be encoded when the prediction result of the node to be encoded is the second prediction result and the subnode to be encoded is located in a first plane of the node to be encoded; When the prediction result of the node to be coded is the first prediction result and the subnode to be coded is located in a first plane of the node to be coded, obtaining adjacent nodes of the subnode to be coded, and determining a context of the subnode to be coded according to the occupancy status of the adjacent nodes; if the prediction result of the node to be coded is the second prediction result and the subnode to be coded is located in a second plane of the node to be coded, obtaining adjacent nodes of the subnode to be coded, and determining a context of the subnode to be coded according to the occupancy status of the adjacent nodes; If the prediction result of the node to be encoded is the third prediction result, obtaining adjacent nodes of the subnode to be encoded, and determining a context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
[0145] Optionally, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
[0146] Or, when the terminal 1000 is a decoding side, the processor 1010 Obtaining a node to be decoded in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer; determining a context of the subnode to be decoded based on occupancy information of the m reference nodes and a position of the subnode to be decoded in the node to be decoded, the subnode to be decoded being any one of the subnodes obtained by dividing the node to be decoded based on a tree structure; and entropy decoding the subnode to be decoded based on the context to generate a target code stream.
[0147] Optionally, the processor 1010 further comprises: obtaining a node to be decoded in a point cloud sequence; obtaining k decoded nodes prior to the decoding target node based on a node decoding order, where k is a positive integer; If at least one decoded node among the previous k decoded nodes has a target planar feature, obtaining m decoded reference nodes in the point cloud sequence.
[0148] Optionally, the processor 1010 further comprises: if the number of decoded nodes having the target plane feature among the previous k decoded nodes is equal to or greater than a first threshold, then the number of decoded m reference nodes in the point cloud sequence is obtained; Here, the first threshold is a positive integer less than k.
[0149] Optionally, the processor 1010 further comprises: obtaining a node to be decoded in a point cloud sequence; determining a target coordinate system based on the coordinate values of the decoding target node; determining, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the node to be decoded and has the same coordinate value on a target coordinate axis as the node to be decoded, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; obtaining m reference nodes from the candidate reference nodes.
[0150] Optionally, the occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the processor 1010 further: determining a first plane and a second plane of a node, the first plane and the second plane being parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; and obtaining a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane and the second subnodes being subnodes located in the second plane.
[0151] Optionally, the processor 1010 further comprises: predicting occupancy information of the node to be decoded based on occupancy information of the m reference nodes, and determining a prediction result of the node to be decoded; determining a context of the subnode to be decoded based on the prediction result of the node to be decoded and the position of the subnode to be decoded in the node to be decoded.
[0152] Optionally, the processor 1010 further comprises: determining a first plane and a second plane of a node, the first plane and the second plane being parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; obtaining a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane and the second subnodes being subnodes located in the second plane; predicting occupancy information of the node to be decoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determining a prediction result of the node to be decoded.
[0153] Optionally, the processor 1010 further comprises: predicting that at least one of the first subnodes in the node to be decoded is occupied and the second subnode in the node to be decoded is not occupied, and determining that the prediction result of the node to be decoded is a first prediction result, if the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes meet a first condition, wherein the first condition is that the number of the occupied first subnodes in the m reference nodes is greater than a second threshold and the number of the occupied second subnodes is less than a third threshold; predicting that at least one of the second subnodes in the node to be decoded is occupied and the first subnode in the node to be decoded is unoccupied, and determining that the prediction result of the node to be decoded is a second prediction result, if the number of the occupied first subnodes and the number of the occupied second subnodes in the m reference nodes meet a second condition, wherein the second condition is that the number of the occupied second subnodes in the m reference nodes is greater than the second threshold and the number of the occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, predicting that at least one of the first subnodes and at least one of the second subnodes in the node to be decoded is occupied, and determining that the prediction result of the node to be decoded is a third prediction result.
[0154] Optionally, the processor 1010 further comprises: determining a first preset model as a context of the subnode to be decoded when the prediction result of the node to be decoded is the first prediction result and the subnode to be decoded is located in a second plane of the node to be decoded; determining a second preset model as a context of the subnode to be decoded when the prediction result of the node to be decoded is the second prediction result and the subnode to be decoded is located in a first plane of the node to be decoded; When the prediction result of the node to be decoded is the first prediction result and the subnode to be decoded is located in a first plane of the node to be decoded, obtaining adjacent nodes of the subnode to be decoded, and determining a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the second prediction result and the subnode to be decoded is located in a second plane of the node to be decoded, obtaining adjacent nodes of the subnode to be decoded, and determining a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the third prediction result, the step of obtaining adjacent nodes of the subnode to be decoded, and determining the context of the subnode to be decoded based on the occupancy status of the adjacent nodes is used.
[0155] Optionally, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
[0156] The terminal 1000 provided in the embodiment of the present application can better utilize the occupancy information of the encoded points and decoded points in the point cloud sequence, improve the geometric compression performance of the point cloud, and increase the encoding efficiency and decoding efficiency.
[0157] The embodiments of the present application further provide a readable storage medium. The readable storage medium may be non-volatile or volatile, and the readable storage medium stores a program or command, which, when executed by a processor, realizes each process of the method embodiment shown in FIG. 1 or FIG. 6, and can achieve the same technical effect. In order to avoid repetition, the description is omitted here.
[0158] Wherein, the processor is the processor in the terminal according to the above embodiment. The readable storage medium includes a computer readable storage medium such as a computer read only memory ROM, a random access memory RAM, a magnetic disk, or an optical disk.
[0159] The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to execute a program or command to realize each process of the embodiment of the method in the above Figure 1 or Figure 6, and can achieve the same technical effect. In order to avoid repetition, the description is omitted here.
[0160] It should be understood that the chips referred to in the embodiments of this application may be referred to as system level chips, system chips, chip systems, system on chips, or the like.
[0161] The embodiments of the present application further provide a computer program / program product, which is stored in a storage medium and executed by at least one processor to realize each process of the embodiment of the method in the above FIG. 1 or FIG. 6, and can achieve the same technical effect. In order to avoid repetition, the description is omitted here.
[0162] It should be noted that in this specification, the terms "comprise", "consist of" or any other variants are intended to include a non-exclusive inclusion, whereby a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also other elements not expressly stated or inherent to such process, method, article, or apparatus. Unless otherwise specified, an element limited by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element. It should also be noted that the scope of the method and apparatus in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may include performing functions substantially simultaneously or in the reverse order depending on such functions, for example, the described method may be performed in a different order than described, and various steps may be added, omitted, or combined. Also, features described with reference to any example may be combined in other examples.
[0163] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be realized in the form of a combination of software and a necessary common hardware platform. Of course, it can also be realized by hardware, but in many cases the former is a more preferred embodiment. Based on this view, the technical solution of the present application can be substantially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes a number of commands that cause a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
[0164] Although the examples of the present application have been described above with reference to the drawings, the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative and not limiting. Based on the suggestions of the present application, many forms that a person skilled in the art can make without departing from the spirit of the present application and the scope of protection of the claims are all within the scope of protection of the present application.
Claims
1. An encoding side obtains a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence, where m is a positive integer; a step of determining a context of the subnode to be coded based on occupancy information of the m reference nodes and a position of the subnode to be coded in the node to be coded, the subnode to be coded being any one of the subnodes obtained by dividing the node to be coded based on a tree structure; and a step of the encoding side entropy coding the subnode to be encoded based on the context to generate a target code stream.
2. The step of the encoding side obtaining a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence includes: The encoding side obtains a node to be encoded in a point cloud sequence; The encoding side obtains k encoded nodes prior to the encoding target node based on a node encoding order, where k is a positive integer; and if at least one encoded node among the previous k encoded nodes has a target plane feature, the encoding side obtains m encoded reference nodes in the point cloud sequence.
3. When at least one encoded node among the previous k encoded nodes has a target plane feature, the step of the encoding side obtaining m encoded reference nodes in the point cloud sequence includes: When the number of encoded nodes having a target plane feature among the previous k encoded nodes is equal to or greater than a first threshold, the encoding side obtains m encoded reference nodes in the point cloud sequence; The point cloud encoding method according to claim 2 , wherein the first threshold is a positive integer less than k.
4. The step of the encoding side obtaining a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence includes: The encoding side obtains a node to be encoded in a point cloud sequence; A step of determining a target coordinate system on the encoding side based on the coordinate values of the encoding target node; The encoding side determines, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the encoding target node and has the same coordinate value on a target coordinate axis as the encoding target node, wherein the target coordinate axis is any coordinate axis in the target coordinate system, and the target coordinate axis is perpendicular to a target plane; The point cloud encoding method according to claim 1 , further comprising: a step of: the encoding side obtaining m reference nodes from the candidate reference nodes.
5. The occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes; The point group encoding method includes: a step of the encoding side determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked in an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; 5. The point cloud encoding method according to claim 4, further comprising: a step of the encoding side obtaining a number of the occupied first subnodes and a number of the occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane, and the second subnodes being subnodes located in the second plane.
6. The step of determining a context of the subnode to be encoded based on occupancy information of the m reference nodes and a position of the subnode to be encoded in the node to be encoded by the encoding side includes: The encoding side predicts occupancy information of the encoding target node based on occupancy information of the m reference nodes, and determines a prediction result of the encoding target node; The point cloud encoding method according to claim 1 , further comprising a step in which the encoding side determines a context of the subnode to be encoded based on a prediction result of the node to be encoded and a position of the subnode to be encoded in the node to be encoded.
7. The step of predicting occupancy information of the encoding target node based on occupancy information of the m reference nodes by the encoding side and determining a prediction result of the encoding target node includes: a step of the encoding side determining a first plane and a second plane of a node, the first plane and the second plane being both parallel to a target plane, the first plane and the second plane being stacked in an extension direction of a target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of a target coordinate system; The encoding side obtains a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane, and the second subnodes being subnodes located in the second plane; The point cloud encoding method according to claim 6, further comprising a step of: predicting occupancy information of the node to be encoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, by the encoding side; and determining a prediction result of the node to be encoded.
8. The step of predicting occupancy information of the encoding target node based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes by the encoding side, and determining the prediction result of the encoding target node, If the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a first condition, the encoding side predicts that at least one of the first subnodes in the encoding target node is occupied and the second subnode in the encoding target node is unoccupied, and determines that the prediction result of the encoding target node is a first prediction result, wherein the first condition is that the number of occupied first subnodes in the m reference nodes is greater than a second threshold and the number of occupied second subnodes is less than a third threshold; if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a second condition, the encoding side predicts that at least one of the second subnodes in the encoding target node is occupied and the first subnode in the encoding target node is unoccupied, and determines that the prediction result of the encoding target node is a second prediction result, wherein the second condition is that the number of occupied second subnodes in the m reference nodes is greater than the second threshold and the number of occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, the encoding side predicts that at least one of the first subnodes and at least one of the second subnodes in the node to be encoded are occupied, and determines that the prediction result of the node to be encoded is a third prediction result.
9. The step of determining a context of the subnode to be encoded based on the prediction result and the position of the subnode to be encoded in the node to be encoded by the encoding side includes: When the prediction result of the node to be coded is the first prediction result and the subnode to be coded is located on a second plane of the node to be coded, the coding side determines a first preset model as a context of the subnode to be coded; When the prediction result of the node to be coded is the second prediction result, and the subnode to be coded is located on a first plane of the node to be coded, the coding side determines a second preset model as a context of the subnode to be coded; When the prediction result of the node to be coded is the first prediction result, and the subnode to be coded is located in a first plane of the node to be coded, the coding side obtains adjacent nodes of the subnode to be coded, and determines a context of the subnode to be coded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be coded is the second prediction result, and the subnode to be coded is located in a second plane of the node to be coded, the coding side obtains adjacent nodes of the subnode to be coded, and determines a context of the subnode to be coded according to the occupancy status of the adjacent nodes; and when the prediction result of the node to be encoded is the third prediction result, the encoding side obtains adjacent nodes of the subnode to be encoded, and determines a context of the subnode to be encoded based on the occupancy status of the adjacent nodes.
10. The point cloud encoding method according to claim 8, wherein, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, and the third threshold is a positive integer less than or equal to n / 2×m, where n is a positive integer.
11. A decoding side obtains a decoding target node in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer; a step of determining a context of the subnode to be decoded based on occupancy information of the m reference nodes and a position of the subnode to be decoded in the node to be decoded by the decoding side, the subnode to be decoded being any one of the subnodes obtained by dividing the node to be decoded based on a structure tree; The decoding side entropy decodes the subnode to be decoded based on the context to generate a target code stream.
12. The step of the decoding side obtaining a decoding target node in a point cloud sequence and m decoded reference nodes in the point cloud sequence includes: The decoding side acquires a node to be decoded in a point cloud sequence; The decoding side obtains k decoded nodes prior to the decoding target node based on a node decoding order, where k is a positive integer; The point cloud decoding method of claim 11, further comprising: if at least one decoded node among the previous k decoded nodes has a target plane feature, the decoding side obtains m decoded reference nodes in the point cloud sequence.
13. When at least one decoded node among the previous k decoded nodes has a target plane feature, the step of the decoding side obtaining m decoded reference nodes in the point cloud sequence includes: When the number of decoded nodes having a target plane feature among the previous k decoded nodes is equal to or greater than a first threshold, the decoding side obtains m decoded reference nodes in the point cloud sequence; The point cloud decoding method according to claim 12 , wherein the first threshold is a positive integer less than k.
14. The step of the decoding side obtaining a decoding target node in a point cloud sequence and m decoded reference nodes in the point cloud sequence includes: The decoding side acquires a node to be decoded in a point cloud sequence; A step of determining a target coordinate system on the decoding side based on the coordinate values of the node to be decoded; A step in which the decoding side determines, as a candidate reference node, a node in the point cloud sequence that belongs to the same node split hierarchical level as the decoding target node and has the same coordinate value on a target coordinate axis as the decoding target node, the target coordinate axis being any coordinate axis in the target coordinate system, and the target coordinate axis being perpendicular to a target plane; The point cloud decoding method according to claim 11 , further comprising: a step of the decoding side obtaining m reference nodes from the candidate reference nodes.
15. The occupancy information of the encoded m reference nodes in the point cloud sequence includes a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, and the point cloud decoding method includes: a step of determining a first plane and a second plane of a node on the decoding side, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The point cloud decoding method of claim 14, further comprising: a step of the decoding side obtaining a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane, and the second subnodes being subnodes located in the second plane.
16. The step of determining a context of the subnode to be decoded based on occupancy information of the m reference nodes and a position of the subnode to be decoded in the node to be decoded by the decoding side includes: The decoding side predicts occupancy information of the node to be decoded based on occupancy information of the m reference nodes, and determines a prediction result of the node to be decoded; The point cloud decoding method according to claim 15, further comprising a step in which the decoding side determines a context of the subnode to be decoded based on a prediction result of the node to be decoded and a position of the subnode to be decoded in the node to be decoded.
17. The step of determining a context of the subnode to be decoded by the decoding side based on a prediction result of the node to be decoded and a position of the subnode to be decoded in the node to be decoded, a step of determining a first plane and a second plane of a node on the decoding side, the first plane and the second plane being both parallel to the target plane, the first plane and the second plane being stacked along an extension direction of the target coordinate axis, the first plane being closer to a coordinate origin than the second plane, and the coordinate origin being the coordinate origin of the target coordinate system; The decoding side obtains a number of occupied first subnodes and a number of occupied second subnodes in the m reference nodes, the first subnodes being subnodes located in the first plane, and the second subnodes being subnodes located in the second plane; The point cloud decoding method of claim 16, further comprising a step of: the decoding side predicting occupancy information of the node to be decoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes, and determining a prediction result of the node to be decoded.
18. The step of the decoding side predicting occupancy information of the node to be decoded based on the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes and determining the prediction result of the node to be decoded, If the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a first condition, the decoding side predicts that at least one of the first subnodes in the node to be decoded is occupied and the second subnode in the node to be decoded is not occupied, and determines that the prediction result of the node to be decoded is a first prediction result, wherein the first condition is that the number of occupied first subnodes in the m reference nodes is greater than a second threshold and the number of occupied second subnodes is less than a third threshold; If the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes meet a second condition, the decoding side predicts that at least one of the second subnodes in the node to be decoded is occupied and the first subnode in the node to be decoded is not occupied, and determines that the prediction result of the node to be decoded is a second prediction result, wherein the second condition is that the number of occupied second subnodes in the m reference nodes is greater than the second threshold and the number of occupied first subnodes is less than the third threshold; and if the number of occupied first subnodes and the number of occupied second subnodes in the m reference nodes do not meet either the first condition or the second condition, the decoding side predicts that at least one of the first subnodes and at least one of the second subnodes in the node to be decoded are occupied, and determines that the prediction result of the node to be decoded is a third prediction result.
19. The step of determining a context of the subnode to be decoded based on the prediction result and the position of the subnode to be decoded in the node to be decoded by the decoding side includes: When the prediction result of the node to be decoded is the first prediction result and the subnode to be decoded is located on a second plane of the node to be decoded, the decoding side determines a first preset model as a context of the subnode to be decoded; When the prediction result of the node to be decoded is the second prediction result and the subnode to be decoded is located on a first plane of the node to be decoded, the decoding side determines a second preset model as a context of the subnode to be decoded; When the prediction result of the node to be decoded is the first prediction result and the subnode to be decoded is located in a first plane of the node to be decoded, the decoding side obtains adjacent nodes of the subnode to be decoded, and determines a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; When the prediction result of the node to be decoded is the second prediction result, and the subnode to be decoded is located in a second plane of the node to be decoded, the decoding side obtains adjacent nodes of the subnode to be decoded, and determines a context of the subnode to be decoded according to the occupancy status of the adjacent nodes; The point cloud decoding method of claim 18, further comprising at least one of the steps: when the prediction result of the node to be decoded is the third prediction result, the decoding side obtains adjacent nodes of the subnode to be decoded, and determines a context of the subnode to be decoded based on the occupancy status of the adjacent nodes.
20. The point cloud decoding method of claim 18, wherein, when the first subnode and the second subnode in the reference node are divided based on an n-ary tree, the second threshold is a positive integer less than or equal to n / 2×m−1, the third threshold is a positive integer less than or equal to n / 2×m, and n is a positive integer.
21. A first acquisition module for acquiring a node to be encoded in a point cloud sequence and m encoded reference nodes in the point cloud sequence, where m is a positive integer; a first determination module for determining a context of the encoding target subnode based on occupancy information of the m reference nodes and a position of the encoding target subnode in the encoding target node, the first determination module being one of the subnodes obtained by dividing the encoding target node based on a tree structure; and an encoding module for entropy encoding the subnode to be encoded based on the context to generate a target code stream.
22. A second acquisition module for acquiring a node to be decoded in a point cloud sequence and m decoded reference nodes in the point cloud sequence, where m is a positive integer; a second determination module for determining a context of the subnode to be decoded based on occupancy information of the m reference nodes and a position of the subnode to be decoded in the node to be decoded, the second determination module being one of the subnodes obtained by dividing the node to be decoded based on a tree structure; a decoding module for entropy decoding the subnode to be decoded based on the context to generate a target code stream.
23. An electronic device comprising a processor and a memory, wherein the memory stores a program or command executable by the processor, and when the program or command is executed by the processor, a step of a point cloud encoding method described in any one of claims 1 to 10 is realized, or a step of a point cloud decoding method described in any one of claims 11 to 20 is realized.
24. A readable storage medium storing a program or command which, when executed by a processor, causes the steps of the point cloud encoding method described in any one of claims 1 to 10 to be realized, or the steps of the point cloud decoding method described in any one of claims 11 to 20 to be realized.
25. A chip comprising a processor and a communication interface, the communication interface and the processor being coupled to each other, the processor executing a program or command to implement steps of the point cloud encoding method described in any one of claims 1 to 10, or used to implement steps of the point cloud decoding method described in any one of claims 11 to 20.
26. A computer program product stored on a non-transitory readable storage medium and executed by at least one processor to implement the steps of the point cloud encoding method according to any one of claims 1 to 10 or to implement the steps of the point cloud decoding method according to any one of claims 11 to 20.
27. A communication device configured to perform the steps of the point cloud encoding method according to any one of claims 1 to 10 or to perform the steps of the point cloud decoding method according to any one of claims 11 to 20.
Citation Information
Patent Citations
Point cloud geometrical information encoding and decoding method
CN112565795A
Context determination for planar mode in octree-based point cloud coding
US10693492B1
Methods and devices for neighbourhood-based occupancy prediction in point cloud compression
US20210272324A1
Three-dimensional data coding method, three-dimensional data decoding method, three-dimensional data coding device, and three-dimensional data decoding device
WO2019198636A1
Point cloud encoding / decoding method, encoder, decoder, and storage medium
WO2021232251A1
