Point cloud coding processing method, point cloud decoding processing method, and related device
By determining the attribute prediction mode in the point cloud encoding process and using it as context for entropy encoding, the problem of low efficiency of point cloud data attribute prediction residual entropy encoding in the existing technology is solved, and more efficient encoding and better encoding are achieved. Point cloud data quality.
Patent Information
- Application Number
- PCT/CN2024/087352
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-24
AI Technical Summary
In the existing technology, the coding efficiency of the attribute prediction residual entropy of point cloud data is low, resulting in low coding efficiency.
By determining the attribute prediction mode of the point to be encoded, and using this mode as the context to entropy encode the attribute prediction residual, the coding efficiency is improved.
It improves the coding efficiency of point cloud data, reduces the code rate, and enhances the overall quality of point cloud data.
Smart Images

Figure CN2024087352_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. 202310422423.1 filed in China on April 19, 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 usually consists 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. In the point cloud coding and compression process, the encoding of geometric information and attribute information is performed separately. Among them, the encoding process of attribute information includes entropy coding of attribute prediction residuals.
[0005] In the related art, when performing entropy coding on the attribute prediction residual, entropy coding is directly performed on the attribute prediction residual of each to-be-coded point, resulting 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 attribute prediction mode of the attribute information of the point to be coded;
[0010] Obtaining an attribute prediction residual of the attribute information of the to-be-coded point based on the attribute prediction mode;
[0011] The attribute prediction residual is entropy coded using the attribute prediction mode information as a context to obtain a coding result of the point to be coded, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0012] In a second aspect, a point cloud decoding processing method is provided, which is executed by a decoding end and includes:
[0013] Determine an attribute prediction mode for attribute information of a point to be decoded;
[0014] The attribute prediction mode information is used as a context to perform entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point to obtain a decoding result of the to-be-decoded point, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0015] In a third aspect, a point cloud coding processing device is provided, comprising:
[0016] A determination module, used to determine an attribute prediction mode of attribute information of a point to be coded;
[0017] An acquisition module, configured to acquire an attribute prediction residual of the attribute information of the to-be-coded point based on the attribute prediction mode;
[0018] The encoding module is configured to perform entropy encoding on the attribute prediction residual using the attribute prediction mode information as a context to obtain an encoding result of the point to be encoded, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0019] In a fourth aspect, a point cloud decoding and processing device is provided, comprising:
[0020] A determination module, configured to determine an attribute prediction mode for attribute information of a point to be decoded;
[0021] The decoding module is configured to perform entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point using the attribute prediction mode information as context to obtain a decoding result of the to-be-decoded point, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0022] 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.
[0023] In a sixth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: determine an attribute prediction mode of the attribute information of the point to be encoded; obtain an attribute prediction residual of the attribute information of the point to be encoded based on the attribute prediction mode; perform entropy encoding on the attribute prediction residual using the attribute prediction mode information as a context to obtain an encoding result of the point to be encoded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode.
[0024] In the seventh aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: determine an attribute prediction mode of the attribute information of the point to be decoded; perform entropy decoding on the attribute prediction residual of the attribute information of the point to be decoded using the attribute prediction mode information as a context to obtain a decoding result of the point to be decoded, and the attribute prediction mode information is used to characterize the attribute prediction mode.
[0025] 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.
[0026] 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.
[0027] 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.
[0028] 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.
[0029] In an embodiment of the present application, an attribute prediction mode for attribute information of a point to be encoded is determined; an attribute prediction residual of the attribute information of the point to be encoded is obtained based on the attribute prediction mode; and the attribute prediction residual is entropy encoded using the attribute prediction mode information as context to obtain an encoding result for the point to be encoded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode. Thus, since the attribute prediction residual is obtained through the attribute prediction mode, there is a certain correlation between the attribute prediction residual and the attribute prediction mode. When entropy encoding the attribute prediction residual, the attribute prediction mode information is used as context, and the correlation between the attribute prediction mode information and the attribute prediction residual is utilized to entropy encode the attribute prediction residual, thereby improving encoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1 is a G-PCC codec framework diagram in the related art;
[0031] FIG2 is a schematic diagram of a prediction model in the related art;
[0032] FIG3 is a flow chart of a point cloud coding processing method provided in an embodiment of the present application;
[0033] FIG4 is a flowchart of a point cloud decoding processing method provided in an embodiment of the present application;
[0034] FIG5 is a schematic diagram of a coding test result provided in an embodiment of the present application;
[0035] FIG6 is a schematic structural diagram of a point cloud coding processing device provided in an embodiment of the present application;
[0036] FIG7 is a schematic structural diagram of a point cloud decoding and processing device provided in an embodiment of the present application;
[0037] FIG8 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
[0038] FIG9 is a schematic structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] For ease of understanding, some of the contents involved in the embodiments of this application are described below:
[0044] 1. Geometry-based Point Cloud Compression (G-PCC) encoder
[0045] In the point cloud G-PCC encoder framework, the geometric and attribute information of the point cloud are encoded separately. As shown in Figure 1, the current G-PCC attribute encoding can be divided into a region-adaptive transform based on upsampling prediction and a lifting transform based on hierarchical partitioning. When the lifting transform based on hierarchical partitioning does not perform an update operation, it is called a predictive transform based on hierarchical partitioning. Regardless of the encoding method used, the final transform coefficients or prediction residuals are entropy encoded using arithmetic coding.
[0046] The region adaptive transformation based on upsampling prediction includes: first, constructing a transformation tree structure. Starting from the bottom layer, an octree structure is constructed from the bottom up. In the process of constructing the transformation tree, it is necessary to generate corresponding Morton code information, attribute information and weight information for the merged nodes. Then, upsampling prediction and region adaptive transformation (RAHT) are performed layer by layer starting from the root node from top to bottom. If the current node is a root node, no upsampling prediction is performed, and the attribute information of the node is directly subjected to RAHT transformation, and then the DC coefficient and AC coefficient obtained by the transformation are quantized and entropy coded. If it is not a root node, whether to predict the current node is determined based on the number of grandparent nodes and parent nodes. If prediction is required, for the current node to be coded, select the parent node of the current node to be coded, the neighboring parent node coplanar and colinear with the current node to be coded, and the neighboring child node coplanar and colinear with the current node to be coded for its child nodes to perform weighted prediction to obtain the attribute prediction value of the current node to be coded, and then perform RAHT transformation on the attribute prediction value and the original attribute value of the current node to be coded, calculate the residual of the alternating current (AC) coefficient, and quantize and entropy code the residual of the AC coefficient. If prediction is not required, directly perform RAHT transformation on the original attribute value of the current node to be coded, quantize and entropy code the obtained AC coefficient, and finally obtain the attribute code stream
[0047] The lifting transformation based on hierarchical structure division involves: first, dividing the point cloud to be encoded into layers using level of detail (LoD) division to establish a hierarchical structure of the point cloud. During this process, the bottom-level points are encoded and decoded first. Therefore, the bottom-level points and reconstructed points at the same level can be used to predict the points at the higher levels, thus achieving progressive encoding and decoding. Then, using the bottom-level points and the points at the same level as reference points, the point to be encoded is searched within the reference points. The K nearest reference points are selected as prediction reference points. Linear interpolation prediction is performed using the reconstructed attribute values of these K nearest neighbors, with the weight being the inverse of the Euclidean distance between the nearest neighbor and the point to be encoded. Finally, the lifting transformation is performed, which consists of three parts: segmentation, prediction, and update. The segmentation stage spatially segments the input point cloud data into a high-level point cloud and a low-level point cloud. In the prediction stage, the attribute information of the low-level point cloud is used to predict the attribute information of the high-level point cloud, resulting in a prediction residual. During the segmentation and prediction process, since the prediction strategy in the LoD partitioning makes the points in the lower LoD layer have higher weights, it is necessary to define and recursively update the influence weight of each point based on the prediction residual and the distance between the predicted point and its neighbors, and continue to encode the residual to finally obtain the code stream of attribute information.
[0048] The prediction transformation based on hierarchical structure division includes: Compared with the above-mentioned lifting transformation based on hierarchical structure, it only includes two parts: segmentation and prediction, and does not include update. In order to further improve the efficiency of point cloud attribute prediction, rate-distortion optimization technology is also introduced in the prediction transformation. Rate-distortion optimization is to obtain different prediction values such as single predictor prediction value and weighted prediction value by predicting the attribute value of the predictor in the set, corresponding to different prediction modes, and finally select the prediction mode through the rate-distortion method; the embodiment of the present application is proposed based on the prediction transformation.
[0049] 2. Rate-distortion optimization prediction mode selection
[0050] To further improve the efficiency of point cloud attribute prediction, G-PCC currently incorporates rate-distortion optimization technology into its prediction transformation. Rate-distortion optimization uses the attribute values of predictors in a prediction set to derive different prediction values, such as single predictor predictions and weighted predictions. These values correspond to different prediction modes, and the rate-distortion method is used to select the prediction mode. The specific selection is shown in Figure 2.
[0051] First, determine whether the maximum change maxdiff between neighbors in the prediction point set of the current point to be coded is greater than the preset value aps_prediction_threshold:
[0052] If it is less than the preset value, the single prediction mode (singlepredmode) is adopted to obtain the attribute prediction value by weighted average of the points in the prediction point set.
[0053] If it is greater than or equal to the preset value, the multi-prediction mode (mutipredmode) is used, and one of the following four modes is selected through rate-distortion optimization (RDO):
[0054] Predmode0: weighted average of the three prediction points found;
[0055] Predmode1: Use the first nearest neighbor for prediction;
[0056] Predmode2: Use the second nearest neighbor for prediction;
[0057] Predmode3: Use the third nearest neighbor for prediction.
[0058] For single prediction (singlepred), there is only one prediction mode, which is weighted averaging. Therefore, the prediction mode identifier (predmodeindex) defaults to 0 and does not need to be encoded.
[0059] For multi-prediction (mutipred), there are four prediction modes, so predmodeindex needs to be encoded. Currently, G-PCC does not encode predmodeindex separately, but combines it with the transform coefficients, and finally encodes only the combined transform coefficients.
[0060] 3. Arithmetic Coding
[0061] Currently, G-PCC uses zero-run encoding for entropy coding of attribute information (e.g., reflectivity or color). Taking reflectivity information as an example, when all transform coefficients are input, all transform coefficients are traversed. First, it is determined whether the reflectivity information (transform coefficient) is 0. If it is 0, the length value is ++; if not, the current length value is encoded, and then the current reflectivity value is encoded. The following describes the specific methods of zero-run encoding and transform coefficient encoding:
[0062] a. Zero-run encoding
[0063] First, determine whether the reflectivity is 0. If it is 0, then length++; if it is not 0, then encode the run value and then encode the reflectivity value. The specific process of encoding the run value length is as follows:
[0064] (1) Using probability model 1: Determine whether the length value is 0. If it is 0, encode a 0 and end the current encoding. If it is not 0, encode a 1 and continue the following judgment.
[0065] (2) Using probability model 2: Determine whether the length value is 1. If it is 1, encode a 0 and end the current encoding; if it is not 1, encode a 1 and continue the following judgment;
[0066] (3) Using probability model 3: Determine whether the length value is 2. If it is 2, encode a 0 and end the current encoding; if it is not 2, encode a 1 and continue the following judgment;
[0067] (4) Update the length value: length-=3;
[0068] (5) Divide the length value by 2, that is, prefix = length / 2;
[0069] (6) Using probability model 4: Encode the prefix in a unary code, encoding up to 4 bits:
[0070] Determine whether the prefix value is 0. If it is 0, encode a 0 (using probability model 4) and use the bypass encoding algorithm to encode the remainder of length%2; if it is not 0, encode a 1 and continue with the following judgment;
[0071] Determine whether the prefix value is 1. If it is 1, encode a 0 (using probability model 4) and use the bypass encoding algorithm to encode the remainder of length%2; if it is not 1, encode a 1 and continue with the following judgment;
[0072] Determine whether the prefix value is 2. If it is 2, encode a 0 (using probability model 4) and use the bypass encoding algorithm to encode the remainder of length%2; if it is not 2, encode a 1 and continue with the following judgment;
[0073] Determine whether the prefix value is 3. If it is 3, encode a 0 (using probability model 4) and use the bypass encoding algorithm to encode the remainder of length%2; if it is not 3, encode a 1 and end this encoding;
[0074] (7) Update the length value: length-=8;
[0075] (8) Use probability model 5: Use second-order exponential Golomb coding length value.
[0076] b. Transform coefficient coding
[0077] When encoding any transform coefficient, up to 8 contexts are required for encoding. The specific encoding method is:
[0078] (1) Using context 1: Encode whether the current transform coefficient value is greater than 0. If it is 0, end the current encoding. If not, continue with the following encoding.
[0079] (2) Using context 2: Encode whether the current transform coefficient value is greater than 1. If it is 1, end the current encoding. If not, continue with the following encoding.
[0080] (3) Using contexts 3, 4, 5 and 6, 7, 8: Use the first-order exponential Golomb coding algorithm to encode the value of value-2, use contexts 3, 4, and 5 as the contexts of the prefix code, and use contexts 6, 7, and 8 as the contexts of the suffix code;
[0081] (4) Encode the sign bit of the transform coefficient value based on the bypass coding method.
[0082] 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.
[0083] Referring to FIG3 , FIG3 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 FIG3 , the point cloud coding processing method includes the following steps:
[0084] Step 101: Determine an attribute prediction mode for attribute information of a point to be coded.
[0085] The attribute prediction mode of the attribute information of the to-be-encoded point may be at least one of multiple prediction modes, or the attribute prediction mode of the attribute information of the to-be-encoded point may include at least one of a first type of prediction mode and a second type of prediction mode.
[0086] In addition, the attribute prediction mode of the attribute information of the point to be encoded can be determined based on the maximum attribute interpolation value corresponding to the point to be encoded. The attribute prediction mode of the attribute information of the point to be encoded can include: when the maximum attribute interpolation value corresponding to the point to be encoded is less than a preset value, determining the attribute prediction mode of the attribute information of the point to be encoded as a first type of prediction mode; when the maximum attribute interpolation value corresponding to the point to be encoded is greater than or equal to the preset value, determining the attribute prediction mode of the attribute information of the point to be encoded as a second type of prediction mode; or, the attribute prediction mode of the attribute information of the point to be encoded can include: selecting the attribute prediction mode of the attribute information of the point to be encoded from k prediction modes based on a rate-distortion optimization algorithm; or, the attribute prediction mode of the attribute information of the point to be encoded can include: when the maximum attribute interpolation value corresponding to the point to be encoded is greater than or equal to the preset value, selecting the attribute prediction mode of the attribute information of the point to be encoded from k prediction modes based on a rate-distortion optimization algorithm; and so on. This embodiment does not limit this.
[0087] Step 102: Obtain attribute prediction residuals of the attribute information of the to-be-coded point based on the attribute prediction mode.
[0088] The attribute prediction residual can also be described as a transform coefficient, a transform coefficient residual, or a prediction residual. The attribute prediction residual can be the difference between the attribute prediction value of the to-be-encoded point and the attribute information of the to-be-encoded point. The to-be-encoded point can be predicted based on the attribute prediction mode to obtain the attribute prediction value of the to-be-encoded point, and the attribute prediction residual of the attribute information of the to-be-encoded point can be obtained based on the attribute prediction value of the to-be-encoded point.
[0089] In one embodiment, when the attribute prediction mode of the attribute information of the to-be-coded point is a first-type prediction mode, a weighted average of the attribute interpolation values corresponding to the to-be-coded point can be performed to obtain an attribute prediction value, and based on the attribute prediction value of the to-be-coded point, an attribute prediction residual of the attribute information of the to-be-coded point can be obtained. When the attribute prediction mode of the attribute information of the to-be-coded point is a second-type prediction mode, at least one prediction mode can be selected from k prediction modes to perform prediction processing on the to-be-coded point to obtain an attribute prediction value, and based on the attribute prediction value of the to-be-coded point, an attribute prediction residual of the attribute information of the to-be-coded point can be obtained. In addition, the attribute interpolation value corresponding to the to-be-coded point can be an attribute interpolation value obtained by linearly interpolating the reconstructed attribute values of points in the prediction point set of the to-be-coded point.
[0090] In one embodiment, at least one prediction mode can be selected from k prediction modes to perform prediction processing on the to-be-coded point to obtain an attribute prediction value, and an attribute prediction residual of the attribute information of the to-be-coded point can be obtained based on the attribute prediction value of the to-be-coded point.
[0091] It should be noted that selecting at least one prediction mode from the k prediction modes to perform prediction processing on the to-be-coded point may include selecting at least one prediction mode from the k prediction modes to perform prediction processing on the to-be-coded point based on a rate-distortion optimization algorithm.
[0092] For example, the value of k may be 4, and the k prediction modes may include a first prediction mode, a second prediction mode, a third prediction mode, and a fourth prediction mode. In the first prediction mode, a weighted average is performed on three prediction points selected from a set of prediction points of the to-be-coded point to obtain an attribute prediction value, and an attribute prediction residual of the attribute information of the to-be-coded point is obtained based on the attribute prediction value. The three selected prediction points may be the first, second, and third nearest neighbor points. In the second prediction mode, the first nearest neighbor point is used for prediction to obtain an attribute prediction value, and an attribute prediction residual of the attribute information of the to-be-coded point is obtained based on the attribute prediction value. In the third prediction mode, the second nearest neighbor point is used for prediction to obtain an attribute prediction value, and an attribute prediction residual of the attribute information of the to-be-coded point is obtained based on the attribute prediction value. In the fourth prediction mode, the third nearest neighbor point is used for prediction to obtain an attribute prediction value, and an attribute prediction residual of the attribute information of the to-be-coded point is obtained based on the attribute prediction value. The first nearest neighbor point may be the nearest neighbor point to the to-be-coded point, the second nearest neighbor point may be the nearest neighbor point to the to-be-coded point other than the first nearest neighbor point, and the third nearest neighbor point may be the nearest neighbor point to the to-be-coded point other than the first and second nearest neighbor points.
[0093] Step 103: Perform entropy coding on the attribute prediction residual using the attribute prediction mode information as a context to obtain a coding result of the point to be coded, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0094] Among them, using the attribute prediction mode information as a context to entropy encode the attribute prediction residual can include using the attribute prediction mode information as the context of a context-based adaptive binary arithmetic coding (CABAC) coding model, and encoding the attribute prediction residual based on the CABAC coding model.
[0095] In one implementation, encoding the attribute prediction residual based on a CABAC coding model may be performing zero-run coding on the attribute prediction residual based on the CABAC coding model.
[0096] In addition, the attribute prediction mode information may include information such as numbers, letters or text. This embodiment does not limit the information format of the attribute prediction mode information. Any information that can be used to represent the attribute prediction mode can be used as the attribute prediction mode information.
[0097] In addition, entropy encoding the attribute prediction residual using the attribute prediction mode information as context may include: encoding a first identifier using the attribute prediction mode information as context to obtain a first encoding result, wherein the first identifier is used to indicate whether the attribute prediction residual is a first preset value; or encoding a second identifier using the attribute prediction mode information as context to obtain a second encoding result, wherein the second identifier is used to indicate whether the attribute prediction residual is a second preset value. Entropy encoding the attribute prediction residual using the attribute prediction mode information as context may also include: encoding the value to be encoded corresponding to the attribute prediction residual to obtain a third encoding result. The encoding result of the point to be encoded may include at least one of the first encoding result, the second encoding result, and the third encoding result. The first preset value may be 0, 1, 2, etc., and this embodiment does not limit the first preset value; the second preset value may be 0, 1, 2, etc., and this embodiment does not limit the second preset value.
[0098] In one embodiment, entropy encoding the attribute prediction residual using the attribute prediction mode information as context may include: encoding a first identifier using the attribute prediction mode information as context to obtain a first encoding result, wherein the first identifier is used to indicate whether the attribute prediction residual is a first preset value; and if the attribute prediction residual is not the first preset value, encoding the value to be encoded corresponding to the attribute prediction residual to obtain a third encoding result. The encoding result of the point to be encoded may include at least one of the first encoding result and the third encoding result. The first preset value may be 0, 1, 2, etc., and this embodiment does not limit the first preset value.
[0099] In the point cloud G-PCC encoder framework in the related art, when encoding the transform coefficients, the correlation between the attribute prediction mode information and the transform coefficients is not utilized for encoding. Therefore, there is still room for improvement in the context modeling of the transform coefficients.
[0100] In an embodiment of the present application, an attribute prediction mode for attribute information of a point to be encoded is determined; an attribute prediction residual of the attribute information of the point to be encoded is obtained based on the attribute prediction mode; and the attribute prediction residual is entropy encoded using the attribute prediction mode information as context to obtain an encoding result for the point to be encoded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode. Thus, since the attribute prediction residual is obtained through the attribute prediction mode, there is a certain correlation between the attribute prediction residual and the attribute prediction mode. When entropy encoding the attribute prediction residual, the attribute prediction mode information is used as context, and the correlation between the attribute prediction mode information and the attribute prediction residual is utilized to entropy encode the attribute prediction residual, thereby improving encoding efficiency.
[0101] Optionally, performing entropy coding on the attribute prediction residual using the attribute prediction mode information as a context includes:
[0102] Encoding the first identifier using the attribute prediction mode information as context to obtain a first encoding result, wherein the first identifier is used to indicate whether the to-be-encoded value corresponding to the attribute prediction residual is 0;
[0103] When the value to be encoded corresponding to the attribute prediction residual is not 0, encoding the second identifier using the attribute prediction mode information as context to obtain a second encoding result, where the second identifier is used to indicate whether the value to be encoded corresponding to the attribute prediction residual is 1;
[0104] When the to-be-encoded value corresponding to the attribute prediction residual is neither 0 nor 1, encoding the to-be-encoded value corresponding to the attribute prediction residual to obtain a third encoding result;
[0105] The encoding result of the point to be encoded includes at least one of the first encoding result, the second encoding result and the third encoding result.
[0106] The value to be encoded corresponding to the attribute prediction residual may be the attribute prediction residual; or, the value to be encoded corresponding to the attribute prediction residual may be the difference between the attribute prediction residual and a third preset value. For example, the third preset value may be 1.
[0107] In one implementation, the first identifier may be a flag bit. When the value to be encoded corresponding to the attribute prediction residual is 0, the first identifier is 1; when the value to be encoded corresponding to the attribute prediction residual is not 0, the first identifier is 0.
[0108] In one implementation, the second identifier may be a flag bit. When the value to be encoded corresponding to the attribute prediction residual is 1, the second identifier is 1; when the value to be encoded corresponding to the attribute prediction residual is not 1, the second identifier is 0.
[0109] In addition, the encoding of the first identifier using the attribute prediction mode information as a context may include: encoding the first identifier based on a first context or a second context, the first context being the context for encoding the first identifier under the first type of prediction mode, and the second context being the context for encoding the first identifier under the second type of prediction mode; or may include: encoding the first identifier based on k contexts, the k contexts being used to indicate k prediction modes respectively.
[0110] In addition, the encoding of the second identifier using the attribute prediction mode information as a context may include: encoding the second identifier based on a third context or a fourth context, the third context being the context for encoding the second identifier under the first type of prediction mode, and the fourth context being the context for encoding the second identifier under the second type of prediction mode; or may include: encoding the second identifier based on k contexts, the k contexts being used to indicate k prediction modes respectively.
[0111] In this embodiment, when encoding the first identifier used to characterize whether the value to be encoded corresponding to the attribute prediction residual is 0, and when encoding the second identifier used to characterize whether the value to be encoded corresponding to the attribute prediction residual is 1, the attribute prediction mode information is encoded as a context. Since the attribute prediction residual is obtained through the attribute prediction mode, there is a certain correlation between the attribute prediction residual and the attribute prediction mode, and thus there is a certain correlation between the values of the first identifier and the second identifier and the attribute prediction mode. When encoding the first identifier and the second identifier, the attribute prediction mode information is used as the context, and the first identifier and the second identifier are encoded using the correlation between the first identifier and the second identifier and the attribute prediction mode information, which can improve the encoding efficiency.
[0112] Optionally, before encoding the first identifier using the attribute prediction mode information as context, the method further includes:
[0113] When the attribute prediction residual is 0, the target parameter is updated, and the updated target parameter is the target parameter before the update plus 1;
[0114] The encoding of the first identifier using the attribute prediction mode information as a context includes:
[0115] When the attribute prediction residual is not zero, encoding the target parameter and encoding the first identifier using the attribute prediction mode information as context;
[0116] The target parameter is used to indicate the continuous statistical value of the to-be-coded point whose attribute prediction residual is zero.
[0117] The value to be encoded corresponding to the attribute prediction residual may be a difference between the attribute prediction residual and a third preset value.
[0118] Alternatively, the target parameter can be the run value of zero-run encoding. The attribute prediction residuals of the points to be encoded can be traversed, and the number of points to be encoded whose consecutive attribute prediction residuals are 0 can be counted as the target parameter. When the attribute prediction residual of the point to be encoded is 0, the target parameter is updated by adding 1 to the target parameter.
[0119] In this embodiment, when the attribute prediction residual is zero, the target parameter is updated, and the updated target parameter is the target parameter before the update plus 1. When the attribute prediction residual is not zero, the target parameter is encoded, and the attribute prediction mode information is used as context to encode the first identifier. The target parameter is used to indicate the continuous statistical value of the to-be-encoded points for which the attribute prediction residual is zero. In this way, zero-run encoding of the attribute prediction residual can be performed using the attribute prediction mode information as context, thereby improving the coding efficiency of zero-run encoding.
[0120] Optionally, the attribute prediction mode includes a first type of prediction mode or a second type of prediction mode, and encoding the first identifier using the attribute prediction mode information as a context includes:
[0121] Encoding the first identifier based on a first context or a second context, wherein the first context is a context for encoding the first identifier in the first type of prediction mode, and the second context is a context for encoding the first identifier in the second type of prediction mode;
[0122] or
[0123] The encoding of the second identifier by using the attribute prediction mode information as a context includes:
[0124] The second identifier is encoded based on a third context or a fourth context, wherein the third context is a context for encoding the second identifier under the first type of prediction mode, and the fourth context is a context for encoding the second identifier under the second type of prediction mode.
[0125] In this embodiment, the first identifier is encoded based on the first context or the second context, the first context is the context for encoding the first identifier under the first type of prediction mode, and the second context is the context for encoding the first identifier under the second type of prediction mode, so that different categories of prediction mode information can be used as context to encode the first identifier, and the first identifier is encoded by utilizing the correlation between the prediction category and the first identifier, which can improve the encoding efficiency; or, the second identifier is encoded based on the third context or the fourth context, the third context is the context for encoding the second identifier under the first type of prediction mode, and the fourth context is the context for encoding the second identifier under the second type of prediction mode, so that different categories of prediction mode information can be used as context to encode the second identifier, and the second identifier is encoded by utilizing the correlation between the prediction category and the second identifier, which can improve the encoding efficiency.
[0126] Optionally, determining the attribute prediction mode of the attribute information of the to-be-coded point includes:
[0127] When the maximum attribute interpolation value corresponding to the to-be-coded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-coded point is the first type of prediction mode; or
[0128] When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-encoded point is the second type of prediction mode.
[0129] The maximum attribute interpolation value corresponding to the point to be coded may be the maximum value of the attribute interpolation values corresponding to the point to be coded. The attribute interpolation value corresponding to the point to be coded may be the attribute interpolation value obtained by linearly interpolating the reconstructed attribute values of points in the prediction point set for the point to be coded. The maximum attribute interpolation value corresponding to the point to be coded may represent the maximum change between neighbors. If the maximum attribute interpolation value corresponding to the point to be coded is less than a preset value, it can be considered that any two attribute interpolations corresponding to the point to be coded are less than the preset value.
[0130] In this embodiment, when the maximum attribute interpolation value corresponding to the to-be-coded point is less than a preset value, the attribute prediction mode of the attribute information of the to-be-coded point is determined to be the first type of prediction mode; or when the maximum attribute interpolation value corresponding to the to-be-coded point is greater than or equal to the preset value, the attribute prediction mode of the attribute information of the to-be-coded point is determined to be the second type of prediction mode. This enables the attribute prediction mode of the attribute information of the to-be-coded point to be determined, and further, the attribute prediction residual of the attribute information of the to-be-coded point to be obtained using the determined attribute prediction mode.
[0131] Optionally, the attribute prediction mode includes k prediction modes, where k is a positive integer, and encoding the first identifier using the attribute prediction mode information as a context includes:
[0132] Encoding the first identifier based on the k contexts;
[0133] or
[0134] The encoding of the second identifier by using the attribute prediction mode information as a context includes:
[0135] Encoding a second identifier based on the k contexts;
[0136] The k contexts are respectively used to indicate the k prediction modes.
[0137] Here, taking k as 4 as an example, encoding the first identifier based on k contexts may be encoding the first identifier based on context 1, context 2, context 3, and context 4, and context 1, context 2, context 3, and context 4 may be used to indicate four prediction modes, respectively. Encoding the second identifier based on k contexts may be encoding the second identifier based on context 5, context 6, context 7, and context 8, and context 5, context 6, context 7, and context 8 may be used to indicate four prediction modes, respectively. The four prediction modes may be a first prediction mode, a second prediction mode, a third prediction mode, and a fourth prediction mode.
[0138] In this embodiment, the first identifier is encoded based on k contexts, and the second identifier is encoded based on k contexts, wherein the k contexts are used to indicate the k prediction modes. Thus, the first identifier and the second identifier can be encoded using the k contexts corresponding to the k prediction modes, thereby improving encoding efficiency.
[0139] Optionally, determining the attribute prediction mode of the attribute information of the to-be-coded point includes:
[0140] When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-encoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
[0141] The maximum attribute interpolation value corresponding to the point to be coded may be the maximum value of the attribute interpolation values corresponding to the point to be coded. The attribute interpolation value corresponding to the point to be coded may be the attribute interpolation value obtained by linear interpolation prediction of the reconstructed attribute values of the points in the prediction point set of the point to be coded.
[0142] In this embodiment, when the maximum attribute interpolation value corresponding to the point to be encoded is greater than or equal to a preset value, the attribute prediction mode of the attribute information of the point to be encoded is selected from the k prediction modes based on the rate-distortion optimization algorithm, so that the attribute prediction mode of the attribute information of the point to be encoded can be determined, and then the attribute prediction residual of the attribute information of the point to be encoded is obtained through the determined attribute prediction mode.
[0143] Referring to FIG4 , FIG4 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 FIG4 , the point cloud decoding processing method includes the following steps:
[0144] Step 201: Determine the attribute prediction mode of the attribute information of the point to be decoded;
[0145] Step 202: Entropy decoding is performed on the attribute prediction residual of the attribute information of the to-be-decoded point using the attribute prediction mode information as a context to obtain a decoding result of the to-be-decoded point. The attribute prediction mode information is used to represent the attribute prediction mode.
[0146] Optionally, performing entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point using the attribute prediction mode information as context includes:
[0147] Decoding a first identifier using the attribute prediction mode information as context, wherein the first identifier is used to indicate whether a value to be decoded corresponding to an attribute prediction residual of the attribute information of the point to be decoded is 0;
[0148] When the first flag indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 0, decoding the second flag using the attribute prediction mode information as context, the second flag being used to indicate whether the to-be-decoded value corresponding to the attribute prediction residual is 1;
[0149] When the second flag indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 1, the to-be-decoded value corresponding to the attribute prediction residual is decoded.
[0150] Optionally, before using the attribute prediction mode information as context to decode the first identifier, the method further includes:
[0151] Decoding a target parameter, where the target parameter is used to indicate a continuous statistical value of a to-be-decoded point for which the attribute prediction residual is zero;
[0152] The decoding of the first identifier using the attribute prediction mode information as a context includes:
[0153] When the target parameter is 0, the first identifier is decoded using the attribute prediction mode information as context.
[0154] Optionally, the attribute prediction mode includes a first type of prediction mode or a second type of prediction mode, and using the attribute prediction mode information as a context to decode the first identifier includes:
[0155] Decoding the first identifier based on a first context or a second context, where the first context is a context for decoding the first identifier in the first type of prediction mode, and the second context is a context for decoding the first identifier in the second type of prediction mode;
[0156] or
[0157] The decoding of the second identifier by using the attribute prediction mode information as a context includes:
[0158] The second identifier is decoded based on a third context or a fourth context, wherein the third context is a context for decoding the second identifier under the first type of prediction mode, and the fourth context is a context for decoding the second identifier under the second type of prediction mode.
[0159] Optionally, determining the attribute prediction mode of the attribute information of the point to be decoded includes:
[0160] When the maximum attribute interpolation value corresponding to the to-be-decoded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-decoded point is the first type of prediction mode; or
[0161] When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-decoded point is the second type of prediction mode.
[0162] Optionally, the attribute prediction mode includes k prediction modes, where k is a positive integer, and using the attribute prediction mode information as a context to decode the first identifier includes:
[0163] Decoding the first identifier based on the k contexts;
[0164] or
[0165] The decoding of the second identifier by using the attribute prediction mode information as a context includes:
[0166] Decoding the second identifier based on the k contexts;
[0167] The k contexts are respectively used to indicate the k prediction modes.
[0168] Optionally, determining the attribute prediction mode of the attribute information of the point to be decoded includes:
[0169] When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-decoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
[0170] It should be noted that this embodiment is an implementation of the decoding side corresponding to the embodiment shown in Figure 3. Its specific implementation can refer to the relevant description of the embodiment shown in Figure 3. In order to avoid repetition, this embodiment will not be repeated, and the same beneficial effects can still be achieved.
[0171] 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:
[0172] Example 1:
[0173] Encoding side:
[0174] Step (11): Segment the point cloud.
[0175] The coded point cloud is divided into levels of detail (LoD) to establish a hierarchical structure of the point cloud.
[0176] Step (12): Construct the prediction point set.
[0177] First, encode the points at the bottom level of the hierarchy. Use the bottom level and points at the same level as reference points. Search for the point to be encoded within the reference points and select the K nearest reference points as prediction reference points. Linear interpolation prediction is performed using the reconstructed attribute values of these K nearest neighbors. The weight for linear interpolation is the inverse of the Euclidean distance between the nearest neighbor and the point to be encoded. A rate-distortion optimization algorithm is used to select the optimal prediction model. The specific process is as follows:
[0178] First, determine whether the maximum attribute interpolation value corresponding to the point to be coded is greater than the preset value:
[0179] If the maximum attribute interpolation value corresponding to the point to be coded is less than the preset value, the singlepredmode mode (i.e. the first type of prediction mode) is used to obtain the attribute prediction value by weighted average of the points in the prediction point set;
[0180] If the maximum attribute interpolation value corresponding to the point to be coded is greater than or equal to the preset value, the mode mutipredmode (i.e. the second type of prediction mode) is used, and one of the following four modes is selected through RDO:
[0181] Predmode0 (i.e., the first prediction mode): perform weighted averaging on the three prediction points found;
[0182] Predmode1 (i.e. the second prediction mode): use the first nearest neighbor for prediction;
[0183] Predmode2 (i.e. the third prediction mode): use the second nearest neighbor for prediction;
[0184] Predmode3 (i.e. the fourth prediction mode): uses the third nearest neighbor for prediction.
[0185] For singlepredmode, there is only one prediction mode, weighted average, so predmodeindex defaults to 0 and no encoding is required.
[0186] For mutipledmode, there are four prediction modes, so predmodeindex needs to be encoded. Currently, G-PCC does not encode predmodeindex separately, but combines it with the transform coefficients according to a fixed rule, and finally encodes only the combined transform coefficients.
[0187] Step (13): Differential prediction.
[0188] The predicted point and the current point (i.e., the point to be encoded) are differentially predicted to obtain the prediction residual (also called transform coefficient or transform coefficient residual) of the current point.
[0189] Step (14): Entropy coding is performed on the prediction residual (ie, attribute prediction residual).
[0190] Traverse all prediction residuals, first determine whether the current prediction residual is 0, if it is 0, add 1 to the run value length (i.e. target parameter); if it is not 0, encode the current length value, and then encode the current prediction residual. The process of encoding the current prediction residual is as follows:
[0191] Using the attribute prediction mode information as the context encoding prediction residual, the following entropy coding algorithm is designed to perform entropy coding on the prediction residual. The specific process is as follows:
[0192] Determine whether the attribute prediction mode of the current point to be coded is singlepredmode or mutipredmode, and use this information as the two context coding prediction residuals.
[0193] 1) Use context 1 and context 2 (representation mode singlepredmode or mutipredmode) for encoding: Encode whether the current prediction residual value is greater than 0. If it is 0, end the current encoding; if not, continue with the following encoding;
[0194] 2) Use context 3 and context 4 (representation mode singlepredmode or mutipredmode) for encoding: Encode whether the current prediction residual value is greater than 1. If it is 1, end the current encoding; if not, continue with the following encoding;
[0195] 3) Encoding using context 5, context 6, context 7 and context 8, context 9, context 10: Encode the value of value-2 based on the first-order exponential Golomb coding algorithm. In the encoding process, context 5, context 6, context 7 are used as the context of the prefix code, and context 8, context 9, context 10 are used as the context of the suffix code.
[0196] 4) Use the bypass coding algorithm to encode the sign bit of the prediction residual value.
[0197] Decoding end:
[0198] Step (21): Segment the point cloud.
[0199] The coded point cloud is divided into levels of detail (LoD) to establish a hierarchical structure of the point cloud.
[0200] Step (22): Construct a prediction point set.
[0201] First, decode the points at the bottom level of the hierarchy. Use the bottom level and points at the same level as reference points. Search for the point to be decoded within the reference points and select the K nearest reference points as prediction reference points. Use the reconstructed attribute values of these K nearest neighbors for linear interpolation prediction. The weight for linear interpolation is the inverse of the Euclidean distance between the nearest neighbor point and the point to be decoded. A rate-distortion optimization algorithm is used to select the best prediction model. The specific process is as follows:
[0202] First, determine whether the maximum attribute interpolation value corresponding to the point to be decoded is greater than the preset value:
[0203] If the maximum attribute interpolation value corresponding to the point to be decoded is less than the preset value, the mode singlepredmode is used to obtain the attribute prediction value by weighted average of the points in the prediction point set;
[0204] If the maximum attribute interpolation value corresponding to the point to be decoded is greater than or equal to the preset value, the mode mutipredmode is used, and one of the following four modes is selected through RDO:
[0205] Predmode0: weighted average of the three prediction points found;
[0206] Predmode1: Use the first nearest neighbor for prediction;
[0207] Predmode2: Use the second nearest neighbor for prediction;
[0208] Predmode3: Use the third nearest neighbor for prediction.
[0209] Step (23): Entropy decoding is performed on the prediction residual.
[0210] The prediction residuals are decoded in sequence. First, the run length of the current prediction residual is decoded. If it is not 0, the current prediction residual is 0; if it is 0, the current prediction residual is decoded. The process of decoding the prediction residual is as follows:
[0211] Determine whether the attribute prediction mode of the current point to be decoded is singlepredmode or mutipredmode, and use this information as the two context decoding prediction residuals.
[0212] 1) Use context 1 and context 2 (representation mode singlepredmode or mutipredmode) for decoding: Decode whether the current prediction residual value is greater than 0. If it is 0, end the current decoding; if not, continue with the following decoding;
[0213] 2) Use context 3 and context 4 (representation mode singlepredmode or mutipredmode) for decoding: Decode whether the current prediction residual value is greater than 1. If it is 1, end the current decoding; if not, continue with the following decoding;
[0214] 3) Decoding using context 5, context 6, context 7 and context 8, context 9, context 10: Decode the value of value-2 based on the first-order exponential Golomb decoding algorithm. In the decoding process, context 5, context 6, context 7 are used as the context of the prefix code, and context 8, context 9, context 10 are used as the context of the suffix code.
[0215] 4) Use the bypass decoding algorithm to decode the sign bit of the prediction residual value.
[0216] Step (24): Traverse the prediction residuals of each point. If the current point corresponds to the mode mutipredmode, the real prediction residuals need to be separated from the prediction residuals according to fixed rules, and then the prediction residuals and their corresponding prediction points are differentiated point by point to reconstruct the attribute information of each point, thereby completing the decoding and reconstruction of the entire point cloud attribute information.
[0217] As shown in Figure 5, encoding and decoding by the point cloud encoding processing method and the point cloud decoding processing method of the embodiment of the present application can reduce the bit rate and improve the encoding efficiency. In Figure 5, the first vertical column includes multiple types of point clouds used to characterize the level of point cloud density, such as: solid average, dense average, sparse average, etc. The overall average represents the average value of the above multiple types of point clouds. Avg.Enc Time represents the encoding time, and Avg.Dec Time represents the decoding time. Geometry is the geometric component. Color (Colour) and reflectance (Reflectance) are attribute components. CW_ai and CY_ai are point cloud encoding test conditions, CW_ai represents lossless geometry, lossless attributes [all intra] conditions; C2_ai represents lossless geometry, near-lossless attributes [all intra] conditions. Bpip ratio represents the bit rate. If the Bpip ratio parameter is less than 100%, it means that the bit rate control effect of encoding the point cloud using this embodiment is better than the bit rate control effect of encoding using the existing technology. EtE Hausdorff BD-AttrRate represents the point cloud attribute quality distortion assessment parameter. If the EtE Hausdorff BD-AttrRate parameter is a negative value, it means that the comprehensive quality of the point cloud encoded using this embodiment is higher than the comprehensive quality of the point cloud encoded using the existing technology. As can be seen from Figure 5, the comprehensive quality of the point cloud encoded using this embodiment is higher than the comprehensive quality of the point cloud encoded using the existing technology.
[0218] On the one hand, the embodiment of the present application utilizes the correlation between attribute prediction mode information and attribute prediction residual to encode attribute prediction residual; on the other hand, using attribute prediction mode information as context to encode attribute prediction residual can reduce the bit rate and improve coding efficiency.
[0219] Example 2:
[0220] Encoding side:
[0221] Using the attribute prediction mode information as the context encoding prediction residual, the following entropy coding algorithm is designed to perform entropy coding on the prediction residual. The specific process is as follows:
[0222] Determine the attribute prediction mode of the current point to be coded. The attribute prediction mode is one of the following four modes:
[0223] Predmode0: weighted average of the three prediction points found;
[0224] Predmode1: Use the first nearest neighbor for prediction;
[0225] Predmode2: Use the second nearest neighbor for prediction;
[0226] Predmode3: Use the third nearest neighbor for prediction.
[0227] The attribute prediction mode information is used as 4 context-encoded prediction residuals.
[0228] 1) Use context 1, context 2, context 3 and context 4 (representation mode Predmode0 or Predmode1 or Predmode2 or Predmode3) for encoding: Encode whether the current prediction residual value is greater than 0. If it is 0, end the current encoding. If not, continue with the following encoding;
[0229] 2) Use context 5, context 6, context 7 and context 8 (representation mode Predmode0 or Predmode1 or Predmode2 or Predmode3) for encoding: Encode whether the current prediction residual value is greater than 1. If it is 1, end the current encoding. If not, continue with the following encoding;
[0230] 3) Encoding using context 9, context 10, context 11 and context 12, context 13, context 14: Encode the value of value-2 based on the first-order exponential Golomb coding algorithm, using context 9, context 10, context 11 as the context of the prefix code, and using context 12, context 13, context 14 as the context of the suffix code;
[0231] 4) Use the bypass coding algorithm to encode the sign bit of the prediction residual value.
[0232] Decoding end:
[0233] Using the attribute prediction mode information as the context to decode the prediction residual, the process of entropy decoding the prediction residual is as follows:
[0234] Determine the attribute prediction mode of the current point to be decoded. The attribute prediction mode is one of the following four modes:
[0235] Predmode0: weighted average of the three prediction points found;
[0236] Predmode1: Use the first nearest neighbor for prediction;
[0237] Predmode2: Use the second nearest neighbor for prediction;
[0238] Predmode3: Use the third nearest neighbor for prediction.
[0239] The attribute prediction mode information is used as 4 context decoding prediction residuals.
[0240] 1) Use context 1, context 2, context 3 and context 4 (representation mode Predmode0 or Predmode1 or Predmode2 or Predmode3) for decoding: Decode whether the current prediction residual value is greater than 0. If it is 0, end the current decoding; if not, continue with the following decoding;
[0241] 2) Use context 5, context 6, context 7 and context 8 (representation mode Predmode0 or Predmode1 or Predmode2 or Predmode3) for decoding: Decode whether the current prediction residual value is greater than 1. If it is 1, end the current decoding; if not 1, continue with the following decoding;
[0242] 3) Use context 9, context 10, context 11 and context 12, context 13, context 14 for encoding: Use the first-order exponential Golomb decoding algorithm to decode the value of value-2, use context 9, context 10, context 11 as the context of the prefix code, and use context 12, context 13, context 14 as the context of the suffix code;
[0243] 4) Bypass the encoding and decoding of the predicted sign bit of the residual value.
[0244] 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.
[0245] Please refer to FIG6 , which is a structural diagram of a point cloud coding processing device provided in an embodiment of the present application. As shown in FIG6 , the point cloud coding processing device 300 includes:
[0246] Determination module 301, used to determine the attribute prediction mode of the attribute information of the point to be encoded;
[0247] An acquisition module 302 is configured to acquire an attribute prediction residual of the attribute information of the to-be-coded point based on the attribute prediction mode;
[0248] The encoding module 303 is configured to perform entropy encoding on the attribute prediction residual using the attribute prediction mode information as a context to obtain an encoding result of the point to be encoded, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0249] Optionally, the encoding module includes:
[0250] A first encoding unit is configured to encode a first identifier using the attribute prediction mode information as a context to obtain a first encoding result, wherein the first identifier is used to indicate whether a to-be-encoded value corresponding to the attribute prediction residual is 0;
[0251] a second encoding unit configured to, when the to-be-encoded value corresponding to the attribute prediction residual is not 0, encode a second identifier using the attribute prediction mode information as a context to obtain a second encoding result, wherein the second identifier is used to indicate whether the to-be-encoded value corresponding to the attribute prediction residual is 1;
[0252] a third encoding unit, configured to, when the value to be encoded corresponding to the attribute prediction residual is neither 0 nor 1, encode the value to be encoded corresponding to the attribute prediction residual to obtain a third encoding result;
[0253] The encoding result of the point to be encoded includes at least one of the first encoding result, the second encoding result and the third encoding result.
[0254] Optionally, the device further comprises:
[0255] An updating module, configured to update a target parameter when the attribute prediction residual is 0, wherein the updated target parameter is the target parameter before the update plus 1;
[0256] The first encoding unit is specifically configured to:
[0257] When the attribute prediction residual is not zero, encoding the target parameter and encoding the first identifier using the attribute prediction mode information as context;
[0258] The target parameter is used to indicate the continuous statistical value of the to-be-coded point whose attribute prediction residual is zero.
[0259] Optionally, the attribute prediction mode includes a first type of prediction mode or a second type of prediction mode, and the first encoding unit is specifically configured to:
[0260] Encoding the first identifier based on a first context or a second context, wherein the first context is a context for encoding the first identifier in the first type of prediction mode, and the second context is a context for encoding the first identifier in the second type of prediction mode;
[0261] or
[0262] When the to-be-encoded value corresponding to the attribute prediction residual is not 0, the second encoding unit is specifically configured to:
[0263] The second identifier is encoded based on a third context or a fourth context, wherein the third context is a context for encoding the second identifier under the first type of prediction mode, and the fourth context is a context for encoding the second identifier under the second type of prediction mode.
[0264] Optionally, the determining module is specifically configured to:
[0265] When the maximum attribute interpolation value corresponding to the to-be-coded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-coded point is the first type of prediction mode; or
[0266] When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-encoded point is the second type of prediction mode.
[0267] Optionally, the attribute prediction mode includes k prediction modes, where k is a positive integer, and the first encoding unit is specifically configured to:
[0268] Encoding the first identifier based on the k contexts;
[0269] or
[0270] When the to-be-encoded value corresponding to the attribute prediction residual is not 0, the second encoding unit is specifically configured to:
[0271] Encoding a second identifier based on the k contexts;
[0272] The k contexts are respectively used to indicate the k prediction modes.
[0273] Optionally, the determining module is specifically configured to:
[0274] When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-encoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
[0275] 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.
[0276] 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 3 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0277] 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.
[0278] Please refer to FIG. 7 , which is a structural diagram of a point cloud decoding processing device provided in an embodiment of the present application. As shown in FIG. 7 , the point cloud decoding processing device 400 includes:
[0279] Determination module 401, used to determine the attribute prediction mode of the attribute information of the point to be decoded;
[0280] The decoding module 402 is configured to perform entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point using the attribute prediction mode information as context to obtain a decoding result of the to-be-decoded point, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0281] Optionally, the decoding module includes:
[0282] A first decoding unit is configured to decode a first identifier using the attribute prediction mode information as a context, wherein the first identifier is used to indicate whether a value to be decoded corresponding to an attribute prediction residual of the attribute information of the point to be decoded is 0;
[0283] a second decoding unit configured to, when the first identifier indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 0, use the attribute prediction mode information as context to decode a second identifier, the second identifier being used to indicate whether the to-be-decoded value corresponding to the attribute prediction residual is 1;
[0284] The third decoding unit is configured to decode the value to be decoded corresponding to the attribute prediction residual when the second flag indicates that the value to be decoded corresponding to the attribute prediction residual is not 1.
[0285] Optionally, the decoding module further includes:
[0286] A fourth decoding unit, configured to decode a target parameter, wherein the target parameter is used to indicate a continuous statistical value of a to-be-decoded point whose attribute prediction residual is zero;
[0287] The first decoding unit is specifically configured to:
[0288] When the target parameter is 0, the first identifier is decoded using the attribute prediction mode information as context.
[0289] Optionally, the attribute prediction mode includes a first type of prediction mode or a second type of prediction mode, and the first decoding unit is specifically configured to:
[0290] Decoding the first identifier based on a first context or a second context, where the first context is a context for decoding the first identifier in the first type of prediction mode, and the second context is a context for decoding the first identifier in the second type of prediction mode;
[0291] or
[0292] When the first identifier indicates that the value to be decoded corresponding to the attribute prediction residual is not 0, the second decoding unit is specifically used to: decode the second identifier based on a third context or a fourth context, the third context is the context for decoding the second identifier under the first type of prediction mode, and the fourth context is the context for decoding the second identifier under the second type of prediction mode.
[0293] Optionally, the determining module is specifically configured to:
[0294] When the maximum attribute interpolation value corresponding to the to-be-decoded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-decoded point is the first type of prediction mode; or
[0295] When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-decoded point is the second type of prediction mode.
[0296] Optionally, the attribute prediction mode includes k prediction modes, where k is a positive integer, and the first decoding unit is specifically configured to:
[0297] Decoding the first identifier based on the k contexts;
[0298] or
[0299] When the first flag indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 0, the second decoding unit is specifically configured to:
[0300] Decoding the second identifier based on the k contexts;
[0301] The k contexts are respectively used to indicate the k prediction modes.
[0302] Optionally, the determining module is specifically configured to:
[0303] When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-decoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
[0304] 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.
[0305] The point cloud decoding and processing device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 4 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0306] Optionally, as shown in FIG8 , 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.
[0307] An embodiment of the present application further provides a terminal, comprising a processor and a communication interface, wherein the processor is configured to: determine an attribute prediction mode for attribute information of a point to be encoded; obtain an attribute prediction residual of the attribute information of the point to be encoded based on the attribute prediction mode; perform entropy encoding on the attribute prediction residual using the attribute prediction mode information as context to obtain an encoding result for the point to be encoded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode. Alternatively, the processor is configured to: determine an attribute prediction mode for attribute information of a point to be decoded; perform entropy decoding on the attribute prediction residual of the attribute information of the point to be decoded using the attribute prediction mode information as context to obtain a decoding result for the point to be decoded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode.
[0308] This terminal embodiment corresponds to the aforementioned point cloud encoding and processing method or point cloud decoding processing method embodiment. Each implementation process and implementation method of the aforementioned point cloud encoding and processing method or point cloud decoding processing method embodiment are applicable to this terminal embodiment and can achieve the same technical effects. Specifically, Figure 9 is a schematic diagram of the hardware structure of a terminal implementing an embodiment of the present application.
[0309] 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.
[0310] 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 FIG9 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.
[0311] 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.
[0312] 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.
[0313] 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 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0314] 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.
[0315] Wherein, when the terminal is an encoding terminal:
[0316] The processor 610 is configured to:
[0317] Determine the attribute prediction mode of the attribute information of the point to be coded;
[0318] Obtaining an attribute prediction residual of the attribute information of the to-be-coded point based on the attribute prediction mode;
[0319] The attribute prediction residual is entropy coded using the attribute prediction mode information as a context to obtain a coding result of the point to be coded, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0320] Optionally, the processor 610 is specifically configured to:
[0321] Encoding the first identifier using the attribute prediction mode information as context to obtain a first encoding result, wherein the first identifier is used to indicate whether the to-be-encoded value corresponding to the attribute prediction residual is 0;
[0322] When the value to be encoded corresponding to the attribute prediction residual is not 0, encoding the second identifier using the attribute prediction mode information as context to obtain a second encoding result, where the second identifier is used to indicate whether the value to be encoded corresponding to the attribute prediction residual is 1;
[0323] When the to-be-encoded value corresponding to the attribute prediction residual is neither 0 nor 1, encoding the to-be-encoded value corresponding to the attribute prediction residual to obtain a third encoding result;
[0324] The encoding result of the point to be encoded includes at least one of the first encoding result, the second encoding result and the third encoding result.
[0325] Optionally, the processor 610 is further configured to:
[0326] When the attribute prediction residual is 0, the target parameter is updated, and the updated target parameter is the target parameter before the update plus 1;
[0327] The processor 610 is specifically configured to:
[0328] When the attribute prediction residual is not zero, encoding the target parameter and encoding the first identifier using the attribute prediction mode information as context;
[0329] The target parameter is used to indicate the continuous statistical value of the to-be-coded point whose attribute prediction residual is zero.
[0330] Optionally, the attribute prediction mode includes a first type prediction mode or a second type prediction mode, and the processor 610 is specifically configured to:
[0331] Encoding the first identifier based on a first context or a second context, wherein the first context is a context for encoding the first identifier in the first type of prediction mode, and the second context is a context for encoding the first identifier in the second type of prediction mode;
[0332] or
[0333] The processor 610 is specifically configured to:
[0334] The second identifier is encoded based on a third context or a fourth context, wherein the third context is a context for encoding the second identifier under the first type of prediction mode, and the fourth context is a context for encoding the second identifier under the second type of prediction mode.
[0335] Optionally, the processor 610 is specifically configured to:
[0336] When the maximum attribute interpolation value corresponding to the to-be-coded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-coded point is the first type of prediction mode; or
[0337] When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-encoded point is the second type of prediction mode.
[0338] Optionally, the attribute prediction mode includes k prediction modes, where k is a positive integer, and the processor 610 is specifically configured to:
[0339] Encoding the first identifier based on the k contexts;
[0340] or
[0341] The processor 610 is further configured to:
[0342] Encoding a second identifier based on the k contexts;
[0343] The k contexts are respectively used to indicate the k prediction modes.
[0344] Optionally, the processor 610 is specifically configured to:
[0345] When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-encoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
[0346] Wherein, when the terminal is a decoding terminal:
[0347] The processor 610 is configured to:
[0348] Determine an attribute prediction mode for attribute information of a point to be decoded;
[0349] The attribute prediction mode information is used as a context to perform entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point to obtain a decoding result of the to-be-decoded point, wherein the attribute prediction mode information is used to represent the attribute prediction mode.
[0350] Optionally, the processor 610 is specifically configured to:
[0351] Decoding a first identifier using the attribute prediction mode information as context, wherein the first identifier is used to indicate whether a value to be decoded corresponding to an attribute prediction residual of the attribute information of the point to be decoded is 0;
[0352] When the first flag indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 0, decoding the second flag using the attribute prediction mode information as context, the second flag being used to indicate whether the to-be-decoded value corresponding to the attribute prediction residual is 1;
[0353] When the second flag indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 1, the to-be-decoded value corresponding to the attribute prediction residual is decoded.
[0354] Optionally, the processor 610 is further configured to:
[0355] Decoding a target parameter, where the target parameter is used to indicate a continuous statistical value of a to-be-decoded point for which the attribute prediction residual is zero;
[0356] The processor 610 is specifically configured to:
[0357] When the target parameter is 0, the first identifier is decoded using the attribute prediction mode information as context.
[0358] Optionally, the attribute prediction mode includes a first type prediction mode or a second type prediction mode, and the processor 610 is specifically configured to:
[0359] Decoding the first identifier based on a first context or a second context, where the first context is a context for decoding the first identifier in the first type of prediction mode, and the second context is a context for decoding the first identifier in the second type of prediction mode;
[0360] or
[0361] The processor 610 is specifically configured to:
[0362] The second identifier is decoded based on a third context or a fourth context, wherein the third context is a context for decoding the second identifier under the first type of prediction mode, and the fourth context is a context for decoding the second identifier under the second type of prediction mode.
[0363] Optionally, the processor 610 is specifically configured to:
[0364] When the maximum attribute interpolation value corresponding to the to-be-decoded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-decoded point is the first type of prediction mode; or
[0365] When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-decoded point is the second type of prediction mode.
[0366] Optionally, the processor 610 is specifically configured to:
[0367] Decoding the first identifier based on the k contexts;
[0368] or
[0369] The processor 610 is specifically configured to:
[0370] Decoding the second identifier based on the k contexts;
[0371] The k contexts are respectively used to indicate the k prediction modes.
[0372] Optionally, the processor 610 is specifically configured to:
[0373] When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-decoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
[0374] The embodiments of the present application can improve coding efficiency.
[0375] 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 FIG6 or FIG7 and achieve the same technical effect. To avoid repetition, they will not be elaborated here.
[0376] 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.
[0377] 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.
[0378] 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.
[0379] 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.
[0380] 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.
[0381] 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.
[0382] 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.
[0383] 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.
[0384] 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, performed by an encoding end, the method comprising: Determine an attribute prediction mode for attribute information of a point to be coded; Acquire an attribute prediction residual of the attribute information of the to-be-coded point based on the attribute prediction mode; The attribute prediction mode information is used as a context to perform entropy coding on the attribute prediction residual to obtain a coding result of the point to be coded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode.
2. The method according to claim 1, wherein: The entropy encoding the attribute prediction residual using the attribute prediction mode information as a context includes: The first identifier is encoded using the attribute prediction mode information as a context to obtain a first encoding result, wherein the first identifier is used to indicate whether the to-be-encoded value corresponding to the attribute prediction residual is 0; When the to-be-encoded value corresponding to the attribute prediction residual is not 0, encoding the second identifier using the attribute prediction mode information as a context to obtain a second encoding result, wherein the second identifier is used to indicate whether the to-be-encoded value corresponding to the attribute prediction residual is 1; When the to-be-encoded value corresponding to the attribute prediction residual is not 0 and not 1, encoding the to-be-encoded value corresponding to the attribute prediction residual to obtain a third encoding result; The encoding result of the point to be encoded includes at least one of the first encoding result, the second encoding result and the third encoding result.
3. The method according to claim 2, wherein: Before encoding the first identifier using the attribute prediction mode information as context, the method further includes: When the attribute prediction residual is 0, the target parameter is updated, and the updated target parameter is the target parameter before the update plus 1; The step of encoding the first identifier by using the attribute prediction mode information as a context includes: When the attribute prediction residual is not 0, encoding the target parameter, and encoding the first identifier using the attribute prediction mode information as context; The target parameter is used to indicate the continuous statistical value of the to-be-encoded point whose attribute prediction residual is zero.
4. The method according to claim 2, wherein: The attribute prediction mode includes a first type of prediction mode or a second type of prediction mode, and encoding the first identifier using the attribute prediction mode information as a context includes: Encode the first identifier based on a first context or a second context, wherein the first context is a context for encoding the first identifier in the first type of prediction mode, and the second context is a context for encoding the first identifier in the second type of prediction mode; or The step of encoding the second identifier by using the attribute prediction mode information as a context includes: The second identifier is encoded based on a third context or a fourth context, wherein the third context is a context for encoding the second identifier under the first type of prediction mode, and the fourth context is a context for encoding the second identifier under the second type of prediction mode. The context of the identity.
5. The method according to claim 4, wherein: The determining of the attribute prediction mode of the attribute information of the to-be-coded point includes: When the maximum attribute interpolation value corresponding to the to-be-coded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-coded point is a first type of prediction mode; or When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-encoded point is the second type of prediction mode.
6. The method according to claim 2, wherein: The attribute prediction mode includes k prediction modes, k is a positive integer, and encoding the first identifier using the attribute prediction mode information as a context includes: Encoding the first identifier based on the k contexts; or The step of encoding the second identifier by using the attribute prediction mode information as a context includes: Encoding a second identifier based on the k contexts; The k contexts are respectively used to indicate the k prediction modes.
7. The method according to claim 6, wherein: The determining of the attribute prediction mode of the attribute information of the to-be-coded point includes: When the maximum attribute interpolation value corresponding to the to-be-encoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-encoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
8. A point cloud decoding processing method, executed by a decoding end, the method comprising: Determine an attribute prediction mode of attribute information of a point to be decoded; The attribute prediction mode information is used as a context to perform entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point to obtain a decoding result of the to-be-decoded point, wherein the attribute prediction mode information is used to characterize the attribute prediction mode.
9. The method according to claim 8, wherein: The method of performing entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point by using the attribute prediction mode information as a context comprises: Decoding a first identifier using the attribute prediction mode information as context, wherein the first identifier is used to indicate whether a value to be decoded corresponding to an attribute prediction residual of the attribute information of the point to be decoded is 0; In a case where the first identifier indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 0, the attribute prediction mode information is used as a context to decode the second identifier, wherein the second identifier is used to indicate whether the to-be-decoded value corresponding to the attribute prediction residual is 1; When the second flag indicates that the to-be-decoded value corresponding to the attribute prediction residual is not 1, the to-be-decoded value corresponding to the attribute prediction residual is decoded.
10. The method according to claim 9, wherein: Before decoding the first identifier using the attribute prediction mode information as context, the method further includes: Decoding a target parameter, where the target parameter is used to indicate a continuous statistical value of a to-be-decoded point whose attribute prediction residual is zero; The method of decoding the first identifier by using the attribute prediction mode information as a context includes: When the target parameter is 0, the attribute prediction mode information is used as context to decode the first identifier.
11. The method according to claim 9, wherein: The attribute prediction mode includes a first type of prediction mode or a second type of prediction mode, and the decoding of the first identifier using the attribute prediction mode information as a context includes: Decoding the first identifier based on a first context or a second context, wherein the first context is a context for decoding the first identifier in the first type of prediction mode, and the second context is a context for decoding the first identifier in the second type of prediction mode; or The decoding of the second identifier by using the attribute prediction mode information as a context includes: The second identifier is decoded based on a third context or a fourth context, wherein the third context is a context for decoding the second identifier under the first type of prediction mode, and the fourth context is a context for decoding the second identifier under the second type of prediction mode.
12. The method according to claim 11, wherein: The determining of the attribute prediction mode of the attribute information of the to-be-decoded point includes: When the maximum attribute interpolation value corresponding to the to-be-decoded point is less than a preset value, determining that the attribute prediction mode of the attribute information of the to-be-decoded point is a first type of prediction mode; or When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, it is determined that the attribute prediction mode of the attribute information of the to-be-decoded point is the second type of prediction mode.
13. The method according to claim 9, wherein: The attribute prediction mode includes k prediction modes, where k is a positive integer, and the decoding of the first identifier using the attribute prediction mode information as a context includes: Decoding the first identifier based on the k contexts; or The decoding of the second identifier by using the attribute prediction mode information as a context includes: Decoding the second identifier based on the k contexts; The k contexts are respectively used to indicate the k prediction modes.
14. The method according to claim 13, wherein: The determining of the attribute prediction mode of the attribute information of the to-be-decoded point includes: When the maximum attribute interpolation value corresponding to the to-be-decoded point is greater than or equal to a preset value, an attribute prediction mode of the attribute information of the to-be-decoded point is selected from the k prediction modes based on a rate-distortion optimization algorithm.
15. A point cloud coding processing device, comprising: A determination module, used to determine an attribute prediction mode of attribute information of a point to be encoded; An acquisition module, used for acquiring an attribute prediction residual of the attribute information of the to-be-encoded point based on the attribute prediction mode; The encoding module is used to perform entropy encoding on the attribute prediction residual by taking the attribute prediction mode information as context to obtain the encoding result of the point to be encoded, wherein the attribute prediction mode information is used to characterize the attribute prediction mode.
16. A point cloud decoding processing device, comprising: A determination module, used to determine an attribute prediction mode of the attribute information of the point to be decoded; The decoding module is used to perform entropy decoding on the attribute prediction residual of the attribute information of the to-be-decoded point using the attribute prediction mode information as a context to obtain a decoding result of the to-be-decoded point, wherein the attribute prediction mode information is used to characterize the attribute prediction mode.
17. 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 7; 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 8 to 14.
18. 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 7, or, when executed by a processor, implements the steps of the point cloud decoding processing method as described in any one of claims 8 to 14.
19. A computer program product, wherein the computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the steps of the point cloud encoding processing method as described in any one of claims 1 to 7, or, when the program or instructions are executed by the processor, the steps of the point cloud decoding processing method as described in any one of claims 8 to 14 are implemented.
Citation Information
Patent Citations
Data encoding method and device, data decoding method and device and storage medium
CN112352431A
Point cloud attribute encoding and decoding method and device based on hybrid encoding
CN112565734A
Method and equipment for attribute entropy coding and entropy decoding of point cloud
CN112995662A
Adaptive compression run-length coding method for color attributes of point cloud
CN113905242A
Prediction coding and decoding method and device for point cloud attribute information
CN115412715A
