Coding method, decoding method, code stream, coder, decoder and storage medium
By determining the weight information of child nodes and parent nodes in point cloud encoding and decoding technology, and dynamically adjusting the prediction weight value, the problem of attribute correlation being ignored in the existing technology is solved, and the encoding and decoding efficiency and prediction accuracy are improved.
Patent Information
- Application Number
- PCT/CN2023/079890
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-12
AI Technical Summary
Existing point cloud encoding and decoding technology ignores the attribute correlation between child nodes and parent nodes in the point cloud during the weighted prediction process, resulting in reduced prediction accuracy and low encoding and decoding efficiency.
By determining the first weight information and the second weight information of the parent node of the current child node to be decoded, the prediction weight value is dynamically adjusted to reflect the attribute correlation between the parent node and the child node, thereby improving prediction accuracy and editing in weighted prediction. Decoding efficiency.
It improves the prediction accuracy and compression performance of point cloud encoding and decoding, and reduces the code rate without increasing the time complexity.
Smart Images

Figure CN2023079890_12092024_PF_FP_ABST
Abstract
Description
Coding and decoding method, code stream, encoder, decoder and storage medium Technical Field
[0001] The embodiments of the present application relate to the field of point cloud encoding and decoding technology, and in particular to an encoding and decoding method, a bit stream, an encoder, a decoder, and a storage medium. Background Art
[0002] In the geometry-based point cloud compression (G-PCC) codec framework, the geometric information of the point cloud and the attribute information corresponding to the points in the point cloud are encoded separately. In the G-PCC codec framework, the encoding and decoding of attribute information can include region-adaptive transformation based on upsampling prediction and lifting transformation based on hierarchical structure division.
[0003] In the process of weighted prediction, although the relevant technology fully considers the correlation between neighboring nodes and the current sub-node to be encoded in the geometric space, it ignores their attribute correlation and is not a reasonable weighted prediction method, which reduces the accuracy of the prediction and loses the encoding and decoding efficiency.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a coding and decoding method, a code stream, an encoder, a decoder, and a storage medium, which can improve the accuracy of prediction while improving the coding and decoding efficiency and compression performance.
[0006] The technical solution of the embodiment of the present application can be implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a decoding method, applied to a decoder, the method comprising:
[0008] Determine first weight information of a parent node of a current child node to be decoded, and second weight information of the current child node to be decoded;
[0009] Determining a predicted weight value of a parent node of the current child node to be decoded according to the first weight information and the second weight information;
[0010] The attribute prediction value of the current child node to be decoded is determined according to the prediction weight value of the parent node of the current child node to be decoded.
[0011] In a second aspect, an embodiment of the present application provides an encoding method, applied to an encoder, the method comprising:
[0012] Determine first weight information of a parent node of a current child node to be encoded, and second weight information of the current child node to be encoded;
[0013] Determining a predicted weight value of a parent node of the current child node to be encoded according to the first weight information and the second weight information;
[0014] The attribute prediction value of the current child node to be encoded is determined according to the prediction weight value of the parent node of the current child node to be encoded.
[0015] In a third aspect, an embodiment of the present application provides a code stream, which is generated by bit encoding based on information to be encoded; wherein the information to be encoded includes at least: quantized coefficient residuals.
[0016] In a fourth aspect, an embodiment of the present application provides an encoder, the encoder including a first determining unit; wherein,
[0017] The first determination part is configured to determine the first weight information of the parent node of the current child node to be encoded, and the second weight information of the current child node to be encoded; determine the predicted weight value of the parent node of the current child node to be encoded based on the first weight information and the second weight information; determine the attribute prediction value of the current child node to be encoded based on the predicted weight value of the parent node of the current child node to be encoded.
[0018] In a fifth aspect, an embodiment of the present application provides an encoder, the encoder including a first memory and a first processor; wherein,
[0019] The first memory is used to store a computer program that can be run on the first processor;
[0020] The first processor is configured to execute the encoding method described above when running the computer program.
[0021] In a sixth aspect, an embodiment of the present application provides a decoder, the decoder including a second determining unit; wherein,
[0022] The second determination unit is configured to determine the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; determine the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information; and determine the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded.
[0023] In a seventh aspect, an embodiment of the present application provides a decoder, the decoder including a second memory and a second processor; wherein,
[0024] The second memory is used to store a computer program that can be run on the second processor;
[0025] The second processor is configured to execute the above-mentioned decoding method when running the computer program.
[0026] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, it implements the decoding method as described in the first aspect, or implements the encoding method as described in the second aspect.
[0027] The embodiment of the present application provides a coding and decoding method, a code stream, an encoder, a decoder and a storage medium, wherein the encoder and decoder determine the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; based on the first weight information and the second weight information, determine the predicted weight value of the parent node of the current child node to be decoded; and determine the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded. It can be seen that in the embodiment of the present application, the encoder and decoder can first determine the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and then can dynamically adjust the predicted weight value of the parent node of the current child node to be decoded in combination with the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, to ensure that when the attribute correlation between the parent node and the child node is stronger, the proportion of the predicted weight value corresponding to the parent node is also higher when weighted prediction processing is performed. That is to say, in the embodiments of the present application, the attribute correlation between the parent node and the child node can be fully considered, thereby improving the accuracy of the prediction while improving the encoding and decoding efficiency and compression performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG1 is a schematic diagram of a network architecture of a point cloud encoding and decoding method provided in an embodiment of the present application;
[0029] FIG2 is a schematic diagram of a composition framework of a G-PCC encoder;
[0030] FIG3 is a schematic diagram of a composition framework of a G-PCC decoder;
[0031] Figure 4 is a schematic diagram of the nearest neighbor;
[0032] FIG5 is a schematic diagram of an implementation flow of a point cloud decoding method proposed in an embodiment of the present application;
[0033] FIG6 is a schematic diagram of valid neighbor nodes;
[0034] FIG7 is a schematic diagram of an implementation flow of a point cloud encoding method proposed in an embodiment of the present application;
[0035] FIG8 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0036] FIG9 is a schematic diagram of a specific hardware structure of an encoder provided in an embodiment of the present application;
[0037] FIG10 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application;
[0038] FIG11 is a schematic diagram of a specific hardware structure of a decoder provided in an embodiment of the present application;
[0039] FIG12 is a schematic diagram of the composition structure of a coding and decoding system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0042] In the following description, reference is made to "some embodiments," which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first, second, and third" in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first, second, and third" may be interchanged in a specific order or sequential order where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0043] Before further explaining the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained first. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:
[0044] Point Cloud Compression (PCC);
[0045] Geometry-based Point Cloud Compression (G-PCC or GPCC);
[0046] Video-based Point Cloud Compression (V-PCC or VPCC);
[0047] Octree;
[0048] Intra Prediction;
[0049] Look Up Table (LUT);
[0050] Red-Green-Blue (RGB);
[0051] Luminance-Chrominance (YUV);
[0052] Level of Detail (LOD);
[0053] Predicting Transform;
[0054] Lifting Transform;
[0055] Region Adaptive Hierarchal Transform (RAHT);
[0056] Context-based Adaptive Binary Arithmetic Coding (CABAC)
[0057] It can be understood that point cloud is a three-dimensional representation of the surface of an object. Point cloud (data) of the surface of an object can be collected through acquisition equipment such as photoelectric radar, lidar, laser scanner, multi-view camera, etc.
[0058] In addition, a point cloud refers to a collection of massive three-dimensional points. The points in the point cloud can include the location information and attribute information of the points. For example, the location information of a point can be the three-dimensional coordinate information of the point. The location information of a point can also be called the geometric information of the point. For example, the attribute information of a point can include color information and / or reflectivity, etc. For example, color information can be information in any color space. For example, color information can be RGB information. R represents red (Red, R), G represents green (Green, G), and B represents blue (Blue, B). For another example, color information can be luminance and chrominance (YCbCr, YUV) information. Y represents brightness, Cb (U) represents blue chrominance, and Cr (V) represents red chrominance.
[0059] For example, a point cloud obtained based on the principle of laser measurement can include the three-dimensional coordinate information of the point and the laser reflection intensity (reflectance) of the point. For another example, a point cloud obtained based on the principle of photogrammetry can include the three-dimensional coordinate information of the point and the color information of the point. For another example, a point cloud obtained by combining the principles of laser measurement and photogrammetry can include the three-dimensional coordinate information of the point, the laser reflection intensity (reflectance) of the point, and the color information of the point.
[0060] Point clouds can be divided into the following categories according to the acquisition method:
[0061] The first type of static point cloud: the object is stationary and the device used to obtain the point cloud is also stationary;
[0062] The second type of dynamic point cloud: the object is moving, but the device that obtains the point cloud is stationary;
[0063] The third type of dynamic point cloud acquisition: the device that acquires the point cloud is moving.
[0064] For example, point clouds can be divided into two categories according to their usage:
[0065] Category 1: Machine perception point cloud, which can be used in scenarios such as autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, and disaster relief robots;
[0066] Category 2: Human eye perception point cloud, which can be used in point cloud application scenarios such as digital cultural heritage, free viewpoint broadcasting, 3D immersive communication, and 3D immersive interaction.
[0067] Since point clouds are a collection of massive points, storing point clouds not only consumes a lot of memory, but is also not conducive to transmission. There is also not enough bandwidth to support direct transmission of point clouds at the network layer without compression. Therefore, point clouds need to be compressed.
[0068] To date, the point cloud coding framework that can compress point clouds can be the G-PCC codec framework or the V-PCC codec framework provided by the Moving Picture Experts Group (MPEG), or the AVS-PCC codec framework provided by the Audio Video Standard (AVS). Among them, the G-PCC codec framework can be used to compress the first type of static point cloud and the third type of dynamically acquired point cloud, and the V-PCC codec framework can be used to compress the second type of dynamic point cloud. In the embodiments of the present application, the description is mainly based on the G-PCC codec framework.
[0069] An embodiment of the present application provides a network architecture of a point cloud encoding and decoding system including a decoding method and an encoding method. FIG1 is a schematic diagram of a network architecture of a point cloud encoding and decoding system provided by an embodiment of the present application. As shown in FIG1 , the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01. During the implementation process, the electronic device can be various types of devices with point cloud encoding and decoding functions. For example, the electronic device can include a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., which is not limited by the embodiment of the present application. Among them, the decoder or encoder in the embodiment of the present application can be the above-mentioned electronic device.
[0070] Among them, the electronic device in the embodiment of the present application has a point cloud encoding and decoding function, generally including a point cloud encoder (ie, encoder) and a point cloud decoder (ie, decoder).
[0071] The following describes the related technologies using the G-PCC encoding and decoding framework as an example.
[0072] As you can understand, in the point cloud G-PCC codec framework, the point cloud data to be encoded is first divided into multiple slices through slice partitioning. In each slice, the geometric information of the point cloud and the attribute information corresponding to each point cloud are encoded separately.
[0073] Figure 2 shows a schematic diagram of the G-PCC encoder architecture. As shown in Figure 2, during the geometry encoding process, the geometric information is transformed so that the entire point cloud is contained within a bounding box. Quantization then occurs. This quantization step primarily serves a scaling purpose. Due to quantization rounding, the geometric information of some point clouds becomes identical. Parameters are then used to determine whether to remove duplicate points. This process of quantization and removing duplicate points is also known as voxelization. The bounding box is then partitioned into an octree or a prediction tree is constructed. During this process, arithmetic coding is performed on the points in the leaf nodes of the partition to generate a binary geometry bitstream. Alternatively, arithmetic coding is performed on the intersection points (vertices) generated by the partition (surface fitting is performed based on the intersection points) to generate a binary geometry bitstream. During the attribute encoding process, after the geometry encoding is completed and the geometric information is reconstructed, color conversion is performed to convert the color information (i.e., attribute information) from the RGB color space to the YUV color space. The reconstructed geometry information is then used to recolor the point cloud, aligning the unencoded attribute information with the reconstructed geometry information. Attribute encoding is mainly performed on color information. In the process of color information encoding, there are two main transformation methods. One is the distance-based lifting transformation that relies on LOD partitioning, and the other is direct RAHT transformation. Both methods convert color information from the spatial domain to the frequency domain, and obtain high-frequency coefficients and low-frequency coefficients through transformation. Finally, the coefficients are quantized and then arithmetic coding is performed on the quantized coefficients to generate a binary attribute bit stream.
[0074] Figure 3 shows a schematic diagram of the composition framework of a G-PCC decoder. As shown in Figure 3, for the acquired binary bit stream, the geometric bit stream and attribute bit stream in the binary bit stream are first decoded independently. When decoding the geometric bit stream, the geometric information of the point cloud is obtained through arithmetic decoding-reconstruction of the octree / reconstruction of the prediction tree-reconstruction of the geometry-coordinate inverse conversion; when decoding the attribute bit stream, the attribute information of the point cloud is obtained through arithmetic decoding-dequantization-LOD partitioning / RAHT-color inverse conversion, and the point cloud data to be encoded (i.e., the output point cloud) is restored based on the geometric information and attribute information.
[0075] In summary, the current attribute coding of G-PCC can be divided into regional adaptive transform (RAHT) based on upsampling prediction and lifting transform (Lifting Transform) based on hierarchical structure division.
[0076] The regional adaptive transformation based on upsampling prediction can first construct 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 regional adaptive transformation are performed layer by layer from the root node from top to bottom. If the current node is a root node, upsampling prediction is not performed, and the attribute information of the node is directly subjected to RAHT transformation. Then, the DC coefficient (DC coefficient) and AC coefficient (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 collinear with the current node to be coded, and the neighboring child node coplanar and collinear 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 AC coefficient residual, and quantize and entropy code the AC coefficient residual. 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
[0077] The lifting transformation based on hierarchical structure partitioning can first divide the point cloud to be encoded into layers using level of detail (LoD) partitioning to establish a hierarchical structure of the point cloud. During this process, the bottom-level points are first encoded and decoded. 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 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 finally obtain the code stream of attribute information.
[0078] In order to remove redundant information in the spatial domain, upsampling prediction is introduced in the RAHT transform. Since the RAHT transform is a top-to-bottom layer-by-layer transformation, when encoding the current layer, the parent node and grandparent node of the child node of the current layer and some child nodes of the same layer have been encoded. Therefore, the parent node of the current child node and the neighbor nodes of the parent node and the encoded neighbor nodes of the same layer can be used to predict the child nodes of the current node. The entire upsampling prediction process can be divided into two steps: (1) first perform a neighbor search; (2) perform a weighted prediction based on the nearest neighbors found.
[0079] When performing neighbor search, first, determine the number of grandparent neighbors of the current child node. If the number of grandparent neighbors is less than the threshold 1, no neighbor search and weighted prediction are performed. The original attribute information is directly subjected to RAHT transformation, and then the obtained AC coefficients are quantized and entropy coded; otherwise, a nearest neighbor search is performed.
[0080] Figure 4 is a schematic diagram of the nearest neighbor. As shown in Figure 4, when performing the nearest neighbor search, its search range is: the parent node of the current child node to be encoded (1), the coplanar neighbor nodes of the parent node of the current child node to be encoded (6), the collinear neighbor nodes of the parent node of the current child node to be encoded (12), the coplanar neighbor nodes of the current child node to be encoded (6), and the collinear neighbor nodes of the current child node to be encoded (12). The above neighbor nodes are searched in sequence. If the neighbor node exists, its corresponding index information is recorded.
[0081] Then, the number of neighbors of the parent node (including the parent node itself) is counted. If the number of neighbors of the parent node is less than the threshold 2, no weighted prediction is performed, and the original attribute information of the current node to be encoded is directly subjected to RAHT transformation, and then the obtained AC coefficients are quantized and entropy coded; otherwise, weighted prediction is performed.
[0082] When performing weighted prediction, the nearest neighbors found in the neighbor search are used to perform weighted prediction on each child node of the current node to be coded. For example, the prediction weight of the parent node is set to 9, the prediction weight of the neighbor child node coplanar with the current child node to be coded is 5, the prediction weight of the neighbor child node colinear with the current child node to be coded is 2, the prediction weight of the neighbor parent node coplanar with the current child node to be coded is 3, and the prediction weight of the neighbor parent node colinear with the current child node to be coded is 1.
[0083] Among them, the parent node can be used to predict each child node of the current block to be encoded, and the neighbor child node can also be used to predict the adjacent child node to be encoded. Other neighbor parent nodes need to be further judged whether they can be used to predict the child nodes of the current block. The judgment steps are as follows:
[0084] First, two prediction thresholds are set based on the attribute value of the parent node to further filter the nearest neighbors and filter out unreasonable points to improve the accuracy of the prediction. Let these two thresholds be limitLow and limitHigh, and let the attribute value of the parent node be attrPar, then limitLow = attrpar × 2 (1) limitHigh = attrpar × 25 (2)
[0085] Assume that the attribute value of the neighbor of the current parent node is attrNei, and make the following judgment on it: limitLow<attrNei<limitHigh (3)
[0086] If the condition is not met, the current node cannot be used to predict the child node of the current block to be encoded; if the condition is met, continue to make the following judgment;
[0087] Next, determine whether the current neighbor node meets the conditions of being coplanar and colinear with the current sub-node to be encoded. If this condition is not met, the current neighbor node cannot be used to perform weighted prediction on the current sub-node to be encoded; if this condition is met, the current neighbor node is used to perform weighted prediction on the current sub-node to be encoded.
[0088] Finally, each child node of the current node to be encoded uses the neighboring nodes that meet the conditions as a reference point set to perform weighted prediction and obtain the attribute prediction value.
[0089] In the weighted prediction process, related technologies specify prediction weights for each type of neighboring node of the current subnode to be encoded. When performing weighted prediction, the corresponding prediction weights are directly selected for weighting. While this weighted prediction method fully considers the geometric correlation between neighboring nodes and the current subnode to be encoded, it ignores the correlation between their attributes. In some cases, weighted prediction based solely on geometric position is not a reasonable method.
[0090] It can be seen that common point cloud encoding and decoding technologies do not fully utilize the attribute correlation between neighbor nodes and the current sub-node to be encoded, thereby reducing the accuracy of prediction and losing coding efficiency.
[0091] In order to solve the above problem, in an embodiment of the present application, the codec determines the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; based on the first weight information and the second weight information, the predicted weight value of the parent node of the current child node to be decoded is determined; based on the predicted weight value of the parent node of the current child node to be decoded, the attribute prediction value of the current child node to be decoded is determined. It can be seen that in an embodiment of the present application, the codec can first determine the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and then the predicted weight value of the parent node of the current child node to be decoded can be dynamically adjusted in combination with the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, to ensure that when the attribute correlation between the parent node and the child node is stronger, the proportion of the predicted weight value corresponding to the parent node is also higher when weighted prediction processing is performed. That is to say, in the embodiments of the present application, the attribute correlation between the parent node and the child node can be fully considered, thereby improving the accuracy of the prediction while improving the encoding and decoding efficiency and compression performance.
[0092] The point cloud encoding method in the embodiment of the present application can be applied to the entropy encoding part shown in Figure 2. In addition, the point cloud decoding method in the embodiment of the present application can also be applied to the entropy decoding part shown in Figure 3. In other words, the point cloud encoding and decoding method in the embodiment of the present application can be applied to both the encoder and the decoder, or even to both the encoder and the decoder at the same time, but this embodiment of the present application does not specifically limit this.
[0093] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0094] The present application proposes a point cloud decoding method. FIG5 is a schematic diagram of an implementation flow of the point cloud decoding method proposed in the present application. As shown in FIG5 , the method for performing point cloud decoding processing by the decoder may include the following steps:
[0095] Step 101: Determine first weight information of a parent node of a current child node to be decoded, and second weight information of the current child node to be decoded.
[0096] In an embodiment of the present application, the first weight information of the parent node of the current child node to be decoded may be determined first, and at the same time, the second weight information of the current child node to be decoded may also be determined.
[0097] It can be understood that in an embodiment of the present application, the parent node of the current child node to be decoded can be a point in the point cloud to be decoded, and the current node (i.e., the parent node of the current child node to be decoded) can be a block with a RAHT transformation unit of 2×2×2. Correspondingly, the child node of the current node (i.e., the current child node to be decoded) can be a sub-block in the block with a RAHT transformation unit of 2×2×2.
[0098] It is understood that in the embodiment of the present application, at the decoding end, an octree structure is first constructed from the bottom up based on the geometric information, that is, a transform tree is constructed, and then parsed layer by layer starting from the root node. The transform unit of RAHT is a 2×2×2 block, which can be defined as the node to be decoded, that is, the current node (that is, the parent node of the current child node to be decoded).
[0099] It is understood that, in embodiments of the present application, each node of the constructed transform tree may include Morton code information, weight information, and attribute information corresponding to the node. For example, when parsing based on the constructed transform tree, the parent node of the child node currently to be decoded may correspond to the Morton code information of the parent node of the child node currently to be decoded, the weight information of the parent node of the child node currently to be decoded, and the attribute information of the parent node of the child node currently to be decoded.
[0100] Furthermore, in an embodiment of the present application, if the parent node of the current child node to be decoded is the root node, then the code stream can be directly decoded to determine the quantized coefficients of the current child node to be decoded; the quantized coefficients are inversely quantized to determine the transformed coefficients; the transformed coefficients are inversely transformed to determine the reconstructed attribute information of the current child node to be decoded.
[0101] It should be noted that in the embodiment of the application, if the parent node of the current child node to be decoded is the root node, then subsequent weighted prediction processing may not be performed, but the quantized coefficients obtained from the decoded code stream may be inversely quantized to obtain the corresponding transformed coefficients; the transformed coefficients may then be inversely transformed to determine the reconstructed attribute information of the current child node to be decoded.
[0102] Furthermore, in an embodiment of the present application, if the parent node of the current child node to be decoded is not a root node, then the number of valid neighbors of the parent node (i.e., grandparent node) of the parent node of the current child node to be decoded and the number of valid neighbors of the parent node of the current child node to be decoded can be determined first; if the number of valid neighbors of the grandparent node of the current child node to be decoded is greater than or equal to the first threshold, and the number of valid neighbors of the parent node of the current child node to be decoded is greater than or equal to the second threshold, then the process of determining the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded can be continued, that is, subsequent weighted prediction processing can be performed.
[0103] It should be noted that, in the embodiment of the application, if the parent node of the current child node to be decoded is not the root node, then the number of valid neighbor nodes (i.e., occupied neighbor nodes at the same layer) of the parent node of the current child node to be decoded and the number of valid neighbor nodes of the grandparent node of the current child node to be decoded can be further determined, that is, the number of valid neighbors of the grandparent node and the number of valid neighbors of the parent node of the current child node to be decoded are determined. If the number of valid neighbors of the grandparent node is greater than or equal to the first threshold, and at the same time, the number of valid neighbors of the parent node of the current child node to be decoded is greater than or equal to the second threshold, then the process of determining the first weight information and the second weight information can be executed, that is, the process of executing step 101, and then the subsequent weighted prediction processing can be completed.
[0104] Furthermore, in an embodiment of the present application, if the number of valid neighbors of the parent node (i.e., grandparent node) of the parent node of the current child node to be decoded is less than a first threshold, or the number of valid neighbors of the parent node of the current child node to be decoded is less than a second threshold, then it is possible to directly decode the code stream to determine the quantized coefficients of the current child node to be decoded; perform inverse quantization processing on the quantized coefficients to determine the transformed coefficients; perform inverse transformation processing on the transformed coefficients, and then determine the reconstructed attribute information of the current child node to be decoded.
[0105] It should be noted that, in the embodiment of the application, if the parent node of the current child node to be decoded is not the root node, then the number of valid neighbor nodes of the parent node of the current child node to be decoded and the number of valid neighbor nodes of the grandparent node of the current child node to be decoded can be further determined, that is, the number of valid neighbors of the grandparent node and the number of valid neighbors of the parent node of the current child node to be decoded are determined. If the number of valid neighbors of the grandparent node is less than the first threshold, or the number of valid neighbors of the parent node of the current child node to be decoded is less than the second threshold, then subsequent weighted prediction processing may not be performed, but the quantized coefficients obtained from the decoded code stream may be inversely quantized to obtain the corresponding transformed coefficients; then the transformed coefficients may be inversely transformed, so that the reconstructed attribute information of the current child node to be decoded can be determined.
[0106] It should be noted that in the embodiments of the present application, the first threshold and the second threshold can be any pre-set values. For example, the first threshold can be 2, that is, predictionThreshold[1] = 2, and the second threshold can be 6, that is, predictionThreshold[2] = 6. The embodiments of the present application do not limit the values of the first threshold and the second threshold.
[0107] For example, in some embodiments, FIG6 is a schematic diagram of valid neighbor nodes. As shown in FIG6 , valid neighbor nodes may include occupied nodes. For example, gray circles may be used to represent valid neighbor nodes (valid nodes), where the number of valid neighbor nodes (including the grandparent node) of the grandparent node (i.e., the number of valid neighbors of the grandparent node) is 2, and the number of valid neighbor nodes (including the parent node) of the parent node (i.e., the number of valid neighbors of the parent node) is 11.
[0108] Furthermore, in an embodiment of the present application, the neighbor sub-node of the current sub-node to be decoded and the current sub-node to be decoded are neighbor nodes at the same layer; wherein, the neighbor nodes at the same layer are nodes of the same size.
[0109] It should be noted that in an embodiment of the present application, the current sub-node to be decoded and the corresponding neighbor sub-node may be neighbor nodes of the same layer, wherein neighbor nodes of the same layer may be understood as nodes decoded from the same layer, and neighbor nodes of the same layer may also be understood as nodes of the same size.
[0110] Furthermore, in an embodiment of the present application, the neighbor nodes of the grandparent node of the current subnode to be decoded may include: the grandparent node of the current subnode to be decoded, the coplanar neighbor nodes of the grandparent node of the current subnode to be decoded, and the collinear neighbor nodes of the grandparent node of the current subnode to be decoded.
[0111] Furthermore, in an embodiment of the present application, the neighbor nodes of the parent node of the current child node to be decoded may include: the parent node of the current child node to be decoded, the coplanar neighbor nodes of the parent node of the current child node to be decoded, and the collinear neighbor nodes of the parent node of the current child node to be decoded.
[0112] Furthermore, in an embodiment of the present application, the neighboring sub-nodes of the current sub-node to be decoded may include: coplanar neighboring nodes of the current sub-node to be decoded, and colinear neighboring nodes of the current sub-node to be decoded.
[0113] It should be noted that, in an embodiment of the present application, the first weight information of the parent node of the current child node to be decoded can be determined by the geometric weight of the parent node of the current child node to be decoded. The geometric weight of the parent node of the current child node to be decoded can be used to characterize the number of points (i.e., points in the point cloud) contained in the parent node of the current child node to be decoded, that is, the first weight information of the parent node of the current child node to be decoded can be used to characterize the occupancy of the parent node of the current child node to be decoded.
[0114] It should be noted that, in an embodiment of the present application, the second weight information of the current subnode to be decoded can be determined by the geometric weight of the current subnode to be decoded. The geometric weight of the current subnode to be decoded can be used to represent the number of points (i.e., points in the point cloud) contained in the current subnode to be decoded, that is, the second weight information of the current subnode to be decoded can be used to represent the occupancy of the current subnode to be decoded.
[0115] That is, in some embodiments, the first weight information of the parent node of the current child node to be decoded can be used to determine the number of points included in the parent node of the current child node to be decoded. For example, the first weight information can be used to represent the number of points included in the parent node of the current child node to be decoded. The second weight information of the current child node to be decoded can be used to determine the occupancy of the current child node to be decoded. For example, the second weight information can be used to represent the number of points included in the current child node to be decoded.
[0116] It is understood that in the embodiment of the present application, each child node of the parent node of the child node to be decoded currently has a corresponding geometric weight, wherein the geometric weights of different child nodes of the parent node of the child node to be decoded currently may be the same or different.
[0117] Step 102: Determine the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information.
[0118] In an embodiment of the present application, after determining the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded, the predicted weight value of the parent node of the current child node to be decoded can be further determined based on the first weight information and the second weight information.
[0119] It should be noted that in an embodiment of the present application, after respectively determining the first weight information representing the geometric weight of the parent node of the current child node to be decoded and the second weight information representing the geometric weight of the current child node to be decoded, the first weight information and the second weight information can be used to further adjust the predicted weight corresponding to the parent node of the current child node to be decoded, and then determine the predicted weight value of the parent node of the current child node to be decoded.
[0120] Furthermore, in an embodiment of the present application, the first weight ratio may be determined based on the number of child nodes in the parent node of the child node to be decoded currently.
[0121] It can be understood that, in the embodiment of the present application, the first weight ratio may be used to determine the number of valid child nodes (occupied child nodes) of the parent node of the current child node to be decoded.
[0122] For example, in an embodiment of the present application, the inverse of the number of valid child nodes in the parent node of the current child node to be decoded can be determined as the first weight ratio. For example, assuming that the number of valid child nodes of the current node (the parent node of the current child node to be decoded) is cnt, the first weight ratio ratio can be determined by the following formula: avg :
[0123] That is to say, if the number of valid child nodes in the current node to be encoded (the parent node of the current child node to be decoded) is cnt, since the number of points contained in the parent node is the sum of the number of points contained in each valid child node, then the average ratio of the geometric weight of each child node to the geometric weight of the parent node is That is the first weight ratio avg .
[0124] Furthermore, in an embodiment of the present application, when determining the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information, the second weight ratio can be first determined based on the first weight information and the second weight information; then the initial predicted weight value of the parent node of the current child node to be decoded can be further adjusted based on the first weight ratio and the second weight ratio, thereby determining the predicted weight value of the parent node of the current child node to be decoded.
[0125] It can be understood that in an embodiment of the present application, the second weight ratio can determine the ratio between the geometric weight of the current child node to be decoded and the geometric weight of the parent node of the current child node to be decoded, that is, the second weight ratio is the ratio between the first weight information and the second weight information.
[0126] That is, in an embodiment of the present application, the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded can also be used to determine the second weight ratio. The second weight ratio can be used to determine the ratio of the geometric weight of the current child node to be decoded to the geometric weight of the parent node of the current child node to be decoded.
[0127] Exemplarily, in an embodiment of the present application, assuming that the geometric weight of the current child node to be decoded is weightchd, and the geometric weight of its parent node (i.e., the geometric weight of the parent node of the current child node to be decoded) is weightpar, then the ratio of the geometric weight of the child node to the geometric weight of the parent node can be determined by the following formula, that is, the second weight ratio ratio is calculated:
[0128] Furthermore, in an embodiment of the present application, after respectively determining the first weight ratio and the second weight ratio, the initial prediction weight corresponding to the parent node of the current child node to be decoded can be dynamically adjusted using the first weight ratio and the second weight ratio, thereby determining the prediction weight value of the parent node of the current child node to be decoded. Specifically, the difference between the first weight ratio and the second weight ratio can be first determined, and then the initial prediction weight of the parent node of the current child node to be decoded can be further dynamically adjusted based on the difference between the first weight ratio and the second weight ratio.
[0129] It should be noted that, in an embodiment of the present application, the first weight information and the second weight information respectively represent the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and the first weight ratio can represent the average ratio of the geometric weight of each child node to the geometric weight of the parent node, and the second weight ratio is the ratio of the geometric weight of the current child node to be decoded and the parent node of the current child node to be decoded. The initial prediction weight of the parent node of the current child node to be decoded is adaptively adjusted by the difference between the first weight ratio and the second weight ratio, and the prediction weight value of the parent node can be dynamically updated in combination with the attribute correlation between the parent node and the child node, so that in the weighted prediction process of the attribute information of the child node with strong attribute correlation with the parent node, a higher weight value is assigned to the reconstructed attribute information of the parent node. In other words, by fully considering the attribute correlation between the parent node and the child node, it can be ensured that when the attribute correlation between the parent node and the child node is stronger, the proportion of the prediction weight value corresponding to the parent node is also higher when the weighted prediction process is performed.
[0130] In some embodiments, when adjusting the initial predicted weight value of the parent node of the current child node to be decoded using the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be decoded, if the difference between the first weight ratio and the second weight ratio is greater than the first value, the initial predicted weight value is reduced to determine the predicted weight value of the parent node of the current child node to be decoded.
[0131] Furthermore, in an embodiment of the present application, when the initial predicted weight value of the parent node of the current child node to be decoded is adjusted based on the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be decoded, if the difference between the first weight ratio and the second weight ratio is greater than or equal to the first value, then the initial predicted weight value can be subjected to a first correction process to determine the predicted weight value of the parent node of the current child node to be decoded.
[0132] It should be noted that, in the embodiment of the present application, the first correction process includes adjusting the initial prediction weight value according to a first preset step size, wherein the first preset step size can be any value and is not specifically limited in the present application.
[0133] In some embodiments, when adjusting the initial prediction weight value of the parent node of the current child node to be decoded using the first weight ratio and the second weight ratio, if the difference between the first weight ratio and the second weight ratio is greater than the first value, the initial prediction weight value may be reduced. That is, the first correction process may include subtracting the initial prediction weight from a positive number (a first preset step size), or may include adding the initial prediction weight to a negative number (a first preset step size).
[0134] Furthermore, in an embodiment of the present application, when the initial predicted weight value of the parent node of the current child node to be decoded is adjusted based on the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be decoded, if the difference between the second weight ratio and the first weight ratio is greater than or equal to the first value, then the initial predicted weight value can be subjected to a second correction process to determine the predicted weight value of the parent node of the current child node to be decoded.
[0135] It should be noted that, in the embodiment of the present application, the second correction process includes adjusting the initial prediction weight value according to the second preset step size, wherein the second preset step size can be any value and is not specifically limited in the present application.
[0136] In some embodiments, when adjusting the initial prediction weight value of the parent node of the current child node to be decoded using the first weight ratio and the second weight ratio, if the difference between the second weight ratio and the first weight ratio is greater than the first value, the initial prediction weight value may be increased. That is, the second correction process may include adding the initial prediction weight to a positive number (a second preset step size), or may include subtracting the initial prediction weight from a negative number (a second preset step size).
[0137] Furthermore, in an embodiment of the present application, when the initial predicted weight value of the parent node of the current child node to be decoded is adjusted based on the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be decoded, if the absolute value of the difference between the first weight ratio and the second weight ratio is less than the first value, then the initial predicted weight value can be subjected to a third correction processing to determine the predicted weight value of the parent node of the current child node to be decoded.
[0138] It should be noted that, in the embodiment of the present application, the third correction process includes adjusting the initial prediction weight value according to a third preset step size, wherein the third preset step size can be any value and is not specifically limited in the present application.
[0139] In some embodiments, when adjusting the initial prediction weight value of the parent node of the current child node to be decoded using the first weight ratio and the second weight ratio, if the absolute value of the difference between the second weight ratio and the first weight ratio is less than the first value, then it can be chosen not to adjust the initial prediction weight of the parent node of the current child node to be decoded, that is, the value of the third preset step size can be 0.
[0140] For example, in the embodiment of the present application, by using the second weight ratio ratio and the first weight ratio ratio avg The difference is used to adjust the initial prediction weight weight of the parent node of the current child node to be decoded pre_par When calculating the size of , you can refer to the following formula:
[0141] Among them, res represents the size of the ratio difference, that is, res represents the first value, which is used to control the range of adjustment; offset represents the size of the adjustment weight, that is, offset represents the correction step, which is used to control the intensity of the adjustment. It is assumed that the first correction step is equal to the second correction step.
[0142] For example, in the embodiment of the present application, by using the second weight ratio ratio and the first weight ratio ratio avg The difference is used to adjust the initial prediction weight weight of the parent node of the current child node to be decoded pre_par When calculating the size of , you can also refer to the following formula:
[0143] Among them, res represents the size of the ratio difference, that is, res represents the first value, which is used to control the adjustment range; the correction steps used to control the adjustment strength are offset1 (first correction step), offset2 (second correction step) and 0 (third correction step).
[0144] Step 103: Determine the attribute prediction value of the current child node to be decoded according to the prediction weight value of the parent node of the current child node to be decoded.
[0145] In an embodiment of the present application, after using the first weight information and the second weight information to further adjust the prediction weight corresponding to the parent node of the current child node to be decoded, and determining the prediction weight value of the parent node of the current child node to be decoded, the prediction weight value of the parent node of the current child node to be decoded can be used to predict the attribute information of the current child node to be decoded, and then determine the attribute prediction value of the current child node to be decoded.
[0146] It should be noted that in an embodiment of the present application, in the process of determining the attribute prediction value of the current child node to be decoded, the reconstructed attribute information of the neighboring nodes of the parent node of the current child node to be decoded and the reconstructed attribute information of the neighboring child nodes of the current child node to be decoded can be determined first.
[0147] It can be understood that in an embodiment of the present application, the neighbor node of the parent node of the current child node to be decoded is the parent layer neighbor node of the parent node of the current child node to be decoded (that is, the parent layer of the child node); the neighbor child node of the current child node to be decoded is the same layer neighbor node of the current child node to be decoded (that is, the same layer of the child node).
[0148] It should be noted that in an embodiment of the present application, when performing prediction processing, it is necessary to first search the parent layer neighbor nodes (i.e., the neighbor nodes of the parent node of the current child node to be decoded) and the same layer neighbor nodes (i.e., the neighbor nodes of the current child node to be decoded) of the parent node of the current child node to be decoded, and then determine the reconstruction attribute information of the valid neighbor nodes (i.e., the occupied same layer neighbor nodes) of the parent node of the current child node to be decoded and the reconstruction attribute information of the valid neighbor subnodes of the current child node to be decoded.
[0149] For example, in the embodiment of the present application, when searching for parent-layer neighbor nodes of the parent node of the current child node to be decoded, the specific search range includes: the current parent-layer node and its coplanar and colinear neighbor nodes. Record the reconstruction attribute information of the existing neighbor nodes, with A recP 、A recPface 、A recPline Respectively represent the reconstructed attribute information of the parent node of the current child node to be decoded and the coplanar and colinear neighbor nodes of the parent node of the current child node to be decoded.
[0150] For example, in the embodiment of the present application, when searching for neighbor nodes of the current sub-node to be decoded, the specific search range includes: neighbor sub-nodes that are coplanar and colinear with the current sub-node to be decoded. Record the reconstruction attribute information of the existing neighbor sub-nodes, with A recSface 、A recSline Respectively represent the reconstructed attribute information of the neighboring sub-nodes that are coplanar and colinear with the current sub-node to be decoded.
[0151] It is understood that in the embodiments of the present application, neighbor nodes can be determined using an addressing and positioning method. For example, a target location adjacent to the parent node of the child node to be decoded can be first determined; then, based on the target location, the reconstructed attribute information of the neighbor nodes of the parent node of the child node to be decoded and the valid neighbor nodes of the parent node of the child node to be decoded can be determined.
[0152] That is, in some embodiments, the position (coordinates) of the neighbor node of the parent node of the current child node to be decoded can be used to determine the position (coordinates) of the neighbor node of the parent node of the current child node to be decoded, and then the reconstructed attribute information of the valid neighbor node can be determined.
[0153] Furthermore, in an embodiment of the present application, when determining the attribute prediction value of the current child node to be decoded based on the prediction weight value of the parent node of the current child node to be decoded, the attribute prediction value of the current child node to be decoded can be determined based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded, the reconstructed attribute information of the valid neighbor child nodes of the current child node to be decoded, and the prediction weight value of the parent node of the current child node to be decoded.
[0154] In some embodiments, based on the prediction weight value of the parent node of the current child node to be decoded, a weighted operation can be performed on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded and the reconstructed attribute information of the valid neighbor child nodes of the current child node to be decoded, so that the attribute prediction value of the current child node to be decoded can be determined.
[0155] It should be noted that in an embodiment of the present application, the weight values corresponding to the valid neighbor nodes of the parent node of the current child node to be decoded and one or more valid nodes in the valid neighbor sub-nodes of the current child node to be decoded can be determined; according to the weight values corresponding to one or more valid nodes, the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded and the reconstructed attribute information of the valid neighbor sub-nodes of the current child node to be decoded are weightedly calculated to determine the attribute prediction value of the current child node to be decoded.
[0156] Furthermore, in an embodiment of the present application, when determining the attribute prediction value of the current child node to be decoded based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded, the reconstructed attribute information of the valid neighbor subnodes of the current child node to be decoded, and the predicted weight value of the parent node of the current child node to be decoded, the weight values corresponding to one or more valid nodes are determined for other valid neighbor nodes other than the parent node of the current child node to be decoded, and one or more valid nodes among the valid neighbor subnodes of the current child node to be decoded; then, according to the weight values corresponding to one or more valid nodes and the predicted weight value of the parent node of the current child node to be decoded, the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded and the reconstructed attribute information of the valid neighbor subnodes of the current child node to be decoded can be weightedly calculated, so that the attribute prediction value of the current child node to be decoded can be determined.
[0157] That is to say, in some embodiments, when weighted prediction processing is performed based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded and the attribute reconstruction information of the valid neighbor subnodes of the current child node to be decoded, the weight value of the parent node of the current child node to be decoded is the predicted weight value of the parent node of the current child node to be decoded after adjustment using the first weight information and the second weight information, while other valid neighbor nodes other than the parent node of the current child node to be decoded and one or more valid nodes among the valid neighbor subnodes of the current child node to be decoded use the weight values corresponding to the one or more valid nodes.
[0158] It is understood that in the embodiments of the present application, the weight values corresponding to different valid neighbor nodes in one or more valid nodes may be different or the same. The weight value corresponding to each valid neighbor node may be related to the Euclidean distance between the valid neighbor node and the parent node of the child node to be decoded.
[0159] For example, in the embodiment of the present application, when performing weighted prediction processing, the parent node of the child node to be decoded (the reconstructed attribute information is A recP ) The corresponding prediction weight value can be obtained by the initial prediction weight weight pre_par W obtained after adjustment recP , the effective coplanar neighbor node of the parent node of the current child node to be decoded (the reconstruction attribute information is A recPface ) is represented by the weight value W recPface , the valid collinear neighbor node of the parent node of the child node to be decoded (the reconstructed attribute information is A recPline ) is represented by the weight value W recPline , the effective coplanar neighbor node of the current child node to be decoded (the reconstruction attribute information is A recSface ) is represented by the weight value W recSface , the valid collinear neighbor nodes of the current child node to be decoded (the reconstructed attribute information is A recSline ) is represented by the weight value W recSline .
[0160] For example, in an embodiment of the present application, the attribute prediction value A of the current sub-node to be decoded is pre It can be calculated by the following formula (8) or (9):
[0161] Among them, A pre is the attribute prediction value of the current child node to be decoded, W recP 、W recPface 、W recPline 、W recSface 、W recSline ArecP 、A recPface 、A recPline 、A recSface 、A recSline The weight corresponding to each neighbor, where the weight value can be related to the Euclidean distance, n1, n2, n3, and n4 are the number of valid, parent-layer coplanar, parent-layer collinear, same-layer coplanar, and same-layer collinear neighbors of the found child node (the current child node to be decoded).
[0162] For example, in some embodiments, the parent node of the child node to be decoded (the reconstructed attribute information is A recP ) corresponding to the predicted weight value W recP The initial prediction weight can be weighted pre_par After adjustment, the effective coplanar neighbor node of the parent node of the current child node to be decoded (the reconstructed attribute information is A recPface )’s weight value W recPface The value of can be 3, the valid collinear neighbor node of the parent node of the current child node to be decoded (the reconstruction attribute information is A recPline )’s weight value W recPline The value of can be 1, the valid coplanar neighbor node of the current subnode to be decoded (the reconstruction attribute information is A recSface )’s weight value W recSface The value of can be 5, the valid collinear neighbor node of the current sub-node to be decoded (the reconstruction attribute information is A recSline )’s weight value W recSline The value can be 2.
[0163] Furthermore, in an embodiment of the present application, when determining the attribute prediction value of the current child node to be decoded, the neighbor nodes of the parent node of the current child node to be decoded and the neighbor child nodes of the current child node to be decoded can be selected for screening to determine the reference node; then, the attribute prediction value of the current child node to be decoded is determined based on the reconstructed attribute information of the reference node.
[0164] It is understandable that in an embodiment of the present application, after completing the search for the parent layer neighbor nodes and the same layer neighbor nodes, determining the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded, and the reconstructed attribute information of the valid neighbor subnodes of the current child node to be decoded, the parent layer neighbor nodes (the neighbor nodes of the parent node of the current child node to be decoded) and the same layer neighbor nodes (the neighbor subnodes of the current child node to be decoded) can also be screened and / or restricted to obtain a reference node, and then the reference node is used to determine the attribute prediction value of the current child node to be decoded. Among them, the reference node can be some or all of the neighbor nodes among the searched valid neighbor nodes of the parent node of the current child node to be decoded and the valid neighbor subnodes of the current child node to be decoded.
[0165] Further, in the embodiments of the present application, when screening and processing the neighbor nodes of the parent node of the currently to-be-decoded child node and the neighbor child nodes of the currently to-be-decoded child node to determine the reference nodes, a prediction threshold can be determined first according to the reconstruction attribute information of the parent node of the currently to-be-decoded child node; then, the neighbor nodes of the parent node of the currently to-be-decoded child node and the neighbor child nodes of the currently to-be-decoded child node can be screened and processed according to the prediction threshold, and finally the reference nodes can be determined.
[0166] It should be noted that, in the embodiments of the present application, the prediction threshold can include a first prediction threshold representing the lower threshold and a second prediction threshold representing the upper threshold.
[0167] Exemplarily, in some embodiments, the first prediction threshold and the second prediction threshold can be determined according to the reconstruction attribute information of the parent node of the currently to-be-decoded child node; then, the neighbor nodes of the parent node of the currently to-be-decoded child node and the neighbor child nodes of the currently to-be-decoded child node can be screened and processed according to the first prediction threshold and the second prediction threshold.
[0168] It should be noted that, in the embodiments of the present application, the parent layer neighbor nodes (the neighbor nodes of the parent node of the currently to-be-decoded child node) and / or the same layer neighbor nodes (the neighbor child nodes of the currently to-be-decoded child node) can be selected for screening to determine the reference nodes. Among them, when performing the screening process, the first prediction threshold limitLow and the second prediction threshold limitHigh can be determined according to the reconstruction attribute information of the parent node, referring to the above formulas (1) and (2); then, the neighbor nodes of the parent node of the currently to-be-decoded child node and / or the neighbor child nodes of the currently to-be-decoded child node can be screened and processed according to the first prediction threshold and the second prediction threshold.
[0169] Exemplarily, assuming that the attribute value of the neighbor node of the parent node of the currently to-be-decoded child node (or the neighbor child node of the currently to-be-decoded child node) is attrnei, if limitLow < attrnei < limitHigh, then it can be added to the reference neighbor point set of the to-be-predicted child nodes, that is, the neighbor node is determined as the reference node; otherwise, the neighbor node is not used for prediction, that is, it is not used as the reference node.
[0170] Further, in the embodiments of the present application, after completing the screening of the parent layer neighbor nodes (the neighbor nodes of the parent node of the currently to-be-decoded child node) and the same layer neighbor nodes (the neighbor child nodes of the currently to-be-decoded child node) to determine the reference nodes, the weight values corresponding to one or more valid nodes in the reference nodes can be determined; the reconstruction attribute information of the reference nodes can be weighted according to the weight values corresponding to the one or more valid nodes, so as to determine the attribute prediction value of the currently to-be-decoded child node.
[0171] It is understood that in the embodiments of the present application, when determining the attribute prediction value of the current child node to be decoded, a weighted calculation can be performed based on the reconstructed attribute information of the reference node. The weight values corresponding to different neighboring nodes can be different or the same. The weight value corresponding to each neighboring node can be related to the Euclidean distance between the neighboring node and the parent node of the current child node to be decoded.
[0172] For example, in the embodiment of the present application, the specific method of performing weighted calculation based on the reconstructed attribute information of the reference node can refer to the above formula (8) or (9). recP The corresponding prediction weight value can be obtained by adjusting the initial prediction weight pre_par W obtained after adjustment recP .
[0173] Furthermore, in an embodiment of the present application, after determining the attribute prediction value of the current sub-node to be decoded, it is possible to select to perform RAHT transformation on the attribute prediction value of the current sub-node to be decoded, determine the first transformation coefficient, and determine the reconstructed attribute information of the current sub-node to be decoded based on the first transformation coefficient.
[0174] Furthermore, in an embodiment of the present application, the code stream can also be decoded to determine the quantized coefficient residual of the current sub-node to be decoded; then the quantized coefficient residual can be inversely quantized to determine the coefficient residual of the current sub-node to be decoded.
[0175] Furthermore, in an embodiment of the present application, when determining the reconstructed attribute information of the current sub-node to be decoded based on the first transform coefficient, the second transform coefficient of the current sub-node to be decoded can be determined based on the first transform coefficient and the coefficient residual; then the second transform coefficient can be inversely transformed to determine the reconstructed attribute information of the current sub-node to be decoded.
[0176] In summary, through the decoding method proposed in steps 101 to 103, the predicted weight value of the parent node of the current child node to be decoded can be dynamically adjusted according to the relationship between the weight information between the parent node of the current child node to be decoded and the current child node to be decoded. The higher the proportion of the predicted weight value, the stronger the attribute correlation, and when the predicted weight value is used for weighted prediction, the more accurate the attribute prediction value of the child node obtained.
[0177] That is to say, the decoding method proposed in the embodiment of the present application, when performing weighted prediction, for the prediction weight (prediction weight value) corresponding to the parent node of the current child node to be encoded (i.e. the parent node of the current child node to be decoded), no longer directly uses a fixed weighting coefficient. Instead, it dynamically adjusts the weighting coefficient (prediction weight value) of the parent node of the current child node to be decoded by the ratio of the geometric weight (second weight information) of the current child node to be encoded (current child node to be decoded) and the geometric weight (first weight information) of its parent node (the parent node of the current child node to be decoded). It can be seen that the decoding method proposed in the embodiment of the present application is a more flexible attribute weighted prediction algorithm based on geometric weights, which improves the accuracy of prediction by taking into account the attribute correlation between the parent node of the current child node to be decoded and the current child node to be decoded.
[0178] It should be noted that, in an embodiment of the present application, the first weight information and the second weight information respectively represent the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and the first weight ratio can represent the average ratio of the geometric weight of each child node to the geometric weight of the parent node, and the second weight ratio is the ratio of the geometric weight of the current child node to be decoded and the parent node of the current child node to be decoded. The initial prediction weight of the parent node of the current child node to be decoded is adaptively adjusted by the difference between the first weight ratio and the second weight ratio, and the prediction weight value of the parent node can be dynamically updated in combination with the attribute correlation between the parent node and the child node, so that in the weighted prediction process of the attribute information of the child node with strong attribute correlation with the parent node, a higher weight value is assigned to the reconstructed attribute information of the parent node. In other words, by fully considering the attribute correlation between the parent node and the child node, it can be ensured that when the attribute correlation between the parent node and the child node is stronger, the proportion of the prediction weight value corresponding to the parent node is also higher when the weighted prediction process is performed.
[0179] In some embodiments, the decoding method proposed in the embodiments of the present application is experimentally verified, and the results are shown in Table 1. It can be seen from Table 1 that under the C1 condition, that is, the condition where the geometric lossless attribute is lossy, the overall average performance of the decoding method is unchanged, the performance of the luminance component remains unchanged, and the chrominance component has a performance gain of 0.2% and 0.3% respectively on the BD-Rate, and the time complexity remains basically unchanged.
[0180] Table 1 Performance table under C1 conditions
[0181] In some embodiments, the decoding method proposed in the embodiments of the present application is experimentally verified, and the results are shown in Table 2. It can be seen from Table 2 that under the C2 condition, that is, the condition of lossy geometric lossy attributes, the overall average performance of the algorithm is unchanged, the performance of the luminance component remains unchanged, and the chrominance component has a performance gain of 0.3% and 0.5% respectively on the BD-Rate, and the time complexity remains basically unchanged.
[0182] Table 2 Performance table under C2 conditions
[0183] Based on Table 1 and Table 2 above, it can be seen that the decoding method proposed in the embodiment of the present application can reduce the bit rate without significantly increasing the time complexity, thereby improving the encoding and decoding efficiency.
[0184] The embodiment of the present application discloses a point cloud decoding method, wherein the decoder determines the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; determines the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information; determines the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded. It can be seen that in the embodiment of the present application, the codec can first determine the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and then can dynamically adjust the predicted weight value of the parent node of the current child node to be decoded in combination with the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, to ensure that when the attribute correlation between the parent node and the child node is stronger, the proportion of the predicted weight value corresponding to the parent node is also higher when weighted prediction processing is performed. That is to say, in the embodiments of the present application, the attribute correlation between the parent node and the child node can be fully considered, thereby improving the accuracy of the prediction while improving the encoding and decoding efficiency and compression performance.
[0185] Based on the above embodiment, another embodiment of the present application proposes a point cloud encoding method. FIG7 is a schematic diagram of an implementation flow of the point cloud encoding method proposed in the embodiment of the present application. As shown in FIG7 , the method for performing point cloud encoding processing by the encoder may include the following steps:
[0186] Step 201: Determine first weight information of the parent node of the current child node to be encoded, and second weight information of the current child node to be encoded.
[0187] In an embodiment of the present application, the first weight information of the parent node of the current to-be-encoded child node may be determined first, and at the same time, the second weight information of the current to-be-encoded child node may also be determined.
[0188] It can be understood that in an embodiment of the present application, the parent node of the current child node to be encoded can be a point in the point cloud to be encoded, and the current node (i.e., the parent node of the current child node to be encoded) can be a block with a RAHT transformation unit of 2×2×2. Correspondingly, the child node of the current node (i.e., the current child node to be encoded) can be a sub-block in the block with a RAHT transformation unit of 2×2×2.
[0189] It is understood that in the embodiment of the present application, at the encoding end, an octree structure is first constructed from the bottom up based on the geometric information, that is, a transform tree is constructed, and then parsed layer by layer starting from the root node. The transform unit of RAHT is a 2×2×2 block, which can be defined as the node to be encoded, that is, the current node (that is, the parent node of the current child node to be encoded).
[0190] It is understood that, in the embodiments of the present application, each node of the constructed transform tree may include Morton code information, weight information, and attribute information corresponding to the node. For example, when parsing based on the constructed transform tree, the parent node of the child node to be encoded may correspond to the Morton code information of the parent node of the child node to be encoded, the weight information of the parent node of the child node to be encoded, and the attribute information of the parent node of the child node to be encoded.
[0191] Furthermore, in an embodiment of the present application, if the parent node of the current child node to be encoded is a root node, then the reconstructed attribute information of the current child node to be encoded can be directly subjected to RAHT transformation to determine the transformed coefficients; the transformed coefficients are quantized to determine the quantized coefficients; and the quantized coefficients are written into the bitstream.
[0192] It should be noted that in the embodiment of the application, if the parent node of the current child node to be encoded is the root node, then subsequent weighted prediction processing may not be performed, but the reconstructed attribute information of the current child node to be encoded may be subjected to RAHT transformation to determine the transformed coefficients; then the transformed coefficients may be quantized to determine the quantized coefficients; finally, the quantized coefficients may be written into the bitstream and transmitted to the decoding end.
[0193] Furthermore, in an embodiment of the present application, if the parent node of the current child node to be encoded is not a root node, then the number of valid neighbors of the parent node (i.e., grandparent node) of the parent node of the current child node to be encoded and the number of valid neighbors of the parent node of the current child node to be encoded can be determined first; if the number of valid neighbors of the grandparent node of the current child node to be encoded is greater than or equal to the first threshold, and the number of valid neighbors of the parent node of the current child node to be encoded is greater than or equal to the second threshold, then the process of determining the first weight information of the parent node of the current child node to be encoded and the second weight information of the current child node to be encoded can be continued, that is, subsequent weighted prediction processing can be performed.
[0194] It should be noted that, in the embodiment of the application, if the parent node of the current child node to be encoded is not the root node, then the number of valid neighbor nodes (i.e., occupied neighbor nodes at the same layer) of the parent node of the current child node to be encoded and the number of valid neighbor nodes of the grandparent node of the current child node to be encoded can be further determined, that is, the number of valid neighbors of the grandparent node and the number of valid neighbors of the parent node of the current child node to be encoded are determined. If the number of valid neighbors of the grandparent node is greater than or equal to the first threshold, and at the same time, the number of valid neighbors of the parent node of the current child node to be encoded is greater than or equal to the second threshold, then the process of determining the first weight information and the second weight information can be executed, that is, the process of executing step 201, and then the subsequent weighted prediction processing can be completed.
[0195] Furthermore, in an embodiment of the present application, if the number of valid neighbors of the parent node (i.e., grandparent node) of the parent node of the current child node to be encoded is less than a first threshold, or the number of valid neighbors of the parent node of the current child node to be encoded is less than a second threshold, then it is possible to directly perform a RAHT transform on the reconstructed attribute information of the parent node of the current child node to be encoded to determine the transformed coefficients; perform quantization on the transformed coefficients to determine the quantized coefficients; and write the quantized coefficients into the bitstream.
[0196] It should be noted that in the embodiment of the application, if the parent node of the current child node to be encoded is not the root node, then the number of neighbor nodes of the parent node of the current child node to be encoded and the number of neighbor nodes of the grandparent node of the current child node to be encoded can be further determined, that is, the number of effective neighbors of the grandparent node and the number of effective neighbors of the parent node of the current child node to be encoded are determined. If the number of effective neighbors of the grandparent node is less than the first threshold, or the number of effective neighbors of the parent node of the current child node to be encoded is less than the second threshold, then subsequent weighted prediction processing may not be performed, but the reconstructed attribute information of the current child node to be encoded may be subjected to RAHT transformation to determine the transformed coefficients; then the transformed coefficients may be quantized to determine the quantized coefficients; and finally the quantized coefficients may be written into the bitstream and transmitted to the decoding end.
[0197] It should be noted that in the embodiments of the present application, the first threshold and the second threshold can be any pre-set values. For example, the first threshold can be 2, that is, predictionThreshold[1] = 2, and the second threshold can be 6, that is, predictionThreshold[2] = 6. The embodiments of the present application do not limit the values of the first threshold and the second threshold.
[0198] For example, in some embodiments, as shown in Figure 6, valid neighbor nodes may include occupied nodes. For example, gray circles may be used to represent valid neighbor nodes (valid nodes), where the number of valid neighbor nodes (including the grandparent node) of the grandparent node (i.e., the number of valid neighbors of the grandparent node) is 2, and the number of valid neighbor nodes (including the parent node) of the parent node (i.e., the number of valid neighbors of the parent node) is 11.
[0199] Furthermore, in an embodiment of the present application, the neighbor sub-node of the current sub-node to be encoded and the current sub-node to be encoded are neighbor nodes at the same layer; wherein, the neighbor nodes at the same layer are nodes of the same size.
[0200] It should be noted that in an embodiment of the present application, the current sub-node to be encoded and the corresponding neighbor sub-node may be neighbor nodes of the same layer, wherein neighbor nodes of the same layer may be understood as nodes of the same layer, and neighbor nodes of the same layer may also be understood as nodes of the same size.
[0201] Furthermore, in an embodiment of the present application, the neighbor nodes of the grandparent node of the current subnode to be decoded may include: the grandparent node of the current subnode to be decoded, the coplanar neighbor nodes of the grandparent node of the current subnode to be decoded, and the collinear neighbor nodes of the grandparent node of the current subnode to be decoded.
[0202] Furthermore, in an embodiment of the present application, the neighbor nodes of the parent node of the current child node to be encoded may include: the parent node of the current child node to be encoded, the coplanar neighbor nodes of the parent node of the current child node to be encoded, and the collinear neighbor nodes of the parent node of the current child node to be encoded.
[0203] Furthermore, in an embodiment of the present application, the neighboring sub-nodes of the current sub-node to be encoded may include: coplanar neighboring nodes of the current sub-node to be encoded, and colinear neighboring nodes of the current sub-node to be encoded.
[0204] It should be noted that, in an embodiment of the present application, the first weight information of the parent node of the current child node to be encoded can be determined by the geometric weight of the parent node of the current child node to be encoded. The geometric weight of the parent node of the current child node to be encoded can be used to characterize the number of points (i.e., points in the point cloud) contained in the parent node of the current child node to be encoded, that is, the first weight information of the parent node of the current child node to be encoded can be used to characterize the occupancy of the parent node of the current child node to be encoded.
[0205] It should be noted that, in an embodiment of the present application, the second weight information of the current subnode to be encoded can be determined by the geometric weight of the current subnode to be encoded. The geometric weight of the current subnode to be encoded can be used to represent the number of points (i.e., points in the point cloud) contained in the current subnode to be encoded, that is, the second weight information of the current subnode to be encoded can be used to represent the occupancy of the current subnode to be encoded.
[0206] That is, in some embodiments, the first weight information of the parent node of the current child node to be encoded can determine the number of points included in the parent node of the current child node to be encoded. For example, the first weight information can be used to represent the number of points included in the parent node of the current child node to be encoded. The second weight information of the current child node to be encoded can determine the occupancy of the current child node to be encoded. For example, the second weight information can be used to represent the number of points included in the current child node to be encoded.
[0207] It is understood that in the embodiment of the present application, each child node of the parent node of the child node to be encoded currently has a corresponding geometric weight, wherein the geometric weights of different child nodes of the parent node of the child node to be encoded currently may be the same or different.
[0208] Step 202: Determine the predicted weight value of the parent node of the current child node to be encoded based on the first weight information and the second weight information.
[0209] In an embodiment of the present application, after determining the first weight information of the parent node of the current child node to be encoded and the second weight information of the current child node to be encoded, the predicted weight value of the parent node of the current child node to be encoded can be further determined based on the first weight information and the second weight information.
[0210] It should be noted that in an embodiment of the present application, after respectively determining the first weight information representing the geometric weight of the parent node of the current child node to be encoded and the second weight information representing the geometric weight of the current child node to be encoded, the first weight information and the second weight information can be used to further adjust the predicted weight corresponding to the parent node of the current child node to be encoded, and then determine the predicted weight value of the parent node of the current child node to be encoded.
[0211] Furthermore, in an embodiment of the present application, the first weight ratio may be determined based on the number of child nodes in the parent node of the child node to be encoded currently.
[0212] It can be understood that, in the embodiment of the present application, the first weight ratio can be used to determine the number of valid child nodes (occupied child nodes) of the parent node of the current child node to be encoded.
[0213] For example, in an embodiment of the present application, the inverse of the number of valid child nodes in the parent node of the current child node to be encoded can be determined as the first weight ratio. For example, assuming that the number of valid child nodes of the current node (the parent node of the current child node to be encoded) is cnt, the first weight ratio ratio can be determined by formula (4): avg .
[0214] That is to say, if the number of valid child nodes in the current node to be coded (the parent node of the current child node to be coded) is cnt, since the number of points contained in the parent node is the sum of the number of points contained in each valid child node, then the average ratio of the geometric weight of each child node to the geometric weight of the parent node is That is the first weight ratio avg .
[0215] Furthermore, in an embodiment of the present application, when determining the predicted weight value of the parent node of the current child node to be encoded based on the first weight information and the second weight information, the second weight ratio can be first determined based on the first weight information and the second weight information; then the initial predicted weight value of the parent node of the current child node to be encoded can be further adjusted based on the first weight ratio and the second weight ratio, thereby determining the predicted weight value of the parent node of the current child node to be encoded.
[0216] It can be understood that in an embodiment of the present application, the second weight ratio can determine the ratio between the geometric weight of the current child node to be encoded and the geometric weight of the parent node of the current child node to be encoded, that is, the second weight ratio is the ratio between the first weight information and the second weight information.
[0217] That is, in the embodiment of the present application, the first weight information of the parent node of the current child node to be encoded and the second weight information of the current child node to be encoded may be used to determine the second weight ratio. The second weight ratio may be used to determine the ratio of the geometric weights of the current child node to be encoded and the parent node of the current child node to be encoded.
[0218] For example, in an embodiment of the present application, assuming that the geometric weight of the current child node to be encoded is weightchd, and the geometric weight of its parent node (i.e., the geometric weight of the parent node of the current child node to be encoded) is weightpar, then the ratio of the geometric weight of the child node to the geometric weight of the parent node can be determined by formula (5), that is, the second weight ratio ratio is calculated.
[0219] Furthermore, in an embodiment of the present application, after respectively determining the first weight ratio and the second weight ratio, the initial prediction weight corresponding to the parent node of the current child node to be encoded can be dynamically adjusted using the first weight ratio and the second weight ratio, thereby determining the prediction weight value of the parent node of the current child node to be encoded. Specifically, the difference between the first weight ratio and the second weight ratio can be first determined, and then the initial prediction weight of the parent node of the current child node to be encoded can be further dynamically adjusted based on the difference between the first weight ratio and the second weight ratio.
[0220] It should be noted that, in an embodiment of the present application, the first weight information and the second weight information respectively represent the geometric weights of the parent node of the current child node to be encoded and the current child node to be encoded, and the first weight ratio can represent the average ratio of the geometric weight of each child node to the geometric weight of the parent node, and the second weight ratio is the ratio of the geometric weight of the current child node to be encoded and the parent node of the current child node to be encoded. The initial prediction weight of the parent node of the current child node to be encoded is adaptively adjusted by the difference between the first weight ratio and the second weight ratio, and the prediction weight value of the parent node can be dynamically updated in combination with the attribute correlation between the parent node and the child node, so that in the weighted prediction process of the attribute information of the child node with strong attribute correlation with the parent node, a higher weight value is assigned to the reconstructed attribute information of the parent node. In other words, by fully considering the attribute correlation between the parent node and the child node, it can be ensured that when the attribute correlation between the parent node and the child node is stronger, the proportion of the prediction weight value corresponding to the parent node is also higher when the weighted prediction process is performed.
[0221] In some embodiments, when adjusting the initial predicted weight value of the parent node of the current child node to be encoded using the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be encoded, if the difference between the first weight ratio and the second weight ratio is greater than the first value, the initial predicted weight value is reduced to determine the predicted weight value of the parent node of the current child node to be encoded.
[0222] Furthermore, in an embodiment of the present application, when the initial predicted weight value of the parent node of the current child node to be encoded is adjusted based on the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be encoded, if the difference between the first weight ratio and the second weight ratio is greater than or equal to the first value, then the initial predicted weight value can be subjected to a first correction process to determine the predicted weight value of the parent node of the current child node to be encoded.
[0223] It should be noted that, in the embodiment of the present application, the first correction process includes adjusting the initial prediction weight value according to a first preset step size, wherein the first preset step size can be any value and is not specifically limited in the present application.
[0224] In some embodiments, when adjusting the initial prediction weight value of the parent node of the current child node to be encoded using the first weight ratio and the second weight ratio, if the difference between the first weight ratio and the second weight ratio is greater than the first value, then the initial prediction weight value may be reduced. That is, the first correction process may include subtracting the initial prediction weight from a positive number (a first preset step size), or may include adding the initial prediction weight to a negative number (a first preset step size).
[0225] Furthermore, in an embodiment of the present application, when the initial predicted weight value of the parent node of the current child node to be encoded is adjusted based on the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be encoded, if the difference between the second weight ratio and the first weight ratio is greater than or equal to the first value, then the initial predicted weight value can be subjected to a second correction process to determine the predicted weight value of the parent node of the current child node to be encoded.
[0226] It should be noted that, in the embodiment of the present application, the second correction process includes adjusting the initial prediction weight value according to the second preset step size, wherein the second preset step size can be any value and is not specifically limited in the present application.
[0227] In some embodiments, when adjusting the initial prediction weight value of the parent node of the current child node to be encoded using the first weight ratio and the second weight ratio, if the difference between the second weight ratio and the first weight ratio is greater than the first value, then the initial prediction weight value may be increased. That is, the second correction process may include adding the initial prediction weight to a positive number (a second preset step size), or may include subtracting the initial prediction weight from a negative number (a second preset step size).
[0228] Furthermore, in an embodiment of the present application, when the initial predicted weight value of the parent node of the current child node to be encoded is adjusted based on the first weight ratio and the second weight ratio to determine the predicted weight value of the parent node of the current child node to be encoded, if the absolute value of the difference between the first weight ratio and the second weight ratio is less than the first value, then the initial predicted weight value can be subjected to a third correction processing to determine the predicted weight value of the parent node of the current child node to be encoded.
[0229] It should be noted that, in the embodiment of the present application, the third correction process includes adjusting the initial prediction weight value according to a third preset step size, wherein the third preset step size can be any value and is not specifically limited in the present application.
[0230] In some embodiments, when adjusting the initial prediction weight value of the parent node of the current child node to be encoded using the first weight ratio and the second weight ratio, if the absolute value of the difference between the second weight ratio and the first weight ratio is less than the first value, then it can be chosen not to adjust the initial prediction weight of the parent node of the current child node to be encoded, that is, the value of the third preset step size can be 0.
[0231] For example, in the embodiment of the present application, by using the second weight ratio ratio and the first weight ratio ratio avg The difference is used to adjust the initial prediction weight weight of the parent node of the current child node to be encoded pre_par When the size of , you can refer to formula (6).
[0232] Among them, res represents the size of the ratio difference, that is, res represents the first value, which is used to control the range of adjustment; offset represents the size of the adjustment weight, that is, offset represents the correction step, which is used to control the intensity of the adjustment. It is assumed that the first correction step is equal to the second correction step.
[0233] For example, in the embodiment of the present application, by using the second weight ratio ratio and the first weight ratio ratio avg The difference is used to adjust the initial prediction weight weight of the parent node of the current child node to be encoded pre_par When the size of , you can also refer to formula (7).
[0234] Among them, res represents the size of the ratio difference, that is, res represents the first value, which is used to control the adjustment range; the correction steps used to control the adjustment strength are offset1 (first correction step), offset2 (second correction step) and 0 (third correction step).
[0235] Step 203: Determine the attribute prediction value of the current child node to be encoded according to the prediction weight value of the parent node of the current child node to be encoded.
[0236] In an embodiment of the present application, after using the first weight information and the second weight information to further adjust the prediction weight corresponding to the parent node of the current child node to be encoded, and determining the prediction weight value of the parent node of the current child node to be encoded, the prediction weight value of the parent node of the current child node to be encoded can be used to predict the attribute information of the current child node to be encoded, and then determine the attribute prediction value of the current child node to be encoded.
[0237] It should be noted that in an embodiment of the present application, in the process of determining the attribute prediction value of the current child node to be encoded, the reconstructed attribute information of the neighboring nodes of the parent node of the current child node to be encoded and the reconstructed attribute information of the neighboring child nodes of the current child node to be encoded can be determined first.
[0238] It can be understood that in an embodiment of the present application, the neighbor node of the parent node of the current child node to be encoded is the parent layer neighbor node of the parent node of the current child node to be encoded (that is, the parent layer of the child node); the neighbor child node of the current child node to be encoded is the same layer neighbor node of the current child node to be encoded (that is, the same layer of the child node).
[0239] It should be noted that, in an embodiment of the present application, when performing prediction processing, it is necessary to first search the parent layer neighbor nodes (i.e., the neighbor nodes of the parent node of the current child node to be encoded) and the same layer neighbor nodes (i.e., the neighbor nodes of the current child node to be encoded) of the parent node of the current child node to be encoded, and then determine the reconstruction attribute information of the valid neighbor nodes (i.e., the occupied same layer neighbor nodes) of the parent node of the current child node to be encoded and the reconstruction attribute information of the valid neighbor subnodes of the current child node to be encoded.
[0240] For example, in the embodiment of the present application, when searching for parent-layer neighbor nodes of the parent node of the current child node to be encoded, the specific search range includes: the current parent-layer node and its coplanar and colinear neighbor nodes. Record the reconstruction attribute information of the existing neighbor nodes, with A recP 、A recPface 、A recPline Respectively represent the reconstructed attribute information of the parent node of the current child node to be encoded and the coplanar and colinear neighbor nodes of the parent node of the current child node to be encoded.
[0241] For example, in the embodiment of the present application, when searching for neighbor nodes of the current sub-node to be encoded, the specific search range includes: neighbor sub-nodes that are coplanar and colinear with the current sub-node to be encoded. Record the reconstruction attribute information of the existing neighbor sub-nodes, with A recSface 、A recSlineRespectively represent the reconstructed attribute information of the neighboring sub-nodes that are coplanar and colinear with the current sub-node to be encoded.
[0242] It is understood that in the embodiments of the present application, neighbor nodes can be determined using an addressing and positioning method. For example, a target position adjacent to the parent node of the child node to be encoded can be first determined; then, based on the target position, the reconstructed attribute information of the neighbor nodes of the parent node of the child node to be encoded and the valid neighbor nodes of the parent node of the child node to be encoded can be determined.
[0243] That is, in some embodiments, the position (coordinates) of the parent node of the child node to be encoded can be used to determine the position (coordinates) of the neighbor node of the parent node of the child node to be encoded, and then determine the reconstructed attribute information of the valid neighbor node.
[0244] Furthermore, in an embodiment of the present application, when determining the attribute prediction value of the current child node to be encoded based on the prediction weight value of the parent node of the current child node to be encoded, the attribute prediction value of the current child node to be encoded can be determined based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded, the reconstructed attribute information of the valid neighbor child nodes of the current child node to be encoded, and the prediction weight value of the parent node of the current child node to be encoded.
[0245] In some embodiments, based on the prediction weight value of the parent node of the current child node to be encoded, a weighted operation can be performed on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded and the reconstructed attribute information of the valid neighbor sub-nodes of the current child node to be encoded, so that the attribute prediction value of the current child node to be encoded can be determined.
[0246] It should be noted that in an embodiment of the present application, the weight values corresponding to the neighbor nodes of the parent node of the current child node to be encoded and one or more valid nodes among the valid neighbor sub-nodes of the current child node to be encoded can be determined; according to the weight values corresponding to one or more valid nodes, the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded and the reconstructed attribute information of the valid neighbor sub-nodes of the current child node to be encoded are weightedly calculated to determine the attribute prediction value of the current child node to be encoded.
[0247] Furthermore, in an embodiment of the present application, when determining the attribute prediction value of the current subnode to be encoded based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current subnode to be encoded, the reconstructed attribute information of the valid neighbor subnodes of the current subnode to be encoded, and the predicted weight value of the parent node of the current subnode to be encoded, for other valid neighbor nodes other than the parent node of the current subnode to be encoded, and one or more valid nodes among the valid neighbor subnodes of the current subnode to be encoded, the weight values corresponding to one or more valid nodes are determined; then, according to the weight values corresponding to one or more valid nodes and the predicted weight value of the parent node of the current subnode to be encoded, the reconstructed attribute information of the valid neighbor nodes of the parent node of the current subnode to be encoded and the reconstructed attribute information of the valid neighbor subnodes of the current subnode to be encoded can be weightedly operated, so that the attribute prediction value of the current subnode to be encoded can be determined.
[0248] That is to say, in some embodiments, when weighted prediction processing is performed based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded and the attribute reconstruction information of the valid neighbor subnodes of the current child node to be encoded, the weight value of the parent node of the current child node to be encoded is the predicted weight value of the parent node of the current child node to be encoded after adjustment using the first weight information and the second weight information, while other valid neighbor nodes other than the parent node of the current child node to be encoded and one or more valid nodes among the valid neighbor subnodes of the current child node to be encoded use the weight values corresponding to the one or more valid nodes.
[0249] It is understood that in the embodiments of the present application, the weight values corresponding to different valid neighbor nodes in one or more valid nodes may be different or the same. The weight value corresponding to each valid neighbor node may be related to the Euclidean distance between the valid neighbor node and the parent node of the child node to be encoded.
[0250] For example, in the embodiment of the present application, when performing weighted prediction processing, the parent node of the current child node to be encoded (the reconstructed attribute information is A recP ) The corresponding prediction weight value can be obtained by the initial prediction weight weight pre_par W obtained after adjustment recP , the effective coplanar neighbor node of the parent node of the current child node to be encoded (the reconstruction attribute information is A recPface ) is represented by the weight value W recPface , the valid collinear neighbor nodes of the parent node of the current child node to be encoded (the reconstructed attribute information is A recPline ) is represented by the weight value W recPline , the effective coplanar neighbor node of the current sub-node to be encoded (the reconstruction attribute information is A recSface ) is represented by the weight value WrecSface , the valid collinear neighbor nodes of the current sub-node to be encoded (the reconstructed attribute information is A recSline ) is represented by the weight value W recSline .
[0251] For example, in an embodiment of the present application, the attribute prediction value A of the current sub-node to be encoded is pre It can be calculated by formula (8) or (9).
[0252] Among them, A pre is the attribute prediction value of the current child node to be encoded, W recP 、W recPface 、W recPline 、W recSface 、W recSline A recP 、A recPface 、A recPline 、A recSface 、A recSline The weight corresponding to each neighbor, where the weight value can be related to the Euclidean distance, and n1, n2, n3, and n4 are the number of parent-layer coplanar, parent-layer collinear, same-layer coplanar, and same-layer collinear neighbors of the found child node (the current child node to be encoded).
[0253] For example, in some embodiments, the parent node of the child node to be encoded currently (the reconstructed attribute information is A recP ) corresponding to the predicted weight value W recP The initial prediction weight can be weighted pre_par After adjustment, the effective coplanar neighbor node of the parent node of the current child node to be encoded (the reconstruction attribute information is A recPface )’s weight value W recPface The value of can be 3, the valid collinear neighbor node of the parent node of the current child node to be encoded (the reconstruction attribute information is A recPline )’s weight value W recPline The value of can be 1, the valid coplanar neighbor node of the current sub-node to be encoded (the reconstruction attribute information is A recSface )’s weight value W recSface The value of can be 5, the valid collinear neighbor node of the current sub-node to be encoded (the reconstruction attribute information is A recSline )’s weight value W recSline The value can be 2.
[0254] Furthermore, in an embodiment of the present application, when determining the attribute prediction value of the current child node to be encoded, the neighbor nodes of the parent node of the current child node to be encoded and the neighbor child nodes of the current child node to be encoded can be selected for screening to determine the reference node; then, the attribute prediction value of the current child node to be encoded is determined based on the reconstructed attribute information of the reference node.
[0255] It is understandable that in an embodiment of the present application, after completing the search for the parent layer neighbor nodes and the same layer neighbor nodes, determining the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded, and the reconstructed attribute information of the valid neighbor subnodes of the current child node to be encoded, the parent layer neighbor nodes (the neighbor nodes of the parent node of the current child node to be encoded) and the same layer neighbor nodes (the neighbor subnodes of the current child node to be encoded) can also be screened and / or restricted to obtain a reference node, and then the reference node is used to determine the attribute prediction value of the current child node to be encoded. Among them, the reference node can be some or all of the neighbor nodes among the searched valid neighbor nodes of the parent node of the current child node to be encoded and the valid neighbor subnodes of the current child node to be encoded.
[0256] Furthermore, in an embodiment of the present application, when screening and processing the neighbor nodes of the parent node of the current child node to be encoded and the neighbor sub-nodes of the current child node to be encoded to determine the reference node, the prediction threshold can be first determined based on the reconstructed attribute information of the parent node of the current child node to be encoded; then the neighbor nodes of the parent node of the current child node to be encoded and the neighbor sub-nodes of the current child node to be encoded can be screened and processed based on the prediction threshold, and finally the reference node can be determined.
[0257] It should be noted that, in the embodiment of the present application, the prediction threshold may include a first prediction threshold representing a lower threshold and a second prediction threshold representing an upper threshold.
[0258] Exemplarily, in some embodiments, the first prediction threshold and the second prediction threshold can be determined based on the reconstructed attribute information of the parent node of the current child node to be encoded; then, the neighbor nodes of the parent node of the current child node to be encoded and the neighbor child nodes of the current child node to be encoded are screened based on the first prediction threshold and the second prediction threshold.
[0259] It should be noted that in the embodiments of the present application, it is possible to select and filter the parent - layer neighbor nodes (the neighbor nodes of the parent node of the currently - to - be - encoded child node) and / or the same - layer neighbor nodes (the neighbor child nodes of the currently - to - be - encoded child node) to determine the reference nodes. Among them, when performing the filtering process, the first prediction threshold limitLow and the second prediction threshold limitHigh can be determined according to the reconstruction attribute information of the parent node, referring to the above formulas (1) and (2); then, the neighbor nodes of the parent node of the currently - to - be - encoded child node and / or the neighbor child nodes of the currently - to - be - encoded child node can be filtered according to the first prediction threshold and the second prediction threshold.
[0260] Exemplarily, assume that the attribute value of the neighbor node of the parent node of the currently - to - be - encoded child node (or the neighbor child node of the currently - to - be - encoded child node) is attrnei. If limitLow < attrnei < limitHigh, then it can be added to the reference neighbor point set of the child nodes to be predicted, that is, this neighbor node is determined as the reference node; otherwise, this neighbor node is not used for prediction, that is, it is not used as the reference node.
[0261] Furthermore, in the embodiments of the present application, after completing the filtering of the parent - layer neighbor nodes (the neighbor nodes of the parent node of the currently - to - be - encoded child node) and the same - layer neighbor nodes (the neighbor child nodes of the currently - to - be - encoded child node) to determine the reference nodes, the weight values corresponding to one or more valid nodes among the reference nodes can be determined; the reconstruction attribute information of the reference nodes is weighted according to the weight values corresponding to the one or more valid nodes, so that the attribute prediction value of the currently - to - be - encoded child node can be determined.
[0262] It can be understood that in the embodiments of the present application, when determining the attribute prediction value of the currently - to - be - encoded child node, weighted operations can be performed according to the reconstruction attribute information of the reference nodes. Among them, the weight values corresponding to different neighbor nodes can be different or the same. Among them, the weight values corresponding to each neighbor node can be related to the Euclidean distance between the neighbor node and the parent node of the currently - to - be - encoded child node.
[0263] Exemplarily, in the embodiments of the present application, the specific method of performing weighted operations according to the reconstruction attribute information of the reference nodes can refer to the above formulas (8) or (9). Among them, the parent node A of the currently - to - be - encoded child node recP The corresponding prediction weight value can be W obtained by adjusting the initial prediction weight weight pre_par recP .
[0264] Furthermore, in an embodiment of the present application, after determining the attribute prediction value of the current sub-node to be encoded, the attribute prediction value of the current sub-node to be encoded can be subjected to RAHT transformation to determine the first transformation coefficient, and the quantized coefficient residual of the current sub-node to be encoded can be determined based on the first transformation coefficient; the quantized coefficient residual can then be written into the code stream and transmitted to the decoding end.
[0265] Furthermore, in an embodiment of the present application, when determining the quantized coefficient residual of the current sub-node to be encoded based on the first transform coefficient, it is possible to optionally perform a RAHT transform on the reconstructed attribute information of the current sub-node to be encoded to determine the second transform coefficient; then determine the coefficient residual between the first transform coefficient and the second transform coefficient; and then quantize the coefficient residual to determine the quantized coefficient residual.
[0266] In summary, through the encoding method proposed in steps 201 to 203, the predicted weight value of the parent node of the current child node to be encoded can be dynamically adjusted according to the relationship between the weight information of the parent node of the current child node to be encoded and the current child node to be encoded. The higher the proportion of the predicted weight value, the stronger the attribute correlation, and when the predicted weight value is used for weighted prediction, the more accurate the attribute prediction value of the child node obtained will be.
[0267] That is to say, the coding method proposed in the embodiment of the present application, when performing weighted prediction, for the prediction weight (prediction weight value) corresponding to the parent node of the current child node to be encoded (i.e. the parent node of the current child node to be encoded), no longer directly uses a fixed weighting coefficient. Instead, the weighting coefficient (prediction weight value) of the parent node of the current child node to be encoded is dynamically adjusted by the ratio of the geometric weight (second weight information) of the current child node to be encoded (current child node to be encoded) and the geometric weight (first weight information) of its parent node (the parent node of the current child node to be encoded). It can be seen that the coding method proposed in the embodiment of the present application is a more flexible attribute weighted prediction algorithm based on geometric weights, which improves the accuracy of prediction by taking into account the attribute correlation between the parent node of the current child node to be encoded and the current child node to be encoded.
[0268] It should be noted that, in an embodiment of the present application, the first weight information and the second weight information respectively represent the geometric weights of the parent node of the current child node to be encoded and the current child node to be encoded, and the first weight ratio can represent the average ratio of the geometric weight of each child node to the geometric weight of the parent node, and the second weight ratio is the ratio of the geometric weight of the current child node to be encoded and the parent node of the current child node to be encoded. The initial prediction weight of the parent node of the current child node to be encoded is adaptively adjusted by the difference between the first weight ratio and the second weight ratio, and the prediction weight value of the parent node can be dynamically updated in combination with the attribute correlation between the parent node and the child node, so that in the weighted prediction process of the attribute information of the child node with strong attribute correlation with the parent node, a higher weight value is assigned to the reconstructed attribute information of the parent node. In other words, by fully considering the attribute correlation between the parent node and the child node, it can be ensured that when the attribute correlation between the parent node and the child node is stronger, the proportion of the prediction weight value corresponding to the parent node is also higher when the weighted prediction process is performed.
[0269] In some embodiments, the encoding method proposed in the embodiments of the present application is experimentally verified, and the results are shown in Table 1. It can be seen from Table 1 that under the C1 condition, that is, the condition where the geometric lossless attribute is lossy, the overall average performance of the encoding method is unchanged, the performance of the luminance component remains unchanged, and the chrominance component has a performance gain of 0.2% and 0.3% respectively on the BD-Rate, and the time complexity remains basically unchanged.
[0270] In some embodiments, the encoding method proposed in the embodiments of the present application is experimentally verified, and the results are shown in Table 2. It can be seen from Table 2 that under the C2 condition, that is, the condition of lossy geometric lossy attributes, the overall average performance of the algorithm is unchanged, the performance of the luminance component remains unchanged, and the chrominance component has a performance gain of 0.3% and 0.5% respectively on the BD-Rate, and the time complexity remains basically unchanged.
[0271] Based on Table 1 and Table 2 above, it can be seen that the encoding method proposed in the embodiment of the present application can reduce the bit rate without significantly increasing the time complexity, thereby improving the encoding and decoding efficiency.
[0272] This embodiment provides a coding method, wherein the encoder determines the first weight information of the parent node of the current child node to be coded, and the second weight information of the current child node to be coded; based on the first weight information and the second weight information, determines the predicted weight value of the parent node of the current child node to be coded; and determines the attribute prediction value of the current child node to be coded based on the predicted weight value of the parent node of the current child node to be coded. Thus, in the embodiment of the present application, the codec can first determine the first weight information of the parent node of the current child node to be coded and the second weight information of the current child node to be coded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be coded and the current child node to be coded, and then can dynamically adjust the predicted weight value of the parent node of the current child node to be coded in combination with the geometric weights of the parent node of the current child node to be coded and the current child node to be coded, ensuring that the stronger the attribute correlation between the parent node and the child node, the higher the proportion of the predicted weight value corresponding to the parent node when performing weighted prediction processing. That is, in the embodiment of the present application, the attribute correlation between the parent node and the child node can be fully considered, thereby improving the accuracy of the prediction, while improving the coding efficiency and compression performance.
[0273] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see FIG8 , which shows a schematic diagram of the structure of an encoder 140 provided in an embodiment of the present application. As shown in FIG8 , the encoder 140 may include: a first determining unit 1401; wherein,
[0274] The first determination unit 1401 is configured to determine the first weight information of the parent node of the current child node to be encoded, and the second weight information of the current child node to be encoded; determine the predicted weight value of the parent node of the current child node to be encoded based on the first weight information and the second weight information; and determine the attribute prediction value of the current child node to be encoded based on the predicted weight value of the parent node of the current child node to be encoded.
[0275] It should be noted that, in the embodiment of the present application, the encoder 140 can also be regarded as a data processing mode (or "entropy encoder"), which is used to encode the values of the syntax elements to be encoded.
[0276] It is understood that in the embodiments of the present application, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular device. Moreover, the various components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional modules.
[0277] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0278] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 140. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the encoding method described in any one of the aforementioned embodiments.
[0279] Based on the composition of the encoder 140 and the computer-readable storage medium, refer to Figure 9, which shows a specific hardware structure diagram of the encoder 140 provided in an embodiment of the present application. As shown in Figure 9, the encoder 140 may include: a first communication interface 1501, a first memory 1502 and a first processor 1503; each component is coupled together through a first bus system 1504. It can be understood that the first bus system 1504 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 1504 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the first bus system 1504 in Figure 9. Among them,
[0280] The first communication interface 1501 is used to receive and send signals when sending and receiving information with other external network elements;
[0281] A first memory 1502 is used to store computer programs that can be run on the first processor 1503;
[0282] The first processor 1503 is used to perform the following when running the computer program: determining first weight information of the parent node of the current child node to be encoded, and second weight information of the current child node to be encoded; determining a predicted weight value of the parent node of the current child node to be encoded based on the first weight information and the second weight information; and determining an attribute prediction value of the current child node to be encoded based on the predicted weight value of the parent node of the current child node to be encoded.
[0283] It is understood that the first memory 1502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can 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 can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The first memory 1502 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0284] The first processor 1503 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the first processor 1503. The above-mentioned first processor 1503 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 1502 , and the first processor 1503 reads the information in the first memory 1502 and completes the steps of the above method in combination with its hardware.
[0285] It is to be understood that these embodiments described in the present application can be implemented with hardware, software, firmware, middleware, microcode or its combination.For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing functions described in the present application or its combination.For software implementation, the technology described in the present application can be realized by the module (such as process, function etc.) that performs functions described in the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0286] Optionally, as another embodiment, the first processor 1503 is further configured to execute the encoding method described in any one of the aforementioned embodiments when running the computer program.
[0287] The present embodiment provides an encoder that determines the first weight information of the parent node of the current child node to be encoded and the second weight information of the current child node to be encoded; determines the predicted weight value of the parent node of the current child node to be encoded based on the first weight information and the second weight information; and determines the attribute prediction value of the current child node to be encoded based on the predicted weight value of the parent node of the current child node to be encoded. It can be seen that in the embodiment of the present application, the codec can first determine the first weight information of the parent node of the current child node to be encoded and the second weight information of the current child node to be encoded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be encoded and the current child node to be encoded, and then the predicted weight value of the parent node of the current child node to be encoded can be dynamically adjusted in combination with the geometric weights of the parent node of the current child node to be encoded and the current child node to be encoded, ensuring that the stronger the attribute correlation between the parent node and the child node, the higher the proportion of the predicted weight value corresponding to the parent node when performing weighted prediction processing. That is, in the embodiment of the present application, the attribute correlation between the parent node and the child node can be fully considered, thereby improving the accuracy of the prediction and improving the coding efficiency and compression performance.
[0288] In another embodiment of the present application, based on the same inventive concept as the above embodiment, refer to FIG10 , which shows a schematic diagram of the structure of a decoder 160 provided in an embodiment of the present application. As shown in FIG10 , the decoder 160 may include: a second determining unit 1601; wherein,
[0289] The second determination unit 1601 is configured to determine the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; determine the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information; and determine the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded.
[0290] It should be noted that, in the embodiment of the present application, the decoder 160 can also be regarded as a data processing mode (or "entropy decoder"), which is used to decode the values of the syntax elements to be decoded.
[0291] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.
[0292] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this embodiment provides a computer-readable storage medium, which is applied to the decoder 160 and stores a computer program. When the computer program is executed by the second processor, it implements any of the methods in the aforementioned embodiments.
[0293] Based on the composition of the decoder 160 and the computer-readable storage medium, refer to Figure 11, which shows a specific hardware structure diagram of the decoder 160 provided in an embodiment of the present application. As shown in Figure 11, the decoder 160 may include: a second communication interface 1701, a second memory 1702 and a second processor 1703; each component is coupled together through a second bus system 1704. It can be understood that the second bus system 1704 is used to achieve connection and communication between these components. In addition to the data bus, the second bus system 1704 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the second bus system 1704 in Figure 11. Among them,
[0294] The second communication interface 1701 is used to receive and send signals when sending and receiving information with other external network elements;
[0295] The second memory 1702 is used to store computer programs that can be run on the second processor 1703;
[0296] The second processor 1703 is used to execute the following when running the computer program: determining the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; determining the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information; and determining the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded.
[0297] Optionally, as another embodiment, the second processor 1703 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.
[0298] It can be understood that the hardware functions of the second memory 1702 and the first memory 1502 are similar, and the hardware functions of the second processor 1703 and the first processor 1503 are similar; they will not be described in detail here.
[0299] The present embodiment provides a decoder that determines the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded; determines the predicted weight value of the parent node of the current child node to be decoded based on the first weight information and the second weight information; and determines the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded. It can be seen that in the embodiment of the present application, the codec can first determine the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and then dynamically adjust the predicted weight value of the parent node of the current child node to be decoded in combination with the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, ensuring that the stronger the attribute correlation between the parent node and the child node, the higher the proportion of the predicted weight value corresponding to the parent node when performing weighted prediction processing. That is, in the embodiment of the present application, the attribute correlation between the parent node and the child node can be fully taken into account, thereby improving the accuracy of the prediction and improving the coding efficiency and compression performance.
[0300] In yet another embodiment of the present application, referring to FIG12 , a schematic diagram of the structure of a coding and decoding system provided by an embodiment of the present application is shown. As shown in FIG12 , the coding and decoding system 180 may include an encoder 1801 and a decoder 1802 .
[0301] In an embodiment of the present application, the encoder 1801 may be the encoder described in any one of the aforementioned embodiments, and the decoder 1802 may be the decoder described in any one of the aforementioned embodiments.
[0302] Furthermore, an embodiment of the present application also proposes a code stream, wherein the code stream is generated by bit encoding according to information to be encoded; wherein the information to be encoded at least includes: quantized coefficient residuals.
[0303] It should be noted that, in this application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0304] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0305] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0306] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0307] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0308] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims. Industrial Applicability
[0309] The embodiment of the present application provides a coding and decoding method, a code stream, an encoder, a decoder and a storage medium, wherein the encoder and decoder determine the first weight information of the parent node of the current child node to be decoded, and the second weight information of the current child node to be decoded; based on the first weight information and the second weight information, determine the predicted weight value of the parent node of the current child node to be decoded; and determine the attribute prediction value of the current child node to be decoded based on the predicted weight value of the parent node of the current child node to be decoded. It can be seen that in the embodiment of the present application, the encoder and decoder can first determine the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded, wherein the first weight information and the second weight information can characterize the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, and then can dynamically adjust the predicted weight value of the parent node of the current child node to be decoded in combination with the geometric weights of the parent node of the current child node to be decoded and the current child node to be decoded, to ensure that when the attribute correlation between the parent node and the child node is stronger, the proportion of the predicted weight value corresponding to the parent node is also higher when weighted prediction processing is performed. That is to say, in the embodiments of the present application, the attribute correlation between the parent node and the child node can be fully considered, thereby improving the accuracy of the prediction while improving the encoding and decoding efficiency and compression performance.
Claims
1. A point cloud decoding method, applied to a decoder, the method include: Determine first weight information of a parent node of a current child node to be decoded, and second weight information of the current child node to be decoded; Determining a predicted weight value of the parent node according to the first weight information and the second weight information; The attribute prediction value of the current child node to be decoded is determined according to the prediction weight value of the parent node.
2. The method according to claim 1, in, The method further comprises: A first weight ratio is determined according to the number of child nodes in the parent node of the current child node to be decoded.
3. The method according to claim 2, in, The step of determining the predicted weight value of the parent node of the current child node to be decoded according to the first weight information and the second weight information includes: Determine a second weight ratio according to the first weight information and the second weight information; The initial prediction weight value of the parent node of the current child node to be decoded is adjusted based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be decoded.
4. The method according to claim 3, in, The adjusting the initial prediction weight value of the parent node of the current child node to be decoded based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be decoded includes: If the difference between the first weight ratio and the second weight ratio is greater than or equal to a first value, a first correction process is performed on the initial prediction weight value to determine the prediction weight value of the parent node of the current child node to be decoded.
5. The method according to claim 3, in, The adjusting the initial prediction weight value of the parent node of the current child node to be decoded based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be decoded includes: If the difference between the second weight ratio and the first weight ratio is greater than or equal to a first value, a second correction process is performed on the initial prediction weight value to determine the prediction weight value of the parent node of the current child node to be decoded.
6. The method according to claim 3, in, The adjusting the initial prediction weight value of the parent node of the current child node to be decoded based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be decoded includes: If the absolute value of the difference between the first weight ratio and the second weight ratio is smaller than a first value, a third correction process is performed on the initial prediction weight value to determine the prediction weight value of the parent node of the current child node to be decoded.
7. The method according to claim 4, in, The method further comprises: The first correction process includes adjusting the initial prediction weight value according to a first preset step size.
8. The method according to claim 5, in, The method further comprises: The second correction process includes adjusting the initial prediction weight value according to a second preset step size.
9. The method according to claim 6, in, The method further comprises: The third correction process includes adjusting the initial prediction weight value according to a third preset step size.
10. The method according to claim 9, in, The value of the third preset step size includes 0.
11. The method according to claim 1, in, The method further comprises: Determine the reconstruction attribute information of the neighboring nodes of the parent node and the reconstruction attribute information of the neighboring child nodes of the child node currently to be decoded.
12. The method according to claim 11, in, The step of determining the attribute prediction value of the current child node to be decoded according to the prediction weight value of the parent node of the current child node to be decoded includes: Determine the attribute prediction value of the current child node to be decoded based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded, the reconstructed attribute information of the valid neighbor child nodes of the current child node to be decoded, and the prediction weight value of the parent node of the current child node to be decoded.
13. The method according to claim 12, in, The method further comprises: Based on the prediction weight value of the parent node of the current child node to be decoded, a weighted operation is performed on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded and the reconstructed attribute information of the valid neighbor child nodes of the current child node to be decoded to determine the attribute prediction value of the current child node to be decoded.
14. The method according to claim 12, in, The neighbor nodes of the parent node of the current child node to be decoded include: the parent node of the current child node to be decoded, the coplanar neighbor nodes of the parent node of the current child node to be decoded, and the colinear neighbor nodes of the parent node of the current child node to be decoded; The neighboring sub-nodes of the current sub-node to be decoded include: coplanar neighboring nodes of the current sub-node to be decoded, and colinear neighboring nodes of the current sub-node to be decoded.
15. The method according to claim 14, in, The determining the attribute prediction value of the current child node to be decoded according to the reconstructed attribute information of the valid neighbor node of the parent node of the current child node to be decoded, the reconstructed attribute information of the valid neighbor child node of the current child node to be decoded, and the prediction weight value of the parent node of the current child node to be decoded, comprises: For other valid neighbor nodes other than the parent node of the current child node to be decoded, and one or more valid nodes among the valid neighbor child nodes of the current child node to be decoded, determine the weight values corresponding to the one or more valid nodes; According to the weight values corresponding to the one or more valid nodes and the predicted weight value of the parent node of the current child node to be decoded, a weighted operation is performed on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be decoded and the reconstructed attribute information of the valid neighbor child nodes of the current child node to be decoded to determine the attribute prediction value of the current child node to be decoded.
16. The method according to claim 15, in, The method further comprises: Screening the neighboring nodes of the parent node of the current child node to be decoded and the neighboring child nodes of the current child node to be decoded to determine a reference node; The attribute prediction value of the current subnode to be decoded is determined according to the reconstructed attribute information of the reference node.
17. The method according to claim 16, in, The screening process of the neighboring nodes of the parent node of the current child node to be decoded and the neighboring child nodes of the current child node to be decoded to determine the reference node includes: Determine a prediction threshold according to the reconstructed attribute information of the parent node of the current child node to be decoded; The neighboring nodes of the parent node of the current child node to be decoded and the neighboring child nodes of the current child node to be decoded are screened according to the prediction threshold to determine the reference node.
18. The method according to claim 1, in, The method further comprises: Performing a RAHT transform on the attribute prediction value of the current sub-node to be decoded to determine a first transform coefficient, and determining the reconstructed attribute information of the current sub-node to be decoded according to the first transform coefficient.
19. The method according to claim 18, in, The method further comprises: Decoding the bitstream to determine the quantized coefficient residual of the current subnode to be decoded; The quantized coefficient residual is subjected to inverse quantization processing to determine the coefficient residual of the current subnode to be decoded.
20. The method according to claim 19, in, The determining, according to the first transform coefficient, the reconstruction attribute information of the current to-be-decoded subnode includes: Determine a second transform coefficient of the current subnode to be decoded according to the first transform coefficient and the coefficient residual; The second transform coefficients are subjected to inverse transform processing to determine the reconstructed attribute information of the current sub-node to be decoded.
21. The method according to claim 1, in, The method further comprises: If the parent node of the child node to be decoded is a root node, decoding the bitstream to determine the quantized coefficient of the child node to be decoded; Performing inverse quantization processing on the quantized coefficients to determine transformed coefficients; The transformed coefficients are subjected to inverse transformation to determine the reconstructed attribute information of the current sub-node to be decoded.
22. The method according to claim 1, in, The method further comprises: Determine the number of valid neighbors of the grandparent node of the current child node to be decoded and the number of valid neighbors of the parent node of the current child node to be decoded; If the number of valid neighbors of the grandparent node of the current child node to be decoded is greater than or equal to a first threshold, and the number of valid neighbors of the parent node of the current child node to be decoded is greater than or equal to a second threshold, determine the first weight information of the parent node of the current child node to be decoded and the second weight information of the current child node to be decoded.
23. The method according to claim 1, in, The method further comprises: If the number of valid neighbors of the grandparent node of the current child node to be decoded is less than a first threshold, or the number of valid neighbors of the parent node of the current child node to be decoded is less than a second threshold, decoding the bitstream to determine the quantized coefficient of the current child node to be decoded; Performing inverse quantization processing on the quantized coefficients to determine transformed coefficients; The transformed coefficients are subjected to inverse transformation to determine the reconstructed attribute information of the current sub-node to be decoded.
24. The method according to claim 1, in, The neighboring sub-node of the current sub-node to be decoded and the current sub-node to be decoded are neighboring nodes of the same layer; wherein the neighboring nodes of the same layer are nodes of the same size.
25. The method according to claim 1, in, The method further comprises: Determine a target position adjacent to the position of the parent node of the current child node to be decoded; Based on the target position, neighbor nodes of the parent node of the current child node to be decoded and valid neighbor nodes of the parent node of the current child node to be decoded are determined to reconstruct attribute information.
26. A point cloud encoding method, applied to an encoder, the method include: Determine first weight information of a parent node of a current child node to be encoded, and second weight information of the current child node to be encoded; Determine a predicted weight value of a parent node of the current child node to be encoded according to the first weight information and the second weight information; The attribute prediction value of the current child node to be encoded is determined according to the prediction weight value of the parent node of the current child node to be encoded.
27. The method according to claim 26, in, The method further comprises: A first weight ratio is determined according to the number of child nodes in the parent node of the current child node to be encoded.
28. The method according to claim 27, in, The step of determining the predicted weight value of the parent node of the current child node to be encoded according to the first weight information and the second weight information includes: Determine a second weight ratio according to the first weight information and the second weight information; The initial prediction weight value of the parent node of the current child node to be encoded is adjusted based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be encoded.
29. The method according to claim 28, in, The adjusting the initial prediction weight value of the parent node of the current child node to be encoded based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be encoded includes: If the difference between the first weight ratio and the second weight ratio is greater than or equal to a first value, a first correction process is performed on the initial prediction weight value to determine the prediction weight value of the parent node of the current child node to be encoded.
30. The method according to claim 28, in, The adjusting the initial prediction weight value of the parent node of the current child node to be encoded based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be encoded includes: If the difference between the second weight ratio and the first weight ratio is greater than or equal to a first value, a second correction process is performed on the initial prediction weight value to determine the prediction weight value of the parent node of the current child node to be encoded.
31. The method according to claim 28, in, The adjusting the initial prediction weight value of the parent node of the current child node to be encoded based on the first weight ratio and the second weight ratio to determine the prediction weight value of the parent node of the current child node to be encoded includes: If the absolute value of the difference between the first weight ratio and the second weight ratio is less than a first value, a third correction process is performed on the initial prediction weight value to determine the prediction weight value of the parent node of the current child node to be encoded.
32. The method according to claim 29, in, The method further comprises: The first correction process includes adjusting the initial prediction weight value according to a first preset step size.
33. The method according to claim 30, in, The method further comprises: The second correction process includes adjusting the initial prediction weight value according to a second preset step size.
34. The method according to claim 31, in, The method further comprises: The third correction process includes adjusting the initial prediction weight value according to a third preset step size.
35. The method according to claim 34, in, The value of the third preset step size includes 0.
36. The method according to claim 26, in, The method further comprises: Determine the reconstruction attribute information of the neighboring nodes of the parent node of the current child node to be encoded, and the reconstruction attribute information of the neighboring child nodes of the current child node to be encoded.
37. The method according to claim 36, in, The step of determining the attribute prediction value of the current child node to be encoded according to the prediction weight value of the parent node of the current child node to be encoded includes: Determine the attribute prediction value of the current child node to be encoded based on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded, the reconstructed attribute information of the valid neighbor child nodes of the current child node to be encoded, and the prediction weight value of the parent node of the current child node to be encoded.
38. The method according to claim 38, in, The method further comprises: Based on the prediction weight value of the parent node of the current child node to be encoded, a weighted operation is performed on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded and the reconstructed attribute information of the valid neighbor child nodes of the current child node to be encoded to determine the attribute prediction value of the current child node to be encoded.
39. The method according to claim 38, in, The neighbor nodes of the parent node of the current child node to be encoded include: the parent node of the current child node to be encoded, the coplanar neighbor nodes of the parent node of the current child node to be encoded, and the colinear neighbor nodes of the parent node of the current child node to be encoded; The neighboring sub-nodes of the current sub-node to be encoded include: coplanar neighboring nodes of the current sub-node to be encoded, and colinear neighboring nodes of the current sub-node to be encoded.
40. The method according to claim 39, in, The determining the attribute prediction value of the current child node to be encoded according to the reconstructed attribute information of the valid neighboring node of the parent node of the current child node to be encoded, the reconstructed attribute information of the valid neighboring child node of the current child node to be encoded, and the prediction weight value of the parent node of the current child node to be encoded includes: For other valid neighbor nodes other than the parent node of the current child node to be encoded, and one or more valid nodes among the valid neighbor child nodes of the current child node to be encoded, determine weight values corresponding to the one or more valid nodes; According to the weight values corresponding to the one or more valid nodes and the predicted weight value of the parent node of the current child node to be encoded, a weighted operation is performed on the reconstructed attribute information of the valid neighbor nodes of the parent node of the current child node to be encoded and the reconstructed attribute information of the valid neighbor subnodes of the current child node to be encoded to determine the attribute prediction value of the current child node to be encoded.
41. The method according to claim 40, in, The method further comprises: Screening the neighboring nodes of the parent node of the current child node to be encoded and the neighboring child nodes of the current child node to be encoded to determine a reference node; The attribute prediction value of the current to-be-encoded subnode is determined according to the reconstructed attribute information of the reference node.
42. The method according to claim 41, in, The screening process of the neighboring nodes of the parent node of the current child node to be encoded and the neighboring child nodes of the current child node to be encoded to determine the reference node includes: Determine a prediction threshold according to the reconstructed attribute information of the parent node of the current child node to be encoded; The neighboring nodes of the parent node of the current child node to be encoded and the neighboring child nodes of the current child node to be encoded are screened according to the prediction threshold to determine the reference node.
43. The method according to claim 26, in, The method further comprises: Performing a RAHT transform on the attribute prediction value of the current subnode to be encoded to determine a first transform coefficient, and determining a quantized coefficient residual of the subnode of the current point according to the first transform coefficient; The quantized coefficient residual is written into the bitstream.
44. The method according to claim 43, in, The method further comprises: Performing a RAHT transform on the reconstructed attribute information of the current to-be-encoded subnode to determine a second transform coefficient; determining a coefficient residual between the first transform coefficient and the second transform coefficient; The coefficient residual is quantized to determine the quantized coefficient residual.
45. The method according to claim 26, in, The method further comprises: If the parent node of the current to-be-encoded child node is a root node, performing RAHT transformation on the reconstructed attribute information of the current to-be-encoded child node to determine a transformed coefficient; quantizing the transformed coefficients to determine quantized coefficients; The quantized coefficients are written into a bit stream.
46. The method according to claim 26, in, The method further comprises: Determine the number of valid neighbors of the grandparent node of the current child node to be encoded and the number of valid neighbors of the parent node of the current child node to be encoded; If the number of valid neighbors of the grandparent node of the current child node to be encoded is greater than or equal to a first threshold, and the number of valid neighbors of the parent node of the current child node to be encoded is greater than or equal to a second threshold, determine the first weight information of the parent node of the current child node to be encoded and the second weight information of the current child node to be encoded.
47. The method according to claim 26, in, The method further comprises: If the number of valid neighbors of the grandparent node of the current child node to be encoded is less than a first threshold, or the number of valid neighbors of the parent node of the current child node to be encoded is less than a second threshold, performing RAHT transformation on the reconstructed attribute information of the current child node to be encoded to determine the transformed coefficients; quantizing the transformed coefficients to determine quantized coefficients; The quantized coefficients are written into a bit stream.
48. The method according to claim 26, in, The neighboring sub-node of the current sub-node to be encoded and the current sub-node to be encoded are neighboring nodes of the same layer; wherein the neighboring nodes of the same layer are nodes of the same size.
49. The method according to claim 26, in, The method further comprises: Determine a target position adjacent to the position of the parent node of the current child node to be encoded; Based on the target position, neighbor nodes of the parent node of the current to-be-encoded child node and valid neighbor nodes of the parent node of the current to-be-encoded child node are determined to reconstruct attribute information.
50. A code stream, in, The code stream is generated by bit coding according to the information to be coded; wherein the information to be coded at least includes: quantized coefficient residuals.
51. An encoder, the encoder comprising a first determination unit; in, A first determining part is configured to determine first weight information of a parent node of a current child node to be encoded, and second weight information of the current child node to be encoded; and determine a predicted weight value of the parent node of the current child node to be encoded according to the first weight information and the second weight information; The attribute prediction value of the current child node to be encoded is determined according to the prediction weight value of the parent node of the current child node to be encoded.
52. An encoder comprising a first memory and a first processor; in, The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 26 to 49 when running the computer program.
53. A decoder, the decoder comprising a second determination unit; in, A second determining unit is configured to determine first weight information of a parent node of a current child node to be decoded, and second weight information of the current child node to be decoded; and determine a predicted weight value of the parent node of the current child node to be decoded according to the first weight information and the second weight information; The attribute prediction value of the current child node to be decoded is determined according to the prediction weight value of the parent node of the current child node to be decoded.
54. A decoder comprising a second memory and a second processor; in, The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 1 to 25 when running the computer program.
55. A computer readable storage medium, in, The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 25 is implemented, or the method according to any one of claims 26 to 49 is implemented.
Citation Information
Patent Citations
Page text extraction method and device
CN108874934A
Point cloud encoding and decoding method
CN112385236A
Device and method for processing point cloud data
CN114009046A
Prediction method of placeholder information, encoder, decoder and storage medium
CN114402532A
Methods and devices for predictive point cloud attribute coding
US20200302651A1
Cited By
Encoding and decoding method, encoder, decoder, and storage medium
WO2026085664A1
Point cloud encoding method, point cloud decoding method, encoder, decoder, and storage medium
WO2026090809A1
Point cloud encoding method, point cloud decoding method, and device
WO2026149331A1
