Encoding method, decoding method, code stream, encoder, decoder, and storage medium
By optimizing the inter-frame prediction mode in point cloud encoding and decoding technology and improving the precision of geometric parameters of prediction nodes through local motion processing, the problem of poor inter-frame prediction effect in the existing technology is solved, and the encoding of point clouds is improved. Decoding performance.
Patent Information
- Application Number
- PCT/CN2023/087303
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-17
AI Technical Summary
In existing geometry-based point cloud compression technology, the inter-frame prediction mode only considers global motion, resulting in poor prediction results and reducing the encoding and decoding efficiency of geometric information.
By performing local motion processing on the decoder side and the encoder side on the geometric parameters of the node to be encoded, more precise prediction node parameters are determined, thereby improving the accuracy of inter-frame prediction and the coding efficiency of geometric information.
It improves the accuracy of inter-frame prediction and the coding efficiency of geometric information, and improves the encoding and decoding performance of point clouds.
Smart Images

Figure CN2023087303_17102024_PF_FP_ABST
Abstract
Description
Coding and decoding method, code stream, encoder, decoder and storage medium Technical Field
[0001] The embodiments of the present application relate to the field of point cloud encoding and decoding technology, and in particular to an encoding and decoding method, a bit stream, an encoder, a decoder, and a storage medium. Background Art
[0002] In the geometry-based point cloud compression (G-PCC) codec framework, the geometric information 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, applied to a decoder, the method comprising:
[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] performing local motion processing on the first geometric parameter of the predicted node based on the first decoded node to determine the second geometric parameter of the predicted node;
[0012] Determine a geometric prediction value of the node to be decoded based on the first geometric parameter or the second geometric parameter.
[0013] In a second aspect, an embodiment of the present application provides an encoding method, applied to an encoder, the method comprising:
[0014] Determine a first coded node preceding the node to be coded in the current frame;
[0015] 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;
[0016] performing local motion processing on geometric parameters of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node;
[0017] 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.
[0018] 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:
[0019] The geometric prediction residual value, quantization parameter, prediction node index value, first identification information and second identification information of the node to be encoded;
[0020] 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.
[0021] 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,
[0022] The decoding unit is configured to parse the code stream to determine the predicted node index value corresponding to the node to be decoded; determine the first decoded node before the node to be decoded in the current frame;
[0023] The first determining unit is configured to determine a prediction node according to the prediction node index value and the first decoded node;
[0024] The first local motion processing unit is configured to perform local motion processing on the first geometric parameter of the prediction node based on the first decoded node to determine the second geometric parameter of the prediction node.
[0025] The first determination unit is further configured to determine a geometric prediction value of the node to be decoded based on the first geometric parameter or the second geometric parameter.
[0026] In a fifth aspect, an embodiment of the present application provides a decoder, comprising a first memory and a first processor; wherein,
[0027] The first memory is configured to store a computer program that can be executed on the first processor;
[0028] The first processor is configured to execute a decoding method on the decoder side when running the computer program.
[0029] 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,
[0030] The second determining unit is configured to determine a first coded node preceding the node to be coded in the current frame; 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;
[0031] The second local motion processing unit is configured to perform local motion processing on the geometric parameters of at least one candidate node among the at least one second candidate node to obtain the updated at least one second candidate node;
[0032] 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.
[0033] In a seventh aspect, an embodiment of the present application provides an encoder, comprising a second memory and a second processor; wherein,
[0034] The second memory is configured to store a computer program that can be executed on the second processor;
[0035] The second processor is configured to execute the encoding method on the encoder side when running the computer program.
[0036] 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.
[0037] 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; subsequently, the decoder determines the predicted node based on the predicted node index value and the first decoded node; finally, the decoder performs local motion processing on the first geometric parameter of the predicted node based on the first decoded node to determine the second geometric parameter of the predicted node; and determines the geometric prediction value of the node to be decoded based on the first geometric parameter or the second geometric parameter.
[0038] On the encoder side, first, the encoder determines the first encoded node that is the predecessor of the node to be encoded in the current frame; then, the encoder determines a first candidate node that has at least one geometric parameter identical to the first encoded node in the reference frame, 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 geometric parameters 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.
[0039] Thus, the technical solution of the present application is mainly aimed at optimizing the geometric parameters of the prediction nodes used for inter-frame prediction. On the one hand, since the first geometric parameters are obtained after local motion processing to obtain the second geometric parameters, the second geometric parameters have the prior information of local motion compared to the first geometric parameters, thereby achieving a more refined prediction of the geometric information of the prediction nodes, thereby improving the accuracy of inter-frame prediction. On the other hand, by performing local motion processing on the geometric parameters of the prediction nodes, when the second geometric parameters of the prediction nodes are used to determine the reconstructed geometric information of the nodes to be decoded, the accuracy of the geometric reconstruction of the nodes to be decoded can be improved, thereby improving the accuracy of inter-frame prediction, improving the coding efficiency of the geometric information, and thus improving the encoding and decoding performance of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] FIG1A is a schematic diagram of a three-dimensional point cloud image;
[0041] FIG1B is a partially enlarged view of a three-dimensional point cloud image;
[0042] FIG2A is a schematic diagram of six viewing angles of a point cloud image;
[0043] FIG2B is a schematic diagram of a data storage format corresponding to a point cloud image;
[0044] FIG3 is a schematic diagram of a network architecture for point cloud encoding and decoding;
[0045] FIG4A is a schematic diagram of a composition framework of a G-PCC encoder;
[0046] FIG4B is a schematic diagram of a composition framework of a G-PCC decoder;
[0047] FIG5A is a schematic diagram of a low plane position in the Z-axis direction;
[0048] FIG5B is a schematic diagram of a high plane position in the Z-axis direction;
[0049] FIG6 is a schematic diagram of a node coding sequence;
[0050] FIG7A is a schematic diagram of plane identification information;
[0051] FIG7B is a schematic diagram of another type of planar identification information;
[0052] FIG8 is a schematic diagram of sibling nodes of a current node;
[0053] Figure 9 is a schematic diagram of the intersection of a laser radar and a node;
[0054] FIG10 is a schematic diagram of neighborhood nodes at the same partition depth and the same coordinates;
[0055] FIG11A is a schematic diagram showing a current node located at a low plane position of a parent node;
[0056] FIG11B is another schematic diagram of a current node located at a lower plane position of a parent node;
[0057] FIG11C is a schematic diagram showing another example of a current node being located at a lower plane of a parent node;
[0058] FIG12A is a schematic diagram showing a current node being located at a high plane position of a parent node;
[0059] FIG12B is another schematic diagram of the current node being located at the high plane position of the parent node;
[0060] FIG12C is a schematic diagram showing another case where the current node is located at the high plane position of the parent node;
[0061] FIG13 is a schematic diagram of predictive coding of planar position information of a laser radar point cloud;
[0062] FIG14 is a schematic diagram of IDCM encoding;
[0063] FIG15 is a schematic diagram of coordinate transformation of a rotating laser radar to obtain a point cloud;
[0064] FIG16 is a schematic diagram of predictive coding in the X-axis or Y-axis direction;
[0065] FIG17A is a schematic diagram showing an angle of the X-plane predicted by the horizontal azimuth angle;
[0066] FIG17B is a schematic diagram showing an angle of the Y plane predicted by the horizontal azimuth angle;
[0067] FIG18 is another schematic diagram of predictive coding in the X-axis or Y-axis direction;
[0068] FIG19A is a schematic diagram of three intersection points included in a sub-block;
[0069] FIG19B is a schematic diagram of a triangular facet set fitted using three intersection points;
[0070] FIG19C is a schematic diagram of upsampling of a triangle face set;
[0071] FIG20 is a schematic diagram of the structure of a geometric prediction tree inter-frame codec;
[0072] FIG21 is a schematic diagram of a flowchart of a decoding method provided in an embodiment of the present application;
[0073] FIG22 is a schematic diagram of a flow chart of an encoding method provided in an embodiment of the present application;
[0074] 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;
[0075] 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;
[0076] FIG25 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0077] FIG26 is a schematic diagram of a specific hardware structure of an encoder provided in an embodiment of the present application;
[0078] FIG27 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application;
[0079] FIG28 is a schematic diagram of a specific hardware structure of a decoder provided in an embodiment of the present application;
[0080] 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
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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 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 its 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 information. Here, R represents red (Red, R), G represents green (Green, G), and B represents blue (Blue, B). For another example, the color information can be luminance and chrominance (YCbCr, YUV) information, where Y represents brightness (Luma), Cb (U) represents the blue color difference, and Cr (V) represents the red color difference.
[0088] 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.
[0089] 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).
[0090] Point clouds can be divided into the following categories according to the acquisition method:
[0091] Static point cloud: the object is stationary and the device that obtains the point cloud is also stationary;
[0092] Dynamic point cloud: The object is moving, but the device that obtains the point cloud is stationary;
[0093] Dynamic point cloud acquisition: The device used to acquire the point cloud is in motion.
[0094] For example, point clouds can be divided into two categories according to their usage:
[0095] 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;
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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).
[0104] The following describes the related technologies using the G-PCC codec framework and the AVS codec framework as examples.
[0105] 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.
[0106] 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.
[0107] 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.
[0108] 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).
[0109] 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 2 M . At the same time, K and M must meet the following conditions: Assume d max =max(d x ,d y ,d z ), d min =min(d x ,d y ,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.
[0110] 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.
[0111] 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 coding method is used for encoding in a certain dimension, it is first necessary to represent the plane identification (planarMode) and plane position (PlanePos) information of the current node in the dimension, and then encode the occupancy information of the current node based on the plane information of the current node. For example, Figure 7A shows a schematic diagram of plane identification information. As shown in Figure 7A, 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. Figure 7B shows another schematic diagram of plane identification information. As shown in Figure 7B, 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.
[0112] 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.
[0113] 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, it is necessary to perform predictive coding on the planar identifier and planar position information of the node.
[0114] 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. The following will explain them in detail one by one.
[0115] First, judge according to the planar probability of the node in each dimension.
[0116] (1) Determine the local area density (local_node_density) of the current node;
[0117] (2) Determine the probability Prob(i) of the current node in each dimension.
[0118] When the local area density of the node is less than the threshold Th (for example, Th = 3), compare the planar probability Prob(i) of the current node in the three coordinate dimensions 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) is used to represent whether planar coding is started in each dimension: Eligible i = Prob(i) >= threshold.
[0119] 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)
[0120] 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)
[0121] Here, the update of Prob(i) is specifically as follows: Prob(i) new=(L×Prob(i)+δ(coded node)) / L+1 (3)
[0122] Where L = 255; in addition, if the coded node is a plane, δ(coded node) is 1; otherwise, δ(coded node) is 0.
[0123] Here, the update of local_node_density is as follows: local_node_density new =local_node_density+4*numSiblings (4)
[0124] 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).
[0125] Second, determine whether the current layer nodes meet the plane coding requirements based on the point cloud density of the current layer.
[0126] 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。
[0127] 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. Thus, 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.
[0128] 3. Determine whether the current node meets the plane coding requirements based on the acquisition parameters of the lidar point cloud.
[0129] 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.
[0130] Furthermore, for nodes that meet the plane coding conditions, predictive coding may be performed on the plane identification information and the plane position information.
[0131] First, predictive coding of plane identification information.
[0132] Here, only three context information are used for encoding, that is, the plane identification in each coordinate dimension is designed separately for context.
[0133] Secondly, predictive coding of plane position information.
[0134] 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:
[0135] (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;
[0136] (b) Spatial distance between nodes at the same partition depth and coordinates as the current node and the current node: “near” and “far”;
[0137] (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;
[0138] (d) Coordinate dimension (i=0, 1, 2).
[0139] 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".
[0140] 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.
[0141] 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.
[0142] Furthermore, in an embodiment of the present application, FIG11A shows a schematic diagram of a current node being located at a low plane position of a parent node, FIG11B shows another schematic diagram of a current node being located at a low plane position of a parent node, and FIG11C shows yet another schematic diagram of a current node being located at a low plane position of a parent node. As shown in FIG11A, FIG11B, and FIG11C, three examples of the current node being located at a low plane position of a parent node are shown. Specific descriptions are as follows:
[0143] ① 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.
[0144] ② 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.
[0145] ③ 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.
[0146] ④ 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.
[0147] In an embodiment of the present application, FIG12A shows a schematic diagram of a current node being located at a high plane position of a parent node, FIG12B shows another schematic diagram of a current node being located at a high plane position of a parent node, and FIG12C shows yet another schematic diagram of a current node being located at a high plane position of a parent node. As shown in FIG12A, FIG12B and FIG12C, three examples of the current node being located at a high plane position of a parent node are shown. Specific descriptions are as follows:
[0148] ① 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.
[0149] ② 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.
[0150] ③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.
[0151] ④ 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.
[0152] 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).
[0153] That is, by using the laser radar acquisition parameters to predict the plane position of the current node, and by using the position where the current node intersects with the laser ray to quantize the position into multiple intervals, the final result is the context information of the plane position of the current node. The specific calculation process is as follows: Assume that the coordinates of the laser radar are (xLidar ,y Lidar ,z Lidar ), 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:
[0154] 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:
[0155] 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.
[0156] 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:
[0157] (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.
[0158] (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.
[0159] (3) The number of sibling nodes of the current node is greater than 1.
[0160] 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.
[0161] Furthermore, the IDCM encoding process is described in detail below.
[0162] 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:
[0163] (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).
[0164] (2) If the number of points numPonts in the current node is less than or equal to 2, the encoding process is as follows:
[0165] i) First encode whether the numPonts of the current node is greater than 1;
[0166] 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.
[0167] (3) If the number of points numPonts in the current node is greater than 2, the encoding process is as follows:
[0168] i) First encode the numPonts of the current node to be less than or equal to 1;
[0169] 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.
[0170] 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.
[0171] (1) Point cloud facing the human eye.
[0172] (1) If the current node contains only one point, the geometric information of the point in three dimensions will be directly encoded (Bypass coding);
[0173] (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])
[0174] 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:
[0175] After encoding the priority axis dirextAxis, the geometric coordinates of the current node are directly encoded. Assuming that the remaining encoding bit depth of each point is nodeSizeLog2, the specific encoding process is as follows:
[0176] for(int axisIdx=0; axisIdx<3; ++axisIdx)
[0177] for(int mask=(1<<nodeSizeLog2[axisIdx])> >1;mask;mask>>1)
[0178] encodePosBit(!!(pointPos[axisIdx]&mask)).
[0179] (2) LiDAR point cloud.
[0180] 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])
[0181] 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:
[0182] After encoding the priority-encoded coordinate axis dirextAxis, the geometric coordinates of the current node are encoded.
[0183] Since the LiDAR point cloud can obtain the acquisition parameters of the LiDAR point cloud, the geometric coordinate information of the current node can be predicted, thereby further improving the efficiency of the geometric information encoding of the point cloud. Similarly, the geometric information nodePos of the current node is first used to obtain a directly encoded main axis direction, and then the geometric information of the already encoded direction is used to predict the geometric information of another dimension. Assuming that the directly encoded axis direction is directAxis and the bit depth of the direct encoding is nodeSizeLog2, the encoding method is as follows:
[0184] for(int mask=(1<<nodeSizeLog2)> >1;mask;mask>>1)
[0185] encodePosBit(!!(pointPos[directAxis]&mask)).
[0186] It should be noted here that all geometric accuracy information in the directAxis direction will be encoded here.
[0187] 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°.
[0188] 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:
[0189] 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.
[0190] 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 The calculation method between the node geometry information is as follows:
[0191] 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:
[0192] 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:
[0193] 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 current node’s high plane. Indicates the predicted horizontal azimuth angle corresponding to the current node.
[0194] 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.
[0195] 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.
[0196] 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.
[0197] 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.
[0198] 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.
[0199] The following is a detailed introduction to the IDCM decoding process.
[0200] 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:
[0201] (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.
[0202] (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.
[0203] (3) The number of sibling nodes of the current node is greater than 1.
[0204] 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.
[0205] Next, decode the number of points numPoints of the current node. The specific decoding method is as follows:
[0206] i) First decode whether numPonts of the current node is greater than 1;
[0207] 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;
[0208] 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).
[0209] 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).
[0210] 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.
[0211] (1) Point cloud facing the human eye.
[0212] (1) If the current node contains only one point, the geometric information of the point in three dimensions will be directly decoded (Bypass coding);
[0213] (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)
[0214] 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:
[0215] 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:
[0216] (2) LiDAR point cloud.
[0217] 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)
[0218] 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:
[0219] After decoding the priority coordinate axis dirextAxis, the geometric coordinates of the current point are decoded.
[0220] Similarly, we first use the current node's geometry information nodePos to obtain a direct decoding axis direction, and then use the geometry information of the decoded direction to decode the geometry information of the other dimension. Assuming the axis direction of direct decoding is directAxis and the bit depth to be decoded in direct decoding is nodeSizeLog2, the decoding method is as follows:
[0221] It should be noted here that all geometric accuracy information in the directAxis direction will be decoded here.
[0222] After decoding all the precision 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)
[0223] After decoding the LaserIdx of the current point, the three-dimensional geometric information of the current point is predicted and decoded using the acquisition parameters of the laser radar. The specific algorithm is as follows:
[0224] 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 is The calculation method between the node geometry information is as follows:
[0225] By using the acquisition parameters of the laser radar, we can get the number of rotation points of each laser, numPoints, which represents the number of points obtained by each laser ray rotating one circle. Then, we can use the number of rotation points of each laser to calculate the rotation angular velocity deltaPhi of each laser. The calculation method is as follows:
[0226] 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:
[0227] 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.
[0228] 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.
[0229] 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.
[0230] 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.
[0231] 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.
[0232] 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.
[0233] 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.
[0234] 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.
[0235] 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:
[0236] in, The highest bits of x, y, and z respectively To the lowest position The corresponding binary value. The Morton code M is x, y, z starting from the highest bit, arranged in sequence To the lowest bit, the calculation formula of M is as follows:
[0237] in, The highest bit of M To the lowest position After obtaining the Morton code M of each point in the point cloud, the points in the point cloud are arranged in ascending order of the Morton code, and the weight value w of each point is set to 1.
[0238] It can also be understood that for the G-PCC codec framework, the general test conditions are as follows:
[0239] (1) There are 4 test conditions:
[0240] Condition 1: The geometric position is limited and the attributes are lost;
[0241] Condition 2: Geometric position lossless, attribute lossy;
[0242] Condition 3: Geometric position lossless, attribute loss limited;
[0243] Condition 4: Geometric position and attributes are lossless.
[0244] (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.
[0245] (3) Technical routes: There are two types in total, which are distinguished by the algorithm used for geometric compression.
[0246] Technical route 1: Octree encoding branch.
[0247] 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.
[0248] 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.
[0249] Technical route 2: prediction tree encoding branch.
[0250] 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.
[0251] 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.
[0252] In a possible implementation, the following specifically describes geometric prediction tree inter-frame encoding and decoding in the related art.
[0253] 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 Zi , then the LaserIdx of a node or point is calculated as follows:
[0254] Furthermore, assuming that the geometric coordinates of the node are pointPos, the horizontal azimuth The calculation of is as follows:
[0255] Furthermore, the depth information radius is calculated as follows:
[0256] Among them, LidarOrigin is generally 0.
[0257] 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.
[0258] 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;
[0259] 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;
[0260] 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 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 encoded
[0261] 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.
[0262] 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;
[0263] 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:
[0264] 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;
[0265] 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
[0266] 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.
[0267] In this way, if the current prediction mode is the inter-frame prediction mode, the point set for the inter-frame prediction candidate points in the related technology is small, and the inter-frame prediction point that is most suitable for the current point cannot be fully selected; thus resulting in poor prediction effect and reduced coding efficiency of geometric information.
[0268] Based on this, an embodiment of the present application provides a coding method for determining the previous encoded node of the current node in the current frame; determining a first candidate node in the first reference frame whose geometric parameters meet the first condition with the previous encoded node, and determining at least one second candidate node in the first reference frame based on the first candidate node; determining a third candidate node in the second reference frame whose geometric parameters meet the first condition with the previous encoded node, and determining at least one fourth candidate node in the second reference frame based on the third candidate node; determining an inter-frame candidate node set based on at least one of the first candidate node, at least one second candidate node, the third candidate node and at least one fourth candidate node; and determining a geometric prediction value of the current node based on the inter-frame candidate node set.
[0269] An embodiment of the present application also provides a decoding method for decoding a code stream to determine an inter-frame prediction mode value of a current node; based on the inter-frame prediction mode value, determining a selected node from at least one of a first candidate node, at least one second candidate node, a third candidate node, and at least one fourth candidate node; wherein the first candidate node and at least one second candidate node are candidate nodes in a first reference frame, and the third candidate node and at least one fourth candidate node are candidate nodes in a second reference frame; and based on the selected node, determining a geometric prediction value of the current node.
[0270] 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 candidate nodes in the inter-frame candidate node set are expanded here, so that the inter-frame prediction can better predict the current node, thereby improving the accuracy of the inter-frame prediction, improving the coding efficiency of geometric information, and thus improving the encoding and decoding performance of the point cloud.
[0271] The following describes in detail a decoding method proposed in an embodiment of the present application in conjunction with the inter-frame prediction part.
[0272] In the embodiment of the present application, referring to FIG21 , a flowchart of a decoding method provided by the embodiment of the present application is shown. As shown in FIG21 , the method may include:
[0273] S101: Parse the code stream to determine the predicted node index value corresponding to the node to be decoded.
[0274] 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.
[0275] 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 point cloud inter-frame geometric information, primarily improving inter-frame prediction algorithms in related technologies by performing local motion processing on the geometric parameters of prediction nodes, thereby achieving better inter-frame prediction results.
[0276] In the embodiment of the present application, the node to be decoded is one of the points in the current frame.
[0277] 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.
[0278] 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.
[0279] 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.
[0280] 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.
[0281] In an embodiment of the present application, the predicted node index value may be a unique identifier of the node to be decoded.
[0282] 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.
[0283] 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.
[0284] 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.
[0285] 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, etc. Among them, 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 determines that the predicted node index value corresponding to the node to be decoded is 3 by parsing the bitstream, the decoder can determine that the node to be decoded is the decoded node f.
[0286] 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.
[0287] 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).
[0288] 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.
[0289] S102: Determine a first decoded node preceding the node to be decoded in the current frame.
[0290] 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.
[0291] 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.
[0292] It should also be noted that in the embodiment of the present application, the geometric parameters (combined information) here refer to the parameters in the radar coordinate system. Among them, the geometric parameters may include: radius depth information, horizontal azimuth angle And the radar laser index value laserID.
[0293] 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 first angle parameter value.
[0294] 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,
[0295] In the embodiment of the present application, the first 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.
[0296] 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.
[0297] 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.
[0298] 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.
[0299] In the embodiment of the present application, the radar index value is the unique identification information of the laser radar.
[0300] 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.
[0301] 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.
[0302] In some embodiments of the present application, determining a first decoded node preceding a node to be decoded in a current frame may include:
[0303] Determine the prediction tree corresponding to the current frame;
[0304] 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.
[0305] In the embodiment of the present application, according to the decoding order of the prediction tree, the previous decoded node of the node to be decoded is used as the first decoded node.
[0306] S103: Determine a prediction node according to the prediction node index value and the first decoded node.
[0307] In an embodiment of the present application, a 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 (geometric parameters) of the predicted node is determined.
[0308] In an embodiment of the present application, based on the first 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.
[0309] In an embodiment of the present application, the predicted node is determined by the first angle parameter value of the first decoded node and the predicted node index value.
[0310] 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.
[0311] 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.
[0312] 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.
[0313] 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.
[0314] S104 : Based on the first decoded node, perform local motion processing on the first geometric parameter of the prediction node to determine the second geometric parameter of the prediction node.
[0315] In an embodiment of the present application, local motion processing is performed on the first geometric parameter of the predicted node according to the third geometric parameter of the first decoded node, thereby obtaining the second geometric parameter of the predicted node.
[0316] In an embodiment of the present application, the first geometric parameter is a geometric parameter of the predicted node obtained based on the third geometric parameter of the first decoded node.
[0317] In the embodiment of the present application, the second geometric parameter is a geometric parameter obtained by performing local motion processing on the first geometric parameter.
[0318] It can be understood that since the second geometric parameters are obtained after local motion processing of the first geometric parameters, the second geometric parameters have the prior information of local motion compared to the first geometric parameters, 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 geometric parameter takes into account the prior information of local motion, when the second geometric parameter 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] S105. Determine a geometric prediction value of the node to be decoded according to the first geometric parameter or the second geometric parameter.
[0321] In an embodiment of the present application, after performing local motion processing on the first geometric parameter of the predicted node based on the first decoded node and determining the second geometric parameter of the predicted node, the second geometric parameter can be determined as the geometric prediction value of the node to be decoded.
[0322] In an embodiment of the present application, local motion processing may not be performed on the first geometric parameter, and the first geometric parameter may be directly used as the geometric prediction value of the node to be decoded.
[0323] In an embodiment of the present application, the decoder first parses the bitstream to determine the predicted node index value corresponding to the node to be decoded. The decoder then determines the first decoded node preceding the node to be decoded in the current frame. Subsequently, the decoder determines the predicted node based on the predicted node index value and the first decoded node. Finally, based on the first decoded node, the decoder performs local motion processing on the first geometric parameters of the predicted node to determine the second geometric parameters of the predicted node. Because the decoder performs local motion processing on the first geometric parameters of the predicted node to obtain the second geometric parameters, the second geometric parameters contain prior information related to 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 enhancing the decoding performance of the point cloud.
[0324] In some embodiments, S104 may be implemented through S1041 and S1042 as follows:
[0325] S1041. When the predicted node index value represents that the predicted node is a preset node, the local motion information of the predicted node is determined based on the fourth geometric parameter of the second decoded node and the third geometric parameter of the first decoded node; the second angle parameter value of the second decoded node is less than or equal to and closest to the first 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.
[0326] 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 to perform local motion processing on the first geometric parameter of the predicted node corresponding to the predicted node index value.
[0327] In some embodiments of the present application, when the predicted node index value indicates that the predicted node is not a preset node, the first geometric parameter of the predicted node is used as the second geometric parameter.
[0328] 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 geometric parameter of the predicted node corresponding to the predicted node index value is not subjected to local motion processing, and the first geometric parameter of the predicted node is used as the geometric prediction value of the node to be decoded.
[0329] That is, only when the predicted node index value indicates that the predicted node is a preset node, the decoder performs local motion processing on the first geometric parameter of the predicted node to obtain the second geometric parameter.
[0330] 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.
[0331] In an embodiment of the present application, the decoder may perform local motion processing on the first geometric parameter of the predicted node to obtain the second geometric parameter only when the predicted node index value matches the preset node index value; when 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 geometric parameter of the predicted node, and can use the first geometric parameter as the second geometric parameter.
[0332] That is, 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 determine that local motion processing needs to be performed on the first geometric parameter of the predicted node.
[0333] In an embodiment of the present application, the second decoded node is a decoded node in the reference frame. In addition, the second angle parameter value of the second decoded node is less than or equal to the first angle parameter value of the first decoded node.
[0334] In an embodiment of the present application, the second decoded node is a decoded node in the reference frame having the same radar index as the first decoded node and having an angle parameter value of the first point less than or equal to the angle parameter value of the first decoded node.
[0335] That is, the second angle parameter value of the second decoded node is less than or equal to and closest to the first angle parameter value of the first decoded node.
[0336] 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 values of decoded node b and 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.
[0337] 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.
[0338] It should be noted that, in an embodiment of the present application, the second angle parameter value of the second decoded node is less than or equal to and closest to the first 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.
[0339] 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.
[0340] In some embodiments, determining the local motion information of the predicted node based on the obtained fourth geometric parameter of the second decoded node and the third geometric parameter of the first decoded node may include:
[0341] performing a first coordinate transformation on the third geometric parameter of the first decoded node and the fourth geometric parameter of the second decoded node, respectively, to determine a fifth geometric parameter of the first decoded node and a sixth geometric parameter of the second decoded node; the first coordinate transformation represents converting radar coordinates into Cartesian coordinates;
[0342] Local motion information of the predicted node is determined based on the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node.
[0343] In some embodiments, the third geometric parameter of the first decoded node is subjected to a first coordinate transformation process to determine the fifth geometric parameter of the first decoded node; the fourth geometric parameter of the second decoded node is subjected to a first coordinate transformation process to determine the sixth geometric parameter of the second decoded node.
[0344] It should be noted that, in the embodiment of the present application, the first coordinate transformation processing represents converting radar coordinates into Cartesian coordinates.
[0345] It should be noted that the first coordinate transformation process and the second coordinate transformation process are inverse processes of each other.
[0346] Exemplarily, the third geometric parameter of the first decoded node is a radar coordinate, and the third geometric parameter of the first decoded node is converted from the radar coordinate to the fifth geometric parameter of the first decoded node, where the fifth geometric parameter of the first decoded node is a Cartesian coordinate. The radar coordinates (radius, φ, laserIdx) of the first decoded node are converted to the Cartesian coordinates (x, y, z) of the first decoded node.
[0347] In some embodiments, the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node are subtracted to determine a difference value; alternatively, the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node are rotated or translated to determine a motion vector; and the difference value or motion vector is determined as local motion information.
[0348] In some embodiments, the fifth geometric parameter of the first decoded node is the Cartesian coordinate of the first decoded node, and the sixth geometric parameter of the second decoded node is the Cartesian coordinate of the second decoded node.
[0349] In some embodiments, the Cartesian coordinates of the first decoded node and the Cartesian coordinates of the second decoded node are subtracted to obtain a difference value between the first decoded node and the second decoded node.
[0350] In some embodiments, the Cartesian coordinates of the first decoded node and the Cartesian coordinates of the second decoded node are rotated or translated to determine a motion vector between the first decoded node and the second decoded node.
[0351] In some embodiments, a difference value or a motion vector is determined as the local motion information.
[0352] S1042: Perform local motion processing on the first geometric parameter of the prediction node based on the local motion information to determine the second geometric parameter of the prediction node.
[0353] In an embodiment of the present application, the reference frames for the prediction node include: a first reference frame and a second reference frame; wherein the first reference frame is at least one frame obtained by performing global motion on the second reference frame; and the second reference frame is a decoded frame that is K frames before the current frame, where K is an integer greater than 0. For example, in a specific embodiment, the first reference frame may be the frame before the current frame; and the second reference frame may be obtained by performing global motion on the previous frame.
[0354] It should also be noted that, in the embodiment of the present application, the preset node is at least one decoded node in the first reference frame except the second decoded node.
[0355] In some embodiments, determining the second geometric parameter of the predicted node based on the local motion information may include:
[0356] Performing a first coordinate transformation on the first geometric parameter of the prediction node to determine a seventh geometric parameter of the prediction node;
[0357] Adding the seventh geometric parameter of the prediction node and the local motion information to obtain an eighth geometric parameter of the prediction node;
[0358] performing a second coordinate transformation on the eighth geometric parameter of the prediction node to determine a ninth geometric parameter of the prediction node;
[0359] The ninth geometric parameter of the prediction node is determined as the second geometric parameter of the prediction node.
[0360] It should be noted that, in the embodiment of the present application, the second coordinate transformation process represents the conversion of Cartesian coordinates into radar coordinates. The seventh geometric parameter of the prediction node and the eighth geometric parameter of the prediction node are Cartesian coordinates, and the ninth geometric parameter of the prediction node is radar coordinates.
[0361] In some embodiments, the distance between the node and the origin is calculated based on the geometric parameters of the node and the geometric parameters of the origin to determine the depth information (radius); the horizontal azimuth is determined based on the first coordinate (x) and the second coordinate (y) in the geometric parameters of the node. Determine the radar laser index value based on the geometric parameters of the node, the tangent values of all radars, and the offset positions of each radar in the vertical direction.
[0362] In some embodiments, perform a second coordinate transformation process on the eighth geometric parameter of the predicted node to determine the ninth geometric parameter of the predicted node. For example, if the eighth geometric parameter of the predicted node is (x, y, z), use the prior radar information of the current point cloud to determine the ninth geometric parameter (radius, laserIdx) of the predicted node. The calculation method of LaserIdx of a node or a point is as follows: Assume the geometric coordinates of the point are pointPos, the starting coordinates of the laser ray are LidarOrigin, and assume the number of Lasers is LaserNum, and the tangent value of each Laser is tanθ i , and the offset position of each Laser in the vertical direction is Z i , then:
[0363] Assume the eighth geometric parameter of the node is pointPos, pointPos[0] = x, pointPos[1] = y, pointPos[2] = z.
[0364] Among them,
[0365] where radius is:
[0366] LidarOrigin is generally 0.
[0367] It should be noted that For(int LaserIdx = 0; LaserIdx < numLaser; ++LaserIdx) represents traversing the radars; represents calculating the distance between the predicted node and the origin; int Z = pointPos[2] + Z i represents adding the z value of the radar to the z value of the predicted node.
[0368] It should be noted that when the predicted node index value indicates that the predicted node is not a preset node, the first geometric parameter of the predicted node is used as the second geometric parameter.
[0369] When the predicted node index value indicates that the predicted node is not a preset node, directly using the first geometric parameter as the second geometric parameter of the predicted node and S104 and S105 are parallel solutions. The specific execution order needs to be determined according to the specific predicted node, and the embodiments of the present application do not limit it.
[0370] When the predicted node index value indicates that the predicted node is not a preset node, the first geometric parameter of the predicted node is used as the second geometric parameter, and the geometric prediction value of the node to be decoded is determined according to the second geometric parameter.
[0371] For example, the decoder and 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, i.e., 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 geometric parameter of the predicted node (node c) and directly uses the first geometric parameter of the predicted node (node c) as the second geometric parameter of the predicted node.
[0372] It can be understood that because the second geometric parameters are obtained by updating the first geometric parameters based on the local motion information of the prediction node, the second geometric parameters have the prior information of local motion compared to the first geometric parameters, thereby achieving a more refined prediction of the geometric information of the prediction node, thereby improving the accuracy of inter-frame prediction. In addition, because the second geometric parameters have the prior information of local motion, when the second geometric parameters of the prediction node are 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.
[0373] In some embodiments of the present application, S103 includes S1031 to S1032:
[0374] 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 second angle parameter value of the second decoded node is less than or equal to and closest to the first angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index.
[0375] 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 first angle parameter value of the first decoded node.
[0376] In the embodiment of the present application, the second decoded node is determined according to the first angle parameter value.
[0377] In an embodiment of the present application, the reference frame where the second decoded node is located has at least 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.
[0378] 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.
[0379] 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 first 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 first angle parameter value of the first decoded node.
[0380] 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.
[0381] 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. For example, 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.
[0382] 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.
[0383] S1032: Determine a predicted node based on the second decoded node, wherein a third angle parameter value of the predicted node is greater than a second angle parameter value of the second decoded node, and the predicted node and the second decoded node have the same radar index.
[0384] In an embodiment of the present application, a predicted node is determined in a reference frame where the second decoded node is located according to the second angle parameter value of the second decoded node.
[0385] In the embodiment of the present application, the predicted node is determined according to the second angle parameter value of the second decoded node.
[0386] Exemplarily, based on FIG23 , when the second decoded node is node g, a 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, a predicted node is determined in the second reference frame based on the angle parameter value of node b.
[0387] 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.
[0388] In some embodiments of the present application, S1032 includes S10321 to S10322:
[0389] S10321. Use the second angle parameter value corresponding to the second decoded node as the third angle parameter value of the predicted node.
[0390] 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 second angle parameter value of the second decoded node is used as the third angle parameter value of the predicted node.
[0391] 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.
[0392] S10322. In the reference frame where the predicted node is located, determine at least one next decoded node based on the predicted node index value and the second decoded node; wherein 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.
[0393] 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.
[0394] 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.
[0395] 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.
[0396] 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, and the predicted node is 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, and the predicted node is the next decoded node.
[0397] 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.
[0398] 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.
[0399] In the embodiment of the present application, the predicted node and the second decoded node correspond to the same reference frame.
[0400] 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 second 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.
[0401] 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.
[0402] 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.
[0403] 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:
[0404] 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 second angle parameter value of the second decoded node (node g);
[0405] 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).
[0406] 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:
[0407] 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 second angle parameter value of the second decoded node (node g);
[0408] 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);
[0409] 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);
[0410] 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).
[0411] 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:
[0412] 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 second angle parameter value of the second decoded node (node b);
[0413] 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);
[0414] 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);
[0415] 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).
[0416] 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 second angle parameter value of the second decoded node (node g) is less than or equal to the first angle parameter value of the first decoded node (node a).
[0417] Example 5. Based on Figure 23 and 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 second angle parameter value of the second decoded node (node b) is less than or equal to the first angle parameter value of the first decoded node (node a).
[0418] In some embodiments of the present application, S103 includes S301 to S303:
[0419] 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 second angle parameter value of the second decoded node is less than or equal to and closest to a first angle parameter value of the first decoded node; and the second decoded node and the first decoded node have the same radar index.
[0420] 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 first angle parameter value of the first decoded node whose angle parameter value is less than or equal to and closest to the first angle parameter value of the first decoded node is determined as the second decoded node.
[0421] S302: Use the second angle parameter value corresponding to the second decoded node as the third angle parameter value of the predicted node.
[0422] 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 third angle parameter value of the predicted node.
[0423] S303 . Determine a prediction node among the decoded nodes subsequent to the second decoded node according to the order of the prediction tree.
[0424] 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.
[0425] In the embodiment of the present application, a prediction tree method is used to determine the prediction node.
[0426] 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 second angle parameter value of the second decoded node is equal to the first 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.
[0427] 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.
[0428] 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.
[0429] 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.
[0430] 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).
[0431] For example, based on FIG. 23 , assume 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.
[0432] 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.
[0433] 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.
[0434] 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.
[0435] 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.
[0436] 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.
[0437] In some embodiments of the present application, determining geometric residual information of a point to be decoded includes:
[0438] Determine the context model of the node to be decoded according to the predicted node index value;
[0439] The context model is used to decode the geometric residual information of the node to be decoded to obtain the geometric residual information.
[0440] 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.
[0441] 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.
[0442] Exemplarily, based on Figure 23, for selecting the inter-frame prediction mode as node c or node d or node m or node n or node b, a parameter for selecting the contex model corresponds to be used, 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 for selecting the contex model corresponds to be used to perform the subsequent entropy decoding of the geometric residual information.
[0443] 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:
[0444] 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.
[0445] Furthermore, with respect to the first identification information, in some embodiments of the present application, the method further includes:
[0446] 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;
[0447] 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.
[0448] 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.
[0449] 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.
[0450] 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.
[0451] 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.
[0452] 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 geometric parameter of the predicted node based on the first decoded node to determine the second geometric parameter of the predicted node.
[0453] Furthermore, with respect to the second identification information, in some embodiments of the present application, the method further includes:
[0454] 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;
[0455] 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.
[0456] 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.
[0457] 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.
[0458] 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.
[0459] This embodiment provides a decoding method that parses a bitstream to determine a predicted node index value corresponding to a node to be decoded; determines a first decoded node preceding the node to be decoded in a current frame; determines a predicted node based on the predicted node index value and the first decoded node; and, based on the first decoded node, performs local motion processing on first geometric parameters of the predicted node to determine second geometric parameters of the predicted node. Because the decoder performs local motion processing on the first geometric parameters of the predicted node to obtain second geometric parameters, the second geometric parameters contain prior information related to 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 enhancing the decoding performance of the point cloud.
[0460] 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:
[0461] S201: Determine a first encoded node preceding a node to be encoded in a current frame.
[0462] In the embodiment of the present application, the first encoded node corresponds to the first decoded node at the decoding end.
[0463] Exemplarily, at the encoding end, the first encoded node is node a; correspondingly, at the decoding end, the first decoded node is node a.
[0464] 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.
[0465] In the embodiment of the present application, the node to be encoded is a point in the current frame.
[0466] 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; more specifically, a method for encoding geometric information between point cloud frames, primarily improving inter-frame prediction algorithms in related technologies, and performing local motion processing on the angle parameter values of prediction nodes, thereby achieving better inter-frame prediction results.
[0467] 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.
[0468] 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.
[0469] 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.
[0470] 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.
[0471] 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.
[0472] 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.
[0473] 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.
[0474] It should also be noted that in the embodiment of the present application, the geometric parameters (combined information) here refer to parameters in the radar coordinate system. The geometric parameters may include: radius depth information, horizontal azimuth angle φ, and radar laser index value laserID.
[0475] 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 first angle parameter value.
[0476] 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,
[0477] In the embodiment of the present application, the first 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.
[0478] 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.
[0479] It should be noted that in the embodiment of the present application, the first encoded node may also be any encoded node before the node to be encoded in the current frame. For example, the first encoded node may be the two encoded nodes before the node to be encoded in the current frame, or the first encoded node may be the four encoded nodes before the node to be encoded in the current frame, etc., and this application does not limit this.
[0480] S202. Determine a first candidate node having at least one geometric parameter identical to that of the first encoded node in the reference frame, and determine at least one second candidate node in the reference frame based on the first candidate node.
[0481] In the embodiment of the present application, the first candidate node corresponds to the second decoded node at the decoding end.
[0482] Exemplarily, based on Figure 23, at the encoding end, 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.
[0483] 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.
[0484] Exemplarily, based on Figure 23, at the encoding end, 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 except 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 except the second decoded node (node b) are node c, node d, node m and node n.
[0485] 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: radius depth information, horizontal azimuth angle And the radar laser index value laserID.
[0486] In this embodiment of the present application, the second angle parameter value of the first candidate node is less than or equal to, and closest to, the first angle parameter value of the first encoded node. 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 a decoded 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.
[0487] 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.
[0488] In some embodiments of the present application, the second angle parameter value of the first candidate node is less than or equal to and closest to the first angle parameter value of the first encoded node.
[0489] 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.
[0490] In an embodiment 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.
[0491] It should be noted that the first candidate node is the second decoded node at the decoding end.
[0492] For example, based on FIG23 , the second reference node in the first reference frame is node g, and the first reference frame, in addition to the first reference node, also includes nodes e, f, o, and p. The preset node can be at least one of nodes e, f, o, and p.
[0493] In some embodiments, the first reference frame may be the frame preceding the current frame, and the second 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.
[0494] 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.
[0495] 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.
[0496] In some embodiments, determining at least one second candidate node in a reference frame based on the first candidate node may include:
[0497] determining a first reference node having the same radar index as the first encoded node in a first reference frame;
[0498] determining at least one third reference node in the first reference frame based on the first reference node;
[0499] determining a second reference node having the same radar index as the first encoded node in a second reference frame;
[0500] At least one fourth reference node is determined in the second reference frame according to the second reference candidate node.
[0501] It should be noted that the second angle parameter value of the first reference node is less than or equal to and closest to the first angle parameter value of the first encoded node; the fourth angle parameter value of at least one third reference node is greater than the second 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 second angle parameter value of the second reference node is less than or equal to and closest to the first angle parameter value of the first encoded node; the fifth angle parameter value of at least one fourth reference node is greater than the second 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.
[0502] In some embodiments, determining at least one third reference node in the first reference frame based on the first reference node may include: in the first reference frame, determining at least one third reference node that is encoded sequentially after the first reference node according to the order of the prediction tree.
[0503] Exemplarily, based on FIG. 23 , in the first reference frame, in the order of the prediction tree, at least one third reference node encoded sequentially after the first reference node may be node e, node f, node o, and node p.
[0504] In some embodiments, determining at least one fourth reference node in the second reference frame based on the second reference candidate node may include: in the second reference frame, determining at least one fourth reference node that is encoded sequentially after the second reference node in the order of the prediction tree.
[0505] Exemplarily, based on FIG. 23 , in the second reference frame, according to the order of the prediction tree, the at least one fourth reference node to be encoded sequentially after the first reference node may be node c, node d, node m, and node n.
[0506] In an embodiment of the present application, Figure 23 shows a schematic diagram of the structure of an inter-frame encoding and decoding of geometric information provided by an embodiment of the present application. As shown in Figure 23, the nodes to be encoded in the current frame are filled with a grid, and the first encoded node before the node to be encoded is represented by a. Here, there are a first reference frame and a second reference frame.
[0507] For example, taking FIG. 23 as an example, when performing inter-frame prediction coding on a node to be coded, first determine the first coded node a before the point to be coded;
[0508] For the second reference frame (the previous frame of the current frame), a first candidate node b whose geometric parameters meet the first condition with the first encoded node a before 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 third fourth reference node m and the fourth fourth reference node n encoded after the first candidate node b (the second reference node) in the first reference frame are determined in sequence; among them, 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 are at least one second candidate node here.
[0509] For the first reference frame, a first candidate node g (first reference node) whose geometric parameters meet the first condition with the first encoded node a before 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 second reference frame are determined in sequence; among them, 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 here.
[0510] In another specific implementation, determining at least one second candidate node in the first reference frame according to the first candidate node may include:
[0511] Determine, in the first reference frame, in order of magnitude of the horizontal azimuth angles, a first third reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the first candidate 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 reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the third reference node;
[0512] At least one second candidate 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.
[0513] In the embodiment of the present application, as shown in FIG23 , it is assumed that at least one second candidate node includes a first fourth reference node c, a second fourth reference node d, a third fourth reference node m, and a fourth fourth reference node n. When performing inter-frame prediction coding on the node to be coded, first determine the first coded node a before the point to be coded; then determine the first candidate node b whose geometric parameters with the first coded node a before the point to be coded meet the first condition; and then determine the first candidate node b according to the horizontal azimuth angle. The order of size is as follows:
[0514] Determine in the first reference frame a first fourth reference node c having the same radar laser index sequence number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the first candidate node b;
[0515] Determine, in the first reference frame, a second fourth reference node d having the same radar laser index number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the first fourth reference node c;
[0516] Determine in the first 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;
[0517] Determine, in the first 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;
[0518] 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 the at least one second candidate node here.
[0519] In another specific implementation, determining at least one second candidate node in the second reference frame according to the first candidate node may include:
[0520] Determine, in order of magnitude of the horizontal azimuth angles, in the second reference frame, a first fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the first candidate node, a second fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the first fourth reference node, a 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 a fourth fourth reference node whose horizontal azimuth angle is greater than and closest to the horizontal azimuth angle of the third fourth reference node;
[0521] At least one second candidate 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 serial numbers 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 serial number of the previous encoded node.
[0522] In the embodiment of the present application, as shown in FIG23, it is assumed that at least one second candidate node includes a first third reference node e, a second third reference node f, a third third reference node o, and a fourth third reference node p. When performing inter-frame prediction coding on the node to be coded, first determine the first coded node a before the point to be coded; then determine the first candidate node g whose geometric parameters with the first coded node a before the point to be coded meet the first condition; and then determine the first candidate node g according to the horizontal azimuth angle. The order of size is as follows:
[0523] Determine in the second 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;
[0524] Determine in the second reference frame a second third reference node f having the same radar laser index number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the first third reference node e;
[0525] Determine in the second reference frame a third third reference node o having the same radar laser index number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the second third reference node f;
[0526] Determine in the second reference frame a fourth third reference node p having the same radar laser index number and a first horizontal azimuth angle greater than the horizontal azimuth angle of the third third reference node o;
[0527] 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 here.
[0528] Exemplarily, a possible preset order is: 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 third third reference node o, the fourth third reference node p, the first candidate node b and the first candidate node g; the preset order at this time is not limited to this order and is not specifically limited here.
[0529] Exemplarily, a possible preset order is: 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 third third reference node o and the fourth third reference node p; the preset order at this time is not limited to this order and is not specifically limited here.
[0530] In yet another specific implementation, determining at least one fourth candidate node in the second reference frame according to the third candidate node may include:
[0531] In an embodiment of the present application, Figure 24 shows a schematic diagram of another geometric information inter-frame encoding and decoding structure provided by an embodiment of the present application. As shown in Figure 24, the nodes to be encoded in the current frame are filled with a grid, and the first encoded node before the node to be encoded is represented by a. There are a first reference frame and a second reference frame, where the first reference frame undergoes a global motion GMC frame.
[0532] For example, taking FIG. 24 as an example, when performing inter-frame prediction coding on a node to be coded, first determine the first coded node a before the current point;
[0533] For the first reference frame, a first candidate node g can be searched in the first reference frame whose geometric parameters meet the first condition with the first encoded node a before the node to be encoded; then, according to the encoding order of the prediction tree or according to the order of the size of the horizontal azimuth angles, the first third reference node e and the second third reference node f to be encoded after the first candidate node g in the first reference frame are determined in sequence; wherein, the first third reference node e and the second third reference node f are at least one second candidate node here.
[0534] For the second reference frame, a first candidate node b whose geometric parameters meet the first condition with the previous encoded node a for encoding the current node can be found in the second reference frame; then, according to the encoding order of the prediction tree or the order of the size of the horizontal azimuth angles, 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 in the second reference frame are determined in sequence; among them, 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 are at least one second candidate node here.
[0535] That is to say, in the embodiment of the present application, for the inter-frame candidate node set, it may include 6 candidate nodes, 8 candidate nodes, 10 candidate nodes, or other numbers of candidate nodes. Among them, the number of candidate nodes can continue to increase, or a new candidate node can be formed by averaging every several candidate nodes, which is not specifically limited here. In addition, the inter-frame candidate node set has a certain preset order. The more likely the inter-frame prediction mode appears in the preset order, the higher its ranking, that is, the smaller the corresponding inter-frame prediction mode value, thereby improving performance and reducing the number of coding bits.
[0536] S203 : Perform local motion processing on geometric parameters of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node.
[0537] In the embodiment of the present application, S203 can be implemented through S2031, S2032, S2033 and S2034 as follows:
[0538] S2031: Determine at least one third candidate node matching the preset node from at least one second candidate node.
[0539] In the embodiment of the present application, the preset node is at least one candidate node in the reference frame except the first candidate node.
[0540] In some embodiments, at least one third candidate node is determined from at least one second candidate node. The third candidate node may be in the first reference frame or in the second reference frame.
[0541] Exemplarily, the second reference node in the second reference frame is node g, and the second reference frame, in addition to the second reference 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.
[0542] S2032. Determine local motion information based on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first candidate node.
[0543] In some embodiments, S2032 may be implemented through S20321 and S20322 as follows:
[0544] S20321. Perform a first coordinate transformation on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first candidate node to determine a fifth geometric parameter of the first encoded node and a sixth geometric parameter of the first candidate node.
[0545] In some embodiments, the third geometric parameter of the first encoded node is subjected to a first coordinate transformation process to determine the fifth geometric parameter of the first encoded node; the fourth geometric parameter of the first candidate node is subjected to a first coordinate transformation process to determine the sixth geometric parameter of the first candidate node.
[0546] It should be noted that, in the embodiment of the present application, the first coordinate transformation processing represents converting radar coordinates into Cartesian coordinates.
[0547] Exemplarily, the third geometric parameter of the first encoded node is a radar coordinate, and the third geometric parameter of the first encoded node is converted from the radar coordinate to the fifth geometric parameter of the first encoded node, where the fifth geometric parameter of the first encoded node is a Cartesian coordinate. The radar coordinates of the first encoded node (radius, φ, laserIdx) are converted to the Cartesian coordinates of the first encoded node (x, y, z).
[0548] S20322. Determine local motion information based on the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node.
[0549] In some embodiments, determining local motion information based on the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node may include: subtracting the fifth geometric parameter of the first encoded node from the sixth geometric parameter of the first candidate node to determine a difference value; or, rotating or translating the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node to determine a motion vector; and using the difference value or motion vector to determine the local motion information.
[0550] In some embodiments, the fifth geometric parameter of the first encoded node is the Cartesian coordinate of the first encoded node, and the sixth geometric parameter of the first candidate node is the Cartesian coordinate of the second encoded node.
[0551] In some embodiments, the Cartesian coordinates of the first encoded node and the Cartesian coordinates of the first candidate node are subtracted to obtain a difference value between the first encoded node and the first candidate node.
[0552] In some embodiments, the Cartesian coordinates of the first encoded node and the Cartesian coordinates of the first candidate node are rotated or translated to determine a motion vector between the first encoded node and the first candidate node.
[0553] In some embodiments, a difference value or a motion vector is determined as the local motion information.
[0554] S2033. Based on the local motion information, update the tenth geometric parameter of each third candidate node to obtain the updated tenth geometric parameter of at least one third candidate node, thereby determining the at least one updated third candidate node.
[0555] In an embodiment of the present application, a first coordinate transformation is performed on the tenth geometric parameter of each third candidate node to determine the eleventh geometric parameter of each third candidate node; the eleventh geometric parameter of each third candidate node is added to the local motion information to determine the twelfth geometric parameter of each third candidate node; a second coordinate transformation is performed on the twelfth geometric parameter of each third candidate node to determine the updated tenth geometric parameter of each third candidate node.
[0556] It should be noted that, in the embodiment of the present application, the second coordinate transformation processing represents converting Cartesian coordinates into radar coordinates.
[0557] In some embodiments, the distance between the node and the origin is calculated based on the geometric parameters of the node and the geometric parameters of the origin to determine the depth information (radius); the horizontal azimuth is determined based on the first coordinate (x) and the second coordinate (y) in the geometric parameters of the node. The radar laser index value is determined based on the geometric parameters of the node, the tangent values of all radars and the offset position of each radar in the vertical direction.
[0558] Exemplarily, the twelfth geometric parameter of each third candidate node is subjected to a second coordinate transformation process to determine the updated tenth geometric parameter of each third candidate node. The conversion of the twelfth geometric parameter into the updated tenth geometric parameter can be achieved as follows:
[0559] The twelfth geometric parameter of the third candidate node is (x, y, z). Using the prior radar information of the current point cloud, determine the updated tenth geometric parameter (radius, laserIdx) of the third candidate node. Among them, the calculation method of LaserIdx of a node or a point is as follows: Assume that the geometric coordinates of the point are pointPos, the starting coordinate of the laser ray is LidarOrigin, and assume that the number of Lasers is LaserNum, and the tangent value of each Laser is tanθ i and the offset position of each Laser in the vertical direction is Z i , then:
[0560] Assume that the twelfth geometric parameter of the node is pointPos, pointPos[0] = x, pointPos[1] = y, pointPos[2] = z.
[0561] Among them,
[0562] Among them, radius is:
[0563] LidarOrigin is generally 0.
[0564] It should be noted that For(int LaserIdx = 0; LaserIdx < numLaser; ++LaserIdx) means traversing the radar; means calculating the distance between the predicted node and the origin; int Z = pointPos[2] + Z i means adding the z value of the radar to the z value of the predicted node.
[0565] S2034. Take the updated at least one third candidate node and the candidate nodes other than the at least one third candidate node among the at least one second candidate node as the updated at least one second candidate node.
[0566] In some embodiments, the candidate nodes other than the at least one third candidate node among the updated at least one third candidate node and the at least one second candidate node can be taken as the updated at least one second candidate node.
[0567] Exemplarily, the updated at least one third candidate node is the updated node e, and the candidate nodes other than the at least one third candidate node among the at least one second candidate node are node f, node o, and node p. Take the updated node e, node f, node o, and node p as the updated at least one second candidate node.
[0568] In another specific embodiment, S203 may also include: determining the local motion information of each third candidate node based on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first reference node; updating the tenth geometric parameter of the corresponding third candidate node based on the local motion information of each third candidate node, and determining the updated tenth geometric parameter of at least one third candidate node, thereby determining at least one updated third candidate node; using the candidate nodes other than at least one third candidate node among the updated at least one third candidate node and at least one third reference node as at least one updated third reference node; using the updated at least one third reference node and at least one fourth reference node as at least one updated second candidate node.
[0569] Exemplarily, based on the first reference node (node g) in the first reference frame, local motion processing is performed on the fourth angle parameter value of at least one third candidate node that matches a preset node (for example, 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).
[0570] 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).
[0571] Further, 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).
[0572] It should be noted that, in the embodiment 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.
[0573] S204: Determine a geometric prediction value of the node to be encoded based on the first candidate node and the at least one updated second candidate node.
[0574] 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.
[0575] In some embodiments, 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.
[0576] In some embodiments, the method may further include: determining a geometric prediction residual value of the node to be encoded based on the geometric prediction value of the node to be encoded; encoding the geometric prediction residual value of the node to be encoded, and writing the obtained encoding bits into the bitstream.
[0577] In a specific embodiment, determining the geometric prediction residual value of the node to be encoded based on the geometric prediction value of the node to be encoded can include: determining the initial residual value of the node to be encoded based on the geometric prediction value of the node to be encoded; quantizing the initial residual value of the node to be encoded based on a quantization parameter to obtain the geometric prediction residual value of the node to be encoded.
[0578] In a specific embodiment, 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.
[0579] In some embodiments, the method may further include: encoding the quantization parameter, and writing the obtained encoded bits into a bitstream.
[0580] 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.
[0581] In the embodiment of the present application, the encoding method is mainly for encoding optimization of inter-frame prediction mode values. Here, it is also possible to determine whether the current node uses inter-frame prediction mode and generate a flag to indicate it. Therefore, in some embodiments, the method may also include:
[0582] 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;
[0583] 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.
[0584] Furthermore, with respect to the first identification information, in some embodiments, determining a prediction mode of the node to be encoded and generating the first identification information based on the prediction mode may include:
[0585] 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;
[0586] 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
[0587] 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.
[0588] 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.
[0589] Furthermore, in some embodiments, the method may further include: encoding the first identification information, and writing the obtained encoded bits into a bitstream.
[0590] It should also be noted that, in the embodiment of the present application, taking the flag written into the code stream as an example, assuming that the prediction mode of the node to be encoded is determined to be the inter-frame prediction mode, the first identification information generated is the second value, and the prediction mode of the node to be encoded is determined not to be the inter-frame prediction mode, the first identification information generated is the first value. The first value is 0 and the second value is 1. At this time, if it is determined that the node to be encoded does not use the inter-frame prediction mode, then the first identification information is 0, that is, there is no need to execute the encoding method of the embodiment of the present application; if it is determined that the node to be encoded uses the inter-frame prediction mode, then the first identification information is 1, that is, it is necessary to execute the encoding method of the embodiment of the present application. In this way, subsequently at the decoding end, by decoding to obtain the first identification information, it is possible to determine whether the node to be decoded uses the inter-frame prediction mode, thereby improving decoding efficiency.
[0591] Furthermore, in the embodiment of the present application, a flag bit 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:
[0592] 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;
[0593] 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.
[0594] Furthermore, with respect to the second identification information, in some embodiments, determining whether to enable the local motion processing mode and generating the second identification information may include:
[0595] 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;
[0596] 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.
[0597] 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.
[0598] 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.
[0599] Furthermore, in some embodiments, the method may further include: encoding the value of the second identification information, and writing the obtained encoded bits into the bitstream.
[0600] It should also be noted that, in the embodiment of the present application, taking the flag written into the code stream as an example, assuming that it is determined that the node to be encoded enables the local motion processing mode, the first identification information generated is the second value, and it is determined that the node to be encoded does not enable the local motion processing mode, and the first identification information generated is the first value. The first value is 0 and the second value is 1. At this time, if it is determined that the node to be encoded does not enable the local motion processing mode, then the first identification information is 0, that is, there is no need to execute the encoding method of the embodiment of the present application; if it is determined that the node to be encoded enables the local motion processing mode, then the first identification information is 1, that is, it is necessary to execute the encoding method of the embodiment of the present application. In this way, subsequently at the decoding end, the value of the second identification information can also be directly obtained through decoding, so that it can be determined whether the node to be decoded enables local motion processing, thereby improving decoding efficiency.
[0601] 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.
[0602] In another embodiment of the present application, the embodiment of the present application further provides a code stream, which is generated by bit encoding based on the information to be encoded; wherein the information to be encoded may include at least one of the following:
[0603] The geometric prediction residual value, quantization parameter, prediction node index value, first identification information and second identification information of the node to be encoded;
[0604] The first identification information is used to indicate whether the node to be encoded uses the inter-frame prediction mode, and the second identification information is used to indicate whether the node to be encoded enables the local motion processing mode.
[0605] After determining the information to be encoded, the encoder can encode it and write the resulting coded bits into a bitstream, which is then transmitted to the decoder. The decoder then decodes the bitstream to obtain information such as the geometric prediction residual value, quantization parameter, and inter-frame prediction mode value for the current node, thereby restoring the geometric reconstruction information for the current node.
[0606] This embodiment provides a coding method, which determines a first coded node preceding a node to be coded in a current frame; determines a first candidate node having at least one geometric parameter identical to the first coded node in a reference frame, and determines at least one second candidate node in the reference frame based on the first candidate node; performs local motion processing on the geometric parameters of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node; and determines a 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 geometric parameters of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node, and determines a geometric prediction value of the node to be coded based on the first candidate node and the at least one updated second candidate node, the geometric prediction value has prior information related to local motion, which can improve the accuracy of inter-frame coding, thereby improving the coding efficiency of the geometric information of the point cloud and improving the coding performance of the point cloud.
[0607] In another embodiment of the present application, based on the encoding / decoding method described in the aforementioned embodiment, since the related technology has a small number of points for inter-frame candidate nodes, the main focus here is to expand the candidate nodes in the inter-frame candidate node set so that the inter-frame candidate nodes can be fully selected, thereby achieving better prediction.
[0608] 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.
[0609] Example: (6 points)
[0610] At the encoder, based on FIG24 , when performing inter-frame predictive coding on the current point to be coded, the prediction tree is traversed to find the previously coded node a before the current point to be coded;
[0611] Search for a point b in the previous frame as a reference frame that has the same φ and laserID as the node a that was previously encoded before the current point, and use points c, d, m, and n that were encoded or decoded after point b in the previous frame as candidate points between frames; or
[0612] In the previous frame as the reference frame, find a point c that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point a.
[0613] In the previous frame as the reference frame, find a point d that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point c.
[0614] In the previous frame as the reference frame, find a point m that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point d.
[0615] In the previous frame as the reference frame, find a point n that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point m.
[0616] 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;
[0617] In the previous frame that has undergone global motion and is used as a reference frame, a point g with the same φ and laserID as the node a that has been encoded before the current point is found. Points e and f that have been encoded or decoded after point g in the previous frame that has undergone global motion and is used as candidate points between frames.
[0618] or
[0619] In the previous frame as the reference frame, find a point g that has the same laserID as the node a that has been encoded before the current point and whose φ is less than or equal to the φ of point a.
[0620] In the previous frame as the reference frame, find a point e that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point g.
[0621] In the previous frame as the reference frame, find a point f that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point e.
[0622] 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;
[0623] The inter-frame prediction point e is refined using local motion:
[0624] 1. First, perform coordinate conversion on the inter-frame prediction point, converting the radar coordinates of point e into Cartesian coordinates;
[0625] 2. Convert the radar coordinates of points a and g to Cartesian coordinates;
[0626] 3. Calculate the difference between the Cartesian coordinates of point a and point g;
[0627] 4. Add the above difference to the Cartesian coordinates of the inter-frame prediction point e;
[0628] 5. Then convert the new Cartesian coordinates of the inter-frame prediction point e into radar coordinates.
[0629] 6. Replace all radar coordinates (radius, φ, laserIdx) of the inter-frame prediction point e with the new radar coordinates.
[0630] Conversion method from Cartesian coordinate system to radar coordinate system:
[0631] The point coordinates of the point cloud input are (x, y, z). Using the prior radar information of the current point cloud, the position information of the point cloud is converted into (radius, φ, laserIdx)
[0632] The calculation method of the LaserIdx of the node or point is as follows: Assume that the geometric coordinates of the point are pointPos, the starting coordinates of the laser ray are LidarOrigin, and the number of Lasers is LaserNum, and the tangent value of each Laser is tanθ i , the vertical offset position of each Laser is Z i ,but:
[0633] Assume that the geometric coordinates of the node are pointPos, pointPos[0] = x, pointPos[1] = y, pointPos[2] = z
[0634] Where, φ = arctan(pointPos[1] / pointPos[0]).
[0635] Among them, radius is
[0636] LidarOrigin is usually 0.
[0637] The method of converting the radar coordinate system into the Cartesian coordinate system is the inverse process of the above process.
[0638] Select different prediction points through RDO rate-distortion optimization
[0639] Among them, there are requirements for the order of candidate prediction points.
[0640] Perform RDO rate-distortion optimization in the order of cdefmn to select the optimal inter-frame prediction point.
[0641] Among them, selecting the inter-frame prediction mode as c, d, m or n corresponds to a parameter for selecting a context model, and selecting the inter-frame prediction mode as e or f corresponds to another parameter for selecting a context model to perform entropy encoding / decoding of the subsequent residual coefficients.
[0642] The geometric position information of the nodes 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 bit stream.
[0643] At the decoding end, the decoding end continuously parses the bitstream, reconstructs the prediction tree structure, and traverses the prediction tree to find the previous decoded node a before the current point to be decoded;
[0644] Decode prediction mode;
[0645] Among them, there are requirements for the order of candidate prediction points.
[0646] The prediction mode for decoding selects inter-frame prediction points in the order of cdefmn.
[0647] If the prediction mode is inter, the prediction point is selected from the following up to 10 candidate points using the decoded prediction mode:
[0648] Search for a point b in the previous frame as a reference frame that has the same φ and laserID as the node a that was previously decoded before the current point, and use points c, d, m, and n that were encoded or decoded after point b in the previous frame as candidate points between frames; or
[0649] In the previous frame as the reference frame, find a point c that has the same laserID as the node a that was previously encoded before the current point and whose φ is greater than that of point b.
[0650] In the previous frame as the reference frame, find a point d that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point c.
[0651] In the previous frame as the reference frame, find a point m that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point d.
[0652] In the previous frame as the reference frame, find a point n that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point m.
[0653] Points c, d, m, and n encoded or decoded after point b in the previous reference frame are used as candidate points between frames;
[0654] In the previous frame that has undergone global motion and is used as a reference frame, a point g with the same φ and laserID as the node a that has been decoded before the current point is decoded is searched, and points e and f that are encoded or decoded after point g in the previous frame that has undergone global motion and is used as candidate points between frames; or,
[0655] In the previous frame as the reference frame, find a point g that has the same laserID as the node a that has been encoded before the current point and whose φ is less than or equal to the φ of point a.
[0656] In the previous frame as the reference frame, find a point e that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point g.
[0657] In the previous frame as the reference frame, find a point f that has the same laserID as the node a that has been encoded before the current point and whose φ is greater than that of point e.
[0658] 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;
[0659] The inter-frame prediction point e is refined using local motion:
[0660] 1. First, perform coordinate conversion on the inter-frame prediction point, converting the radar coordinates of point e into Cartesian coordinates;
[0661] 2. Convert the radar coordinates of points a and g to Cartesian coordinates;
[0662] 3. Calculate the difference or motion vector between the Cartesian coordinates of point a and point g;
[0663] 4. Add the above difference to the Cartesian coordinates of the inter-frame prediction point e;
[0664] 5. Then convert the new Cartesian coordinates of the inter-frame prediction point e into radar coordinates.
[0665] 6. Replace all radar coordinates (radius, φ, laserIdx) of the inter-frame prediction point e with the new radar coordinates.
[0666] Conversion method from Cartesian coordinate system to radar coordinate system:
[0667] The point coordinates of the point cloud input are (x, y, z). Using the prior radar information of the current point cloud, the position information of the point cloud is converted into (radius, φ, laserIdx)
[0668] The LaserIdx of a node or point is calculated as follows: Assuming the geometric coordinates of the point are pointPos, the starting coordinates of the laser ray are LidarOrigin, and assuming the number of lasers is LaserNum, the tangent value of each laser is tanθi, and the offset position of each laser in the vertical direction is Zi, then:
[0669] Assume that the geometric coordinates of the node are pointPos, pointPos[0] = x, pointPos[1] = y, pointPos[2] = z
[0670] Where φ = arctan(pointPos[1] / pointPos[0])
[0671] Among them, radius is
[0672] LidarOrigin is usually 0.
[0673] The method of converting the radar coordinate system into the Cartesian coordinate system is the inverse process of the above process.
[0674] Among them, selecting the inter-frame prediction mode as c, d, m or n corresponds to a parameter for selecting a context model, and selecting the inter-frame prediction mode as e or f corresponds to another parameter for selecting a context model to perform entropy encoding / decoding of the subsequent residual coefficients.
[0675] Secondly, 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.
[0676] The specific test results are shown in the following table. See Table 2-1, which shows the test results of the embodiment of the present application under the condition of lossless geometric position and lossless attributes. It can be seen that the encoding and decoding performance is improved.
[0677] Table 2-1
[0678] 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 250 may include: a decoding unit 2501, a first determination unit 2502, and a first local motion processing unit 2503; wherein,
[0679] The decoding unit 2501 is configured to parse the code stream, determine the predicted node index value corresponding to the node to be decoded; determine the first decoded node before the node to be decoded in the current frame;
[0680] The first determining unit 2502 is configured to determine a predicted node according to the predicted node index value and the first decoded node;
[0681] The first local motion processing unit 2503 is configured to perform local motion processing on the first geometric parameter of the prediction node based on the first decoded node to determine the second geometric parameter of the prediction node.
[0682] In some embodiments, the first local motion processing unit 2503 is further configured to determine the local motion information of the predicted node based on the fourth geometric parameter of the second decoded node and the third geometric parameter of the first decoded node when the predicted node index value indicates that the predicted node is a preset node; the second angle parameter value of the second decoded node is less than or equal to and closest to the first 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, perform local motion processing on the first geometric parameter of the predicted node to determine the second geometric parameter of the predicted node;
[0683] The first determination unit 2502 is further configured to determine a geometric prediction value of the node to be decoded based on the first geometric parameter or the second geometric parameter.
[0684] In some embodiments, the reference frame where the prediction node is located includes: a first reference frame and a second reference frame.
[0685] In some embodiments, the first reference frame is at least one frame obtained by performing global motion on the second reference frame.
[0686] In some embodiments, the second reference frame is a decoded frame that is K frames before the current frame, where K is an integer greater than 0.
[0687] In some embodiments, the preset node is at least one decoded node in the first reference frame except the second decoded node.
[0688] In some embodiments, the first local motion processing unit 2503 is further configured to perform first coordinate transformation processing on the third geometric parameter of the first decoded node and the fourth geometric parameter of the second decoded node, respectively, to determine the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node; based on the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node, determine the local motion information of the predicted node.
[0689] In some embodiments, the first local motion processing unit 2503 is further configured to subtract the fifth geometric parameter of the first decoded node from the sixth geometric parameter of the second decoded node to determine a difference value; or to rotate or translate the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node to determine a motion vector; and to determine the local motion information using the difference value or the motion vector.
[0690] In some embodiments, the first local motion processing unit 2503 is further configured to perform a first coordinate transformation on the first geometric parameter of the prediction node to determine the seventh geometric parameter of the prediction node; add the seventh geometric parameter of the prediction node and the local motion information to obtain the eighth geometric parameter of the prediction node; perform a second coordinate transformation on the eighth geometric parameter of the prediction node to determine the ninth geometric parameter of the prediction node; and determine the ninth geometric parameter of the prediction node as the second geometric parameter of the prediction node.
[0691] In some embodiments, the first determining unit 2502 is further configured to use the first geometric parameter of the predicted node as the second geometric parameter when the predicted node index value indicates that the predicted node is not a preset node.
[0692] In some embodiments, the first determination unit 2502 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 second angle parameter value of the second decoded node is less than or equal to and closest to the first 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, the predicted node is determined, the third angle parameter value of the predicted node is greater than the second angle parameter value of the second decoded node, and the predicted node and the second decoded node have the same radar index.
[0693] In some embodiments, the first determination unit 2502 is further configured to use the second angle parameter value corresponding to the second decoded node as the third 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 predicted node index value and the second decoded node; wherein the at least one next decoded node includes 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; and the at least one next decoded node has the same radar index as the second decoded node.
[0694] In some embodiments, the first determination unit 2502 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 second angle parameter value of the second decoded node is less than or equal to and closest to the first angle parameter value of the first decoded node, and the second decoded node and the first decoded node have the same radar index; the second angle parameter value corresponding to the second decoded node is used as the third 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.
[0695] In some embodiments, the decoding unit 2501 is further configured to parse the bitstream to determine the geometric residual information and quantization parameter of the node to be decoded;
[0696] The first determination unit 2502 is further configured to perform inverse quantization processing on the geometric residual information based on the quantization parameter to determine the geometric prediction residual; and determine the reconstructed geometric parameters of the node to be decoded based on the geometric prediction residual and the geometric prediction value.
[0697] In some embodiments, the first determination unit 2502 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.
[0698] In some embodiments, the decoding unit 2501 is further configured to parse the code stream to determine the first identification information;
[0699] The first determining unit 2502 is further configured to determine a prediction node according to the node index value and the first decoded node when the first identification information indicates that the node to be decoded uses the inter-frame prediction mode.
[0700] In some embodiments, the first determination unit 2502 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.
[0701] In some embodiments, the decoding unit 2501 is further configured to parse the code stream to determine the second identification information;
[0702] The first determination unit 2502 is further configured to perform a step of performing local motion processing on the first geometric parameters of the predicted node based on the first decoded node to determine the second geometric parameters of the predicted node when the second identification information indicates that the local motion processing mode is enabled for the node to be decoded.
[0703] In some embodiments, the first determination unit 2502 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.
[0704] In some embodiments, the first determining unit 2502 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.
[0705] In some embodiments, the first coordinate transformation process represents converting radar coordinates into Cartesian coordinates; and the second coordinate transformation process represents converting Cartesian coordinates into radar coordinates.
[0706] 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.
[0707] 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 for use in decoder 250. The computer-readable storage medium stores a computer program that, when executed by a second processor, implements any of the methods described in the aforementioned embodiments.
[0708] Based on the composition of the above-mentioned decoder 250 and the computer-readable storage medium, refer to Figure 26, which shows a specific hardware structure diagram of the decoder 250 provided in an embodiment of the present application. As shown in Figure 26, the decoder 250 may include: a first communication interface 2601, a first memory 2602 and a first processor 2603; each component is coupled together through a first bus system 2604. It can be understood that the first bus system 2604 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 2604 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 2604 in Figure 26. Among them,
[0709] The first communication interface 2601 is used to receive and send signals when sending and receiving information with other external network elements;
[0710] The first memory 2602 is used to store computer programs that can be run on the second processor 2603;
[0711] The first processor 2603 is configured to, when running the computer program, execute:
[0712] Parse the code stream to determine the predicted node index value corresponding to the node to be decoded;
[0713] Determine a first decoded node preceding the node to be decoded in the current frame;
[0714] Determining a prediction node according to the prediction node index value and the first decoded node;
[0715] Based on the first decoded node, local motion processing is performed on the first geometric parameter of the prediction node to determine the second geometric parameter of the prediction node.
[0716] Optionally, as another embodiment, the first processor 2603 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.
[0717] It is understood that the first memory 2602 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 2602 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0718] The first processor 2603 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 2603. The above-mentioned first processor 2603 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 2602 , and the first processor 2603 reads the information in the first memory 2602 and completes the steps of the above method in combination with its hardware.
[0719] 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.
[0720] Optionally, as another embodiment, the first processor 2603 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.
[0721] 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 geometric parameters 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.
[0722] 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 composition structure of an encoder provided by an embodiment of the present application. As shown in FIG27 , the encoder 270 may include: a second determination unit 2701, a second local motion processing unit 2702, and a prediction unit 2703; wherein,
[0723] The second determining unit 2701 is configured to determine a first coded node preceding the node to be coded in the current frame; 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;
[0724] The second local motion processing unit 2702 is configured to perform local motion processing on the geometric parameters of at least one candidate node among the at least one second candidate node to obtain an updated at least one second candidate node;
[0725] The prediction unit 2703 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.
[0726] In some embodiments, the second angle parameter value of the first candidate node is less than or equal to and closest to the first angle parameter value of the first encoded node.
[0727] In some embodiments, the second local motion processing unit 2702 is further configured to determine at least one third candidate node that matches the preset node from the at least one second candidate node; determine local motion information based on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first candidate node; update the tenth geometric parameter of each of the third candidate nodes based on the local motion information to obtain the updated tenth geometric parameter 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 other than the at least one third candidate node in the at least one second candidate node as the updated at least one second candidate node.
[0728] In some embodiments, the reference frame includes: a first reference frame and a second reference frame.
[0729] In some embodiments, the first reference frame is at least one frame obtained by performing global motion on the second reference frame.
[0730] In some embodiments, the second reference frame is an encoded frame that is K frames before the current frame, where K is an integer greater than 0.
[0731] In some embodiments, the preset node is at least one candidate node in the first reference frame except the first candidate node.
[0732] In some embodiments, the second local motion processing unit 2702 is further configured to perform first coordinate transformation processing on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first candidate node, respectively, to determine the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node; and determine the local motion information based on the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node.
[0733] In some embodiments, the second local motion processing unit 2702 is further configured to subtract the fifth geometric parameter of the first encoded node from the sixth geometric parameter of the first candidate node to determine a difference value; or, to rotate or translate the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node to determine a motion vector; and to determine the local motion information using the difference value or the motion vector.
[0734] In some embodiments, the second local motion processing unit 2702 is further configured to perform a first coordinate transformation on the tenth geometric parameter of each third candidate node to determine the eleventh geometric parameter of each third candidate node; add the eleventh geometric parameter of each third candidate node to the local motion information to determine the twelfth geometric parameter of each third candidate node; perform a second coordinate transformation on the twelfth geometric parameter of each third candidate node to determine the updated tenth geometric parameter of each third candidate node.
[0735] In some embodiments, 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.
[0736] In some embodiments, the second determination unit 2701 is further configured to determine the first reference node having the same radar index as the first encoded node in the first 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 second reference frame; and determine at least one fourth reference node in the second reference frame based on the second reference candidate node.
[0737] In some embodiments, the second angle parameter value of the first reference node is less than or equal to and closest to the first angle parameter value of the first encoded node.
[0738] In some embodiments, the fourth angle parameter value of the at least one third reference node is greater than the second 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.
[0739] In some embodiments, the second angle parameter value of the second reference node is less than or equal to and closest to the first angle parameter value of the first encoded node.
[0740] In some embodiments, the fifth angle parameter value of the at least one fourth reference node is greater than the second angle parameter value of the second reference node, and the at least one fourth reference node and the second reference node have the same radar index.
[0741] In some embodiments, the second determining unit 2701 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.
[0742] In some embodiments, the second determining unit 2701 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.
[0743] In some embodiments, the second local motion processing unit 2702 is further configured to determine the local motion information of each third candidate node based on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first reference node; update the tenth geometric parameter of the corresponding third candidate node based on the local motion information of each third candidate node, and determine the updated tenth geometric parameter of the at least one third candidate node, thereby determining the updated at least one third candidate node; use the candidate nodes other than the at least one third candidate node in the updated at least one third candidate node and the at least one third reference 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.
[0744] In some embodiments, 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.
[0745] In some embodiments, the second determining unit 2701 is further configured to calculate cost values for the first candidate node and each of the updated second candidate nodes, respectively, to obtain multiple rate-distortion cost results; and determine the candidate node corresponding to the minimum rate-distortion cost among the multiple rate-distortion cost results as the predicted node;
[0746] The prediction unit 2703 is further configured to determine a geometric prediction value of the node to be encoded based on the prediction node.
[0747] In some embodiments, referring to FIG. 27 , the encoder 270 may further include an encoding unit 2704 ; wherein:
[0748] The second determining unit 2701 is further configured to determine a predicted node index value corresponding to the node to be encoded in a preset order;
[0749] The encoding unit 2704 is configured to encode the prediction node index value and write the obtained encoding bits into the bitstream.
[0750] In some embodiments, the second determining unit 2701 is further configured to determine a geometric prediction residual value of the node to be encoded based on the geometric prediction value of the node to be encoded;
[0751] The encoding unit 2704 is further configured to encode the geometric prediction residual value of the node to be encoded and write the obtained encoding bits into the bitstream.
[0752] In some embodiments, the second determination unit 2701 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 prediction residual value of the node to be encoded.
[0753] In some embodiments, the second determination unit 2701 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.
[0754] In some embodiments, the encoding unit 2704 is further configured to encode the quantization parameter and write the obtained encoded bits into the bitstream.
[0755] In some embodiments, the second determination unit 2701 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.
[0756] In some embodiments, the second determination unit 2701 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.
[0757] In some embodiments, the encoding unit 2704 is further configured to encode the first identification information and write the obtained encoded bits into the bit stream.
[0758] In some embodiments, the second determination unit 2701 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.
[0759] In some embodiments, the second determination unit 2701 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.
[0760] In some embodiments, the encoding unit 2704 is further configured to encode the second identification information and write the obtained encoded bits into the bitstream.
[0761] In some embodiments, the second determining unit 2701 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.
[0762] In some embodiments, the first coordinate transformation process represents converting radar coordinates into Cartesian coordinates; and the second coordinate transformation process represents converting Cartesian coordinates into radar coordinates.
[0763] 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.
[0764] 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.
[0765] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 270. 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.
[0766] Based on the composition of the above-mentioned encoder 270 and the computer-readable storage medium, refer to Figure 28, which shows a specific hardware structure diagram of the encoder 270 provided in an embodiment of the present application. As shown in Figure 28, the encoder 270 may include: a second communication interface 2801, a second memory 2802 and a second processor 2803; each component is coupled together through a second bus system 2804. It can be understood that the second bus system 2804 is used to realize the connection and communication between these components. In addition to the data bus, the second bus system 2804 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the second bus system 2804 in Figure 28. Among them,
[0767] The second communication interface 2801 is used to receive and send signals when sending and receiving information with other external network elements;
[0768] The second memory 2802 is used to store computer programs that can be run on the second processor 2803;
[0769] The second processor 2803 is configured to, when running the computer program, execute:
[0770] Determine a first coded node preceding the node to be coded in the current frame;
[0771] 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;
[0772] performing local motion processing on geometric parameters of at least one candidate node among the at least one second candidate node to obtain at least one updated second candidate node;
[0773] 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.
[0774] It can be understood that the hardware functions of the second memory 2802 are similar to those of the first memory 2602, and the hardware functions of the second processor 2803 are similar to those of the first processor 2603; they will not be described in detail here.
[0775] Optionally, as another embodiment, the second processor 2803 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.
[0776] This embodiment provides an encoder, in which the candidate nodes for inter-frame prediction are mainly optimized. Specifically, local motion processing is performed on the geometric parameters 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 coding performance of the point cloud.
[0777] 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 , a coding and decoding system 290 may include an encoder 2901 and a decoder 2902 .
[0778] In the embodiment of the present application, the encoder 2901 may be the encoder described in any one of the aforementioned embodiments, and the decoder 2902 may be the decoder described in any one of the aforementioned embodiments.
[0779] 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.
[0780] 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.
[0781] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0782] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0783] 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.
[0784] 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
[0785] 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; finally, based on the first decoded node, local motion processing is performed on the first geometric parameter of the predicted node to determine the second geometric parameter of the predicted node; based on the first geometric parameter or the second geometric parameter, 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, local motion processing is performed on the geometric parameters of at least one candidate node of the at least one second candidate node to obtain at least one updated second candidate node; finally, based on the first candidate node and the at least one updated second candidate node, the geometric prediction value of the node to be encoded is determined. In this way, the technical solution of this application is mainly aimed at optimizing the candidate nodes used for inter-frame prediction. Compared with related technologies, local motion processing is performed on the geometric parameters of the candidate 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 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 comprising: 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 geometric parameter of the prediction node to determine the second geometric parameter of the prediction node; Determine a geometric prediction value of the node to be decoded according to the first geometric parameter or the second geometric parameter.
2. The method according to claim 1, wherein: The performing local motion processing on the first geometric parameter of the prediction node based on the first decoded node to determine the second geometric parameter 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 of the predicted node is determined based on the fourth geometric parameter of the second decoded node and the third geometric parameter of the first decoded node; the second angle parameter value of the second decoded node is less than or equal to and closest to the first 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, local motion processing is performed on the first geometric parameter of the prediction node to determine the second geometric parameter of the prediction node.
3. The method according to claim 2, wherein: 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, wherein: 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, wherein: The determining the local motion information of the predicted node based on the acquired fourth geometric parameter of the second decoded node and the third geometric parameter of the first decoded node comprises: Performing first coordinate transformation processing on the third geometric parameter of the first decoded node and the fourth geometric parameter of the second decoded node respectively, to determine the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node; Based on the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node, local motion information of the predicted node is determined.
6. The method according to claim 5, wherein: The determining the local motion information of the predicted node based on the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node comprises: Subtracting the fifth geometric parameter of the first decoded node from the sixth geometric parameter of the second decoded node to determine a difference value; or rotating or translating the fifth geometric parameter of the first decoded node and the sixth geometric parameter of the second decoded node to determine a motion vector; The difference value or the motion vector is determined as the local motion information.
7. The method according to any one of claims 2 to 6, wherein: The performing local motion processing on the first geometric parameter of the prediction node based on the local motion information to determine the second geometric parameter of the prediction node includes: Performing a first coordinate transformation process on the first geometric parameter of the prediction node to determine a seventh geometric parameter of the prediction node; adding the seventh geometric parameter of the prediction node and the local motion information to obtain an eighth geometric parameter of the prediction node; Performing a second coordinate transformation process on the eighth geometric parameter of the prediction node to determine a ninth geometric parameter of the prediction node; The ninth geometric parameter of the prediction node is determined as the second geometric parameter of the prediction node.
8. The method according to claim 1, wherein: The method further comprises: The predicted node index value represents that when the predicted node is not a preset node, the first geometric parameter of the predicted node is used as the second geometric parameter.
9. The method according to any one of claims 1 to 8, wherein: 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, determining a second decoded node; the second angle parameter value of the second decoded node is less than or equal to and closest to the first 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, the third angle parameter value of the predicted node is greater than the second angle parameter value of the second decoded node, and the predicted node and the second decoded node have the same radar index.
10. The method according to claim 9, wherein: The determining the predicted node based on the second decoded node comprises: using the second angle parameter value corresponding to the second decoded node as the third angle parameter value of the predicted node; or, In the reference frame where the predicted node is located, at least one next decoded node is determined based on the predicted node index value and the second decoded node; wherein 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 its previous decoded node; and the at least one next decoded node has the same radar index as the second decoded node.
11. The method according to any one of claims 1 to 8, wherein: 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, determining a second decoded node; the second angle parameter value of the second decoded node is less than or equal to and closest to the first 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 second angle parameter value corresponding to the second decoded node as the third 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.
12. The method according to claim 1, wherein: 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, inverse quantization is performed 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.
13. The method according to claim 12, wherein: 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.
14. The method according to any one of claims 1 to 13, wherein: The method further comprises: Parsing 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, a prediction node is determined according to the node index value and the first decoded node.
15. The method according to claim 14, wherein: The method further comprises: 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.
16. The method according to any one of claims 1 to 15, wherein: 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 geometric parameter of the predicted node based on the first decoded node to determine the second geometric parameter of the predicted node.
17. The method according to claim 16, wherein: 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.
18. The method according to any one of claims 1 to 17, wherein: 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.
19. The method according to any one of claims 5 to 7, wherein: The first coordinate transformation process represents converting radar coordinates into Cartesian coordinates; The second coordinate transformation process represents the conversion of Cartesian coordinates into radar coordinates.
20. A coding method, applied to an encoder, the method comprising: 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 geometric parameters 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.
21. The method according to claim 20, wherein: The second angle parameter value of the first candidate node is less than or equal to and closest to the first angle parameter value of the first encoded node.
22. The method according to claim 20, wherein: The performing local motion processing on the geometric parameters 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 at least one third candidate node matching the preset node from the at least one second candidate node; Determining local motion information based on a third geometric parameter of the first encoded node and a fourth geometric parameter of the first candidate node; Based on the local motion information, the tenth geometric parameter of each of the third candidate nodes is updated to obtain the updated tenth geometric parameter 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.
23. The method according to any one of claims 20 to 22, wherein: 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.
24. The method according to claim 22, wherein: The preset node is at least one candidate node in the first reference frame except the first candidate node.
25. The method according to claim 22 or 24, wherein: The determining the local motion information based on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first candidate node includes: Performing first coordinate transformation processing on the third geometric parameter of the first encoded node and the fourth geometric parameter of the first candidate node respectively, to determine the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node; The local motion information is determined based on a fifth geometric parameter of the first encoded node and a sixth geometric parameter of the first candidate node.
26. The method according to claim 25, wherein: The determining the local motion information based on the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node includes: Subtracting the fifth geometric parameter of the first encoded node from the sixth geometric parameter of the first candidate node to determine a difference value; or rotating or translating the fifth geometric parameter of the first encoded node and the sixth geometric parameter of the first candidate node to determine a motion vector; The difference value or the motion vector is determined as the local motion information.
27. The method according to any one of claims 22, 24 or 26, wherein: The updating of the tenth geometric parameter of the corresponding third candidate node based on the local motion information of each third candidate node to obtain the updated tenth geometric parameter of the at least one third candidate node includes: Performing a first coordinate transformation process on the tenth geometric parameter of each third candidate node to determine an eleventh geometric parameter of each third candidate node; Adding the eleventh geometric parameter of each of the third candidate nodes to the local motion information respectively to determine the twelfth geometric parameter of each of the third candidate nodes; A second coordinate transformation process is performed on the twelfth geometric parameter of each of the third candidate nodes to determine an updated tenth geometric parameter of each of the third candidate nodes.
28. The method according to any one of claims 20 to 27, wherein: 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.
29. The method according to claim 28, wherein: The second angle parameter value of the first reference node is less than or equal to and closest to the first angle parameter value of the first encoded node; The fourth angle parameter value of the at least one third reference node is greater than the second 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 second angle parameter value of the second reference node is less than or equal to and closest to the first angle parameter value of the first encoded node; The fifth angle parameter value of the at least one fourth reference node is greater than the second 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.
30. The method of claim 28, wherein: 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.
31. The method according to claim 28 or 30, wherein: 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.
32. The method according to any one of claims 28 to 31, wherein: The performing local motion processing on the geometric parameters 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: Determining local motion information of each third candidate node based on a third geometric parameter of the first encoded node and a fourth geometric parameter of the first reference node; Based on the local motion information of each third candidate node, the tenth geometric parameter of the corresponding third candidate node is updated to determine the updated tenth geometric parameter 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.
33. The method of claim 32, wherein: 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.
34. The method of claim 20, wherein: 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 includes: 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.
35. The method of claim 20, wherein: 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.
36. The method of claim 20, wherein: The method further comprises: Determining a geometric prediction residual value of the node to be encoded according to the geometric prediction value of the node to be encoded; The geometric prediction residual value of the node to be encoded is encoded, and the obtained encoding bits are written into the bit stream.
37. The method of claim 36, wherein: The step of determining the geometric prediction residual value 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 prediction residual value of the node to be encoded.
38. The method of claim 37, wherein: The determining, according to the geometric prediction value of the node to be encoded, the 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.
39. The method of claim 37, wherein: The method further comprises: The quantization parameter is encoded, and the obtained encoded bits are written into a bit stream.
40. The method according to any one of claims 20 to 39, wherein: The method further comprises: A prediction mode of the 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; 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.
41. The method of claim 40, wherein: The determining of the first identification information 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, determining the value of the first identification information is the second value.
42. The method of claim 40, wherein: The method further comprises: The first identification information is encoded, and the obtained encoded bits are written into a bit stream.
43. The method according to any one of claims 20 to 39, wherein: 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; If it is determined that the node to be encoded enables the local motion processing mode, the step of determining the first encoded node before the node to be encoded in the current frame is performed.
44. The method of claim 43, wherein: The determining of 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 a local motion processing mode, the value of the second identification information is determined to be a second value.
45. The method of claim 43, wherein: The method further comprises: The second identification information is encoded, and the obtained encoded bits are written into a bit stream.
46. The method according to any one of claims 20 to 45, wherein: 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, the previous coded node of the node to be coded is determined, and the previous coded node is used as the first coded node; the first coded node is the previous coded node of the node to be coded based on the prediction tree order.
47. The method according to any one of claims 25 to 27, wherein: The first coordinate transformation process represents converting radar coordinates into Cartesian coordinates; The second coordinate transformation process represents the conversion of Cartesian coordinates into radar coordinates.
48. A code stream, wherein 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 uses a local motion processing mode.
49. A decoder, comprising a decoding unit, a first determining unit and a first local motion processing unit; wherein: The decoding unit is configured to parse the bitstream, determine the predicted node index value corresponding to the node to be decoded; 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 geometric parameter of the prediction node based on the first decoded node to determine the second geometric parameter of the prediction node; The first determination unit is further configured to determine a geometric prediction value of the node to be decoded according to the first geometric parameter or the second geometric parameter.
50. A decoder, comprising a first memory and a first processor; wherein: The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 1 to 19 when running the computer program.
51. An encoder, comprising a second determination unit, a second local motion processing unit and a prediction unit; wherein: The second determining unit is configured to determine a first encoded node preceding the node to be encoded in the 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; The second local motion processing unit is configured to perform local motion processing on the geometric parameters 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.
52. An encoder, comprising a second memory and a second processor; wherein: The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 20 to 47 when running the computer program.
53. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, which implements the method according to any one of claims 1 to 19 when executed by a first processor, or implements the method according to any one of claims 20 to 47 when executed by a second processor.
Citation Information
Patent Citations
Point cloud geometrical information inter-frame encoding and decoding method
CN112565764A
Method and system for azimuth priori and tree representation for cloud compression
CN114616592A
Prediction coding and decoding method and device for point cloud azimuth angle information
CN115412717A
Point cloud coding method, point cloud decoding method and terminal
CN115474051A
Point cloud prediction method and device, point cloud coding method and device and point cloud decoding method and device
CN115720272A
