Encoding method, decoding method, code stream, encoder, decoder, and storage medium

By using local motion processing in the point cloud encoding and decoding method to optimize the angle parameter values ​​of the prediction nodes, the problem of low inter-frame prediction accuracy in the existing technology is solved, and the encoding and decoding efficiency of geometric information and the encoding and decoding performance of point clouds are improved. .

WO2024212045A1PCT 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/087311
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Existing geometric coding and decoding methods based on prediction trees only consider global motion during inter-frame prediction, resulting in poor prediction results and reducing the coding and decoding efficiency of geometric information.

Method used

Through the method on the decoder side, the code stream is parsed to determine the prediction node index value of the node to be decoded, and local motion processing is performed based on the previous decoded node to optimize the angle parameter value of the prediction node, thereby improving the accuracy of inter-frame prediction. The encoder side looks for candidate nodes with the same geometric parameters in the reference frame and performs local motion processing to generate geometric prediction values.

Benefits of technology

It improves the accuracy of inter-frame prediction and the encoding and decoding efficiency of geometric information, and improves the encoding and decoding performance of point clouds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023087311_17102024_PF_FP_ABST
    Figure CN2023087311_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an encoding method, a decoding method, a code stream, an encoder, a decoder, and a storage medium. The decoding method comprises: parsing a code stream, and determining a prediction node index value corresponding to a node to be decoded; determining a previous first decoded node of the node to be decoded in a current frame; determining a prediction node according to the prediction node index value and the first decoded node; on the basis of the first decoded node, carrying out local motion processing on a first angle parameter value of the prediction node, and determining a second angle parameter value of the prediction node; on the basis of the first angle parameter value or the second angle parameter value, determining geometric parameters of the prediction node; and on the basis of the geometric parameters, determining a geometric prediction value of the node to be decoded. The embodiments of the present application can improve the accuracy of inter-frame prediction, thereby being capable of improving the encoding and decoding efficiency of geometric information, and improving the encoding and decoding performance of the point cloud.
Need to check novelty before this filing date? Find Prior Art

Description

Coding and decoding method, code stream, encoder, decoder and storage medium Technical Field

[0001] The embodiments of the present application relate to the field of point cloud encoding and decoding technology, and in particular to an encoding and decoding method, a bit stream, an encoder, a decoder, and a storage medium. Background Art

[0002] In the geometry-based point cloud compression (G-PCC) codec framework, the geometric information and attribute information of the point cloud are encoded separately. G-PCC's geometry coding can be divided into octree-based geometry coding and prediction tree-based geometry coding. For prediction tree-based geometry coding, it is first necessary to establish a prediction tree; then, each node in the prediction tree is traversed, and after determining the prediction mode of each node, the geometric position information of the node is predicted according to the prediction mode to obtain the prediction residual. Finally, the parameters such as the prediction mode and prediction residual of each node are encoded to generate a binary code stream.

[0003] During the encoding process described above, the current node can also use inter-frame prediction mode to predict the node's geometric position information. However, related technologies only consider the prior information of global motion when performing inter-frame prediction on the selected inter-frame candidate nodes, resulting in poor prediction results, reduced inter-frame prediction accuracy, and lowered geometric information encoding and decoding efficiency.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a coding and decoding method, a code stream, an encoder, a decoder, and a storage medium, which can improve the accuracy of inter-frame prediction, thereby improving the coding and decoding efficiency of geometric information and improving the coding and decoding performance of point clouds.

[0006] The technical solution of the embodiment of the present application can be implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides a decoding method, which is applied to a decoder method including:

[0008] Parse the code stream to determine the predicted node index value corresponding to the node to be decoded;

[0009] Determine a first decoded node preceding the node to be decoded in the current frame;

[0010] Determining a prediction node according to the prediction node index value and the first decoded node;

[0011] Based on the first decoded node, performing local motion processing on the first angle parameter value of the prediction node to determine a second angle parameter value of the prediction node;

[0012] determining a geometric parameter of the prediction node based on the first angle parameter value or the second angle parameter value;

[0013] Based on the geometric parameters, a geometric prediction value of the node to be decoded is determined.

[0014] In a second aspect, an embodiment of the present application provides an encoding method, applied to an encoder, the method comprising:

[0015] Determine a first coded node preceding the node to be coded in the current frame;

[0016] Determine a first candidate node having at least one geometric parameter identical to that of the first encoded node in a reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node;

[0017] performing local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node;

[0018] Based on the first candidate node and at least one updated second candidate node, a geometric prediction value of the node to be encoded is determined.

[0019] In a third aspect, an embodiment of the present application provides a code stream, wherein the code stream is generated by bit encoding based on information to be encoded; wherein the information to be encoded includes at least one of the following:

[0020] The geometric prediction residual value, quantization parameter, prediction node index value, first identification information and second identification information of the node to be encoded;

[0021] The first identification information is used to indicate whether the node to be encoded uses an inter-frame prediction mode, and the second identification information is used to indicate whether the node to be encoded enables a local motion processing mode.

[0022] In a fourth aspect, an embodiment of the present application provides a decoder, comprising a decoding unit, a first determining unit, and a first local motion processing unit; wherein,

[0023] The decoding unit is configured to parse the code stream to determine the predicted node index value corresponding to the node to be decoded; and determine the first decoded node before the node to be decoded in the current frame;

[0024] The first determining unit is configured to determine a prediction node according to the prediction node index value and the first decoded node;

[0025] The first local motion processing unit is configured to perform local motion processing on the first angle parameter value of the prediction node based on the first decoded node to determine the second angle parameter value of the prediction node;

[0026] The first determination unit is further configured to determine the geometric parameters of the predicted node based on the first angle parameter value or the second angle parameter value; and determine the geometric prediction value of the node to be decoded based on the geometric parameters.

[0027] In a fifth aspect, an embodiment of the present application provides a decoder, comprising a first memory and a first processor; wherein,

[0028] The first memory is configured to store a computer program that can be executed on the first processor;

[0029] The first processor is configured to execute a decoding method on the decoder side when running the computer program.

[0030] In a sixth aspect, an embodiment of the present application provides an encoder, comprising a second determination unit, a second local motion processing unit, and a prediction unit; wherein,

[0031] The second determining unit is configured to determine a first coded node preceding the node to be coded in the current frame; and determine a first candidate node having at least one same geometric parameter as the first coded node in a reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node;

[0032] The second local motion processing unit is configured to perform local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain the updated at least one second candidate node;

[0033] The prediction unit is configured to determine a geometric prediction value of the node to be encoded based on the first candidate node and at least one updated second candidate node.

[0034] In a seventh aspect, an embodiment of the present application provides an encoder, comprising a second memory and a second processor; wherein,

[0035] The second memory is configured to store a computer program that can be executed on the second processor;

[0036] The second processor is configured to execute the encoding method on the encoder side when running the computer program.

[0037] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a first processor, the computer program implements a decoding method on the decoder side, or when the computer program is executed by a second processor, the computer program implements a coding and decoding method on the encoder side.

[0038] An embodiment of the present application provides a coding and decoding method. On the decoder side, first, the decoder parses the code stream to determine the predicted node index value corresponding to the node to be decoded; then, the decoder determines the first decoded node before the node to be decoded in the current frame; then, the decoder determines the predicted node based on the predicted node index value and the first decoded node; then, the decoder performs local motion processing on the first angle parameter value of the predicted node based on the first decoded node to determine the second angle parameter value of the predicted node; finally, the decoder determines the geometric parameters of the predicted node based on the first angle parameter value or the second angle parameter value; based on the geometric parameters, the geometric prediction value of the node to be decoded is determined.

[0039] On the encoder side, first, the encoder determines the first encoded node preceding the node to be encoded in the current frame; then, the encoder determines a first candidate node in the reference frame that has at least one geometric parameter identical to the first encoded node, and determines at least one second candidate node in the reference frame based on the first candidate node; then, the encoder performs local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node; finally, the encoder determines the geometric prediction value of the node to be encoded based on the first candidate node and the at least one updated second candidate node. In this way, the technical solution of the present application mainly optimizes the angle parameter value of the prediction node used for inter-frame prediction.

[0040] On the one hand, since the first angle parameter value is obtained after local motion processing, the second angle parameter value has the prior information of local motion compared to the first angle parameter value, thereby achieving a more refined prediction of the geometric information of the prediction node, thereby improving the accuracy of inter-frame prediction. On the other hand, by performing local motion processing on the angle parameter value of the prediction node, when the second angle parameter value of the prediction node is used to determine the reconstructed geometric information of the node to be decoded, the accuracy of the geometric reconstruction of the node to be decoded can be improved, thereby improving the accuracy of inter-frame prediction, improving the encoding and decoding efficiency of the geometric information, and thus improving the encoding and decoding performance of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] FIG1A is a schematic diagram of a three-dimensional point cloud image;

[0042] FIG1B is a partially enlarged view of a three-dimensional point cloud image;

[0043] FIG2A is a schematic diagram of six viewing angles of a point cloud image;

[0044] FIG2B is a schematic diagram of a data storage format corresponding to a point cloud image;

[0045] FIG3 is a schematic diagram of a network architecture for point cloud encoding and decoding;

[0046] FIG4A is a schematic diagram of a composition framework of a G-PCC encoder;

[0047] FIG4B is a schematic diagram of a composition framework of a G-PCC decoder;

[0048] FIG5A is a schematic diagram of a low plane position in the Z-axis direction;

[0049] FIG5B is a schematic diagram of a high plane position in the Z-axis direction;

[0050] FIG6 is a schematic diagram of a node coding sequence;

[0051] FIG7A is a schematic diagram of plane identification information;

[0052] FIG7B is a schematic diagram of another type of planar identification information;

[0053] FIG8 is a schematic diagram of sibling nodes of a current node;

[0054] Figure 9 is a schematic diagram of the intersection of a laser radar and a node;

[0055] FIG10 is a schematic diagram of neighborhood nodes at the same partition depth and the same coordinates;

[0056] FIG11A is a schematic diagram showing a current node located at a lower plane position of a parent node;

[0057] FIG11B is a second schematic diagram of a current node being located at a lower plane position of a parent node;

[0058] FIG11C is a third schematic diagram of a current node located at a lower plane position of a parent node;

[0059] FIG12A is a schematic diagram showing a current node located at a high plane position of a parent node;

[0060] FIG12B is a second schematic diagram of a current node being located at a high plane position of a parent node;

[0061] FIG12C is a third schematic diagram of a current node being located at a high plane position of a parent node;

[0062] FIG13 is a schematic diagram of predictive coding of planar position information of a laser radar point cloud;

[0063] FIG14 is a schematic diagram of IDCM encoding;

[0064] FIG15 is a schematic diagram of coordinate transformation of a rotating laser radar to obtain a point cloud;

[0065] FIG16 is a schematic diagram of predictive coding in the X-axis or Y-axis direction;

[0066] FIG17A is a schematic diagram showing an angle of the X-plane predicted by the horizontal azimuth angle;

[0067] FIG17B is a schematic diagram showing an angle of the Y plane predicted by the horizontal azimuth angle;

[0068] FIG18 is another schematic diagram of predictive coding in the X-axis or Y-axis direction;

[0069] FIG19A is a schematic diagram of three intersection points included in a sub-block;

[0070] FIG19B is a schematic diagram of a triangular facet set fitted using three intersection points;

[0071] FIG19C is a schematic diagram of upsampling of a triangle face set;

[0072] FIG20 is a schematic diagram of the structure of a geometric prediction tree inter-frame codec;

[0073] FIG21 is a schematic diagram of a flowchart of a decoding method provided in an embodiment of the present application;

[0074] FIG22 is a schematic diagram of a flow chart of an encoding method provided in an embodiment of the present application;

[0075] FIG23 is a schematic diagram of the structure of an inter-frame coding and decoding of geometric information provided by an embodiment of the present application;

[0076] FIG24 is a schematic diagram of the structure of another geometric information inter-frame encoding and decoding provided by an embodiment of the present application;

[0077] FIG25 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application;

[0078] FIG26 is a schematic diagram of a specific hardware structure of a decoder provided in an embodiment of the present application;

[0079] FIG27 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;

[0080] FIG28 is a schematic diagram of a specific hardware structure of an encoder provided in an embodiment of the present application;

[0081] Figure 29 is a schematic diagram of the composition structure of a coding and decoding system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0082] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0083] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0084] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0085] It should also be pointed out that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0086] Point cloud is a three-dimensional representation of the surface of an object. Point cloud (data) of the surface of an object can be collected through acquisition equipment such as photoelectric radar, lidar, laser scanner, and multi-view camera.

[0087] A 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 scene. Figure 1A shows a three-dimensional point cloud image and Figure 1B shows a partially enlarged view of the three-dimensional point cloud image. It can be seen that the point cloud surface is composed of densely distributed points.

[0088] In a two-dimensional image, each pixel contains information and is distributed regularly, 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 location in the acquisition process has corresponding attribute information, typically an RGB color value, which reflects the object's color. For a point cloud, in addition to color information, each point's corresponding attribute information often includes reflectance values, which reflect the surface texture of the object. Therefore, point cloud data typically includes both point location information and point attribute information. Point location information can also be referred to as point geometric information. For example, point geometric information can be the point's three-dimensional coordinates (x, y, z). Point attribute information can include color information and / or reflectance. For example, reflectance can be one-dimensional reflectance information (r). Color information can be information in any color space, or it can be three-dimensional color information, such as RGB. Here, R represents red (R), G represents green (G), and B represents blue (B). For another example, the color information may be luminance and chrominance (YCbCr, YUV) information, where Y represents brightness (Luma), Cb (U) represents blue color difference, and Cr (V) represents red color difference.

[0089] For example, a point cloud generated using laser measurement principles can include both its 3D coordinate information and its reflectivity. For another example, a point cloud generated using photogrammetry principles can include both its 3D coordinate information and its 3D color information. For another example, a point cloud generated using a combination of laser measurement and photogrammetry principles can include both its 3D coordinate information, its reflectivity value, and its 3D color information.

[0090] Figures 2A and 2B show a point cloud image and its corresponding data storage format. Figure 2A provides six viewing angles of the point cloud image, while Figure 2B consists of a file header and data. The header includes the data format, data representation type, the total number of points in the point cloud, and the content represented by the point cloud. For example, the point cloud is in ".ply" format, represented by ASCII code, with a total of 207,242 points. Each point has 3D coordinate information (x, y, z) and 3D color information (r, g, b).

[0091] Point clouds can be divided into the following categories according to the acquisition method:

[0092] Static point cloud: the object is stationary and the device that obtains the point cloud is also stationary;

[0093] Dynamic point cloud: The object is moving, but the device that obtains the point cloud is stationary;

[0094] Dynamic point cloud acquisition: The device used to acquire the point cloud is in motion.

[0095] For example, point clouds can be divided into two categories according to their usage:

[0096] Category 1: Machine perception point cloud, which can be used in scenarios such as autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, and disaster relief robots;

[0097] Category 2: Human eye perception point cloud, which can be used in point cloud application scenarios such as digital cultural heritage, free viewpoint broadcasting, 3D immersive communication, and 3D immersive interaction.

[0098] 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.

[0099] Point clouds are primarily collected through computer generation, 3D laser scanning, and 3D photogrammetry. Computers can generate point clouds of virtual 3D objects and scenes; 3D laser scanning can obtain point clouds of static real-world 3D objects or scenes, generating millions of point clouds per second; and 3D photogrammetry can obtain point clouds of dynamic real-world 3D objects or scenes, generating tens of millions of point clouds per second. These technologies reduce the cost and time required to acquire point cloud data 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 this massive amount of 3D point cloud data is facing bottlenecks due to storage space and transmission bandwidth constraints, as application demands grow.

[0100] For example, taking a point cloud video with a frame rate of 30 frames per second (fps), each frame contains 700,000 points, and each point 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, where 1 byte is 10 bits. For a 1280 × 720 2D video with a YUV sampling format of 4:2:0 and a frame rate of 24 fps, the data volume for 10 seconds is approximately 1280 × 720 × 12 bits × 24 fps × 10 seconds ≈ 0.33 GB. The data volume of a 10-second two-view 3D video is 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.

[0101] That is to say, since the point cloud is a collection of massive points, storing the point cloud not only consumes a lot of memory, but is also not conducive to transmission. There is also not enough bandwidth to support direct transmission of the point cloud at the network layer without compression. Therefore, the point cloud needs to be compressed.

[0102] Currently, the point cloud coding framework that can compress point clouds can be the geometry-based Point Cloud Compression (G-PCC) codec framework or the video-based Point Cloud Compression (V-PCC) codec framework provided by the Moving Picture Experts Group (MPEG), or the AVS-PCC codec framework provided by AVS. The G-PCC codec framework can be used to compress the first type of static point clouds and the third type of dynamically acquired point clouds, which can be based on the Point Cloud Compression Test Platform (Test Model Compression 13, TMC13). The V-PCC codec framework can be used to compress the second type of dynamic point clouds, which can be based on the Point Cloud Compression Test Platform (Test Model Compression 2, TMC2). Therefore, the G-PCC codec framework is also called the point cloud codec TMC13, and the V-PCC codec framework is also called the point cloud codec TMC2.

[0103] An embodiment of the present application provides a network architecture of a point cloud encoding and decoding system including a decoding method and an encoding method. FIG3 is a schematic diagram of a network architecture of a point cloud encoding and decoding system provided by an embodiment of the present application. As shown in FIG3 , the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01. During the implementation process, the electronic device can be various types of devices with point cloud encoding and decoding functions. For example, the electronic device can include a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., which is not limited by the embodiment of the present application. Among them, the decoder or encoder in the embodiment of the present application can be the above-mentioned electronic device.

[0104] Among them, the electronic device in the embodiment of the present application has a point cloud encoding and decoding function, generally including a point cloud encoder (ie, encoder) and a point cloud decoder (ie, decoder).

[0105] The following describes the related technologies using the G-PCC codec framework and the AVS codec framework as examples.

[0106] As you can understand, in the point cloud G-PCC codec framework, the point cloud data to be encoded is first divided into multiple slices through slice partitioning. In each slice, the geometric information of the point cloud and the attribute information corresponding to each point are encoded separately.

[0107] Figure 4A shows a schematic diagram of the G-PCC encoder architecture. As shown in Figure 4A, during the geometry encoding process, the geometric information is transformed so that the entire point cloud is contained within a bounding box. Quantization is then performed. This quantization step primarily serves a scaling purpose. Due to quantization rounding, the geometric information of some point clouds becomes identical. Parameters are then used to determine whether to remove duplicate points. This process of quantization and removing duplicate points is also known as voxelization. The bounding box is then partitioned into an octree or a prediction tree is constructed. During this process, arithmetic coding is performed on the points in the leaf nodes of the partition to generate a binary geometry bitstream. Alternatively, arithmetic coding is performed on the intersection points (vertices) generated by the partition (surface fitting is performed based on the intersection points) to generate a binary geometry bitstream. During the attribute encoding process, after the geometry encoding is completed and the geometric information is reconstructed, color conversion is performed to convert the color information (i.e., attribute information) from the RGB color space to the YUV color space. The reconstructed geometry information is then used to recolor the point cloud so that the unencoded attribute information corresponds to the reconstructed geometry information. Attribute encoding is mainly performed on color information. In the color information encoding process, there are two main transformation methods. One is the distance-based lifting transformation that relies on the level of detail (LOD) division, and the other is the direct region adaptive hierarchical transformation (RAHT). Both methods convert color information from the spatial domain to the frequency domain, obtain high-frequency coefficients and low-frequency coefficients through transformation, and finally quantize the coefficients. Then, the quantized coefficients are arithmetically encoded to generate a binary attribute bit stream.

[0108] Figure 4B shows a schematic diagram of the composition framework of a G-PCC decoder. As shown in Figure 4B, for the acquired binary bit stream, the geometric bit stream and attribute bit stream in the binary bit stream are first decoded independently. When decoding the geometric bit stream, the geometric information of the point cloud is obtained through arithmetic decoding-reconstruction of the octree / reconstruction of the prediction tree-reconstruction of the geometry-coordinate inverse conversion; when decoding the attribute bit stream, the attribute information of the point cloud is obtained through arithmetic decoding-inverse quantization-LOD partitioning / RAHT-color inverse conversion, and the point cloud data to be encoded (i.e., the output point cloud) is restored based on the geometric information and attribute information.

[0109] It should be noted that, as shown in FIG4A or FIG4B , the current geometric coding and decoding of G-PCC can be divided into octree-based geometric coding and decoding (marked by a dotted box) and prediction tree-based geometric coding and decoding (marked by a dotted box).

[0110] For Octree geometry encoding (OctGeomEnc), the octree-based geometry encoding includes: first, coordinate conversion of the geometric information so that all 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 (such as octrees, quadtrees, binary trees, etc.) in the order of breadth-first traversal, and the placeholder code of each node is encoded. In related technologies, a company proposed an implicit geometric division method. First, the bounding box of the point cloud is calculated. Assume d x >d y >d z , the bounding box corresponds 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 1×1×1 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 2M. At the same time, K and M must meet the conditions: Assume d max =max(d x ,d y ,d z ), d min =min(d x ,d y ,d z ), parameter K satisfies: K ≥ d max -d min ; Parameter M satisfies: M≥d minThe reason why the parameters K and M meet the above conditions is that in the current G-PCC geometric implicit partitioning process, 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 1×1×1. 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.

[0111] Exemplarily, Figure 5A and Figure 5B provide a kind of plane position schematic diagram.Wherein, Figure 5A shows a kind of low plane position schematic diagram in the Z-axis direction, and Figure 5B shows a kind of high plane position schematic diagram in the Z-axis direction.As shown in Figure 5A, here (a), (a0), (a1), (a2), (a3) ​​all belong to the low plane position in the Z-axis direction. Taking (a) as an example, it can be seen that the four child nodes occupied in the current node are all located at the low plane position of the current node in the Z-axis direction, so it can be considered that the current node belongs to a Z plane and is a low plane in the Z-axis direction. Similarly, as shown in Figure 5B, here (b), (b0), (b1), (b2), (b3) all belong to the high plane position in the Z-axis direction. Taking (b) as an example, it can be seen that the four child nodes occupied in the current node are located at the high plane position of the current node in the Z-axis direction, so it can be considered that the current node belongs to a Z plane and is a high plane in the Z-axis direction.

[0112] Taking (a) in Figure 5A as an example, the efficiency of octree encoding and plane encoding is compared. Figure 6 provides a schematic diagram of the node encoding sequence, that is, node encoding is performed in the order of 0, 1, 2, 3, 4, 5, 6, and 7 as shown in Figure 6. Here, if octree encoding is used for (a) in Figure 5A, the placeholder information of 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. Secondly, if the current node is a plane in the Z-axis direction, the plane position of the current node must also be represented. Finally, only the placeholder information of the lower plane node in the Z-axis direction needs to be encoded (i.e., the placeholder information of the four child nodes 0, 2, 4, and 6). Therefore, encoding the current node based on plane encoding only requires 6 bits, which can reduce the representation by 2 bits compared to the related art octree encoding. Based on this analysis, plane encoding has significantly higher coding efficiency than octree encoding. Therefore, for an occupied node, if a plane encoding method is used in a certain dimension, it is first necessary to represent the plane identification (planarMode) and plane position (PlanePos) information of the current node in that dimension, and then encode the occupancy information of the current node based on the plane information of the current node. For example, FIG7A shows a schematic diagram of plane identification information. As shown in FIG7A, there is a low plane in the Z-axis direction; correspondingly, the value of the plane identification information is true (true) or 1, that is, planarMode_ Z = true; the plane position information is the low plane (low), that is, PlanePosition_ Z =low. FIG7B shows another schematic diagram of plane identification information. As shown in FIG7B, here it is not a plane in the Z-axis direction; correspondingly, the value of the plane identification information is false or 0, that is, planarMode_ Z =false.

[0113] It should be noted that for PlaneMode_ i :0 means the current node is not a plane in the i-axis direction, 1 means the current node is a plane in the i-axis direction. If the current node is a plane in the i-axis direction, then for PlanePosition_ i : 0 means the current node is a plane in the i-axis direction and the plane position is low, 1 means the current node is a high plane in the i-axis direction. Here, i represents the coordinate dimension, which can be the X-axis direction, Y-axis direction, or Z-axis direction, so i = 0, 1, 2.

[0114] In the G-PCC standard, when determining whether a node meets the conditions for planar coding and when the node meets the conditions for planar coding, predictive coding of the planar identifier and planar position information of the node is required.

[0115] In the embodiments of the present application, there are three judgment conditions in the current G-PCC standard for determining whether a node meets the conditions for planar coding, and the following will explain them in detail one by one.

[0116] 1. Judge according to the planar probability of the node in each dimension.

[0117] (1) Determine the local area density (local_node_density) of the current node;

[0118] (2) Determine the probability Prob(i) of the current node in each dimension.

[0119] When the local area density of the node is less than the threshold Th (for example, Th = 3), the planar probabilities Prob(i) of the current node in the three coordinate dimensions are compared with the thresholds Th0, Th1, and Th2, where Th0 < Th1 < Th2 (for example, Th0 = 0.6, Th1 = 0.77, Th2 = 0.88). Here, Eligible i (i = 0, 1, 2) represents whether planar coding is started in each dimension: Eligible i = Prob(i) >= threshold.

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

[0121] When Prob(1) > Prob(0) > Prob(2), the settings of Eligible i are as follows: Eligible0 = Prob(0) >= Th1; Eligible1 = Prob(1) >= Th0; Eligible2 = Prob(2) >= Th2 (2)

[0122] Here, the update of Prob(i) is specifically as follows: Prob(i) new = (L × Prob(i) + δ(coded node)) / L + 1 (3)

[0123] Wherein, L=255; in addition, if the coded node is a plane, δ(coded node) is 1; otherwise, δ(coded node) is 0.

[0124] Here, the update of local_node_density is as follows: local_node_density new =local_node_density+4*numSiblings (4)

[0125] Where local_node_density is initialized to 4, and numSiblings is the number of sibling nodes of the node. For example, FIG8 shows a schematic diagram of the sibling nodes of the current node. As shown in FIG8 , the current node is a node filled with slashes, and the nodes filled with grids are sibling nodes. Then, the number of sibling nodes of the current node is 5 (including the current node itself).

[0126] Second, determine whether the current layer nodes meet the plane coding requirements based on the point cloud density of the current layer.

[0127] The density of the current layer points is used to determine whether to perform planar coding on the nodes of the current layer. Assuming that the number of points in the current point cloud to be coded is pointCount, the number of points reconstructed by the inferred direct coding model (IDCM) coding is numPointCountRecon, and because the octree is coded based on the order of breadth-first traversal, the number of nodes to be coded in the current layer can be obtained as nodeCount. Then, the assumption to determine whether to start planar coding in the current layer is planarEligibleKOctreeDepth, specifically: planarEligibleK OctreeDepth = (pointCount-numPointCountRecon) <nodeCount×1.3。

[0128] Among them, if (pointCount-numPointCountRecon) is less than nodeCount×1.3, then planarEligibleK OctreeDepth is true; if (pointCount-numPointCountRecon) is not less than nodeCount×1.3, then planarEligibleKOctreeDepth is false. In this way, when planarEligibleKOctreeDepth is true, all nodes in the current layer are planar coded; otherwise, all nodes in the current layer are not planar coded and only octree coding is used.

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

[0130] Figure 9 shows a schematic diagram of the intersection of a laser radar and a node. As shown in Figure 9, a node filled with a grid is simultaneously traversed by two laser beams, so the current node is not a plane in the direction perpendicular to the Z axis. A node filled with a diagonal line is small enough to be traversed by two laser beams simultaneously, so it is possible that the node filled with a diagonal line is a plane in the direction perpendicular to the Z axis.

[0131] Furthermore, for nodes that meet the plane coding conditions, predictive coding may be performed on the plane identification information and the plane position information.

[0132] First, predictive coding of plane identification information.

[0133] Here, only three context information are used for encoding, that is, the plane identification in each coordinate dimension is designed separately for context.

[0134] Secondly, predictive coding of plane position information.

[0135] It should be understood that for the encoding of non-lidar point cloud planar position information, the predictive encoding of the planar position information may include:

[0136] (a) Using the occupancy information of neighboring nodes, the plane position information of the current node is predicted to be three elements: predicted as low plane, predicted as high plane, and unpredictable;

[0137] (b) Spatial distance between nodes at the same partition depth and coordinates as the current node and the current node: “near” and “far”;

[0138] (c) If the node at the same partition depth and the same coordinates as the current node is a plane, determine the plane position of the node;

[0139] (d) Coordinate dimension (i=0, 1, 2).

[0140] It should be noted that in an embodiment of the present application, after determining the spatial distance between the node at the same division depth and the same coordinates as the current node and the current node, if the spatial distance is less than the preset distance threshold, then the spatial distance can be determined to be "near"; or, if the spatial distance is greater than the preset distance threshold, then the spatial distance can be determined to be "far".

[0141] For example, Figure 10 shows a schematic diagram of neighboring nodes at the same partition depth and coordinates. As shown in Figure 10, the bold large cube represents the parent node, the small grid-filled cube inside it represents the current node, and the vertex position of the current node is shown. The small white-filled cube represents neighboring nodes at the same partition depth and coordinates. The distance between the current node and the neighboring node is the spatial distance, which can be judged as "near" or "far." In addition, if the neighboring node is a plane, the planar position of the neighboring node is also required.

[0142] In this way, as shown in Figure 10, the current node is a small cube filled with a grid, and the neighboring node is a small cube filled with white 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.

[0143] Furthermore, in an embodiment of the present application, Figures 11A to 11C illustrate a schematic diagram of a current node being located at a low plane position of a parent node. As shown in Figures 11A to 11C, Figures 11A, 11B, and 11C illustrate three examples of the current node being located at a low plane position of a parent node. Specific descriptions are as follows:

[0144] ① If any of the child nodes 4 to 7 of the point fill node is occupied, and all the grid fill nodes are not occupied, it is very likely that there is a plane in the current node (filled with a slash), and the plane is located lower.

[0145] ② If the child nodes 4 to 7 of the point fill node are not occupied, and any grid fill node is occupied, it is very likely that there is a plane in the current node (filled with diagonal lines), and the plane is located higher.

[0146] ③ If the child nodes 4 to 7 of the point fill node are all empty nodes and the grid fill nodes are all empty nodes, the plane position cannot be inferred and is therefore marked as unknown.

[0147] ④ If any of the child nodes 4 to 7 of the point fill node is occupied and any of the grid fill nodes is occupied, the plane position cannot be inferred at this time, so it is marked as unknown.

[0148] In an embodiment of the present application, Figures 12A to 12C illustrate a schematic diagram of a current node being located at a high plane position of a parent node. As shown in Figures 12A to 12C, Figures 12A, 12B, and 12C illustrate three examples of the current node being located at a high plane position of a parent node. Specific descriptions are as follows:

[0149] ① If any of the child nodes 4 to 7 of the grid fill node is occupied, and the point fill node is not occupied, it is very likely that there is a plane in the current node (filled with diagonal lines), and the plane position is low.

[0150] ② If the child nodes 4 to 7 of the grid fill node are not occupied, and the point fill node is occupied, it is very likely that there is a plane in the current node (filled with a slash), and the plane position is higher.

[0151] ③If the child nodes 4 to 7 of the grid fill node are all unoccupied, and the point fill node is unoccupied, the plane position cannot be inferred at this time, so it is marked as unknown.

[0152] ④ If one of the child nodes 4 to 7 of the grid fill node is occupied and the point fill node is occupied, the plane position cannot be inferred at this time and is therefore marked as unknown.

[0153] It should also be understood that, with respect to the coding of the laser radar point cloud plane position information, FIG13 shows a schematic diagram of the predictive coding of the laser radar point cloud plane position information. As shown in FIG13, when the laser radar emission angle is θ bottom When , it can be mapped to the bottom virtual plane; when the laser radar emission angle is θ top At this time, it can be mapped to the high plane (Top virtual plane).

[0154] In other words, the planar position of the current node is predicted by using the parameters collected by the LiDAR. The position is then quantified into multiple intervals using the intersection of the current node and the laser ray, which is ultimately used as the context information for the planar position of the current node. The specific calculation process is as follows: Assuming the coordinates of the LiDAR are (xLidar, yLidar, zLidar) and the geometric coordinates of the current node are (x, y, z), then first calculate the vertical tangent value tanθ of the current node relative to the LiDAR. The calculation formula is as follows:

[0155] Furthermore, because each laser has a certain offset angle relative to the laser radar, it is also necessary to calculate the relative tangent value tanθ of the current node relative to the laser corr,L , the specific calculation is as follows:

[0156] Finally, the relative tangent value tanθ of the current node will be used corr,L To predict the plane position of the current node, as follows, 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 four quantization intervals, that is, the context information of the plane position is determined.

[0157] However, the octree-based geometric information coding mode only has an efficient compression rate for points that are correlated in space. For points that are isolated in the geometric space, the use of the Direct Coding Model (DCM) can greatly reduce the complexity. For all nodes in the octree, the use of DCM is not indicated by flag information, but is inferred from the parent node and neighbor information of the current node. There are three ways to determine whether the current node is eligible for DCM coding, as follows:

[0158] (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.

[0159] (2) The parent node of the current node has only one child node, the current node, and the six neighbor nodes that share a face with the current node are all empty nodes.

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

[0161] Exemplarily, FIG14 provides a schematic diagram of IDCM coding. If the current node does not have the DCM coding qualification, it will be divided into octrees. If it has the DCM coding qualification, the number of points contained in the node will be further determined. When the number of points is less than a threshold (for example, 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 is DCM-encoded, 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: (a) there is only one point (or multiple points, but they are duplicate points); (b) there are 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.

[0162] Furthermore, the IDCM encoding process is described in detail below.

[0163] When the current node meets the DCM encoding mode, the number of points of the current node, numPoints, is encoded first; the number of points of the current node is encoded according to different DirectModes:

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

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

[0166] i) First encode whether the numPonts of the current node is greater than 1;

[0167] ii) If the current node has only one point and the geometry coding environment is geometry lossless coding, it is necessary to encode that the second point of the current node is not a duplicate point.

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

[0169] i) First encode the numPonts of the current node to be less than or equal to 1;

[0170] ii) Secondly, it is encoded that the second point of the current node is a repeated point, and then 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, it is necessary to perform exponential Golomb decoding on the remaining number of repeated points.

[0171] After encoding the number of points in the current node, the coordinate information of the points contained in the current node is encoded. The following will introduce the lidar point cloud and the human eye point cloud in detail.

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

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

[0174] (2) If the current node contains two points, the first coordinate axis dirextAxis will be obtained by using the geometric coordinates of the points. It should be noted that the coordinate axes currently compared only include the x-axis and y-axis, not the z-axis. 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 smallest node coordinate geometry position will be used as the priority encoding axis dirextAxis, and then the geometry information of the priority encoding axis dirextAxis will be 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]. The specific encoding process is as follows:

[0176] After encoding the priority axis dirextAxis, continue to directly encode the geometric coordinates of the current node. Assuming that the remaining encoding bit depth of each point is nodeSizeLog2, the specific encoding process is as follows: for(int axisIdx=0;axisIdx<3;++axisIdx) for(int mask=(1<<nodeSizeLog2[axisIdx])> >1;mask;mask>>1) encodePosBit(!!(pointPos[axisIdx]&mask)).

[0177] (2) LiDAR point cloud.

[0178] 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])

[0179] That is, the axis with the smaller node coordinate geometry position will be used as the priority encoding axis dirextAxis. It should be noted that the currently compared coordinate axes only include the x-axis and y-axis, not the z-axis. Then, the geometric information of the priority encoded coordinate axis dirextAxis is first encoded as follows, assuming that the encoding geometry 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]. The specific encoding process is as follows:

[0180] After encoding the priority-encoded coordinate axis dirextAxis, the geometric coordinates of the current node are encoded.

[0181] Since the laser radar point cloud can obtain the acquisition parameters of the laser radar point cloud, the geometric coordinate information of the current node can be predicted by using it, thereby further improving the efficiency of the geometric information encoding of the point cloud. Similarly, first use the geometric information nodePos of the current node to obtain a directly encoded main axis direction, and then use the geometric information of the encoded direction to predict the geometric information of another dimension. Also assuming that the axis direction of the direct encoding is directAxis, and assuming that the bit depth of the direct encoding is nodeSizeLog2, the encoding method is as follows: for(int mask=(1<<nodeSizeLog2)> >1;mask;mask>>1) encodePosBit(!!(pointPos[directAxis]&mask)).

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

[0183] For example, Figure 15 provides a schematic diagram of coordinate transformation for obtaining point clouds using a rotating laser radar. In the Cartesian coordinate system, the (x, y, z) coordinates of each node can be converted to (R, φ, i). In addition, the laser scanner can perform laser scanning at a preset angle, and different θ(i) can be obtained under different values ​​of i. For example, when i is equal to 1, θ(1) can be obtained, and the corresponding scanning angle is -15°; when i is equal to 2, θ(2) can be obtained, and the corresponding scanning angle is -13°; when i is equal to 10, θ(10) can be obtained, and the corresponding scanning angle is +13°; when i is equal to 9, θ(19) can be obtained, and the corresponding scanning angle is +15°.

[0184] In this way, after encoding all the precision of the directAxis coordinate direction, the LaserIdx corresponding to the current point will be calculated first, that is, the pointLaserIdx number in Figure 15, and the LaserIdx of the current node, that is, nodeLaserIdx; secondly, 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:

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

[0186] For example, FIG16 shows a schematic diagram of predictive coding in the X-axis or Y-axis direction. As shown in FIG16 , the box filled with a grid represents the current node, and the box filled with a slash represents the already coded node. Here, the LaserIdx corresponding to the current point is first used to obtain 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 Assuming that the geometric coordinates of the node are nodePos, the horizontal azimuth angle is The calculation method between the node geometry information is as follows:

[0187] 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. The calculation method is as follows:

[0188] Furthermore, using the horizontal azimuth angle of the node 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 17A and Figure 17B. Figure 17A shows a schematic diagram of predicting the angle of the Y plane through the horizontal azimuth angle, and Figure 17B shows a schematic diagram of predicting the angle of the X plane through the horizontal azimuth angle. Here, the predicted value of the horizontal azimuth angle corresponding to the current point is The calculation is as follows:

[0189] For example, FIG18 shows another schematic diagram of predictive coding in the X-axis or Y-axis direction. As shown in FIG18 , the portion filled with a grid (left side) represents a low plane, and the portion filled with dots (right side) represents a high plane. Indicates the low plane horizontal azimuth of the current node, Indicates the horizontal azimuth of the high plane of the current node, Indicates the predicted horizontal azimuth angle corresponding to the current node.

[0190] Thus, by using the predicted value of the horizontal azimuth and the low plane horizontal azimuth of the current node and the high plane horizontal azimuth 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 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.

[0191] After encoding the LaserIdx of the point, the Z-axis direction of the current point is predicted using the LaserIdx corresponding to the current point. That is, the radius of the radar coordinate system is calculated 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 LaserIdx of the current point. The predicted value of the Z-axis direction of the current point, namely Z_pred, can be obtained. The details are as follows: int tanTheta=tanθ laserIdx ; int zOffset = Z laserIdx ; Z_pred=radius×tanTheta-zOffset.

[0192] Furthermore, Z_pred is used to perform predictive coding on the geometric information of the current point in the Z-axis direction to obtain the prediction residual Z_res, and finally Z_res is encoded.

[0193] 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 condition of being in the same plane, the child nodes of the current node are represented by that plane.

[0194] For 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 partitioned until a 1×1×1 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.

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

[0196] Similar to the processing at the encoding end, we first use prior information to determine whether the node should start IDCM. The starting conditions of IDCM are as follows:

[0197] (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.

[0198] (2) The parent node of the current node has only one child node, the current node, and the six neighbor nodes that share a face with the current node are all empty nodes.

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

[0200] Furthermore, when a node meets the conditions for DCM coding, it is first decoded to determine whether the current node is a true DCM node, that is, IDCM_flag; when IDCM_flag is true, the current node adopts DCM coding, otherwise it still adopts octree coding.

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

[0202] i) First decode whether numPonts of the current node is greater than 1;

[0203] ii) If the numPonts of the current node is greater than 1, continue decoding to see if 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;

[0204] iii) 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 pattern 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 pattern is satisfied, which contains multiple points, but they are all repeated points, then continue decoding to see if the number of repeated points is greater than 1 (entropy decoding), and if it is greater than 1, continue decoding the number of remaining repeated points (using exponential Columbus decoding).

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

[0206] After decoding the number of points in the current node, the coordinate information of the points contained in the current node is decoded. The following will introduce the lidar point cloud and the human eye point cloud in detail.

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

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

[0209] (2) If the current node contains two points, the first decoded coordinate axis dirextAxis will be obtained by using the geometric coordinates of the points. It should be noted that the coordinate axes currently compared only include the x and y axes, not the z axis. Assuming that the geometric coordinates of the current node are nodePos, the judgment method is as follows: dirextAxis = ! (nodePos[0] <nodePos[1]) (10)

[0210] That is, the axis with the smallest node coordinate geometry position will be used as the priority decoding axis dirextAxis, and then the geometry information of the priority decoding axis dirextAxis will be decoded first in the following way. Assume that the geometry bit depth to be decoded corresponding to the priority decoding axis is nodeSizeLog2, and assume that the coordinates of the two points are pointPos[0] and pointPos[1]. The specific encoding process is as follows:

[0211] After decoding the prioritized axis dirextAxis, the geometric coordinates of the current point are directly decoded. Assuming the remaining encoding bit depth of each point is nodeSizeLog2 and the coordinate information of the point is pointPos, the specific decoding process is as follows:

[0212] (2) LiDAR point cloud.

[0213] If the current node contains two points, the priority decoding 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]) (11)

[0214] That is, the axis with the smaller node coordinate geometry position will be used as the priority decoding axis dirextAxis. It should be noted that the currently compared coordinate axes only include the x-axis and y-axis, not the z-axis. Secondly, the priority encoded coordinate axis dirextAxis geometry information is first decoded as follows, assuming that the encoding geometry bit depth corresponding to the priority decoded axis is nodeSizeLog2, and assuming that the coordinates of the two points are pointPos[0] and pointPos[1]. The specific encoding process is as follows:

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

[0216] Similarly, we first use the current node's geometry information nodePos to get a direct decoding main axis direction, and then use the geometry information of the decoded direction to decode the geometry information of the other dimension. Assuming that 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:

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

[0218] After decoding all the precision of the directAxis coordinate direction, the LaserIdx of the current node, i.e., nodeLaserIdx, is calculated first. Then, the LaserIdx of the node, i.e., nodeLaserIdx, is used to predict and decode the LaserIdx of the point, i.e., pointLaserIdx. The calculation method of the LaserIdx of the node or point is the same as that of the encoder. Finally, the predicted residual information of the LaserIdx of the current point and the LaserIdx of the node is decoded to obtain ResLaserIdx. The decoding method is as follows: PointLaserIdx = nodeLaserIdx + ResLaserIdx (12)

[0219] 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:

[0220] As shown in Figure 11, the LaserIdx corresponding to the current point is first used to obtain the corresponding predicted value of the horizontal azimuth angle, that is, Secondly, the node geometry information corresponding to the current point is used to obtain the horizontal azimuth angle corresponding to the node Assuming that the geometric coordinates of the node are nodePos, the horizontal azimuth angle The calculation method between the node geometry information is as follows:

[0221] 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. The calculation method is as follows:

[0222] Furthermore, using the horizontal azimuth angle of the node 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 Figures 17A and 17B. The calculation method is as follows:

[0223] Thus, by using the predicted value of the horizontal azimuth and the low plane horizontal azimuth of the current node and the horizontal azimuth of the high plane To predict and decode 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.

[0224] After decoding the LaserIdx of the point, the Z-axis direction of the current point is predicted and decoded using the LaserIdx corresponding to the current point. That is, the radius of the radar coordinate system is calculated 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 LaserIdx of the current point. The predicted Z-axis direction value of the current point, namely Z_pred, can be obtained. The details are as follows: int tanTheta=tanθ laserIdx ; int zOffset = Z laserIdx ; Z_pred=radius×tanTheta-zOffset.

[0225] Furthermore, 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.

[0226] For triangle soup (trisoup)-based geometric information coding, geometric partitioning must also be performed first in the trisoup-based geometric information coding framework. However, unlike geometric information coding based on binary trees, quadtrees, and octrees, this method does not require step-by-step partitioning of the point cloud into unit cubes with side lengths of 1×1×1. Instead, the partitioning stops when the sub-blocks (blocks) have 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 obtained. The vertex coordinates of each block are encoded in sequence to generate a binary code stream.

[0227] For trisoup-based point cloud geometry reconstruction, when performing point cloud geometry reconstruction at the decoding end, the vertex coordinates are first decoded to complete the triangle face reconstruction. This process is shown in Figures 19A, 19B, and 19C. Among them, there are three intersection points (v1, v2, v3) in the block shown in Figure 19A. The set of triangle faces formed by these three intersection points in a certain order is called triangle soup, or trisoup, as shown in Figure 19B. Afterwards, sampling is performed on the triangle face set, and the obtained sampling points are used as the reconstructed point cloud within the block, as shown in Figure 19C.

[0228] For predictive geometry coding (PredGeomTree), the following steps are involved: first, sort the input point cloud. Currently, the sorting methods used include unordered, Morton order, azimuth order, and radial distance order. At the encoding end, the prediction tree structure is established using two different methods: KD-Tree (high-latency slow mode) and low-latency fast mode (using lidar calibration information). When using lidar calibration information, each point is divided into different lasers, and a prediction tree structure is established according to the different lasers. 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 parameter are encoded to generate a binary code stream.

[0229] For geometric decoding based on 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.

[0230] After the geometric encoding is completed, the geometric information needs to be reconstructed. At present, 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 partitioning, and the other is to directly perform RAHT transformation. Both methods will 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, as shown in Figures 4A and 4B.

[0231] Furthermore, when using geometric information to predict attribute information, Morton codes can be used to perform nearest neighbor search. 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:

[0232] Among them, x l ,y l ,z l ∈{0,1} are the binary values ​​corresponding to the highest bit (l=1) to the lowest bit (l=d) of x, y, and z respectively. The Morton code M is to cross-arrange x, y, and z starting from the highest bit. l ,y l ,z l To the lowest bit, the calculation formula of M is as follows:

[0233] Among them, m l′ ∈{0,1} are the values ​​of the highest bit (l′=1) to the lowest bit (l′=3d) of M. After obtaining the Morton code M of each point in the point cloud, the points in the point cloud are arranged in ascending order of the Morton code, and the weight value w of each point is set to 1.

[0234] It can also be understood that for the G-PCC codec framework, the general test conditions are as follows:

[0235] (1) There are 4 test conditions:

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

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

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

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

[0240] (2) The general test sequence includes four categories: Cat1A, Cat1B, Cat3-fused, and Cat3-frame. 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.

[0241] (3) Technical routes: There are two types in total, which are distinguished by the algorithm used for geometric compression.

[0242] Technical route 1: Octree encoding branch.

[0243] 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 divided again until the leaf node obtained is a 1×1×1 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.

[0244] 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 1×1×1 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 geometrically reconstructed point cloud information.

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

[0246] On the encoding side, the prediction tree structure is established using two different methods: based on KD-Tree (high-latency slow mode) and using lidar calibration information (low-latency fast mode). Using lidar calibration information, each point can be divided into different lasers, and the prediction tree structure is established according to different lasers. 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.

[0247] 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.

[0248] In a possible implementation, the following specifically describes geometric prediction tree inter-frame encoding and decoding in the related art.

[0249] Taking Figure 15 as an example, 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 the radar coordinate system (radius, laserIdx). 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 , then the LaserIdx of a node or point is calculated as follows:

[0250] Furthermore, assuming that the geometric coordinates of the node are pointPos, the horizontal azimuth The calculation of is as follows:

[0251] Furthermore, the depth information radius is calculated as follows:

[0252] Among them, LidarOrigin is generally 0.

[0253] For example, Figure 20 shows a schematic diagram of the structure of inter-frame coding and decoding of geometric information. As shown in Figure 20, the current point to be encoded in the current frame is filled with a grid, and the previous encoded node of the current point is represented by a. There is a first reference frame and a second reference frame. The first reference frame can be the frame before the current frame, and the second reference frame can be a global motion compensation (GMC) reference frame.

[0254] Thus, taking FIG. 20 as an example, when performing inter-frame prediction coding on the current point to be coded, the previous coded node a of the current point to be coded in the prediction tree is traversed;

[0255] In the first reference frame (i.e. the previous reference frame), find the node a that has the same value as the node a that has been encoded before the current point. For node b with laserID, points c and d encoded or decoded after point b in the first reference frame are used as inter-frame candidate points;

[0256] In the second reference frame (i.e. the reference frame of the previous frame after global motion), find the node a that has been encoded before the current point is encoded. and laserID point g, the points e and f encoded or decoded after point g in the second reference frame are used as inter-frame candidate points; at the same time, points e and f Replaced by the parent node of the current point to be encoded

[0257] Then, using rate-distortion optimization (RDO), different prediction points (including several intra-frame candidate points and up to four inter-frame candidate points) are selected to predict the node's geometric position information, generating a prediction residual. This geometric prediction residual is then quantized using a quantization parameter. Finally, through continuous iteration, parameters such as the prediction mode, prediction residual, prediction tree structure, and quantization parameter for the prediction tree node position information are encoded to generate a binary bitstream.

[0258] At the decoding end, the decoding end reconstructs the prediction tree structure by continuously parsing the bitstream and traversing the prediction tree to find the decoded node a before the current point to be decoded;

[0259] First, the prediction mode is decoded; if the prediction mode is inter-frame prediction mode, the prediction point is selected from the following up to four candidate points using the decoded prediction mode:

[0260] In the first reference frame (i.e. the previous reference frame), find the node a that has the same value as the node a that has been decoded before the current point. For node b with laserID, points c and d encoded or decoded after point b in the first reference frame are used as inter-frame candidate points;

[0261] In the second reference frame (i.e. the reference frame of the previous frame after global motion), find the node a that has the same decoding as the previous node a that has been decoded before the current point is decoded. and point g of laserID, and the points e and f encoded or decoded after point g in the second reference frame are used as inter-frame candidate points; at the same time, the points e and f Replaced by the parent node of the current point to be decoded

[0262] Secondly, the geometric position prediction residual information and quantization parameters of different prediction points are obtained by analysis, and the prediction residual is dequantized, so that the reconstructed geometric position information of each node can be restored, and finally the geometric reconstruction at the decoding end is completed.

[0263] The following describes in detail a decoding method proposed in an embodiment of the present application in conjunction with the inter-frame prediction part.

[0264] A decoding method is provided in an embodiment of the present application. Referring to FIG21 , a flowchart of an optional decoding method provided in an embodiment of the present application is shown. As shown in FIG21 , the method may include:

[0265] S101: Parse the code stream to determine the predicted node index value corresponding to the node to be decoded.

[0266] In the embodiment of the present application, after receiving the code stream transmitted by the encoder, the decoder parses the code stream to obtain the node index value of the node to be decoded.

[0267] It should be noted that the decoding method of the embodiments of the present application is applied to a decoder. Furthermore, the decoding method can refer to a point cloud inter-frame prediction method or a method for decoding geometric information between point cloud frames. This method primarily improves the inter-frame prediction algorithm in related technologies and can perform local motion processing on the angle parameter values ​​of the prediction nodes, thereby achieving better inter-frame prediction results.

[0268] In the embodiment of the present application, the node to be decoded is one of the points in the current frame.

[0269] It should also be noted that in the embodiment of the present application, in the point cloud, a point can be all points in the point cloud, or it can be a portion of points in the point cloud, which are relatively concentrated in space. Here, the node to be decoded can specifically refer to the node currently to be decoded in the point cloud.

[0270] In the embodiments of the present application, the node to be decoded is also referred to as a point to be decoded, a current node, a current point, a current node to be decoded, a current point to be decoded, etc., and the present application does not limit this.

[0271] In an embodiment of the present application, the node to be decoded may be a point in the point cloud currently to be decoded, or the node to be decoded may include multiple points in the point cloud currently to be decoded, which is not limited in the present application.

[0272] It should be noted that, when the node to be decoded includes multiple points in the point cloud to be decoded, the multiple points included in the node to be decoded are repeated points. In this case, the node to be decoded includes multiple points with the same geometric prediction information.

[0273] In an embodiment of the present application, the predicted node index value may be a unique identifier of the node to be decoded.

[0274] In the embodiment of the present application, the preset node index value is a pre-set node index value, that is, the preset node index value is an index value specified or agreed upon by both the encoder and the decoder.

[0275] In an embodiment of the present application, the preset node index value includes at least one node index value corresponding to at least one reference frame. In other words, the preset node index value specifies to which reference frame the node index value belongs.

[0276] That is, the decoder can determine the node to be decoded from multiple decoded nodes in the reference frame according to the predicted node index value of the node to be decoded, wherein the multiple decoded nodes in the reference frame are candidate nodes for the predicted node.

[0277] Exemplarily, the multiple decoded nodes in the reference frame are: decoded node c, decoded node d, decoded node e, decoded node f, decoded node m, decoded node n, decoded node o, decoded node p, and so on. The index value of decoded node c is 0, the index value of decoded node d is 1, the index value of decoded node e is 2, the index value of decoded node f is 3, the index value of decoded node m is 4, the index value of decoded node n is 5, the index value of decoded node o is 6, and the index value of decoded node p is 7. Assuming that the decoder parses the bitstream and determines that the predicted node index corresponding to the node to be decoded is 3, the decoder can determine that the node to be decoded is decoded node f.

[0278] In the embodiment of the present application, the predicted node index value may be a parameter written in a profile, or may be a flag value, which is not specifically limited here.

[0279] For example, taking flag as an example, flag can be set to a number. For example, when the value of flag is 0, it means that the node to be decoded is the decoding point corresponding to the predicted node index value 0 (such as node c). When the value of flag is 2, it means that the node to be decoded is the decoding point corresponding to the predicted node index value 2 (such as node e).

[0280] In the embodiment of the present application, the node index value can be represented in binary form. For example, the node index value 2 can be represented as 10, and the node index value 3 can be represented as 11. The node index value can also be represented in other bases, which is not limited by the present application.

[0281] S102: Determine a first decoded node preceding the node to be decoded in the current frame.

[0282] In the embodiment of the present application, when determining the first decoded node preceding the node to be decoded in the current frame, the geometric information (geometric position information) of the first decoded node is determined.

[0283] It should be noted that the first decoded node here refers to the geometric information of the first decoded node. In other words, after determining the first decoded node before the node to be decoded in the current frame, the geometric information of the first decoded node in the point cloud is determined. The geometric information here can be understood as the position information of the first decoded node in the point cloud. For example, the geometric information of the first decoded node can be radar coordinate information or Cartesian coordinate information, etc., and this application does not impose any restrictions on this.

[0284] It should also be noted that, in the embodiment of the present application, the geometric parameters (geometric information) here refer to the parameters in the radar coordinate system. Among them, the geometric parameters may include: horizontal azimuth Radar laser index value laserID and depth information radius.

[0285] In an embodiment of the present application, when the geometric information of the first decoded node is radar coordinate information, the geometric information of the first decoded node at least includes an angle parameter corresponding to the first decoded node, that is, a third angle parameter value.

[0286] In the embodiment of the present application, the angle parameter value is the angle information of the horizontal position of the horizontal plane, that is,

[0287] In the embodiment of the present application, the third angle parameter value of the first decoded node is the angle information of the horizontal position of the first decoded node on the horizontal plane.

[0288] In an embodiment of the present application, the current frame is a frame where the node to be decoded is located, and the current frame includes at least one point.

[0289] In an embodiment of the present application, the current frame is obtained by scanning a circle of the laser radar along the XY plane (horizontal plane), and the current frame may include multiple points.

[0290] In the embodiment of the present application, since the current frame is obtained by scanning a circle along the XY plane (horizontal plane) by the laser radar, each point contained in the current frame corresponds to the same radar index value, that is, corresponds to the same laser radar.

[0291] In the embodiment of the present application, the radar index value is the unique identification information of the laser radar.

[0292] In an embodiment of the present application, the first decoded node is a node that has been decoded before the node to be decoded in the current frame.

[0293] It should be noted that, in the embodiment of the present application, the first decoded node may also be any H decoded nodes before the node to be decoded in the current frame, where H is a positive integer greater than or equal to 1. For example, the first decoded node may be the two decoded nodes before the node to be decoded in the current frame, or the first decoded node may also be the four decoded nodes before the node to be decoded in the current frame, etc., and this application does not limit this.

[0294] In some embodiments of the present application, determining a first decoded node preceding a node to be decoded in a current frame may include:

[0295] Based on the decoding order of the prediction tree, a previous decoded node of the node to be decoded is determined, and the previous decoded node is used as the first decoded node.

[0296] In the embodiment of the present application, according to the decoding order of the prediction tree corresponding to the current frame, the previous decoded node of the node to be decoded is used as the first decoded node.

[0297] S103: Determine a prediction node according to the prediction node index value and the first decoded node.

[0298] In an embodiment of the present application, the predicted node is determined based on the predicted node index value corresponding to the node to be decoded and the first decoded node. It should be noted that after the predicted node is determined, the geometric information (i.e., geometric parameters) of the predicted node is determined.

[0299] In an embodiment of the present application, based on the third angle parameter value of the first decoded node, a decoded node corresponding to the predicted node index value is determined in at least one decoded node in the reference frame, and the decoded node corresponding to the predicted node index value is used as the predicted node.

[0300] In the embodiment of the present application, the predicted node is determined by the third angle parameter value of the first decoded node and the predicted node index value.

[0301] In the embodiment of the present application, the prediction node is also called a prediction node, a target node, a target point, etc., which is not limited in the embodiment of the present application.

[0302] In the embodiment of the present application, the predicted node may be a node in a reference frame other than the current frame, and the predicted node may also be a node in the current frame.

[0303] In the embodiment of the present application, whether the predicted node is a node in a reference frame other than the current frame or a node in the current frame depends on the prediction mode of the node to be decoded, wherein the prediction mode may include an inter-frame prediction mode and an intra-frame prediction mode.

[0304] Exemplarily, when the prediction mode of the node to be decoded is the inter-frame prediction mode, the prediction node is a node in a reference frame other than the current frame; when the prediction mode of the node to be decoded is the intra-frame prediction mode, the prediction node is a node in a reference frame of the current frame.

[0305] S104 : Based on the first decoded node, perform local motion processing on the first angle parameter value of the prediction node to determine a second angle parameter value of the prediction node.

[0306] S105: Determine geometric parameters of the prediction node based on the first angle parameter value or the second angle parameter value.

[0307] S106. Determine a geometric prediction value of the node to be decoded based on the geometric parameters.

[0308] In an embodiment of the present application, local motion processing is performed on the first angle parameter value of the predicted node according to the third angle parameter value of the first decoded node, thereby obtaining the second angle parameter value of the predicted node.

[0309] In an embodiment of the present application, the first angle parameter value is an angle parameter value of the predicted node obtained according to the third angle parameter value of the first decoded node.

[0310] In the embodiment of the present application, the second angle parameter value is an angle parameter value obtained by performing local motion processing on the first angle parameter value.

[0311] In an embodiment of the present application, the geometric parameters of the predicted node include first geometric parameters and second geometric parameters; wherein the first geometric parameters include: depth information of the predicted node, radar index value of the predicted node and first angle parameter value; the second geometric parameters include: depth information of the predicted node, radar index value of the predicted node and second angle parameter value.

[0312] In some embodiments of the present application, S105 may include:

[0313] Determine the depth information of the prediction node, the radar index value of the prediction node, and the first angle parameter value as the geometric parameters of the prediction node; or,

[0314] The depth information of the prediction node, the radar index value of the prediction node, and the second angle parameter value are determined as geometric parameters of the prediction node.

[0315] In an embodiment of the present application, after the prediction node is determined, the geometric parameters (such as geometric position information) can be used as the geometric prediction value of the node to be decoded.

[0316] In the embodiment of the present application, the geometric parameters here refer to the parameters in the radar coordinate system. Among them, the geometric parameters may include: horizontal azimuth (i.e. angle parameter value), radar laser index value laserID and depth information radius of the predicted node.

[0317] In an embodiment of the present application, the geometric prediction value can be: the depth information of the prediction node, the radar index value of the prediction node, and the first angle parameter value; the geometric prediction value can also be: the depth information of the prediction node, the radar index value of the prediction node, and the second angle parameter value.

[0318] It can be understood that since the first angle parameter value is obtained after local motion processing to obtain the second angle parameter value, the second angle parameter value has the prior information of local motion compared to the first angle parameter value, thereby achieving a more refined prediction of the geometric information of the prediction node, thereby improving the accuracy of inter-frame prediction.

[0319] It can be understood that since the second angle parameter value takes into account the prior information of local motion, when the second angle parameter value of the predicted node is used to determine the reconstructed geometric information of the node to be decoded, the accuracy of the geometric reconstruction of the node to be decoded can be improved.

[0320] In an embodiment of the present application, the decoder first parses the code stream to determine the predicted node index value corresponding to the node to be decoded; then, the decoder determines the first decoded node before the node to be decoded in the current frame; then, the decoder determines the predicted node based on the predicted node index value and the first decoded node; then, the decoder performs local motion processing on the first angle parameter value of the predicted node based on the first decoded node to determine the second angle parameter value of the predicted node; finally, the decoder determines the geometric parameters of the predicted node based on the first angle parameter value or the second angle parameter value; based on the geometric parameters, the geometric prediction value of the node to be decoded is determined. Since the decoder performs local motion processing on the first angle parameter value of the predicted node to obtain the second angle parameter value, the second angle parameter value has prior information related to the local motion, which can improve the accuracy of inter-frame prediction, thereby improving the decoding efficiency of the geometric information of the point cloud and improving the decoding performance of the point cloud.

[0321] In some embodiments of the present application, S104 includes S1041 to S1042:

[0322] S1041. When the prediction node index value represents that the prediction node is a preset node, local motion information is determined based on the obtained fourth angle parameter value of the second decoded node and the first angle parameter value of the prediction node; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node; the second decoded node is determined based on the first decoded node in the reference frame where the prediction node is located.

[0323] In an embodiment of the present application, when the predicted node index value indicates that the predicted node is a preset node, it is determined that local motion processing is performed on the first angle parameter value of the predicted node corresponding to the predicted node index value.

[0324] In an embodiment of the present application, when the predicted node index value represents that the predicted node is not a preset node, it is determined that the first angle parameter value of the predicted node corresponding to the predicted node index value is not subjected to local motion processing, and the first angle parameter value of the predicted node is directly used as the angle parameter value of the predicted node.

[0325] That is to say, only when the prediction node index value represents that the prediction node is a preset node, the decoder will perform local motion processing on the first angle parameter value of the prediction node to obtain the second angle parameter value; when the prediction node index value represents that the prediction node is not a preset node, the decoder does not need to perform local motion processing on the first angle parameter value of the prediction node, and can use the first angle parameter value as the second angle parameter value.

[0326] In the embodiment of the present application, the preset nodes are nodes specified or agreed upon by the decoder and the encoder, that is, the preset nodes are pre-specified nodes for which local motion processing is performed.

[0327] Exemplarily, the decoder and the encoder agree to perform local motion processing on node e (index value is 2), node f (index value is 3), node o (index value is 6), and node p (index value is 7) in the first reference frame, that is, the preset nodes are node e, node f, node o, and node p. Assuming that the prediction node index value of the prediction node is 6, then the prediction node index value represents that the prediction node is node o in the preset nodes. At this time, the decoder performs local motion processing on the first angle parameter value of the prediction node (node ​​o). Assuming that the prediction node index value of the prediction node is 0, then the prediction node index value represents that the prediction node is not a node in the preset nodes. At this time, the decoder does not perform local motion processing on the first angle parameter value of the prediction node (node ​​c), and directly uses the first angle parameter value of the prediction node (node ​​c) as the second angle parameter value of the prediction node.

[0328] In an embodiment of the present application, the decoder may perform local motion processing on the first angle parameter value of the predicted node to obtain the second angle parameter value only when the predicted node index value matches the preset node index value.

[0329] That is to say, when the predicted node index value matches the preset node index value, it is possible to not only know to which reference frame the predicted node corresponding to the predicted node index value belongs, but also to determine whether local motion processing is required for the first angle parameter value of the predicted node.

[0330] In an embodiment of the present application, the second decoded node is a decoded node in the reference frame. In addition, the fourth angle parameter value of the second decoded node is less than or equal to the third angle parameter value of the first decoded node.

[0331] In an embodiment of the present application, the second decoded node is a decoded node in the reference frame that has the same radar index as the first decoded node and whose first point angle parameter value is less than or equal to and closest to the angle parameter value of the first decoded node.

[0332] That is, the second decoded node is the first decoded node in the reference frame whose angle parameter value is less than or equal to the angle parameter value of the first decoded node.

[0333] For example, when the reference frame includes decoded node c, decoded node b, and decoded node h, the angle parameter value of decoded node c is greater than the angle parameter value of the first decoded node, and the angle parameter value of decoded node b and the angle parameter value of decoded node h are both less than or equal to the angle parameter value of the first decoded node. However, the angle parameter value of decoded node b is greater than the angle parameter value of decoded node h. It can be seen that decoded node b is the first decoded node whose angle parameter value is less than or equal to the angle parameter value of the first decoded node. Therefore, decoded node b is determined to be the second decoded node.

[0334] In an embodiment of the present application, the second decoded node and the first decoded node may have the same radar index, or the second decoded node and the first decoded node may have different radar indexes; the second decoded node and the first decoded node may have the same depth information, or the second decoded node and the first decoded node may have different depth information; the second decoded node and the first decoded node may have the same angle parameter value, or the second decoded node and the first decoded node may have different angle parameter values, and the present application does not limit this.

[0335] In this embodiment of the present application, the second decoded node is determined based on the angle parameter value of the first decoded node in the reference frame where the prediction node is located. In other words, the second decoded node is related to the third angle parameter value of the first decoded node.

[0336] In the embodiment of the present application, in the process of determining the predicted node according to the predicted node index value and the first decoded node, the fourth angle parameter value of the second decoded node has been determined.

[0337] Therefore, in the embodiment of the present application, the local motion information corresponding to the predicted node is determined based on the obtained target angle parameter value of the second decoded node and the first angle parameter value of the predicted node. The local motion information represents the prior information after the first angle parameter value is locally moved.

[0338] In some embodiments of the present application, a difference between the fourth angle parameter value of the second decoded node and the first angle parameter value of the predicted node is determined as the local motion information.

[0339] In the embodiment of the present application, the difference between the fourth angle parameter value and the first angle parameter value may be used as the local motion information.

[0340] In the embodiment of the present application, the difference between the fourth angle parameter value after being multiplied by the first weight and the first angle parameter value after being multiplied by the second weight may also be used as the local motion information.

[0341] Exemplarily, the difference between the fourth angle parameter value and the first angle parameter value is used as the local motion information, which can be expressed as: auto deltaPhi = interPred.second[1] - interPredPrev.second[1];

[0342] Wherein, deltaPhi represents the difference (difference value) between the fourth angle parameter value and the first angle parameter value, interPred.second[1] represents the first angle parameter value of the predicted node, and interPredPrev.second[1] represents the fourth angle parameter value of the second decoded node.

[0343] In some embodiments of the present application, the reference frame where the prediction node is located includes: a first reference frame and a second reference frame.

[0344] In some embodiments of the present application, the first reference frame is at least one frame obtained by performing global motion on the second reference frame.

[0345] In some embodiments of the present application, the second reference frame is a decoded frame that is K frames before the current frame, where K is an integer greater than 0.

[0346] In some embodiments of the present application, the preset node is at least one decoded node in the first reference frame except the second decoded node.

[0347] Exemplarily, the second decoded node in the first reference frame is node g, and the first reference frame, in addition to the second decoded node, also includes: node e, node f, node o, and node p. The preset node may be at least one of node e, node f, node o, and node p.

[0348] In some embodiments, the second reference frame may be the frame preceding the current frame, and the first reference frame may be the frame preceding the frame preceding the current frame. For example, if the current frame is Frame t, the first reference frame may be Frame t-1, and the second reference frame may be Frame t-2, where t is an integer.

[0349] It should also be noted that, in the embodiment of the present application, a third reference frame may also be included, and there is no specific limitation on the number of reference frames and the number of candidate nodes. In the embodiment of the present application, only the first reference frame and the second reference frame are used as examples for detailed description.

[0350] S1042: Determine a second angle parameter value of the prediction node based on the local motion information.

[0351] In the embodiment of the present application, the first angle parameter value is updated according to the local motion information of the prediction node to determine the second angle parameter value of the prediction node.

[0352] In this embodiment of the present application, if the predicted node index value indicates that the predicted node is not a preset node, the first angle parameter value of the predicted node is used as the second angle parameter value. If the predicted node index value does not match the preset node index value, the decoder does not need to perform local motion processing on the first angle parameter value of the predicted node and can simply use the first angle parameter value as the second angle parameter value.

[0353] It should be noted that the predicted node index value represents that when the predicted node is not a preset node, the first angle parameter value of the predicted node is used as the second angle parameter value.

[0354] When the predicted node index value indicates that the predicted node is not a preset node, directly using the first angle parameter value as the second angle parameter value of the predicted node is a parallel solution with S104 and S105. The specific execution order needs to be determined according to the predicted node.

[0355] When the predicted node index value indicates that the predicted node is not a preset node, the first angle parameter value of the predicted node is used as the second angle parameter value, and the geometric parameter of the predicted node is determined according to the second angle parameter value.

[0356] For example, based on FIG23 , the decoder and the encoder agree to perform local motion processing on node e (index value 2), node f (index value 3), node o (index value 6), and node p (index value 7) in the first reference frame, that is, the preset nodes are node e, node f, node o, and node p. Assume that the predicted node index value of the predicted node is 0. In this case, the predicted node index value indicates that the predicted node is not a node in the preset nodes. In this case, the decoder does not perform local motion processing on the first angle parameter value of the predicted node (node ​​c), and directly uses the first angle parameter value of the predicted node (node ​​c) as the second angle parameter value of the predicted node.

[0357] It can be understood that since the second angle parameter value is obtained by updating the first angle parameter value based on the local motion information of the prediction node, the second angle parameter value has the prior information of local motion compared to the first angle parameter value, thereby achieving a more refined prediction of the geometric information of the prediction node, thereby improving the accuracy of inter-frame prediction. In addition, since the second angle parameter value has the prior information of local motion, when the second angle parameter value of the prediction node is used to determine the reconstructed geometric information of the node to be decoded, the accuracy of the geometric reconstruction of the node to be decoded can be improved, thereby improving the decoding efficiency and accuracy of the geometric information of the point cloud.

[0358] In some embodiments of the present application, S1042 includes S201 to S202:

[0359] S201. Determine the rotational angular velocity of the laser radar corresponding to the node to be decoded.

[0360] In an embodiment of the present application, the angular velocity of rotation of the laser radar is the angular velocity of rotation of the laser radar corresponding to the current frame; or, the angular velocity of rotation of the laser radar is the angular velocity of rotation of the laser radar corresponding to the first reference frame; or, the angular velocity of rotation of the laser radar is the angular velocity of rotation of the laser radar corresponding to the second reference frame.

[0361] In the embodiment of the present application, the current frame, the first reference frame, and the second reference frame may correspond to the same rotation angular velocity.

[0362] In the embodiment of the present application, the rotational angular velocity of the laser radar is related to the number of points (nodes) obtained by rotating the laser radar in one revolution. For example, the rotational angular velocity of the laser radar can be 2π / pointnums, where pointnums represents the number of points obtained by rotating the laser radar in one revolution.

[0363] In the embodiment of the present application, the rotational angular velocity of the laser radar can be a value specified or agreed upon by both the decoder and the encoder. In this case, the decoder can directly determine the rotational angular velocity of the laser radar.

[0364] In the embodiment of the present application, the rotational angular velocity of the laser radar can be directly obtained by parsing the bit stream. The encoder encodes the rotational angular velocity of the laser radar and writes the obtained coded bits into the bit stream. The decoder decodes the rotational angular velocity of the laser radar by parsing the bit stream to obtain the rotational angular velocity.

[0365] In an embodiment of the present application, the angular velocity of the laser radar can also be determined based on the number of laser radar points obtained by parsing the code stream. The encoder encodes the number of laser radar points and writes the obtained coded bits into the code stream. The decoder decodes the number of laser radar points by parsing the code stream to obtain the number of laser radar points. Subsequently, the decoder determines the angular velocity of the laser radar (2π / pointnums) based on the number of laser radar points.

[0366] In the embodiment of the present application, the rotational angular velocity of the laser radar can be a value specified or agreed upon by both the decoder and the encoder. In this case, the decoder can directly determine the rotational angular velocity of the laser radar.

[0367] S202: Determine a second angle parameter value based on the local motion information, the third angle parameter value, and the rotation angular velocity.

[0368] In an embodiment of the present application, when the predicted node index value represents that the predicted node is a preset node, the decoder determines the second angle parameter value of the predicted node through the local motion information of the predicted node, the third angle parameter value of the first decoded node and the rotation angular velocity of the lidar.

[0369] In some embodiments of the present application, S202 includes S2021 to S2024:

[0370] S2021. Determine a first intermediate value based on the ratio of the local motion information to the rotation angular velocity.

[0371] In the embodiment of the present application, the decoder determines the first intermediate value based on the ratio of the local motion information of the prediction node to the rotation angular velocity of the laser radar, wherein the above process can be expressed as: in, It represents the local motion information of the predicted node, and angular azimuth speed represents the angular velocity of the lidar.

[0372] S2022. Perform a rounding operation on the first intermediate value to obtain a second intermediate value.

[0373] In the embodiment of the present application, after determining the first intermediate value, the decoder performs a rounding operation on the first intermediate value to obtain a second intermediate value. In other words, the second intermediate value is a positive integer, and qphi0 is used to represent the second intermediate value.

[0374] S2023. Multiply the second intermediate value by the rotation angular velocity to obtain a third intermediate value.

[0375] In an embodiment of the present application, after determining the second intermediate value, the decoder multiplies the second intermediate value by the rotation angular velocity to obtain a third intermediate value; wherein, the above process can be expressed as: qphi0*_geomAngularAzimuthSpeed; wherein, qphi0 represents the second intermediate value, and _geomAngularAzimuthSpeed ​​represents the rotation angular velocity of the lidar.

[0376] S2024. Add the third intermediate value and the third angle parameter value to obtain a second angle parameter value.

[0377] In the embodiment of the present application, after obtaining the third intermediate value, the decoder adds the third intermediate value to the third angle parameter value of the first decoded node to obtain the second angle parameter value of the predicted node; wherein the above process can be expressed as:

[0378] interPred.second[1]=prevPos[1]+qphi0*_geomAngularAzimuthSpeed;

[0379] Among them, prevPos[1] represents the third angle parameter value of the first decoded node, and interPred.second[1] represents the second angle parameter value of the predicted node.

[0380] In some embodiments of the present application, if the local motion information is greater than or equal to a first preset threshold, or the local motion information is less than or equal to a second preset threshold, the second angle parameter value of the prediction node is determined based on the local motion information; the first preset threshold is greater than the second preset threshold.

[0381] In some embodiments of the present application, if the local motion information is less than a first preset threshold and the local motion information is greater than a second preset threshold, the first angle parameter value is determined as the second angle parameter value; the first preset threshold is greater than the second preset threshold.

[0382] In an embodiment of the present application, when the local motion information of the prediction node is greater than or equal to a first preset threshold, or when the local motion information is less than or equal to a second preset threshold, the decoder determines the second angle parameter value of the prediction node based on the local motion information of the prediction node; when the local motion information of the prediction node is less than the first preset threshold and the local motion information is greater than the second preset threshold, the decoder uses the first angle parameter value of the prediction node as the second angle parameter value. The above process can be expressed as: if(deltaPhi>=(_geomAngularAzimuthSpeed>>1)||deltaPhi<=-(_geomAngularAzimuthSpeed>>1));

[0383] Among them, _geomAngularAzimuthSpeed>>1 means shifting right by one bit, that is, _geomAngularAzimuthSpeed ​​is multiplied by 0.5.

[0384] In the embodiment of the present application, the first preset threshold and the second preset value are pre-set, and the first preset threshold is greater than the second preset threshold.

[0385] In some embodiments of the present application, the first preset threshold is Q times the rotational angular velocity, where Q is a positive number; and the second preset threshold is negative Q times the rotational angular velocity.

[0386] In the embodiment of the present application, Q is pre-set.

[0387] In the embodiment of the present application, Q is 0.5.

[0388] Exemplarily, the preset nodes are nodes e, f, o, and p in the first reference frame. When the predicted node index value indicates that the predicted node is a preset node, the decoder performs local motion processing on the first angle parameter value of the predicted node to obtain the second angle parameter value of the predicted node. That is, the first angle parameter value of the predicted node (one of the nodes e, f, o, and p) is converted to Replace it with the following local motion method:

[0389] 1) Subtract the fourth angle parameter value of the second decoded node (node ​​g) from the first angle prediction value of the prediction node to obtain the local motion information of the prediction node, that is, the difference between the fourth angle parameter value and the first angle parameter value.

[0390] 2) If the local motion information of the predicted node Greater than or equal to the first preset threshold (k times the rotation angle value angular azimuth speed), or, the local motion information of the predicted node If the value is less than or equal to a second preset threshold (minus k times the rotation angle value angular azimuth speed), proceed to step 3);

[0391] Here, k times is the same as Q times mentioned above, and the two have the same meaning.

[0392] If the local motion information of the predicted node The local motion information of the predicted node is less than the first preset threshold (k times the rotation angle value angular azimuth speed) If the value is greater than a second preset threshold (minus k times the rotation angle value angular azimuth speed), proceed to step 5);

[0393] 3) Based on the ratio of the local motion information to the rotational angular velocity, determine the first intermediate value; perform rounding operation on the first intermediate value to obtain the second intermediate value. That is, calculate It should be noted that qphi0 represents the second intermediate value. Indicates rounding up, that is, qphi0 is an integer.

[0394] 4) Multiply the second intermediate value by the angular azimuth speed to obtain a third intermediate value, and add the third intermediate value to the third angle parameter value to obtain a second angle parameter value. That is, the first angle parameter value of the predicted node is replaced by the third angle parameter value of the first decoded node (a) plus the third intermediate value (qphi0*angular azimuth speed);

[0395] 5) No local motion processing is performed on the first angle parameter value of the prediction node, and the first angle parameter value is directly determined as the second angle parameter value.

[0396] In the embodiment of the present application, the above steps can be expressed as: auto deltaPhi = interPred.second[1] - interPredPrev.second[1]; / / Determine the difference between the fourth angle parameter value and the first angle parameter value if( deltaPhi>=(_geomAngularAzimuthSpeed>>1) || deltaPhi<=-(_geomAngularAzimuthSpeed>>1)){ / / If this condition is met, execute the subsequent steps int qphi0=divApprox( int64_t(deltaPhi)+(_geomAngularAzimuthSpeed>>1), _geomAngularAzimuthSpeed,0); / / Determine the second intermediate value interPred.second[1]= prevPos[1]+qphi0*_geomAngularAzimuthSpeed; / / Add the third intermediate value to the third angle parameter value to obtain the second angle parameter value}

[0397] It can be understood that in the process of determining the prediction node, the decoder calculates the local motion information of the motion between the first angle parameter value of the prediction node (such as e) and the third angle parameter value of the first decoded node (such as a). By using this prior local motion information, better inter-frame prediction can be performed on the node to be decoded, thereby achieving a more refined prediction of the geometric information of the prediction node, thereby improving the accuracy of inter-frame prediction.

[0398] In some embodiments of the present application, S103 includes S1031 to S1032:

[0399] S1031. Determine, based on the first decoded node, a second decoded node in a reference frame where the predicted node represented by the predicted node index value is located; a fourth angle parameter value of the second decoded node is less than or equal to and closest to a third angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index.

[0400] In an embodiment of the present application, a second decoded node is determined in a reference frame where the prediction node is located according to the third angle parameter value of the first decoded node.

[0401] In the embodiment of the present application, the second decoded node is determined according to the third angle parameter value.

[0402] In an embodiment of the present application, the reference frame where the second decoded node is located has the same radar index as the current frame. Therefore, the second decoded node and the first decoded node have the same radar index, that is, they correspond to the same lidar.

[0403] Exemplarily, based on FIG23 , in the first reference frame, the second decoded node is node g, and in the second reference frame, the second decoded node is node b.

[0404] Node g is a decoded node in the first reference frame that has the same radar index as the first decoded node (a) and whose first angle parameter value is less than or equal to the third angle parameter value of the first decoded node. Node b is a decoded node in the second reference frame that has the same radar index as the first decoded node (a) and whose first angle parameter value is less than or equal to the third angle parameter value of the first decoded node.

[0405] In this embodiment of the present application, the predicted node index value includes at least one node index value corresponding to at least one reference frame. In other words, the predicted node index value corresponds to the reference frame to which the node index value belongs. In other words, the predicted node index value can be used to determine the reference frame in which the predicted node is located.

[0406] In an embodiment of the present application, the determination order corresponding to the prediction node can be determined based on the prediction node index value of the prediction node. Exemplarily, based on Figure 23, when the prediction node index value of the prediction node (node ​​e) is 2, the determination order of the prediction node is ge, that is, first determine node g, and then determine node e based on node g. For another example, when the prediction node index value of the prediction node (node ​​f) is 3, the determination order of the prediction node is gef, that is, first determine node g, then determine node e based on node g, and finally determine node f based on node e.

[0407] For example, when the prediction node index value is 0 (corresponding to node c), it can be known that the reference frame where the prediction node represented by the prediction node index value 0 is located is the second reference frame; when the prediction node index value is 2 (corresponding to node e), it can be known that the reference frame where the prediction node represented by the prediction node index value 2 is located is the first reference frame.

[0408] S1032: Determine a predicted node based on the second decoded node, wherein a first angle parameter value of the predicted node is greater than a fourth angle parameter value of the second decoded node, and the predicted node and the second decoded node have the same radar index.

[0409] In the embodiment of the present application, a predicted node is determined in the reference frame where the second decoded node is located according to the fourth angle parameter value of the second decoded node.

[0410] In the embodiment of the present application, the predicted node is determined according to the fourth angle parameter value of the second decoded node.

[0411] Exemplarily, when the second decoded node is node g, the predicted node is determined in the first reference frame based on the angle parameter value of node g. When the second decoded node is node b, the predicted node is determined in the second reference frame based on the angle parameter value of node b.

[0412] In the embodiment of the present application, since the predicted node and the second decoded node belong to the same reference frame, the predicted node and the second decoded node have the same radar index.

[0413] In some embodiments of the present application, S1032 includes S10321 to S10322:

[0414] S10321. Use the fourth angle parameter value corresponding to the second decoded node as the first angle parameter value of the predicted node.

[0415] In an embodiment of the present application, when the predicted node index value indicates that the predicted node is the second decoded node, the second decoded node is used as the predicted node, and the fourth angle parameter value of the second decoded node is used as the first angle parameter value of the predicted node.

[0416] For example, based on FIG23 , assuming that the index value of the predicted node is 9 (corresponding to node g), and the second decoded node in the first reference frame is node g, node g is used as the predicted node. assuming that the index value of the predicted node is 8 (corresponding to node b), and the second decoded node in the second reference frame is node b, node b is used as the predicted node.

[0417] S10322. In the reference frame where the predicted node is located, based on the second decoded node and the predicted node index value, determine at least one next decoded node, where the at least one next decoded node includes the predicted node; a next angle parameter value of the next decoded node is greater than and closest to a previous angle parameter value of the previous decoded node, and the at least one next decoded node has the same radar index as the second decoded node.

[0418] In an embodiment of the present application, in a reference frame where the predicted node is located, a next decoded node can be determined based on the predicted node index value and the second decoded node. Based on the next decoded node, a next decoded node of the next decoded node can be determined to obtain at least one next decoded node. The at least one next decoded node includes the predicted node, and the radar index of the at least one next decoded node is the same.

[0419] In an embodiment of the present application, when the predicted node index value indicates that the predicted node is not the second decoded node, in the reference frame where the predicted node is located, at least one next decoded node is determined based on the second decoded node and the predicted node index value.

[0420] In an embodiment of the present application, based on the second decoded node, a preset number of at least one next decoded node is determined in the reference frame where the prediction node is located; at this time, the prediction node is one of the at least one next decoded nodes; or, based on the second decoded node, the next decoded node is determined in the reference frame where the prediction node is located, until the prediction node corresponding to the prediction node index value is determined. At this time, the last decoded node is the prediction node, and this application does not limit this.

[0421] For example, if the predicted node index value is 2, the next decoded node can be determined based on the second decoded node, resulting in two decoded nodes, with the predicted node being the next decoded node. Alternatively, the next decoded node can be determined based on the second decoded node, and the next decoded node of the next decoded node can be determined based on the next decoded node, resulting in three decoded nodes, with the predicted node being the next decoded node.

[0422] For example, based on FIG23, assuming that the preset number is 4 and the predicted node index value is 6 (corresponding to node o), it is necessary to determine 4 next decoded nodes in the reference frame where the predicted node is located: the first decoded node (node ​​e), the second decoded node (node ​​f), the third decoded node (node ​​o), and the fourth decoded node (node ​​p). Then, in the first reference frame where the predicted node is located, based on the second decoded node (node ​​g), the first decoded node (node ​​e), the second decoded node (node ​​f), the third decoded node (node ​​o), and the fourth decoded node (node ​​p) are determined in sequence, for a total of 4 next decoded nodes. According to the predicted node index value (6), among the 4 next decoded nodes obtained, the third decoded node (node ​​o) corresponding to the predicted node index value is determined, and the third decoded node (node ​​o) is used as the predicted node.

[0423] In an embodiment of the present application, when the predicted node index value indicates that the predicted node is not the second decoded node, in the reference frame where the predicted node is located, the next decoded node is determined based on the second decoded node until the predicted node is determined.

[0424] In the embodiment of the present application, the predicted node and the second decoded node correspond to the same reference frame.

[0425] In an embodiment of the present application, when the predicted node index value indicates that the predicted node is not the second decoded node, the i-th decoded node is determined in the reference frame where the predicted node is located based on the second decoded node; wherein i is a positive integer greater than or equal to 1 and less than M; the i-th angle parameter value of the i-th decoded node is greater than the fourth angle parameter value; when the i-th decoded node is not the predicted node, the i+1-th decoded node is determined based on the i-th decoded node until the i+1-th decoded node is the predicted node; wherein, the i+1-th angle parameter value of the i+1-th decoded node is greater than the i-th angle parameter value of the i-th decoded node.

[0426] In the embodiment of the present application, the (i+1)th decoded node is a predicted node, and the (i+1)th decoded node is the last decoded node.

[0427] Example 1: Based on Figure 23, the second decoded node in the first reference frame (the reference frame after the second reference frame undergoes global motion) is node g. In addition to the second decoded node, the first reference frame also includes: the first decoded node (node ​​e), the second decoded node (node ​​f), the third decoded node (node ​​o), and the fourth decoded node (node ​​p). When the predicted node index value of the predicted node indicates that the predicted node is the second decoded node (node ​​f), that is, i = 2, and the determination order of the predicted node can be determined as gef based on the predicted node index value, the predicted node can be determined by the following steps:

[0428] 1) Based on the second decoded node (node ​​g), determine the first decoded node (node ​​e) in the first reference frame where the prediction node is located, wherein the first angle parameter value of the first decoded node (node ​​e) is greater than the fourth angle parameter value of the second decoded node (node ​​g);

[0429] 2) Based on the first decoded node (node ​​e), determine the second decoded node (node ​​f) in the first reference frame where the prediction node is located, wherein the second angle parameter value of the second decoded node (node ​​f) is greater than the first angle parameter value of the first decoded node (node ​​e).

[0430] Example 2: Based on FIG. 23 and Example 1, when the predicted node index value of the predicted node indicates that the predicted node is the fourth decoded node (node ​​p), that is, i=4, and the determination order of the predicted node can be determined as gefop according to the predicted node index value, the predicted node can be determined by the following steps:

[0431] 1) Based on the second decoded node (node ​​g), determine the first decoded node (node ​​e) in the first reference frame where the prediction node is located, wherein the first angle parameter value of the first decoded node (node ​​e) is greater than the fourth angle parameter value of the second decoded node (node ​​g);

[0432] 2) Based on the first decoded node (node ​​e), determine the second decoded node (node ​​f) in the first reference frame where the prediction node is located, wherein the second angle parameter value of the second decoded node (node ​​f) is greater than the first angle parameter value of the first decoded node (node ​​e);

[0433] 3) Based on the second decoded node (node ​​f), determine the third decoded node (node ​​o) in the first reference frame where the prediction node is located, wherein the third angle parameter value of the third decoded node (node ​​o) is greater than the second angle parameter value of the second decoded node (node ​​f);

[0434] 4) Based on the third decoded node (node ​​o), determine the fourth decoded node (node ​​p) in the first reference frame where the prediction node is located, wherein the fourth angle parameter value of the fourth decoded node (node ​​p) is greater than the third angle parameter value of the third decoded node (node ​​o).

[0435] Example 3: Based on Figure 23, the second decoded node in the second reference frame (the decoded frame before the current frame) is node b. In addition to the second decoded node, the second reference frame also includes: the first decoded node (node ​​c), the second decoded node (node ​​d), the third decoded node (node ​​m), and the fourth decoded node (node ​​n). When the predicted node index value of the predicted node indicates that the predicted node is the fourth decoded node (node ​​n), that is, i = 4, and the order of determination of the predicted node can be determined as bcdmn based on the predicted node index value, the predicted node can be determined by the following steps:

[0436] 1) Based on the second decoded node (node ​​b), determine the first decoded node (node ​​c) in the second reference frame where the prediction node is located, wherein the first angle parameter value of the first decoded node (node ​​c) is greater than the fourth angle parameter value of the second decoded node (node ​​b);

[0437] 2) Based on the first decoded node (node ​​c), determine the second decoded node (node ​​d) in the second reference frame where the prediction node is located, wherein the second angle parameter value of the second decoded node (node ​​d) is greater than the first angle parameter value of the first decoded node (node ​​c);

[0438] 3) Based on the second decoded node (node ​​d), determine the third decoded node (node ​​m) in the second reference frame where the prediction node is located, wherein the third angle parameter value of the third decoded node (node ​​m) is greater than the second angle parameter value of the second decoded node (node ​​d);

[0439] 4) Based on the third decoded node (node ​​m), determine the fourth decoded node (node ​​n) in the second reference frame where the prediction node is located, wherein the fourth angle parameter value of the fourth decoded node (node ​​n) is greater than the third angle parameter value of the third decoded node (node ​​m).

[0440] Example 4. Based on Figure 23 and Example 1, if the predicted node index value represents that the predicted node is the second decoded node (node ​​g), then the node g in the first reference frame where the predicted node is located is used as the predicted node, where the fourth angle parameter value of the second decoded node (node ​​g) is less than or equal to the third angle parameter value of the first decoded node (node ​​a).

[0441] Example 5. Based on Example 3, if the predicted node index value represents that the predicted node is the second decoded node (node ​​b), then node b in the second reference frame where the predicted node is located is used as the predicted node, where the fourth angle parameter value of the second decoded node (node ​​b) is less than or equal to the third angle parameter value of the first decoded node (node ​​a).

[0442] In some embodiments of the present application, S103 includes S301 to S303:

[0443] S301: Determine, based on a first decoded node, a second decoded node in a reference frame where a predicted node represented by a predicted node index value is located; a fourth angle parameter value of the second decoded node is less than or equal to and closest to a third angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index.

[0444] In an embodiment of the present application, based on the first angle parameter of the first decoded node, in the reference frame where the predicted node represented by the predicted node index value is located, the decoded node corresponding to the third angle parameter value that is less than or equal to and closest to the first decoded node is determined as the second decoded node.

[0445] S302: Use the fourth angle parameter value corresponding to the second decoded node as the first angle parameter value of the predicted node.

[0446] In an embodiment of the present application, when the predicted node represented by the predicted node index value is the second decoded node, the second decoded node is used as the predicted node, that is, the second angle parameter of the second decoded node is used as the first angle parameter value of the predicted node.

[0447] S303 . Determine a prediction node among the decoded nodes subsequent to the second decoded node according to the order of the prediction tree.

[0448] In the embodiment of the present application, when the prediction node represented by the prediction node index value is not the second decoded node, the prediction node is determined according to the order of the prediction tree.

[0449] In the embodiment of the present application, a prediction tree method is used to determine the prediction node.

[0450] In an embodiment of the present application, when the predicted node represented by the predicted node index value is not the second decoded node, and the fourth angle parameter value of the second decoded node is equal to the third angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index, the predicted node is determined according to the order of the prediction tree.

[0451] It should be noted that, in an embodiment of the present application, determining the previous decoded node of the current node may include: determining a prediction tree corresponding to the current frame; and determining the previous decoded node of the current node based on the decoding order of the prediction tree.

[0452] In the embodiment of the present application, it is first necessary to construct a prediction tree corresponding to the current frame. The prediction tree structure can be constructed using two different methods: a KD-Tree (high-latency slow mode) and a low-latency fast mode (using lidar calibration information). When using lidar calibration information, each point is divided into different lasers, and the prediction tree structure is established according to the different lasers.

[0453] It should also be noted that, in the embodiment of the present application, the decoding order of the prediction tree can be one of the following: unordered, Morton order, azimuth order, radial distance order, etc., which is not specifically limited here.

[0454] In this way, at the decoding end, the prediction tree structure is reconstructed by parsing the bitstream. Then, the prediction tree is traversed and the point before the node to be decoded in the decoding order of the prediction tree is determined to be the previous decoded node of the node to be decoded (that is, the first decoded node).

[0455] For example, assuming that the decoded nodes following the second decoded node (node ​​b) in the second reference frame include: node c, node d, node m, and node n. When the predicted node is represented as node d based on its predicted node index value, the previous decoded node a of the node to be decoded is first determined; then, based on the angle parameter value of decoded node a, the second decoded node b is determined in the second reference frame; and according to the decoding order of the prediction tree, nodes c and d following the second decoded node b are sequentially determined in the second reference frame. At this point, the last node d determined is the predicted node.

[0456] In some embodiments of the present application, the depth information of the predicted node, the radar index value of the predicted node, and the second angle parameter value are determined as the geometric prediction value of the node to be decoded.

[0457] In an embodiment of the present application, after the predicted node is determined, the geometric parameters (such as geometric position information) can be used as the geometric prediction value of the node to be decoded.

[0458] In the embodiment of the present application, the geometric parameters here refer to the parameters in the radar coordinate system. Among them, the geometric parameters may include: horizontal azimuth Radar laser index value laserID and predicted node depth information radius.

[0459] In an embodiment of the present application, the second angle parameter value is the first angle parameter value of the prediction node or an angle prediction value after local motion processing is performed on the first angle parameter value.

[0460] In some embodiments of the present application, the method further includes: parsing the bitstream to determine the geometric residual information and quantization parameters of the point to be decoded; based on the quantization parameters, performing inverse quantization processing on the geometric residual information to determine the geometric prediction residual; based on the geometric prediction residual and the geometric prediction value, determining the reconstructed geometric parameters of the point to be decoded.

[0461] In an embodiment of the present application, determining the reconstructed geometric parameters of the node to be decoded based on the geometric prediction residual and the geometric prediction value may include: performing an addition operation based on the geometric prediction residual and the geometric prediction value to determine the reconstructed geometric parameters of the node to be decoded.

[0462] In an embodiment of the present application, the geometric residual information of the node to be decoded is obtained by parsing the code stream, and the quantization parameter is obtained by decoding the code stream; then, the geometric residual information is inversely quantized according to the quantization parameter to obtain the geometric prediction residual; then, the geometric prediction residual and the geometric prediction value are summed to obtain the reconstructed geometric parameters of the node to be decoded, such as restoring the reconstructed geometric position information of the node to be decoded, and finally completing the geometric reconstruction at the decoding end.

[0463] In some embodiments of the present application, determining geometric residual information of a point to be decoded includes:

[0464] Determine the context model of the node to be decoded according to the predicted node index value;

[0465] The context model is used to decode the geometric residual information of the node to be decoded to obtain the geometric residual information.

[0466] In an embodiment of the present application, the context model corresponding to the node to be decoded is determined according to the predicted node index value, and the decoder uses the context model corresponding to the node to be decoded to decode the geometric residual information of the node to be decoded, thereby obtaining the geometric residual information.

[0467] That is, different decoded nodes in a reference frame may correspond to different context models. Alternatively, decoded nodes in different reference frames may correspond to different context models. Alternatively, at least one decoded node in different reference frames may correspond to a different context model, which is not limited in this application.

[0468] For example, for selecting the inter-frame prediction mode as node c or node d or node m or node n or node b, a parameter of selecting a contex model corresponds to that, and for selecting the inter-frame prediction mode as node e or node f or node o or node p or node g, another parameter of selecting a contex model corresponds to that for performing the subsequent entropy decoding of the geometric residual information.

[0469] Furthermore, in the embodiments of the present application, the decoding method is mainly optimized for decoding in the inter-frame prediction mode. Here, a flag bit can also be used to determine whether the current node uses the inter-frame prediction mode. Therefore, in some embodiments of the present application, the method further includes:

[0470] Parse the code stream to determine the first identification information; when the first identification information indicates that the node to be decoded uses the inter-frame prediction mode, perform the step of determining the prediction node according to the node index value and the first decoded node.

[0471] Furthermore, with respect to the first identification information, in some embodiments of the present application, the method further includes:

[0472] If the first identification information is the first value, determining that the first identification information indicates that the node to be decoded does not use the inter-frame prediction mode;

[0473] If the first identification information is the second value, it is determined that the first identification information indicates that the node to be decoded uses the inter-frame prediction mode.

[0474] It should be noted that in the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the first identification information can be a parameter written in the profile or the value of a flag, which is not specifically limited here.

[0475] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0476] In an embodiment of the present application, taking the flag written into the code stream as an example, assuming that the first value is set to 0 (false) and the second value is set to 1 (true), if the value of the first identification information is 0 (false), then it can be determined that the inter-frame prediction mode is not used for the node to be decoded, that is, there is no need to execute the decoding method described in the embodiment of the present application; if the value of the first identification information is 1 (true), then it can be determined that the inter-frame prediction mode is used for the node to be decoded, that is, the decoding method described in the embodiment of the present application needs to be executed.

[0477] It should be noted that the embodiments of the present application do not limit the expression forms of the first value and the second value.

[0478] Furthermore, in embodiments of the present application, a flag may be set to determine whether the decoding method of the embodiments of the present application is enabled. Therefore, in some embodiments of the present application, the method further includes: parsing the bitstream to determine second identification information; and, if the second identification information indicates that local motion processing is enabled for the node to be decoded, performing local motion processing on the first angle parameter value of the predicted node based on the first decoded node to determine the second angle parameter value of the predicted node.

[0479] Furthermore, with respect to the second identification information, in some embodiments of the present application, the method further includes:

[0480] If the second identification information is the first value, determining that the second identification information indicates that the node to be decoded does not enable the local motion processing mode;

[0481] If the second identification information is the second value, it is determined that the second identification information indicates that the node to be decoded enables a local motion processing mode.

[0482] It should be noted that in the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the second identification information can be a parameter written in the profile or a flag value, which is not specifically limited here.

[0483] In an embodiment of the present application, taking the flag written into the code stream as an example, assuming that the first value is set to 0 (false) and the second value is set to 1 (true), if the value of the second identification information is 0 (false), then it can be determined that local motion processing is not enabled for the node to be decoded, that is, there is no need to execute the decoding method described in the embodiment of the present application; if the value of the second identification information is 1 (true), then it can be determined that local motion processing is enabled for the node to be decoded, that is, the decoding method described in the embodiment of the present application needs to be executed.

[0484] In short, in the embodiment of the present application, a 1-bit flag (i.e., the second identification information) can be used to indicate whether the decoding method of the embodiment of the present application is enabled or not. This flag can be placed in the header information of the high-level syntax element, such as the geometry header; and this flag can be conditionally enabled under certain conditions. If this flag does not appear in the bitstream, its default value is a fixed value. At the decoding end, if this flag does not appear in the bitstream, decoding may not be performed, and its default value is a fixed value.

[0485] This embodiment provides a decoding method, which includes: the decoder first parses the code stream to determine the predicted node index value corresponding to the node to be decoded; then, the decoder determines the first decoded node before the node to be decoded in the current frame; then, the decoder determines the predicted node based on the predicted node index value and the first decoded node; then, the decoder performs local motion processing on the first angle parameter value of the predicted node based on the first decoded node to determine the second angle parameter value of the predicted node; finally, the decoder determines the geometric prediction value of the node to be decoded based on the first angle parameter value or the second angle parameter value of the predicted node. Since the decoder performs local motion processing on the first angle parameter value of the predicted node to obtain the second angle parameter value, the second angle parameter value has prior information related to the local motion, so that inter-frame prediction can better predict the node to be decoded, which can improve the accuracy of inter-frame prediction, thereby improving the decoding efficiency of the geometric information of the point cloud and improving the decoding performance of the point cloud.

[0486] In another embodiment of the present application, see Figure 22, which shows a schematic flow chart of an encoding method provided by an embodiment of the present application. As shown in Figure 22, the method may include:

[0487] S401: Determine a first encoded node preceding a node to be encoded in a current frame.

[0488] In the embodiment of the present application, the first encoded node corresponds to the first decoded node at the decoding end.

[0489] In some embodiments of the present application, determining a first coded node preceding a node to be coded in a current frame may include:

[0490] Based on the coding order of the prediction tree, the previous coded node of the node to be coded is determined, and the previous coded node is used as the first coded node.

[0491] In the embodiment of the present application, according to the coding order of the prediction tree corresponding to the current frame, the previous coded node of the node to be coded is used as the first coded node.

[0492] Exemplarily, at the encoding end, the first encoded node is node a; correspondingly, at the decoding end, the first decoded node is node a.

[0493] It should be noted that the first angle parameter of the first encoded node at the encoding end corresponds to the first angle parameter of the first decoded node at the decoding end.

[0494] In the embodiment of the present application, the node to be encoded is a point in the current frame.

[0495] It should be noted that the encoding method of the embodiments of the present application is applied to an encoder. Furthermore, the encoding method may specifically refer to a point cloud inter-frame prediction method, or a method for encoding geometric information between point cloud frames, primarily improving inter-frame prediction algorithms in related technologies by performing local motion processing on the angle parameter values ​​of prediction nodes, thereby achieving better inter-frame prediction results.

[0496] In an embodiment of the present application, the current frame is a frame where the node to be encoded is located, and the current frame includes at least one point.

[0497] In an embodiment of the present application, the current frame is obtained by scanning a circle of the laser radar along the XY plane (horizontal plane), and the current frame may include multiple points.

[0498] In the embodiments of the present application, the node to be encoded is also referred to as the point to be encoded, the current node, the current point, the current node to be encoded, the current point to be encoded, etc., and the present application does not limit this.

[0499] In an embodiment of the present application, the node to be encoded may be a point in the current point cloud to be encoded, or the node to be encoded may include multiple points in the current point cloud to be encoded, which is not limited in the present application.

[0500] It should be noted that, when the node to be encoded includes multiple points in the current point cloud to be encoded, the multiple points included in the node to be encoded are repeated points. In this case, the multiple points included in the node to be encoded have the same geometric prediction information.

[0501] In the embodiment of the present application, when the first encoded node preceding the node to be encoded in the current frame is determined, the geometric information (geometric position information) of the first encoded node is determined.

[0502] It should be noted that the first encoded node here refers to the geometric information of the first encoded node. In other words, after determining the first encoded node before the node to be encoded in the current frame, the geometric information of the first encoded node in the point cloud is determined. The geometric information here can be understood as the position information of the first encoded node in the point cloud. For example, the geometric information of the first encoded node can be radar coordinate information or Cartesian coordinate information, etc. This application does not impose any restrictions on this.

[0503] It should also be noted that, in the embodiment of the present application, the geometric parameters (geometric information) here refer to the parameters in the radar coordinate system. Among them, the geometric parameters may include: horizontal azimuth Radar laser index value laserID and depth information radius.

[0504] In an embodiment of the present application, when the geometric information of the first encoded node is radar coordinate information, the geometric information of the first encoded node at least includes an angle parameter corresponding to the first encoded node, that is, a third angle parameter value.

[0505] In the embodiment of the present application, the third angle parameter value of the first encoded node is the angle information of the horizontal position of the first encoded node on the horizontal plane.

[0506] In the embodiment of the present application, the first encoded node is the previous encoded node of the node to be encoded in the current frame.

[0507] It should be noted that, since the first encoded node is the node that has been encoded before the node to be encoded, the first angle parameter of the first encoded node is smaller than the angle parameter of the node to be encoded.

[0508] It should be noted that, in the embodiment of the present application, the first coded node may also be any H coded nodes before the node to be coded in the current frame, where H is a positive integer greater than or equal to 1. For example, the first coded node may be the two coded nodes before the node to be coded in the current frame, or the first coded node may also be the four coded nodes before the node to be coded in the current frame, etc., and this application does not limit this.

[0509] S402: Determine a first candidate node having at least one geometric parameter identical to that of a first encoded node in a reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node.

[0510] In the embodiment of the present application, the first candidate node corresponds to the second decoded node at the decoding end.

[0511] Exemplarily, at the encoding end, based on Figure 23, the first candidate node in the first reference frame is node g, and the first candidate node in the second reference frame is node b; correspondingly, at the decoding end, the second decoded node in the first reference frame is node g, and the second decoded node in the second reference frame is node b.

[0512] In the embodiment of the present application, the second candidate node corresponds to a decoded node other than the second decoded node in the reference frame where the second decoded node of the decoding end is located.

[0513] Exemplarily, at the encoding end, based on Figure 23, the second candidate nodes in the first reference frame are node e, node f, node o, and node p, and the second candidate nodes in the second reference frame are node c, node d, node m, and node n; correspondingly, at the decoding end, the decoded nodes in the first reference frame other than the second decoded node (node ​​g) are node e, node f, node o, and node p, and the decoded nodes in the second reference frame other than the second decoded node (node ​​b) are node c, node d, node m, and node n.

[0514] In the embodiment of the present application, the geometric parameters (geometric information) here refer to the parameters in the radar coordinate system. Among them, the geometric parameters may include: horizontal azimuth Radar laser index value laserID and depth information radius.

[0515] In the embodiment of the present application, the angle parameter value is the angle information of the horizontal position of the horizontal plane, that is,

[0516] In this embodiment of the present application, the fourth angle parameter value of the first candidate node is less than or equal to, and closest to, the third angle parameter value of the first encoded node. Reference frames include: a first reference frame and a second reference frame; the first reference frame is at least one frame obtained by performing global motion on the second reference frame; the second reference frame is an encoded frame that is K frames prior to the current frame, where K is an integer greater than 0. The preset node is at least one candidate node in the first reference frame other than the first candidate node.

[0517] In an embodiment of the present application, at least one second candidate node, the first candidate node, and the first encoded node have the same radar index.

[0518] In some embodiments of the present application, the fourth angle parameter value of the first candidate node is less than or equal to and closest to the third angle parameter value of the first encoded node.

[0519] In an embodiment of the present application, the first candidate node and the first encoded node may have the same radar index, or the first candidate node and the first encoded node may have different radar indexes; the first candidate node and the first encoded node may have the same depth information, or the first candidate node and the first encoded node may have different depth information; the first candidate node and the first encoded node may have the same angle parameter value, or the first candidate node and the first encoded node may have different angle parameter values, which is not limited in this application.

[0520] In some embodiments of the present application, the reference frame includes: a first reference frame and a second reference frame; the first reference frame is at least one frame obtained by performing global motion on the second reference frame; the second reference frame is an encoded frame that is K frames before the current frame, where K is an integer greater than 0.

[0521] In this embodiment of the present application, the second reference frame may be the frame preceding the current frame, and the first reference frame may be the frame preceding the frame preceding the current frame. For example, if the current frame is Frame t, the first reference frame may be Frame t-1, and the second reference frame may be Frame t-2, where t is an integer.

[0522] It should also be noted that, in the embodiment of the present application, a third reference frame may also be included, and there is no specific limitation on the number of reference frames and the number of candidate nodes. In the embodiment of the present application, only the first reference frame and the second reference frame are used as examples for detailed description.

[0523] It should be noted that the preset node in the decoding end is at least one candidate node other than the first candidate node in the first reference frame of the encoding end, that is, the preset node is at least one candidate node in at least one second candidate node.

[0524] S403 : Perform local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node.

[0525] In an embodiment of the present application, local motion processing is performed on the angle parameter value of at least one candidate node in at least one second candidate node according to the fourth angle parameter value of the first candidate node to obtain the updated at least one second candidate node.

[0526] In the embodiment of the present application, the fourth angle parameter value of the first candidate node corresponds to the fourth angle parameter value of the second decoded node at the decoding end.

[0527] It can be understood that since at least one of the at least one second candidate nodes is subjected to local motion processing to obtain at least one updated second candidate node, the updated at least one second candidate node has the prior information of local motion compared to the non-updated second candidate node, thereby achieving a more refined prediction of the geometric information of the predicted node, thereby improving the accuracy of inter-frame prediction.

[0528] It can be understood that, since the at least one second candidate node takes into account the prior information of local motion, when the at least one second candidate node is used to determine the geometric prediction information of the node to be coded, the accuracy of the prediction of the node to be coded can be improved.

[0529] S404: Determine a geometric prediction value of the node to be encoded based on the first candidate node and the updated at least one second candidate node.

[0530] In an embodiment of the present application, the geometric prediction value of the node to be encoded corresponds to the geometric prediction value of the prediction node at the decoding end.

[0531] In an embodiment of the present application, the geometric prediction value of the node to be encoded is determined based on the geometric information of the first candidate node (such as node g and / or node b) and at least one updated second candidate node (such as at least one of nodes c, d, m, n, e, f, o, p).

[0532] It can be understood that since the angle parameter value of at least one candidate node in the updated at least one second candidate node is processed with local motion, at least one candidate node in the updated at least one second candidate node has the prior information of local motion, thereby more accurately determining the geometric prediction value of the node to be encoded.

[0533] In an embodiment of the present application, the encoder first determines the first encoded node preceding the node to be encoded in the current frame; then, the encoder determines a first candidate node in the reference frame that has at least one geometric parameter identical to the first encoded node, and determines at least one second candidate node in the reference frame based on the first candidate node; subsequently, the encoder performs local motion processing on the angle parameter value of at least one candidate node in the at least one second candidate node to obtain at least one updated second candidate node; finally, the encoder determines the geometric prediction value of the node to be encoded based on the first candidate node and the at least one updated second candidate node. Since the encoder performs local motion processing on the angle parameter value of at least one candidate node in the at least one second candidate node, at least one candidate node in the at least one second candidate node has prior information related to local motion, the accuracy of inter-frame prediction can be improved, thereby improving the coding efficiency of the geometric information of the point cloud and improving the coding performance of the point cloud.

[0534] In the embodiment of the present application, determining the first coded node of the node to be coded in the current frame may include:

[0535] Determine the prediction tree corresponding to the current frame;

[0536] Based on the coding order of the prediction tree, the first coded node of the node to be coded is determined.

[0537] It should be noted that in the embodiment of the present application, it is first necessary to build a prediction tree corresponding to the current frame. Among them, the prediction tree structure can be constructed using two different methods, which can include: KD-Tree (high-latency slow mode) and low-latency fast mode (using lidar calibration information). When using lidar calibration information, each point is divided into different lasers, and the prediction tree structure is established according to the different lasers.

[0538] It should also be noted that, in the embodiment of the present application, the encoding order of the prediction tree can be one of the following: unordered, Morton order, azimuth order, radial distance order, etc., which is not specifically limited here.

[0539] Thus, at the encoding end, a prediction tree structure is first constructed, and then the prediction tree is traversed to determine the point before the node to be encoded in the encoding order of the prediction tree, which is the first encoded node of the node to be encoded (for example, node a).

[0540] In some embodiments of the present application, S403 includes S4031 to S4033:

[0541] S4031. Determine local motion information of each third candidate node based on the fourth angle parameter value of the first candidate node and the fifth angle parameter value of at least one third candidate node in at least one second candidate node that matches the preset node.

[0542] In the embodiment of the present application, the fourth angle parameter value of the first candidate node at the encoding end corresponds to the angle parameter value of the second decoded node at the decoding end.

[0543] In the embodiment of the present application, the second candidate node at the encoding end is a decoded node other than the second decoded node in the reference frame where the second decoded node at the decoding end is located.

[0544] In the embodiment of the present application, the preset nodes are candidate nodes specified or agreed upon by the decoder and the encoder. In other words, the preset nodes are pre-specified candidate nodes for which local motion processing is performed.

[0545] Exemplarily, based on FIG23 , the decoder and the encoder agree to perform local motion processing on nodes e, f, o, and p in the first reference frame, that is, the preset nodes are nodes e, f, o, and p.

[0546] In the embodiment of the present application, the third candidate node is at least one candidate node among the preset nodes.

[0547] Exemplarily, the preset nodes are node e, node f, node o, and node p, and the third candidate node is at least one of node e, node f, node o, and node p.

[0548] In some embodiments of the present application, S4031 may include S501 to S502:

[0549] S501: Determine at least one third candidate node matching a preset node from at least one second candidate node.

[0550] For example, based on FIG. 23 , the at least one second candidate node may include: nodes e, f, o, and p in the first reference frame, and nodes c, d, m, and n in the second reference frame. The preset nodes may be nodes e, p, c, and d. Therefore, the third candidate node may be at least one of nodes e, p, c, and d.

[0551] S502: Determine the difference between the fourth angle parameter value of the first candidate node and the fifth angle parameter value of each third candidate node as the local motion information of each third candidate node.

[0552] In the embodiment of the present application, the difference between the fourth angle parameter value and the fifth angle parameter value of each third candidate node may be used as the local motion information of each third candidate node.

[0553] In the embodiment of the present application, the difference between the fourth angle parameter value multiplied by the first weight and the fifth angle parameter value of each third candidate node multiplied by the second weight may also be used as local motion information.

[0554] Exemplarily, the difference between the fourth angle parameter value and the fifth angle parameter value of each third candidate node is used as the local motion information, which can be expressed as: auto deltaPhi = interPred.second[1] - interPredPrev.second[1];

[0555] Among them, deltaPhi represents the difference (difference value) between the fourth angle parameter value and the fifth angle parameter value of each third candidate node, interPred.second[1] represents the fifth angle parameter value of each third candidate node, and interPredPrev.second[1] represents the fourth angle parameter value of the first candidate node.

[0556] S4032. Based on the local motion information, update the fifth angle parameter value of the corresponding third candidate node, determine the updated fifth angle parameter value of at least one third candidate node, and thus determine the updated at least one third candidate node.

[0557] It can be understood that since the updated at least one third candidate node has the prior information of local motion compared to the at least one third candidate node that has not been updated, a more refined prediction of the geometric information of the node to be encoded is achieved, thereby improving the accuracy of inter-frame prediction, thereby improving the encoding efficiency and accuracy of the geometric information of the point cloud.

[0558] S4033: Use the updated at least one third candidate node and the at least one second candidate node, except the at least one third candidate node, as the updated at least one second candidate node.

[0559] In some embodiments of the present application, S4032 may include S601 to S602:

[0560] S601: Determine the rotational angular velocity of the laser radar corresponding to the node to be encoded.

[0561] In an embodiment of the present application, the angular velocity of rotation of the laser radar is the angular velocity of rotation of the laser radar corresponding to the current frame; or, the angular velocity of rotation of the laser radar is the angular velocity of rotation of the laser radar corresponding to the first reference frame; or, the angular velocity of rotation of the laser radar is the angular velocity of rotation of the laser radar corresponding to the second reference frame.

[0562] In the embodiment of the present application, the rotational angular velocity of the laser radar is related to the number of points (nodes) obtained by rotating the laser radar in one revolution. For example, the rotational angular velocity of the laser radar can be 2π / pointnums, where pointnums represents the number of points obtained by rotating the laser radar in one revolution.

[0563] In the embodiment of the present application, the rotational angular velocity of the laser radar can be a value specified or agreed upon by both the decoder and the encoder. In this case, the encoder can directly determine the rotational angular velocity of the laser radar.

[0564] S602: Determine an updated fifth angle parameter value of at least one third candidate node based on the local motion information, third angle parameter value, and rotation angular velocity of each third candidate node.

[0565] In some embodiments of the present application, S602 may include S6021 to S6024:

[0566] S6021. Determine a first intermediate value of each third candidate node based on a ratio of the local motion information of each third candidate node to the rotation angular velocity.

[0567] In the embodiment of the present application, the encoder determines the first intermediate value of each third candidate node based on the ratio of the local motion information of each third candidate node to the rotation angular velocity of the laser radar, wherein the above process can be expressed as: in, It represents the local motion information of each third candidate node, and angular azimuth speed represents the rotation angular velocity of the lidar.

[0568] S6022: Perform a rounding operation on the first intermediate value of each third candidate node to obtain a second intermediate value of each third candidate node.

[0569] In this embodiment of the present application, after determining the first intermediate value of each third candidate node, the encoder performs a rounding operation on the first intermediate value of each third candidate node to obtain the second intermediate value of each third candidate node. In other words, the second intermediate value of each third candidate node is a positive integer, and qphi0 is used to represent the second intermediate value. The above process can be expressed as: Indicates rounding up, that is, qphi0 is an integer.

[0570] S6023: Multiply the second intermediate value of each third candidate node by the rotation angular velocity to obtain a third intermediate value of each third candidate node.

[0571] In an embodiment of the present application, after determining the second intermediate value of each third candidate node, the encoder multiplies the second intermediate value of each third candidate node by the rotation angular velocity to obtain the third intermediate value of each third candidate node; wherein, the above process can be expressed as: qphi0*_geomAngularAzimuthSpeed; wherein, qphi0 represents the second intermediate value of each third candidate node, and _geomAngularAzimuthSpeed ​​represents the rotation angular velocity of the lidar.

[0572] S6024: Add the third intermediate value of each third candidate node to the third angle parameter value to obtain an updated fifth angle parameter value of each third candidate node.

[0573] In this embodiment of the present application, after obtaining the third intermediate value of each third candidate node, the encoder adds the third intermediate value of each third candidate node to the third angle parameter value of the first encoded node to obtain an updated fifth angle parameter value of each third candidate node; wherein the above process can be expressed as: interPred.second[1]=prevPos[1]+qphi0*_geomAngularAzimuthSpeed;

[0574] Wherein, prevPos[1] represents the third angle parameter value of the first encoded node, and interPred.second[1] represents the updated fifth angle parameter value of each third candidate node.

[0575] In some embodiments of the present application, if the local motion information of any third candidate node is greater than or equal to the first preset threshold, or the difference value is less than or equal to the second preset threshold, the fifth angle parameter value of any third candidate node is updated based on the local motion information of any third candidate node, and the updated fifth angle parameter value of any third candidate node is determined; the first preset threshold is greater than the second preset threshold.

[0576] In some embodiments of the present application, if the local motion information of any third candidate node is less than the first preset threshold and the local motion information is greater than the second preset threshold, the fifth angle parameter value of any third candidate node is not updated; the first preset threshold is greater than the second preset threshold.

[0577] In an embodiment of the present application, when the local motion information of any third candidate node is greater than or equal to the first preset threshold, or the local motion information is less than or equal to the second preset threshold, the encoder determines the updated fifth angle parameter value of any third candidate node based on the local motion information of any third candidate node; when the local motion information of any third candidate node is less than the first preset threshold and the local motion information is greater than the second preset threshold, the encoder uses the fifth angle parameter value of any third candidate node as the updated fifth angle parameter value of any third candidate node. The above process can be expressed as: if(deltaPhi>=(_geomAngularAzimuthSpeed>>1)||deltaPhi<=-(_geomAngularAzimuthSpeed>>1));

[0578] Among them, _geomAngularAzimuthSpeed>>1 means shifting right by one bit, that is, _geomAngularAzimuthSpeed ​​is multiplied by 0.5.

[0579] In some embodiments of the present application, the first preset threshold is Q times the rotational angular velocity, where Q is a positive number; and the second preset threshold is negative Q times the rotational angular velocity.

[0580] In the embodiment of the present application, Q is pre-set.

[0581] In the embodiment of the present application, Q is 0.5.

[0582] In some embodiments of the present application, the first candidate node includes a first reference node and a second reference node; the second candidate node includes a third reference node and a fourth reference node; the first reference node and the third reference node belong to a first reference frame; the second reference node and the fourth reference node belong to a second reference frame.

[0583] In the embodiment of the present application, the reference frame where the first reference node (node ​​g) is located is the first reference frame; the reference frame where the second reference node (node ​​b) is located is the second reference frame.

[0584] In an embodiment of the present application, based on FIG. 23 , the third reference node may be at least one reference node other than the first reference node in the first reference frame, and the third reference node may be node e, node f, node o, and node p. Correspondingly, the preset node may be at least one of node e, node f, node o, and node p. The fourth reference node may be at least one reference node other than the second reference node in the second reference frame, and the fourth reference node may be node c, node d, node m, and node n. Correspondingly, the preset node may be at least one of node c, node d, node m, and node n. Alternatively, the preset node may be at least one of node c, node d, node m, node n, node e, node f, node o, and node p.

[0585] In some embodiments of the present application, determining at least one second candidate node in a reference frame according to the first candidate node may include:

[0586] determining a first reference node having the same radar index as the first encoded node in a second reference frame;

[0587] determining at least one third reference node in the first reference frame based on the first reference node;

[0588] determining a second reference node having the same radar index as the first encoded node in the first reference frame;

[0589] At least one fourth reference node is determined in the second reference frame according to the second reference candidate node.

[0590] It should be noted that the fourth angle parameter value of the first reference node is less than or equal to and closest to the third angle parameter value of the first encoded node; the sixth angle parameter value of at least one third reference node is greater than the fourth angle parameter value of the first reference node, and at least one third reference node has the same radar index as the first reference node; the fourth angle parameter value of the second reference node is less than or equal to and closest to the third angle parameter value of the first encoded node; the seventh angle parameter value of at least one fourth reference node is greater than the fourth angle parameter value of the second reference node, and at least one fourth reference node has the same radar index as the second reference node.

[0591] In some embodiments of the present application, determining at least one third reference node in the first reference frame according to the first reference node may include:

[0592] In the first reference frame, at least one third reference node that is sequentially encoded after the first reference node is determined according to the order of the prediction tree.

[0593] In the embodiment of the present application, based on FIG23 , the third reference node may include: node e, node f, node o, and node p. The first reference node may be node g.

[0594] Exemplarily, based on FIG23 , in the first reference frame, at least one of the nodes e, f, o, and p that are sequentially encoded after the first reference node (node ​​g) is determined in the order of the prediction tree.

[0595] In some embodiments of the present application, determining at least one fourth reference node in the second reference frame according to the second reference candidate node may include:

[0596] In the second reference frame, at least one fourth reference node that is sequentially encoded after the second reference node is determined according to the order of the prediction tree.

[0597] In the embodiment of the present application, based on FIG23 , the fourth reference node may include: node c, node d, node m, and node n. The second reference node may be node b.

[0598] Exemplarily, in the first reference frame, at least one of the nodes c, d, m, and n that are sequentially encoded after the second reference node (node ​​b) is determined in the order of the prediction tree.

[0599] In some embodiments of the present application, performing local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain the at least one updated second candidate node may include:

[0600] Determining local motion information of each third candidate node based on the fourth angle parameter value of the first reference node and the fifth angle parameter value of at least one third candidate node that matches the preset node among the at least one third reference node;

[0601] Based on the local motion information, updating the fifth angle parameter value of the corresponding third candidate node, determining an updated fifth angle parameter value of at least one third candidate node, and thereby determining the at least one updated third candidate node;

[0602] using, among the updated at least one third candidate node and the at least one third reference node, a candidate node other than the at least one third candidate node as the updated at least one third reference node;

[0603] The updated at least one third reference node and the at least one fourth reference node are used as the updated at least one second candidate node.

[0604] Exemplarily, based on FIG23 , according to the first reference node (node ​​g) in the first reference frame, local motion processing is performed on the fifth angle parameter value of at least one third candidate node that matches a preset node (e.g., including: node e, node f) in at least one third reference node to determine the local motion information of each third candidate node. The at least one third reference node may include: a first third reference node (node ​​e), a second third reference node (node ​​f), a third third reference node (node ​​o), and a fourth third reference node (node ​​p). The at least one fourth reference node in the second reference frame may include: a first fourth reference node (node ​​c), a second fourth reference node (node ​​d), a third fourth reference node (node ​​m), and a fourth fourth reference node (node ​​n).

[0605] At this time, the at least one third candidate node is: the first third reference node (node ​​e) and the second third reference node (node ​​f). The updated at least one third candidate node includes: the updated first third reference node (node ​​e) and the updated second third reference node (node ​​f). Further, the updated at least one third reference node includes: the updated first third reference node (node ​​e), the updated second third reference node (node ​​f), the third third reference node (node ​​o), and the fourth third reference node (node ​​p).

[0606] Further, based on Figure 23, the updated at least one second candidate node may include: the updated first third reference node (node ​​e), the updated second third reference node (node ​​f), the third third reference node (node ​​o), the fourth third reference node (node ​​p), the first fourth reference node (node ​​c), the second fourth reference node (node ​​d), the third fourth reference node (node ​​m) and the fourth fourth reference node (node ​​n).

[0607] In some embodiments of the present application, the at least one third reference node, the updated at least one fourth reference node, the second reference node, and the first reference node have a preset order.

[0608] It should also be noted that, in the embodiment of the present application, the preset order is not limited to this order, and can also be other orders, which are not specifically limited here. In addition, it should be noted that the order described here can be used as an optimal order to achieve the best encoding performance.

[0609] The determination of the first candidate node and at least one second candidate node and the preset order are described in detail below in conjunction with several specific implementations.

[0610] In a specific implementation, determining at least one second candidate node in a reference frame according to the first candidate node may include:

[0611] According to the coding order of the prediction tree, in the first reference frame, sequentially determine the first third reference node, the second third reference node, the third third reference node, and the fourth third reference node that are coded after the first reference node;

[0612] At least one third reference node is determined according to the first third reference node, the second third reference node, the third third reference node, and the fourth third reference node.

[0613] According to the coding order of the prediction tree, sequentially determining in the second reference frame a first fourth reference node, a second fourth reference node, a third fourth reference node, and a fourth fourth reference node coded after the second reference node;

[0614] At least one fourth reference node is determined according to the first fourth reference node, the second fourth reference node, the third fourth reference node, and the fourth fourth reference node.

[0615] In an embodiment of the present application, FIG23 shows a schematic diagram of the structure of an inter-frame coding and decoding of geometric information provided by an embodiment of the present application. As shown in FIG23, the nodes to be coded in the current frame are filled with a grid, and the previous coded node of the node to be coded (i.e., the first coded node) is represented by a. There are a first reference frame and a second reference frame, where the second reference frame can be the previous frame of the current frame, and the first reference frame can be a GMC frame of the previous frame after global motion.

[0616] For example, taking FIG. 23 as an example, when performing inter-frame prediction coding on a node to be coded, first determine the previous coded node a of the current point;

[0617] Based on Figure 23, for the second reference frame (the previous frame of the current frame), the first candidate node b (i.e., the second reference node) having at least one identical geometric parameter (angle parameter value) as the previous encoded node a of the node to be encoded can be found in the second reference frame; then, according to the encoding order of the prediction tree, the first fourth reference node c, the second fourth reference node d, the second fourth reference node m and the fourth fourth reference node n encoded after the first candidate node b in the second reference frame are determined in sequence; among them, the first fourth reference node c, the second fourth reference node d, the second fourth reference node m and the fourth fourth reference node n are the at least one second candidate node here (i.e., at least one fourth reference node).

[0618] Based on Figure 23, for the first reference frame (the GMC frame in which the previous frame has undergone global motion), a first candidate node g (i.e., the first reference node) having at least one identical geometric parameter (angle parameter value) as the previous encoded node a of the node to be encoded can be found in the first reference frame; then, according to the encoding order of the prediction tree, the first third reference node e, the second third reference node f, the third third reference node o, and the fourth third reference node p encoded after the first candidate node g in the first reference frame are determined in sequence; wherein, the first third reference node e, the second third reference node f, the third third reference node o, and the fourth third reference node p are at least one second candidate node (i.e., the third reference node) here. It should be noted that the horizontal azimuth angles of the first third reference node e, the second third reference node f, the third third reference node o, and the fourth third reference node p here may not be replaced or may be replaced, wherein they may be replaced with the horizontal azimuth angle of the parent node of the node to be encoded, or may be replaced with the horizontal azimuth angle after local motion processing.

[0619] In another specific implementation, determining at least one second candidate node in a reference frame according to the first candidate node may include:

[0620] Determine, in order of magnitude of the horizontal azimuth angles, in the second reference frame, the first fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the second reference node, the second fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the first fourth reference node, the third fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the second fourth reference node, and the fourth fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the third fourth reference node;

[0621] At least one second candidate node (i.e., fourth reference node) is determined based on the first fourth reference node, the second fourth reference node, the third fourth reference node, and the fourth fourth reference node; wherein the radar laser index values ​​of the first fourth reference node, the second fourth reference node, the third fourth reference node, and the fourth fourth reference node are all the same as the radar laser index value of the previous encoded node.

[0622] In the embodiment of the present application, as shown in FIG23 , it is assumed that at least one second candidate node (i.e., the fourth reference node) includes the first fourth reference node c, the second fourth reference node d, the third fourth reference node m, and the fourth fourth reference node n. When performing inter-frame prediction coding on the node to be coded, first determine the previous coded node a of the current point; then determine the second reference node b with the same angle parameter value as the previous coded node a; and then determine the node b according to the horizontal azimuth angle. The order of size is determined as follows:

[0623] Determine in the second reference frame the first fourth reference node c having the same radar laser index number and a first horizontal azimuth angle (i.e., an angle parameter value) greater than the horizontal azimuth angle of the second reference node b;

[0624] Determine, in the second reference frame, a second fourth reference node d having the same radar laser index sequence number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the first fourth reference node c;

[0625] Determine in the second reference frame a third fourth reference node m having the same radar laser index sequence number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the second fourth reference node d;

[0626] Determine in the second reference frame a fourth fourth reference node n having the same radar laser index sequence number and a first horizontal azimuth angle greater than and closest to the horizontal azimuth angle of the third fourth reference node m;

[0627] At this time, the obtained first fourth reference node c, second fourth reference node d, third fourth reference node m, and fourth fourth reference node n are at least one second candidate node (ie, fourth reference node) here.

[0628] In another specific implementation, determining at least one second candidate node in a reference frame according to the first candidate node may include:

[0629] Determine, in order of the magnitude of the horizontal azimuth angles, in the first reference frame, a first third reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the first candidate node (i.e., the first reference node), a second third reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the first third reference node, a third third reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the second third reference node, and a fourth third reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the third third reference node;

[0630] At least one second candidate node (i.e., at least one third reference node) is determined based on the first third reference node, the second third reference node, the third third reference node, and the fourth third reference node; wherein the radar laser index serial numbers of the first third reference node, the second third reference node, the third third reference node, and the fourth third reference node are all the same as the radar laser index serial number of the previous encoded node.

[0631] In the embodiment of the present application, as shown in FIG23 , it is assumed that at least one second candidate node includes the first third reference node e, the second third reference node f, the third third reference node o, and the fourth third reference node p. When performing inter-frame prediction coding on the node to be coded, first determine the previous coded node a of the node to be coded; then determine the third candidate node g (first reference node) having the same angle parameter value as the previous coded node a; and then determine the node g (first reference node) according to the horizontal azimuth angle. The order of size is as follows:

[0632] Determine in the first reference frame a first third reference node e having the same radar laser index number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the first candidate node g (i.e., the first reference node);

[0633] Determine in the first reference frame a second third reference node f having the same radar laser index sequence number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the first third reference node e;

[0634] Determine, in the first reference frame, a third third reference node o having the same radar laser index sequence number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the second third reference node f;

[0635] Determine in the first reference frame a fourth third reference node p having the same radar laser index sequence number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the third third reference node o;

[0636] At this time, the obtained first third reference node e, second third reference node f, third third reference node o and fourth third reference node p are at least one second candidate node (ie, third reference node) here.

[0637] It should also be noted that, based on Figure 23, the preset order can be: the 1st fourth reference node c, the 2nd fourth reference node d, the 1st third reference node e, the 2nd third reference node f, the 3rd fourth reference node m, the 4th fourth reference node n, the 3rd third reference node o and the 3rd third reference node p.

[0638] Based on Figure 23, the preset order can also be: the first fourth reference node c, the second fourth reference node d, the first third reference node e, the second third reference node f, the third fourth reference node m and the fourth fourth reference node n.

[0639] Based on Figure 23, the preset order can also be: the first fourth reference node c, the second fourth reference node d, the first third reference node e, the second third reference node f, the third fourth reference node m, the fourth fourth reference node n, the second reference node b and the first reference node g.

[0640] In an embodiment of the present application, cost values ​​are calculated for the first candidate node and each updated second candidate node respectively to obtain multiple rate-distortion cost results; the candidate node corresponding to the minimum rate-distortion cost among the multiple rate-distortion cost results is determined as the prediction node; based on the prediction node, the geometric prediction value of the node to be encoded is determined.

[0641] In some embodiments of the present application, the method may further include: determining a predicted node index value corresponding to the node to be encoded in a preset order; encoding the predicted node index value, and writing the obtained encoded bits into a bitstream.

[0642] In some embodiments of the present application, the method may further include: determining geometric residual information of the node to be encoded based on the geometric prediction value of the node to be encoded; encoding the geometric residual information of the node to be encoded, and writing the obtained encoded bits into the bitstream.

[0643] In some embodiments of the present application, determining the geometric residual information of the node to be encoded based on the geometric prediction value of the node to be encoded may include: determining the initial residual value of the node to be encoded based on the geometric prediction value of the node to be encoded; and quantizing the initial residual value of the node to be encoded based on a quantization parameter to obtain the geometric residual information of the node to be encoded.

[0644] In some embodiments of the present application, determining the initial residual value of the node to be encoded based on the geometric prediction value of the node to be encoded may include: determining the original value of the node to be encoded; performing a subtraction operation between the original value of the node to be encoded and the geometric prediction value of the node to be encoded to determine the initial residual value of the node to be encoded.

[0645] In some embodiments of the present application, the method may further include: encoding the quantization parameter, and writing the obtained encoded bits into the bitstream.

[0646] For example, using geometric position information as an example, the geometric prediction value of the node to be encoded is first determined. Then, a difference operation is performed between the geometric position information of the current node and the geometric prediction value to obtain an initial residual value. This initial residual value is then quantized using a quantization parameter to determine a geometric prediction residual value. Finally, through continuous iteration, parameters such as the inter-frame prediction mode value, geometric prediction residual value, prediction tree structure, and quantization parameter for each node position information in the prediction tree are encoded, and the resulting coded bits are written into the bitstream.

[0647] Furthermore, in the embodiment of the present application, the encoding method is mainly optimized for encoding in inter-frame prediction mode. Here, it is also possible to first determine whether the node to be encoded uses inter-frame prediction mode and generate a flag to identify it. Therefore, in some embodiments, the method may also include:

[0648] Determining a prediction mode of a node to be encoded, and generating first identification information based on the prediction mode; the first identification information indicates whether the node to be encoded uses an inter-frame prediction mode;

[0649] When the prediction mode is the inter-frame prediction mode, the step of determining the first encoded node before the node to be encoded in the current frame is performed.

[0650] Furthermore, with respect to the first identification information, in some embodiments, determining the first identification information may include:

[0651] If the first identification information indicates that the node to be encoded does not use the inter-frame prediction mode, determining the value of the first identification information to be a first value;

[0652] If the first identification information indicates that the node to be encoded uses the inter-frame prediction mode, the value of the first identification information is determined to be the second value

[0653] It should be noted that in the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the first identification information can be a parameter written in the profile or the value of a flag, which is not specifically limited here.

[0654] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0655] In some embodiments, the method may further include: encoding the first identification information, and writing the obtained encoded bits into a bitstream.

[0656] It should also be noted that, in the embodiment of the present application, taking the flag written into the bitstream as an example, assuming that the first value is 0 and the second value is 1, if it is determined that the current node does not use the inter-frame prediction mode, the first identification information (0) is generated; if it is determined that the current node uses the inter-frame prediction mode, the first identification information (1) is generated. In this way, the decoding end can subsequently determine whether the current node uses the inter-frame prediction mode by decoding the first identification information, thereby improving decoding efficiency.

[0657] Furthermore, in some embodiments of the present application, a flag may be set to determine whether to enable the encoding method of the embodiment of the present application. Therefore, in some embodiments, the method may further include:

[0658] Determine whether to enable the local motion processing mode and generate second identification information; the second identification information indicates whether the local motion processing mode is enabled for the node to be encoded;

[0659] When it is determined that the local motion processing mode is enabled for the node to be encoded, the step of determining the first encoded node before the node to be encoded in the current frame is performed.

[0660] Furthermore, with respect to the second identification information, in some embodiments, determining the second identification information may include:

[0661] If the second identification information indicates that the node to be encoded does not enable the local motion processing mode, determining the value of the second identification information to be the first value;

[0662] If the second identification information indicates that the node to be encoded enables a local motion processing mode, the value of the second identification information is determined to be a second value.

[0663] It should be noted that in the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the second identification information can be a parameter written in the profile or a flag value, which is not specifically limited here.

[0664] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0665] Furthermore, in some embodiments of the present application, the method may further include: encoding the value of the second identification information, and writing the obtained encoded bits into the code stream.

[0666] It should also be noted that, in the embodiment of the present application, taking the flag written into the bitstream as an example, assuming that the first value is 0 and the second value is 1, if it is determined that the local motion processing mode is not enabled for the current node, the second identification information (0) is generated; if it is determined that the local motion processing mode is not enabled for the current node, the second identification information (1) is generated. In this way, the value of the second identification information can be directly obtained through decoding at the decoding end, and it can be determined whether the current node is enabled, thereby improving decoding efficiency.

[0667] In short, in this embodiment of the present application, a 1-bit flag (i.e., second identification information) can be used to indicate whether the encoding method of this embodiment of the present application is enabled. This flag can be placed in the header information of a high-level syntax element, such as the geometry header; and this flag can be conditionally enabled under certain conditions. If this flag is not present in the bitstream, its default value is a fixed value.

[0668] This embodiment provides a coding method, in which the encoder first determines a first coded node preceding the node to be coded in the current frame; then, the encoder determines a first candidate node in the reference frame that has at least one geometric parameter identical to the first coded node, and determines at least one second candidate node in the reference frame based on the first candidate node; subsequently, the encoder performs local motion processing on the angle parameter value of at least one candidate node in the at least one second candidate node to obtain at least one updated second candidate node; finally, the encoder determines the geometric prediction value of the node to be coded based on the first candidate node and the at least one updated second candidate node. Since the encoder performs local motion processing on the angle parameter value of at least one candidate node in the at least one second candidate node, at least one candidate node in the at least one second candidate node has prior information related to local motion, so that inter-frame prediction can better predict the node to be coded, thereby improving the accuracy of inter-frame prediction, improving the coding efficiency of geometric information, and further improving the coding performance of point cloud.

[0669] In another embodiment of the present application, based on the encoding / decoding method described in the aforementioned embodiment, since the relevant technology only considers the prior information of global motion when performing inter-frame prediction on the selected inter-frame prediction candidate points, the embodiment of the present application mainly performs local motion processing on the angle parameter value of the prediction node, which can improve the accuracy of inter-frame prediction, thereby improving the encoding and decoding efficiency of the geometric information of the point cloud and improving the encoding and decoding performance of the point cloud.

[0670] In an embodiment of the present application, the tool proposed herein can use a 1-bit flag to indicate whether the feature is enabled. This flag is placed in the header of a higher-level syntax element, such as the geometry header, and is conditionally enabled under certain conditions. If the flag is not present in the bitstream, its default value is a fixed value. Similarly, the decoder needs to decode the flag. If the flag is not present in the bitstream, decoding is not required, and its default value is a fixed value.

[0671] The above point cloud encoding and decoding method is explained in detail below in some specific embodiments.

[0672] Example 1 (10 points):

[0673] In a possible implementation, taking FIG. 23 as an example, at the encoding end, when performing inter-frame predictive coding on the current point to be coded (point to be coded), the prediction tree (i.e., in the order of the prediction tree) is traversed, and the previous coded node a (the first coded node) of the current point to be coded (node ​​to be coded) is searched; the previous frame is used as a reference frame (the second reference frame) to find the node a that has the same encoding as the previous coded node a of the current point. (third angle parameter value) and point b (second reference node or first candidate node) of laserID, point b in the previous frame reference frame and point c (first fourth reference node) and point d (second fourth reference node) and point m (third fourth reference node) and point n (fourth fourth reference node) encoded or decoded after point b are used as candidate points between frames.

[0674] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a Point b, and / or

[0675] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a Point c, and / or

[0676] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point c Point d, and / or

[0677] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point d point m, and / or,

[0678] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point m point n, and / or,

[0679] Point b in the previous reference frame and points c, d, m, and n encoded or decoded after point b are used as candidate points between frames.

[0680] In a possible implementation, a node a (first coded node) having the same value as the node a that has been coded before the current point is found in the reference frame (first reference frame) of the previous frame that has undergone global motion. And point g (the first reference node or the first candidate node) of laserID, the point g in the previous frame after global motion as the reference frame and the point e (the first third reference node) and point f (the second third reference node) and point o (the third third reference node) and point p (the fourth third reference node) encoded or decoded after point g are used as candidate points between frames.

[0681] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a Point g, and / or,

[0682] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a point e, and / or,

[0683] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point e The point f, and / or

[0684] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point f Point o, and / or

[0685] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point o The point p, and / or

[0686] The point g in the previous frame that has undergone global motion is used as the reference frame, and the points e, f, o, and p that are encoded or decoded after point g are used as candidate points between frames.

[0687] At the same time, the inter-frame prediction points e, f, o, p Replace it with the following local motion method:

[0688] First calculate the points e, f, o, p Minus the g get (local motion information);

[0689] if The value is greater than or equal to k times (k is 0.5) angular azimuth speed or The value of is less than or equal to negative k times (k is 0.5) the value of angular azimuth speed, or proceed directly to the following steps without making any judgment:

[0690] calculate Indicates rounding up. This application does not limit the rounding down.

[0691] The inter-frame prediction points e, f, o, p Replace with point a Add qphi0*angular azimuth speed.

[0692] Part of the pseudo code of the above process is as follows: auto deltaPhi=interPred.second[1]-interPredPrev.second[1; if( deltaPhi>=(_geomAngularAzimuthSpeed>>1) || deltaPhi<=-(_geomAngularAzimuthSpeed>>1)){ int qphi0=divApprox( int64_t(deltaPhi)+(_geomAngularAzimuthSpeed>>1), _geomAngularAzimuthSpeed,0); interPred.second[1]= prevPos[1]+qphi0*_geomAngularAzimuthSpeed;}

[0693] In this way, different prediction points (including several candidate points within a frame and up to 10 candidate points between frames) are selected through RDO rate-distortion optimization, namely node c, node d, node e, node f, node m, node n, node o, node p, node b and node g.

[0694] Among them, there are requirements for the order of candidate prediction points, specifically:

[0695] Perform RDO rate-distortion optimization to select the optimal inter-frame prediction point in the order of c, d, e, f, m, n, o, p, b, and g (this is the optimal order and can achieve the best performance, and other orders are also possible).

[0696] Furthermore, the entropy encoding / decoding of the residual coefficients is performed by selecting the inter-frame prediction mode c or d or m or n or b corresponding to the parameters of a selected contex model, and selecting the inter-frame prediction mode e or f or o or p or g corresponding to the parameters of another selected contex model.

[0697] After determining the prediction node, the geometric position information of the prediction node is predicted to obtain the prediction residual, and the geometric prediction residual is quantized using the quantization parameter. Finally, through continuous iteration, the prediction mode of the prediction tree node position information, the prediction residual, the prediction tree structure, and the quantization parameter are encoded to generate a binary bitstream.

[0698] In a possible implementation, at the decoding end, the decoding end reconstructs the prediction tree structure by continuously parsing the bitstream, and traverses the prediction tree for the decoded node a before the current point to be decoded;

[0699] First, decode the prediction mode;

[0700] Among them, there are requirements for the order of candidate prediction points, specifically:

[0701] According to the decoded prediction mode, inter-frame prediction points are selected in the order of nodes c, d, e, f, m, n, o, p, b, and g (this is the optimal order and can achieve the best performance, and other orders are also possible).

[0702] In one possible implementation, if the prediction mode is an inter-frame prediction mode, then the decoded inter-frame prediction mode may be used to determine a prediction point from the following at most 10 candidate nodes:

[0703] In the previous frame as the reference frame, find the node a (the first decoded node) that has the same (third angle parameter value) and point b (the second decoded node) of laserID, point b in the previous frame reference frame (the second reference frame) and points c, d, m and n encoded or decoded after point b are used as candidate points between frames.

[0704] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a Point b;

[0705] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point b Point c;

[0706] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point c point d;

[0707] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point d point m;

[0708] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point m Point n.

[0709] Point b in the previous reference frame and points c, d, m, and n encoded or decoded after point b are used as candidate points between frames;

[0710] In a possible implementation, a node a (first decoded node) having the same value as the node a that has been decoded before the current point is searched in the reference frame (first reference frame) of the previous frame that has undergone global motion. and point g (the second decoded node) of laserID, take point g in the previous frame after global motion as the reference frame and point e, point f, point o and point p encoded or decoded after point g as candidate points between frames.

[0711] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a point g;

[0712] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a point e;

[0713] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point e point f;

[0714] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point f Point o;

[0715] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point o Point p;

[0716] The point g in the previous frame that has undergone global motion is used as the reference frame, and the points e, f, o, and p that are encoded or decoded after point g are used as candidate points between frames.

[0717] At the same time, the inter-frame prediction points e, f, o, p Replace it with a local motion method.

[0718] Furthermore, the geometric position prediction residual information and quantization parameters of the prediction node are obtained through analysis, and the prediction residual is dequantized to restore the reconstructed geometric position information of each node, and finally the geometric reconstruction at the decoding end is completed.

[0719] Example 2 (6 points):

[0720] In a possible implementation, taking FIG. 24 as an example, at the encoding end, when performing inter-frame predictive coding on the current point to be coded, the encoding node a that has been previously encoded before the current point to be coded is traversed in the prediction tree;

[0721] In the previous frame as the reference frame, search for a point b with the same φ and laserID as the node a that has been encoded before the current point, and use the points c, d, m and n that are encoded or decoded after point b in the previous frame as candidate points between frames.

[0722] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Greater than point a Point c, and / or

[0723] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point c Point d, and / or

[0724] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point d point m, and / or,

[0725] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point m point n, and / or,

[0726] Points c, d, m, and n that are encoded or decoded after point b in the previous reference frame are used as candidate points between frames;

[0727] In a possible implementation, a node a that has been encoded before the current point is found in the previous frame that has been globally moved as a reference frame. and point g of laserID, and use the previous frame after global motion as the reference frame midpoint g, and the encoded or decoded points e and f as candidate points between frames.

[0728] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a Point g, and / or,

[0729] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a point e, and / or,

[0730] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point e The point f, and / or

[0731] The points e and f encoded or decoded after the global motion of the previous frame as the reference frame point g are used as candidate points between frames.

[0732] At the same time, the inter-frame prediction points e and f Replace it with a local motion method.

[0733] In this way, different prediction points (including several intra-frame candidate points and up to 6 inter-frame candidate points) are selected through RDO rate-distortion optimization, namely node c, node d, node e, node f, node m and node n.

[0734] Among them, there are requirements for the order of candidate prediction points, specifically:

[0735] The optimal inter-frame prediction point is selected by performing RDO rate-distortion optimization according to the order of nodes c, d, e, f, m, and n (this is the optimal order and can achieve the optimal performance, and other orders are also possible).

[0736] Furthermore, the parameters of a context model corresponding to selecting the inter-frame prediction mode c or d or m or n or b are selected, and the parameters of another context model corresponding to selecting the inter-frame prediction mode e or f are selected to perform entropy encoding / decoding of the residual coefficients.

[0737] After determining the prediction node, the geometric position information of the prediction node is predicted to obtain the prediction residual, and the geometric prediction residual is quantized using the quantization parameter. Finally, through continuous iteration, the prediction mode of the prediction tree node position information, the prediction residual, the prediction tree structure, and the quantization parameter are encoded to generate a binary bitstream.

[0738] In a possible implementation, at the decoding end, the decoding end reconstructs the prediction tree structure by continuously parsing the bitstream, and traverses the prediction tree for the decoded node a before the current point to be decoded;

[0739] First, decode the prediction mode;

[0740] Among them, there are requirements for the order of candidate prediction points, specifically:

[0741] According to the decoded prediction mode, inter-frame prediction points are selected in the order of nodes c, d, e, f, m, and n (this is the optimal order that can achieve the best performance, and other orders are also possible).

[0742] If the prediction mode is inter prediction mode, the decoded inter prediction mode can be used to determine the prediction point from the following up to 6 candidate nodes:

[0743] In one possible implementation, the previous frame is used as a reference frame to find a node a that has the same and point b of laserID, and take points c, d, m, and n encoded or decoded after point b in the previous reference frame as candidate points between frames.

[0744] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Greater than point a Point c;

[0745] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point c point d;

[0746] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point d point m;

[0747] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point m point n;

[0748] Points c, d, m, and n encoded or decoded after point b in the previous reference frame are used as candidate points between frames.

[0749] In a possible implementation, the previous frame that has been globally moved is used as a reference frame to find a node a that has the same value as the node a that has been decoded before the current point is decoded. and point g of laserID, and use the previous frame after global motion as the reference frame midpoint g, and the encoded or decoded points e and f as candidate points between frames.

[0750] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a point g;

[0751] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a point e;

[0752] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point e point f;

[0753] The points e and f encoded or decoded after the global motion of the previous frame as the reference frame point g are used as candidate points between frames.

[0754] At the same time, the inter-frame prediction points e and f Replace it with a local motion method.

[0755] Furthermore, the geometric position prediction residual information and quantization parameters of the prediction node are obtained through analysis, and the prediction residual is dequantized to restore the reconstructed geometric position information of each node, and finally the geometric reconstruction at the decoding end is completed.

[0756] The specific test results are shown in the following table. Table 1-1 shows the test results for a lossless geometry and lossless attributes, as provided by an embodiment of the present application; Table 1-2 shows the test results for a lossy geometry and lossy attributes, as provided by an embodiment of the present application. This demonstrates improved encoding and decoding performance.

[0757] Table 1-1

[0758] Table 1-2

[0759] Example 3 (8 points):

[0760] In a possible implementation, taking FIG. 23 as an example, at the encoding end, when performing inter-frame predictive coding on the current point to be coded, the encoding node a that has been previously encoded before the current point to be coded is traversed in the prediction tree;

[0761] In the previous frame as the reference frame, find the node a that has the same encoding as the previous node a that has been encoded before the current point. and point b of laserID, and take points c, d, m, and n encoded or decoded after point b in the previous reference frame as candidate points between frames.

[0762] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a point g;

[0763] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a point e;

[0764] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point e point f;

[0765] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point f Point o;

[0766] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point o Point p.

[0767] Points e, f, o, and p encoded or decoded after point g in the previous frame after global motion are used as candidate points between frames.

[0768] At the same time, the inter-frame prediction points e, f, o, p Replace it with a local motion method.

[0769] In this way, different prediction points (including several intra-frame candidate points and up to 8 inter-frame candidate points) are selected through RDO rate-distortion optimization, namely node c, node d, node e, node f, node m and node n.

[0770] Among them, there are requirements for the order of candidate prediction points, specifically:

[0771] Perform RDO rate-distortion optimization to select the optimal inter-frame prediction point in the order of nodes c, d, e, f, m, n, o, and p (this is the optimal order and can achieve the best performance, and other orders are also possible).

[0772] Furthermore, the entropy encoding / decoding of the residual coefficients is performed by selecting the parameters of a context model corresponding to the inter-frame prediction mode c or d or m or n or b, and selecting the parameters of another context model corresponding to the inter-frame prediction mode e or f or o or p.

[0773] After determining the prediction node, the geometric position information of the prediction node is predicted to obtain the prediction residual, and the geometric prediction residual is quantized using the quantization parameter. Finally, through continuous iteration, the prediction mode of the prediction tree node position information, the prediction residual, the prediction tree structure, and the quantization parameter are encoded to generate a binary bitstream.

[0774] In a possible implementation, at the decoding end, the decoding end reconstructs the prediction tree structure by continuously parsing the bitstream, and traverses the prediction tree for the decoded node a before the current point to be decoded;

[0775] First, decode the prediction mode;

[0776] Among them, there are requirements for the order of candidate prediction points, specifically:

[0777] According to the decoded prediction mode, inter-frame prediction points are selected in the order of nodes c, d, e, f, m, n, o, and p (this is the optimal order that can achieve the best performance, and other orders are also possible).

[0778] If the prediction mode is inter prediction mode, the decoded inter prediction mode can be used to determine the prediction point from the following up to 8 candidate nodes:

[0779] In one possible implementation, the previous frame is used as a reference frame to find a node a that has the same and point b of laserID, and take points c, d, m, and n encoded or decoded after point b in the previous reference frame as candidate points between frames.

[0780] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Greater than point a Point c,

[0781] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point c Point d,

[0782] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point d Point m,

[0783] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point m Point n,

[0784] Points c, d, m, and n encoded or decoded after point b in the previous reference frame are used as candidate points between frames.

[0785] In a possible implementation, the previous frame that has been globally moved is used as a reference frame to find a node a that has the same value as the node a that has been decoded before the current point is decoded. and point g of laserID, and use the previous frame after global motion as the reference frame midpoint g, and the encoded or decoded points e and f, o and p as candidate points between frames.

[0786] In one possible implementation, the previous frame is used as a reference frame to find the node a that has the same laser ID as the node a that has been encoded before the current point. Less than or equal to point a point g;

[0787] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point a point e;

[0788] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point e point f;

[0789] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point f Point o;

[0790] In the previous frame as the reference frame, find the node a that has the same laserID as the node a that has been encoded before the current point and the first point Greater than point o Point p.

[0791] Points e, f, o, and p that are encoded or decoded after point g in the previous frame undergoing global motion are used as candidate points between frames.

[0792] At the same time, the inter-frame prediction points e, f, o, p Replace it with a local motion method.

[0793] Furthermore, the geometric position prediction residual information and quantization parameters of the prediction node are obtained through analysis, and the prediction residual is dequantized to restore the reconstructed geometric position information of each node, and finally the geometric reconstruction at the decoding end is completed.

[0794] The specific test results are shown in the following table. Table 2-1 shows the test results for a lossless geometry and lossless attributes, as provided by an embodiment of the present application; Table 2-2 shows the test results for a lossy geometry and lossy attributes, as provided by an embodiment of the present application. This demonstrates improved encoding and decoding performance.

[0795] Table 2-1

[0796] Table 2-2

[0797] It can be seen that by introducing the prior information of local motion, the compression performance under lossy or lossless conditions can be significantly improved.

[0798] It should also be noted that, in the embodiment of the present application, the reference frame can be the previous frame or the previous K frames, where K is a positive integer; or, in the first reference frame or the second reference frame, the number of selected candidate nodes can continue to increase; or, every several candidate nodes can be averaged to form a new candidate node, which is not specifically limited here.

[0799] In the embodiments of the present application, the specific implementation of the aforementioned embodiments is elaborated in detail through the above embodiments. It can be seen that according to the technical solutions of the aforementioned embodiments, the prediction scheme between geometric prediction tree frames is improved here. The core is that when obtaining the inter-frame prediction point, the local motion information of the motion between the inter-frame points is calculated, and the prior local motion information is used to perform better inter-frame prediction on the current point to be encoded.

[0800] In one embodiment of the present application, a code stream is provided, wherein the code stream is generated by bit encoding according to information to be encoded; wherein the information to be encoded includes at least one of the following:

[0801] The geometric prediction residual value, quantization parameter, prediction node index value, first identification information and second identification information of the node to be encoded;

[0802] The first identification information is used to indicate whether the node to be encoded uses an inter-frame prediction mode, and the second identification information is used to indicate whether the node to be encoded enables a local motion processing mode.

[0803] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see FIG25 , which shows a schematic diagram of the structure of a decoder provided by the embodiment of the present application. As shown in FIG25 , the decoder 20 includes a decoding unit 21, a first determination unit 22 and a first local motion processing unit 23; wherein,

[0804] The decoding unit 21 is configured to parse the code stream to determine the predicted node index value corresponding to the node to be decoded; and determine the first decoded node before the node to be decoded in the current frame;

[0805] The first determining unit 22 is configured to determine a predicted node according to the predicted node index value and the first decoded node;

[0806] The first local motion processing unit 23 is configured to perform local motion processing on the first angle parameter value of the prediction node based on the first decoded node to determine the second angle parameter value of the prediction node;

[0807] The first determination unit 22 is further configured to determine the geometric parameters of the predicted node based on the first angle parameter value or the second angle parameter value; and determine the geometric prediction value of the node to be decoded based on the geometric parameters.

[0808] In some embodiments of the present application, the first local motion processing unit 23 is further configured to determine the local motion information based on the fourth angle parameter value of the second decoded node and the first angle parameter value of the predicted node, when the predicted node index value represents that the predicted node is a preset node; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node; the second decoded node is determined based on the first decoded node in the reference frame where the predicted node is located; and the second angle parameter value of the predicted node is determined based on the local motion information.

[0809] In some embodiments of the present application, the reference frame where the prediction node is located includes: a first reference frame and a second reference frame; the first reference frame is at least one frame obtained by performing global motion on the second reference frame; the second reference frame is a decoded frame of the previous K frames of the current frame, where K is an integer greater than 0.

[0810] In some embodiments of the present application, the preset node is at least one decoded node in the first reference frame except the second decoded node.

[0811] In some embodiments of the present application, the first local motion processing unit 23 is further configured to determine a difference value between the fourth angle parameter value of the second decoded node and the first angle parameter value of the predicted node as the local motion information.

[0812] In some embodiments of the present application, the first local motion processing unit 23 is further configured to determine the rotation angular velocity of the laser radar corresponding to the node to be decoded; and determine the second angle parameter value based on the local motion information, the third angle parameter value and the rotation angular velocity.

[0813] In some embodiments of the present application, the first local motion processing unit 23 is further configured to determine a first intermediate value based on the ratio of the local motion information to the rotation angular velocity; perform a rounding operation on the first intermediate value to obtain a second intermediate value; multiply the second intermediate value by the rotation angular velocity to obtain a third intermediate value; and add the third intermediate value to the third angle parameter value to obtain the second angle parameter value.

[0814] In some embodiments of the present application, the first local motion processing unit 23 is further configured to determine the second angle parameter value of the prediction node based on the local motion information if the local motion information is greater than or equal to a first preset threshold, or the difference value is less than or equal to a second preset threshold; the first preset threshold is greater than the second preset threshold.

[0815] In some embodiments of the present application, the first local motion processing unit 23 is further configured to determine the first angle parameter value as the second angle parameter value if the local motion information is less than a first preset threshold and the local motion information is greater than a second preset threshold; the first preset threshold is greater than the second preset threshold.

[0816] In some embodiments of the present application, the first preset threshold is Q times the rotation angular velocity, where Q is a positive number; and the second preset threshold is negative Q times the rotation angular velocity.

[0817] In some embodiments of the present application, the first determining unit 22 is further configured to use the first angle parameter value of the predicted node as the second angle parameter value when the predicted node index value indicates that the predicted node is not a preset node.

[0818] In some embodiments of the present application, the first determination unit 22 is further configured to determine, based on the first decoded node, a second decoded node in a reference frame where the predicted node represented by the predicted node index value is located; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index; based on the second decoded node, determine the predicted node, the first angle parameter value of the predicted node is greater than the fourth angle parameter value of the second decoded node, and the predicted node and the second decoded node have the same radar index.

[0819] In some embodiments of the present application, the first determination unit 22 is further configured to use the fourth angle parameter value corresponding to the second decoded node as the first angle parameter value of the predicted node; or, in the reference frame where the predicted node is located, determine at least one next decoded node based on the second decoded node and the predicted node index value, the at least one next decoded node including the predicted node; the next angle parameter value of the next decoded node is greater than and closest to the previous angle parameter value of its previous decoded node; the at least one next decoded node has the same radar index as the second decoded node.

[0820] In some embodiments of the present application, the first determination unit 22 is further configured to determine, based on the first decoded node, a second decoded node in a reference frame where the predicted node represented by the predicted node index value is located; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index; the fourth angle parameter value corresponding to the second decoded node is used as the first angle parameter value of the predicted node; or, among the decoded nodes after the second decoded node, the predicted node is determined in the order of the prediction tree.

[0821] In some embodiments of the present application, the first determination unit 22 is further configured to determine the depth information of the predicted node, the radar index value of the predicted node, and the first angle parameter value as the geometric prediction value of the node to be decoded; or, to determine the depth information of the predicted node, the radar index value of the predicted node, and the second angle parameter value as the geometric prediction value of the node to be decoded.

[0822] In some embodiments of the present application, the first determination unit 22 is further configured to parse the code stream to determine the geometric residual information and quantization parameters of the node to be decoded; based on the quantization parameters, perform inverse quantization processing on the geometric residual information to determine the geometric prediction residual; based on the geometric prediction residual and the geometric prediction value, determine the reconstructed geometric parameters of the node to be decoded.

[0823] In some embodiments of the present application, the first determination unit 22 is further configured to determine the context model of the node to be decoded based on the predicted node index value; and use the context model to decode the geometric residual information of the node to be decoded to obtain the geometric residual information.

[0824] In some embodiments of the present application, the first determination unit 22 is further configured to parse the code stream and determine first identification information; when the first identification information indicates that the node to be decoded uses the inter-frame prediction mode, perform the step of determining the predicted node based on the node index value and the first decoded node.

[0825] In some embodiments of the present application, the first determination unit 22 is further configured to, if the first identification information is a first value, determine that the first identification information indicates that the node to be decoded does not use the inter-frame prediction mode; if the first identification information is a second value, determine that the first identification information indicates that the node to be decoded uses the inter-frame prediction mode.

[0826] In some embodiments of the present application, the first determination unit 22 is further configured to parse the code stream and determine second identification information; when the second identification information indicates that the node to be decoded enables local motion processing, perform local motion processing on the first angle parameter value of the predicted node based on the first decoded node to determine the second angle parameter value of the predicted node.

[0827] In some embodiments of the present application, the first determination unit 22 is further configured to, if the second identification information is a first value, determine that the second identification information indicates that the node to be decoded does not enable the local motion processing mode; if the second identification information is a second value, determine that the second identification information indicates that the node to be decoded enables the local motion processing mode.

[0828] In some embodiments of the present application, the first determining unit 22 is further configured to determine a previous decoded node of the node to be decoded based on a decoding order of the prediction tree, and use the previous decoded node as the first decoded node.

[0829] It is understandable that in the embodiments of the present application, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the various components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional modules.

[0830] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0831] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the decoder 20. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the method described in any one of the aforementioned embodiments.

[0832] Based on the composition of the above-mentioned decoder 20 and the computer-readable storage medium, refer to Figure 26, which shows a specific hardware structure diagram of the decoder 20 provided in an embodiment of the present application. As shown in Figure 26, the decoder 20 may include: a first communication interface 24, a first memory 25 and a first processor 26; each component is coupled together through a first bus system 27. It can be understood that the first bus system 27 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 27 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the first bus system 27 in Figure 26. Among them,

[0833] The first communication interface 24 is used to receive and send signals during the process of sending and receiving information with other external network elements;

[0834] A first memory 25 for storing computer programs that can be run on the first processor 26;

[0835] The first processor 26 is configured to, when running the computer program, execute:

[0836] Parse the code stream to determine the predicted node index value corresponding to the node to be decoded;

[0837] Determine a first decoded node preceding the node to be decoded in the current frame;

[0838] Determining a prediction node according to the prediction node index value and the first decoded node;

[0839] Based on the first decoded node, performing local motion processing on the first angle parameter value of the prediction node to determine a second angle parameter value of the prediction node;

[0840] determining a geometric parameter of the prediction node based on the first angle parameter value or the second angle parameter value;

[0841] Based on the geometric parameters, a geometric prediction value of the node to be decoded is determined.

[0842] It is understood that the first memory 25 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The first memory 25 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0843] The first processor 26 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the first processor 26. The above-mentioned first processor 26 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 25. The first processor 26 reads the information in the first memory 25 and, in conjunction with its hardware, completes the steps of the above method.

[0844] It is to be understood that these embodiments described in the present application can be implemented with hardware, software, firmware, middleware, microcode or its combination.For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing functions described in the present application or its combination.For software implementation, the technology described in the present application can be realized by the module (such as process, function etc.) that performs functions described in the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0845] Optionally, as another embodiment, the first processor 26 is further configured to execute the method described in any one of the aforementioned embodiments when running the computer program.

[0846] This embodiment provides a decoder, in which the prediction nodes used for inter-frame prediction are mainly optimized. Specifically, local motion processing is performed on the angle parameter values ​​of the prediction nodes, so that the inter-frame prediction can better predict the decoding nodes, thereby improving the accuracy of the inter-frame prediction, improving the encoding efficiency of the geometric information, and further improving the encoding and decoding performance of the point cloud.

[0847] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see FIG27 , which shows a schematic diagram of the structure of an encoder provided by the embodiment of the present application. As shown in FIG27 , the encoder 30 may include: a second determination unit 31, a second local motion processing unit 32 and a prediction unit 33; wherein,

[0848] The second determining unit 31 is configured to determine a first coded node preceding the node to be coded in the current frame; and determine a first candidate node having at least one same geometric parameter as the first coded node in the reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node;

[0849] The second local motion processing unit 32 is configured to perform local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain the updated at least one second candidate node;

[0850] The prediction unit 33 is configured to determine a geometric prediction value of the node to be encoded based on the first candidate node and at least one updated second candidate node.

[0851] In some embodiments of the present application, the fourth angle parameter value of the first candidate node is less than or equal to and closest to the third angle parameter value of the first encoded node.

[0852] In some embodiments of the present application, the second local motion processing unit 32 is further configured to determine the local motion information of each third candidate node based on the fourth angle parameter value of the first candidate node and the fifth angle parameter value of at least one third candidate node that matches the preset node in the at least one second candidate node; based on the local motion information, update the fifth angle parameter value of the corresponding third candidate node to determine the updated fifth angle parameter value of the at least one third candidate node, thereby determining the updated at least one third candidate node; and use the updated at least one third candidate node and the candidate nodes in the at least one second candidate node other than the at least one third candidate node as the updated at least one second candidate node.

[0853] In some embodiments of the present application, the reference frame includes: a first reference frame and a second reference frame; the first reference frame is at least one frame obtained by performing global motion on the second reference frame; the second reference frame is an encoded frame of the previous K frames of the current frame, where K is an integer greater than 0.

[0854] In some embodiments of the present application, the preset node is at least one candidate node other than the first candidate node in the first reference frame.

[0855] In some embodiments of the present application, the second local motion processing unit 32 is further configured to determine at least one third candidate node that matches the preset node from the at least one second candidate node; and determine the difference between the fourth angle parameter value of the first candidate node and the fifth angle parameter value of each of the third candidate nodes as the local motion information of each third candidate node.

[0856] In some embodiments of the present application, the second local motion processing unit 32 is further configured to determine the rotation angular velocity of the laser radar corresponding to the node to be encoded; based on the local motion information, the third angle parameter value and the rotation angular velocity of each third candidate node, determine the updated fifth angle parameter value of the at least one third candidate node.

[0857] In some embodiments of the present application, the second local motion processing unit 32 is further configured to determine the first intermediate value of each third candidate node based on the ratio of the local motion information of each third candidate node to the rotation angular velocity; perform rounding operation on the first intermediate value of each third candidate node to obtain the second intermediate value of each third candidate node; multiply the second intermediate value of each third candidate node by the rotation angular velocity to obtain the third intermediate value of each third candidate node; and add the third intermediate value of each third candidate node to the third angle parameter value to obtain the updated fifth angle parameter value of each third candidate node.

[0858] In some embodiments of the present application, the second local motion processing unit 32 is further configured to update the fifth angle parameter value of any third candidate node based on the local motion information of any third candidate node if the local motion information of any third candidate node is greater than or equal to a first preset threshold, or the difference value is less than or equal to a second preset threshold, and determine the updated fifth angle parameter value of any third candidate node; the first preset threshold is greater than the second preset threshold.

[0859] In some embodiments of the present application, the second local motion processing unit 32 is further configured to not update the fifth angle parameter value of any third candidate node if the local motion information of any third candidate node is less than a first preset threshold and the local motion information is greater than a second preset threshold; the first preset threshold is greater than the second preset threshold.

[0860] In some embodiments of the present application, the first preset threshold is Q times the rotation angular velocity, where Q is a positive number; and the second preset threshold is negative Q times the rotation angular velocity.

[0861] In some embodiments of the present application, the first candidate node includes a first reference node and a second reference node; the second candidate node includes a third reference node and a fourth reference node; the first reference node and the third reference node belong to a first reference frame; the second reference node and the fourth reference node belong to a second reference frame.

[0862] In some embodiments of the present application, the second determination unit 31 is further configured to determine the first reference node having the same radar index as the first encoded node in the second reference frame; determine at least one third reference node in the first reference frame based on the first reference node; determine the second reference node having the same radar index as the first encoded node in the first reference frame; and determine at least one fourth reference node in the second reference frame based on the second reference candidate node.

[0863] In some embodiments of the present application, the fourth angle parameter value of the first reference node is less than or equal to and closest to the third angle parameter value of the first encoded node; the sixth angle parameter value of the at least one third reference node is greater than the fourth angle parameter value of the first reference node, and the at least one third reference node has the same radar index as the first reference node; the fourth angle parameter value of the second reference node is less than or equal to and closest to the third angle parameter value of the first encoded node; the seventh angle parameter value of the at least one fourth reference node is greater than the fourth angle parameter value of the second reference node, and the at least one fourth reference node has the same radar index as the second reference node.

[0864] In some embodiments of the present application, the second determination unit 31 is further configured to determine, in the first reference frame, at least one third reference node that is sequentially encoded after the first reference node according to the order of the prediction tree.

[0865] In some embodiments of the present application, the second determination unit 31 is further configured to determine, in the second reference frame, at least one fourth reference node that is sequentially encoded after the second reference node according to the order of the prediction tree.

[0866] In some embodiments of the present application, the second local motion processing unit 32 is further configured to determine the local motion information of each third candidate node based on the fourth angle parameter value of the first reference node and the fifth angle parameter value of at least one third candidate node that matches the preset node in the at least one third reference node; update the fifth angle parameter value of the corresponding third candidate node based on the local motion information, determine the updated fifth angle parameter value of the at least one third candidate node, and thus determine the updated at least one third candidate node; use the updated at least one third candidate node and the candidate nodes in the at least one third reference node other than the at least one third candidate node as the updated at least one third reference node; use the updated at least one third reference node and the at least one fourth reference node as the updated at least one second candidate node.

[0867] In some embodiments of the present application, the at least one third reference node, the updated at least one fourth reference node, the second reference node and the first reference node have a preset order.

[0868] In some embodiments of the present application, the prediction unit 33 is further configured to perform cost calculations on the first candidate node and each of the updated second candidate nodes, respectively, to obtain multiple rate-distortion cost results; determine the candidate node corresponding to the minimum rate-distortion cost among the multiple rate-distortion cost results as the predicted node; and determine the geometric prediction value of the node to be encoded based on the predicted node.

[0869] In some embodiments of the present application, the second determining unit 31 is further configured to determine a predicted node index value corresponding to the node to be encoded in a preset order; encode the predicted node index value, and write the obtained encoded bits into the bitstream.

[0870] In some embodiments of the present application, the second determination unit 31 is further configured to determine the geometric residual information of the node to be encoded based on the geometric prediction value of the node to be encoded; encode the geometric residual information of the node to be encoded, and write the obtained encoded bits into the bitstream.

[0871] In some embodiments of the present application, the second determination unit 31 is further configured to determine the initial residual value of the node to be encoded based on the geometric prediction value of the node to be encoded; and quantize the initial residual value of the node to be encoded according to the quantization parameter to obtain the geometric residual information of the node to be encoded.

[0872] In some embodiments of the present application, the prediction unit 33 is further configured to determine the original value of the node to be encoded; and determine the initial residual value of the node to be encoded by performing a subtraction operation between the original value of the node to be encoded and the geometric prediction value of the node to be encoded.

[0873] In some embodiments of the present application, the prediction unit 33 is further configured to encode the quantization parameter and write the obtained encoded bits into the bitstream.

[0874] In some embodiments of the present application, the second determination unit 31 is further configured to determine a prediction mode of the node to be encoded, and generate first identification information based on the prediction mode; the first identification information indicates whether the node to be encoded uses an inter-frame prediction mode; when the prediction mode is an inter-frame prediction mode, the step of determining the first encoded node in the previous one of the node to be encoded in the current frame is performed.

[0875] In some embodiments of the present application, the second determination unit 31 is further configured to determine that the value of the first identification information is a first value if the first identification information indicates that the node to be encoded does not use the inter-frame prediction mode; if the first identification information indicates that the node to be encoded uses the inter-frame prediction mode, determine that the value of the first identification information is a second value.

[0876] In some embodiments of the present application, the second determining unit 31 is further configured to encode the first identification information and write the obtained encoded bits into the bitstream.

[0877] In some embodiments of the present application, the second determination unit 31 is further configured to determine whether the local motion processing mode is enabled and generate second identification information; the second identification information indicates whether the local motion processing mode is enabled for the node to be encoded; when it is determined that the local motion processing mode is enabled for the node to be encoded, the step of determining the first encoded node in the previous one of the node to be encoded in the current frame is performed.

[0878] In some embodiments of the present application, the second determination unit 31 is further configured to determine that the value of the second identification information is a first value if the second identification information indicates that the node to be encoded does not enable the local motion processing mode; if the second identification information indicates that the node to be encoded enables the local motion processing mode, determine that the value of the second identification information is a second value.

[0879] In some embodiments of the present application, the second determining unit 31 is further configured to encode the second identification information and write the obtained encoded bits into the bitstream.

[0880] In some embodiments of the present application, the second determining unit 31 is further configured to determine a previous coded node of the node to be coded based on a coding order of the prediction tree, and use the previous coded node as the first coded node.

[0881] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.

[0882] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this embodiment provides a computer-readable storage medium, which is applied to the encoder 30 and stores a computer program. When the computer program is executed by the second processor, it implements any of the methods in the aforementioned embodiments.

[0883] Based on the composition of the above-mentioned encoder 30 and the computer-readable storage medium, refer to Figure 28, which shows a specific hardware structure diagram of the encoder 30 provided in an embodiment of the present application. As shown in Figure 28, the encoder 30 may include: a second communication interface 34, a second memory 35 and a second processor 36; each component is coupled together through a second bus system 37. It can be understood that the second bus system 37 is used to realize the connection and communication between these components. In addition to the data bus, the second bus system 37 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as the second bus system 37 in Figure 28. Among them,

[0884] The second communication interface 34 is used for receiving and sending signals during the process of sending and receiving information with other external network elements;

[0885] The second memory 35 is used to store computer programs that can be run on the second processor 3003;

[0886] The second processor 36 is configured to, when running the computer program, execute:

[0887] Determine a first coded node preceding the node to be coded in the current frame;

[0888] Determine a first candidate node having at least one geometric parameter identical to that of the first encoded node in a reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node;

[0889] performing local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node;

[0890] Based on the first candidate node and at least one updated second candidate node, a geometric prediction value of the node to be encoded is determined.

[0891] Optionally, as another embodiment, the second processor 36 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.

[0892] It can be understood that the hardware functions of the second memory 35 and the first memory 25 are similar, and the hardware functions of the second processor 36 and the first processor 26 are similar; they will not be described in detail here.

[0893] This embodiment provides an encoder, in which the candidate nodes used for inter-frame prediction are mainly optimized. Specifically, local motion processing is performed on the angle parameter values ​​of the candidate nodes, so that the inter-frame prediction can better predict the coding nodes, thereby improving the accuracy of the inter-frame prediction, improving the coding efficiency of the geometric information, and further improving the encoding and decoding performance of the point cloud.

[0894] In yet another embodiment of the present application, referring to FIG29 , a schematic diagram of the structure of a coding and decoding system provided by an embodiment of the present application is shown. As shown in FIG29 , the coding and decoding system 40 may include an encoder 30 and a decoder 20 .

[0895] In the embodiment of the present application, the encoder 30 may be the encoder described in any one of the aforementioned embodiments, and the decoder 20 may be the decoder described in any one of the aforementioned embodiments.

[0896] It should be noted that, in this application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0897] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0898] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0899] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0900] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0901] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims. Industrial Applicability

[0902] In an embodiment of the present application, at the decoding end, the code stream is first parsed to determine the predicted node index value corresponding to the node to be decoded; then, the first decoded node preceding the node to be decoded in the current frame is determined; then, the predicted node is determined based on the predicted node index value and the first decoded node; then, based on the first decoded node, the first angle parameter value of the predicted node is subjected to local motion processing to determine the second angle parameter value of the predicted node; finally, based on the first angle parameter value or the second angle parameter value, the geometric parameters of the predicted node are determined; based on the geometric parameters, the geometric prediction value of the node to be decoded is determined. At the encoding end, the first encoded node preceding the node to be encoded in the current frame is first determined; then, a first candidate node having at least one geometric parameter identical to the first encoded node in the reference frame is determined, and at least one second candidate node is determined in the reference frame based on the first candidate node; then, the angle parameter value of at least one candidate node of the at least one second candidate node is subjected to local motion processing to obtain at least one updated second candidate node; finally, the geometric prediction value of the node to be encoded is determined based on the first candidate node and the at least one updated second candidate node. In this way, the technical solution of this application is mainly aimed at optimizing the candidate nodes used for inter-frame prediction. Compared with the related technologies, the angle parameter values ​​of the candidate nodes are locally motion processed here, so that the inter-frame prediction can better predict the decoding nodes, thereby improving the accuracy of the inter-frame prediction, improving the encoding and decoding efficiency of the geometric information, and thus improving the encoding and decoding performance of the point cloud.

Claims

1. A decoding method, applied to a decoder, the method include: Parse the bitstream and determine the predicted node index value corresponding to the node to be decoded; Determine a first decoded node before the node to be decoded in the current frame; Determine a prediction node according to the prediction node index value and the first decoded node; Based on the first decoded node, performing local motion processing on the first angle parameter value of the prediction node to determine the second angle parameter value of the prediction node; Determining a geometric parameter of the prediction node based on the first angle parameter value or the second angle parameter value; Based on the geometric parameters, a geometric prediction value of the node to be decoded is determined.

2. The method according to claim 1, in, The performing local motion processing on the first angle parameter value of the prediction node based on the first decoded node to determine the second angle parameter value of the prediction node includes: In the case where the predicted node index value represents that the predicted node is a preset node, local motion information is determined based on the fourth angle parameter value of the second decoded node and the first angle parameter value of the predicted node; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node; the second decoded node is determined based on the first decoded node in the reference frame where the predicted node is located; Based on the local motion information, the second angle parameter value of the prediction node is determined.

3. The method according to claim 2, in, The reference frame where the prediction node is located includes: a first reference frame and a second reference frame; The first reference frame is at least one frame obtained by performing global motion on the second reference frame; The second reference frame is a decoded frame that is K frames before the current frame, where K is an integer greater than 0.

4. The method according to claim 2 or 3, in, The preset node is at least one decoded node in the first reference frame except the second decoded node.

5. The method according to any one of claims 2 to 4, in, The determining of the local motion information based on the acquired fourth angle parameter value of the second decoded node and the first angle parameter value of the predicted node comprises: A difference value between the fourth angle parameter value of the second decoded node and the first angle parameter value of the predicted node is determined as the local motion information.

6. The method according to any one of claims 2 to 5, in, The determining the second angle parameter value of the prediction node based on the local motion information includes: Determine the rotation angular velocity of the laser radar corresponding to the node to be decoded; The second angle parameter value is determined based on the local motion information, the third angle parameter value and the rotation angular velocity.

7. The method according to claim 6, in, The determining the second angle parameter value based on the local motion information, the third angle parameter value and the rotation angular velocity comprises: Determining a first intermediate value based on a ratio of the local motion information to the rotation angular velocity; performing a rounding operation on the first intermediate value to obtain a second intermediate value; multiplying the second intermediate value by the rotation angular velocity to obtain a third intermediate value; The third intermediate value and the third angle parameter value are added to obtain the second angle parameter value.

8. The method according to any one of claims 2 to 7, in, The determining the second angle parameter value of the prediction node based on the local motion information includes: If the local motion information is greater than or equal to a first preset threshold, or the local motion information is less than or equal to a second preset threshold, the second angle parameter value of the prediction node is determined based on the local motion information; the first preset threshold is greater than the second preset threshold.

9. The method according to any one of claims 2 to 7, in, The method further comprises: If the local motion information is less than a first preset threshold and the local motion information is greater than a second preset threshold, the first angle parameter value is determined as the second angle parameter value; and the first preset threshold is greater than the second preset threshold.

10. The method according to claim 8 or 9, in, The first preset threshold is Q times the rotation angular velocity, where Q is a positive number; The second preset threshold is negative Q times the rotation angular velocity.

11. The method according to claim 1, in, The method further comprises: The predicted node index value represents that when the predicted node is not a preset node, the first angle parameter value of the predicted node is used as the second angle parameter value.

12. The method according to any one of claims 1 to 11, in, The step of determining a prediction node according to the prediction node index value and the first decoded node includes: According to the first decoded node, in a reference frame where the predicted node represented by the predicted node index value is located, a second decoded node is determined; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node, and the second decoded node has the same radar index as the first decoded node; Based on the second decoded node, the predicted node is determined, a first angle parameter value of the predicted node is greater than a fourth angle parameter value of the second decoded node, and the predicted node has the same radar index as the second decoded node.

13. The method according to claim 12, in, The determining the predicted node based on the second decoded node comprises: using the fourth angle parameter value corresponding to the second decoded node as the first angle parameter value of the predicted node; or, In the reference frame where the predicted node is located, based on the second decoded node and the predicted node index value, at least one next decoded node is determined, the at least one next decoded node including the predicted node; a next angle parameter value of the next decoded node is greater than and closest to a previous angle parameter value of its previous decoded node; and the at least one next decoded node has the same radar index as the second decoded node.

14. The method according to any one of claims 1 to 11, in, The step of determining a prediction node according to the prediction node index value and the first decoded node includes: According to the first decoded node, in a reference frame where the predicted node represented by the predicted node index value is located, a second decoded node is determined; the fourth angle parameter value of the second decoded node is less than or equal to and closest to the third angle parameter value of the first decoded node, and the second decoded node has the same radar index as the first decoded node; using the fourth angle parameter value corresponding to the second decoded node as the first angle parameter value of the predicted node; or, The predicted node is determined in the decoded nodes after the second decoded node according to the order of the prediction tree.

15. The method according to any one of claims 1 to 14, in, The determining the geometric parameter of the prediction node based on the first angle parameter value or the second angle parameter value includes: Determine the depth information of the prediction node, the radar index value of the prediction node, and the first angle parameter value as the geometric parameter of the prediction node; or, The depth information of the prediction node, the radar index value of the prediction node, and the second angle parameter value are determined as the geometric parameters of the prediction node.

16. The method according to claim 15, in, The method further comprises: Parsing the bitstream to determine the geometric residual information and quantization parameter of the node to be decoded; Based on the quantization parameter, performing inverse quantization processing on the geometric residual information to determine a geometric prediction residual; Based on the geometric prediction residual and the geometric prediction value, a reconstructed geometric parameter of the node to be decoded is determined.

17. The method according to claim 16, in, Determining the geometric residual information of the node to be decoded includes: Determining a context model of the node to be decoded according to the predicted node index value; The context model is used to decode the geometric residual information of the node to be decoded to obtain the geometric residual information.

18. The method according to any one of claims 1 to 17, in, Parsing the code stream to determine the first identification information; When the first identification information indicates that the node to be decoded uses an inter-frame prediction mode, a step of determining a prediction node according to the node index value and the first decoded node is performed.

19. The method according to claim 18, in, If the first identification information is a first value, determining that the first identification information indicates that the node to be decoded does not use an inter-frame prediction mode; If the first identification information is the second value, it is determined that the first identification information indicates that the node to be decoded uses an inter-frame prediction mode.

20. The method according to any one of claims 1 to 19, in, The method further comprises: Parsing the code stream to determine the second identification information; When the second identification information indicates that the node to be decoded enables local motion processing, a step is performed to perform local motion processing on the first angle parameter value of the predicted node based on the first decoded node to determine the second angle parameter value of the predicted node.

21. The method according to claim 20, in, The method further comprises: If the second identification information is the first value, determining that the second identification information indicates that the node to be decoded does not enable a local motion processing mode; If the second identification information is a second value, it is determined that the second identification information indicates that the to-be-decoded node enables a local motion processing mode.

22. The method according to any one of claims 1 to 21, in, The determining a first decoded node before the node to be decoded in the current frame includes: Based on the decoding order of the prediction tree, a previous decoded node of the node to be decoded is determined, and the previous decoded node is used as the first decoded node.

23. A coding method, applied to an encoder, the method include: Determine a first encoded node preceding a node to be encoded in a current frame; Determine a first candidate node having at least one geometric parameter identical to that of the first encoded node in a reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node; Performing local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node; Based on the first candidate node and at least one updated second candidate node, a geometric prediction value of the node to be encoded is determined.

24. The method according to claim 23, in, The fourth angle parameter value of the first candidate node is less than or equal to and closest to the third angle parameter value of the first encoded node.

25. The method according to claim 23, in, The performing local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain the updated at least one second candidate node includes: Determine local motion information of each third candidate node based on the fourth angle parameter value of the first candidate node and the fifth angle parameter value of at least one third candidate node among the at least one second candidate node that matches the preset node; Based on the local motion information, updating the fifth angle parameter value of the corresponding third candidate node, determining the updated fifth angle parameter value of the at least one third candidate node, thereby determining the updated at least one third candidate node; The at least one updated third candidate node and the at least one second candidate node, except the at least one third candidate node, are used as the at least one updated second candidate node.

26. A method according to any one of claims 23 to 25, in, The reference frame includes: a first reference frame and a second reference frame; The first reference frame is at least one frame obtained by performing global motion on the second reference frame; The second reference frame is an encoded frame that is K frames before the current frame, where K is an integer greater than 0.

27. The method according to claim 25, in, The preset node is at least one candidate node in the first reference frame except the first candidate node.

28. The method according to claim 25 or 27, in, The determining, based on the fourth angle parameter value of the first candidate node and the fifth angle parameter value of at least one third candidate node among the at least one second candidate node that matches the preset node, the local motion information of each third candidate node comprises: Determine, from the at least one second candidate node, at least one third candidate node that matches the preset node; The difference between the fourth angle parameter value of the first candidate node and the fifth angle parameter value of each of the third candidate nodes is respectively determined as the local motion information of each of the third candidate nodes.

29. The method according to any one of claims 25, 27 or 28, in, The updating of the fifth angle parameter value of the corresponding third candidate node based on the local motion information to determine the updated fifth angle parameter value of the at least one third candidate node includes: Determine the rotation angular velocity of the laser radar corresponding to the node to be encoded; The updated fifth angle parameter value of the at least one third candidate node is determined based on the local motion information, the third angle parameter value and the rotation angular velocity of each third candidate node.

30. The method according to claim 29, in, The step of determining the updated fifth angle parameter value of the at least one third candidate node based on the local motion information, the third angle parameter value, and the rotation angular velocity of each third candidate node comprises: Determine a first intermediate value of each third candidate node based on a ratio of the local motion information of each third candidate node to the rotation angular velocity; Performing a rounding operation on the first intermediate value of each third candidate node to obtain a second intermediate value of each third candidate node; The second intermediate value of each third candidate node is multiplied by the rotation angular velocity to obtain the third value of each third candidate node. median value; The third intermediate value of each third candidate node is added to the third angle parameter value to obtain the updated fifth angle parameter value of each third candidate node.

31. The method according to claim 29, in, The step of determining the updated fifth angle parameter value of the at least one third candidate node based on the local motion information, the third angle parameter value, and the rotation angular velocity of each third candidate node includes: If the local motion information of any third candidate node is greater than or equal to a first preset threshold, or the local motion information is less than or equal to a second preset threshold, the fifth angle parameter value of any third candidate node is updated based on the local motion information of any third candidate node to determine the updated fifth angle parameter value of any third candidate node; the first preset threshold is greater than the second preset threshold.

32. The method according to claim 29, in, The method further comprises: If the local motion information of any third candidate node is less than the first preset threshold and the local motion information is greater than the second preset threshold, the fifth angle parameter value of any third candidate node is not updated; the first preset threshold is greater than the second preset threshold.

33. The method according to claim 31 or 32, in, The first preset threshold is Q times the rotation angular velocity, where Q is a positive number; The second preset threshold is negative Q times the rotation angular velocity.

34. A method according to any one of claims 23 to 33, in, The first candidate node includes a first reference node and a second reference node; the second candidate node includes a third reference node and a fourth reference node; the first reference node and the third reference node belong to a first reference frame; The second reference node and the fourth reference node belong to a second reference frame; The determining at least one second candidate node in the reference frame according to the first candidate node comprises: determining the first reference node having the same radar index as the first encoded node in the first reference frame; determining at least one third reference node in the first reference frame according to the first reference node; determining the second reference node having the same radar index as the first encoded node in the second reference frame; At least one fourth reference node is determined in the second reference frame according to the second reference candidate node.

35. The method according to claim 34, in, The fourth angle parameter value of the first reference node is less than or equal to and closest to the third angle parameter value of the first encoded node; The sixth angle parameter value of the at least one third reference node is greater than the fourth angle parameter value of the first reference node, and the at least one third reference node has the same radar index as the first reference node; The fourth angle parameter value of the second reference node is less than or equal to and closest to the third angle parameter value of the first encoded node; The seventh angle parameter value of the at least one fourth reference node is greater than the fourth angle parameter value of the second reference node, and the at least one fourth reference node has the same radar index as the second reference node.

36. The method according to claim 34, in, The determining at least one third reference node in the first reference frame according to the first reference node comprises: In the first reference frame, at least one third reference node that is sequentially encoded after the first reference node is determined according to the order of the prediction tree.

37. The method according to claim 34 or 36, in, The determining at least one fourth reference node in the second reference frame according to the second reference candidate node includes: In the second reference frame, at least one fourth reference node that is sequentially encoded after the second reference node is determined according to the order of the prediction tree.

38. A method according to any one of claims 34 to 37, in, The performing local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain the updated at least one second candidate node includes: Determine local motion information of each third candidate node based on the fourth angle parameter value of the first reference node and the fifth angle parameter value of at least one third candidate node among the at least one third reference node that matches the preset node; Based on the local motion information, updating the fifth angle parameter value of the corresponding third candidate node, determining the updated fifth angle parameter value of the at least one third candidate node, thereby determining the updated at least one third candidate node; using the updated at least one third candidate node and the candidate node other than the at least one third candidate node among the at least one third reference node as the updated at least one third reference node; The updated at least one third reference node and the at least one fourth reference node are used as the updated at least one second candidate node. Select a node.

39. The method according to claim 38, in, The at least one third reference node, the updated at least one fourth reference node, the second reference node, and the first reference node have a preset order.

40. The method according to claim 23, in, The determining, based on the first candidate node and the at least one updated second candidate node, a geometric prediction value of the node to be encoded, comprises: Performing cost calculations on the first candidate node and each of the updated second candidate nodes respectively to obtain multiple rate-distortion cost results; Determine a candidate node corresponding to a minimum rate-distortion cost among the multiple rate-distortion cost results as a prediction node; Based on the prediction node, a geometric prediction value of the node to be encoded is determined.

41. The method according to claim 23, in, The method further comprises: Determining a predicted node index value corresponding to the node to be encoded in a preset order; The predicted node index value is encoded, and the obtained encoding bits are written into a bit stream.

42. The method according to claim 23, in, The method further comprises: Determining geometric residual information of the node to be encoded according to the geometric prediction value of the node to be encoded; The geometric residual information of the node to be encoded is encoded, and the obtained encoding bits are written into a bit stream.

43. The method according to claim 42, in, The step of determining the geometric residual information of the node to be encoded according to the geometric prediction value of the node to be encoded includes: Determining an initial residual value of the node to be encoded according to the geometric prediction value of the node to be encoded; The initial residual value of the node to be encoded is quantized according to the quantization parameter to obtain the geometric residual information of the node to be encoded.

44. The method according to claim 43, in, The determining, according to the geometric prediction value of the node to be encoded, an initial residual value of the node to be encoded, comprises: Determining the original value of the node to be encoded; An initial residual value of the node to be encoded is determined by performing a subtraction operation on the original value of the node to be encoded and the geometric prediction value of the node to be encoded.

45. The method according to claim 43, in, The method further comprises: The quantization parameter is encoded, and the obtained encoded bits are written into a bit stream.

46. ​​The method according to any one of claims 23 to 45, in, The method further comprises: Determine a prediction mode of a node to be encoded, and generate first identification information based on the prediction mode; the first identification information indicates whether the node to be encoded uses an inter-frame prediction mode; When the prediction mode is the inter-frame prediction mode, the step of determining the first encoded node before the node to be encoded in the current frame is performed.

47. The method according to claim 46, in, The determining a prediction mode of the node to be encoded and generating first identification information based on the prediction mode includes: If the first identification information indicates that the node to be encoded does not use the inter-frame prediction mode, determining that the value of the first identification information is a first value; If the first identification information indicates that the node to be encoded uses the inter-frame prediction mode, the value of the first identification information is determined to be a second value.

48. The method according to claim 46, in, The method further comprises: The first identification information is encoded, and the obtained encoded bits are written into a bit stream.

49. The method according to any one of claims 23 to 45, in, The method further comprises: Determine whether to enable the local motion processing mode, and generate second identification information; the second identification information indicates whether the local motion processing mode is enabled for the node to be encoded; In the case where it is determined that the local motion processing mode is enabled for the node to be encoded, the step of determining the first encoded node before the node to be encoded in the current frame is performed.

50. The method according to claim 49, in, The determining whether to enable the local motion processing mode and generating the second identification information includes: If the second identification information indicates that the node to be encoded does not enable the local motion processing mode, determining that the value of the second identification information is a first value; If the second identification information indicates that the node to be encoded enables the local motion processing mode, then determining the The value is the second value.

51. The method according to claim 49, in, The method further comprises: The second identification information is encoded, and the obtained encoded bits are written into a bit stream.

52. A method according to any one of claims 23 to 51, in, The determining of a first encoded node preceding a node to be encoded in the current frame comprises: Based on the coding order of the prediction tree, a previous coded node of the node to be coded is determined, and the previous coded node is used as the first coded node.

53. A code stream, in, The code stream is generated by bit encoding according to the information to be encoded; wherein the information to be encoded includes at least one of the following: The geometric prediction residual value, quantization parameter, prediction node index value, first identification information and second identification information of the node to be encoded; The first identification information is used to indicate whether the node to be encoded uses an inter-frame prediction mode, and the second identification information is used to indicate whether the node to be encoded enables a local motion processing mode.

54. A decoder, the decoder comprising a decoding unit, a first determination unit and a first local motion processing unit; in, The decoding unit is configured to parse the bitstream, determine the predicted node index value corresponding to the node to be decoded; and determine the first decoded node before the node to be decoded in the current frame; The first determining unit is configured to determine a prediction node according to the prediction node index value and the first decoded node; The first local motion processing unit is configured to perform local motion processing on the first angle parameter value of the prediction node based on the first decoded node to determine the second angle parameter value of the prediction node; The first determination unit is further configured to determine the geometric parameters of the predicted node based on the first angle parameter value or the second angle parameter value; and determine the geometric prediction value of the node to be decoded based on the geometric parameters.

55. A decoder comprising a first memory and a first processor; in, The first memory is configured to store a computer program that can be executed on the first processor; The first processor is configured to perform the method according to any one of claims 1 to 22 when running the computer program.

56. An encoder comprising a second determination unit, a second local motion processing unit and a prediction unit; in, The second determining unit is configured to determine a first encoded node preceding the node to be encoded in the current frame; and determining a first candidate node having at least one geometric parameter identical to that of the first encoded node in a reference frame, and determining at least one second candidate node in the reference frame based on the first candidate node; The second local motion processing unit is configured to perform local motion processing on the angle parameter value of at least one candidate node among the at least one second candidate node to obtain the updated at least one second candidate node; The prediction unit is configured to determine a geometric prediction value of the node to be encoded based on the first candidate node and at least one updated second candidate node.

57. An encoder comprising a second memory and a second processor; in, The second memory is configured to store a computer program that can be executed on the second processor; The second processor is configured to perform the method according to any one of claims 23 to 52 when running the computer program.

58. A computer readable storage medium, in, The computer-readable storage medium stores a computer program, which implements the method according to any one of claims 1 to 22 when executed by a first processor, or implements the method according to any one of claims 23 to 52 when executed by a second processor.

Citation Information

Patent Citations

  • Registration-based improved V-PCC inter-frame prediction method and system

    CN113573068A

  • Point cloud data preprocessing method and point cloud geometric coding and decoding method and device

    CN114913252A

  • Self-adaptive point cloud geometric coding and decoding method and device

    CN114913253A

  • Improved predictive coding for point cloud compression

    CN115380536A

  • Inter prediction coding for geometry point cloud compression

    US20220207780A1