Coding method, coder, electronic device, and storage medium

By determining the residual value and estimating the codeword length in the encoder based on geometric position information and reconstruction values, and predicting the coding residual value, the problem of encoding speed and complexity is solved, and efficient processing and storage of point cloud data is achieved.

WO2024212228A1PCT designated stage expired Publication Date: 2024-10-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/088432
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In the existing technology, the encoding speed of the encoder in point cloud compression is low, and the encoding complexity is high, which is difficult to effectively improve, resulting in challenges to the processing and storage of point cloud data.

Method used

By determining the residual value based on the geometric position information of the current point and the reconstruction value of the candidate point, estimating the codeword length, and predicting the residual value based on the codeword length for encoding, the complexity of the precoding method is avoided, thereby improving the encoding speed and reducing the Coding complexity.

Benefits of technology

The encoding speed of the encoder is improved, the encoding complexity is reduced, and the processing efficiency and storage capacity of point cloud data are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023088432_17102024_PF_FP_ABST
    Figure CN2023088432_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a coding method, a coder, an electronic device, and a storage medium. The coding method comprises: determining at least one residual value on the basis of an original value of geometric position information of a current point and a reconstruction value of geometric position information of at least one candidate point, the at least one residual value comprising a first residual value; before coding the first residual value, determining the codeword length of the at least one residual value; on the basis of the codeword length of the at least one residual value, determining that a predicted residual value of the geometric position information of the current point comprises the first residual value; and coding the first residual value. In the embodiments, the codeword length of the at least one residual value is determined before coding the first residual value, such that the codeword length of the at least one residual value is prevented from being determined in a pre-coding mode, thereby increasing the coding speed of the coder, and reducing the coding complexity of the coder.
Need to check novelty before this filing date? Find Prior Art

Description

Coding method, encoder, electronic device, and storage medium Technical Field

[0001] The embodiments of the present application relate to the field of coding and decoding technology, and more specifically, to a coding method, an encoder, an electronic device, and a storage medium. Background Art

[0002] Point clouds have become ubiquitous in various fields, such as virtual / augmented reality, robotics, geographic information systems, and medicine. With the continuous improvement of the accuracy and speed of scanning equipment, large amounts of point clouds can be accurately acquired from object surfaces, often corresponding to hundreds of thousands of points in a single scene. This massive number of points also poses challenges for computer storage and transmission. Therefore, point compression has become a hot topic.

[0003] For point cloud compression, it is mainly necessary to compress its geometric information and attribute information. Specifically, the encoder first divides the geometric information of the point cloud into octrees, and then uses an entropy coding algorithm to entropy encode the geometric information expressed by the octree structure to obtain a geometric code stream. At the same time, the encoder reconstructs the geometric information based on the geometric information expressed by the octree structure, and predicts the attribute information of the current point based on the reconstructed geometric information. It then obtains the residual of the current point by subtracting it from the original value of the attribute information, and then quantizes the residual to obtain a quantized residual. The quantized residual is entropy encoded using an entropy coding algorithm to obtain an attribute code stream.

[0004] However, how to improve the encoding speed of the encoder and reduce the encoding complexity of the encoder is still a technical problem that needs to be solved urgently in this field.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide an encoding method, an encoder, an electronic device, and a storage medium, which can improve the encoding speed of the encoder and reduce the encoding complexity of the encoder.

[0007] In a first aspect, an embodiment of the present application provides an encoding method, comprising:

[0008] Determining at least one residual value based on an original value of the geometric position information of the current point and a reconstructed value of the geometric position information of at least one candidate point; the at least one residual value includes a first residual value;

[0009] Before encoding the first residual value, determining a codeword length of at least one of the residual values;

[0010] Determining, based on a codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value;

[0011] The first residual value is encoded.

[0012] In a second aspect, an embodiment of the present application provides an encoder, including:

[0013] A first determining unit is configured to determine at least one residual value based on an original value of the geometric position information of the current point and a reconstructed value of the geometric position information of at least one candidate point; the at least one residual value includes a first residual value;

[0014] a second determining unit, configured to determine a codeword length of at least one of the residual values ​​before encoding the first residual value;

[0015] a third determining unit, configured to determine, based on a codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value;

[0016] An encoding unit, configured to encode the first residual value.

[0017] In a third aspect, an embodiment of the present application provides an encoder, including:

[0018] a processor adapted to implement computer instructions; and,

[0019] A computer-readable storage medium stores computer instructions, wherein the computer instructions are suitable for being loaded by a processor and executing the encoding method in the first aspect or its various implementations mentioned above.

[0020] In one implementation, there are one or more processors and one or more memories.

[0021] In one implementation, the computer-readable storage medium may be integrated with the processor, or the computer-readable storage medium may be provided separately from the processor.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are read and executed by a processor of a computer device, the computer device executes the encoding method involved in the first aspect mentioned above.

[0023] In a fifth aspect, embodiments of the present application provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the encoding method of the first aspect described above.

[0024] In a sixth aspect, an embodiment of the present application provides a code stream, which is generated by the method involved in the method described in the first aspect above.

[0025] Based on the above technical solution, at least one residual value is determined based on the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of at least one candidate point; the at least one residual value includes a first residual value; before encoding the first residual value, the codeword length of at least one of the residual values ​​is determined; based on the codeword length of the at least one residual value, it is determined that the predicted residual value of the geometric position information of the current point includes the first residual value; the first residual value is encoded; avoiding determining the codeword length of at least one of the residual values ​​in a pre-coding manner, which can improve the encoding speed of the encoder and reduce the encoding complexity of the encoder. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] FIG1 is an example of a point cloud image provided by an embodiment of the present application.

[0027] FIG2 is a partially enlarged view of the point cloud image shown in FIG1 .

[0028] FIG3 is an example of a point cloud image with six viewing angles provided by an embodiment of the present application.

[0029] FIG4 is a schematic block diagram of a G-PCC coding framework provided in an embodiment of the present application.

[0030] FIG5 is a schematic block diagram of a G-PCC decoding framework provided in an embodiment of the present application.

[0031] FIG6 is a schematic diagram of a plane provided in an embodiment of the present application.

[0032] FIG7 is a schematic diagram of a sub-node provided in an embodiment of the present application.

[0033] FIG8 is a schematic diagram of a planar marker provided in an embodiment of the present application.

[0034] FIG9 is a schematic diagram of sibling nodes provided in an embodiment of the present application.

[0035] Figure 10 is a schematic diagram of the intersection of the laser radar and the node.

[0036] FIG11 is a schematic diagram of neighborhood nodes at the same division depth and the same coordinates provided in an embodiment of the present application.

[0037] FIG12 is an example provided by an embodiment of the present application in which the current node is located at a lower plane position of the parent node.

[0038] FIG13 is an example provided by an embodiment of the present application in which the current node is located at a lower plane position of the parent node.

[0039] FIG14 is an example of predictive coding of planar position information of a lidar point cloud provided in an embodiment of the present application.

[0040] FIG15 is a schematic diagram of the IDCM coding mode provided in an embodiment of the present application.

[0041] FIG16 is an example of coordinate transformation of a point cloud acquired by a rotating laser radar provided in an embodiment of the present application.

[0042] FIG17 is an example of predictive coding in the X or Y axis direction provided by an embodiment of the present application.

[0043] FIG18 is an example of predicting the angle of the X or Y plane by the horizontal azimuth angle provided by an embodiment of the present application.

[0044] FIG19 is an example of predictive coding of the X or Y axis provided by an embodiment of the present application.

[0045] FIG20 is a schematic diagram of reconstructing geometric information in a sub-block provided in an embodiment of the present application.

[0046] FIG21 is an example of geometric inter-frame coding and decoding based on a prediction tree provided in an embodiment of the present application.

[0047] Figure 22 is a schematic flowchart of the encoding method provided in an embodiment of the present application.

[0048] Figure 23 is a schematic block diagram of the encoder provided in an embodiment of the present application.

[0049] Figure 24 is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0051] Point Cloud is a set of irregularly distributed discrete points in space that express the spatial structure and surface properties of a three-dimensional object or three-dimensional scene.

[0052] FIG1 and FIG2 show a three-dimensional point cloud image and a local magnified image, respectively.

[0053] As shown in Figure 1 or Figure 2, the point cloud surface is composed of densely distributed points.

[0054] Each pixel in a two-dimensional image has information representation and distribution patterns, so there's no need to record its location. However, the distribution of points in a point cloud in three-dimensional space is random and irregular, so recording the location of each point in space is necessary to fully represent the point cloud. Similar to a two-dimensional image, each point in a point cloud has corresponding attribute information, typically a color value that reflects the object's color. For point clouds, in addition to color, each point's attribute information can also include a reflectance value, which reflects the object's surface material. Each point in a point cloud can include both geometric and attribute information. The geometric information of each point in a point cloud refers to the point's three-dimensional Cartesian coordinate data (x, y, z). The attribute information of each point in a point cloud can include, but is not limited to, at least one of the following: color information, material information, and laser reflection intensity information. Color information can be information in any color space. For example, color information can be red, green, and blue (RGB) information. Alternatively, color information can be luminance and chrominance (YCbCr, YUV) information. Here, Y represents brightness (Luma), Cb (U) represents the blue chromaticity component, and Cr (V) represents the red chromaticity component. Each point in a point cloud has the same amount of attribute information. For example, each point in a point cloud has two types of attribute information: color information and laser reflection intensity. Another example is that each point in a point cloud has three types of attribute information: color information, material information, and laser reflection intensity information.

[0055] The point cloud image may have multiple viewing angles. For example, the point cloud image may have six viewing angles as shown in FIG3 .

[0056] The data storage format of a point cloud image consists of a file header and a data part. The header contains the data format, data representation type, the total number of point cloud points, and the content represented by the point cloud. For example, the data storage format of a point cloud image can be implemented in the following formats:

[0057] ply

[0058] format ascii 1.0

[0059] element vertex 207242

[0060] property float x

[0061] property float y

[0062] property float z

[0063] property uchar red

[0064] property uchar green

[0065] property uchar blue

[0066] 75 318 0 0 142 0

[0067] 75 319 0 0 143 0

[0068] 75 319 1 1 9 9

[0069] 75 315 0 1 9 9.

[0070] Among them, the data storage format of the above point cloud image is the ".ply" format, represented by ASCII code, with a total number of points of 207242, and each point has three-dimensional position information xyz and three-dimensional color information rgb.

[0071] Point clouds can flexibly and conveniently express the spatial structure and surface properties of three-dimensional objects or scenes. Moreover, since point clouds are obtained by directly sampling real objects, they can provide a strong sense of reality while ensuring accuracy. Therefore, they are widely used, including virtual reality games, computer-aided design, geographic information systems, automatic navigation systems, digital cultural heritage, free viewpoint broadcasting, three-dimensional immersive remote presentation, and three-dimensional reconstruction of biological tissues and organs.

[0072] Point clouds can be divided into two categories based on their application scenarios: machine-perceived point clouds and human-perceived point clouds. Applications of machine-perceived point clouds include, but are not limited to, autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, and disaster relief robots. Applications of human-perceived point clouds include, but are not limited to, digital cultural heritage, free-viewpoint broadcasting, 3D immersive communication, and 3D immersive interaction. Accordingly, point clouds can be divided into dense and sparse point clouds based on their acquisition method. They can also be divided into static and dynamic point clouds based on their acquisition approach. More specifically, point clouds can be divided into three types: static point clouds (type 1), dynamic point clouds (type 2), and dynamically acquired point clouds (type 3). For static point clouds, the object is stationary, and the device acquiring the point cloud is also stationary. For dynamic point clouds, the object is moving, but the device acquiring the point cloud is stationary. For dynamic point clouds, the device acquiring the point cloud is moving.

[0073] Point cloud acquisition methods include, but are not limited to, computer generation, 3D laser scanning, and 3D photogrammetry. Computers can generate point clouds of virtual three-dimensional objects and scenes; 3D laser scanning can obtain point clouds of static real-world three-dimensional objects or scenes, generating millions of point clouds per second; and 3D photogrammetry can obtain point clouds of dynamic real-world three-dimensional objects or scenes, generating tens of millions of point clouds per second. Specifically, point clouds of object surfaces can be acquired using acquisition devices such as photoelectric radars, lidars, laser scanners, and multi-view cameras. Point clouds obtained using laser measurement principles can include the three-dimensional coordinate information of points and the laser reflection intensity (reflectance) of the points. Point clouds obtained using photogrammetry principles can include the three-dimensional coordinate information of points and the color information of the points. Combining laser measurement and photogrammetry principles to generate point clouds can include the three-dimensional coordinate information of points, the laser reflection intensity (reflectance) of points, and the color information of points. These technologies reduce the cost and time required to acquire point cloud data and improve data accuracy. For example, in the medical field, magnetic resonance imaging (MRI), computed tomography (CT), and electromagnetic positioning information can be used to generate point clouds of biological tissues and organs. These technologies reduce the cost and time required to acquire point clouds, while improving data accuracy. While changes in point cloud data acquisition methods have made it possible to acquire large amounts of point cloud data, the processing of massive amounts of 3D point cloud data is facing bottlenecks due to storage space and transmission bandwidth limitations, as application demands grow.

[0074] Taking a point cloud video with a frame rate of 30 as an example, each frame contains 700,000 points. Each point in each point cloud frame has coordinate information (xyz, float) and color information (RGB, uchar). Therefore, the data volume of a 10-second point cloud video is approximately 0.7 million × (4 bytes × 3 + 1 byte × 3) × 30 fps × 10 seconds = 3.15 GB. For a 2D video with a resolution of 1280 × 720, a YUV sampling format of 4:2:0, and a frame rate of 24, the data volume per 10 seconds is approximately 1280 × 720 × 12 bits × 24 frames × 10 seconds, which is approximately 0.33 GB. A 10-second two-view 3D video has a data volume of approximately 0.33 × 2 = 0.66 GB. This shows that the data volume of a point cloud video far exceeds that of 2D and 3D videos of the same length. Therefore, in order to better realize data management, save server storage space, and reduce the transmission traffic and transmission time between the server and the client, point cloud compression has become a key issue in promoting the development of the point cloud industry.

[0075] Point clouds can be encoded and decoded respectively through various types of encoding frameworks and decoding frameworks. As an example, the encoding and decoding framework can be the Geometry Point Cloud Compression (G-PCC) encoding and decoding framework or the Video Point Cloud Compression (V-PCC) encoding and decoding framework provided by the Moving Picture Experts Group (MPEG), or it can be the AVS-PCC encoding and decoding framework or the Point Cloud Compression Reference Platform (PCRM) framework provided by the Audio Video Standard (AVS) Task Force. The G-PCC encoding and decoding framework can be used to compress the first static point cloud and the third type of dynamically acquired point cloud, and the V-PCC encoding and decoding framework can be used to compress the second type of dynamic point cloud. The G-PCC encoding and decoding framework is also called the Point Cloud Codec TMC13, and the V-PCC encoding and decoding framework is also called the Point Cloud Codec TMC2. Both G-PCC and AVS-PCC can be used to compress static sparse point clouds, and their encoding frameworks are roughly the same.

[0076] The following uses the G-PCC encoding and decoding framework as an example for explanation.

[0077] FIG4 is a schematic block diagram of a G-PCC coding framework provided in an embodiment of the present application.

[0078] As shown in Figure 4, in the G-PCC coding framework, the input point cloud is first sliced, and then the resulting slices are independently encoded. Within the slices, the point cloud's geometric information and the attribute information corresponding to the points in the point cloud are encoded separately. G-PCC's geometric codec can be divided into octree-based geometry codec and prediction tree-based geometry codec.

[0079] After encoding the geometric information, the G-PCC coding framework reconstructs the geometry and uses the reconstructed geometry to encode the attribute information of the point cloud. Attribute encoding of the point cloud primarily involves encoding the color information of the points in the point cloud. First, the G-PCC coding framework can perform color space conversion on the color information of the points. For example, when the color information of the points in the input point cloud is represented in the RGB color space, the G-PCC coding framework can convert the color information from RGB to YUV. The G-PCC coding framework then uses the reconstructed geometry to recolor the point cloud, aligning the unencoded attribute information with the reconstructed geometry. There are two main transformation methods for color information encoding: one relies on a distance-based lifting transform based on level of detail (LOD) partitioning, and the other directly performs a region-adaptive hierarchical transform (RAHT). Both methods transform the color information from the spatial domain to the frequency domain, obtaining high-frequency and low-frequency coefficients. Finally, these coefficients are quantized and encoded to generate a binary bitstream.

[0080] FIG5 is a schematic block diagram of a G-PCC decoding framework provided in an embodiment of the present application.

[0081] As shown in Figure 5, the G-PCC decoding framework can obtain the point cloud code stream from the G-PCC encoding framework, and obtain the position information and attribute information of the points in the point cloud by parsing the code. The decoding of the point cloud includes position decoding and attribute decoding. The position decoding process includes: performing arithmetic decoding on the geometric code stream; reconstructing the octree based on the decoded data, and then reconstructing the position information of the point to obtain the reconstructed information of the point position information; performing coordinate transformation on the reconstructed information of the point position information to obtain the position information of the point. The position information of the point can also be called the geometric information of the point. The attribute decoding process includes: obtaining the residual value of the attribute information of the point in the point cloud by parsing the attribute code stream; obtaining the residual value of the attribute information of the point after dequantization by dequantizing the residual value of the attribute information of the point; selecting one of the three prediction modes for point cloud prediction based on the reconstructed information of the point position information obtained during the position decoding process to obtain the attribute reconstruction value of the point; and performing color space inverse transformation on the attribute reconstruction value of the point to obtain the decoded point cloud.

[0082] GPCC general test conditions

[0083] 1) There are 4 test conditions:

[0084] Condition 1: The geometric position is limited and the attributes are lost;

[0085] Condition 2: Geometric position lossless, attribute lossy;

[0086] Condition 3: Geometric position lossless, attribute loss limited;

[0087] Condition 4: Geometric position and attributes are lossless.

[0088] 2) General test sequences include Cat1A, Cat1B, Cat3-fused, and Cat3-frame, a total of four categories. Among them, Cat2-frame point cloud only contains reflectance attribute information, Cat1A and Cat1B point clouds only contain color attribute information, and Cat3-fused point cloud contains both color and reflectance attribute information.

[0089] 3) Technical routes: There are 2 types in total, distinguished by the algorithm used for geometric compression.

[0090] Technical route 1: Octree encoding branch.

[0091] At the encoding end, the bounding box is divided into sub-cubes in sequence, and the non-empty sub-cubes (containing points in the point cloud) are continued to be divided until the leaf node obtained is a 1x1x1 unit cube. In the case of geometric lossless coding, the number of points contained in the leaf node needs to be encoded, and finally the geometric octree encoding is completed to generate a binary code stream.

[0092] At the decoding end, the decoding end obtains the placeholder code of each node by continuously parsing in the order of breadth-first traversal, and continuously divides the nodes in turn until a 1x1x1 unit cube is obtained. In the case of geometric lossless decoding, it is necessary to parse the number of points contained in each leaf node and finally recover the geometric reconstructed point cloud information.

[0093] Technical route 2: prediction tree encoding branch.

[0094] On the encoding side, the prediction tree structure is established using two different methods: a KD-Tree (high-latency slow mode) and using lidar calibration information to divide each point into different lasers and establish a prediction structure based on these lasers (low-latency fast mode). Next, based on the prediction tree structure, each node in the prediction tree is traversed, and the geometric position information of the node is predicted by selecting different prediction modes to obtain the prediction residual. The geometric prediction residual is then quantized using quantization parameters. Finally, through continuous iteration, the prediction residual of the prediction tree node position information, the prediction tree structure, and the quantization parameters are encoded to generate a binary bitstream.

[0095] At the decoding end, the decoding end reconstructs the prediction tree structure by continuously parsing the bit stream. Secondly, the geometric position prediction residual information and quantization parameters of each prediction node are obtained through parsing, and the prediction residual is dequantized to restore the reconstructed geometric position information of each node, finally completing the geometric reconstruction at the decoding end.

[0096] The following is an introduction to the technical content related to this application.

[0097] (1) Geometric encoding and decoding based on octree.

[0098] Octree-based geometry encoding includes:

[0099] First, the coordinates of the geometric information are transformed so that all the point clouds are contained in a bounding box. Then quantization is performed. This step of quantization mainly plays a role of scaling. Due to the quantization rounding, the geometric information of some points is the same. The parameters are used to decide whether to remove duplicate points. The process of quantization and removal of duplicate points is also called voxelization. Next, the bounding box is continuously divided into trees (for example, octree / quadtree / binary tree) in the order of breadth-first traversal, and the placeholder code of each node is encoded. In an implicit geometric division method, the bounding box of the point cloud is first calculated. Assume that the bounding box d x >d y >d z Corresponding to a cuboid. When geometrically partitioning, the binary tree partitioning will be performed based on the x-axis to obtain two child nodes; until d is satisfied x =d y >d z When the conditions are met, the quadtree partitioning will be performed based on the x and y axes to obtain four child nodes; when d is finally satisfied x =d y =d z When the conditions are met, the octree partitioning will continue until the leaf node obtained by the partitioning is a 1x1x1 unit cube. The partitioning will stop and the points in the leaf node will be encoded to generate a binary code stream. In the process of binary tree / quadtree / octree partitioning, two parameters are introduced: K and M. Parameter K indicates the maximum number of binary tree / quadtree partitions before octree partitioning; parameter M is used to indicate that the minimum block side length corresponding to binary tree / quadtree partitioning is 2 M . At the same time, K and M must meet the following conditions: Assume d max =max(d x ,d y ,d z ),d min =min(d x ,d y ,dz ), parameter K satisfies: K>=d max -d min ; Parameter M satisfies: M>=d min The reason why the parameters K and M meet the above conditions is that in the process of geometric implicit partitioning of G-PCC, the priority of the partitioning method is binary tree, quadtree and octree. When the node block size does not meet the conditions of binary tree / quadtree, the node will be divided into octree until the minimum unit of leaf node is 1x1x1. The octree-based geometric information coding mode can effectively encode the geometric information of the point cloud by utilizing the correlation between adjacent points in space. However, for some relatively flat nodes or nodes with planar characteristics, the coding efficiency of the point cloud geometric information can be further improved by using plane coding.

[0100] FIG6 is a schematic diagram of a plane provided in an embodiment of the present application.

[0101] As shown in FIG6 , the (a) series belongs to the low plane position in the Z-axis direction, and the (b) series belongs to the high plane position in the Z-axis direction.

[0102] For the (a) series, the four occupied child nodes of the current node shown as (a0), (a1), (a2), and (a3) ​​are all located in the low plane position of the current node in the Z-axis direction. Therefore, it can be considered that the current node belongs to a Z plane and is a low plane in the Z-axis direction. For the (b) series, the occupied child nodes of the current node shown as (b0), (b1), (b2), and (b3) are located in the high plane position of the current node in the Z-axis direction. Therefore, it can be considered that the current node belongs to a Z plane and is a high plane in the Z-axis direction.

[0103] Taking (a) as an example, the efficiency of octree coding and plane coding is compared:

[0104] If octree encoding is used for (a) in Figure 6, the placeholder information for the current node is represented as: 11001100. However, if plane encoding is used, first, an identifier must be encoded to indicate that the current node is a plane in the Z-axis direction. Second, if the current node is a plane in the Z-axis direction, the plane position of the current node must be represented. Secondly, only the placeholder information for the lower plane nodes in the Z-axis direction (for example, the placeholder information for the four child nodes 0, 2, 4, and 6 shown in Figure 7) needs to be encoded. Therefore, encoding the current node using plane encoding only requires 6 bits, which reduces the representation by 2 bits compared to the original octree encoding. Based on this analysis, plane encoding has significantly higher coding efficiency than octree encoding. Therefore, for an occupied node, if plane encoding is used in a certain dimension, first, the plane identifier (planarMode) and plane position (PlanePos) of the current node in that dimension must be represented. Second, the placeholder information of the current node is encoded based on the plane position information of the current node.

[0105] Note that: PlaneMode i (i=0,1,2): 0 means the current node is not a plane in the direction of i axis. When the node is a plane in the direction of i axis, PlanePosition i 0 indicates that the current node is a plane in the i-axis direction and is positioned as a low plane, while 1 indicates that the current node is a high plane in the i-axis direction. For example, as shown in Figure 8(a), if the current node is a plane in the z-axis direction and is positioned as a low plane, then PlaneMode_z = True and PlanePosition_z = Bottom. For another example, as shown in Figure 8(b), if the current node is not a plane in the z-axis direction, then PlaneMode_z = False.

[0106] The following describes how to determine whether a node meets the conditions for plane coding.

[0107] Currently, there are three types of conditions in G-PCC to determine whether a node meets the conditions for plane coding. The following describes them one by one:

[0108] (1) Determine whether the current layer node meets the plane coding requirements based on the plane probability of the node in each dimension.

[0109] Whether a node satisfies plane coding can be determined based on the local area density (local_node_density) of the current node and the probability Prob(i) of the current node in each dimension.

[0110] When the local area density of a node is less than the threshold Th (Th = 3), then secondly, the plane probability Prob(i) of the current node in three dimensions is compared with the thresholds Th0, Th1, and Th2, where Th0 < Th1 < Th2 (Th0 = 0.6, Th1 = 0.77, Th2 = 0.88). Next, Eligible i (i = 0, 1, 2) represents whether plane coding is started in each dimension: Eligible i = Prob(i) >= threshold.

[0111] It should be noted that the threshold is adaptively changed. For example, when Prob(0) > Prob(1) > Prob(2), then as follows: Eligible0 = Prob(0) >= Th0; Eligible1 = Prob(1) >= Th1; Eligible2 = Prob(2) >= Th2.

[0112] When Prob(1) > Prob(0) > Prob(2), then as follows: Eligible0 = Prob(0) >= Th1; Eligible1 = Prob(1) >= Th0; Eligible2 = Prob(2) >= Th2.

[0113] The update process of local_node_density and the specific update of Prob(i) are as follows: Prob(i) new = (Lx Prob(i) + δ(coded node)) / L + 1.

[0114] Where L = 255. When the coded node is a plane, it is 1, otherwise it is 0. local_node_density new = local_node_density + 4 * numSiblings.

[0115] Where local_node_density is initialized to 4, and numSiblings is the number of sibling nodes of the node. For example, as shown in Figure 9, the current node is the left gray node, and the right black nodes are sibling nodes. Then the number of sibling nodes of the current node is 5 (including itself).

[0116] (2) Determine whether the nodes in the current layer meet the plane coding according to the point cloud density of the current layer.

[0117] The density of the points in the current layer is used to determine whether to perform planar encoding on the nodes in the current layer. Assuming that the number of points in the current point cloud to be encoded is pointCount, the number of points reconstructed after IDCM encoding is numPointCountRecon, and because the octree is encoded based on the order of breadth-first traversal, the number of nodes to be encoded in the current layer can be obtained, which is assumed to be nodeCount. Then, whether the current layer starts the planar assumption is planarEligibleKOctreeDepth as follows: planarEligibleKOctreeDepth=(pointCount-numPointCountRecon) <nodeCount*1.3。

[0118] Among them, when planarEligibleKOctreeDepth is true, all nodes in the current layer are plane coded; otherwise, plane coding is not performed and only octree coding is used.

[0119] (3) Determine whether the current node meets the plane coding requirements based on the acquisition parameters of the lidar point cloud.

[0120] Figure 10 is a schematic diagram of the intersection of the laser radar and the node.

[0121] As shown in Figure 10, the large node is simultaneously traversed by two laser radars. Therefore, the current node is not a plane in the Z-axis direction, which means it does not meet the plane coding requirement. However, the small node is small enough that it cannot be traversed by two nodes simultaneously, so it is likely to be a plane, which means it meets the plane coding requirement.

[0122] For nodes that meet the plane coding conditions, the predictive coding of plane identification information and plane position information is introduced below.

[0123] (1) Predictive coding of plane identification information.

[0124] Only three contexts are used for encoding, that is, the plane representations on each dimension are designed separately.

[0125] (2) Encoding of non-lidar point cloud planar position information.

[0126] 1. Using the occupancy information of neighboring nodes, the plane position information of the current node is predicted to be three elements: predicted as a low plane, predicted as a high plane, and unpredictable.

[0127] 2. The spatial distance between the nodes at the same partition depth and the same coordinates as the current node and the current node is "close" and "far".

[0128] 3. The plane position of the node at the same partition depth and the same coordinates as the current node, if it is a plane.

[0129] 4. Coordinate dimension (i=0, 1, 2).

[0130] FIG11 is a schematic diagram of neighborhood nodes at the same division depth and the same coordinates provided in an embodiment of the present application.

[0131] As shown in FIG11 , for the current node to be encoded, neighboring nodes are searched at the same octree partition depth level and the same vertical coordinate, and the distance between the two nodes is judged as “near” and “far”, and the plane position of the reference node is used.

[0132] FIG12 is an example provided by an embodiment of the present application in which the current node is located at a lower plane position of the parent node.

[0133] As shown in Figure 12, the domain nodes of the current node may include the child nodes of node a and node b. That is, the plane position information of the current node can be predicted using the occupancy information of node a's child nodes and node b to obtain three elements: predicted low plane, predicted high plane, and unpredictable.

[0134] Specifically, predictions can be made in the following ways:

[0135] If any of node a's child nodes 4-7 are occupied, and all of node b's are unoccupied, there is a high probability that a plane exists in the current node, and that the plane is located lower. If none of node a's child nodes 4-7 are occupied, and any of node b's are occupied, there is a high probability that a plane exists in the current node, and that the plane is located higher. If all of node a's child nodes 4-7 are empty, and all of node b's are empty, the plane's location cannot be inferred, and it is marked as unknown. If any of node a's child nodes 4-7 are occupied, and any of node b's are occupied, the plane's location cannot be inferred, and it is marked as unknown.

[0136] FIG13 is an example provided by an embodiment of the present application in which the current node is located at a lower plane position of the parent node.

[0137] As shown in Figure 13, the domain nodes of the current node may include the child nodes of node a and node b. That is, the plane position information of the current node can be predicted using the occupancy information of node a's child nodes and node b to obtain three elements: predicted low plane, predicted high plane, and unpredictable.

[0138] Specifically, predictions can be made in the following ways:

[0139] If any of node b's child nodes 4 to 7 are occupied, and node a is unoccupied, there is a high probability that a plane exists in the current node, and the plane position is low. If all of node b's child nodes 4 to 7 are unoccupied, and node a is occupied, there is a high probability that a plane exists in the current node, and the plane position is high. If all of node b's child nodes 4 to 7 are unoccupied, and node a is unoccupied, the plane position cannot be inferred, so it is marked as unknown. If any of node b's child nodes 4 to 7 are occupied, and node a is occupied, the plane position cannot be inferred, so it is marked as unknown.

[0140] (4) Encoding of planar position information of lidar point cloud.

[0141] The plane position of the current node is predicted by using the parameters collected by the laser radar. The position is quantified into four intervals by using the position where the current node intersects with the laser ray, and finally used as the context of the plane position of the current node. The specific calculation process is as follows: Assume that the coordinates of the laser radar are (x Lidar ,y Lidar ,z Lidar ), the geometric coordinates of the current point are (x, y, z), then first calculate the vertical tangent value tanθ of the current point relative to the lidar, the calculation process is as follows:

[0142] Because each laser has a certain offset angle relative to the laser radar, the relative tangent value tanθ of the current node relative to the laser is calculated. corr,L , the specific calculation process is as follows:

[0143] Next, the corrected tangent value of the current node is used to predict the plane position of the current node, as follows:

[0144] FIG14 is an example of predictive coding of planar position information of a lidar point cloud provided in an embodiment of the present application.

[0145] As shown in Figure 14, assuming that the tangent value of the lower boundary of the current node is tan(θ bottom ), the tangent value of the upper boundary is tan(θ top ), according to tanθ corr,L The plane position is quantized into 4 quantization intervals, which are the contexts of the plane position.

[0146] Octree-based geometric information encoding only achieves efficient compression rates for spatially correlated points. For isolated points in geometric space, using the Direct Coding Model (DCM) significantly reduces complexity. For all nodes in the octree, the use of the DCM is not indicated by flags but rather inferred from the current node's parent and neighbor information.

[0147] There are three ways to determine whether the current node is eligible for DCM encoding:

[0148] (1) The current node has no sibling child nodes, that is, the parent node of the current node has only one child node, and the parent node of the parent node of the current node has only two occupied child nodes, that is, the current node has at most one neighbor node.

[0149] (2) The parent node of the current node has only one child node, the current node. At the same time, the six neighbor nodes that share a face with the current node are also empty nodes.

[0150] (3) The number of sibling nodes of the current node is greater than 1.

[0151] FIG15 is a schematic diagram of the IDCM coding mode provided in an embodiment of the present application.

[0152] As shown in Figure 15, if the current node does not have the DCM coding qualifications, it will be divided into octrees. If it has the DCM coding qualifications, the number of points contained in the node will be further judged. When the number of points is less than the threshold 2, the node will be DCM-encoded, otherwise the octree division will continue. When the DCM coding mode is applied, it is first necessary to encode whether the current node is a true isolated point, that is, IDCM_flag. When IDCM_flag is true, the current node uses DCM coding, otherwise octree coding is still used. When the current node meets the DCM coding requirements, the DCM coding mode of the current node needs to be encoded. There are currently two DCM modes: 1: There is only one point (or multiple points, but they are duplicate points); 2: Contains two points. Finally, the geometric information of each point needs to be encoded. Assuming that the side length of the node is 2 d When encoding each component of the node's geometric coordinates, d bits are required, and these bits are directly encoded into the bitstream. It is important to note that when encoding LiDAR point clouds, the efficiency of geometric information coding can be further improved by predictively encoding the three-dimensional coordinate information using LiDAR acquisition parameters.

[0153] The following is a detailed introduction to the IDCM encoding process:

[0154] When the current node meets the direct coding mode (DCM), the number of points of the current node, numPoints, is first encoded, and the number of points of the current node is encoded according to different DirectModes. Specifically:

[0155] If the current node does not meet the requirements of the DCM node (that is, the number of points is greater than 2 points and it is not a duplicate point), exit directly.

[0156] If the number of points numPonts contained in the current node is less than or equal to 2, the encoding process is as follows:

[0157] (1) First, encode whether the numPonts of the current node is greater than 1;

[0158] (2) If the current node has only one point and the geometry coding environment is geometry lossless coding, the second point of the current node needs to be encoded to ensure that it is not a duplicate point;

[0159] If the number of points numPonts in the current node is greater than 2, the encoding process is as follows:

[0160] (1) First, encode the numPonts of the current node to be less than or equal to 1;

[0161] (2) Secondly, it is encoded that the second point of the current node is a repeated point. Secondly, it is encoded whether the number of repeated points of the current node is greater than 1. When the number of repeated points is greater than 1, the remaining number of repeated points needs to be exponentially decoded.

[0162] After encoding the number of points in the current node, the coordinate information of the points contained in the current node is encoded.

[0163] The IDCM encoding process for lidar point cloud and human eye point cloud will be introduced separately below.

[0164] (1) Point cloud facing the human eye.

[0165] If the current node contains only one point, the geometric information of the point in three dimensions will be directly encoded (Bypass coding).

[0166] If the current node contains two points, the first coordinate axis to be compared is dirextAxis, which is the preferred coordinate axis, using the geometric coordinates of the points. Note that the axes currently compared only include the x and y axes, not the z axis. Assuming the geometric coordinates of the current node are nodePos, the determination is as follows: dirextAxis = (nodePos[0] < nodePos[1]).

[0167] That is to say, the axis with the smaller node coordinate geometric position is taken as the priority encoded coordinate axis dirextAxis, and then the geometric information of the priority encoded coordinate axis dirextAxis is first encoded in the following way, assuming that the encoding geometric bit depth corresponding to the priority encoded axis is nodeSizeLog2, and assuming that the coordinates of the two points are pointPos[0] and pointPos[1] respectively.

[0168] After encoding the priority encoding axis dirextAxis, the geometric coordinates of the current point are directly encoded.

[0169] Assuming that the remaining encoding bit depth of each point is nodeSizeLog2, the specific encoding process is as follows:

[0170] for(int axisIdx=0; axisIdx<3; ++axisIdx)

[0171] for(int mask=(1<<nodeSizeLog2[axisIdx])> >1;mask;mask>>1)

[0172] encodePosBit(!!(pointPos[axisIdx]&mask)).

[0173] (2) LiDAR point cloud.

[0174] If the current node contains two points, the priority coded coordinate axis dirextAxis will be obtained first by using the geometric coordinates of the points. Assuming that the geometric coordinates of the current node are nodePos, the judgment method is as follows: dirextAxis = (nodePos[0] < nodePos[1]).

[0175] That is, the axis with the smaller node coordinate geometry position is used as the priority encoding axis dirextAxis. It should be noted that the currently compared coordinate axes only include the x and y axes, not the z axis. Then, the geometry information of the priority encoding axis dirextAxis is first encoded as follows. Assume that the encoding geometry bit depth corresponding to the priority encoding axis is nodeSizeLog2, and assume that the coordinates of the two points are pointPos[0] and pointPos[1].

[0176] After encoding the priority encoding axis dirextAxis, the geometric coordinates of the current point are encoded.

[0177] Since the LiDAR point cloud can obtain the acquisition parameters of the LiDAR point cloud, the geometric coordinate information of the current node can be predicted, thereby further improving the efficiency of the geometric information encoding of the point cloud. Similarly, the geometric information nodePos of the current node is first used to obtain a directly encoded main axis direction, and then the geometric information of the already encoded direction is used to predict the geometric information of another dimension. Assuming that the directly encoded axis direction is directAxis and the bit depth of the direct encoding is nodeSizeLog2, the encoding method is as follows:

[0178] for(int mask=(1<<nodeSizeLog2)> >1;mask;mask>>1)

[0179] encodePosBit(!!(pointPos[directAxis]&mask)).

[0180] It should be noted here that all geometric accuracy information in the directAxis direction will be encoded here.

[0181] After encoding all the precision of the directAxis coordinate direction, the LaserIdx corresponding to the current point will be calculated first, for example, the pointLaserIdx number in Figure 16, and the LaserIdx of the current node, that is, nodeLaserIdx, will be calculated. Then, the LaserIdx of the node, that is, nodeLaserIdx, will be used to predict the LaserIdx of the point, that is, pointLaserIdx. The calculation method of the LaserIdx of the node or point is as follows: Assuming that the geometric coordinates of the point are pointPos, the starting coordinates of the laser ray are LidarOrigin, and assuming that the number of Lasers is LaserNum, the tangent value of each Laser is tanθ i , the vertical offset position of each Laser is Z i ,but:

[0182] After calculating the current point's LaserIdx, the pointLaserIdx of the point is first predictively encoded using the current node's LaserIdx. After encoding the current point's LaserIdx, the three-dimensional geometric information of the current point is predictively encoded using the LiDAR acquisition parameters.

[0183] The specific algorithm is as follows:

[0184] As shown in Figure 17, first use the LaserIdx corresponding to the current point to obtain the corresponding horizontal azimuth prediction value, that is, Secondly, the node geometry information corresponding to the current point is used to obtain the horizontal azimuth angle corresponding to the node Among them, the horizontal azimuth The calculation method between the node geometry information is as follows: Assuming the geometric coordinates of the node are nodePos, then:

[0185] By using the acquisition parameters of the laser radar, we can get the number of rotation points of each Laser, numPoints, which represents the number of points obtained by each laser ray rotating one circle. Then, we can use the number of rotation points of each Laser to calculate the rotation angular velocity deltaPhi of each Laser, that is:

[0186] The horizontal azimuth angle of the node is used And the horizontal azimuth of the previous Laser code point corresponding to the current point Calculate the predicted horizontal azimuth angle corresponding to the current point The predicted value of the horizontal azimuth angle is shown in Figure 18 As shown in (a) of FIG18 , the Y-plane angle can be predicted by the horizontal azimuth angle (y-planar predicted by azimuthal angle). As shown in (b) of FIG18 , the X-plane angle can be predicted by the horizontal azimuth angle (x-planar predicted by azimuthal angle).

[0187] The calculation is as follows:

[0188] Finally, by using the predicted value of the horizontal azimuth and the horizontal azimuth of the low plane of the current node and the horizontal azimuth of the high plane To predict the geometric information of the current node. and The relationship between them is shown in Figure 19.

[0189] The details are as follows: int context=(angLel≥0&&angLeR≥0)||(angLel<0&&angLeR<0)? 0:2; int minAngle=std∷min(abs(angLel),abs(angLeR)); int maxAngle=std∷max abs(angLel),abs(angLeR)); context+=maxAngle>minAngle? 0:1; context+=maxAngle>minAngle? 0:4.

[0190] After encoding the LaserIdx of the point, the Z-axis direction of the current point will be predicted and encoded using the LaserIdx corresponding to the current point. That is, the depth information radius of the cylindrical coordinate system is calculated by using the x and y information of the current point. Then, the tangent value of the current point and the vertical direction are obtained using the laser LaserIdx of the current point. The predicted value of the Z-axis direction of the current point can be obtained, that is, Z_pred: int tanTheta=tanθ laserIdx ; int zOffset = Z laserIdx ; Z_pred=radius×tanTheta-zOffset.

[0191] Finally, Z_pred is used to predict the geometric information of the current point in the Z-axis direction to obtain the prediction residual Z_res, and Z_res is finally encoded.

[0192] It is important to note that when partitioning nodes into leaf nodes, the number of duplicate points in the leaf nodes must be encoded in the case of lossless geometric coding. Ultimately, the placeholder information for all nodes is encoded to generate a binary bitstream. Furthermore, G-PCC currently introduces a plane coding mode. During the geometric partitioning process, it determines whether the child nodes of the current node are in the same plane. If the child nodes of the current node meet the conditions for being in the same plane, the child nodes of the current node are represented using that plane.

[0193] In octree-based geometric decoding, the decoder follows a breadth-first traversal. Before decoding each node's occupancy information, it first uses the reconstructed geometric information to determine whether the current node is for plane decoding or IDCM decoding. If the current node meets the requirements for plane decoding, it first decodes the plane identifier and plane position information of the current node. Then, based on the plane information, it decodes the current node's occupancy information. If the current node meets the requirements for IDCM decoding, it first decodes whether the current node is a true IDCM node. If so, it continues to parse the DCM decoding mode of the current node, then obtains the number of points in the current DCM node, and finally decodes the geometric information of each point. For nodes that do not meet either plane decoding or DCM decoding requirements, the current node's occupancy information is decoded. By continuously parsing in this way, the placeholder code of each node is obtained, and the node is continuously divided until a 1x1x1 unit cube is obtained. The number of points contained in each leaf node is parsed, and the geometrically reconstructed point cloud information is finally recovered.

[0194] The following is a detailed introduction to the IDCM decoding process.

[0195] The same process as encoding is used. First, a priori information is used to determine whether the node should start IDCM. The starting conditions of IDCM are as follows:

[0196] (1) The current node has no sibling child nodes, that is, the parent node of the current node has only one child node, and the parent node of the parent node of the current node has only two occupied child nodes, that is, the current node has at most one neighbor node.

[0197] (2) The parent node of the current node has only one child node, the current node. At the same time, the six neighbor nodes that share a face with the current node are also empty nodes.

[0198] (3) The number of sibling nodes of the current node is greater than 1.

[0199] When a node meets the conditions for DCM encoding, it first decodes whether the current node is a real DCM node, that is, IDCM_flag. When IDCM_flag is true, the current node adopts DCM encoding, otherwise it still adopts octree encoding.

[0200] Next, decode the number of points numPoints of the current node. The specific decoding method is as follows:

[0201] First decode whether the numPonts of the current node is greater than 1;

[0202] If the numPonts of the current node is greater than 1, the decoding is continued to determine whether the second point is a duplicate point. If the second point is not a duplicate point, it can be implicitly inferred that the second type of DCM mode contains only two points.

[0203] If the numPonts of the current node obtained by decoding is less than or equal to 1, continue decoding to see if the second point is a repeated point. If the second point is not a repeated point, it can be implicitly inferred that the second type of DCM mode is satisfied, which contains only one point. If the second point obtained by decoding is a repeated point, it can be inferred that the third type of DCM mode is satisfied, which contains multiple points, but they are all repeated points. Continue decoding to see if the number of repeated points is greater than 1 (entropy decoding). If it is greater than 1, continue decoding the number of remaining repeated points (using exponential Columbus decoding).

[0204] If the current node does not meet the requirements of the DCM node (that is, the number of points is greater than 2 points and it is not a duplicate point), exit directly.

[0205] After decoding the number of points in the current node, the coordinate information of the points contained in the current node is decoded.

[0206] The following will introduce the IDCM decoding process of lidar point cloud and human eye point cloud separately.

[0207] (1) Point cloud facing the human eye.

[0208] If the current node contains only one point, the geometric information of the point in three dimensions will be directly decoded (Bypass coding).

[0209] If the current node contains two points, the first coordinate axis to be decoded is dirextAxis, which is the one that is decoded first, using the geometric coordinates of the points. Note that the axes currently compared only include the x and y axes, not the z axis. Assuming the geometric coordinates of the current node are nodePos, the determination is as follows: dirextAxis = (nodePos[0] < nodePos[1]).

[0210] That is to say, the axis with the smaller node coordinate geometric position will be used as the priority decoding axis dirextAxis, and then the priority decoding axis dirextAxis geometric information will be decoded first in the following way, assuming that the geometry bit depth to be decoded corresponding to the priority decoding axis is nodeSizeLog2, and assuming that the coordinates of the two points are pointPos[0] and pointPos[1] respectively.

[0211] |pointPos[1][dirextAxis]| = 1 / / / <The reason here is that during encoding, the two points are sorted in the direction of the priority encoding axis, so it can be ensured that pointPos[0][dirextAxis] < pointPos[1][dirextAxis]. Therefore, during decoding, if the bit information of the two points is different, it can be inferred that the bit of the first point is 0 and the bit of the second point is 1.

[0212] }.

[0213] After decoding the priority decoding axis dirextAxis, the geometric coordinates of the current point are directly decoded. Assume that the remaining encoding bit depth of each point is nodeSizeLog2, then the specific decoding process is as follows. Assume that the coordinate information of the point is pointPos:

[0214] (2), For lidar point cloud.

[0215] 1), If there are two points in the current node, the axis for priority decoding dirextAxis will be obtained first by using the geometric coordinates of the points. Assume that the geometric coordinates of the current node are nodePos, then the judgment method is as follows: dirextAxis =!(nodePos[0] < nodePos[1]).

[0216] That is to say, the axis with a smaller geometric position of the node coordinates will be used as the axis for priority decoding dirextAxis. Here, it should be noted that currently, the axes being compared only include the x and y axes and do not include the z axis. Secondly, the geometric information of the axis for priority encoding dirextAxis is decoded first in the following way. Assume that the coded geometric bit depth corresponding to the axis for priority decoding is nodeSizeLog2, and assume that the coordinates of the two points are pointPos[0] and pointPos[1] respectively.

[0217] |pointPos[1][dirextAxis]| = 1 / / / <The reason here is that during encoding, the two points are sorted in the direction of the priority encoding axis, so it can be ensured that pointPos[0][dirextAxis] < pointPos[1][dirextAxis]. Therefore, during decoding, if the bit information of the two points is different, it can be inferred that the bit of the first point is 0 and the bit of the second point is 1.

[0218] }.

[0219] After decoding the priority decoding axis dirextAxis, the geometric coordinates of the current point are decoded.

[0220] Similarly, the decoder first uses the current node's geometry information nodePos to obtain a direct decoding axis direction, and then uses the geometry information of the decoded direction to decode the geometry information of the other dimension. Assuming the axis direction of direct decoding is directAxis and the bit depth to be decoded in direct decoding is nodeSizeLog2, the decoding method is as follows:

[0221] It should be noted here that all geometric accuracy information in the directAxis direction will be decoded here.

[0222] After decoding all the precision in the directAxis coordinate direction, the current node's LaserIdx (nodeLaserIdx) is first calculated. Next, the node's LaserIdx (nodeLaserIdx) is used to predict and decode the point's LaserIdx (pointLaserIdx). The calculation method for the node or point LaserIdx is the same as that used by the encoder. Finally, the difference between the current point's LaserIdx and the node's LaserIdx prediction is decoded to obtain ResLaserIdx. Thus: PointLaserIdx = nodeLaserIdx + ResLaserIdx.

[0223] After decoding the LaserIdx of the current point, the three-dimensional geometric information of the current point is predicted and decoded using the acquisition parameters of the laser radar. The specific algorithm is as follows:

[0224] First, use the LaserIdx corresponding to the current point to get the corresponding predicted value of the horizontal azimuth, that is, Secondly, the node geometry information corresponding to the current point is used to obtain the horizontal azimuth angle corresponding to the node Among them, the horizontal azimuth The calculation method between the node geometry information is as follows: Assuming the geometric coordinates of the node are nodePos, then

[0225] By using the acquisition parameters of the laser radar, we can get the number of rotation points of each Laser, numPoints, which represents the number of points obtained by each laser ray rotating one circle. Then, we can use the number of rotation points of each Laser to calculate the rotation angular velocity deltaPhi of each Laser, that is:

[0226] The horizontal azimuth angle of the node is used And the horizontal azimuth of the previous Laser code point corresponding to the current point Calculate the predicted horizontal azimuth angle corresponding to the current point That is the predicted value of the horizontal azimuth angle as shown in Figure 12. The calculation method is as follows:

[0227] Finally, by using the predicted value of the horizontal azimuth And the horizontal azimuth of the current node and the horizontal azimuth of the high plane To predict the geometric information of the current node. The details are as follows: int context=(angLel≥0&&angLeR≥0)||(angLel<0&&angLeR<0)? 0:2; int absAngleL=abs angLel); int absAngleR=abs angLeR); context+=absAngleL>absAngleR? 0:1; context+=maxAngle>minAngle<<1? 4:0.

[0228] After decoding the LaserIdx of the point, the Z-axis direction of the current point will be predicted and decoded using the LaserIdx corresponding to the current point. That is, the depth information radius of the cylindrical coordinate system is calculated by using the x and y information of the current point. Then, the tangent value of the current point and the vertical offset are obtained using the laser LaserIdx of the current point. Then, the predicted value of the Z-axis direction of the current point, namely Z_pred, can be obtained: int tanTheta=tanθ laserIdx ; int zOffset = Z laserIdx ; Z_pred=radius×tanTheta-zOffset.

[0229] Finally, the decoded Z_res and Z_pred are used to reconstruct and restore the geometric information of the current point in the Z-axis direction.

[0230] (2) Geometric information encoding based on triangle soup (trisoup).

[0231] In the trisoup geometry information coding framework, geometric partitioning is also performed first. However, unlike geometric information coding based on binary trees, quad trees, and octrees, this method does not need to partition the point cloud into unit cubes with a side length of 1x1x1. Instead, the partitioning stops when the block (sub-block) has a side length of W. Based on the surface formed by the distribution of the point cloud in each block, the surface and the twelve edges of the block are used to obtain up to twelve vertices (intersection points). The vertex coordinates of each block are encoded in sequence to generate a binary code stream.

[0232] When reconstructing point cloud geometry information at the decoding end, the vertex coordinates are first decoded to complete triangular face reconstruction.

[0233] FIG20 is a schematic diagram of reconstructing geometric information in a sub-block provided in an embodiment of the present application.

[0234] As shown in Figure 20, the block shown in (a) of Figure 20 contains three vertices (v1, v2, and v3). As shown in (b) of Figure 19, a set of triangles formed using these three vertices in a certain order is called triangle soup, or trisoup. Then, as shown in (c) of Figure 19, sampling is performed on this set of triangles, and the resulting sampled points are used as the reconstructed point cloud within the block.

[0235] (3) Geometric encoding and decoding based on prediction tree.

[0236] Prediction tree-based geometric coding includes:

[0237] First, the input point cloud is sorted. The sorting methods currently used include unordered, Morton order, azimuth order, and radial distance order. At the encoding end, the prediction tree structure is established by using two different methods, including: KD-Tree (high-latency slow mode) and using lidar calibration information to divide each point into different Lasers and establish a prediction structure according to different Lasers (low-latency fast mode). Next, based on the structure of the prediction tree, each node in the prediction tree is traversed, and the geometric position information of the node is predicted by selecting different prediction modes to obtain the prediction residual, and the geometric prediction residual is quantized using the quantization parameter. Finally, through continuous iteration, the prediction residual of the prediction tree node position information, the prediction tree structure, and the quantization parameters are encoded to generate a binary code stream.

[0238] Based on the geometric decoding of the prediction tree, the decoding end reconstructs the prediction tree structure by continuously parsing the bit stream. Secondly, the geometric position prediction residual information and quantization parameters of each prediction node are obtained through parsing, and the prediction residual is dequantized to restore the reconstructed geometric position information of each node, finally completing the geometric reconstruction at the decoding end.

[0239] After the geometric encoding is completed, the geometric information is reconstructed. Attribute encoding is mainly performed on color information. First, the color information is converted from the RGB color space to the YUV color space. Then, the point cloud is recolored using the reconstructed geometric information so that the unencoded attribute information corresponds to the reconstructed geometric information. In color information encoding, there are two main transformation methods. One is the distance-based lifting transformation that relies on LOD (Level of Detail) division, and the other is to directly perform RAHT (Region Adaptive Hierarchal Transform) transformation. Both methods convert the 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 encoded to generate a binary code stream.

[0240] When using geometric information to predict attribute information, Morton codes can be used to perform nearest neighbor searches. The Morton code corresponding to each point in the point cloud can be obtained from the geometric coordinates of the point. The specific method for calculating the Morton code is described below. For a three-dimensional coordinate represented by a d-bit binary number for each component, its three components can be expressed as:

[0241] in, The highest bits of x, y, and z are To the lowest position The corresponding binary value. The Morton code M is x, y, z starting from the highest bit, arranged in sequence To the lowest bit, the calculation formula of M is as follows:

[0242] in, The highest bit of M To the lowest position After obtaining the Morton code M of each point in the point cloud, the points in the point cloud are arranged in ascending order according to the Morton code, and the weight w of each point is set to 1.

[0243] (4) Geometric inter-frame coding and decoding based on prediction tree.

[0244] The point coordinates of the point cloud input are (x, y, z). Using the prior radar information of the current point cloud, the position information of the point cloud is converted into (radius, laserIdx)

[0245] The LaserIdx of a node or point is calculated as follows:

[0246] Assume that the geometric coordinates of the point are pointPos, the starting coordinates of the laser ray are LidarOrigin, and the number of lasers is LaserNum, and the tangent value of each laser is tanθ i , the vertical offset position of each Laser is Z i ,but:

[0247] Assume that the geometric coordinates of the node are pointPos, where:

[0248] LidarOrigin is usually 0.

[0249] FIG21 is an example of geometric inter-frame coding and decoding based on a prediction tree provided in an embodiment of the present application.

[0250] As shown in FIG21 , when the encoder performs inter-frame predictive coding on the current point to be coded, the predictive coding can be performed through the following process:

[0251] (1) Traverse the prediction tree and record the previous encoded point of the current point to be encoded as point a.

[0252] (2) Find point b in the reference frame of the current point; point b has the same and laserID, or point b is a point with the same laserID as point a, and Less than or equal to point a The first point of the reference frame has the same laserID as point a and Greater than point b The first point is recorded as point c, and the reference frame has the same laserID as point a and Greater than point c The first point of is recorded as point d, and points c and d are taken as inter-frame candidate points of the current point.

[0253] (3) The reference frame is subjected to global motion compensation (GMC) to obtain a GMC reference frame; point g is found in the GMC reference frame; point g has the same and laserID, or point g is a point with the same laserID as point a, and Less than or equal to point a The first point of the GMC reference frame has the same laserID as point g and Greater than point g The first point is recorded as e, and the laser ID of the GMC reference frame is the same as that of point a. Greater than point e The first point is recorded as point f, and points e and f are taken as candidate points between frames; optionally, points e and f Can be replaced by the parent node of the current point

[0254] (4) Through rate-distortion optimization (RDO), one candidate point is selected from the intra-frame candidate points and the inter-frame candidate points (for example, including at most the above-mentioned four inter-frame candidate points), and the reconstructed value of the geometric position information of the selected candidate point is determined as the predicted value of the geometric position information of the current point; then, based on the original value of the geometric position information of the current point and the predicted value of the geometric position information of the current point, the residual value of the geometric position information of the current point is determined.

[0255] When selecting a candidate point among the intra-frame candidate points and the inter-frame candidate points through RDO, the residual value corresponding to each candidate point can be determined based on the reconstructed value of the geometric position information of each candidate point among the intra-frame candidate points and the inter-frame candidate points and the original value of the geometric position information of the current point. Then, the residual value corresponding to each candidate point is encoded using the k-order Columbus, and the encoded codeword of the residual value is obtained. Then, the candidate point with the smallest codeword length of the residual value is selected as the candidate point for predicting the geometric position information of the current point, that is, the residual value with the smallest codeword length is selected as the residual value of the current point.

[0256] Finally, through continuous iteration, the prediction mode, residual value, prediction tree structure, quantization parameter and other parameters of the prediction tree node position information are encoded to generate a binary code stream.

[0257] Among them, the k-order Columbus encoding process is as follows:

[0258] 1. Convert the number to be encoded into binary form, remove the lowest k bits, and then add 1;

[0259] 2. Calculate the number of remaining bits and subtract 1 from this number of bits to get the number of prefix 0s;

[0260] 3. For the lowest k bits removed in the first step, add a prefix and fill in the end of the bit string to obtain the encoded codeword.

[0261] The decoding process of k-order Columbus is as follows:

[0262] When parsing a k-order exponential Golomb code, first look for the first non-zero bit starting from the current position of the bit stream, and record the number of zero bits found as leadingZeroBits, then calculate A based on leadingZeroBits. A=2(leadingZeroBits+k)-2 k +values; where values ​​is the value of the (leadingZeroBits+k) bits following the first non-zero bit.

[0263] At the decoding end, the decoding end can perform predictive decoding through the following process:

[0264] (1) By continuously parsing the code stream, reconstructing the prediction tree structure, traversing the prediction tree, the previous encoded point of the current point to be encoded is recorded as point a.

[0265] (2) decoding the prediction mode based on the prediction tree node position information obtained by decoding the bitstream;

[0266] (3) If the prediction mode is inter mode, the prediction mode obtained by decoding is used to select a candidate point for predicting the geometric position information of the current point from the following at most four candidate points:

[0267] Find point b in the reference frame of the current point; point b has the same and laserID, or point b is a point with the same laserID as point a, and Less than or equal to point a The first point of the reference frame has the same laserID as point a and Greater than point b The first point is recorded as point c, and the reference frame has the same laserID as point a and Greater than point c The first point of is recorded as point d, and points c and d are taken as inter-frame candidate points of the current point.

[0268] The reference frame is subjected to global motion compensation (GMC) to obtain the GMC reference frame; point g is found in the GMC reference frame; point g has the same and laserID, or point g is a point with the same laserID as point a, and Less than or equal to point a The first point of the GMC reference frame has the same laserID as point g and Greater than point g The first point is recorded as e, and the laser ID of the GMC reference frame is the same as that of point a. Greater than point e The first point is recorded as point f, and points e and f are taken as candidate points between frames; optionally, points e and f Can be replaced by the parent node of the current point

[0269] (4) The residual value and quantization parameter of the geometric position information of each point are obtained by analysis, and the residual value is dequantized to restore the reconstructed value of the geometric position information of each point, and finally the reconstruction of the geometric position information at the decoding end is completed.

[0270] It is worth noting that when the encoder selects one of the intra-frame candidate points and inter-frame candidate points through RDO, it can first determine the residual value corresponding to each candidate point based on the reconstructed value of the geometric position information of each candidate point in the intra-frame candidate point and the inter-frame candidate point and the original value of the geometric position information of the current point, and then use k-order Golomb to encode the residual value corresponding to each candidate point, and obtain the encoding codeword of the residual value, and then select the candidate point with the smallest codeword length as the candidate point for predicting the geometric position information of the current point, that is, select the residual value with the smallest codeword length as the residual value of the current point; equivalent to, it is necessary to encode the residual value corresponding to each candidate point, the purpose of which is only to select the residual value with the smallest codeword length, and the encoding process of the residual value that is not selected will reduce the encoding speed of the encoder and increase the complexity of the encoder, especially when there are many candidate points. In view of this, the present application provides a method for quickly calculating the encoding codeword of the exponential Golomb coding, which can improve the encoding speed of the encoder and reduce the complexity of the encoder.

[0271] FIG22 is a schematic flowchart of the encoding method 100 provided in an embodiment of the present application.

[0272] As shown in FIG. 22 , the encoding method 100 may include:

[0273] S110 , the encoder determines at least one residual value based on the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of at least one candidate point; the at least one residual value includes a first residual value.

[0274] For example, the first residual value may be a residual value of any one component corresponding to the first candidate point in the at least one candidate point. The any one component may be any one of the following components: radius, laserIdx. radius represents the distance component, Represents the horizontal azimuth component, and laserIdx represents the index component of the laser radar.

[0275] Exemplarily, the at least one residual value may include one first residual value, or may include multiple first residual values.

[0276] For example, when the at least one residual value may include a first residual value, the first residual value may be a residual value of a first component corresponding to the first candidate point, and the first component may be any one of the following components: radius, laserIdx. radius represents the distance component, Represents the horizontal azimuth component, and laserIdx represents the index component of the laser radar.

[0277] For another example, the at least one residual value may include multiple first residual values, that is, the multiple first residual values ​​may be residual values ​​of multiple components corresponding to the first candidate point, and the multiple components may include multiple of the following components: radius, laserIdx. radius represents the distance component, Represents the horizontal azimuth component, and laserIdx represents the index component of the laser radar.

[0278] Exemplarily, the first residual value is an integerized value.

[0279] Exemplarily, the first residual value may be an original residual value or a processed value. For example, the first residual value may be a value obtained after quantization processing or a value obtained after reduction or enlargement processing.

[0280] Exemplarily, the at least one candidate point may include an intra-frame candidate point and an inter-frame candidate point. The intra-frame candidate point is a subsequent point selected in the current frame where the current point is located. The inter-frame candidate point is a candidate point selected in the current frame in a reference frame and / or a GMC reference frame obtained by global motion compensation (GMC) of the reference frame.

[0281] For example, as shown in FIG21 , the inter-frame candidate point may include at least one of the following: point c, point d, point e, and point f:

[0282] Among them, point c and point d can be determined as follows:

[0283] Find point b in the reference frame of the current point; point b has the same and laserID, or point b is a point with the same laserID as point a, and Less than or equal to point a The first point of the reference frame has the same laserID as point a and Greater than point b The first point is recorded as point c, and the reference frame has the same laserID as point a and Greater than point c The first point of is denoted as point d.

[0284] Points e and f can be determined as follows:

[0285] The reference frame is subjected to global motion compensation (GMC) to obtain the GMC reference frame; point g is found in the GMC reference frame; point g has the same and laserID, or point g is a point with the same laserID as point a, and Less than or equal to point a The first point of the GMC reference frame has the same laserID as point g and Greater than point g The first point is recorded as e, and the laser ID of the GMC reference frame is the same as that of point a. Greater than point e The first point of is called point f. Optionally, the points e and f Can be replaced by the parent node of the current point

[0286] S120: Before encoding the first residual value, the encoder determines a codeword length of at least one of the residual values.

[0287] Exemplarily, before the encoder encodes the first residual value, the codeword length of at least one of the residual values ​​may be determined by estimation. For example, before the encoder encodes the first residual value, the codeword length of at least one of the residual values ​​may be determined by an estimation model. It is worth noting that the estimation model may be a mathematical model, a learning model (e.g., a machine learning model), or other types of models, and this application does not specifically limit this.

[0288] Exemplarily, at least one of the residual values ​​may be the at least one residual value, or a partial residual value in the at least one residual value.

[0289] S130: The encoder determines, based on the codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value.

[0290] Exemplarily, the encoder may determine that the predicted residual value of the geometric position information of the current point includes the first residual value by comparing the codeword length of the at least one residual value.

[0291] For example, when the first residual value may be the residual value of the first component corresponding to the first candidate point, if the codeword length of the first residual value is the minimum value among the codeword lengths of the at least one residual value, the encoder determines that the predicted residual value of the geometric position information of the current point includes the first residual value. Furthermore, the predicted residual value of the geometric position information of the current point may also include the residual values ​​of other components corresponding to the first candidate point, that is, the encoder may also encode the residual values ​​of other components corresponding to the first candidate point.

[0292] For another example, the at least one residual value may include multiple first residual values, that is, the multiple first residual values ​​may be the residual values ​​of multiple components corresponding to the first candidate point. The encoder may determine that the total codeword length of the residual values ​​of the multiple components corresponding to the first candidate point is the minimum value of the total codeword length of the residual values ​​of the multiple components corresponding to each candidate point in the at least one candidate point by comparing the codeword length of the at least one residual value. Then, the encoder determines that the predicted residual value of the geometric position information of the current point includes the residual values ​​of the multiple components corresponding to the first candidate point, that is, determines that the predicted residual value of the geometric position information of the current point includes the multiple first residual values.

[0293] S140: The encoder encodes the first residual value.

[0294] Exemplarily, the current point may be used as a node in a prediction tree, and the encoder may encode information such as the prediction mode, residual value, prediction tree structure, and quantization parameter of the node in the prediction tree to generate a binary code stream.

[0295] In this embodiment, at least one residual value is determined based on the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of at least one candidate point; the at least one residual value includes a first residual value; before encoding the first residual value, the codeword length of at least one of the residual values ​​is determined; based on the codeword length of the at least one residual value, the predicted residual value of the geometric position information of the current point is determined to include the first residual value; the first residual value is encoded; avoiding determining the codeword length of at least one of the residual values ​​in a pre-coding manner can improve the encoding speed of the encoder and reduce the encoding complexity of the encoder.

[0296] In some embodiments, the S120 may include:

[0297] The encoder first determines a first length based on the first residual value and the order of the exponential Golomb algorithm; and then determines a codeword length of the first residual value based on the first length.

[0298] It is worth noting that when the encoder first determines the first length based on the first residual value and the order of the exponential Golomb algorithm; and then determines the codeword length of the first residual value based on the first length, the codeword length of the first residual value can also be called the exponential Golomb codeword length of the first residual value.

[0299] In some embodiments, the encoder determines the first length using exponential operations and logarithmic operations based on the first residual value and the order of the Exponential Golomb algorithm.

[0300] In other words, the encoder may estimate the first length using an estimation model based on the first residual value and the order of the exponential Golomb algorithm. The estimation model may be a mathematical model established based on exponential operations and logarithmic operations.

[0301] In some embodiments, the encoder determines the first length based on the first residual value and the order of the exponential Golomb algorithm according to the following formula:

[0302] Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

[0303] In other words, the encoder determines the first length according to the following mathematical model based on the first residual value and the order of the exponential Golomb algorithm:

[0304] In some embodiments, the encoder determines a suffix codeword length in the encoded codeword of the first residual value based on the first residual value and the order of the exponential Golomb algorithm; and then determines the first length based on the suffix codeword length and the order of the exponential Golomb algorithm.

[0305] Exemplarily, the logical structure of the encoding codeword of the first residual value is: [(nk)][1][n]. The encoding codeword of the first residual value includes a prefix codeword of the encoding codeword of the first residual value (i.e., [(nk)]) and a suffix codeword of the encoding codeword of the first residual value (i.e., [n]), wherein the prefix codeword is connected to the suffix codeword by 1, the prefix codeword may include nk consecutive 0s, and the suffix codeword may include n bits. In other words, n represents the length of the suffix codeword of the encoding codeword of the first residual value.

[0306] In some embodiments, the encoder determines the length of the suffix codeword in the encoded codeword of the first residual value using exponential operation and logarithmic operation based on the first residual value and the order of the exponential Golomb algorithm.

[0307] In other words, the encoder determines the length of the suffix codeword in the encoding codeword of the first residual value based on the first residual value and the order of the exponential Golomb algorithm using an estimation model. The estimation model can be a mathematical model established based on exponential operations and logarithmic operations.

[0308] In some embodiments, the encoder determines the suffix codeword length based on the first residual value and the order of the exponential Golomb algorithm according to the following formula:

[0309] Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

[0310] In other words, the encoder determines the suffix codeword length according to the following mathematical model based on the first residual value and the order of the exponential Golomb algorithm:

[0311] In some embodiments, the encoder determines the suffix codeword length in the encoded codeword of the first residual value using addition, multiplication and subtraction operations based on the suffix codeword length and the order of the exponential Golomb algorithm.

[0312] In other words, the encoder determines the suffix codeword length in the encoding codeword of the first residual value using an estimation model based on the suffix codeword length and the order of the exponential Golomb algorithm. The estimation model can be a mathematical model established based on addition, multiplication and subtraction operations.

[0313] In some embodiments, the encoder determines the first length based on the suffix codeword length and the order of the exponential Golomb algorithm according to the following formula: 2×n−k+1;

[0314] Wherein, A represents the first residual value, n represents the length of the suffix codeword, and k represents the order of the exponential Golomb algorithm.

[0315] In other words, the encoder determines the first length according to the following mathematical model based on the suffix codeword length and the order of the Exponential Golomb algorithm: 2×n−k+1.

[0316] In some embodiments, the encoder determines the first length as the codeword length of the first residual value.

[0317] Exemplarily, the encoder determines the first length as the codeword length of the first residual value; then, based on the codeword length of the first residual value, when determining to determine the first residual value as the residual value of the geometric position information of the current point, the first residual value is encoded.

[0318] In some embodiments, the encoder determines a codeword length of the first residual value based on the first length and an order of the Exponential Golomb algorithm.

[0319] Exemplarily, the encoder determines the codeword length of the first residual value based on the first length and the order of the exponential Golomb algorithm; then, based on the codeword length of the first residual value, when determining that the first residual value is the residual value of the geometric position information of the current point, the first residual value is encoded.

[0320] In some embodiments, the encoder determines the codeword length of the first residual value according to the following formula:

[0321] max(k+1, L);

[0322] Wherein, k represents the order of the exponential Golomb algorithm, L represents the first length, and max() represents the maximum value operation.

[0323] Of course, in other alternative embodiments, the average value of k+1, L may be determined as the codeword length of the first residual value, and this application does not impose any specific limitation on this.

[0324] In some embodiments, the S130 may include:

[0325] If the first residual value is the residual value with the smallest codeword length between the first residual value and the second residual value, determining that the predicted residual value of the geometric position information of the current point includes the first residual value;

[0326] Among them, the first residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the second residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points other than the first candidate point among the at least one candidate point.

[0327] Exemplarily, the codeword length of the first residual value may be: The residual value corresponding to the component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point.

[0328] Exemplarily, if the codeword length of the first residual value is: The residual value corresponding to the component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point, accordingly, the codeword length of the second residual value is: A residual value corresponding to the component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate point other than the first candidate point in the at least one candidate point.

[0329] Of course, in other alternative embodiments, the first residual value and the second residual value may also be residual values ​​corresponding to other components (such as radius components), and this application does not make specific limitations on this.

[0330] In some embodiments, the S130 may include:

[0331] If at least one of the at least one first residual values ​​is: at least one residual value with the smallest total codeword length among at least one first residual value and at least one third residual value, then the predicted residual value of the geometric position information of the current point is determined to include the first residual value; wherein, the at least one first residual value is a residual value corresponding to at least one component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the at least one third residual value is at least one residual value corresponding to the at least one component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points other than the first candidate point among the at least one candidate point.

[0332] Exemplarily, the at least one first residual value includes the residual value corresponding to the radius component and The residual value corresponding to the radius component (the first residual value may be a residual value determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point), the total codeword length of the at least one first residual value is: the codeword length of the residual value corresponding to the radius component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point, and The codeword length of the residual value corresponding to the component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point, and the sum of the two lengths.

[0333] Exemplarily, if the total codeword length of the at least one first residual value is: the codeword length of the residual value corresponding to the radius component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point, and The length of the codeword of the residual value corresponding to the radius component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point, and the sum of the two lengths; then: the total length of the encoded codeword of the at least one third residual value is: the length of the codeword of the residual value corresponding to the radius component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points other than the first candidate point in the at least one candidate point, and The codeword length of the residual value corresponding to the component and determined by the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate point other than the first candidate point in the at least one candidate point, and the sum of the two lengths.

[0334] Below The derivation process is explained as follows:

[0335] Assuming that A represents the value to be encoded (such as the first residual value described above), and n represents the suffix length of the encoding codeword of the value to be encoded, then:

[0336] When k=0, that is, when 0-order exponential Columbus encoding is used, the following is satisfied: 0 +2 1 +2 2 +…+2 n-1 ≤A≤2 0 +2 1 +2 2 +…+2 n -1.

[0337] Using the geometric progression sum formula (i.e. S n =a1(1-q n ) / (1-q), a1 is the first term, q is the common ratio of the geometric sequence, S n is the sum of the first n items) we can see that:

[0338] 2 n -1≤A≤2 n+1 -2 (n is greater than or equal to 0).

[0339] 2 n -1≤A is converted, and the suffix length n of the 0-order Exponential Columbus encoding codeword is obtained as follows:

[0340] According to the property of 0-order Exponential Columbus (i.e., the prefix codeword length is equal to the suffix codeword length), the encoding codeword length of 0-order Exponential Columbus is:

[0341] That is

[0342] Considering that the codeword length of the 0-order Exponential Columbus encoding is greater than 1, the codeword length of the 0-order Exponential Columbus encoding is:

[0343] When k=1, that is, using 1st-order exponential Columbus encoding, it satisfies: 2 1 +2 2 +2 3 +…+2 n-1 ≤A≤2 1 +2 2 +2 3 +…+2 n -1.

[0344] Using the geometric progression sum formula (i.e. S n =a1(1-q n ) / (1-q), a1 is the first term, q is the common ratio of the geometric sequence, S n is the sum of the first n items) we can see that:

[0345] 2 n -2≤A≤2 n+1 -3 (n is greater than or equal to 1).

[0346] 2 n -2, we can get the suffix length n of the first-order Exponential Columbus codeword as:

[0347] According to the property of 1-order Exponential Columbus (i.e. the prefix codeword length is equal to the suffix codeword length minus 1), the encoding codeword length of 1-order Exponential Columbus is:

[0348] That is

[0349] Considering that the codeword length of the 1st order Exponential Columbus encoding is greater than 2, the codeword length of the 1st order Exponential Columbus encoding is:

[0350] When k=2, that is, using 1st-order exponential Columbus encoding, it satisfies: 2 2 +2 3 +…+2 n-1 ≤A≤2 2 +2 3 +…+2 n -1.

[0351] Using the geometric progression sum formula (i.e. S n =a1(1-q n ) / (1-q), a1 is the first term, q is the common ratio of the geometric sequence, S n is the sum of the first n items) we can see that:

[0352] 2 n -4≤A≤2 n+1 -5 (n is greater than or equal to 2).

[0353] 2 n -4, the suffix length n of the 2nd order Exponential Columbus code word can be obtained as follows:

[0354] Indicates rounding down.

[0355] According to the property of 2nd order Exponential Columbus (i.e. the prefix codeword length is equal to the suffix codeword length minus 2), the encoding codeword length of 2nd order Exponential Columbus is:

[0356] That is

[0357] Considering that the codeword length of the 2nd order exponential Columbus encoding is greater than 3, the codeword length of the 2nd order exponential Columbus encoding is:

[0358] From the above analysis, we can see that the length of the k-order exponential Columbus encoding codeword is:

[0359] In this embodiment, the codeword length of the residual value is estimated using a mathematical model construction algorithm, which can increase the encoding speed of the encoding end and reduce the complexity of the encoding end.

[0360] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the embodiments mentioned above. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all fall within the scope of protection of the present application. For example, the various specific technical features described in the specific embodiments mentioned above can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will no longer describe the various possible combinations separately. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application. It should also be understood that in the various method embodiments of the present application, the size of the sequence numbers of the processes mentioned above does not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0361] The above describes in detail the method embodiment of the present application. The following describes in detail the device embodiment of the present application in conjunction with Figure 23.

[0362] FIG23 is a schematic block diagram of the encoder 200 according to an embodiment of the present application.

[0363] As shown in FIG23 , the encoder 200 may include:

[0364] A first determining unit 210 is configured to determine at least one residual value based on an original value of the geometric position information of the current point and a reconstructed value of the geometric position information of at least one candidate point; the at least one residual value includes a first residual value;

[0365] A second determining unit 220 is configured to determine a codeword length of at least one of the residual values ​​before encoding the first residual value;

[0366] A third determining unit 230 is configured to determine, based on a codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value;

[0367] The encoding unit 240 is configured to encode the first residual value.

[0368] In some embodiments, the second determining unit 220 is specifically configured to:

[0369] determining a first length based on the first residual value and an order of the Exponential Golomb algorithm;

[0370] Based on the first length, a codeword length of the first residual value is determined.

[0371] In some embodiments, the second determining unit 220 is specifically configured to:

[0372] The first length is determined by using exponential operation and logarithmic operation based on the first residual value and the order of the Exponential Golomb algorithm.

[0373] In some embodiments, the second determining unit 220 is specifically configured to:

[0374] The first length is determined based on the first residual value and the order of the exponential Golomb algorithm according to the following formula:

[0375] Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

[0376] In some embodiments, the second determining unit 220 is specifically configured to:

[0377] determining a suffix codeword length in an encoding codeword of the first residual value based on the first residual value and an order of the exponential Golomb algorithm;

[0378] The first length is determined based on the suffix codeword length and the order of the Exponential Golomb algorithm.

[0379] In some embodiments, the second determining unit 220 is specifically configured to:

[0380] Based on the first residual value and the order of the exponential Golomb algorithm, the length of the suffix codeword in the encoding codeword of the first residual value is determined by using exponential operation and logarithmic operation.

[0381] In some embodiments, the second determining unit 220 is specifically configured to:

[0382] Based on the first residual value and the order of the exponential Golomb algorithm, the suffix codeword length is determined according to the following formula:

[0383] Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

[0384] In some embodiments, the second determining unit 220 is specifically configured to:

[0385] Based on the suffix codeword length and the order of the Exponential Golomb algorithm, the first length is determined according to the following formula:

[0386] 2n-k+1;

[0387] Wherein, A represents the first residual value, n represents the length of the suffix codeword, and k represents the order of the exponential Golomb algorithm.

[0388] In some embodiments, the second determining unit 220 is specifically configured to:

[0389] The first length is determined as the codeword length of the first residual value.

[0390] In some embodiments, the second determining unit 220 is specifically configured to:

[0391] A codeword length of the first residual value is determined based on the first length and the order of the Exponential Golomb algorithm.

[0392] In some embodiments, the second determining unit 220 is specifically configured to:

[0393] The codeword length of the first residual value is determined according to the following formula:

[0394] max(k+1, L);

[0395] Wherein, k represents the order of the exponential Golomb algorithm, L represents the first length, and max() represents the maximum value operation.

[0396] In some embodiments, the third determining unit 230 is specifically configured to:

[0397] If the first residual value is the residual value with the smallest codeword length between the first residual value and the second residual value, determining that the predicted residual value of the geometric position information of the current point includes the first residual value;

[0398] Among them, the first residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the second residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points other than the first candidate point among the at least one candidate point.

[0399] In some embodiments, the third determining unit 230 is specifically configured to:

[0400] If at least one of the at least one first residual value among the at least one residual value is: at least one residual value having the smallest total codeword length among the at least one first residual value and the at least one third residual value, determining that the predicted residual value of the geometric position information of the current point includes the first residual value;

[0401] Among them, the at least one first residual value is a residual value corresponding to at least one component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the at least one third residual value is at least one residual value corresponding to the at least one component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points other than the first candidate point among the at least one candidate point.

[0402] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. Specifically, the encoder 200 shown in Figure 23 may correspond to the corresponding subject in performing the method 100 of the embodiment of the present application, that is, the aforementioned and other operations and / or functions of the various units in the encoder 200 are respectively for implementing the corresponding processes in the method 100 and other methods.

[0403] It should also be understood that the various units in the encoder 200 involved in the embodiment of the present application can be separately or all merged into one or several other units to constitute, or some (some) units therein can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effect of the embodiment of the present application. The units involved in the above are divided based on logical functions. In practical applications, the function of a unit can also be realized by multiple units, or the function of multiple units is realized by one unit. In other embodiments of the present application, the encoder 200 can also include other units. In practical applications, these functions can also be assisted by other units to achieve, and can be achieved by the collaboration of multiple units. According to another embodiment of the present application, the encoder 200 involved in the embodiment of the present application can be constructed by running a computer program (including program code) that can execute each step involved in the corresponding method on a general-purpose computing device including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), etc., to construct the encoding method of the embodiment of the present application. The computer program can be recorded on, for example, a computer-readable storage medium, loaded into an electronic device via the computer-readable storage medium, and run therein to implement the corresponding method of the embodiment of the present application.

[0404] In other words, the units mentioned above can be implemented in the form of hardware, can be implemented by instructions in the form of software, or can be implemented in the form of a combination of hardware and software. Specifically, the steps of the method embodiments in the embodiments of the present application can be completed by the hardware integrated logic circuit and / or software instructions in the processor, and the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software in a decoding processor. Optionally, the software can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps in the method embodiments mentioned above in combination with its hardware.

[0405] FIG24 is a schematic structural diagram of an electronic device 300 provided in an embodiment of the present application.

[0406] As shown in Figure 24, the electronic device 300 includes at least a processor 310 and a computer-readable storage medium 320. The processor 310 and the computer-readable storage medium 320 may be connected via a bus or other means. The computer-readable storage medium 320 is used to store a computer program 321, which includes computer instructions. The processor 310 is used to execute the computer instructions stored in the computer-readable storage medium 320. The processor 310 is the computing core and control core of the electronic device 300 and is suitable for implementing one or more computer instructions, specifically loading and executing one or more computer instructions to implement the corresponding method flow or corresponding function.

[0407] For example, the processor 310 may also be referred to as a central processing unit (CPU). The processor 310 may include, but is not limited to, 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, transistor logic devices, discrete hardware components, and the like.

[0408] Exemplarily, the computer-readable storage medium 320 may be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk storage; optionally, it may be at least one computer-readable storage medium located away from the aforementioned processor 310. Specifically, the computer-readable storage medium 320 includes, but is not limited to: volatile memory and / or non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be 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 (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0409] Exemplarily, the electronic device 300 may be an encoder or encoding framework involved in an embodiment of the present application; a first computer instruction is stored in the computer-readable storage medium 320; the processor 310 loads and executes the first computer instruction stored in the computer-readable storage medium 320 to implement the corresponding steps in the encoding method provided in an embodiment of the present application; in other words, the first computer instruction in the computer-readable storage medium 320 is loaded by the processor 310 and the corresponding steps are executed. To avoid repetition, it will not be repeated here.

[0410] According to another aspect of the present application, the present application also provides a coding and decoding system, including the encoder and decoder mentioned above.

[0411] According to another aspect of the present application, the present application also provides a computer-readable storage medium (Memory), which is a memory device in the electronic device 300 for storing programs and data. For example, a computer-readable storage medium 320. It can be understood that the computer-readable storage medium 320 here can include both the built-in storage medium in the electronic device 300 and, of course, the extended storage medium supported by the electronic device 300. The computer-readable storage medium provides a storage space, which stores the operating system of the electronic device 300. In addition, one or more computer instructions suitable for being loaded and executed by the processor 310 are also stored in the storage space. These computer instructions can be one or more computer programs 321 (including program codes).

[0412] According to another aspect of the present application, a computer program product or computer program is provided. The computer program product or computer program includes computer instructions stored in a computer-readable storage medium. For example, computer program 321 is provided. In this case, data processing device 300 may be a computer, and processor 310 reads the computer instructions from computer-readable storage medium 320. Processor 310 executes the computer instructions, causing the computer to perform the encoding methods provided in the various optional embodiments described above.

[0413] In other words, when implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process of the embodiment of the present application is run in whole or in part or the functions of the embodiment of the present application are implemented. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode.

[0414] Those skilled in the art will appreciate that the units and process steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0415] Finally, it should be noted that the above content is merely a specific embodiment of this application, but the scope of protection of this 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.

Claims

1. A coding method, characterized in that: include: Determine at least one residual value based on an original value of the geometric position information of the current point and a reconstructed value of the geometric position information of at least one candidate point; The at least one residual value comprises a first residual value; Before encoding the first residual value, determining a codeword length of at least one of the residual values; Determining, based on a codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value; The first residual value is encoded.

2. The method according to claim 1, characterized in that The determining of the codeword length of at least one of the residual values ​​comprises: Determining a first length based on the first residual value and an order of the exponential Golomb algorithm; Based on the first length, a codeword length of the first residual value is determined.

3. The method according to claim 2, characterized in that The determining of the first length based on the first residual value and the order of the exponential Golomb algorithm comprises: The first length is determined by using exponential operation and logarithmic operation based on the first residual value and the order of the exponential Golomb algorithm.

4. The method according to claim 3, characterized in that The determining the first length by using exponential operation and logarithmic operation based on the first residual value and the order of the exponential Golomb algorithm comprises: Based on the first residual value and the order of the exponential Golomb algorithm, the first length is determined according to the following formula: Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

5. The method according to claim 2, characterized in that: The determining of the first length based on the first residual value and the order of the exponential Golomb algorithm comprises: Determining, based on the first residual value and the order of the exponential Golomb algorithm, a suffix codeword length in an encoding codeword of the first residual value; The first length is determined based on the suffix codeword length and the order of the exponential Golomb algorithm.

6. The method according to claim 5, characterized in that The determining, based on the first residual value and the order of the exponential Golomb algorithm, the length of the suffix codeword in the encoding codeword of the first residual value comprises: Based on the first residual value and the order of the exponential Golomb algorithm, the length of the suffix codeword in the encoding codeword of the first residual value is determined by using exponential operation and logarithmic operation.

7. The method according to claim 6, characterized in that The determining the length of the suffix codeword in the encoding codeword of the first residual value by using exponential operation and logarithmic operation based on the first residual value and the order of the exponential Golomb algorithm comprises: Based on the first residual value and the order of the exponential Golomb algorithm, the suffix codeword length is determined according to the following formula: Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

8. The method according to claim 5, characterized in that The determining the first length based on the suffix codeword length and the order of the exponential Golomb algorithm comprises: Based on the suffix codeword length and the order of the exponential Golomb algorithm, the first length is determined according to the following formula: 2×n-k+1; Wherein, A represents the first residual value, n represents the suffix codeword length, and k represents the order of the exponential Golomb algorithm.

9. The method according to any one of claims 2 to 8, characterized in that The determining, based on the first length, a codeword length of the first residual value includes: The first length is determined as the codeword length of the first residual value.

10. The method according to any one of claims 2 to 8, characterized in that The determining, based on the first length, a codeword length of the first residual value includes: A codeword length of the first residual value is determined based on the first length and the order of the Exponential Golomb algorithm.

11. The method according to claim 10, characterized in that The determining, based on the first length and the order of the exponential Golomb algorithm, the codeword length of the first residual value comprises: The codeword length of the first residual value is determined according to the following formula: max(k+1,L); Among them, k represents the order of the exponential Columbus algorithm, L represents the first length, and max() represents the maximum value operation.

12. The method according to any one of claims 1 to 11, characterized in that The step of determining, based on the codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value comprises: If the first residual value is a residual value having the smallest codeword length among the first residual value and the second residual value, determining that the predicted residual value of the geometric position information of the current point includes the first residual value; Among them, the first residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the second residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points among the at least one candidate point except the first candidate point.

13. The method according to any one of claims 1 to 11, characterized in that The step of determining, based on the codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value comprises: If at least one of the at least one first residual value among the at least one residual value is: at least one residual value having the smallest total codeword length among the at least one first residual value and the at least one third residual value, then determining that the predicted residual value of the geometric position information of the current point includes the first residual value; The at least one first residual value is a residual value corresponding to at least one component and determined based on the following information: the geometric position of the current point The at least one third residual value is the at least one residual value corresponding to the at least one component and is determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points other than the first candidate point among the at least one candidate point.

14. An encoder, characterized in that: include: A first determining unit, configured to determine at least one residual value based on an original value of the geometric position information of the current point and a reconstructed value of the geometric position information of at least one candidate point; The at least one residual value comprises a first residual value; A second determining unit, configured to determine a codeword length of at least one of the residual values ​​before encoding the first residual value; A third determining unit, configured to determine, based on a codeword length of the at least one residual value, that the predicted residual value of the geometric position information of the current point includes the first residual value; An encoding unit, used to encode the first residual value.

15. The encoder according to claim 14, characterized in that The second determining unit is specifically configured to: Determining a first length based on the first residual value and an order of the exponential Golomb algorithm; Based on the first length, a codeword length of the first residual value is determined.

16. The encoder according to claim 15, characterized in that The second determining unit is specifically configured to: The first length is determined by using exponential operation and logarithmic operation based on the first residual value and the order of the exponential Golomb algorithm.

17. The encoder according to claim 16, characterized in that The second determining unit is specifically configured to: Based on the first residual value and the order of the exponential Golomb algorithm, the first length is determined according to the following formula: Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

18. The encoder according to claim 15, characterized in that The second determining unit is specifically configured to: Determining, based on the first residual value and the order of the exponential Golomb algorithm, a suffix codeword length in an encoding codeword of the first residual value; The first length is determined based on the suffix codeword length and the order of the exponential Golomb algorithm.

19. The encoder according to claim 18, characterized in that The second determining unit is specifically configured to: Based on the first residual value and the order of the exponential Golomb algorithm, the length of the suffix codeword in the encoding codeword of the first residual value is determined by using exponential operation and logarithmic operation.

20. The encoder according to claim 19, characterized in that The second determining unit is specifically configured to: Based on the first residual value and the order of the exponential Golomb algorithm, the suffix codeword length is determined according to the following formula: Wherein, A represents the first residual value, k represents the order of the exponential Golomb algorithm, Indicates floor operation.

21. The encoder according to claim 18, characterized in that The second determining unit is specifically configured to: Based on the suffix codeword length and the order of the exponential Golomb algorithm, the first length is determined according to the following formula: 2×n-k+1; Wherein, A represents the first residual value, n represents the suffix codeword length, and k represents the order of the exponential Golomb algorithm.

22. The encoder according to any one of claims 15 to 21, characterized in that The second determining unit is specifically configured to: The first length is determined as the codeword length of the first residual value.

23. The encoder according to any one of claims 15 to 21, characterized in that The second determining unit is specifically configured to: A codeword length of the first residual value is determined based on the first length and the order of the exponential Golomb algorithm.

24. The encoder according to claim 23, characterized in that The second determining unit is specifically configured to: The codeword length of the first residual value is determined according to the following formula: max(k+1,L); Among them, k represents the order of the exponential Columbus algorithm, L represents the first length, and max() represents the maximum value operation.

25. The encoder according to any one of claims 14 to 24, characterized in that The third determining unit is further configured to: If the first residual value is a residual value having the smallest codeword length among the first residual value and the second residual value, determining that the predicted residual value of the geometric position information of the current point includes the first residual value; Among them, the first residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the second residual value is a residual value corresponding to the first component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points among the at least one candidate point except the first candidate point.

26. The encoder according to any one of claims 14 to 24, characterized in that The third determining unit is further configured to: If at least one of the at least one first residual value among the at least one residual value is: at least one residual value having the smallest total codeword length among the at least one first residual value and the at least one third residual value, then determining that the predicted residual value of the geometric position information of the current point includes the first residual value; Among them, the at least one first residual value is a residual value corresponding to at least one component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the first candidate point among the at least one candidate point; the at least one third residual value is at least one residual value corresponding to the at least one component and determined based on the following information: the original value of the geometric position information of the current point and the reconstructed value of the geometric position information of the candidate points among the at least one candidate point except the first candidate point.

27. An electronic device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium having a computer program stored therein, wherein the computer program, when executed by the processor, implements the method according to any one of claims 1 to 13.

28. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 13.

29. A computer program product comprising a computer program / instructions, characterized in that The computer program / instructions implement the method according to any one of claims 1 to 13 when executed by a processor.

30. A code stream, characterized in that The code stream is a code stream generated by the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Decoding and coding methods based on point cloud attribute prediction, decoder and encoder

    CN115086660A

  • Point cloud encoding and decoding method, encoder, decoder and storage medium

    CN115914650A

  • Binarization Scheme for Intra Prediction Residuals and Improved Intra Prediction in Lossless Coding in HEVC

    US20130279569A1

  • Parameter determination for EXP-golomb residuals binarization for lossless intra HEVC coding

    WO2013159119A1

  • Point cloud data transmission device, point cloud data transmission method, point cloud data reception device, and point cloud data reception method

    WO2022220645A1