Point cloud coding processing method, point cloud decoding processing method and related device
By selecting the inter-frame or intra-frame prediction mode according to the target distance during the point cloud encoding and decoding process, the problem of low coding efficiency of the RAHT algorithm is solved and more efficient point cloud data encoding is achieved.
Patent Information
- Application Number
- PCT/CN2024/086903
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-17
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-24
AI Technical Summary
In the existing technology, the coding efficiency of point cloud data based on the region adaptive hierarchical transform (RAHT) algorithm is low, resulting in low coding efficiency.
By determining different prediction modes according to the target distance during the encoding and decoding process, selecting inter-frame prediction or intra-frame prediction, the encoding method can be flexibly determined to improve encoding efficiency.
The coding efficiency of point cloud data is improved. By flexibly selecting the prediction mode, it adapts to the characteristics of nodes at different levels, reduces the code rate, and improves the coding effect.
Smart Images

Figure CN2024086903_24102024_PF_FP_ABST
Abstract
Description
Point cloud encoding processing method, point cloud decoding processing method and related equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202310408599.1 filed in China on April 17, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of computer technology, and specifically relates to a point cloud encoding processing method, a point cloud decoding processing method and related equipment. Background Art
[0004] A point cloud is a representation of a three-dimensional object or scene. It is composed of a set of discrete points that are randomly distributed in space and express the spatial structure and surface properties of the three-dimensional object or scene. In order to accurately reflect the information in space, the number of discrete points required is quite large. In order to reduce the bandwidth occupied by point cloud data storage and transmission, the point cloud data needs to be encoded and compressed. Point cloud data is usually composed of geometric information describing the location, such as three-dimensional coordinates (x, y, z), and attribute information of the location, such as color (R, G, B) or reflectivity. During the point cloud coding and compression process, the encoding of geometric information and attribute information is performed separately.
[0005] In related technologies, in the process of encoding attribute information based on the Region Adaptive Hierarchal Transform (RAHT) algorithm, the tree structure corresponding to the point cloud to be encoded is divided into two parts. The nodes in the upper layer are predicted using the inter-frame prediction algorithm, and the nodes in the lower layer are predicted using the intra-frame prediction algorithm. This has poor flexibility and results in low coding efficiency.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a point cloud encoding processing method, a point cloud decoding processing method and related equipment, which can solve the problem of low encoding efficiency.
[0008] In a first aspect, a point cloud encoding processing method is provided, which is executed by an encoding end and includes:
[0009] Determine the target distance between the target layer and the root node of the transformation tree corresponding to the point cloud to be encoded;
[0010] determining a target prediction residual value based on the target distance;
[0011] Encoding the target prediction residual value to obtain a first encoding result;
[0012] The code stream of the point cloud to be encoded includes the first encoding result;
[0013] In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0014] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0015] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0016] In a second aspect, a point cloud decoding processing method is provided, which is executed by a decoding end and includes:
[0017] Determine the target distance between the target layer and the root node of the transform tree corresponding to the point cloud to be decoded;
[0018] Decoding the first encoding result in the code stream of the point cloud to be decoded to obtain a target prediction residual value;
[0019] Acquire attribute information of the node of the target layer based on the target prediction residual value and the target distance;
[0020] Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0021] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0022] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0023] In a third aspect, a point cloud coding processing device is provided, comprising:
[0024] A first determination module is used to determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be encoded;
[0025] A second determining module is used to determine a target prediction residual value based on the target distance;
[0026] An encoding module, configured to encode the target prediction residual value to obtain a first encoding result;
[0027] The code stream of the point cloud to be encoded includes the first encoding result;
[0028] In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0029] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0030] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0031] In a fourth aspect, a point cloud decoding and processing device is provided, comprising:
[0032] A determination module, configured to determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be decoded;
[0033] A decoding module, configured to decode a first encoding result in a code stream of a point cloud to be decoded to obtain a target prediction residual value;
[0034] An acquisition module, configured to acquire attribute information of the node of the target layer based on the target prediction residual value and the target distance;
[0035] Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0036] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0037] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0038] In a fifth aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0039] In a sixth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be encoded; determine a target prediction residual value based on the target distance; encode the target prediction residual value to obtain a first encoding result; wherein the code stream of the point cloud to be encoded includes the first encoding result; when the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by inter-frame prediction of the attribute information of the node of the target layer; or when the target distance is greater than the first preset distance and less than or equal to a second preset distance, the target prediction residual value includes a second prediction residual value obtained by prediction processing of the attribute information of the node of the target layer; or when the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by intra-frame prediction of the attribute information of the node of the target layer.
[0040] In the seventh aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be decoded; decode a first encoding result in a code stream of the point cloud to be decoded to obtain a target prediction residual value; obtain attribute information of the node of the target layer based on the target prediction residual value and the target distance; wherein, when the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by inter-frame prediction of the attribute information of the node of the target layer; or when the target distance is greater than the first preset distance and less than or equal to a second preset distance, the target prediction residual value includes a second prediction residual value obtained by prediction processing of the attribute information of the node of the target layer; or when the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by intra-frame prediction of the attribute information of the node of the target layer.
[0041] In an eighth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0042] In the ninth aspect, a coding and decoding system is provided, comprising: an encoding end device and a decoding end device, wherein the encoding end device can be used to execute the steps of the method described in the first aspect, and the decoding end device can be used to execute the steps of the method described in the second aspect.
[0043] In the tenth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect, or to implement the method described in the second aspect.
[0044] In the eleventh aspect, a computer program / program product is provided, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0045] In an embodiment of the present application, a target prediction residual value is determined based on the target distance, and the target prediction residual value is encoded. When the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or when the target distance is greater than the first preset distance and less than or equal to a second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or when the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer. By comparing the target distance with the first preset distance and the second preset distance, different prediction methods are determined, which has high flexibility and can improve coding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] FIG1 is a flow chart of a prediction method in the related art;
[0047] FIG2 is a schematic diagram of a node in the related art;
[0048] FIG3 is a schematic diagram of a binary RAHT decomposition of a node block in the related art;
[0049] FIG4 is a schematic diagram of a prediction method in the related art;
[0050] FIG5 is a flowchart of a point cloud coding processing method according to an embodiment of the present application;
[0051] FIG6 is a flowchart of a point cloud decoding method according to an embodiment of the present application;
[0052] FIG7 is a second flowchart of a point cloud coding processing method provided in an embodiment of the present application;
[0053] FIG8 is a second flowchart of a point cloud decoding processing method provided in an embodiment of the present application;
[0054] FIG9 is a schematic structural diagram of a point cloud coding processing device provided in an embodiment of the present application;
[0055] FIG10 is a schematic structural diagram of a point cloud decoding and processing device provided in an embodiment of the present application;
[0056] FIG11 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
[0057] FIG12 is a schematic structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0059] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0060] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.
[0061] The codec end corresponding to the point cloud codec processing method in the embodiment of the present application may be a terminal, which may also be referred to as a terminal device or user equipment (UE). The terminal may be a mobile phone, a tablet personal computer, a laptop computer or a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device (Wearable Device) or a vehicle user equipment (VUE), a pedestrian user equipment (PUE), or other terminal-side devices. Wearable devices include: smart watches, bracelets, headphones, glasses, etc. It should be noted that the specific type of terminal is not limited in the embodiment of the present application.
[0062] For ease of understanding, some of the contents involved in the embodiments of this application are described below:
[0063] 1. Geometry-based Point Cloud Compression (GPCC) codec
[0064] For the GPCC encoded and decoded point cloud, its geometric information and attribute information are encoded separately. First, the geometric information is encoded, and then the attribute information is encoded using the reconstructed geometric information.
[0065] There are two main ways to encode attribute information: level of detail-based prediction and lifting transform, and region adaptive hierarchical transform (RAHT).
[0066] The RAHT attribute coding method can be divided into intra-frame RAHT and inter-frame RAHT according to the prediction method adopted.
[0067] Intra-frame prediction uses only the coded nodes of the current frame to predict the current node, while inter-frame prediction uses the nodes of the reference frame to predict the current node.
[0068] a) Intra-frame RAHT technology:
[0069] Intra-frame RAHT technology is known as regional adaptive transform based on upsampling prediction, and it is transformed layer by layer from top to bottom. In each layer, RAHT is applied to each unit node containing 2×2×2 child nodes. When encoding a unit node with 8 child nodes in the current layer, the attributes of the node's placeholder child nodes are weightedly predicted using its parent node (previous layer), coplanar neighbor parent node (previous layer), collinear neighbor parent node (previous layer), as well as the encoded coplanar neighbor child nodes (same layer) and encoded collinear neighbor child nodes (same layer). The predicted attribute value is then RAHT transformed and the difference between the actual value is taken to obtain the AC coefficient (AC coefficient) residual, which is then quantized and encoded. However, if the number of child nodes to be encoded, the number of their neighboring grandparent nodes, and the number of neighboring parent nodes do not meet certain conditions, intra-frame prediction will not be enabled. The original attribute value of the current node to be encoded will be directly RAHT transformed, and the transform coefficients will be quantized and encoded.
[0070] The following is the specific process of intra-frame RAHT technology:
[0071] The first step is to build a transformation tree structure. Starting from the bottom layer, the octree structure is constructed from the bottom up. During the transformation tree construction process, the corresponding Morton code information, attribute information, and weight information need to be generated for the merged nodes.
[0072] The second step is to parse the tree from top to bottom. Starting from the root node, upsampling prediction and regional adaptive hierarchical transform (RAHT) are performed layer by layer.
[0073] If the current node is the root node, no upsampling prediction is performed, and the attribute information of the node is directly subjected to RAHT transformation to obtain the DC coefficient and AC coefficient.
[0074] If it is not the root node, it is necessary to determine whether to predict the current eight child nodes, as shown in Figure 1:
[0075] 1. Determine whether the number of placeholder child nodes NumValidc is equal to 1: If the number of placeholder child nodes (non-empty) of the current node to be encoded is 1, set the number of its neighbor parent nodes NumValidP to val (for example, 19), do not perform prediction, directly perform RAHT transform on the original attribute information of the current node, and then quantize and entropy code the obtained AC coefficients.
[0076] Otherwise continue with step 2:
[0077] 2. Determine whether the number of neighboring grandparent nodes NumValidGP is greater than or equal to TH1 (for example, 2): If the number of neighboring grandparent nodes (including grandparent nodes) of the current child node to be encoded is less than 2, no prediction is performed, and the original attribute information of the current node is directly RAHT transformed, and then the obtained AC coefficients are quantized and entropy coded. Otherwise, proceed to step 3:
[0078] 3. Neighbor search: The search range is: the parent node of the current child node to be encoded (1), the coplanar neighbor nodes of the parent node of the current child node to be encoded (6), the collinear neighbor nodes of the parent node of the current child node to be encoded (12), the coplanar neighbor nodes of the current child node to be encoded (6), and the collinear neighbor nodes of the current child node to be encoded (12). Search the above neighbor nodes in sequence. If the neighbor node exists, record its corresponding index information and the number of neighbors of the parent node (including the parent node itself). Then proceed to step 4.
[0079] 4. Determine whether the number of neighboring parent nodes is greater than or equal to TH2 (for example, 6): If the number of neighboring parent nodes of the current child node to be encoded is less than TH2, no weighted prediction is performed. Instead, the original attribute information of the current node to be encoded is directly subjected to RAHT transformation, and the obtained AC coefficients are quantized and entropy coded. Otherwise, weighted prediction is performed.
[0080] The third step is weighted prediction. The nearest neighbors found in the neighbor search are used to perform weighted prediction on each child node of the current node to be encoded, as shown in Figure 2.
[0081] The prediction weight of the parent node is specified to be 9, the prediction weight of the neighboring child node coplanar with the current child node to be encoded is 5, the prediction weight of the neighboring child node colinear with the current child node to be encoded is 2, the prediction weight of the neighboring parent node coplanar with the current child node to be encoded is 3, and the prediction weight of the neighboring parent node colinear with the current child node to be encoded is 1.
[0082] Among them, the parent node can be directly used to predict each child node of the current block to be encoded. For other neighbor nodes (neighbor parent nodes and encoded neighbor child nodes), a step needs to be performed to determine whether they can be used to predict the child nodes of the current block. The judgment steps are as follows:
[0083] 1. As shown in Figure 2, for neighbor parent nodes with indexes 1-7, since their child nodes have not been encoded, only the neighbor parent nodes can be used for prediction.
[0084] First, determine whether the neighbor parent node of the position exists. If not, continue to determine the next neighbor parent node.
[0085] If it exists, it is necessary to determine whether the current neighbor parent node can be used for prediction and to screen the neighbor parent node. The specific process is as follows:
[0086] 1) According to the attribute value of the parent node, two prediction thresholds are set to further filter the nearest neighbors and filter out unreasonable neighbor parent nodes to improve the accuracy of the prediction. Let these two thresholds be limitLow and limitHigh, and let the attribute value of the parent node be attrPar, then: limitLow = attrpar * 2 limitHigh = attrpar * 25
[0087] Assume the attribute value of the current neighbor's parent node is attrNei, and make the following judgment on it: limitLow <attrnei*10<limitHigh
[0088] If the condition is not met, the current neighbor parent node cannot be used to predict the child node of the current block to be encoded; if the condition is met, continue to make the following judgment;
[0089] 2) Determine whether the current neighboring parent node meets the conditions of being coplanar and colinear with each of the current child nodes to be encoded. If this condition is not met, the current neighboring node cannot be used to perform weighted prediction on the current child node to be encoded; if this condition is met, the current neighboring node is used to perform weighted prediction on the current child node to be encoded.
[0090] 2. For neighbor parent nodes with indexes 8-19, since their child nodes have been encoded, if there is a neighbor child node at the same position, it can be used to replace the neighbor parent node to which it belongs for prediction, which will have a better prediction effect.
[0091] First, determine whether the neighbor parent node of the position exists. If not, continue to determine the next neighbor parent node.
[0092] If it exists, it is necessary to determine whether the current neighbor parent node can be used for prediction and to screen the neighbor parent node. The specific process is as follows:
[0093] 1) According to the attribute value of the parent node, two prediction thresholds are set to further filter the nearest neighbors and filter out unreasonable neighbor parent nodes to improve the accuracy of the prediction. Let the attribute value of the current neighbor parent node be attrNei, and make the following judgment on it: limitLow <attrnei*10<limitHigh
[0094] If this condition is not met, the current neighbor parent node cannot be used to predict the child node of the current block to be encoded; if this condition is met, the following judgment is continued:
[0095] 2) Determine whether there is a neighboring child node on the same layer as the current parent node's neighbor: For coplanar neighbor parent nodes, if any of its child nodes is also coplanar with the current child node to be predicted, then use this coplanar neighbor child node instead of the coplanar neighbor parent node to perform weighted prediction on the child node to be predicted; For collinear neighbor parent nodes, if any of its child nodes is also collinear with the current child node to be predicted, then use this collinear neighbor child node instead of the collinear neighbor parent node to perform weighted prediction. If no such child node exists, continue to use the neighboring parent node for weighted prediction.
[0096] 3. Finally, each child node of the current node to be coded uses the neighboring nodes that meet the conditions as the reference point set to perform weighted prediction to obtain the attribute prediction value. Then, the original attribute value and the predicted attribute value are subjected to RAHT transformation and the difference is obtained to obtain the AC coefficient residual, which is quantized and entropy coded. res =AttrCoff org -AttrCoff pred
[0097] The fourth step is RAHT transformation. The process is as follows:
[0098] Perform RAHT transformation on the original attribute value or (and) the attribute prediction value; if the current block is not predicted, only the original attribute value needs to be RAHT transformed; if the current block is predicted, both the original attribute value and the attribute prediction value need to be RAHT transformed.
[0099] When performing RAHT transformation, the original attribute values and / or attribute prediction values need to be normalized first, and then the RAHT transformation is performed on the processed values.
[0100] First, normalize the original attribute value and set the original attribute value of the current child node to be A i , with weight w i (Size is the number of points contained in the current node), then:
[0101] If prediction is used, set the attribute prediction value of the current child node to A pi ,but:
[0102] The predicted value A′ of the processed attribute pi Or the original attribute value A′ i Perform RAHT transformation on a 2*2*2 node block, transform it along three directions respectively, and perform four transformations in each direction. Therefore, each 2*2*2 block performs a total of:
[0103] 1) Transform along the first direction to obtain low-frequency L nodes and high-frequency H nodes;
[0104] 2) Transform the L nodes and H nodes along the second direction to obtain the low-frequency LL nodes and high-frequency LH, HL, and HH nodes;
[0105] 3) Transform the LL, LH, HL, and HH nodes along the third direction to obtain the low-frequency LLL node and the high-frequency LLH, LHL, LHH, HLL, HLH, HHL, and HHH nodes.
[0106] Among them, LLL is the DC coefficient, and LLH, LHL, LHH, HLL, HLH, HHL, and HHH are AC coefficients.
[0107] The AC coefficients are quantized and entropy coded in the order of LLH, LHL, HLL, LHH, HLH, HHL, HHH.
[0108] Due to the sparsity of point clouds, in general, each 2*2*2 node block usually has less than 8 occupied child nodes, so not all AC coefficients will exist, and non-existent AC coefficients will not be encoded.
[0109] The specific process is shown in Figure 3:
[0110] Specifically, when performing two-point transformation, assuming that the input attribute values are T 01 、T 11 , transformation coefficients T1, T w0+1 The transformation formula used is:
[0111] Where a and b are calculated by the weight of the current node, and the weight of the current node is obtained from the weight array:
[0112] If the current node is the root node, no prediction is performed, and the DC coefficient and AC coefficient of the original attribute value after transformation are quantized and entropy coded;
[0113] If the current node is not the root node and no prediction is performed, the AC coefficients after the original attribute value is transformed are quantized and entropy coded;
[0114] If the current node is not a root node and prediction is performed, the residual of the AC coefficient of the original attribute value after transformation and the AC coefficient of the attribute prediction value after transformation is calculated, and the residual is quantized and entropy coded.
[0115] At the decoding end, the coefficients are decoded and dequantized, and then the RAHT inverse transform is performed.
[0116] The inverse RAHT transform is the inverse process of the RAHT transform. The inverse transform formula is as follows:
[0117] Among them, T1, T w0+1 is the transformation coefficient, T 01 、T 11 The calculation methods of a and b are the same as those in the transformation process.
[0118] If the current node is the root node, then directly perform the inverse transformation to obtain the attribute reconstruction value of each child node;
[0119] If the current node is not the root node and no prediction is performed, the DC coefficient inherits the attribute reconstruction value of the parent node, and then performs an inverse transformation to obtain the attribute reconstruction value of each child node;
[0120] If the current child node is the root node and prediction is performed, the DC coefficient inherits the attribute reconstruction value of the parent node, and the AC coefficient is the AC coefficient residual plus the AC coefficient of the attribute prediction value. Then, an inverse transformation is performed to obtain the attribute reconstruction value of each child node.
[0121] b) Inter-frame RAHT technology:
[0122] The inter-frame RAHT technology uses the inter-frame prediction attribute values of certain qualified nodes in the reference frame to predict the attributes of the nodes in the current frame. Then, the attribute prediction values and the true attribute values are RAHT transformed and subtracted, and the AC coefficient residuals are quantized and encoded.
[0123] The following is a detailed introduction to the inter-frame scheme:
[0124] Inter-frame RAHT is a method for inter-frame prediction of DC and AC coefficients between RAHT frames: inter-frame prediction is only used for the first five layer nodes, and the remaining layer nodes only use intra-frame prediction methods.
[0125] In the first five layers (high-level nodes):
[0126] For the DC coefficient:
[0127] DC coefficient prediction residual DC residual =DC coefficient of the root node of the current frame current Subtract the DC coefficient DC of the reference frame root node reference .DC residual =DC current -DC reference
[0128] For AC coefficients:
[0129] The prediction process is as follows:
[0130] 1. Reference frame reconstruction: Merge all points in the reference frame within a certain range of the current point into one point, add the attributes, and use the coordinates of the current point. This allows the same prediction tree construction and parsing to be performed. The specific process is as follows:
[0131] a) For each point, there is a reconstructed reference point with the same coordinates. The attributes of this reference point are the sum of the attributes of the points within a certain range in the reference frame obtained according to certain rules.
[0132] b) The rule is: If a point in the reference frame is closer to the current point in the current frame than to the next point in the current frame by Morton code, then this point is considered for reconstruction of the current point. The attribute values are accumulated and the weight is increased by one. This continues until the condition is no longer met. The next reconstruction point is then determined.
[0133] c) In addition, the start and end distances are specified. If the distance is too far, it will be considered that the attribute values are too different and not suitable for reconstruction.
[0134] Only points in the reference frame whose distance to the first point of the current frame is no greater than 64 will be used for reconstruction.
[0135] Only points in the reference frame whose distance to the last point of the current frame is no more than 64 will be used for reconstruction.
[0136] 2. Tree construction: The prediction tree is constructed from the bottom up on the reconstructed reference frame and the current frame to obtain a prediction tree with the same structure. The attribute values of the current frame nodes and the predicted attribute values and weight values of the corresponding reference frame nodes are generated.
[0137] 3. As shown in Figure 4, the predicted attribute value is selected: in the first five layers, if the attribute value of the node at the corresponding position in the reference frame is not 0 and is within 20% to 250% of the attribute value of the current parent node, the attribute value Attrpredicted_inter of the node in the reference frame is used as the attribute prediction value, otherwise the intra-frame prediction value Attrpredicted_intra of the current frame is used as the attribute prediction value. predicted Perform RAHT transformation to obtain the AC coefficient of the predicted value. current and the predicted AC coefficient AC predicted Subtract to get AC coefficient prediction residual AC residual , quantize and encode the residual. The calculation formula is as follows: AC residual =AC current -AC predicted AC predicted =Transform(Attr predicted ) Attr predicted=Attrpredicted_inter? Attrpredicted_inter:Attrpredicted_intra
[0138] 4. The remaining layers only use the original intra-frame RAHT prediction method.
[0139] In the related technology, in the process of encoding attribute information based on the region adaptive hierarchical transform (RAHT) algorithm, the tree structure corresponding to the point cloud to be encoded is divided into two parts. The nodes in the upper layer are predicted using the inter-frame prediction algorithm, and the nodes in the lower layer are predicted using the intra-frame prediction algorithm. The flexibility is poor, resulting in low coding efficiency.
[0140] The point cloud encoding processing method, point cloud decoding processing method and related equipment provided in the embodiments of the present application are described in detail below with reference to some embodiments and their application scenarios in combination with the accompanying drawings.
[0141] Referring to FIG5 , FIG5 is a flowchart of a point cloud coding processing method provided in an embodiment of the present application, which can be applied to an encoding end. As shown in FIG5 , the point cloud coding processing method includes the following steps:
[0142] Step 101: Determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be encoded.
[0143] Among them, the geometric information and attribute information of the point cloud to be encoded can be obtained; based on the geometric information of the point cloud to be encoded, a transform tree corresponding to the point cloud to be encoded is generated. The transform tree corresponding to the point cloud to be encoded can include multiple layers, the root node can be considered as the first layer of the transform tree, and the target layer can be any layer in the transform tree. The target distance can refer to the number of layers from the target layer to the root node. For example, the target distance between the second layer of the transform tree and the root node can be one layer, the target distance between the third layer of the transform tree and the root node can be two layers, the target distance between the fourth layer of the transform tree and the root node can be three layers, and so on.
[0144] Step 102: determining a target prediction residual value based on the target distance;
[0145] Step 103: Encode the target prediction residual value to obtain a first encoding result;
[0146] The code stream of the point cloud to be encoded includes the first encoding result;
[0147] In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0148] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0149] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0150] The first preset distance and the second preset distance can both be the number of layers from the root node. The first preset distance is smaller than the second preset distance. For example, the first preset distance can be 5 layers and the second preset distance can be 10 layers; or the first preset distance can be 7 layers and the second preset distance can be 13 layers; or the first preset distance can be 8 layers and the second preset distance can be 15 layers; and so on. This embodiment does not limit the first preset distance and the second preset distance.
[0151] It should be noted that when the target distance is less than or equal to the first preset distance, the node of the target layer is the node of the upper layer that is closer to the root node. Since the nodes in the upper layer of the transformation tree are larger and contain more points, even if there is movement between the two frames, there will basically not be much change in these upper layer nodes. At this time, if inter-frame prediction is used, the inter-frame attribute prediction residual may be smaller than the intra-frame attribute prediction residual, so that the use of inter-frame prediction in the upper layer will have a better effect.
[0152] In addition, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the inter-frame prediction method or the intra-frame prediction method can be determined by a rate-distortion optimization algorithm.
[0153] In addition, when the target distance is greater than the second preset distance, the node of the target layer is a node in the lower layer that is farther away from the root node. Since the lower layer block is small and contains fewer points, when there is a certain amount of motion between the two frames, the number of points contained in each block may change greatly, which is not suitable for inter-frame prediction. Therefore, using intra-frame prediction in the lower layer will have a better effect.
[0154] It should be noted that the inter-frame prediction method in related technologies uses the distance (number of layers) from the root node to determine whether the current layer has enabled inter-frame prediction mode. That is, when the distance from the current layer to the root node is less than or equal to a set threshold, the corresponding inter-frame prediction algorithm is applied. When the distance from the current layer to the root node is greater than the set threshold, only the existing intra-frame prediction method is used. However, for some sequences, the results of using inter-frame prediction for certain nodes greater than the threshold may have smaller residuals than intra-frame prediction, resulting in better prediction effects.
[0155] This embodiment uses a more flexible approach to select the intra-frame and inter-frame prediction modes, rather than simply using the number of layers from the root node as the basis. The octree is split into two parts, using inter-frame prediction for the nodes in the upper layer and intra-frame prediction for the remaining nodes. This embodiment uses a more flexible approach to determine the prediction mode used by the current node, thereby reducing the prediction residual.
[0156] In an embodiment of the present application, a target prediction residual value is determined based on the target distance, and the target prediction residual value is encoded. When the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or when the target distance is greater than the first preset distance and less than or equal to a second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or when the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer. By comparing the target distance with the first preset distance and the second preset distance, different prediction methods are determined, which has high flexibility and can improve coding efficiency.
[0157] Optionally, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
[0158] In which, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the first generation value corresponding to the inter-frame residual coefficient and the second generation value corresponding to the intra-frame residual coefficient can be determined based on the rate-distortion optimization algorithm, and the second predicted residual value can be determined based on the first generation value and the second generation value.
[0159] In this embodiment, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on the rate-distortion optimization algorithm. In this way, it supports judging the cost of using intra-frame prediction and inter-frame prediction through the rate-distortion optimization algorithm, thereby selecting a suitable prediction method for prediction processing to obtain the second prediction residual value.
[0160] Optionally, determining a target prediction residual value based on the target distance includes:
[0161] When the target distance is greater than the first preset distance and less than or equal to the second preset distance, determining an inter-frame residual coefficient and an intra-frame residual coefficient of the attribute information of the node of the target layer;
[0162] Determining, based on a rate-distortion optimization algorithm, a first generation value corresponding to the inter-frame residual coefficient and a second generation value corresponding to the intra-frame residual coefficient;
[0163] determining a second prediction residual value based on the first generation value and the second generation value;
[0164] The target prediction residual value includes the second prediction residual value.
[0165] Here, cost can also be described as expenditure.
[0166] In one embodiment, the second-generation value Cost_intra corresponding to the intra-frame residual coefficient and the first-generation value Cost_inter corresponding to the inter-frame residual coefficient can be calculated separately. The second-generation value of the intra-frame residual coefficient or the first-generation value of the inter-frame residual coefficient can be obtained by the following formula: Cost = D + λ * R
[0167] Here, D (distortion) is the Sum of Absolute Difference (SAD) between the reconstructed attribute and the original attribute obtained by using the prediction residual coefficient (intra-frame residual coefficient or inter-frame residual coefficient).
[0168] Here, R (rate: bit rate) is the number of bits required to encode the prediction residual coefficient (intra-frame residual coefficient or inter-frame residual coefficient).
[0169] The value of λ depends on the quantization parameter QP and is calculated as follows:
[0170] It should be noted that the determination of the inter-frame residual coefficient of the attribute information of the node of the target layer may include: determining the inter-frame prediction value of the attribute information of the node of the target layer, transforming the inter-frame prediction value to obtain the inter-frame transformation coefficient, and obtaining the inter-frame residual coefficient based on the inter-frame transformation coefficient; or, it may include: if there is a transformation coefficient of a reference node with the same position as the node of the target layer in the reference frame of the point cloud to be encoded, then the transformation coefficient of the reference node with the same position is determined as the inter-frame transformation coefficient of the attribute information of the node, and the inter-frame residual coefficient of the attribute information of the node is determined based on the transformation coefficient of the node and the inter-frame transformation coefficient of the attribute information of the node.
[0171] In addition, determining the intra-frame residual coefficient of the attribute information of the node of the target layer may include: determining the intra-frame prediction value of the attribute information of the node of the target layer, transforming the intra-frame prediction value to obtain the intra-frame transformation coefficient, and obtaining the inter-frame residual coefficient based on the intra-frame transformation coefficient.
[0172] In this embodiment, the inter-frame residual coefficients and intra-frame residual coefficients of the attribute information of the node in the target layer are determined; a first generation value corresponding to the inter-frame residual coefficient and a second generation value corresponding to the intra-frame residual coefficient are determined based on a rate-distortion optimization algorithm; and a second prediction residual value is determined based on the first generation value and the second generation value. In this way, for mid-layer nodes, the cost of using intra-frame prediction and inter-frame prediction can be determined through the rate-distortion optimization algorithm, thereby selecting an appropriate prediction method for prediction processing to obtain a second prediction residual value, resulting in a smaller attribute prediction residual and higher coding efficiency.
[0173] Optionally, when the first generation value is less than the second generation value, the second prediction residual value is the inter-frame residual coefficient; or,
[0174] In the case where the second generation value is less than the first generation value, the second prediction residual value is the intra-frame residual coefficient; or
[0175] When the first generation value is equal to the second generation value, the second prediction residual value is the inter-frame residual coefficient or the intra-frame residual coefficient.
[0176] It should be noted that the first generation value being equal to the second generation value indicates that the cost of encoding the intra-frame residual coefficient is the same as the cost of encoding the inter-frame residual coefficient, and either the intra-frame prediction mode or the inter-frame prediction mode can be selected.
[0177] In this embodiment, when the first cost value is less than the second cost value, the second prediction residual value is the inter-frame residual coefficient; when the second cost value is less than the first cost value, the second prediction residual value is the intra-frame residual coefficient; when the first cost value is equal to the second cost value, the second prediction residual value is the inter-frame residual coefficient or the intra-frame residual coefficient. This allows the prediction method with the smaller cost value to be selected for prediction, resulting in a smaller attribute prediction residual and higher coding efficiency.
[0178] Optionally, the code stream of the point cloud to be encoded further includes a second encoding result, and the second encoding result is used to represent that the second prediction residual value is the intra-frame residual coefficient or the second prediction residual value is the inter-frame residual coefficient.
[0179] Among them, a flag can be used to mark the prediction mode used by the node, and the second encoding result can be the encoding result of the flag. For example, a binary flag flag can be used to mark the prediction mode used by the node, when the flag is 1, the representation node uses the intra-frame prediction mode, and the second prediction residual value is the intra-frame residual coefficient, when the flag is 0, the representation node uses the inter-frame prediction mode, and the second prediction residual value is the inter-frame residual coefficient; or, when the flag is 0, the representation node uses the intra-frame prediction mode, and the second prediction residual value is the intra-frame residual coefficient, when the flag is 1, the representation node uses the inter-frame prediction mode, and the second prediction residual value is the inter-frame residual coefficient.
[0180] In this embodiment, the code stream of the point cloud to be encoded also includes a second encoding result, and the second encoding result is used to characterize that the second prediction residual value is the intra-frame residual coefficient or the second prediction residual value is the inter-frame residual coefficient, so that the decoding end can determine whether the prediction mode is the intra-frame prediction mode or the inter-frame prediction mode through the second encoding result, and thus select the appropriate prediction mode for decoding.
[0181] Optionally, when the data type of the reference frame data of the to-be-encoded point cloud is the first data type, the determining of the inter-frame residual coefficient of the attribute information of the node of the target layer includes:
[0182] Determining an inter-frame prediction value of the attribute information of the node of the target layer, and performing a transform process on the inter-frame prediction value to obtain an inter-frame transform coefficient;
[0183] An inter-frame residual coefficient is obtained based on the inter-frame transform coefficient.
[0184] The reference frame data of the first data type may be encoded and reconstructed point cloud frame data. The reference frame data of the first data type may include attribute information and geometric information.
[0185] In one implementation, the transforming the inter-frame prediction value to obtain the inter-frame transform coefficient may include performing a RAHT transform on the inter-frame prediction value to obtain the inter-frame transform coefficient.
[0186] In one embodiment, obtaining the inter-frame residual coefficient based on the inter-frame transform coefficient may include performing a RAHT transform on the attribute information of the node to obtain the transform coefficient of the node; and subtracting the inter-frame transform coefficient from the transform coefficient of the node to obtain the inter-frame residual coefficient. The inter-frame residual coefficient can also be described as an inter-frame prediction residual coefficient.
[0187] In this embodiment, when the data type of the reference frame data of the point cloud to be encoded is the first data type, an inter-frame prediction value of the attribute information of the node of the target layer is determined, and the inter-frame prediction value is transformed to obtain an inter-frame transformation coefficient; and an inter-frame residual coefficient is obtained based on the inter-frame transformation coefficient. In this way, when the reference frame data is encoded and reconstructed point cloud frame data, the inter-frame prediction value is transformed to obtain the inter-frame transformation coefficient, and then the inter-frame residual coefficient is obtained.
[0188] Optionally, before determining the inter-frame prediction value of the attribute information of the node of the target layer, the method further includes:
[0189] Reconstructing the points in the reference frame corresponding to the point cloud to be encoded;
[0190] Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree;
[0191] The determining of the inter-frame prediction value of the attribute information of the node of the target layer includes:
[0192] An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
[0193] Reconstructing the points in the reference frame corresponding to the point cloud to be encoded can achieve reference frame reconstruction. For each point, there will be a reconstructed reference point with the same position coordinates. The attributes of this reference point are the sum of the attributes of the points within a certain range in the reference frame obtained according to a certain rule. The rule is: if the distance of a point in the reference frame to the current point in the current frame is closer than the Morton code distance to the next point in the current frame, then this point is determined to be used for reconstructing the current point. The attribute values are accumulated and the weight is increased by one until the condition is no longer met, and the next reconstruction point is determined. In addition, the starting and ending distances for judgment are specified. If the distance is too far, it will be considered that the attribute value difference is large and unsuitable for reconstruction. Specifically: Only points in the reference frame whose distance to the first point of the current frame is no more than 64 will be used for reconstruction. Only points in the reference frame whose distance to the last point of the current frame is no more than 64 will be used for reconstruction. A bottom-up prediction tree operation can be performed on the reconstructed reference frame. The tree structure of the constructed prediction tree is the same as the tree structure of the transformation tree.
[0194] In one embodiment, the inter-frame prediction value of the attribute information of the node of the target layer determined based on the prediction tree and the transform tree may include: obtaining the attribute values of the nodes of each layer and the attribute values of the corresponding nodes of each layer of the reconstructed reference frame through the prediction tree and the transform tree; if the attribute value of the child node at the corresponding position of the reference frame is not 0 and is within 20% to 250% of the attribute value of the parent node of the current frame, then the attribute value of the child node of the reference frame is used as the inter-frame prediction value of the attribute information of the child node at the corresponding position of the current frame; otherwise, the intra-frame prediction value of the current frame is used as the inter-frame prediction value of the attribute information.
[0195] In this embodiment, points in the reference frame corresponding to the point cloud to be encoded are reconstructed; a prediction tree is constructed based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree; and inter-frame prediction values of the attribute information of the nodes in the target layer are determined based on the prediction tree and the transform tree. In this way, when the reference frame data is encoded and reconstructed point cloud frame data, the inter-frame prediction values of the attribute information of the nodes in the target layer are determined using the prediction tree constructed from the reconstructed reference frame.
[0196] Optionally, the reference frame data of the first data type is encoded and reconstructed point cloud frame data.
[0197] Optionally, when the data type of the reference frame data of the to-be-encoded point cloud is the second data type, the determining of the inter-frame residual coefficient of the attribute information of the node of the target layer includes:
[0198] If there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be encoded, the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node;
[0199] An inter-frame residual coefficient of the attribute information of the node is determined based on the transformation coefficient of the node and the inter-frame transformation coefficient of the attribute information of the node.
[0200] Determining the inter-frame residual coefficient of the attribute information of the node based on the transform coefficient of the node and the inter-frame transform coefficient of the attribute information of the node may include performing a RAHT transform on the attribute information of the node to obtain the transform coefficient of the node; and subtracting the inter-frame transform coefficient of the attribute information of the node from the transform coefficient of the node to obtain the inter-frame residual coefficient. The inter-frame residual coefficient may also be described as an inter-frame prediction residual coefficient.
[0201] In this embodiment, if the reference frame of the point cloud to be encoded contains transform coefficients for a reference node co-located with the node of the target layer, the transform coefficients for the co-located reference node are determined as the inter-frame transform coefficients for the attribute information of the node; and the inter-frame residual coefficients for the attribute information of the node are determined based on the transform coefficients for the node and the inter-frame transform coefficients for the attribute information of the node. In this way, when the reference frame data is the reconstructed transform coefficients of an already encoded point cloud frame, the inter-frame transform coefficients can be directly obtained from the reference frame data, thereby obtaining the inter-frame residual coefficients.
[0202] Optionally, the reference frame data of the second data type is the reconstructed transformation coefficients of the encoded point cloud frame.
[0203] Optionally, the code stream of the point cloud to be encoded further includes a third encoding result, and the third encoding result is an encoding result of at least one of the first preset distance and the second preset distance.
[0204] Referring to FIG6 , FIG6 is a flowchart of a point cloud decoding processing method provided in an embodiment of the present application, which can be applied to a decoding end. As shown in FIG6 , the point cloud decoding processing method includes the following steps:
[0205] Step 201: Determine the target distance between the target layer and the root node of the transform tree corresponding to the point cloud to be decoded;
[0206] Step 202: Decode the first encoding result in the code stream of the point cloud to be decoded to obtain a target prediction residual value;
[0207] Step 203: Acquire attribute information of the node of the target layer based on the target prediction residual value and the target distance;
[0208] Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0209] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0210] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0211] Optionally, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
[0212] Optionally, the target prediction residual value includes the second prediction residual value, and the code stream of the point cloud to be decoded also includes a second encoding result, where the second encoding result is used to represent that the second prediction residual value is an intra-frame residual coefficient or the second prediction residual value is an inter-frame residual coefficient; obtaining the attribute information of the node of the target layer based on the target prediction residual value and the target distance includes:
[0213] When the target distance is greater than the first preset distance and less than or equal to the second preset distance, decoding the second encoding result;
[0214] In a case where it is determined that the second encoding result represents that the second prediction residual value is an intra-frame residual coefficient, determining the attribute information of the node of the target layer based on the intra-frame transform coefficient of the node of the target layer and the second prediction residual value; or
[0215] When it is determined that the second encoding result represents that the second prediction residual value is an inter-frame residual coefficient, the attribute information of the node of the target layer is determined based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value.
[0216] Optionally, when the data type of the reference frame data of the point cloud to be decoded is the first data type, determining the attribute information of the node of the target layer based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value includes:
[0217] Determining an inter-frame prediction value of the attribute information of the node of the target layer, and performing a transform process on the inter-frame prediction value to obtain an inter-frame transform coefficient;
[0218] Attribute information of the node of the target layer is determined based on the inter-frame transform coefficient and the second prediction residual value.
[0219] Optionally, before determining the inter-frame prediction value of the attribute information of the node of the target layer, the method further includes:
[0220] Reconstructing the points in the reference frame corresponding to the point cloud to be decoded;
[0221] Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree;
[0222] The determining of the inter-frame prediction value of the attribute information of the node of the target layer includes:
[0223] An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
[0224] Optionally, the reference frame data of the first data type is decoded and reconstructed point cloud frame data.
[0225] Optionally, when the data type of the reference frame data of the point cloud to be decoded is the second data type, determining the attribute information of the node of the target layer based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value includes:
[0226] If it is determined that there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be decoded, then the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node;
[0227] The attribute information of the node is obtained based on the second prediction residual value and the inter-frame transform coefficient of the attribute information of the node.
[0228] Optionally, the reference frame data of the second data type is the reconstructed transformation coefficients of the decoded point cloud frame.
[0229] Optionally, the code stream of the point cloud to be decoded further includes a third encoding result, and the method further includes:
[0230] The third encoding result is decoded to obtain at least one of the first preset distance and the second preset distance.
[0231] It should be noted that this embodiment is an implementation of the decoding side corresponding to the embodiment shown in Figure 4. Its specific implementation can refer to the relevant description of the embodiment shown in Figure 4. In order to avoid repetition, this embodiment will not be repeated, and the same beneficial effects can still be achieved.
[0232] The point cloud encoding processing method and the point cloud decoding processing method of the embodiment of the present application are described below through two specific embodiments:
[0233] Example 1:
[0234] This embodiment is executed by the encoding end.
[0235] This embodiment proposes a frame - to - frame prediction scheme based on double thresholds. By introducing two syntax elements thrh1 (i.e., the first preset distance) and thrh2 (i.e., the second preset distance) into the parameter set (this parameter set can be an attribute parameter set APS, or an attribute data unit ADU, or other parameter sets), the constructed transform tree is further divided into three levels: the upper level, the middle level, and the lower level, and different prediction modes are adopted for the nodes in different levels. Among them, thrh1 and thrh2 are respectively the number of layers from the root node. Generally speaking, thrh1 < thrh2. Let the distance of the current node layer from the root node be lvl (i.e., the target distance).
[0236] The specific encoding method is described as follows:
[0237] Step (11): Re - order the point cloud, and construct an N - layer transform tree structure for the re - ordered point cloud data based on geometric distance. A bottom - up construction method is adopted.
[0238] During the process of constructing the transform tree, it is necessary to generate corresponding Morton code information, attribute information, and weight information for the merged nodes.
[0239] Step (12): Parse the tree from top to bottom. Start from the root node and perform up - sampling prediction and region - adaptive hierarchical transform (RAHT) layer by layer from top to bottom.
[0240] When predicting the nodes of the transform tree, two prediction methods, intra - frame prediction or inter - frame prediction, can be selected. As shown in Figure 7, the specific selection method is as follows:
[0241] 1) For the nodes in the upper layer (lvl <= thrh1): Since the nodes in the upper layer of the transform tree are larger and contain more points, even if there is movement between two frames, there will basically be no significant change in these upper - layer nodes. At this time, if inter - frame prediction is used, the inter - frame attribute prediction residual may be smaller than the intra - frame attribute prediction residual, which means that inter - frame prediction has better effect in the upper layer.
[0242] So the inter - frame prediction mode is default used in the upper layer.
[0243] 2): For the nodes in the middle layer (thrh1 < lvl <= thrh2): Some of these nodes in the middle layer may be suitable for inter - frame prediction, and some may be suitable for intra - frame prediction. This embodiment uses the rate - distortion optimization (RDO) algorithm to select the appropriate prediction technology.
[0244] The RDO algorithm determines the cost of using intra and inter prediction. If the cost of using inter prediction is lower than the cost of using intra prediction, the current node uses inter prediction mode; otherwise, intra prediction mode is used. A binary flag is also used to indicate the prediction mode used by the current node. For example, a 1 indicates inter prediction mode, while a 0 indicates intra prediction mode. The reverse is true for both.
[0245] 3) For nodes in the lower layer (lvl>thrh2): Since the lower layer blocks are small and contain fewer points, when there is a certain amount of motion between two frames, the number of points contained in each block may change greatly, which is not suitable for inter-frame prediction.
[0246] Therefore, the intra prediction mode is used by default in the lower layer.
[0247] For the upper-layer nodes in 1) and the middle-layer nodes in 2), different prediction methods need to be selected according to different reference frame data types for the inter-frame prediction used.
[0248] (a): When the reference frame data is the point cloud frame information that has been encoded and reconstructed, including attribute information and geometric information, the same bottom-up transformation tree construction operation as the current frame can be performed, and the reference frame node attribute value corresponding to the current frame node can be generated, which can be used as the inter-frame prediction value.
[0249] The specific process is as follows:
[0250] (a1): Reference frame reconstruction: Merge all points in the reference frame within a certain range of the current point into a single point, add the attributes, and use the coordinates of the current point. This allows the same prediction tree construction and parsing to be performed. The specific process is as follows:
[0251] For each point, there is a reconstructed reference point with the same coordinates. The attributes of this reference point are the sum of the attributes of the points within a certain range in the reference frame obtained according to certain rules.
[0252] The rule is: if a point in the reference frame is closer to the current point in the current frame than to the next point in the current frame by Morton code, then this point is considered for reconstruction of the current point. The attribute values are accumulated and the weight is increased by one. This continues until the condition is no longer met. The next reconstruction point is then determined.
[0253] In addition, the start and end distances are specified. If the distance is too far, it will be considered that the attribute values are too different and not suitable for reconstruction.
[0254] Only points in the reference frame whose distance to the first point of the current frame is no greater than 64 will be used for reconstruction.
[0255] Only points in the reference frame whose distance to the last point of the current frame is no more than 64 will be used for reconstruction.
[0256] (a2): Bottom-up tree construction: The bottom-up prediction tree construction operation is performed on the reconstructed reference frame and the current frame to obtain a prediction tree with the same structure, generating the attribute values and weight values of the nodes at each layer of the current frame and the corresponding predicted attribute values and weight values of the nodes at each layer of the reconstructed reference frame.
[0257] (a3): Top-down parse tree:
[0258] (a31): For upper-layer nodes, when the number of layers from the current layer to the root node is less than or equal to thrh1, the inter-frame prediction method is used:
[0259] First, determine whether the current 2*2*2 node is predicted:
[0260] If the current node is the root node, no prediction is performed, and the node's attribute information is directly subjected to RAHT transformation to obtain the DC coefficient (DC) and AC coefficient (AC). The DC coefficient prediction residual obtained is used instead of the DC coefficient obtained by direct transformation.
[0261] The DC coefficient prediction residual is: the DC coefficient of the current frame root node minus the DC coefficient of the reference frame root node. residual =DC current -DC reference
[0262] If the current node is not the root node, it is necessary to determine whether to perform prediction on the current eight child nodes. For details, refer to the description of the second step of the intra-frame RAHT technique in the GPCC codec content description. If prediction is not performed, the original attribute values are directly RAHT transformed to obtain AC coefficients, which are then quantized and entropy coded.
[0263] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0264] Then, the placeholder child nodes of each 2*2*2 node are judged: if the attribute value of the child node at the corresponding position in the reference frame is not 0 and is between 20% and 250% of the attribute value of the parent node in the current frame, the attribute value of the child node in the reference frame is used as the attribute prediction value of the child node at the corresponding position in the current frame; otherwise, the intra-frame prediction value of the current frame is used as the attribute prediction value.
[0265] Then the predicted attribute value Attr for the 2*2*2 node is obtained predictedPerform RAHT transformation to obtain the AC coefficient of the predicted value. current and the predicted AC coefficient AC predicted Subtract to get AC coefficient prediction residual AC residual , quantize and encode the residual. As shown below: AC residual =AC current -AC predicted AC peedicted =Transform(Attr peedicted ) Attr predicted =Attrpredicted_inter? Attrpredicted_inter:Attrpredicted_intra
[0266] (a32): For mid-level nodes, when the number of layers from the current layer to the root node is greater than thrh1 and less than or equal to thrh2, the RDO algorithm is used to decide whether to use inter-frame prediction or intra-frame prediction:
[0267] First, determine whether the current 2*2*2 node is predicted. For details, refer to the description of the second step of the intra-frame RAHT technique in the GPCC codec content description. If prediction is not performed, the original attribute value is directly RAHT transformed to obtain the transform coefficients, which are then quantized and entropy coded.
[0268] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0269] Then, for each 2*2*2 node, the RDO algorithm is used to determine which prediction mode to use. The specific process is as follows:
[0270] RAHT transform is performed on the inter-frame prediction value and the intra-frame prediction value respectively to obtain corresponding transform coefficients.
[0271] The inter-frame prediction residual coefficient and the intra-frame prediction residual coefficient are respectively subtracted from the true value RAHT transformation coefficient.
[0272] According to the RDO algorithm, it is determined whether to use the inter-frame prediction residual coefficient or the intra-frame prediction residual coefficient:
[0273] Cost_inter and Cost_intra are calculated using intra-frame and inter-frame residual coefficients respectively. The cost (Cost) of encoding intra-frame or inter-frame residual coefficients is obtained by the following formula: Cost = D + λ * R
[0274] Where D (distortion) is the sum of absolute errors (SAD) between the reconstructed attribute and the original attribute obtained after using the prediction residual coefficient (other methods can also be used).
[0275] R (rate: bit rate) is the number of bits required to encode the prediction residual coefficient.
[0276] The value of λ depends on QP and is calculated as follows: (Other formulas are also possible) λ^2=0.85*2^((QP-4) / 3)
[0277] If Cost_inter is less than Cost_intra, inter-frame prediction residual is used, otherwise intra-frame prediction residual is used. A flag is used to mark this. For example, 1 indicates the use of inter-frame prediction residual, and 0 indicates the use of intra-frame prediction residual. Vice versa.
[0278] The determined AC residual coefficients are quantized and entropy coded.
[0279] (a33): For lower-layer nodes, when the number of layers from the current layer to the root node is greater than thrh2, the intra-frame prediction method is used:
[0280] First, determine whether the current 2*2*2 node is predicted. For details, refer to the description of the second step of the intra-frame RAHT technique in the GPCC codec content description. If prediction is not performed, the original attribute value is directly RAHT transformed to obtain the transform coefficients, which are then quantized and entropy coded.
[0281] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0282] Then, the intra-frame prediction value is used as the attribute prediction value, and the original attribute value and the intra-frame attribute prediction value are subjected to RAHT transformation and difference, and the residual is quantized and entropy coded.
[0283] (b): When the reference frame data is the reconstructed transform coefficient of an already encoded and completed point cloud frame, the transform coefficient can be directly used as the transform coefficient for inter-frame prediction and compared with the transform coefficient of the intra-frame prediction attribute value in the current frame node.
[0284] The specific encoding method is as follows:
[0285] (b1): For upper-layer nodes, when the number of layers from the current layer to the root node is less than or equal to thrh1, the inter-frame prediction method is used:
[0286] Perform RAHT transformation on the attribute information of the current node to obtain the transformation coefficient, and then determine whether there is a transformation coefficient of a reference node with the same position as the current node to be encoded in the reference frame. If so, use the transformation coefficient as the inter-frame prediction value of the transformation coefficient, and subtract it from the transformation coefficient of the current node in the current frame to obtain the transformation residual coefficient for subsequent quantization and entropy coding.
[0287] (b2): For mid-level nodes, when the number of layers from the current layer to the root node is greater than thrh1 and less than or equal to thrh2, the RDO algorithm is used to decide whether to use inter-frame prediction or intra-frame prediction:
[0288] First, determine whether the current 2*2*2 node is predicted: For details, please refer to the description of the second step of the intra-frame RAHT technology in the content description of GPCC codec. If no prediction is performed, the original attribute value is directly RAHT transformed to obtain the transformation coefficient, and the transformation coefficient is quantized and entropy coded.
[0289] If it is determined to perform prediction, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the related method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0290] Then, for each 2*2*2 node, the RDO algorithm is used to determine which prediction mode to use. The specific process is as follows:
[0291] The original attribute value and the intra-frame prediction value of the current node are transformed respectively to obtain the corresponding transformation coefficients, and the difference is used to obtain the intra-frame prediction residual coefficient.
[0292] If there is a transform coefficient at the same position as the current node in the reference frame, it is used as the inter-frame prediction value of the transform coefficient and the difference between it and the actual RAHT transform coefficient of the current node is used to obtain the inter-frame prediction residual coefficient. If it does not exist, the intra-frame prediction residual coefficient is directly used and subsequently quantized and entropy encoded.
[0293] According to the RDO algorithm, it is determined whether to use the inter-frame prediction residual coefficient or the intra-frame prediction residual coefficient:
[0294] Cost_inter and Cost_intra are calculated using intra-frame and inter-frame residual coefficients respectively. The cost (Cost) of encoding intra-frame or inter-frame residual coefficients is obtained by the following formula: Cost = D + λ * R
[0295] Where D (distortion) is the sum of absolute errors (SAD) between the reconstructed attribute and the original attribute obtained after using the prediction residual coefficient (other methods can also be used).
[0296] R (rate: bit rate) is the number of bits required to encode the prediction residual coefficient.
[0297] The value of λ depends on QP and is calculated as follows: (other formulas are also possible)
[0298] If Cost_inter is less than Cost_intra, inter-frame prediction residual is used, otherwise intra-frame prediction residual is used. A flag is used to mark this. For example, 1 indicates the use of inter-frame prediction residual, and 0 indicates the use of intra-frame prediction residual. Vice versa.
[0299] The determined AC residual coefficients are quantized and entropy coded.
[0300] (b3): For lower-layer nodes, when the number of layers from the current layer to the root node is greater than thrh2, the intra-frame prediction method is used (the same as the encoding method of the lower-layer nodes in (a3)):
[0301] First, determine whether the current 2*2*2 node is predicted. For details, refer to the description of the second step of the intra-frame RAHT technique in the GPCC codec content description. If prediction is not performed, the original attribute value is directly RAHT transformed to obtain the transform coefficients, which are then quantized and entropy coded.
[0302] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0303] Then, the intra-frame prediction value is used as the attribute prediction value, and the original attribute value and the intra-frame attribute prediction value are subjected to RAHT transformation and difference, and the residual is quantized and entropy coded.
[0304] Example 2:
[0305] This embodiment is executed by the decoding end.
[0306] Step (21): First, decode the input code stream to obtain syntax elements thrh1 and thrh2.
[0307] The quantized transform coefficients or coefficient residuals are entropy decoded and dequantized from the input bitstream to obtain the reconstructed transform coefficients or transform residual coefficients. The prediction mode flag used by the middle-level node is decoded from the input bitstream.
[0308] Since attribute decoding comes after geometric decoding, the reconstructed position coordinates of each point are already obtained when decoding the attribute information.
[0309] Step (22): Reorder the point cloud, and construct an N-layer transform tree structure for the reordered point cloud data based on geometric distance. Adopt a bottom-up construction method.
[0310] Step (23): Parse the tree from top to bottom. Starting from the root node, perform upsampling prediction and RAHT inverse transformation layer by layer from top to bottom to obtain the reconstructed attribute values of the nodes.
[0311] When predicting the nodes of the transform tree, two prediction methods, intra-frame prediction or inter-frame prediction, can be selected. As shown in Figure 8, the specific selection method is as follows:
[0312] 1) For the nodes in the upper layer (lvl <= thrh1):
[0313] By default, use the inter-frame prediction mode.
[0314] 2): For the nodes in the middle layer (thrh1 < lvl <= thrh2): Determine whether to use intra-frame prediction or inter-frame prediction according to the flag bit of the predicted mode obtained by decoding.
[0315] Obtain the corresponding predicted value according to the flag and add it to the residual transform coefficient obtained by decoding and reconstructing to obtain the reconstructed transform coefficient.
[0316] 3) For the nodes in the lower layer (lvl > thrh2): Since the lower layer has small blocks and contains fewer points, when there is a certain movement between two frames, the number of points contained in each block may change greatly, and it is not suitable to use inter-frame prediction.
[0317] Therefore, by default, use the intra-frame prediction mode in the lower layer.
[0318] Among them, for the upper-layer nodes in 1) and the middle-layer nodes in 2), different prediction methods need to be selected according to the different types of reference frame data for the inter-frame prediction used.
[0319] (a): When the reference frame data is the point cloud frame information that has been encoded and reconstructed, including attribute information and geometric information, the same bottom-up operation of constructing a transform tree can be performed with the current frame, and the attribute values of the reference frame nodes corresponding to the nodes of the current frame can be generated, which can be used as the inter-frame prediction value. The specific process has been introduced at the encoding end and will not be elaborated here. <##
[0320] When the inter-frame prediction value is obtained, add it to the transform residual coefficient obtained by decoding to obtain the reconstructed transform coefficient, perform RAHT inverse transformation, and obtain the attribute reconstruction value of each sub-node.
[0321] (a1): For the upper-layer nodes, when the number of layers of the current layer from the root node is less than or equal to thrh1, use the inter-frame prediction method:
[0322] First, determine whether the current 2*2*2 node is predicted:
[0323] If the current node is the root node, the DC coefficient of the current frame is obtained by adding the DC coefficient residual of the root node to the DC coefficient residual of the reference frame root node. The AC coefficient reconstructed by the root node is used, and then the RAHT inverse transform is performed to obtain the attribute reconstruction value of each child node;
[0324] If the current node is not the root node, it is necessary to determine whether to predict the current eight child nodes: for details, please refer to the description of the second step of the intra-frame RAHT technology in the content description of GPCC codec.
[0325] If no prediction is performed, the DC coefficient directly inherits the attribute reconstruction value of the parent node, and the AC coefficient reconstructed by the current node is used to perform RAHT inverse transformation to obtain the attribute reconstruction value of each child node;
[0326] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0327] Then, the placeholder child nodes of each 2*2*2 node are judged: if the attribute value of the child node at the corresponding position in the reference frame is not 0 and is between 20% and 250% of the attribute value of the parent node in the current frame, the attribute value of the child node in the reference frame is used as the attribute prediction value of the child node at the corresponding position in the current frame; otherwise, the intra-frame prediction value of the current frame is used as the attribute prediction value.
[0328] The attribute prediction value obtained for the 2*2*2 node is then subjected to a RAHT transform to obtain the AC coefficient of the attribute prediction value. The DC coefficient inherits the attribute reconstruction value of the parent node, and the AC coefficient is the residual of the reconstructed AC coefficient plus the AC coefficient of the attribute prediction value. The RAHT inverse transform is then performed to obtain the attribute reconstruction value of each child node.
[0329] (a2): For mid-level nodes, when the number of layers from the current layer to the root node is greater than thrh1 and less than or equal to thrh2, the flag is used to determine whether to use inter-frame prediction or intra-frame prediction:
[0330] First, determine whether the current 2*2*2 node is predicted: for details, please refer to the description of the second step of the intra-frame RAHT technology in the content description of GPCC codec.
[0331] If no prediction is performed, the DC coefficient directly inherits the attribute reconstruction value of the parent node, and the AC coefficient reconstructed by the current node is used to perform RAHT inverse transformation to obtain the attribute reconstruction value of each child node;
[0332] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0333] Determine whether intra-frame or inter-frame prediction mode is currently used based on the flag.
[0334] RAHT transform is performed on the inter-frame prediction value and the intra-frame prediction value respectively to obtain the corresponding AC coefficients.
[0335] The DC coefficient inherits the attribute reconstruction value of the parent node, and the AC coefficient is the reconstructed AC coefficient residual plus the AC coefficient corresponding to the flag. Then, the RAHT inverse transform is performed to obtain the attribute reconstruction value of each child node.
[0336] (a3): For lower-layer nodes, when the number of layers from the current layer to the root node is greater than thrh2, the intra-frame prediction method is used:
[0337] First, determine whether the current 2*2*2 node is predicted: for details, please refer to the description of the second step of the intra-frame RAHT technology in the content description of GPCC codec.
[0338] If no prediction is performed, the DC coefficient directly inherits the attribute reconstruction value of the parent node, and the AC coefficient reconstructed by the current node is used to perform RAHT inverse transformation to obtain the attribute reconstruction value of each child node;
[0339] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0340] Then, the intra-frame attribute prediction value obtained from the 2*2*2 node is subjected to RAHT transformation to obtain the AC coefficient of the attribute prediction value.
[0341] The DC coefficient inherits the attribute reconstruction value of the parent node, and the AC coefficient is the reconstructed AC coefficient residual plus the AC coefficient of the attribute prediction value. Then, the RAHT inverse transform is performed to obtain the attribute reconstruction value of each child node.
[0342] (b): When the reference frame data is the reconstructed transform coefficient of an already encoded and completed point cloud frame, the transform coefficient can be directly used as the transform coefficient for inter-frame prediction and compared with the transform coefficient of the intra-frame prediction attribute value in the current frame node.
[0343] (b1): For upper-layer nodes, when the number of layers from the current layer to the root node is less than or equal to thrh1, the inter-frame prediction method is used
[0344] Determine whether there is a transform coefficient of a reference node with the same position as the current node to be encoded in the reference frame. If so, use the transform coefficient as the inter-frame prediction value of the transform coefficient, and sum it with the reconstructed transform residual coefficient obtained by decoding to obtain the reconstructed transform coefficient of the current node, perform RAHT inverse transform, and obtain the attribute reconstruction value of each child node.
[0345] If it does not exist, the decoded reconstruction transform coefficients are directly subjected to RAHT inverse transformation to obtain the attribute reconstruction value of each child node.
[0346] (b2): For mid-level nodes, when the number of layers from the current layer to the root node is greater than thrh1 and less than or equal to thrh2, the flag is used to determine whether to use inter-frame prediction or intra-frame prediction:
[0347] First, determine whether the current 2*2*2 node is predicted: for details, please refer to the description of the second step of the intra-frame RAHT technology in the content description of GPCC codec.
[0348] If no prediction is performed, the DC coefficient directly inherits the attribute reconstruction value of the parent node, and the AC coefficient reconstructed by the current node is used to perform RAHT inverse transformation to obtain the attribute reconstruction value of each child node;
[0349] If the current 2*2*2 node is determined to be predicted, the intra-frame attribute prediction value of each placeholder sub-node of the current 2*2*2 node is obtained by using the relevant method of the third step weighted prediction of the intra-frame RAHT technology in the content description part of the GPCC codec.
[0350] 1. Transform coefficients of intra-frame prediction obtained by transforming the intra-frame prediction value.
[0351] 2. Determine whether there is a transform coefficient at the same position as the current node in the reference frame. If not, directly use the intra-frame prediction coefficient and sum it with the decoded reconstructed transform residual coefficient to obtain the reconstructed transform coefficient of the current node. Perform RAHT inverse transform to obtain the attribute reconstruction value of each child node.
[0352] 3. If it exists, determine whether the current prediction mode is intra-frame or inter-frame based on the flag. Get the predicted transform coefficient based on the flag, sum it with the decoded reconstruction transform residual coefficient to get the reconstructed transform coefficient of the current node, and perform the RAHT inverse transform to obtain the attribute reconstruction value of each child node.
[0353] (b3): For lower-layer nodes, when the number of layers from the current layer to the root node is greater than thrh2, the intra-frame prediction method is used, which is the same as the lower-layer decoding method in (a3) and will not be repeated here.
[0354] At this point, attribute decoding is complete.
[0355] This embodiment proposes a dual-threshold inter-frame prediction method that divides the octree into three levels: upper, middle, and lower. Different prediction methods are used for different levels based on the characteristics of the nodes at different levels. In particular, for nodes in the middle level, the RDO algorithm is used to determine whether the current node is using the intra-frame or inter-frame prediction method. At the same time, the two set thresholds and flag bits need to be transmitted in the bitstream. The three-layer structure of this embodiment is more flexible and has higher coding efficiency.
[0356] Compared with the existing technology, this embodiment is more flexible. Taking into account that some nodes in the middle layer are more suitable for the inter-frame prediction method, a double threshold is used to divide the octree into three levels. For the nodes in the middle layer, the RDO algorithm is used to determine whether to adopt the inter-frame prediction mode, and a flag is used to mark it. This is more flexible and can reduce the bit rate and improve the coding efficiency.
[0357] It should be noted that the point cloud coding processing method provided in the embodiments of the present application can be executed by a point cloud coding processing device, or a control module in the point cloud coding processing device for executing the point cloud coding processing method. In the embodiments of the present application, the point cloud coding processing device provided in the embodiments of the present application is described by taking the point cloud coding processing method executed by the point cloud coding processing device as an example.
[0358] Please refer to FIG9 , which is a structural diagram of a point cloud coding processing device provided in an embodiment of the present application. As shown in FIG9 , the point cloud coding processing device 300 includes:
[0359] The first determination module 301 is used to determine the target distance between the target layer and the root node of the transformation tree corresponding to the point cloud to be encoded;
[0360] A second determining module 302 is configured to determine a target prediction residual value based on the target distance;
[0361] An encoding module 303 is configured to encode the target prediction residual value to obtain a first encoding result;
[0362] The code stream of the point cloud to be encoded includes the first encoding result;
[0363] In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0364] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0365] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0366] Optionally, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
[0367] Optionally, the second determining module includes:
[0368] A first determining unit is configured to determine an inter-frame residual coefficient and an intra-frame residual coefficient of the attribute information of the node of the target layer when the target distance is greater than the first preset distance and less than or equal to the second preset distance;
[0369] a second determining unit, configured to determine, based on a rate-distortion optimization algorithm, a first generation value corresponding to the inter-frame residual coefficient and a second generation value corresponding to the intra-frame residual coefficient;
[0370] a third determining unit, configured to determine a second prediction residual value based on the first generation value and the second generation value;
[0371] The target prediction residual value includes the second prediction residual value.
[0372] Optionally, when the first generation value is less than the second generation value, the second prediction residual value is the inter-frame residual coefficient; or,
[0373] In the case where the second generation value is less than the first generation value, the second prediction residual value is the intra-frame residual coefficient; or
[0374] When the first generation value is equal to the second generation value, the second prediction residual value is the inter-frame residual coefficient or the intra-frame residual coefficient.
[0375] Optionally, the code stream of the point cloud to be encoded further includes a second encoding result, and the second encoding result is used to represent that the second prediction residual value is the intra-frame residual coefficient or the second prediction residual value is the inter-frame residual coefficient.
[0376] Optionally, the first determining unit includes:
[0377] a determination subunit, configured to determine, when a data type of the reference frame data of the to-be-encoded point cloud is a first data type, an inter-frame prediction value of the attribute information of the node of the target layer, and perform a transformation process on the inter-frame prediction value to obtain an inter-frame transformation coefficient;
[0378] The acquisition subunit is configured to acquire an inter-frame residual coefficient based on the inter-frame transform coefficient.
[0379] Optionally, the first determining unit is further configured to:
[0380] Reconstructing the points in the reference frame corresponding to the point cloud to be encoded;
[0381] Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree;
[0382] The determining subunit is specifically configured to:
[0383] An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
[0384] Optionally, the reference frame data of the first data type is encoded and reconstructed point cloud frame data.
[0385] Optionally, when the data type of the reference frame data of the to-be-encoded point cloud is the second data type, the first determining unit is specifically configured to:
[0386] If there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be encoded, the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node;
[0387] An inter-frame residual coefficient of the attribute information of the node is determined based on the transformation coefficient of the node and the inter-frame transformation coefficient of the attribute information of the node.
[0388] Optionally, the reference frame data of the second data type is the reconstructed transformation coefficients of the encoded point cloud frame.
[0389] Optionally, the code stream of the point cloud to be encoded further includes a third encoding result, and the third encoding result is an encoding result of at least one of the first preset distance and the second preset distance.
[0390] The point cloud coding processing device in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The device or electronic device can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal can include but is not limited to the types of terminals listed above, and the non-mobile terminal can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0391] The point cloud coding processing device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 5 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0392] It should be noted that the point cloud decoding processing method provided in the embodiments of the present application can be executed by a point cloud decoding processing device, or a control module in the point cloud decoding processing device for executing the point cloud decoding processing method. In the embodiments of the present application, the point cloud decoding processing device provided in the embodiments of the present application is described using the method for executing point cloud decoding processing by the point cloud decoding processing device as an example.
[0393] Please refer to FIG10 , which is a structural diagram of a point cloud decoding processing device provided in an embodiment of the present application. As shown in FIG10 , the point cloud decoding processing device 400 includes:
[0394] A determination module 401 is configured to determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be decoded;
[0395] A decoding module 402 is configured to decode a first encoding result in a code stream of a point cloud to be decoded to obtain a target prediction residual value;
[0396] An acquisition module 403 is configured to acquire attribute information of the node of the target layer based on the target prediction residual value and the target distance;
[0397] Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0398] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0399] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0400] Optionally, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
[0401] Optionally, the target prediction residual value includes the second prediction residual value, the code stream of the point cloud to be decoded further includes a second encoding result, and the second encoding result is used to represent that the second prediction residual value is an intra-frame residual coefficient or the second prediction residual value is an inter-frame residual coefficient; the acquisition module includes:
[0402] A decoding unit, configured to decode the second encoding result when the target distance is greater than the first preset distance and less than or equal to a second preset distance;
[0403] a determining unit for determining, when determining that the second encoding result represents that the second prediction residual value is an intra-frame residual coefficient, attribute information of the node of the target layer based on the intra-frame transform coefficient of the node of the target layer and the second prediction residual value; or
[0404] When it is determined that the second encoding result represents that the second prediction residual value is an inter-frame residual coefficient, the attribute information of the node of the target layer is determined based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value.
[0405] Optionally, the determining unit includes:
[0406] A first determining subunit is configured to determine, when a data type of the reference frame data of the to-be-decoded point cloud is a first data type, an inter-frame prediction value of the attribute information of the node of the target layer, and perform a transform process on the inter-frame prediction value to obtain an inter-frame transform coefficient;
[0407] The second determining subunit is used to determine the attribute information of the node of the target layer based on the inter-frame transform coefficient and the second prediction residual value.
[0408] Optionally, the determining unit is further configured to:
[0409] Reconstructing the points in the reference frame corresponding to the point cloud to be decoded;
[0410] Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree;
[0411] The first determining subunit is specifically configured to:
[0412] An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
[0413] Optionally, the reference frame data of the first data type is decoded and reconstructed point cloud frame data.
[0414] Optionally, when the data type of the reference frame data of the to-be-decoded point cloud is the second data type, when determining that the second encoding result represents that the second prediction residual value is an inter-frame residual coefficient, the determining unit is specifically configured to:
[0415] If it is determined that there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be decoded, then the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node;
[0416] The attribute information of the node is obtained based on the second prediction residual value and the inter-frame transform coefficient of the attribute information of the node.
[0417] Optionally, the reference frame data of the second data type is the reconstructed transformation coefficients of the decoded point cloud frame.
[0418] Optionally, the code stream of the point cloud to be decoded further includes a third encoding result, and the decoding module is further configured to:
[0419] The third encoding result is decoded to obtain at least one of the first preset distance and the second preset distance.
[0420] The point cloud decoding processing device in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The device or electronic device can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal can include but is not limited to the types of terminals listed above, and the non-mobile terminal can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0421] The point cloud decoding processing device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 6 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0422] Optionally, as shown in FIG11 , an embodiment of the present application further provides a communication device 500, comprising a processor 501 and a memory 502. The memory 502 stores a program or instruction that can be run on the processor 501. For example, when the communication device 500 is an encoding end device, the program or instruction, when executed by the processor 501, implements the various steps of the above-mentioned point cloud encoding processing method embodiment and can achieve the same technical effect. When the communication device 500 is a decoding end device, the program or instruction, when executed by the processor 501, implements the various steps of the above-mentioned point cloud decoding processing method embodiment and can achieve the same technical effect. To avoid repetition, they are not described here.
[0423] The present application also provides a terminal including a processor and a communication interface, the processor configured to: determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be encoded; determine a target prediction residual value based on the target distance; and encode the target prediction residual value to obtain a first encoding result; wherein the code stream of the point cloud to be encoded includes the first encoding result; when the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or when the target distance is greater than the first preset distance and less than or equal to a second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or when the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer. This terminal embodiment corresponds to the above-mentioned point cloud coding processing method embodiment, and each implementation process and implementation method of the above-mentioned point cloud coding processing method embodiment can be applied to this terminal embodiment and can achieve the same technical effect.
[0424] The present application also provides a terminal including a processor and a communication interface, wherein the processor is configured to: determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be decoded; decode a first encoding result in a bitstream of the point cloud to be decoded to obtain a target prediction residual value; and obtain attribute information of the node of the target layer based on the target prediction residual value and the target distance; wherein, when the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or when the target distance is greater than the first preset distance and less than or equal to a second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or when the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer. This terminal embodiment corresponds to the above-mentioned point cloud decoding processing method embodiment, and each implementation process and implementation method of the above-mentioned point cloud decoding processing method embodiment can be applied to this terminal embodiment and can achieve the same technical effect.
[0425] Specifically, FIG12 is a schematic diagram of the hardware structure of a terminal implementing an embodiment of the present application.
[0426] The terminal 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609 and at least some of the components of the processor 610.
[0427] Those skilled in the art will appreciate that the terminal 600 may also include a power supply (such as a battery) to power various components. The power supply may be logically connected to the processor 610 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The terminal structure shown in FIG12 does not limit the terminal. The terminal may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.
[0428] It should be understood that in an embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0429] In the embodiment of the present application, after receiving downlink data from a network-side device, the radio frequency unit 601 may transmit the data to the processor 610 for processing. Furthermore, the radio frequency unit 601 may send uplink data to the network-side device. Typically, the radio frequency unit 601 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.
[0430] The memory 609 can be used to store software programs or instructions and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. 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 a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory x09 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0431] Processor 610 may include one or more processing units. Optionally, processor 610 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 610.
[0432] Wherein, when the terminal is an encoding terminal:
[0433] The processor 610 is configured to:
[0434] Determine the target distance between the target layer and the root node of the transformation tree corresponding to the point cloud to be encoded;
[0435] determining a target prediction residual value based on the target distance;
[0436] Encoding the target prediction residual value to obtain a first encoding result;
[0437] The code stream of the point cloud to be encoded includes the first encoding result;
[0438] In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0439] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0440] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0441] Optionally, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
[0442] Optionally, the processor 610 is specifically configured to:
[0443] When the target distance is greater than the first preset distance and less than or equal to the second preset distance, determining an inter-frame residual coefficient and an intra-frame residual coefficient of the attribute information of the node of the target layer;
[0444] Determining, based on a rate-distortion optimization algorithm, a first generation value corresponding to the inter-frame residual coefficient and a second generation value corresponding to the intra-frame residual coefficient;
[0445] determining a second prediction residual value based on the first generation value and the second generation value;
[0446] The target prediction residual value includes the second prediction residual value.
[0447] Optionally, when the first generation value is less than the second generation value, the second prediction residual value is the inter-frame residual coefficient; or,
[0448] In the case where the second generation value is less than the first generation value, the second prediction residual value is the intra-frame residual coefficient; or
[0449] When the first generation value is equal to the second generation value, the second prediction residual value is the inter-frame residual coefficient or the intra-frame residual coefficient.
[0450] Optionally, the code stream of the point cloud to be encoded further includes a second encoding result, and the second encoding result is used to represent that the second prediction residual value is the intra-frame residual coefficient or the second prediction residual value is the inter-frame residual coefficient.
[0451] Optionally, when the data type of the reference frame data of the to-be-encoded point cloud is the first data type, the processor 610 is specifically configured to:
[0452] Determining an inter-frame prediction value of the attribute information of the node of the target layer, and performing a transform process on the inter-frame prediction value to obtain an inter-frame transform coefficient;
[0453] An inter-frame residual coefficient is obtained based on the inter-frame transform coefficient.
[0454] Optionally, the processor 610 is further configured to:
[0455] Reconstructing the points in the reference frame corresponding to the point cloud to be encoded;
[0456] Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree;
[0457] An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
[0458] Optionally, the reference frame data of the first data type is encoded and reconstructed point cloud frame data.
[0459] Optionally, when the data type of the reference frame data of the to-be-encoded point cloud is the second data type, the processor 610 is specifically configured to:
[0460] If there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be encoded, the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node;
[0461] An inter-frame residual coefficient of the attribute information of the node is determined based on the transformation coefficient of the node and the inter-frame transformation coefficient of the attribute information of the node.
[0462] Optionally, the reference frame data of the second data type is the reconstructed transformation coefficients of the encoded point cloud frame.
[0463] Optionally, the code stream of the point cloud to be encoded further includes a third encoding result, and the third encoding result is an encoding result of at least one of the first preset distance and the second preset distance.
[0464] Wherein, when the terminal is a decoding terminal:
[0465] The processor 610 is configured to:
[0466] Determine the target distance between the target layer and the root node of the transform tree corresponding to the point cloud to be decoded;
[0467] Decoding the first encoding result in the code stream of the point cloud to be decoded to obtain a target prediction residual value;
[0468] Acquire attribute information of the node of the target layer based on the target prediction residual value and the target distance;
[0469] Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or
[0470] In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or
[0471] When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
[0472] Optionally, when the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
[0473] Optionally, the target prediction residual value includes the second prediction residual value, and the code stream of the point cloud to be decoded further includes a second encoding result, where the second encoding result is used to represent that the second prediction residual value is an intra-frame residual coefficient or the second prediction residual value is an inter-frame residual coefficient; the processor 610 is specifically configured to:
[0474] When the target distance is greater than the first preset distance and less than or equal to the second preset distance, decoding the second encoding result;
[0475] In a case where it is determined that the second encoding result represents that the second prediction residual value is an intra-frame residual coefficient, determining the attribute information of the node of the target layer based on the intra-frame transform coefficient of the node of the target layer and the second prediction residual value; or
[0476] When it is determined that the second encoding result represents that the second prediction residual value is an inter-frame residual coefficient, the attribute information of the node of the target layer is determined based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value.
[0477] Optionally, when the data type of the reference frame data of the to-be-decoded point cloud is the first data type, the processor 610 is specifically configured to:
[0478] Determining an inter-frame prediction value of the attribute information of the node of the target layer, and performing a transform process on the inter-frame prediction value to obtain an inter-frame transform coefficient;
[0479] Attribute information of the node of the target layer is determined based on the inter-frame transform coefficient and the second prediction residual value.
[0480] Optionally, the processor 610 is further configured to:
[0481] Reconstructing the points in the reference frame corresponding to the point cloud to be decoded;
[0482] Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transform tree;
[0483] An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
[0484] Optionally, the reference frame data of the first data type is decoded and reconstructed point cloud frame data.
[0485] Optionally, when the data type of the reference frame data of the to-be-decoded point cloud is the second data type, the processor 610 is specifically configured to:
[0486] If it is determined that there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be decoded, then the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node;
[0487] The attribute information of the node is obtained based on the second prediction residual value and the inter-frame transform coefficient of the attribute information of the node.
[0488] Optionally, the reference frame data of the second data type is the reconstructed transformation coefficients of the decoded point cloud frame.
[0489] Optionally, the code stream of the point cloud to be decoded further includes a third encoding result, and the processor 610 is further configured to:
[0490] The third encoding result is decoded to obtain at least one of the first preset distance and the second preset distance.
[0491] The embodiments of the present application can improve coding efficiency.
[0492] Specifically, the terminal of the embodiment of the present application also includes: instructions or programs stored in the memory 609 and executable on the processor 610. The processor 610 calls the instructions or programs in the memory 609 to execute the methods of the modules shown in FIG9 or FIG10 and achieve the same technical effect. To avoid repetition, it will not be described here.
[0493] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned point cloud encoding processing method embodiment are implemented, or when the program or instruction is executed by a processor, the various processes of the above-mentioned point cloud decoding processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0494] The processor is the processor in the terminal described in 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. In some examples, the readable storage medium may be a non-transitory readable storage medium.
[0495] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned point cloud encoding processing method embodiment, or to implement the various processes of the above-mentioned point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0496] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0497] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned point cloud encoding processing method or point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0498] An embodiment of the present application also provides a coding and decoding system, including: an encoding end device and a decoding end device, wherein the encoding end device can be used to execute the steps of the point cloud encoding processing method as described above, and the decoding end device can be used to execute the steps of the point cloud decoding processing method as described above.
[0499] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0500] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general-purpose hardware platform, or of course, by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes a number of instructions for enabling a terminal or network-side device to execute the methods described in each embodiment of the present application.
[0501] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.
Claims
1. A point cloud coding processing method, executed by an encoding end, comprising: Determine the target distance between the target layer and the root node of the transform tree corresponding to the point cloud to be encoded; Determining a target prediction residual value based on the target distance; Encoding the target prediction residual value to obtain a first encoding result; The code stream of the point cloud to be encoded includes the first encoding result; In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
2. The method according to claim 1, wherein: When the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
3. The method according to claim 1 or 2, wherein: The determining of the target prediction residual value based on the target distance includes: When the target distance is greater than the first preset distance and less than or equal to the second preset distance, determine the inter-frame residual coefficient and the intra-frame residual coefficient of the attribute information of the node of the target layer; Determine a first generation value corresponding to the inter-frame residual coefficient and a second generation value corresponding to the intra-frame residual coefficient based on a rate-distortion optimization algorithm; determining a second prediction residual value based on the first generation value and the second generation value; Among them, the target prediction residual value includes the second prediction residual value.
4. The method according to claim 3, wherein: When the first generation value is less than the second generation value, the second prediction residual value is the inter-frame residual coefficient; or, When the second generation value is less than the first generation value, the second prediction residual value is the intra-frame residual coefficient; or, When the first generation value is equal to the second generation value, the second prediction residual value is the inter-frame residual coefficient or the intra-frame residual coefficient.
5. The method according to claim 3 or 4, wherein: The code stream of the point cloud to be encoded also includes a second encoding result, and the second encoding result is used to represent that the second prediction residual value is the intra-frame residual coefficient or the second prediction residual value is the inter-frame residual coefficient.
6. The method according to any one of claims 3 to 5, wherein: In a case where the data type of the reference frame data of the to-be-encoded point cloud is the first data type, the inter-frame residual coefficients of the attribute information of the nodes of the target layer are determined, including: Determine an inter-frame prediction value of the attribute information of the node of the target layer, and transform the inter-frame prediction value to obtain an inter-frame transformation coefficient; An inter-frame residual coefficient is obtained based on the inter-frame transform coefficient.
7. The method according to claim 6, wherein: Before determining the inter-frame prediction value of the attribute information of the node of the target layer, the method further includes: Reconstructing points in a reference frame corresponding to the point cloud to be encoded; Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transformation tree; The determining the inter-frame prediction value of the attribute information of the node of the target layer includes: An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
8. The method according to claim 6 or 7, wherein: The reference frame data of the first data type is encoded and reconstructed point cloud frame data.
9. The method according to any one of claims 3 to 5, wherein: In a case where the data type of the reference frame data of the to-be-encoded point cloud is the second data type, the inter-frame residual coefficients of the attribute information of the node of the target layer are determined, including: If there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be encoded, the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node; An inter-frame residual coefficient of the attribute information of the node is determined based on the transformation coefficient of the node and the inter-frame transformation coefficient of the attribute information of the node.
10. The method according to claim 9, wherein: The reference frame data of the second data type is the reconstructed transformation coefficients of the encoded point cloud frame.
11. The method according to any one of claims 1 to 10, wherein: The code stream of the point cloud to be encoded also includes a third encoding result, and the third encoding result is an encoding result of at least one of the first preset distance and the second preset distance.
12. A point cloud decoding processing method, executed by a decoding end, comprising: Determine the target distance between the target layer and the root node of the transform tree corresponding to the point cloud to be decoded; Decode the first encoding result in the bitstream of the point cloud to be decoded to obtain a target prediction residual value; Acquire attribute information of nodes in the target layer based on the target prediction residual value and the target distance; Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or In the case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
13. The method according to claim 12, wherein: When the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by predicting the attribute information of the node of the target layer based on a rate-distortion optimization algorithm.
14. The method according to claim 12 or 13, wherein: The target prediction residual value includes the second prediction residual value, and the code stream of the point cloud to be decoded also includes a second encoding result, where the second encoding result is used to represent that the second prediction residual value is an intra-frame residual coefficient or the second prediction residual value is an inter-frame residual coefficient; The acquiring the attribute information of the node of the target layer based on the target prediction residual value and the target distance includes: When the target distance is greater than the first preset distance and less than or equal to the second preset distance, decoding the second encoding result; In the case where it is determined that the second encoding result represents that the second prediction residual value is an intra-frame residual coefficient, determining the attribute information of the node of the target layer based on the intra-frame transform coefficient of the node of the target layer and the second prediction residual value; or When it is determined that the second encoding result represents that the second prediction residual value is an inter-frame residual coefficient, attribute information of the node of the target layer is determined based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value.
15. The method according to claim 14, wherein: In a case where the data type of the reference frame data of the to-be-decoded point cloud is the first data type, determining the attribute information of the node of the target layer based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value includes: Determine an inter-frame prediction value of the attribute information of the node of the target layer, and transform the inter-frame prediction value to obtain an inter-frame transformation coefficient; The attribute information of the node of the target layer is determined based on the inter-frame transform coefficient and the second prediction residual value.
16. The method according to claim 15, wherein: Before determining the inter-frame prediction value of the attribute information of the node of the target layer, the method further includes: Reconstructing points in a reference frame corresponding to the point cloud to be decoded; Constructing a prediction tree based on the reconstructed reference frame, wherein the tree structure of the prediction tree is the same as the tree structure of the transformation tree; The determining the inter-frame prediction value of the attribute information of the node of the target layer includes: An inter-frame prediction value of attribute information of a node of the target layer is determined based on the prediction tree and the transform tree.
17. The method according to claim 15 or 16, wherein: The reference frame data of the first data type is decoded and reconstructed point cloud frame data.
18. The method according to claim 14, wherein: In a case where the data type of the reference frame data of the point cloud to be decoded is the second data type, determining the attribute information of the node of the target layer based on the inter-frame transform coefficient of the node of the target layer and the second prediction residual value includes: If it is determined that there is a transformation coefficient of a reference node having the same position as the node of the target layer in the reference frame of the point cloud to be decoded, the transformation coefficient of the reference node having the same position is determined as the inter-frame transformation coefficient of the attribute information of the node; The attribute information of the node is obtained based on the second prediction residual value and the inter-frame transform coefficient of the attribute information of the node.
19. The method according to claim 18, wherein: The reference frame data of the second data type is the reconstructed transform coefficients of the decoded point cloud frame.
20. The method according to any one of claims 12 to 19, wherein: The code stream of the point cloud to be decoded further includes a third encoding result, and the method further includes: The third encoding result is decoded to obtain at least one of the first preset distance and the second preset distance.
21. A point cloud coding processing device, comprising: A first determination module is used to determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be encoded; A second determination module, used to determine a target prediction residual value based on the target distance; An encoding module, used for encoding the target prediction residual value to obtain a first encoding result; The code stream of the point cloud to be encoded includes the first encoding result; In a case where the target distance is less than or equal to a first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
22. A point cloud decoding processing device, comprising: A determination module, used to determine a target distance between a target layer and a root node of a transform tree corresponding to a point cloud to be decoded; A decoding module, used for decoding a first encoding result in a bit stream of a point cloud to be decoded to obtain a target prediction residual value; An acquisition module, used for acquiring attribute information of the nodes of the target layer based on the target prediction residual value and the target distance; Wherein, when the target distance is less than or equal to the first preset distance, the target prediction residual value includes a first prediction residual value obtained by performing inter-frame prediction on the attribute information of the node of the target layer; or In a case where the target distance is greater than the first preset distance and less than or equal to the second preset distance, the target prediction residual value includes a second prediction residual value obtained by performing prediction processing on the attribute information of the node of the target layer; or When the target distance is greater than the second preset distance, the target prediction residual value includes a third prediction residual value obtained by performing intra-frame prediction on the attribute information of the node of the target layer.
23. A terminal, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the point cloud encoding processing method as described in any one of claims 1 to 11; or, the program or instruction, when executed by the processor, implements the steps of the point cloud decoding processing method as described in any one of claims 12 to 20.
24. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the point cloud encoding processing method as described in any one of claims 1 to 11, or, when executed by a processor, implements the steps of the point cloud decoding processing method as described in any one of claims 12 to 20.
Citation Information
Patent Citations
Motion-compensated compression of dynamic voxelized point clouds
CN109196559A
Method and device for encoding and decoding based on displacement operation, electronic equipment and medium
CN112702598A
Image encoding / decoding method and apparatus
US20220086461A1
Intra-frame prediction method and apparatus, coder, decoder and storage medium
WO2021138788A1
Cited By
Point cloud encoding method, point cloud decoding method, encoder, decoder, and storage medium
WO2026090809A1
