Point cloud coding method and apparatus, point cloud decoding method and apparatus, device, and storage medium

By utilizing the plane structure information of neighborhood nodes for point cloud encoding and decoding, the problem of poor predictive coding performance of plane structure information in the existing technology is solved, and the encoding and decoding efficiency and performance of point clouds are improved.

WO2024197680A1PCT designated stage expired Publication Date: 2024-10-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Application Number
PCT/CN2023/084912
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In the process of point cloud coding in the existing technology, for flat nodes or nodes with planar characteristics, when predictive coding is performed through a priori reference information, the predictive coding performance of planar structure information is poor, resulting in low coding efficiency.

Method used

Based on the plane structure information of neighboring nodes, the current node is predictively decoded, and the placeholder information of N neighbor nodes is used to improve the predictive encoding and decoding performance of the plane structure information.

Benefits of technology

It improves the encoding and decoding efficiency and performance of point clouds and improves the accuracy of predictive coding of planar structure information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023084912_03102024_PF_FP_ABST
    Figure CN2023084912_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a point cloud coding method and apparatus, a point cloud decoding method and apparatus, a device, and a storage medium. The point cloud decoding method comprises: when decoding planar structure information of a current node, determining first information corresponding to the current node, wherein the first information is used for indicating whether a first-type neighborhood node of the current node is present, and the first-type neighborhood node is a neighborhood node having geometric information decoded; on the basis of the first information, acquiring occupancy information of N neighborhood nodes of the current node; and on the basis of the occupancy information of the N neighborhood nodes, performing predictive decoding on the planar structure information of the current node. That is, according to the embodiments of the present application, when performing predictive decoding on the planar structure information of the current node, the correlation of planar structure information between adjacent nodes is taken into consideration, and the type of neighborhood nodes is taken into consideration, so that the decoding efficiency of geometric information of point clouds can be effectively improved, thereby improving the predictive decoding performance of planar structure information, and improving the decoding efficiency and performance of point clouds.
Need to check novelty before this filing date? Find Prior Art

Description

Point cloud encoding and decoding method, device, equipment and storage medium Technical Field

[0001] The present application relates to the field of point cloud technology, and in particular to a point cloud encoding and decoding method, apparatus, device and storage medium. Background Art

[0002] Capture equipment captures the surface of an object, generating point cloud data. This data consists of hundreds of thousands or even more points. During video production, this point cloud data is transmitted between the point cloud encoding device and the point cloud decoding device in the form of point cloud media files. However, such a large number of points poses a challenge to transmission. Therefore, the point cloud encoding device must compress the point cloud data before transmission.

[0003] Point cloud compression, also known as point cloud encoding, can further improve the efficiency of encoding point cloud geometric information for relatively flat or planar nodes by utilizing planar encoding. However, related technologies only predictively encode the planar structure information of the current node based on some prior reference information, resulting in poor performance in predictive encoding of planar structure information.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a point cloud encoding and decoding method, apparatus, device and storage medium, which predictively encode and decode the plane structure information of the current node based on the plane structure information of the neighboring nodes, thereby improving the predictive encoding and decoding performance of the plane structure information of the current node.

[0006] In a first aspect, an embodiment of the present application provides a point cloud decoding method, comprising:

[0007] Determine first information corresponding to the current node, where the first information is used to indicate whether a first type of neighboring node of the current node is valid, where the first type of neighboring node is a neighboring node whose geometric information has been decoded;

[0008] Based on the first information, obtain the occupancy information of N neighboring nodes of the current node, where N is a positive integer;

[0009] Based on the occupancy information of the N neighboring nodes, the plane structure information of the current node is predicted and decoded.

[0010] In a second aspect, the present application provides a point cloud encoding method, comprising:

[0011] Determine first information corresponding to the current node, where the first information is used to indicate whether a first type of neighboring node of the current node is valid, where the first type of neighboring node is a neighboring node whose geometric information has been encoded;

[0012] Based on the first information, obtain the occupancy information of N neighboring nodes of the current node, where N is a positive integer;

[0013] Based on the occupancy information of the N neighboring nodes, predictive coding is performed on the plane structure information of the current node.

[0014] In a third aspect, the present application provides a point cloud decoding device for executing the method of the first aspect or its respective implementations. Specifically, the device includes a functional unit for executing the method of the first aspect or its respective implementations.

[0015] In a fourth aspect, the present application provides a point cloud encoding device for executing the method of the second aspect or its respective implementations. Specifically, the device includes a functional unit for executing the method of the second aspect or its respective implementations.

[0016] In a fifth aspect, a point cloud decoder is provided, comprising a processor and a memory. The memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory to perform the method of the first aspect or its respective implementations.

[0017] In a sixth aspect, a point cloud encoder is provided, comprising a processor and a memory. The memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory to perform the method of the second aspect or its respective implementations.

[0018] In a seventh aspect, a point cloud encoding and decoding system is provided, comprising a point cloud encoder and a point cloud decoder. The point cloud decoder is configured to execute the method of the first aspect or its respective implementations, and the point cloud encoder is configured to execute the method of the second aspect or its respective implementations.

[0019] In an eighth aspect, a chip is provided for implementing the method described in any one of the first and second aspects above, or their respective implementations. Specifically, the chip includes a processor configured to load and execute a computer program from a memory, causing a device equipped with the chip to perform the method described in any one of the first and second aspects above, or their respective implementations.

[0020] In a ninth aspect, a computer-readable storage medium is provided for storing a computer program, which enables a computer to execute the method of any one of the first to second aspects or their respective implementations.

[0021] In a tenth aspect, a computer program product is provided, comprising computer program instructions, which enable a computer to execute the method of any one of the first to second aspects or their respective implementations.

[0022] In an eleventh aspect, a computer program is provided, which, when executed on a computer, enables the computer to execute the method in any one of the first to second aspects or their respective implementations.

[0023] In a twelfth aspect, a code stream is provided. The code stream is generated based on the method of the second aspect. Optionally, the code stream includes at least one of a first parameter and a second parameter.

[0024] Based on the above technical solution, when decoding the plane structure information of the current node in the current decoding frame, the first information corresponding to the current node is determined, and the first information is used to indicate whether a first type of neighboring node of the current node exists. The first type of neighboring node is a neighboring node whose geometric information has been decoded. Then, based on the first information, the occupancy information of the N neighboring nodes of the current node is obtained, and based on the occupancy information of the N neighboring nodes, the plane structure information of the current node is predictively decoded. In other words, when the embodiment of the present application predicts and decodes the plane structure information of the current node, the correlation between the plane structure information between adjacent nodes is taken into account, and the type of neighboring nodes is taken into account, which can effectively improve the geometric information decoding efficiency of the point cloud, thereby improving the predictive decoding performance of the plane structure information, and improving the decoding efficiency and performance of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1A is a schematic diagram of a point cloud;

[0026] Figure 1B is a partial enlarged view of the point cloud;

[0027] FIG2 is a schematic diagram of six viewing angles of a point cloud image;

[0028] FIG3 is a schematic block diagram of a point cloud encoding and decoding system according to an embodiment of the present application;

[0029] FIG4A is a schematic block diagram of a point cloud encoder provided in an embodiment of the present application;

[0030] FIG4B is a schematic block diagram of a point cloud decoder provided in an embodiment of the present application;

[0031] FIG5A is a schematic plan view;

[0032] FIG5B is a schematic diagram of node coding sequence;

[0033] FIG5C is a schematic diagram of a plane mark;

[0034] Figure 5D is a schematic diagram of sibling nodes;

[0035] Figure 5E is a schematic diagram of the intersection of the laser radar and the node;

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

[0037] FIG5G is a schematic diagram of neighboring nodes when the node is located at a lower plane position of the parent node;

[0038] FIG5H is a schematic diagram of neighboring nodes when the node is located at a high plane position of the parent node;

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

[0040] Figure 6 is a schematic diagram of IDCM encoding;

[0041] 7A to 7C are schematic diagrams of geometric information encoding based on triangular facets;

[0042] FIG8A is a schematic diagram of LOD construction based on distance;

[0043] FIG8B is a subjective schematic diagram of the distance-based LOD generation process;

[0044] FIG8C is a flowchart of the predicted encoding;

[0045] FIG8D is a schematic diagram of LOD division;

[0046] FIG8E is a schematic diagram of inter-layer nearest neighbor search;

[0047] FIG8F is a schematic diagram of a nearest neighbor search based on spatial relationships;

[0048] FIG8G is a schematic diagram of a nearest neighbor search for coplanar, colinear, and co-point features;

[0049] FIG8H is a schematic diagram of a neighbor point search;

[0050] FIG8I is a schematic diagram of a neighbor point search;

[0051] FIG8J is a schematic diagram of neighbor point search based on a fast search algorithm;

[0052] FIG8K is a schematic diagram of an inter-frame nearest neighbor search;

[0053] FIG8L is a flowchart of a lifting transformation;

[0054] FIG8M is a schematic diagram of a RAHT transformation process along the x, y, and z directions;

[0055] FIG8N is a schematic diagram of a RAHT transformation;

[0056] FIG8O is a schematic diagram of a RAHT forward transform and inverse transform;

[0057] FIG9 is a schematic diagram of a point cloud decoding method according to an embodiment of the present application;

[0058] FIG10 is a schematic diagram of an octree partition;

[0059] FIG11 is a schematic diagram of a neighborhood node;

[0060] FIG12 is another schematic diagram of a neighborhood node;

[0061] FIG13 is another schematic diagram of a neighborhood node;

[0062] Figure 14 is a schematic diagram of primary information and secondary information;

[0063] FIG15 is a schematic diagram of a secondary information partitioning tree;

[0064] FIG16 is a schematic diagram of a partitioning tree for secondary information;

[0065] FIG17 is a schematic diagram showing another division of the secondary information partition tree;

[0066] FIG18 is a schematic diagram showing another division of the secondary information division tree;

[0067] FIG19 is a schematic diagram of a point cloud encoding method according to an embodiment of the present application;

[0068] FIG20 is a schematic block diagram of a point cloud decoding device provided in an embodiment of the present application;

[0069] FIG21 is a schematic block diagram of a point cloud encoding device provided in an embodiment of the present application;

[0070] FIG22 is a schematic block diagram of an electronic device provided in an embodiment of the present application;

[0071] Figure 23 is a schematic block diagram of the point cloud encoding and decoding system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The present application can be applied to the field of point cloud upsampling technology, for example, it can be applied to the field of point cloud compression technology.

[0073] To facilitate understanding of the embodiments of the present application, the following briefly introduces the relevant concepts involved in the embodiments of the present application:

[0074] A point cloud is a set of irregularly distributed discrete points in space that represent the spatial structure and surface properties of a three-dimensional object or scene. Figure 1A is a schematic diagram of a 3D point cloud image, and Figure 1B is a zoomed-in view of Figure 1A. As can be seen from Figures 1A and 1B, the point cloud surface is composed of densely distributed points.

[0075] 2D images contain information at every pixel, and their distribution is regular, so there's no need to record their location. However, the distribution of points in a point cloud in 3D space is random and irregular, so recording the location of every point in space is necessary to fully represent a point cloud. Similar to 2D images, each location in the data collection process has corresponding attribute information.

[0076] Point cloud data is a specific record format for point clouds. Points in a point cloud can include both their location information and attribute information. For example, the location information of a point can be its 3D coordinate information. This information can also be referred to as its geometric information. For example, the attribute information of a point can include color information, reflectance information, normal vector information, and so on. Color information reflects the color of an object, while reflectance information reflects the surface material of the object. The color information can be information in any color space. For example, the color information can be in RGB. Another example is luminance and chrominance (YCbCr, YUV) information. For example, Y represents luminance (Luma), Cb (U) represents blue color difference, Cr (V) represents red, and U and V represent chroma (Chroma) to describe color difference information. For example, a point cloud obtained using laser measurement principles can include both its 3D coordinate information and its laser reflection intensity (reflectance). Another example is a point cloud obtained using photogrammetry principles, which can include both its 3D coordinate information and its color information. For example, a point cloud is obtained by combining the principles of laser measurement and photogrammetry. The points in the point cloud may include the three-dimensional coordinate information of the point, the laser reflection intensity (reflectance) of the point, and the color information of the point. Figure 2 shows a point cloud image, where Figure 2 shows six viewing angles of the point cloud image. Table 1 shows the point cloud data storage format consisting of a file header information part and a data part:

[0077] Table 1

[0078] In Table 1, the header information includes the data format, data representation type, the total number of point cloud points, and the content represented by the point cloud. For example, the point cloud in this example is in the ".ply" format, represented by ASCII code, with a total number of 207242 points. Each point has three-dimensional position information XYZ and three-dimensional color information RGB.

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

[0080] The ways to obtain point cloud data may include but are not limited to at least one of the following: (1) generation by computer equipment. Computer equipment can generate point cloud data based on virtual three-dimensional objects and virtual three-dimensional scenes. (2) 3D (3-Dimension) laser scanning acquisition. 3D laser scanning can obtain point cloud data of static real-world three-dimensional objects or three-dimensional scenes, and millions of point cloud data can be obtained per second; (3) 3D photogrammetry acquisition. 3D photography equipment (i.e., a group of cameras or camera equipment with multiple lenses and sensors) is used to collect real-world visual scenes to obtain point cloud data of real-world visual scenes. 3D photography can obtain point cloud data of dynamic real-world three-dimensional objects or three-dimensional scenes. (4) Point cloud data of biological tissues and organs can be obtained through medical equipment. In the medical field, point cloud data of biological tissues and organs can be obtained through medical equipment such as magnetic resonance imaging (MRI), computed tomography (CT), and electromagnetic positioning information.

[0081] Point clouds can be divided into dense point clouds and sparse point clouds according to the acquisition method.

[0082] Point clouds are divided into the following types according to the time series of the data:

[0083] The first type of static point cloud: the object is stationary and the device used to obtain the point cloud is also stationary;

[0084] The second type of dynamic point cloud: the object is moving, but the device that obtains the point cloud is stationary;

[0085] The third type of dynamic point cloud acquisition: the device that acquires the point cloud is moving.

[0086] Point clouds are divided into two categories according to their uses:

[0087] 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;

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

[0089] The aforementioned point cloud acquisition technologies reduce the cost and time required to acquire point cloud data, while improving data accuracy. This evolution in point cloud data acquisition has made it possible to acquire large amounts of point cloud data. However, as application demands grow, the processing of massive amounts of 3D point cloud data is facing bottlenecks due to storage space and transmission bandwidth limitations.

[0090] Taking a point cloud video with a frame rate of 30 fps (frames per second) as an example, each frame contains 700,000 points, each with 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 points x (4 bytes x 3 + 1 byte x 3) x 30 fps x 10 seconds = 3.15 GB. For a 1280 x 720 two-dimensional 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 x 720 x 12 bits x 24 frames x 10 seconds, which is approximately 0.33 GB. A 10-second two-view 3D video has a data volume of approximately 0.33 x 2 = 0.66 GB. Therefore, the data volume of a point cloud video far exceeds that of a 2D or 3D video of the same length. Therefore, point cloud compression has become a key issue in promoting the development of the point cloud industry to better manage data, save server storage space, and reduce the transmission traffic and time between the server and client.

[0091] The following introduces the relevant knowledge of point cloud encoding and decoding.

[0092] Figure 3 is a schematic block diagram of a point cloud encoding and decoding system involved in an embodiment of the present application. It should be noted that Figure 3 is only an example, and the point cloud encoding and decoding system of the embodiment of the present application includes but is not limited to that shown in Figure 3. As shown in Figure 3, the point cloud encoding and decoding system 100 includes an encoding device 110 and a decoding device 120. The encoding device is used to encode (which can be understood as compression) the point cloud data to generate a code stream, and transmit the code stream to the decoding device. The decoding device decodes the code stream generated by the encoding device to obtain decoded point cloud data.

[0093] The encoding device 110 of the embodiment of the present application can be understood as a device with a point cloud encoding function, and the decoding device 120 can be understood as a device with a point cloud decoding function, that is, the embodiment of the present application includes a wider range of devices for the encoding device 110 and the decoding device 120, such as smartphones, desktop computers, mobile computing devices, notebook (e.g., laptop) computers, tablet computers, set-top boxes, televisions, cameras, display devices, digital media players, point cloud game consoles, vehicle-mounted computers, etc.

[0094] In some embodiments, the encoding device 110 may transmit the encoded point cloud data (such as a code stream) to the decoding device 120 via the channel 130. The channel 130 may include one or more media and / or devices capable of transmitting the encoded point cloud data from the encoding device 110 to the decoding device 120.

[0095] In one example, the channel 130 includes one or more communication media that enable the encoding device 110 to transmit the encoded point cloud data directly to the decoding device 120 in real time. In this example, the encoding device 110 can modulate the encoded point cloud data according to a communication standard and transmit the modulated point cloud data to the decoding device 120. The communication media includes wireless communication media, such as radio frequency spectrum. Optionally, the communication media can also include wired communication media, such as one or more physical transmission lines.

[0096] In another example, channel 130 includes a storage medium that can store the point cloud data encoded by encoding device 110. The storage medium includes various locally accessible data storage media, such as optical disks, DVDs, and flash memory. In this example, decoding device 120 can retrieve the encoded point cloud data from the storage medium.

[0097] In another example, the channel 130 may include a storage server that can store the point cloud data encoded by the encoding device 110. In this example, the decoding device 120 can download the stored encoded point cloud data from the storage server. Alternatively, the storage server can store the encoded point cloud data and transmit the encoded point cloud data to the decoding device 120, such as a web server (e.g., for a website), a file transfer protocol (FTP) server, etc.

[0098] In some embodiments, the encoding device 110 includes a point cloud encoder 112 and an output interface 113. The output interface 113 may include a modulator / demodulator (modem) and / or a transmitter.

[0099] In some embodiments, the encoding device 110 may further include a point cloud source 111 in addition to the point cloud encoder 112 and the input interface 113 .

[0100] The point cloud source 111 may include at least one of a point cloud acquisition device (e.g., a scanner), a point cloud archive, a point cloud input interface, and a computer graphics system, wherein the point cloud input interface is used to receive point cloud data from a point cloud content provider, and the computer graphics system is used to generate point cloud data.

[0101] The point cloud encoder 112 encodes the point cloud data from the point cloud source 111 to generate a code stream. The point cloud encoder 112 transmits the encoded point cloud data directly to the decoding device 120 via the output interface 113. The encoded point cloud data can also be stored on a storage medium or storage server for subsequent reading by the decoding device 120.

[0102] In some embodiments, the decoding device 120 includes an input interface 121 and a point cloud decoder 122 .

[0103] In some embodiments, the decoding device 120 may further include a display device 123 in addition to the input interface 121 and the point cloud decoder 122 .

[0104] The input interface 121 includes a receiver and / or a modem and can receive the encoded point cloud data via the channel 130 .

[0105] The point cloud decoder 122 is used to decode the encoded point cloud data to obtain decoded point cloud data, and transmit the decoded point cloud data to the display device 123.

[0106] The decoded point cloud data is displayed on the display device 123. The display device 123 may be integrated with the decoding device 120 or external to the decoding device 120. The display device 123 may include various display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or other types of display devices.

[0107] In addition, Figure 3 is only an example, and the technical solution of the embodiment of the present application is not limited to Figure 3. For example, the technology of the present application can also be applied to unilateral point cloud encoding or unilateral point cloud decoding.

[0108] Current point cloud encoders can use two point cloud compression coding technology routes proposed by the Moving Picture Experts Group (MPEG) of the International Organization for Standardization: Video-based Point Cloud Compression (VPCC) and Geometry-based Point Cloud Compression (GPCC). VPCC projects a 3D point cloud onto a 2D image and uses existing 2D coding tools to encode the projected 2D image. GPCC uses a hierarchical structure to divide the point cloud into multiple units, encoding the entire point cloud by recording the division process.

[0109] The following uses the GPCC encoding and decoding framework as an example to illustrate the point cloud encoder and point cloud decoder applicable to the embodiments of the present application.

[0110] Figure 4A is a schematic block diagram of the point cloud encoder provided in an embodiment of the present application.

[0111] As can be seen from the above, points in a point cloud can include both their location information and their attribute information. Therefore, the encoding of points in a point cloud mainly includes location encoding and attribute encoding. In some examples, the location information of points in a point cloud is also called geometric information, and the corresponding location encoding of points in the point cloud can also be called geometric encoding.

[0112] In the GPCC coding framework, the geometric information of the point cloud and the corresponding attribute information are encoded separately.

[0113] As shown in Figure 4A below, the current geometric coding and decoding of G-PCC can be divided into octree-based geometric coding and decoding and prediction tree-based geometric coding and decoding.

[0114] The position encoding process involves preprocessing the points in the point cloud, such as coordinate transformation, quantization, and duplicate point removal. Next, geometric encoding is performed on the preprocessed point cloud, such as constructing an octree or prediction tree. Based on the constructed octree or prediction tree, geometric encoding is performed to form a geometric bitstream. Simultaneously, the position information of each point in the point cloud data is reconstructed based on the position information output by the constructed octree or prediction tree, resulting in a reconstructed value for each point's position information.

[0115] The attribute encoding process includes: given the reconstruction information of the input point cloud position information and the original value of the attribute information, selecting one of the three prediction modes for point cloud prediction, quantizing the predicted result, and performing arithmetic coding to form an attribute code stream.

[0116] As shown in Figure 4A, position encoding can be achieved through the following units:

[0117] Coordinate conversion (Tanmsform coordinates) unit 201, voxel (Voxelize) unit 202, octree partition (Analyze octree) unit 203, geometry reconstruction (Reconstruct geometry) unit 204, arithmetic encoding (Arithmetic enconde) unit 205, surface fitting unit (Analyze surface approximation) 206 and prediction tree construction unit 207.

[0118] The coordinate conversion unit 201 can be used to convert the world coordinates of a point in the point cloud into relative coordinates. For example, the geometric coordinates of the point are subtracted from the minimum value of the x, y, and z coordinate axes, which is equivalent to a DC removal operation, to convert the coordinates of the point in the point cloud from world coordinates to relative coordinates.

[0119] Voxelize unit 202, also known as the quantize and remove points unit, reduces the number of coordinates through quantization. After quantization, previously different points may be assigned the same coordinates. Based on this, duplicate points can be removed through deduplication. For example, multiple clouds with the same quantized position but different attribute information can be merged into a single cloud through attribute conversion. In some embodiments of the present application, voxel unit 202 is an optional unit module.

[0120] The octree partitioning unit 203 may encode the quantized point position information using an octree encoding scheme. For example, the point cloud may be partitioned using an octree, so that point positions correspond one-to-one with octree positions. Geometric encoding is performed by counting the point positions in the octree and setting their flags to 1.

[0121] In some embodiments, in the geometric information encoding process based on a triangle soup (trisoup), the point cloud is also octree-partitioned by the octree partitioning unit 203. However, unlike the geometric information encoding based on the octree, the trisoup does not need to divide the point cloud into unit cubes with a side length of 1X1X1 step by step. Instead, the division is stopped when the block (sub-block) has a side length of W. Based on the surface formed by the distribution of the point cloud in each block, at most twelve vertices (intersections) generated by the surface and the twelve edges of the block are obtained. The intersections are surface fitted by the surface fitting unit 206, and the fitted intersections are geometrically encoded.

[0122] The prediction tree construction unit 207 can encode the quantized point position information using a prediction tree encoding method. For example, the point cloud is divided into a prediction tree, so that the point positions correspond one-to-one with the positions of the nodes in the prediction tree. By counting the positions of the points in the prediction tree, different prediction modes are selected to predict the geometric position information of the nodes to obtain prediction residuals, and the geometric prediction residuals are quantized using quantization parameters. Finally, through continuous iteration, the prediction residuals of the prediction tree node position information, the prediction tree structure, and the quantization parameters are encoded to generate a binary bitstream.

[0123] The geometric reconstruction unit 204 can perform position reconstruction based on the position information output by the octree partitioning unit 203 or the intersection points fitted by the surface fitting unit 206 to obtain a reconstructed value of the position information of each point in the point cloud data. Alternatively, the geometric reconstruction unit 204 can perform position reconstruction based on the position information output by the prediction tree construction unit 207 to obtain a reconstructed value of the position information of each point in the point cloud data.

[0124] The arithmetic coding unit 205 may perform entropy coding on the position information output by the octree analysis unit 203 or the intersection points fitted by the surface fitting unit 206, or the geometric prediction residual values ​​output by the prediction tree construction unit 207 to generate a geometric code stream; the geometric code stream may also be referred to as a geometry bitstream.

[0125] Attribute encoding can be achieved through the following units:

[0126] A color conversion unit 210 , a transfer attributes unit 211 , a region adaptive hierarchical transform (RAHT) unit 212 , a generate LOD unit 213 , a lifting transform unit 214 , a quantize coefficients unit 215 , and an arithmetic coding unit 216 .

[0127] It should be noted that the point cloud encoder 200 may include more, fewer, or different functional components than those shown in FIG. 4A .

[0128] The color conversion unit 210 may be configured to convert the RGB color space of a point in the point cloud into a YCbCr format or other formats.

[0129] The recoloring unit 211 recolors the color information using the reconstructed geometric information so that the uncoded attribute information corresponds to the reconstructed geometric information.

[0130] After the original value of the point attribute information is converted by the recoloring unit 211, any transformation unit can be selected to transform the points in the point cloud. The transformation units may include: RAHT transformation 212 and lifting transformation unit 214. The lifting transformation relies on generating the level of detail (LOD).

[0131] Either the RAHT transform or the lifting transform can be understood as being used to predict the attribute information of a point in a point cloud to obtain a predicted value of the attribute information of the point, and then to obtain a residual value of the attribute information of the point based on the predicted value of the attribute information of the point. For example, the residual value of the attribute information of the point can be the original value of the attribute information of the point minus the predicted value of the attribute information of the point.

[0132] In one embodiment of the present application, the process of generating LOD by the LOD generation unit includes: obtaining the Euclidean distance between points based on the position information of the points in the point cloud; and dividing the points into different detail expression layers based on the Euclidean distance. In one embodiment, the Euclidean distances can be sorted and then Euclidean distances in different ranges can be divided into different detail expression layers. For example, a point can be randomly selected as the first detail expression layer. The Euclidean distances between the remaining points and the point are then calculated, and the points whose Euclidean distances meet the first threshold requirement are classified as the second detail expression layer. The centroid of the points in the second detail expression layer is obtained, and the Euclidean distances between the points other than the first and second detail expression layers and the centroid are calculated, and the points whose Euclidean distances meet the second threshold requirement are classified as the third detail expression layer. And so on, all points are classified into the detail expression layer. By adjusting the threshold of the Euclidean distance, the number of points in each LOD layer can be increased. It should be understood that the LOD division method can also be adopted in other ways, and this application is not limited to this.

[0133] It should be noted that the point cloud can be directly divided into one or more detail expression layers, or the point cloud can be first divided into multiple point cloud slices, and then each point cloud slice can be divided into one or more LOD layers.

[0134] For example, a point cloud can be divided into multiple point cloud tiles, each containing between 550,000 and 1.1 million points. Each point cloud tile can be considered a separate point cloud. Each point cloud tile can be further divided into multiple detail expression layers, each containing multiple points. In one embodiment, the detail expression layers can be divided based on the Euclidean distance between points.

[0135] The quantization unit 215 may be used to quantize the residual value of the attribute information of the point. For example, if the quantization unit 215 is connected to the RAHT transformation unit 212, the quantization unit 215 may be used to quantize the residual value of the attribute information of the point output by the RAHT transformation unit 212.

[0136] The arithmetic coding unit 216 may perform entropy coding on the residual value of the attribute information of the point using zero run length coding to obtain an attribute code stream. The attribute code stream may be bit stream information.

[0137] Figure 4B is a schematic block diagram of the point cloud decoder provided in an embodiment of the present application.

[0138] As shown in Figure 4B, the decoder 300 can obtain the point cloud code stream from the encoding device and obtain the position information and attribute information of the points in the point cloud by parsing the code. The decoding of the point cloud includes position decoding and attribute decoding.

[0139] The position decoding process includes: performing arithmetic decoding on the geometric code stream; constructing an octree and then merging it to reconstruct the point position information to obtain the reconstructed position information of the point; and performing coordinate transformation on the reconstructed position information of the point to obtain the point position information. The point position information can also be called the point's geometric information.

[0140] The attribute decoding process includes: obtaining the residual value of the attribute information of the point in the point cloud by parsing the attribute code stream; obtaining the residual value of the attribute information of the point after dequantization by dequantizing the residual value of the attribute information of the point; based on the reconstruction information of the point position information obtained in the position decoding process, selecting one of the following RAHT inverse transform and lifting inverse transform to perform point cloud prediction to obtain the predicted value, and adding the predicted value to the residual value to obtain the reconstructed value of the attribute information of the point; performing inverse color space conversion on the reconstructed value of the attribute information of the point to obtain the decoded point cloud.

[0141] As shown in Figure 4B, position decoding can be achieved by the following units:

[0142] Arithmetic decoding unit 301, octree reconstruction unit 302, surface reconstruction unit 303, geometry reconstruction unit 304, inverse transform coordinates unit 305 and prediction tree reconstruction unit 306.

[0143] Attribute encoding can be achieved through the following units:

[0144] an arithmetic decoding unit 310 , an inverse quantization unit 311 , an inverse RAHT transform unit 312 , a LOD generation unit 313 , an inverse lifting transform unit 314 , and an inverse color transform unit 315 .

[0145] It should be noted that decompression is the inverse process of compression. Similarly, the functions of each unit in the decoder 300 can refer to the functions of the corresponding units in the encoder 200. In addition, the point cloud decoder 300 may include more, fewer, or different functional components than those in Figure 4B.

[0146] For example, the decoder 300 can divide the point cloud into multiple LODs based on the Euclidean distance between points in the point cloud. The decoder 300 then decodes the attribute information of the points in the LODs in sequence. For example, the number of zeros (zero_cnt) in the zero-run encoding technique is calculated to decode the residual based on zero_cnt. The decoding framework 200 then dequantizes the decoded residual value and adds the dequantized residual value to the predicted value of the current point to obtain the reconstructed value of the point cloud until all point clouds are decoded. The current point will be used as the nearest neighbor of the subsequent LOD point, and the reconstructed value of the current point will be used to predict the attribute information of the subsequent point.

[0147] The above is the basic process of the point cloud codec based on the GPCC codec framework. With the development of technology, some modules or steps of the framework or process may be optimized. This application is applicable to the basic process of the point cloud codec based on the GPCC codec framework, but is not limited to this framework and process.

[0148] The following introduces octree-based geometric coding and prediction tree-based geometric coding.

[0149] The geometric encoding based on octree includes: first, coordinate transformation 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 (octree / quadtree / binary tree) in the order of breadth-first traversal, and the placeholder code of each node is encoded. In an implicit geometric division method, the bounding box of the point cloud is first calculated. Assume that the d x >d y >d z The bounding box corresponds to a cuboid. When geometrically partitioning, the binary tree partitioning is first 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 zWhen the conditions are met, the octree partitioning will continue until the leaf node obtained by the partitioning is a 1x1x1 unit cube. The partitioning will stop and the points in the leaf node will be encoded to generate a binary code stream. In the process of binary tree / quadtree / octree partitioning, two parameters are introduced: K and M. Parameter K indicates the maximum number of binary tree / quadtree partitions before octree partitioning; parameter M is used to indicate that the minimum block side length corresponding to binary tree / quadtree partitioning is 2 M . At the same time, K and M must meet the following conditions: Assume d max =max(d x ,d y ,d z ),d min =min(d x ,d y ,d z ), parameter K satisfies: K>=d max -d min ; Parameter M satisfies: M>=d min The parameters K and M meet the above conditions because the priority of the partitioning method in the current G-PCC implicit geometric partitioning process is binary tree, quadtree and octree. When the node block size does not meet the conditions of binary tree / quadtree, the node will be partitioned into octree until the minimum unit of leaf node 1X1X1 is reached.

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

[0151] For example, as shown in Figure 5A, the (a) series belongs to the low plane position in the Z-axis direction, and the (b) series belongs to the high plane position in the Z-axis direction. Taking (a) as an example, it can be seen that the four occupied child nodes of the current node are all located in the low plane position of the current node in the Z-axis direction. Therefore, it can be considered that the current node belongs to a Z plane and is a low plane in the Z-axis direction. Similarly, (b) shows that the occupied child nodes of the current node are located in the high plane position of the current node in the Z-axis direction.

[0152] Taking (a) as an example, the efficiency of octree coding and plane coding is compared. As shown in Figure 5B, if the octree coding method is used for (a) in Figure 1, the placeholder information of the current node is represented as: 11001100. However, if the plane coding method is used, first, an identifier needs to 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 needs to be represented. Secondly, only the placeholder information of the low plane node in the Z-axis direction needs to be encoded (that is, the placeholder information of the four child nodes 0246). Therefore, encoding the current node based on the plane coding method only requires encoding 6 bits, which can reduce the representation of 2 bits compared to the original octree coding. Based on this analysis, plane coding has more obvious coding efficiency than octree coding. Therefore, for an occupied node, if the plane coding method is used in a certain dimension, as shown in Figure 5C, first, the plane identification (planarMode) and plane position (PlanePos) information of the current node in the dimension need to be represented, and then the occupancy information of the current node is encoded based on the plane information of the current node. It should be noted that: PlaneMode i (i=0,1,2): 0 means the current node is not a plane in the direction of i axis. When the node is a plane in the direction of i axis, PlanePosition i :0 means the current node is a plane in the direction of the i-axis and the plane position is a low plane, 1 means the current node is a high plane in the direction of the i-axis. For example, i=0 represents the X-axis, i=1 represents the Y-axis, and i=2 represents the Z-axis.

[0153] The following details how to determine whether a node meets the plane coding conditions in the current G-PCC standard and predictively encode the node plane identifier and plane position information when the node meets the plane coding conditions.

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

[0155] The first method is to judge based on the plane probability of the node in each dimension.

[0156] First, determine the local area density (local_node_density) of the current node and the probability Prob(i) of the current node in each dimension.

[0157] When the local area density of a node is less than the threshold Th (Th = 3), the plane probability Prob(i) of the current node in three dimensions is compared with the thresholds Th0, Th1, and Th2, where Th0 < Th1 < Th2 (Th0 = 0.6, Th1 = 0.77, Th2 = 0.88). Below, Eligible i (i = 0, 1, 2) represents whether plane coding is started in each dimension, where Eligible i The judgment process is shown in formula (1). For example, if Eligible i >= threshold, it means that plane coding is started in the i-th dimension: Eligible i = Prob(i) >= threshold (1)

[0158] It should be noted that threshold changes adaptively. For example, when Prob(0) > Prob(1) > Prob(2), the value of threshold is shown in formula (2): Eligible0 = Prob(0) >= Th0 Eligible1 = Prob(1) >= Th1 Eligible2 = Prob(2) >= Th2 (2)

[0159] Below, the update process of local_node_density and the update of Prob(i) are introduced.

[0160] In one example, Prob(i) is updated by the following formula (3): Prob(i) new = (Lx Prob(i) + δ(coded node)) / L + 1 (3)

[0161] where L = 255, and when the coded node is a plane, it is 1, otherwise it is 0.

[0162] In one example, local_node_density is updated by the following formula (4): local_node_density new = local_node_density + 4 * numSiblings (4)

[0163] where local_node_density is initialized to 4, numSiblings is the number of sibling nodes of the node. As shown in Figure 5D, the current node is the left node, and the right node is the sibling node of the current node. Then the number of sibling nodes of the current node is 5 (including itself).

[0164] The second method is to determine whether the nodes in the current layer meet the requirements of plane coding based on the point cloud density of the current layer.

[0165] The density of the points in the current layer is used to determine whether to perform planar coding on the nodes in the current layer. Assuming that the number of points in the current point cloud to be coded is pointCount, the number of points reconstructed after IDCM coding is numPointCountRecon, and because the octree is coded in the order of breadth-first traversal, the number of nodes to be coded in the current layer can be obtained as nodeCount. It is assumed that planarEligibleKOctreeDepth is used to indicate whether planar coding is started in the current layer. Among them, the judgment process of planarEligibleKOctreeDepth is shown in formula (5): planarEligibleKOctreeDepth=(pointCount-numPointCountRecon) <nodeCount*1.3 (5)

[0166] When planarEligibleKOctreeDepth is true, all nodes in the current layer are plane coded; otherwise, no plane coding is performed and only octree coding is used.

[0167] The third method is to determine whether the current node meets the requirements of plane coding based on the acquisition parameters of the lidar point cloud.

[0168] As shown in Figure 5E, the large cube node at the top is simultaneously traversed by two lasers, so the current node is not a plane in the Z-axis direction. The small cube node at the bottom is small enough that it cannot be traversed by both nodes simultaneously, so it is likely a plane. Therefore, based on the number of lasers corresponding to the current node, we can determine whether the current node meets the requirements for plane coding.

[0169] The following describes the predictive coding of plane identification information and plane position information for nodes that currently meet the plane coding conditions.

[0170] 1. Predictive Coding of Plane Marking Information

[0171] Currently, three contexts are used to encode plane identification information, that is, the plane representation in each dimension is designed separately.

[0172] The following introduces the encoding of planar position information of non-lidar point clouds and lidar point clouds respectively.

[0173] 1) Encoding of non-lidar point cloud planar position information

[0174] 1. Predictive coding of planar position information.

[0175] The plane position information is predictively coded based on the following information:

[0176] (1) 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;

[0177] (2) The spatial distance between the nodes at the same partition depth and the same coordinates as the current node and the current node is “close” or “far”;

[0178] (3) The plane position of the node at the same partition depth and the same coordinates as the current node;

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

[0180] As shown in Figure 5F, the current node to be encoded is the left node, then the neighboring node is searched for as the right node 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.

[0181] In one example, as shown in FIG5G , the black node is the current node. If the current node is located on the lower plane of the parent node, the plane position of the current node is determined as follows:

[0182] a) If any of the child nodes 4 to 7 of the dashed node is occupied, and all the dot nodes are unoccupied, it is very likely that there is a plane in the current node, and the plane is at a lower position.

[0183] b) If the child nodes 4 to 7 of the dashed node are not occupied, and any dotted node is occupied, it is very likely that there is a plane in the current node, and the plane is at a higher position.

[0184] c) If the child nodes 4 to 7 of the dashed node are all empty nodes and the dotted nodes are all empty nodes, the plane position cannot be inferred and is therefore marked as unknown.

[0185] If any of the child nodes 4 to 7 of the dashed node are occupied and any of the dotted nodes are occupied, the plane position cannot be inferred and is therefore marked as unknown.

[0186] In another example, as shown in FIG5H , the black node is the current node. If the node is at a high plane position of the parent node, the plane position of the current node is determined as follows:

[0187] a) If any of the dot node's child nodes 4 to 7 is occupied, and the dashed node is not occupied, it is very likely that there is a plane in the current node, and the plane is at a lower position.

[0188] b) If the child nodes 4 to 7 of the dot node are not occupied, but the node with the dashed line is occupied, it is very likely that a plane exists in the current node, and the plane is located at a higher position.

[0189] c) If the child nodes 4 to 7 of the dot node are all unoccupied, and the dashed node is unoccupied, the plane position cannot be inferred and is therefore marked as unknown.

[0190] d) If one of the child nodes 4-7 of the dotted node is occupied and the dashed node is occupied, the plane position cannot be inferred and is therefore marked as unknown.

[0191] 2) Coding of LiDAR point cloud plane position information

[0192] Figure 5I shows the predictive coding of the plane position information of the laser radar point cloud. The plane position of the current node is predicted by using the laser radar acquisition parameters. The position is quantized into four intervals by using the intersection position of the current node and the laser ray, and finally used as the context of the plane position of the current node. The specific calculation process is as follows: Assume that the coordinates of the laser radar are (x Lidar ,y Lidar ,z Lidar ), the geometric coordinates of the current point are (x, y, z), then first calculate the vertical tangent value tanθ of the current point relative to the lidar. The calculation process is shown in formula (6):

[0193] Because each laser has a certain offset angle relative to the laser radar, the relative tangent value tanθ of the current node relative to the laser is calculated. corr,L , the specific calculation process is shown in formula (7):

[0194] Finally, the corrected tangent value of the current node is used to predict the plane position of the current node. Specifically, assuming that the tangent value of the lower boundary of the current node is tan(θ bottom), and the tangent value of the upper boundary is tan(θ top), according to tanθx orr,L The plane position is quantized into 4 quantization intervals, which are the contexts of the plane position.

[0195] However, the octree-based geometric information coding mode only has an efficient compression rate for points with correlation 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 shown in Figure 6:

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

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

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

[0199] If the current node does not meet the DCM coding qualifications, it will be divided into octrees. If it meets the DCM coding qualifications, the number of points contained in the node will be further determined. When the number of points is less than the threshold 2, the node will be DCM-encoded, otherwise the octree division will continue. When the DCM coding mode is applied, it is first necessary to encode whether the current node is a true isolated point, that is, IDCM_flag. When IDCM_flag is true, the current node uses DCM coding, otherwise octree coding is still used. When the current node meets the DCM coding requirements, the DCM coding mode of the current node needs to be encoded. There are currently two DCM modes: 1: There is only one point (or multiple points, but they are duplicate points); 2: Contains two points. Finally, the geometric information of each point needs to be encoded. Assume 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.

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

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

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

[0203] When reconstructing point cloud geometry based on trisoup, the decoding end first decodes vertex coordinates to complete triangle reconstruction. This process is shown in Figures 7A to 7C. The block shown in Figure 7A contains three vertices (v1, v2, v3). The set of triangles formed by these three vertices in a certain order is called triangle soup, or trisoup, as shown in Figure 7B. Afterwards, sampling is performed on this set of triangles, and the resulting sampling points are used as the reconstructed point cloud within the block, as shown in Figure 7C.

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

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

[0206] After the geometric encoding is completed, the geometric information is 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 (Level of Detail) division, and the other is to directly perform RAHT (Region Adaptive Hierarchal Transform) 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.

[0207] 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 as follows. For a three-dimensional coordinate represented by a d-bit binary number for each component, its three components can be expressed as formula (8):

[0208] in, The highest bits of x, y, and z are To the lowest position The corresponding binary value. The Morton code M is x, y, z starting from the highest bit, arranged in sequence To the lowest bit, the calculation formula of M is shown in the following formula (9):

[0209] 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 w of each point is set to 1.

[0210] There are 4 general test conditions for GPCC:

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

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

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

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

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

[0216] There are two technical routes of GPCC, which are distinguished by the algorithm used for geometric compression, and are divided into octree coding branch and prediction tree coding branch.

[0217] Among them, in the octree coding branch, 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 until the leaf node obtained by division is a 1X1X1 unit cube. The division stops when the division is completed. 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. At the decoding end, the decoding end obtains the placeholder code of each node by continuous parsing in the order of breadth-first traversal, and continuously divides the nodes in sequence until the division is a 1x1x1 unit cube. In the case of geometric lossless decoding, the number of points contained in each leaf node needs to be parsed to finally recover the geometric reconstructed point cloud information.

[0218] In the prediction tree coding branch, the encoder establishes the prediction tree structure using two different approaches: a KD-Tree (high-latency, slow mode) and a low-latency, fast mode, where each point is assigned to a different laser using lidar calibration information and the prediction structure is established accordingly. Next, based on the prediction tree structure, each node in the tree is traversed, and the geometric position information of the node is predicted using different prediction modes to obtain a prediction residual. This geometric prediction residual is then quantized using a quantization parameter. Finally, through continuous iteration, the prediction residuals of the prediction tree node position information, the prediction tree structure, and the quantization parameters are encoded to generate a binary bitstream. On the decoder side, the decoder continuously parses the bitstream to reconstruct the prediction tree structure. The geometric position prediction residual information and quantization parameters for each prediction node are then parsed and dequantized to recover the reconstructed geometric position information for each node, completing the geometric reconstruction at the decoder.

[0219] The previous section introduces the geometric codec under the G-PCC coding framework. The following section introduces the attribute codec under the G-PCC coding framework.

[0220] As shown in Figure 4A, the current G-PCC encoding framework includes three attribute encoding methods: Predicting Transform (PT), Lifting Transform (LT), and Region Adaptive Hierarchical Transform (RAHT). The first two predictively encode point clouds based on the order in which LODs are generated, while RAHT adaptively transforms attribute information from the bottom up based on the octree construction hierarchy. The following sections describe these three point cloud attribute encoding methods.

[0221] Currently, the attribute prediction module of G-PCC adopts a nearest neighbor attribute prediction coding scheme based on a hierarchical (Level-of-details, LoDs) structure. The construction methods of LOD include the distance-based LOD construction scheme, the fixed sampling rate-based LOD construction scheme, and the octree-based LOD construction scheme, etc. In the distance threshold-based LOD construction scheme, before constructing LOD, the point cloud is first sorted by Morton to ensure strong attribute correlation between adjacent points. As shown in Figure 8A, an example of the distance-based LOD construction process is given. According to the L Manhattan (Manhattan) distances (dl) l = 0, 1, … L-1 preset by the user in advance, the point cloud is divided into L different point cloud detail levels (Rl) l = 0, 1, … L-1, where (dl) l = 0, 1, … L-1 satisfies dl < dl-1. The construction process of LOD is as follows: (1) First, mark all points in the point cloud as unvisited, and establish a set V to store the set of points that have been visited; (2) For each iteration l, by traversing the points in the point cloud, if the current point has been visited, ignore this point, otherwise calculate the minimum distance D from the current point to the point set V. If D < dl, ignore this point; otherwise, mark the current point as visited and add the current point to the refinement level Rl and the point set V; (3) The points in the detail level LODl are composed of the points in the refinement levels R0, R1, R2…Rl; (4) Continuously repeat the above steps until all points are marked as visited.

[0222] Based on the LOD structure, the attribute value of each point is linearly weighted predicted by using the reconstructed attribute values of points in the same level or a higher level of LOD. The maximum number of reference prediction neighbors is determined by the high-level syntax elements of the encoder. For the attribute of each point, at the encoding end, the rate-distortion optimization algorithm is used to select to perform weighted prediction by using the attributes of the N nearest neighbor points searched or select the attribute of a single nearest neighbor point for prediction, and finally encode the selected prediction mode and the prediction residual.

[0223] Exemplarily, based on the following formula (10), the attribute prediction value is determined:

[0224] where, N represents the number of prediction points in the nearest neighbor point set of point i, Pi represents the sum of the N nearest neighbor points of point i, Dm represents the spatial geometric distance from the nearest neighbor point m to the current point i, Attrm represents the attribute value after reconstruction of the nearest neighbor point m, Attr′ i represents the attribute prediction value of the current point i, and the number of points N is a preset value in advance.

[0225] To balance attribute coding efficiency and parallel processing between different LOD layers, a switch is introduced in the encoder's high-level syntax elements to control whether to introduce LOD layer prediction. If turned on, LOD layer prediction is enabled, and prediction can be performed using points within the same LOD layer. It should be noted that when the number of LOD layers is 1, LOD layer prediction is always used.

[0226] In one example, Figure 8B shows the LOD visualization result. The points in the first layer represent the outer contours of the point cloud. As the number of detail layers increases, the point cloud details become clearer.

[0227] In one example, as shown in Figure 8C, a flowchart for G-PCC attribute prediction is provided. For the kth point in a point cloud, the three nearest neighbors of the kth point are first determined. Based on the attribute reconstruction information of these three neighbors, the attribute prediction value of the kth point is determined. Next, based on the original attribute value and the attribute prediction value of the kth point, the attribute prediction residual for the kth point is obtained. This attribute prediction residual is quantized and arithmetic coded to produce the attribute bitstream.

[0228] In some embodiments, after the LOD is constructed, the three nearest neighboring points of the current point to be encoded are first found from the encoded data points according to the generation order of the LOD. The attribute reconstruction values ​​of the three nearest neighboring points are used as candidate prediction values ​​of the current point to be encoded; then, the optimal prediction value is selected from the attribute reconstruction values ​​of the three nearest neighboring points according to the rate-distortion optimization (RDO). For example, when encoding the attribute value of point P2 in Figure 8A, the predictor variable index of the attribute value of the nearest neighbor point P4 is set to 1; the attribute predictor variable indexes of the second nearest neighbor point P5 and the third nearest neighbor point P0 are set to 2 and 3 respectively; the predictor variable index of the weighted average of points P0, P5 and P4 is set to 0, as shown in Table 2:

[0229] Table 2 Samples of candidate prediction items for attribute coding

[0230] Finally, RDO is used to select the best predictor variable. The weighted average formula is shown in formula (11):

[0231] In formula (11) represents the spatial geometric weight from the neighboring point j to the current point i, and the calculation formula is shown in formula (12):

[0232] in, Represents the attribute prediction value of the current point i, j represents the index of the three neighboring points, Represents the attribute value after reconstruction of the neighboring points, x i ,yi ,z i is the geometric position coordinate of the current point i, x ij ,y ij ,z ij is the geometric coordinate of the neighboring point j.

[0233] The following introduces the attribute prediction residuals and quantification.

[0234] The attribute prediction value of the current point i is obtained through the above prediction (k is the total number of points in the point cloud). Let (a i ) i∈0…k-1 is the original attribute value of the current point, then as shown in formula (13), the attribute residual (r i ) i∈0…k-1 Denoted as:

[0235] Furthermore, the prediction residual is quantized based on the following formula (14):

[0236] In formula (14), Q i It represents the quantized attribute residual of the current point i, Qs is the quantization step (Qs), which can be calculated by the quantization parameter QP (QP) specified by CTC.

[0237] The encoding end reconstructs the attribute value

[0238] The purpose of reconstruction at the encoding end is to predict the subsequent points. Before reconstructing the attribute value, the residual should be dequantized, as shown in formula (15), is the residual after inverse quantization:

[0239] Then, based on the following formula (16), and predicted value Add up to get the reconstruction value of point i

[0240] There are currently two main types of algorithms for attribute nearest neighbor search based on LOD partitioning: intra-frame nearest neighbor search and inter-frame nearest neighbor search. Intra-frame nearest neighbor search is divided into inter-layer nearest neighbor search and intra-layer nearest neighbor search.

[0241] Intra-frame nearest neighbor search:

[0242] There are two algorithms for searching the nearest neighbor within a frame: inter-layer nearest neighbor search and intra-layer nearest neighbor search. After LOD division, a pyramid structure similar to that shown in Figure 8D is formed.

[0243] 1. Inter-layer nearest neighbor search

[0244] As shown in FIG8E and FIG8A , different LOD layers are obtained based on the geometric information division, namely LOD0, LOD1 and LOD2, and the points in LOD0 are used to predict the attributes of the points in the next LOD layer in the process of inter-layer nearest neighbor search.

[0245] The following is a detailed description of the entire process of searching for the nearest neighbor within a frame:

[0246] During the entire LOD partitioning process, there are three sets O(k), L(k), and I(k). Among them, k is the index of the LOD layer during LOD partitioning, and I(k) is the input point set during the current LOD layer partitioning. After LOD partitioning, the O(k) set and L(k) set are obtained. The O(k) set stores the sampling point set, and L(k) is the point set in the current LOD layer. The entire LOD partitioning process is as follows:

[0247] (1) Initialization

[0248] if k=0,L(k)←{}. Otherwise L(k)←L(k-1) O(k)←{}

[0249] (2) Using the LOD partitioning algorithm, the sampling points are stored in O(k), and the remaining points are divided into L(k);

[0250] (3) When the next iteration is performed, I←O(k).

[0251] It should be noted here that since the entire LOD division process is based on the Morton code, O(k), L(k) and I(k) store the Morton code index corresponding to the point.

[0252] When performing inter-layer nearest neighbor search, that is, the points in the L(k) set perform nearest neighbor search in the O(k) set. The specific search algorithm is as follows:

[0253] Nearest neighbor search based on spatial relationships

[0254] When predicting the current point P, neighbor search is performed using the parent block (Block B) corresponding to point P. As shown in FIG8F , points in neighbor blocks that are coplanar or colinear with the current parent block are searched for attributes.

[0255] Illustratively, the spatial relationships of coplanarity, colinearity, and copoint are shown in FIG8G .

[0256] First, the coordinates of the current point are used to obtain the corresponding spatial block. Second, a nearest neighbor search is performed in the previously encoded LOD layer to find the spatial blocks that are coplanar, colinear, and co-point with the current block to obtain the N nearest neighbors of the current point.

[0257] If the N nearest neighbors of the current point are still not found after performing coplanar, colinear, and co-point nearest neighbor searches, a fast search algorithm is used to obtain the N nearest neighbors of the current point. The specific algorithm is shown in Figure 8H. When performing inter-attribute layer prediction, the geometric coordinates of the current point to be encoded are first used to obtain the Morton code corresponding to the current point. Next, based on the Morton code of the current point, the first reference point (j) with a larger Morton code than the current point is found in the reference frame. Next, a nearest neighbor search is performed within the range [j-searchRange, j+searchRange].

[0258] The rest of the specific algorithms for updating the nearest neighbor are the same as the inter-frame nearest neighbor search algorithm and will not be described here. The specific algorithms will be mentioned in the inter-frame nearest neighbor search algorithm.

[0259] 2. Nearest neighbor search within the layer

[0260] As shown in FIG8I , when the intra-layer prediction algorithm is turned on, a nearest neighbor search is performed in the same layer LOD and the set of encoded points in the same layer to obtain the N nearest neighbors of the current point (inter-layer nearest neighbor search is also performed).

[0261] When performing intra-attribute layer prediction, a nearest neighbor search is performed based on a fast search algorithm. The specific algorithm is shown in Figure 8J. Assuming the current point's Morton code index is i, the nearest neighbor search is performed in [i+1, i+searchRange]. The specific nearest neighbor search algorithm is consistent with the inter-frame block-based fast search algorithm and will not be detailed here. It will be discussed in detail later.

[0262] The above describes the nearest neighbor search within a frame. The following describes the nearest neighbor search between frames.

[0263] Inter-frame nearest neighbor search:

[0264] As shown in Figure 8H, when performing attribute inter-frame prediction, the geometric coordinates of the current point to be encoded are first used to obtain the Morton code corresponding to the current point. Secondly, based on the Morton code of the current point, the first reference point (j) with a Morton code greater than the current point is found in the reference frame. Then, the nearest neighbor search is performed within the range of [j-searchRange, j+searchRange].

[0265] The current nearest neighbor search within and between frames is based on block-based neighborhood search, as shown in Figure 8K below. When searching for the current point (Morton code index is i), the points in the reference frame are first divided into N (N=3) layers according to the Morton code. The specific division algorithm is as follows:

[0266] First layer: Assume that the points of the reference frame are numPoints, first divide the points in the reference frame into M (M=2 5 =32) points are divided into one block;

[0267] Second layer: Based on the first layer, the blocks of the first layer are also processed every M (M=2 5 =32) blocks are divided into one block;

[0268] The third layer: Based on the second layer, the blocks of the first layer are also processed every M (M=2 5 =32) blocks are divided into one block;

[0269] Finally, the predicted structure shown in Figure 8K is obtained.

[0270] When performing attribute prediction based on the prediction structure shown in Figure 8K, assuming that the Morton code index of the current point to be encoded is i, first obtain the first point in the reference frame whose Morton code is greater than or equal to the current point, with index j. Then, the block index of the reference point is calculated based on j. The specific calculation method is as follows:

[0271] First layer: BucketSize_0 = 2 5 =32;

[0272] Second layer: BucketSize_1=2 5 =32×BucketSize_0=1024;

[0273] Third layer: BucketSize_2=2 5 =32×BucketSize_1=32768.

[0274] Assume that the reference range in the prediction frame of the current point is [j-searchRange, j+searchRange], use j-searchRange to calculate the starting index of the third layer, and use j+searchRange to calculate the ending index of the third layer. Secondly, first determine whether some blocks in the second layer need to be searched for the nearest neighbor in the blocks of the third layer. Then go to the second layer and determine whether a search is needed for each block in the first layer. If some blocks in the first layer need to be searched for the nearest neighbor, then the midpoints of some blocks in the first layer will be judged point by point to update the nearest neighbor.

[0275] The following is an introduction to the algorithm based on index calculation block. Assuming that the Morton code index corresponding to the current point is index, then the index of the corresponding third-layer block is as shown in formula (17): idx_2=index / BucketSize_2 (17)

[0276] After obtaining the block index idx_2 of the third layer, the start index and end index of the block corresponding to the current block in the second layer can be obtained using idx_2, as shown in formula (18): startIdx1=idx_2×BucketSize_1 endIdx=idx_2×BucketSize_1+BucketSize_1-1 (18)

[0277] The index of the first layer block is obtained based on the index of the second layer block based on the same algorithm.

[0278] When performing a block-based nearest neighbor search, we first determine whether the current block needs to be searched for the nearest neighbor. This is called filtering the nearest neighbor search for the block. Each spatial block can be obtained through two variables: minPos and maxPos. MinPos represents the minimum value of the block, and maxPos represents the maximum value of the block.

[0279] Assume that the distance of the farthest point among the N nearest neighbors of the current point is Dist, the coordinates of the point to be encoded are (x, y, z), and the current block is represented by (minPos, maxPos), where minPos is the minimum value of the bounding box in three dimensions and maxPos is the maximum value of the bounding box in three dimensions. Then the distance D between the current point and the bounding box is calculated as shown in formula (19): int dx=int(std::max(std::max(minPos[0]-point[0],0),point[0]-maxPos[0]));int dy=int(std::max(std::max(minPos[1]- point[1],0),point[1]-maxPos[1]));int dz=int(std::max(std::max(minPos[2]-point[2],0),point[2]-maxPos[2]));D=dx+dy+dz (19)

[0280] When D is less than or equal to Dist, the points in the current block will be traversed.

[0281] The following introduces the lifting transform encoding of point cloud attribute information.

[0282] Figure 8L shows the encoding process of the lifting transform. The lifting transform also predicts and encodes the point cloud attributes based on LOD. The difference from the predictive transform is that the lifting transform first divides the LOD into high and low layers, and predicts in the reverse order of the LOD generation layer. In the prediction process, an update operator is introduced to update the quantized weights of the low-level LOD midpoints to improve the accuracy of the prediction. This is because the attribute values ​​of the low-level LOD midpoints are frequently used to predict the attribute values ​​of the high-level LOD midpoints, and the points in the low-level LOD should have greater influence.

[0283] Step 1: Segmentation Process

[0284] The segmentation process is to divide the complete LOD layer into a low LOD layer L(N) and a high LOD layer H(N). If a point cloud has three LOD layers, namely (LOD l ) l=0,1,2 , after segmentation, LOD2 is the high LOD layer, denoted as H(N), (LOD l ) l=0,1 It is the low LOD layer, denoted as L(N).

[0285] Step 2: Prediction Process

[0286] The point in the high-level LOD selects the attribute information of the nearest neighbor point from the low-level LOD as the attribute prediction value P(N) of the current point to be coded. The prediction residual D(N) is shown in formula (20): D(N) = H(N) - P(N) (20)

[0287] Step 3: Update Process

[0288] Update the attribute prediction residual D(N) in the high-level LOD to obtain U(N), and use U(N) to improve the attribute value of the midpoint of the low-level LOD, as shown in formula (21): L′(N)=L(N)+U(N) (21)

[0289] The above process will iterate continuously until the lowest LOD according to the order of LOD from high to low.

[0290] Because LOD-based prediction schemes give points in lower LOD layers greater influence, the transformation scheme based on the lifting wavelet transform introduces quantization weights and updates the prediction residual based on the prediction residual D(N) and the distance between the prediction point and its adjacent points. Finally, the quantization weights used in the transformation process are used to adaptively quantize the prediction residual. It is important to note that the quantization weight value of each point can be determined by geometric reconstruction at the decoding end, so the quantization weights should not be encoded.

[0291] The following is an introduction to region-adaptive hierarchical transformation.

[0292] The regional adaptive hierarchical transform (RAHT) is a Haar wavelet transform that can transform point cloud attribute information from the spatial domain to the frequency domain, further reducing the correlation between point cloud attributes. Its main idea is to transform the nodes in each layer from the three dimensions of x, y, and z (as shown in Figure 8M) in a bottom-up manner according to the octree structure, and iterate until the root node of the octree. As shown in Figure 8N, its basic idea is to perform wavelet transform based on the hierarchical structure of the octree, associate attribute information with the octree nodes, and recursively transform the attributes of the occupied nodes in the same parent node in a bottom-up manner. For each layer, the nodes are transformed from the three dimensions of x, y, and z until the root node of the octree is reached. In the process of hierarchical transformation, the low-pass (DC) coefficients obtained after the transformation of the nodes in the same layer are passed to the nodes in the next layer for further transformation, and all high-pass (AC) coefficients are encoded by the arithmetic encoder.

[0293] During the transformation process, the DC coefficients (direct current components) of the transformed nodes at the same layer are passed to the previous layer for further transformation, while the AC coefficients (alternating current components) of each layer are quantized and encoded. The following describes the main transformation processes.

[0294] Figure 8O shows the corresponding transformation and inverse transformation process. Assume that g′ L,2x,y,z and g′L,2x+1,y,z are the DC coefficients of two neighboring points in the L layer. After linear transformation, the information of the L-1 layer is the AC coefficient f′ L-1,x,y,z and DC coefficient g′ L-1,x,y,z ; Then, f′ L-1,x,y,z No more transformation will be performed, and quantization coding will be performed directly, g′ L-1,x,y,z The nearest neighbor will continue to be searched for transformation. If no neighbor is found, it will be directly passed to the L-2 layer. That is, the RAHT transformation is only effective for nodes with neighbor points. Nodes without neighbor points will be directly passed to the previous layer. In the above transformation process, g′ L,2x,y,z The weights (the number of non-empty child nodes in the node) corresponding to g′L, 2x+2, y, and z are w′ respectively. L,2x,y,z and w′L,2x+1,y,z (abbreviated as w′0 and w′1), g′ L-1,x,y,z The weights are w′L-1,x,y,z, then the general transformation formula (22) is:

[0295] For example, where T w0,w1 The transformation matrix is ​​determined according to the following formula (23):

[0296] The transformation matrix will be updated as the weights corresponding to each point change adaptively. The above process will be iterated and updated continuously according to the partitioning structure of the octree until the root node of the octree is reached.

[0297] The above introduces the encoding and decoding technology of point cloud geometric information and attribute information.

[0298] During point cloud coding, for relatively flat or planar nodes, plane coding can further improve the coding efficiency of point cloud geometry. However, related technologies only predictively encode the planar structure information of the current node based on some prior reference information, resulting in poor performance in predictive encoding of planar structure information.

[0299] In order to solve the above technical problems, the embodiment of the present application determines the N neighboring nodes of the current node when encoding and decoding a node, and predicts and decodes the plane structure of the current node based on the occupancy information of the N neighboring nodes, thereby improving the prediction encoding and decoding performance of the plane structure information and improving the encoding and decoding efficiency and performance of the point cloud.

[0300] The following describes the point cloud encoding and decoding method involved in the embodiments of the present application in conjunction with specific embodiments.

[0301] First, taking the decoding end as an example, the point cloud decoding method provided in the embodiment of the present application is introduced.

[0302] Figure 9 is a schematic diagram of a point cloud decoding method according to an embodiment of the present application. The point cloud decoding method according to an embodiment of the present application can be implemented by the point cloud decoding device or point cloud decoder shown in Figure 3 or Figure 4B above.

[0303] As shown in FIG9 , the point cloud decoding method of the embodiment of the present application includes:

[0304] S101: Determine first information corresponding to the current node.

[0305] The first information is used to indicate whether the first type of neighboring nodes of the current node are valid, and the first type of neighboring nodes are neighboring nodes whose geometric information has been decoded.

[0306] As can be seen from the above, a point cloud includes geometric information and attribute information, and decoding of a point cloud includes geometric decoding and attribute decoding. The embodiments of the present application relate to geometric decoding of a point cloud.

[0307] In some embodiments, the geometric information of the point cloud is also referred to as the position information of the point cloud. Therefore, the geometric decoding of the point cloud is also referred to as the position decoding of the point cloud.

[0308] In the octree-based encoding method, the encoding end constructs an octree structure of the point cloud based on the geometric information of the point cloud. As shown in Figure 10, the point cloud is enclosed by a minimum rectangular block. The bounding box is first divided into octrees to obtain 8 nodes. The occupied nodes among these 8 nodes, that is, the nodes including the points, are further divided into octrees, and so on, until the division is to the voxel level, for example, to a 1X1X1 cube. The point cloud octree structure obtained by such division includes multiple layers of nodes, for example, N layers. During encoding, the occupancy information of each layer is encoded layer by layer until the voxel-level leaf nodes of the last layer are encoded. That is to say, in octree encoding, the point cloud is divided into octrees, and finally the points in the point cloud are divided into voxel-level leaf nodes of the octree. The encoding of the point cloud is achieved by encoding the entire octree.

[0309] Correspondingly, the decoder first decodes the point cloud geometry stream to obtain the occupancy information of the root node of the point cloud's octree. Based on this occupancy information, it determines the child nodes of the root node, that is, the nodes in the second layer of the octree. Next, it decodes the geometry stream to obtain the occupancy information of each node in the second layer. Based on this occupancy information, it determines the nodes in the third layer of the octree, and so on.

[0310] However, for some relatively flat nodes or nodes with planar characteristics, the coding efficiency of point cloud geometric information can be further improved by using plane coding. For example, as shown in Figure 5A, the four occupied child nodes in the current node are all located in the low plane position of the current node in the Z coordinate axis direction. At this time, the occupancy information of the current node is represented as: 11001100. When encoding the current node using plane coding, first, an identifier needs to be encoded to indicate that the current node is a plane in the Z coordinate axis direction. Secondly, if the current node is a plane in the Z coordinate axis direction, the plane position of the current node needs to be represented, for example, using 1 bit to indicate that the four occupied child nodes in the current node are located in the low plane position of the current node in the Z coordinate axis direction. Secondly, only the low plane node occupancy information in the Z coordinate axis direction needs to be encoded (i.e., the occupancy information of the four child nodes 0246). Therefore, encoding the current node based on the plane coding method only requires encoding 6 bits, which can reduce the representation of 2 bits compared to the original octree coding, thereby improving the coding performance of the point cloud.

[0311] As can be seen from the above, when plane coding is used for the current node, the encoder needs to predictively encode the plane structure information of the current node. Correspondingly, the decoder predictively decodes the plane structure information of the current node and, based on the decoded plane structure information, obtains the geometric information of the current node.

[0312] Currently, the plane structure information of the current node is predictively encoded based on some prior reference information, such as the spatial distance between the nodes at the same division depth and the same coordinates as the current node, and / or the plane position of the node at the same division depth and the same coordinates as the current node, resulting in poor prediction coding performance of the plane structure information.

[0313] In order to solve the above problems, in an embodiment of the present application, the decoding end predicts and decodes the plane structure of the current node based on the occupancy information of the N neighboring nodes of the current node, thereby improving the prediction encoding and decoding performance of the plane structure information and improving the encoding and decoding efficiency and performance of the point cloud.

[0314] In an embodiment of the present application, in order to improve the prediction decoding accuracy of the plane structure information of the current node, the occupancy information of the neighboring nodes whose geometric information of the current node has been decoded is usually used to predict and decode the plane structure information of the current node.

[0315] In some embodiments, for ease of description, the N neighboring nodes of the current node whose geometric information has been decoded are recorded as first-type neighboring nodes.

[0316] In an embodiment of the present application, the first type of neighborhood node can be understood as a neighborhood node whose occupied status of the sub-nodes has been decoded. For example, the occupied status of the 8 sub-nodes of neighborhood node 1 is 11001010, where 1 indicates occupied and 0 indicates unoccupied.

[0317] It should be noted that, in the embodiment of the present application, the specific method for determining the first type of neighborhood nodes is not limited.

[0318] In one example, as shown in FIG11 , the first type of neighboring nodes of the current node include any node whose geometric information has been decoded within the 3X3 point cloud space area.

[0319] In one example, as shown in Figure 12, the bold dashed line node is the current node to be encoded, the solid line nodes are the three neighboring nodes coplanar with the current node, the dashed line nodes are the three neighboring nodes colinear with the current node, and the long dashed line nodes are the neighboring nodes co-pointing with the current node. Because according to the order of point cloud decoding, when decoding the occupancy information of the current node, the geometric information of the seven neighboring nodes coplanar, co-linear, and co-pointing with the current node (left front and bottom direction) shown in Figure 12 has already been decoded, therefore, these seven neighboring nodes can be recorded as first-type neighboring nodes.

[0320] In one example, the first type of neighboring nodes of the current node include, in addition to the seven neighboring nodes that are coplanar, colinear, and co-point with the current node (left front and lower direction) as shown in Figure 12, other nodes whose geometric information has been decoded within a preset reference neighborhood range may also be included. This embodiment of the present application does not impose any restrictions on this.

[0321] In some embodiments, the first type of neighboring node of the current node is invalid. For example, the current node does not include the first type of neighboring node (i.e., the neighboring node including the decoded geometric information). In this case, the decoding end cannot use the occupancy information of the above-mentioned first type of neighboring node to predict and decode the plane structure information of the current node.

[0322] Based on this, before the decoding end predictively decodes the plane structure information of the current node, it first needs to determine the first information corresponding to the current node. The first information is used to indicate whether the current node has a first type of neighboring node (i.e., a neighboring node whose geometric information has been decoded). Then, based on the first information, the N neighboring nodes of the current node are determined. For example, when the first information indicates that the current node includes a first type of neighboring node, the decoding end determines the N first type of neighboring nodes of the current node, and predictively decodes the plane structure information of the current node based on the geometric information of the first type of neighboring nodes. For another example, if the first information indicates that the current node does not include a first type of neighboring node, the decoding end determines the N other types of neighboring nodes of the current node, and then predictively decodes the plane structure information of the current node based on the geometric information of these N other types of neighboring nodes.

[0323] The following describes a specific process in which the decoding end determines the first information corresponding to the current node.

[0324] The embodiment of the present application does not limit the specific form of the first information neighAvaibale, which can be any information that can express whether the current node has a first type of neighboring node.

[0325] In one possible implementation, the first information "neighAvaibale" includes a flag, and the decoding end can determine whether the current node has a first-type neighboring node based on the value of the flag. For example, if the value of the flag is true, it indicates that the current node includes a first-type neighboring node; if the value of the flag is false, it indicates that the current node does not have a first-type neighboring node.

[0326] The embodiment of the present application does not limit the specific method in which the decoding end determines the first information neighAvaibale corresponding to the current node.

[0327] In some embodiments, when encoding the geometric information of the current node, the encoder determines whether the current node has a first-type neighboring node, and based on whether the current node has a first-type neighboring node, determines the first information neighAvaibale corresponding to the current node, and then writes the first information neighAvaibale into the bitstream. For example, if the current node includes a first-type neighboring node, the first information neighAvaibale is set to true (true) and written into the bitstream; if the current node does not include a first-type neighboring node, the first information neighAvaibale is set to false (false) and written into the bitstream. In this way, the decoder obtains the first information corresponding to the current node by decoding the bitstream, and then determines whether the current node has a first-type neighboring node based on the first information neighAvaibale.

[0328] In some embodiments, the decoding end automatically determines the first information "neighAvaibale" corresponding to the current node. For example, the decoding end searches the neighboring nodes of the current node for a first-type neighboring node whose geometric information has been decoded. For example, if the current node includes a first-type neighboring node, the first information "neighAvaibale" is set to true; if the current node does not include a first-type neighboring node, the first information "neighAvaibale" is set to false.

[0329] After the decoding end determines the first information corresponding to the current node based on the above steps, it executes the following step S102.

[0330] S102: Based on the first information, obtain the placeholder information of N neighboring nodes of the current node.

[0331] Wherein, N is a positive integer.

[0332] After determining the first information corresponding to the current node based on the above steps, the decoder determines whether the current node has a first-type neighboring node based on the first information. In this way, the occupancy information of the N neighboring nodes of the current node can be obtained based on the first information.

[0333] The embodiment of the present application does not limit the specific process of the decoding end obtaining the occupancy information of the N neighboring nodes of the current node based on the first information.

[0334] Case 1: If the first information indicates that at least one first-type neighboring node of the current node is valid, the decoding end obtains the placeholder information of the N first-type neighboring nodes of the current node, and uses the placeholder information of the N first-type neighboring nodes as the placeholder information of the N neighboring nodes of the current node.

[0335] In this case 1, if the first information corresponding to the current node indicates that at least one first-type neighboring node of the current node is valid (i.e., exists), since the geometric information of the first-type neighboring nodes has been decoded, using the occupancy information of the first-type neighboring nodes whose geometric information has been decoded to predict the plane structure information of the current node can improve the prediction accuracy of the plane structure information of the current node. Therefore, the decoding end obtains the occupancy information of the N first-type neighboring nodes of the current node, and predicts and decodes the plane structure information of the current node based on the occupancy information of these N first-type neighboring nodes.

[0336] The embodiment of the present application does not limit the number and specific locations of the N first-type neighborhood nodes.

[0337] In some embodiments, the N first-type neighborhood nodes include at least one of three first coplanar neighborhood nodes, three first collinear neighborhood nodes, and one first co-point neighborhood node. As shown in Figure 12, the three first coplanar neighborhood nodes include a neighborhood node coplanar with the front surface of the current node, a neighborhood node coplanar with the left surface of the current node, and a neighborhood node coplanar with the lower surface of the current node. The three first collinear neighborhood nodes include a neighborhood node colinear with the left sideline of the front surface of the current node, a neighborhood node colinear with the lower sideline of the front surface of the current node, and a neighborhood node colinear with the left sideline of the lower surface of the current node. The first co-point neighborhood node is a neighborhood node that has a common point with the lower left front vertex of the current node.

[0338] In some embodiments, as shown in FIG12 , if all seven first-type neighboring nodes of the current node exist, in one example, these seven first-type neighboring nodes can be used as the N first-type neighboring nodes of the current node, where N = 7. In another example, N first-type neighboring nodes can be selected from these seven first-type neighboring nodes, where N is a positive integer less than 7.

[0339] In some embodiments, as shown in FIG12 , if only some of the seven first-type neighboring nodes of the current node exist, in one example, these remaining first-type neighboring nodes can be used as the N first-type neighboring nodes of the current node. In another example, N first-type neighboring nodes can be selected from these remaining first-type neighboring nodes.

[0340] In another specific embodiment, the N first-type neighboring nodes of the current node include the 7 neighboring nodes in FIG. 12 .

[0341] In another specific embodiment, the N first-type neighboring nodes of the above-mentioned current node include the neighboring nodes that are coplanar and co-point with the current node among the 7 neighboring nodes in the above-mentioned Figure 12, for example, including 3 first coplanar neighboring nodes that are coplanar with the current node and 1 first co-point neighboring node that is co-point with the current node.

[0342] In another specific embodiment, the N first-type neighboring nodes of the above-mentioned current node include neighboring nodes that are collinear and co-point with the current node among the 7 neighboring nodes in the above-mentioned Figure 12, for example, including 3 first collinear neighboring nodes that are collinear with the current node and 1 first co-point neighboring node that co-points with the current node.

[0343] In another specific embodiment, the N first-type neighboring nodes of the above-mentioned current node include the neighboring nodes that are colinear and coplanar with the current node among the 7 neighboring nodes in the above-mentioned Figure 12, for example, including 3 first coplanar neighboring nodes that are coplanar with the current node and 3 first colinear neighboring nodes that are colinear with the current node.

[0344] In another specific embodiment, the N first-type neighboring nodes of the above-mentioned current node only include at least one first coplanar neighboring node that is coplanar with the current node among the 7 neighboring nodes in the above-mentioned Figure 12, or at least one first colinear neighboring node that is colinear with the current node, or a first co-point neighboring node that has a common point with the current node.

[0345] Based on the above method, the decoding end determines the N first-type neighboring nodes of the current node. Since the geometric information of the above-mentioned N first-type neighboring nodes has been decoded, the decoding end can obtain the occupancy information of these N first-type neighboring nodes, where the occupancy information of the first-type neighboring node indicates whether each child node of the first-type neighboring node is unoccupied. For example, if the present application adopts octree encoding, the occupancy information of the first neighboring node is 8 bits of information.

[0346] The above describes the specific process of obtaining the geometric information of N first-type neighboring nodes when the first information indicates that the current node includes first-type neighboring nodes in Case 1.

[0347] Case 2: If the first information indicates that all first-type neighboring nodes of the current node are invalid, the placeholder information of the N second-type neighboring nodes of the current node is obtained, and the placeholder information of the N second-type neighboring nodes is used as the placeholder information of the N neighboring nodes of the current node.

[0348] In case 2, if the first information corresponding to the current node indicates that the first type of neighboring node of the current node is invalid (i.e., does not exist), the decoder cannot use the occupancy information of the first type of neighboring node to predictively decode the plane structure information of the current node. In this case, the decoder determines N second type neighboring nodes of the current node and predictively decodes the plane structure information of the current node based on the occupancy information of the N second type neighboring nodes.

[0349] Among them, the second type of neighboring nodes are neighboring nodes whose geometric information is not decoded.

[0350] In the embodiment of the present application, the geometric information of the second-type neighbor node is not decoded. Therefore, the occupancy status of the second-type neighbor node's child nodes is unknown, but whether the second-type neighbor node is occupied is known. For example, when the second-type neighbor node is occupied, the occupancy information of the second-type neighbor node is represented as 1; when the second-type neighbor node is occupied, the occupancy information of the second-type neighbor node is represented as 0.

[0351] As can be seen, in this embodiment of the present application, the placeholder information of the second-type neighbor node is different from the placeholder information of the first-type neighbor node. The placeholder information of the first-type neighbor node indicates whether the sub-decoding of the first-type neighbor node is occupied, which is 8 bits of information. The placeholder information of the second-type neighbor node indicates whether the second-type neighbor node is occupied, which is 1 bit of information.

[0352] The embodiment of the present application does not limit the number and specific locations of the N second-type neighborhood nodes.

[0353] In some embodiments, the N second-type neighboring nodes include any neighboring node of the current node except the first-type neighboring node.

[0354] In some embodiments, the N second-type neighborhood nodes include at least one of three second coplanar neighborhood nodes and nine second collinear neighborhood nodes. Exemplarily, as shown in FIG13 , the three second coplanar neighborhood nodes include a neighborhood node coplanar with the back of the current node, a neighborhood node coplanar with the right side of the current node, and a neighborhood node coplanar with the top of the current node, and the nine second collinear neighborhood nodes include four neighborhood nodes that are respectively colinear with the four edges of the right surface of the current node, three neighborhood nodes that are respectively colinear with the front side edge line, the left side edge line, and the back side edge line of the upper surface of the current node, and two neighborhood nodes that are respectively colinear with the left side edge line and the bottom side edge line of the back surface of the current node.

[0355] In some embodiments, as shown in FIG13 , if all 12 second-type neighboring nodes of the current node exist, in one example, these 12 second-type neighboring nodes can be used as the N second-type neighboring nodes of the current node, where N = 12. In another example, N second-type neighboring nodes can be selected from these 12 second-type neighboring nodes, where N is a positive integer less than 12.

[0356] In some embodiments, as shown in FIG13 , if only some of the 12 second-type neighboring nodes of the current node exist, in one example, these remaining second-type neighboring nodes can be used as the N second-type neighboring nodes of the current node. In another example, N second-type neighboring nodes can be selected from these remaining second-type neighboring nodes.

[0357] In another specific embodiment, the N second-type neighboring nodes of the current node include the 12 neighboring nodes in FIG. 13 .

[0358] In another specific embodiment, the N second-type neighboring nodes of the current node include neighboring nodes that are coplanar with the current node among the 12 neighboring nodes in FIG. 13 , for example, include 3 second coplanar neighboring nodes that are coplanar with the current node.

[0359] In another specific embodiment, the N second-type neighboring nodes of the current node include neighboring nodes that are collinear with the current node among the 12 neighboring nodes in FIG. 13 , for example, 9 second collinear neighboring nodes that are collinear with the current node.

[0360] Based on the above method, the decoding end determines the N second-type neighboring nodes of the current node. Since the geometric information of the above-mentioned N second-type neighboring nodes is not decoded, the decoding end can obtain the occupancy status of each second-type neighboring node in the N second-type neighboring nodes, and then determine the occupancy status of the second-type neighboring nodes as the occupancy information of the second-type neighboring nodes. For example, when the second-type neighboring node is occupied, the occupancy information of the second-type neighboring node is determined to be 1. If the second-type neighboring node is not occupied, the occupancy information of the second-type neighboring node is determined to be 0. In other words, the occupancy information of the second-type neighboring node is 1 bit of information.

[0361] After the decoding end determines the N neighboring nodes of the current node based on the first information, it executes the following step S103.

[0362] S103 : Based on the occupancy information of the N neighboring nodes, predict and decode the plane structure information of the current node.

[0363] In an embodiment of the present application, the plane structure information of the current node includes the plane identification information of the current node and / or the plane position information of the current node.

[0364] From the above, we can see that the plane identification of the current node is PlaneMode i (i=0,1,2) indicates that i=0 represents the X coordinate axis, i=1 represents the Y coordinate axis, and i=2 represents the Z coordinate axis. PlaneMode i =0 means the current node is not a plane in the direction of the i-th coordinate axis. PlaneMode i =1 means that the current node is a plane in the direction of the i-th coordinate axis.

[0365] If the current node is a plane in the direction of the i-th coordinate axis, that is, PlaneMode i = 1, the decoding end continues to decode the plane position information of the current node on the i-th coordinate axis. For example, using PlanePosition i Indicates the plane position information of the current node in the direction of the i-th coordinate axis, such as PlanePosition i =0 means that the current node is a plane in the direction of the i-th coordinate axis, and the plane position is the low plane, PlanePosition i =1 means that the current node is a high plane in the direction of the i-th coordinate axis.

[0366] In the embodiment of the present application, the plane structure information of the current node is predicted and decoded based on the occupancy information of N neighboring nodes, that is, the plane identification and / or plane position information of the current node is predicted and decoded.

[0367] For example, based on the occupancy information of the N neighboring nodes of the current node, the plane identifier of the current node on the i-th coordinate axis is predicted and decoded.

[0368] For another example, based on the occupancy information of the N neighboring nodes of the current node, the plane position information of the current node on the i-th coordinate axis is predicted and decoded.

[0369] In an embodiment of the present application, the plane structure information of the current node is predicted and decoded based on the placeholder information of the N neighboring nodes of the current node. This can be understood as using the placeholder information of the N neighboring nodes of the current node as the context information of the plane structure information of the current node to predict and decode the plane structure information of the current node. For example, based on the placeholder information of the N neighboring nodes of the current node, a context model index is determined, based on the context model index, a context model is determined, and based on the context model, the plane structure information of the current node is predicted and decoded, for example, the plane identifier of the current node is predicted and decoded based on the context model, or the plane position information of the current node is predicted and decoded based on the context model.

[0370] The embodiment of the present application does not limit the specific manner in which the decoding end predictively decodes the plane structure information of the current node based on the occupancy information of N neighboring nodes.

[0371] In some embodiments, it can be seen from the above that the N neighboring nodes of the current node may be first type neighboring nodes or second type neighboring nodes. However, in this embodiment, the types of the N neighboring nodes are not considered, and the decoding end uses the occupancy information of the N neighboring nodes as context information to predict the plane structure information of the current node. For example, the occupancy information of the N neighboring nodes of the current node is used as context information to determine a context model index, and based on the context model index, a context model is determined, and based on the context model, the plane structure information of the current node is predicted and decoded.

[0372] In some embodiments, if the plane structure information of the current node includes the plane position information of the current node, the decoding end considers the type of the neighboring nodes when predicting and decoding the plane structure information of the current node based on the occupancy information of the N neighboring nodes. In this case, the above S103 includes the following step S103-A:

[0373] S103-A: Based on the types and occupancy information of the N neighboring nodes, predict and decode the plane position information of the current node.

[0374] In this embodiment, the decoding end considers the type of neighboring nodes when predicting and decoding the plane position information of the current node based on the occupancy information of the N neighboring nodes. For example, different approaches can be used for predicting and decoding the plane position information of the current node based on the occupancy information of the neighboring nodes for different types of neighboring nodes.

[0375] In some embodiments, the decoding end may also use the types and placeholder information of the N neighboring nodes as context information to predictively encode the planar structure information of the current node. For example, the types and placeholder information of the N neighboring nodes may be used as context information to determine a context model index, and based on the context model index, a context model may be determined. Based on the context model, predictive decoding of the planar position information of the current node may be performed.

[0376] In some embodiments, the above S103-A includes the following steps:

[0377] S103-A1. Determine, based on the types and placeholder information of the N neighboring nodes, first context information and / or second context information corresponding to the i-th coordinate axis, where the i-th coordinate axis is the X-coordinate axis, the Y-coordinate axis, or the Z-coordinate axis;

[0378] S103-A2: Based on the first context information and / or the second context information corresponding to the i-th coordinate axis, predict and decode the plane position information of the current node on the i-th coordinate axis.

[0379] In this embodiment, the decoding end determines at least one of the first context information and the second context information corresponding to the i-th coordinate axis based on the type and occupancy information of the N neighboring nodes, and then predicts and decodes the plane position information of the current node on the i-th coordinate axis based on the determined first context information and / or second context information. For example, the decoding end determines at least one of the first context information and the second context information corresponding to the X-coordinate axis based on the type and occupancy information of the N neighboring nodes, and then predicts and decodes the plane position information of the current node on the X-coordinate axis based on the first context information and / or the second context information corresponding to the X-coordinate axis. For another example, the decoding end determines at least one of the first context information and the second context information corresponding to the Y-coordinate axis based on the type and occupancy information of the N neighboring nodes, and then predicts and decodes the plane position information of the current node on the Y-coordinate axis based on the first context information and / or the second context information corresponding to the Y-coordinate axis. For another example, the decoding end determines at least one of the first context information and the second context information corresponding to the Z coordinate axis based on the type and occupancy information of N neighboring nodes, and then predicts and decodes the planar position information of the current node on the Z coordinate axis based on the first context information and / or the second context information corresponding to the Z coordinate axis.

[0380] In the embodiment of the present application, due to different types of neighboring nodes, the implementation of S103-A1 includes at least the following two cases:

[0381] Case 1: If the N neighboring nodes are the first type of neighboring nodes, then the above S103-A1 includes the following steps:

[0382] S103-A1-a1. Determine the plane structure information of the N neighboring nodes based on the occupancy information of the N neighboring nodes, where the occupancy information of the neighboring nodes indicates the occupancy information of the child nodes of the neighboring nodes;

[0383] S103-A1-a2. Determine the first context information and / or the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes.

[0384] In case 1, if the current node includes a first-type neighboring node, when the decoding end uses the occupancy information of the first-type neighboring node to predict and decode the plane position information of the current node, first, based on the occupancy information of the N first-type neighboring nodes, the plane structure information of the N first-type neighboring nodes is determined, and then based on the plane structure information of the N first-type neighboring nodes, the first context information and / or second context information corresponding to the i-th coordinate axis is determined. Finally, based on the first context information and / or second context information corresponding to the i-th coordinate axis, a target context model is determined, and the target context model is used to predict and decode the plane position information of the current node on the i-th coordinate axis, thereby improving the accuracy of predicting and decoding the plane position information of the current node.

[0385] In an embodiment of the present application, for each of the N neighboring nodes, the specific process of determining the plane structure information of the neighboring node based on the occupancy information of the neighboring node is consistent. For the sake of convenience of description, any one of the N neighboring nodes is taken as an example for illustration.

[0386] In some embodiments, the above S103-A1-a1 includes the following step S103-A1-a11:

[0387] S103-A1-a11. For any neighboring node among the N neighboring nodes, determine at least one of the plane identification information and the plane position information of the neighboring node based on the occupancy information of the neighboring node.

[0388] In an embodiment of the present application, the decoding end may determine the plane identification information and / or plane position information of the neighboring node based on the occupancy information of the neighboring node.

[0389] The following describes a specific process of determining the plane identification information of a neighboring node based on the placeholder information of the neighboring node.

[0390] Specifically, the decoding end determines plane0 and plane1 corresponding to the i-th coordinate axis based on the occupancy information of the neighboring node, and then determines the plane identification information corresponding to the neighboring node on the i-th coordinate axis based on plane0 and plane1.

[0391] For example, the decoder determines the plane 0 corresponding to the neighboring node on the X, Y, and Z coordinate axes respectively based on the following code: uint8_t plane0 = 0; plane0| = ! ! (occupancy & 0x0f) << 0; plane0| = ! ! (occupancy & 0x33) << 1; plane0| = ! ! (occupancy & 0x55) << 2;

[0392] Where occupancy represents the occupancy information of the neighboring node. plane0|=! !(occupancy&0x0f)<<0 represents the plane0 corresponding to the neighboring node on the X-coordinate axis. plane0|=! !(occupancy&0x33)<<1 represents the plane0 corresponding to the neighboring node on the Y-coordinate axis. plane0|=! !(occupancy&0x33)<<1 represents the plane0 corresponding to the neighboring node on the Y-coordinate axis. (occupancy&0x55)<<2 indicates plane 0 corresponding to the neighboring node on the Z coordinate axis. 0x0f indicates 00001111. The occupancy information of the neighboring node is ANDed with 0x0f, resulting in a value of 0 for the lower plane of the neighboring node on the X coordinate axis. 0x33 indicates 00110011. The occupancy information of the neighboring node is ANDed with 0x33, resulting in a value of 0 for the lower plane of the neighboring node on the Y coordinate axis. 0x55 indicates 01010101. The occupancy information of the neighboring node is ANDed with 0x55, resulting in a value of 0 for the lower plane of the neighboring node on the Z coordinate axis.

[0393] For example, the decoder determines the plane 1 corresponding to the neighboring node on the X, Y, and Z coordinate axes respectively based on the following code: uint8_t plane1 = 0; plane1| = ! ! (occupancy & 0xf0) << 0; plane1| = ! ! (occupancy & 0xcc) << 1; plane1| = ! ! (occupancy & 0xaa) << 2;

[0394] Where occupancy represents the occupancy information of the neighboring node, & represents the AND operation, plane1|=! !(occupancy&0xf0)<<0 represents the plane1 corresponding to the neighboring node on the X-coordinate axis, plane1|=! !(occupancy&0xcc)<<1 represents the plane1 corresponding to the neighboring node on the Y-coordinate axis, plane1|=! ! (occupancy&0xaa)<<2 indicates plane 1 corresponding to the neighboring node on the Z coordinate axis. 0xf0 represents 11110000. The occupancy information of the neighboring node is ANDed with 0xf0, resulting in a value of 0 for the high plane of the neighboring node on the X coordinate axis. 0xcc represents 11001100. The occupancy information of the neighboring node is ANDed with 0xcc, resulting in a value of 0 for the high plane of the neighboring node on the Y coordinate axis. 0xaa represents 10101010. The occupancy information of the neighboring node is ANDed with 0xaa, resulting in a value of 0 for the high plane of the neighboring node on the Z coordinate axis.

[0395] Based on the above method, the decoding end can determine plane0 and plane1 corresponding to the neighborhood node on the i-th coordinate axis, and then determine the plane identification information corresponding to the neighborhood node on the i-th coordinate axis based on plane0 and plane1.

[0396] For example, for the i-th coordinate axis, the plane0 and plane1 of the i-th coordinate axis determined above are XORed to determine the plane identification information of the neighboring node on the i-th axis. Specifically, only when a single plane perpendicular to the axis is occupied is it considered a plane.

[0397] For example, the decoding end determines the plane identification information of the neighboring node on the i-th axis based on the following formula (24): planarMode=plane0^plane1 (24)

[0398] Among them, planarMode represents the plane identification information of the neighborhood node on the i-th axis, and ^ represents the exclusive OR operation.

[0399] As shown in the above formula (24), the decoding end performs an XOR operation on plane0 and plane1 corresponding to the neighboring node on the X coordinate axis to obtain the plane identification information of the neighboring node on the X coordinate axis. For another example, the decoding end performs an XOR operation on plane0 and plane1 corresponding to the neighboring node on the Y coordinate axis to obtain the plane identification information of the neighboring node on the Y coordinate axis. For another example, the decoding end performs an XOR operation on plane0 and plane1 corresponding to the neighboring node on the Z coordinate axis to obtain the plane identification information of the neighboring node on the Z coordinate axis.

[0400] The specific process of determining the planar location information of the neighborhood nodes is introduced below.

[0401] In an embodiment of the present application, the decoding end can determine the plane identification information planarMode of the neighboring node based on the above method, and then determine the plane position information of the neighboring node based on the plane identification information planarMode.

[0402] For example, the decoding end determines the plane position information of the neighboring node on the i-th axis based on the following formula (25): PlanePos=planarMode&plane1 (25)

[0403] Among them, PlanePos represents the plane position information of the neighboring node on the i-th axis, and & represents the AND operation.

[0404] As shown in the above formula (25), the decoding end performs an AND operation on the plane identification information of the neighboring node on the X coordinate axis and the corresponding plane1 on the X coordinate axis to obtain the plane position information of the neighboring node on the X coordinate axis. For another example, the decoding end performs an AND operation on the plane identification information on the Y coordinate axis and the corresponding plane1 on the Y coordinate axis to obtain the plane position information of the neighboring node on the Y coordinate axis. For another example, the decoding end performs an AND operation on the plane identification information on the Z coordinate axis and the corresponding plane1 on the Z coordinate axis to obtain the plane position information of the neighboring node on the Z coordinate axis.

[0405] The following example illustrates how the decoder determines the plane identification and plane position information of a neighboring node on the X-axis. Assuming the neighboring node's occupancy information is 10110000, substitute the neighboring node's occupancy information 10110000 into plane0|=! !(10110000 & 00001111)<<0, resulting in the corresponding plane0 for this neighboring node on the X-axis being 000000000. Substitute the neighboring node's occupancy information 10110000 into plane1|=! !(10110000 & 11110000)<<0, resulting in the corresponding plane1 for this neighboring node on the X-axis being 10110000. Next, an XOR operation is performed on plane0 and plane1 to obtain the plane identification information of the neighboring node on the X-coordinate axis: planarMode = 00000000^10110000 = 10110000. From planarMode = 10110000, it can be seen that there is no occupied node on the high plane of the X-coordinate axis, and there is an occupied node on the low plane of the X-coordinate axis. Therefore, it can be determined that the neighboring node is a plane in the direction of the X-coordinate axis. Next, the decoding end performs an AND operation on the plane identification information of the neighboring node on the X-coordinate axis, planarMode, and plane1 to obtain the plane position information of the neighboring node on the X-coordinate axis, that is, PlanePos = 10110000 & 10110000 = 10110000. From PlanePos = 10110000, it can be seen that the neighboring node is a plane in the direction of the X-coordinate axis, and the plane position is a low plane.

[0406] The above describes the specific process of determining the plane identification information and plane position information of the neighboring nodes on the X-coordinate axis. The specific process of determining the plane identification information and plane position information of the neighboring nodes on the Y-coordinate axis and the Z-coordinate axis can refer to the above-mentioned process of determining the plane identification information and plane position information of the X-coordinate axis, which will not be repeated here.

[0407] Based on the above steps, the decoding end determines the plane identification information and / or plane position information of each of the N neighboring nodes, and then predicts and decodes the plane position information of the current node based on the plane identification information and / or plane position information of each of the N neighboring nodes.

[0408] In the embodiment of the present application, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined based on the plane structure information of N neighboring nodes in the above S103-A1-a2.

[0409] The following describes a specific process of determining the first context information corresponding to the i-th coordinate axis at the decoding end based on the planar structure information of N neighboring nodes.

[0410] It should be noted that, in the embodiment of the present application, the specific manner in which the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes includes but is not limited to the following:

[0411] In a first approach, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane structure information of some of the N neighboring nodes.

[0412] For example, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane structure information of P neighboring nodes among the N neighboring nodes that are coplanar with the current node, where P is a positive integer.

[0413] The plane structure information of the P neighboring nodes includes the plane identification information and / or plane position information of the P neighboring nodes. That is, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane identification information of the P coplanar neighboring nodes. Alternatively, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane position information of the P coplanar neighboring nodes. Alternatively, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane identification information and plane position information of the P coplanar neighboring nodes.

[0414] The embodiment of the present application does not limit the specific manner in which the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane structure information of P neighboring nodes among N neighboring nodes that are coplanar with the current node.

[0415] In one possible implementation, the decoding end performs an AND operation on the plane structure information of any one of the P neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. The decoding end then weights the first values ​​corresponding to the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0416] Exemplarily, the first preset value corresponding to the X coordinate axis is 0, the first preset value corresponding to the Y coordinate axis is 1, and the first preset value corresponding to the Z coordinate axis is 2.

[0417] As can be seen from the above, the plane structure information of the neighboring node includes plane identification information and / or plane position information. Therefore, in some embodiments, the decoding end performs an AND operation on the plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node, including: the decoding end performs an AND operation on the plane identification information and / or plane position information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. In other words, the decoding end performs an AND operation on the plane identification information of P coplanar neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights the result to obtain the first context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane position information of P coplanar neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights the result to obtain the first context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane identification information and plane position information of P coplanar neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights the result to obtain the first context information corresponding to the i-th coordinate axis.

[0418] In the embodiment of the present application, the specific method of weighting the first values ​​corresponding to the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis is not limited.

[0419] In some embodiments, the weights of the first values ​​corresponding to the P neighboring nodes are preset values, so that the first values ​​corresponding to the P neighboring nodes can be weighted based on the weights of the first values ​​corresponding to each of the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis.

[0420] In some embodiments, weighting the first values ​​corresponding to the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis includes the following steps A1 and A2:

[0421] Step A1: determining the number of left shifts corresponding to the first value, and determining the weight corresponding to the first value based on the number of left shifts;

[0422] Step A2: Based on the weighted weight of the first value, weight the first values ​​corresponding to the P neighborhood nodes to obtain first context information corresponding to the i-th coordinate axis.

[0423] For example, assume that the P neighboring nodes coplanar with the current node among the N neighboring nodes are the three coplanar neighboring nodes in Figure 12. The plane identification information of these three coplanar neighboring nodes is recorded as: coPlanarLeftPlaneMode, coPlanarFrontPlaneMode, and coPlanarBelowPlaneMode. The plane position information of these three coplanar neighboring nodes is recorded as: coPlanarLeftPlanePos, coPlanarFrontPlanePos, and coPlanarBelowPlanePos.

[0424] Performing an AND operation on coPlanarLeftPlaneMode and the first preset value yields a first value of 1, performing an AND operation on coPlanarFrontPlaneMode and the first preset value yields a first value of 2, performing an AND operation on coPlanarBelowPlaneMode and the first preset value yields a first value of 3, performing an AND operation on coPlanarLeftPlanePos and the first preset value yields a first value of 4, performing an AND operation on coPlanarFrontPlanePos and the first preset value yields a first value of 5, and performing an AND operation on coPlanarBelowPlanePos and the first preset value yields a first value of 6. At this point, the six first values ​​occupy a total of six bits, so the number of left shifts corresponding to the six first values ​​can be determined. Assume that the number of left shifts corresponding to the first value 1 is 5, the number of left shifts corresponding to the first value 2 is 4, the number of left shifts corresponding to the first value 3 is 3, the number of left shifts corresponding to the first value 4 is 2, the number of left shifts corresponding to the first value 5 is 1, and the number of left shifts corresponding to the first value 6 is 0.

[0425] In this way, the weighted weight corresponding to each first value can be determined based on the number of left shifts corresponding to each first value. For example, if the number of left shifts corresponding to the first value is m, then 2 m Determine the weighted weight corresponding to the first value. In this way, it can be determined that the weighted weight corresponding to the first value 1 is 2 5 , the first value 2 corresponds to a weighted weight of 2 4 , the first value 3 corresponds to a weighted weight of 2 3 , the first value 4 corresponds to a weighted weight of 2 2 , the first value 5 corresponds to a weighted weight of 2 1 , the first value 6 corresponds to a weighted weight of 2 0 .

[0426] Then, based on the weighted weights of the first values, the first values ​​are weighted to obtain the first context information corresponding to the i-th coordinate axis. It is understood that the weighting of the first values ​​can be understood as concatenating the first values, that is, placing the first values ​​in corresponding bits to obtain the first context information corresponding to the i-th coordinate axis.

[0427] In one example, if the decoding end performs an AND operation on the plane identification information of P coplanar neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the first context information corresponding to the i-th coordinate axis, the decoding end calculates the first context information Ctx1 using the method shown in the following code:

[0428] In one example, if the decoding end performs an AND operation on the planar position information of P coplanar neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the first context information corresponding to the i-th coordinate axis, the decoding end calculates the first context information Ctx1 using the method shown in the following code:

[0429] In one example, if the decoding end performs an AND operation on the plane identification information and plane position information of P coplanar neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the first context information corresponding to the i-th coordinate axis, the decoding end calculates the first context information Ctx1 using the method shown in the following code:

[0430] The above describes a specific process in which the decoding end determines the first context information corresponding to the i-th coordinate axis based on the planar structure information of P neighboring nodes coplanar with the current node among the N neighboring nodes.

[0431] In some embodiments, the decoding end may further determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of the neighboring nodes among the N neighboring nodes that are collinear with the current node.

[0432] In some embodiments, the decoding end may further determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of the neighboring nodes among the N neighboring nodes that have a common point with the current node.

[0433] In some embodiments, the decoding end may also determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and colinear with the current node.

[0434] In some embodiments, the decoding end may also determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and co-point with the current node.

[0435] In some embodiments, the decoding end may also determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is collinear and co-point with the current node.

[0436] The above describes a specific process of determining the first context information corresponding to the i-th coordinate axis at the decoding end based on the planar structure information of some of the N neighboring nodes.

[0437] In a second approach, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the first plane position information of the N neighboring nodes.

[0438] The first plane structure information includes plane identification information and / or plane position information of the neighboring nodes. That is, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane identification information of the N neighboring nodes. Alternatively, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane position information of the N neighboring nodes. Alternatively, the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane position information and plane identification information of the N neighboring nodes.

[0439] The embodiment of the present application does not limit the specific manner in which the decoding end determines the first context information corresponding to the i-th coordinate axis based on the first plane position information of N neighboring nodes.

[0440] In one possible implementation, the decoding end performs an AND operation on the first plane position information of any one of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain a second value corresponding to the neighboring node. The decoding end then weights the second values ​​corresponding to the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0441] Exemplarily, the first preset value corresponding to the X coordinate axis is 0, the first preset value corresponding to the Y coordinate axis is 1, and the first preset value corresponding to the Z coordinate axis is 2.

[0442] As can be seen from the above, the plane structure information of the neighboring node includes plane identification information and / or plane position information. Therefore, in some embodiments, the decoding end performs an AND operation on the first plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the second value corresponding to the neighboring node, including: the decoding end performs an AND operation on the plane identification information and / or plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. In other words, the decoding end performs an AND operation on the plane identification information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then performs a weighted addition to obtain the first context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then performs a weighted addition to obtain the first context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane identification information and plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then performs a weighted addition to obtain the first context information corresponding to the i-th coordinate axis.

[0443] In the embodiment of the present application, the specific method of weighting the second values ​​corresponding to N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis is not limited.

[0444] In some embodiments, the weights of the second values ​​corresponding to the N neighboring nodes are preset values, so that the second values ​​corresponding to the N neighboring nodes can be weighted based on the weights of the second values ​​corresponding to each of the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis.

[0445] In some embodiments, the weighting of the second values ​​corresponding to the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis includes the following steps B1 and B2:

[0446] Step B1: determining the number of left shifts corresponding to the second value, and determining a weighted weight corresponding to the second value based on the number of left shifts;

[0447] Step B2: Based on the weighted weight of the second value, weight the second values ​​corresponding to the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis.

[0448] For example, assume that the N neighboring nodes include the three coplanar neighboring nodes coPlanarLeft, coPlanarFrontPlane, and coPlanarBelow, the three collinear neighboring nodes coEdgerLeft, coEdgerFront, and coEdgerBelow, and the one co-vertical neighboring node coVertex in Figure 12. Assume that the plane identification information of these seven neighboring nodes is recorded as: coPlanarLeftPlaneMode, coPlanarFrontPlaneMode, coPlanarBelowPlaneMode, coEdgerLeftPlanarMode, coEdgerFrontPlanarMode, coEdgerBelowPlanarMode, and coVertexPlanarMode, respectively. The planar position information of these seven neighboring nodes are recorded as: coPlanarLeftPlanePos, coPlanarFrontPlanePos, coPlanarBelowPlanePos, coEdgerLeftPlanePos, coEdgerFrontPlanePos, coEdgerBelowPlanePos and coVertexPlanePos.

[0449] For example, coPlanarLeftPlaneMode is ANDed with the first preset value to obtain a second value of 1, coPlanarFrontPlaneMode is ANDed with the first preset value to obtain a second value of 2, coPlanarBelowPlaneMode is ANDed with the first preset value to obtain a second value of 3, coEdgerLeftPlanarMode is ANDed with the first preset value to obtain a second value of 4, coEdgerFrontPlanarMode is ANDed with the first preset value to obtain a second value of 5, coEdgerBelowPlanarMode is ANDed with the first preset value to obtain a second value of 6, and coVertexPlanarMode is ANDed with the first preset value to obtain a second value of 7. At this time, the seven second values ​​occupy a total of seven bits, so the number of left shift bits corresponding to the seven second values ​​can be determined. Assume that the number of left shifts corresponding to the second value 1 is 6, the number of left shifts corresponding to the second value 2 is 5, the number of left shifts corresponding to the second value 3 is 4, the number of left shifts corresponding to the second value 4 is 3, the number of left shifts corresponding to the second value 5 is 2, the number of left shifts corresponding to the second value 6 is 1, and the number of left shifts corresponding to the second value 7 is 0.

[0450] In this way, the weighted weight corresponding to each second value can be determined based on the number of left shifts corresponding to each second value. For example, if the number of left shifts corresponding to the second value is m, then 2 m Determine the weighted weight corresponding to the second value. In this way, it can be determined that the weighted weight corresponding to the second value 1 is 2 6 , the second value 2 corresponds to a weighted weight of 2 5 , the second value 3 corresponds to a weighted weight of 2 4 , the second value 4 corresponds to a weighted weight of 2 3 , the second value 5 corresponds to a weighted weight of 2 2 , the second value 6 corresponds to a weighted weight of 2 1 , the second value 7 corresponds to a weighted weight of 2 0 .

[0451] Then, based on the weighted weights of the second values, the second values ​​are weighted to obtain the first context information corresponding to the i-th coordinate axis. It is understood that the weighting of the second values ​​can be understood as concatenating the second values, that is, placing the second values ​​in corresponding bits to obtain the first context information corresponding to the i-th coordinate axis.

[0452] In one example, if the decoding end performs an AND operation on the plane identification information of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the first context information corresponding to the i-th coordinate axis, the decoding end calculates the first context information Ctx1 using the method shown in the following code:

[0453] In one example, if the decoding end performs an AND operation on the plane position information of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the first context information corresponding to the i-th coordinate axis, the decoding end calculates the first context information Ctx1 using the method shown in the following code:

[0454] In one example, if the decoding end performs an AND operation on the plane identification information and plane position information of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the first context information corresponding to the i-th coordinate axis, the decoding end calculates the first context information Ctx1 using the method shown in the following code:

[0455] The above describes the specific process by which the decoder determines the first context information corresponding to the i-th coordinate axis based on the planar structure information of N neighboring nodes. It should be noted that in addition to determining the first context information corresponding to the i-th coordinate axis using the various methods described above, the decoder may also use other methods to determine the first context information corresponding to the i-th coordinate axis.

[0456] The following describes a specific process of determining the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes in S103-A1.

[0457] It should be noted that, in the embodiment of the present application, the specific manner in which the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes includes but is not limited to the following:

[0458] In a first approach, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane structure information of some of the N neighboring nodes.

[0459] For example, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane structure information of Q neighboring nodes among the N neighboring nodes that are collinear and / or co-point with the current node, where Q is a positive integer.

[0460] The plane structure information of the Q neighboring nodes includes plane identification information and / or plane position information of the Q neighboring nodes. That is, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane identification information of the P coplanar neighboring nodes. Alternatively, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane position information of the Q neighboring nodes. Alternatively, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane identification information and plane position information of the Q neighboring nodes.

[0461] The embodiment of the present application does not limit the specific method for the decoding end to determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of Q neighboring nodes among N neighboring nodes that are collinear and / or co-point with the current node.

[0462] In one possible implementation, the decoding end performs an AND operation on the plane structure information of any one of the Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. The decoding end then weights the first values ​​corresponding to the P neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0463] Exemplarily, the first preset value corresponding to the X coordinate axis is 0, the first preset value corresponding to the Y coordinate axis is 1, and the first preset value corresponding to the Z coordinate axis is 2.

[0464] As can be seen from the above, the plane structure information of the neighboring node includes plane identification information and / or plane position information. Therefore, in some embodiments, the above-mentioned decoding end performs an AND operation on the plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node, including: the decoding end performs an AND operation on the plane identification information and / or plane position information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. In other words, the decoding end performs an AND operation on the plane identification information of Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane position information of Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane identification information and plane position information of Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis.

[0465] In the embodiment of the present application, the specific method of weighting the first values ​​corresponding to the Q neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis is not limited.

[0466] In some embodiments, the weights of the first values ​​corresponding to the Q neighboring nodes are preset values, so that the first values ​​corresponding to the Q neighboring nodes can be weighted based on the weights of the first values ​​corresponding to each of the Q neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis.

[0467] In some embodiments, weighting the first values ​​corresponding to the Q neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis includes the following steps C1 and C2:

[0468] Step C1: determining the number of left shifts corresponding to the first value, and determining a weighted weight corresponding to the first value based on the number of left shifts;

[0469] Step C2: Based on the weighted weight of the first value, weight the first value corresponding to the Q neighborhood nodes to obtain second context information corresponding to the i-th coordinate axis.

[0470] For example, assume that the Q neighboring nodes among the N neighboring nodes that are collinear or co-point with the current node are the three collinear neighboring nodes coEdgerLeft, coEdgerFront, and coEdgerBelow in Figure 12, and the one neighboring node coVertex that is co-point with the current node. The plane identification information of these four neighboring nodes is recorded as: coEdgerLeftPlaneMode, coEdgerFrontPlaneMode, coEdgerBelowPlaneMode, and coVertexPlaneMode, respectively. The plane position information of these four neighboring nodes is recorded as: coEdgerLeftPlanePos, coEdgerFrontPlanePos, coEdgerBelowPlanePos, and coVertexPlanePos, respectively.

[0471] For example, coEdgerLeftPlaneMode is ANDed with the first preset value to obtain a first value of 1, coEdgerFrontPlaneMode is ANDed with the first preset value to obtain a first value of 2, coEdgerBelowPlaneMode is ANDed with the first preset value to obtain a first value of 3, coVertexPlaneMode is ANDed with the first preset value to obtain a first value of 4, coEdgerLeftPlanePos is ANDed with the first preset value to obtain a first value of 5, coEdgerFrontPlanePos is ANDed with the first preset value to obtain a first value of 6, coEdgerBelowPlanePos is ANDed with the first preset value to obtain a first value of 7, and coVertexPlanePos is ANDed with the first preset value to obtain a first value of 8. At this time, the eight first values ​​occupy a total of 8 bits, so the number of left shift bits corresponding to the eight first values ​​can be determined. Assume that the number of left shifts corresponding to the first value 1 is 7, the number of left shifts corresponding to the first value 2 is 6, the number of left shifts corresponding to the first value 3 is 5, the number of left shifts corresponding to the first value 4 is 4, the number of left shifts corresponding to the first value 5 is 3, the number of left shifts corresponding to the first value 6 is 2, the number of left shifts corresponding to the first value 7 is 1, and the number of left shifts corresponding to the first value 8 is 0.

[0472] In this way, the weighted weight corresponding to each first value can be determined based on the number of left shifts corresponding to each first value. For example, if the number of left shifts corresponding to the first value is m, then 2 m Determine the weighted weight corresponding to the first value. In this way, it can be determined that the weighted weight corresponding to the first value 1 is 2 7 , the first value 2 corresponds to a weighted weight of 2 6 , the first value 3 corresponds to a weighted weight of 2 5, the first value 4 corresponds to a weighted weight of 2 4 , the first value 5 corresponds to a weighted weight of 2 3 , the first value 6 corresponds to a weighted weight of 2 2 , the first value 7 corresponds to a weighted weight of 2 1 , the first value 8 corresponds to a weighted weight of 2 0 .

[0473] Then, based on the weighted weights of the first values, the first values ​​are weighted to obtain the second context information corresponding to the i-th coordinate axis. It is understood that the weighting of the first values ​​can be understood as concatenating the first values, that is, placing the first values ​​in corresponding bits to obtain the second context information corresponding to the i-th coordinate axis.

[0474] In one example, if the decoding end performs an AND operation on the plane identification information of the Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the second context information corresponding to the i-th coordinate axis, the decoding end calculates the second context information Ctx2 using the method shown in the following code:

[0475] In one example, if the decoding end performs an AND operation on the plane position information of Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the second context information corresponding to the i-th coordinate axis, the decoding end calculates the second context information Ctx2 using the method shown in the following code:

[0476] In one example, if the decoding end performs an AND operation on the plane identification information and plane position information of the Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the second context information corresponding to the i-th coordinate axis, the decoding end calculates the second context information Ctx2 using the method shown in the following code:

[0477] The above describes a specific process of determining the second context information corresponding to the i-th coordinate axis at the decoding end based on the plane structure information of Q neighboring nodes that are collinear and / or co-point with the current node among the N neighboring nodes.

[0478] In some embodiments, the decoding end may further determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is collinear with the current node.

[0479] In some embodiments, the decoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that has a common point with the current node.

[0480] In some embodiments, the decoding end may further determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar with the current node.

[0481] In some embodiments, the decoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and colinear with the current node.

[0482] In some embodiments, the decoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and co-point with the current node.

[0483] The above describes a specific process in which the decoding end determines the second context information corresponding to the i-th coordinate axis based on the planar structure information of some of the N neighboring nodes.

[0484] In a second approach, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the second plane position information of the N neighboring nodes.

[0485] The second plane structure information includes plane identification information and / or plane position information of the neighboring nodes. That is, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane identification information of the N neighboring nodes. Alternatively, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane position information of the N neighboring nodes. Alternatively, the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane position information and plane identification information of the N neighboring nodes.

[0486] The embodiment of the present application does not limit the specific manner in which the decoding end determines the second context information corresponding to the i-th coordinate axis based on the first plane position information of N neighboring nodes.

[0487] In one possible implementation, the decoding end performs an AND operation on the second plane position information of any one of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain a third value corresponding to the neighboring node. The decoding end then weights the third values ​​corresponding to the N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0488] Exemplarily, the first preset value corresponding to the X coordinate axis is 0, the first preset value corresponding to the Y coordinate axis is 1, and the first preset value corresponding to the Z coordinate axis is 2.

[0489] As can be seen from the above, the plane structure information of the neighboring node includes plane identification information and / or plane position information. Therefore, in some embodiments, the decoding end performs an AND operation on the second plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the third value corresponding to the neighboring node, including: the decoding end performs an AND operation on the plane identification information and / or plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the third value corresponding to the neighboring node. In other words, the decoding end performs an AND operation on the plane identification information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the decoding end performs an AND operation on the plane identification information and plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis.

[0490] In the embodiment of the present application, the specific method of weighting the third values ​​corresponding to N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis is not limited.

[0491] In some embodiments, the weights of the third values ​​corresponding to the N neighboring nodes are preset values, so that the third values ​​corresponding to the N neighboring nodes can be weighted based on the weights of the third values ​​corresponding to each of the N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis.

[0492] In some embodiments, weighting the third values ​​corresponding to the N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis includes the following steps D1 and D2:

[0493] Step D1, determining the number of left shifts corresponding to the third value, and determining a weighted weight corresponding to the third value based on the number of left shifts;

[0494] Step D2: Based on the weighted weight of the third value, weight the third values ​​corresponding to the N neighboring nodes to obtain second context information corresponding to the i-th coordinate axis.

[0495] For example, assume that the N neighboring nodes include the three coplanar neighboring nodes coPlanarLeft, coPlanarFrontPlane, and coPlanarBelow, the three collinear neighboring nodes coEdgerLeft, coEdgerFront, and coEdgerBelow, and the one co-vertical neighboring node coVertex in Figure 12. Assume that the plane identification information of these seven neighboring nodes is recorded as: coPlanarLeftPlaneMode, coPlanarFrontPlaneMode, coPlanarBelowPlaneMode, coEdgerLeftPlanarMode, coEdgerFrontPlanarMode, coEdgerBelowPlanarMode, and coVertexPlanarMode, respectively. The planar position information of these seven neighboring nodes are recorded as: coPlanarLeftPlanePos, coPlanarFrontPlanePos, coPlanarBelowPlanePos, coEdgerLeftPlanePos, coEdgerFrontPlanePos, coEdgerBelowPlanePos and coVertexPlanePos.

[0496] For example, coPlanarLeftPlaneMode is ANDed with the first preset value to obtain a third value of 1, coPlanarFrontPlaneMode is ANDed with the first preset value to obtain a third value of 2, coPlanarBelowPlaneMode is ANDed with the first preset value to obtain a third value of 3, coEdgerLeftPlanarMode is ANDed with the first preset value to obtain a third value of 4, coEdgerFrontPlanarMode is ANDed with the first preset value to obtain a third value of 5, coEdgerBelowPlanarMode is ANDed with the first preset value to obtain a third value of 6, and coVertexPlanarMode is ANDed with the first preset value to obtain a third value of 7. At this time, the seven third values ​​occupy a total of seven bits, so the number of left shift bits corresponding to the seven third values ​​can be determined. Assume that the number of left shifts corresponding to the third value 1 is 6, the number of left shifts corresponding to the third value 2 is 5, the number of left shifts corresponding to the third value 3 is 4, the number of left shifts corresponding to the third value 4 is 3, the number of left shifts corresponding to the third value 5 is 2, the number of left shifts corresponding to the third value 6 is 1, and the number of left shifts corresponding to the third value 7 is 0.

[0497] In this way, the weighted weight corresponding to each third value can be determined based on the number of left shifts corresponding to each third value. For example, if the number of left shifts corresponding to the third value is m, then 2 m The weighted weight corresponding to the third value is determined. In this way, it can be determined that the weighted weight corresponding to the third value 1 is 2 6 , the weighted weight corresponding to the third value 2 is 2 5 , the third value 3 corresponds to a weighted weight of 2 4 , the third value 4 corresponds to a weighted weight of 2 3 , the third value 5 corresponds to a weighted weight of 2 2 , the third value 6 corresponds to a weighted weight of 2 1 , the third value 7 corresponds to a weighted weight of 2 0 .

[0498] Then, based on the weighted weights of the third values, the third values ​​are weighted to obtain the second context information corresponding to the i-th coordinate axis. It is understood that the weighting of the third values ​​can be understood as concatenating the third values, that is, placing the third values ​​in corresponding bits to obtain the second context information corresponding to the i-th coordinate axis.

[0499] In one example, if the decoding end performs an AND operation on the plane identification information of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the second context information corresponding to the i-th coordinate axis, the decoding end calculates the second context information Ctx2 using the method shown in the following code:

[0500] In one example, if the decoding end performs an AND operation on the plane position information of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the second context information corresponding to the i-th coordinate axis, the decoding end calculates the second context information Ctx2 using the method shown in the following code:

[0501] In one example, if the decoding end performs an AND operation on the plane identification information and plane position information of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis and then weights them to obtain the second context information corresponding to the i-th coordinate axis, the decoding end calculates the second context information Ctx2 using the method shown in the following code:

[0502] The above describes the specific process by which the decoder determines the second context information corresponding to the i-th coordinate axis based on the planar structure information of N neighboring nodes. It should be noted that in addition to determining the second context information corresponding to the i-th coordinate axis using the various methods described above, the decoder may also use other methods to determine the second context information corresponding to the i-th coordinate axis.

[0503] It should be noted that the first context information and the second context information corresponding to the i-th coordinate axis obtained by the decoding end are different. That is, the method used by the decoding end to determine the first context information corresponding to the i-th coordinate axis is different from the method used to determine the second context information corresponding to the i-th coordinate axis, and thus the first context information and the second context information obtained are also different.

[0504] The above describes the specific process of determining the first context information and / or the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes and the plane structure information of the N neighboring nodes in case 1, when the N neighboring nodes are first-type neighboring nodes.

[0505] Case 2: If the N neighboring nodes are second-type neighboring nodes, then the above S103-A1 includes the following steps:

[0506] S103-A1-b. Determine first context information and / or second context information corresponding to the i-th coordinate axis based on the occupancy information of N neighboring nodes, where the occupancy information of the neighboring node indicates whether the neighboring node is occupied.

[0507] As can be seen above, the geometric information of the second-type neighbor nodes is not decoded. Therefore, the occupancy information of the second-type neighbor nodes indicates whether the second-type neighbor nodes are occupied. The occupancy information of the second-type neighbor nodes is 1 bit. Based on this, in case 2, if the N neighbor nodes of the current node are second-type neighbor nodes, the first context information and / or second context information corresponding to the i-th coordinate axis is determined directly based on the occupancy information of the N neighbor nodes.

[0508] The embodiment of the present application does not limit the specific method of determining the first context information and / or second context information corresponding to the i-th coordinate axis based on the occupancy information of N neighboring nodes.

[0509] In some embodiments, first context information corresponding to the i-th coordinate axis is determined based on occupancy information of at least one neighboring node among the N neighboring nodes that is coplanar with the current node.

[0510] In some embodiments, the second context information corresponding to the i-th coordinate axis is determined based on the occupancy information of at least one neighboring node among the N neighboring nodes that is collinear with the current node.

[0511] In some embodiments, first context information corresponding to the i-th coordinate axis is determined based on occupancy information of at least one neighboring node coplanar with the current node and at least one neighboring node colinear with the current node among the N neighboring nodes.

[0512] In some embodiments, second context information corresponding to the i-th coordinate axis is determined based on occupancy information of at least one neighboring node coplanar with the current node and at least one neighboring node colinear with the current node among the N neighboring nodes.

[0513] After the decoding end determines the first context information and / or second context information corresponding to the i-th coordinate axis based on the types and occupancy information of N neighboring nodes through the above-mentioned cases 1 and 2, it executes the above-mentioned S102-A2 step, and predicts and decodes the planar position information of the current node on the i-th coordinate axis based on the first context information and / or second context information corresponding to the i-th coordinate axis.

[0514] The embodiment of the present application does not limit the specific method of predicting and decoding the planar position information of the current node on the i-th coordinate axis based on the first context information and / or second context information corresponding to the i-th coordinate axis in S102-A2.

[0515] In some embodiments, the decoding end predictively decodes the planar position information of the current node on the i-th coordinate axis based only on the first context information and / or the second context information corresponding to the i-th coordinate axis. For example, the decoding end determines a context model index based on the first context information and / or the second context information corresponding to the i-th coordinate axis, then selects a context model from a plurality of preset context models based on the context model index, and then uses the context model to predictively decode the planar position information of the current node on the i-th coordinate axis.

[0516] In some embodiments, the above S102-A2 includes the following steps S102-B21 and S102-B22:

[0517] S102-A21, determining a target context model based on the first context information and / or the second context information corresponding to the i-th coordinate axis, and preset context information;

[0518] S102-B22: Based on the target context model, predict and decode the plane position information of the current node on the i-th coordinate axis.

[0519] In this embodiment, when the decoding end predictively decodes the planar position information of the current node on the i-th coordinate axis, the referenced context information includes other preset context information in addition to the first context information and / or second context information corresponding to the i-th coordinate axis.

[0520] The embodiment of the present application does not limit the specific content of the preset context information, which can be determined according to actual needs.

[0521] In a possible implementation, the preset context information includes at least one of the following third context information, fourth context information, fifth context information, and sixth context information:

[0522] Third context information: The plane position information of the current node is predicted using the occupancy information of neighboring nodes, which is divided into three elements: predicted low plane, predicted high plane, and unpredictable;

[0523] Fourth context information: the spatial distance between the current node and the nodes at the same partition depth and the same coordinates as the current node, indicating whether the nodes are “near” or “far”;

[0524] Fifth context information: the plane position of the node at the same partition depth and the same coordinates as the current node, if it is a plane;

[0525] Sixth context information: coordinate dimension (i=0, 1, 2).

[0526] In this embodiment, when the decoding end predicts and decodes the plane position information of the current node on the i-th coordinate axis, based on the above steps, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined, and then based on the first context information and / or the second context information corresponding to the i-th coordinate axis and the preset context information, the plane position information of the current node on the i-th coordinate axis is predictively decoded. It can be seen that in the embodiment of the present application, when the decoding end predicts and decodes the plane position information of the current node, it not only considers the preset prior information (i.e., the preset context information), but also considers the plane structure information of the neighboring nodes (i.e., the first context information and / or the second context information), thereby improving the prediction decoding effect of the plane position information of the current node and improving the decoding efficiency of the point cloud.

[0527] In this embodiment, the decoding end determines a context model based on the first context information and / or second context information corresponding to the i-th coordinate axis, as well as the preset context information. For ease of description, this context model is referred to as the target context model. The target context model is then used to predictively decode the planar position information of the current node on the i-th coordinate axis.

[0528] The following describes a specific process in which the decoding end determines the target context model based on the first context information and / or the second context information corresponding to the i-th coordinate axis and the preset context information.

[0529] In some embodiments, the decoding end determines the index of the target context model based on the first context information and / or second context information corresponding to the i-th coordinate axis, as well as the preset context information, and then selects the target context model from the preset multiple context models based on the index of the target context model, and then uses the target context model to predict and decode the planar position information of the current node on the i-th coordinate axis.

[0530] In this embodiment, multiple context models are set for the plane position information. The embodiment of the present application does not limit the specific number of context models corresponding to the plane position information, as long as it is greater than 1. In other words, in the embodiment of the present application, an optimal context model is selected from at least two context models to predict and decode the plane position information of the current node on the i-th coordinate axis.

[0531] For example, the plane position information corresponds to multiple context models as shown in Table 3:

[0532] Table 3

[0533] In this way, the decoding end determines the index of the target context model based on the first context information and / or second context information corresponding to the i-th coordinate axis, as well as the preset context information. Then, based on the index of the target context model, the target context model is selected from the corresponding context models in Table 3 to perform predictive decoding on the planar position information of the current node on the i-th coordinate axis.

[0534] In some embodiments, the above S102-B21 includes the following steps S102-B211 and S102-B212:

[0535] S102-B211. Based on the types of the N neighboring nodes, divide the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information;

[0536] S102-B212: Determine a target context model based on the primary information of the current node and part or all of the secondary information of the current node.

[0537] As can be seen from the above, assuming that the context information of the plane position information includes the first context information and the second context information corresponding to the i-th coordinate axis, as well as the above-mentioned four preset context information, the final context of the plane position is as follows:

[0538] 1. Using the occupancy information of neighboring nodes, the plane position information of the current node is predicted to be three elements: predicted to be ground plane, predicted to be high plane, and unpredictable;

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

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

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

[0542] 5. Ctx1: Planar structure information of three coplanar neighboring nodes;

[0543] 6. Ctx2: Planar structure information of three collinear neighboring nodes and one common neighboring node.

[0544] Assuming that the decoding end determines the first context information corresponding to the i-th coordinate axis based on the plane identification information and plane position information of the three neighboring nodes coplanar with the current node among the N neighboring nodes, it can be obtained that Ctx1 includes 2 6 = 64 contexts. Assuming that the decoding end determines the second context information corresponding to the i-th coordinate axis based on the plane identification information and plane position information of the three neighboring nodes that are collinear with the current node and the one neighboring node that is co-pointed with the current node among the N neighboring nodes, it can be obtained that Ctx2 includes 2 8 = 256 contexts. In this way, the decoding end can obtain 3×2×2×3×64×256=589824 contexts based on the first context information and the second context information corresponding to the i-th coordinate axis, as well as the above-mentioned 4 preset context information. The memory space occupied by so many contexts is very large. Based on this, when the embodiment of the present application predictively decodes the plane position information of the node, the most advanced coding technology Dynamic-OUBF of G-PCC is added to this algorithm to reduce the number of contexts used for decoding the plane position information, for example, reducing the number of plane position contexts to 3x16=48.

[0545] Specifically, in an embodiment of the present application, as shown in FIG14 , the decoding end divides the first context information and / or second context information corresponding to the above-determined i-th coordinate axis, and the preset context information into primary information and secondary information, and then determines the target context model based on the primary information of the current node and part or all of the secondary information of the current node. It should be noted that in an embodiment of the present application, the target context model is mainly determined based on the primary information and part of the secondary information of the current node, thereby reducing the number of contexts. This not only reduces the memory usage of the context, but also improves the prediction decoding efficiency of the node's planar position information.

[0546] The embodiment of the present application does not limit the specific method of dividing the first context information and / or second context information corresponding to the i-th coordinate axis and the preset context information into primary information and secondary information based on the types of N neighboring nodes.

[0547] Method 1: If N neighboring nodes are the first type of neighboring nodes, the decoding end determines at least one of the fourth context information, the fifth context information and the first context information as primary information, and determines at least one of the third context information and the second context information as secondary information.

[0548] For example, key information includes:

[0549] The spatial distances between the nodes at the same partition depth and the same coordinates as the current node and the current node are “near” and “far”;

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

[0551] Coordinate dimension (i=0, 1, 2);

[0552] The first context information corresponding to the i-th coordinate axis. For example, the first context information corresponding to the i-th coordinate axis includes the placeholder information of three second-type neighboring nodes coplanar with the current node.

[0553] Secondary information includes:

[0554] The plane position information of the current node is predicted using the neighboring node occupancy information to obtain three elements: predicted low plane, predicted high plane and unpredictable;

[0555] The second context information corresponding to the i-th coordinate axis. For example, the second context information corresponding to the i-th coordinate axis includes the placeholder information of nine second-type neighboring nodes that are collinear with the current node.

[0556] Method 2: If the N neighboring nodes are second-type neighboring nodes, at least one of the third context information, the fourth context information, the fifth context information, and the first context information is determined as primary information, and the second context information is determined as secondary information.

[0557] For example, key information includes:

[0558] The plane position information of the current node is predicted using the neighboring node occupancy information to obtain three elements: predicted low plane, predicted high plane and unpredictable;

[0559] The spatial distances between the nodes at the same partition depth and the same coordinates as the current node and the current node are “near” and “far”;

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

[0561] Coordinate dimension (i=0, 1, 2);

[0562] The first context information corresponding to the i-th coordinate axis. For example, the first context information corresponding to the i-th coordinate axis includes the placeholder information of three second-type neighboring nodes coplanar with the current node.

[0563] Secondary information includes:

[0564] The second context information corresponding to the i-th coordinate axis. For example, the second context information corresponding to the i-th coordinate axis includes the placeholder information of nine second-type neighboring nodes that are collinear with the current node.

[0565] It should be noted that in an embodiment of the present application, the decoding end divides the first context information and / or second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information based on the types of N neighboring nodes. In addition to the above-mentioned methods 1 and 2, other methods may also be included, and the embodiment of the present application does not limit this.

[0566] Based on the above steps and the types of N neighboring nodes, the decoding end divides the first context information and / or second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information, and then executes the above steps S102-B212 to determine the target context model based on the primary information of the current node and part or all of the secondary information of the current node.

[0567] The embodiment of the present application does not limit the specific manner in which the decoding end determines the target context model based on the primary information of the current node and part or all of the secondary information of the current node.

[0568] In some embodiments, the decoding end determines an index based on the main information of the current node and part of the secondary information of the current node, determines the index of the target context model based on the index, and then determines the target context model from multiple preset context models based on the index of the target context model.

[0569] In some embodiments, the above S102-B212 includes the following steps S102-B2121 to S102-B2124:

[0570] S102-B2121, converting the primary information of the current node and the secondary information of the current node into binary representation;

[0571] S102-B2122, determine the number of right-shifted bits of the secondary information corresponding to the current node, and select the first secondary information from the secondary information represented in binary form at the current node based on the number of right-shifted bits of the secondary information corresponding to the current node, where the initial number of right-shifted bits of the secondary information is the total number of bits of the binary secondary information;

[0572] S102-B2123, determining a first index based on the primary information and the first secondary information after the binary representation of the current node, and obtaining an index of the target context model from a preset context model index cache based on the first index;

[0573] S102-B2124. Obtain a target context model based on the index of the target context model.

[0574] In this embodiment, the decoding end divides the first context information and / or second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information based on the above steps. Then, the decoding end converts the primary information and secondary information of the current node obtained by the division into binary representation.

[0575] For example, referring to the above example, it is assumed that the decoding end divides the first context information corresponding to the i-th coordinate axis, the spatial distance between the node and the current node at the same division depth and the same coordinate as the current node, and the plane position of the node at the same division depth and the same coordinate as the current node into the main information if it is a plane. Assume that the first context information Ctx1 corresponding to the i-th coordinate axis includes 2 6 =64 contexts, which require 6 bits to represent when converted to binary representation. The spatial distances "near" and "far" between the nodes at the same division depth and the same coordinates as the current node and the current node include 2 contexts, which require 1 bit to represent when converted to binary representation. The plane position of the node at the same division depth and the same coordinates as the current node includes 2 contexts, which require 1 bit to represent when converted to binary representation. Therefore, in this example, when the main information of the current node is converted to binary representation, 6+1+1=8 bits are required to represent.

[0576] Similarly, if the decoder uses the second context information corresponding to the i-th coordinate axis and the neighboring node occupancy information to predict the plane position information of the current node into three elements: predicted as ground plane, predicted as high plane and unpredictable as secondary information. Assume that the second context information Ctx2 corresponding to the i-th coordinate axis includes 2 8= 256 contexts, which require 8 bits to represent when converted to binary. Context information: Using neighboring node occupancy information, the plane position information of the current node is predicted to consist of three elements: predicted ground plane, predicted high plane, and unpredictable. These three contexts require 2 bits to represent when converted to binary. Therefore, in this example, the secondary information of the current node requires 8 + 2 = 10 bits to represent when converted to binary.

[0577] The above examples illustrate the specific process of converting the primary and secondary information of the current node into binary representation. It should be noted that the division of the primary and secondary information of the current node includes, but is not limited to, the above examples. If the primary and secondary information of the current node also include other contextual information, the method shown in the above examples can be used to convert the primary and secondary information of the current node into binary representation.

[0578] After the decoding end converts the primary information and secondary information of the current node into binary representation, it determines the number of right-shifted bits of the secondary information corresponding to the current node, and then selects the first secondary information from the secondary information after the binary representation of the current node based on the number of right-shifted bits of the secondary information. In the embodiment of the present application, the number of right-shifted bits of the secondary information corresponding to the current node can be understood as the number of secondary information selected from the secondary information of the current node to predict and decode the planar position information of the current node.

[0579] The following describes how to determine the number of right-shifted bits of the secondary information corresponding to the current node.

[0580] The embodiment of the present application does not limit the specific method of determining the number of right-shift bits of the secondary information corresponding to the current node.

[0581] In some embodiments, the number of right-shifted bits of secondary information corresponding to the current node is a preset value. For example, for the nodes in the point cloud octree, a preset number of nodes corresponds to one right-shifted bit of secondary information, so that the number of right-shifted bits of secondary information corresponding to the current node can be determined. Exemplarily, the closer the node is to the root node of the octree, the larger the number of right-shifted bits of secondary information corresponding to the node. Optionally, the initial value of the right-shifted bit of secondary information is the total number of bits of binary secondary information. For example, if the current node is the root node of the octree, the number of right-shifted bits of secondary information corresponding to the current node is the above-mentioned 10 bits.

[0582] In some embodiments, determining the number of right-shifted bits of the secondary information corresponding to the current node in S102-B2122 includes the following steps S102-B21221 and S102-B21222:

[0583] S102-B21221, determining the number of right-shifted bits of the secondary information corresponding to the last layer of the current secondary information partition tree, where the secondary information partition tree is obtained by performing binary tree partitioning on the secondary information starting from the highest bit of the secondary information;

[0584] S102-B21222. Determine the number of right-shifted bits of the secondary information corresponding to the last layer as the number of right-shifted bits of the secondary information corresponding to the current node.

[0585] The following is an introduction to the division process of secondary information.

[0586] Specifically, when the decoding end decodes the current point cloud, during the entire Dynamic-OUBF initialization process, assuming that the integer representation of the main information is ct1 and the integer representation of the secondary information is ct2, a context model index cache ContextBuffer is initialized, and the size of ContextBuffer is ct1×ct2. Exemplarily, referring to the above example, assuming that the main information includes 8 bits and the secondary information includes 10 bits, a context model index cache ContextBuffer of 8×10 size can be determined, and the context model index cache ContextBuffer stores 8×10 context model indexes. In addition, the initial context probability of each state is set to 127 (i.e., 0.5).

[0587] In some embodiments, the process of recovering the secondary information accuracy is shown in FIG15 :

[0588] First, the entire secondary information context is represented in binary format. Next, the secondary information is partitioned into a binary tree, starting with the highest bit. As shown in Figure 15, above a certain level, a non-full binary tree is created, meaning the partitioning is based on the secondary information itself. However, once the MinDepth (currently set to 3) is reached, the accuracy of the secondary information is fully restored. The partitioning of secondary information is described in detail below.

[0589] Exemplarily, a countBuffer counter is initialized with a size of ct1×(ct2>>MinDepth) and is initialized to 0.

[0590] In addition, a KDown is initialized to represent the precision (i.e., the number of right shifts) of the secondary information corresponding to each first index (state). The initial value of the number of right shifts of the secondary information is the total number of bits in the binary secondary information, i.e., the maximum precision of the secondary information. For example, if the secondary information is 10 bits, the initial value of the number of right shifts of the secondary information is 10 bits.

[0591] Furthermore, a table named CountTimeTh is initialized to control the maximum number of occurrences of the first index (state) at each level of the secondary information partitioning tree. When the number of occurrences of a first index (state) exceeds the limit for that level, the low-bit precision of the secondary information is restored, and the number of occurrences of the current first index (state) is reset to zero. The context probability of the new first index (state) is restored and inherits the probability of its parent node.

[0592] Specifically, as shown in FIG15 , for the first node 1 in the point cloud, when predicting and decoding the planar position information of node 1, first, based on the above steps, the first context information and / or second context information corresponding to node 1 is determined, and the first context information and / or second context information corresponding to node 1, as well as the preset context information, are divided into primary information and secondary information, for example, 8 bits of primary information and 10 bits of secondary information. Next, the number of right-shifted bits of the secondary information corresponding to node 1 is obtained in KDown. Since node 1 is the first point in the point cloud, the number of right-shifted bits of the secondary information corresponding to node 1 is the initial value of the right-shifted bits of the secondary information, for example, 10 bits. In this way, when the decoding end determines that the number of right-shifted bits of the secondary information corresponding to node 1 is 10 bits, the secondary information of node 1 is right-shifted by 10 bits. Since the secondary information of node 1 is a total of 10 bits, after the right shift, the first secondary information of node 1 is 0 bits. Next, the decoding end determines the first index 1 based on the main information and the first secondary information after the binary representation of node 1, and then obtains the index of the target context model corresponding to node 1 from the context model index cache ContextBuffer based on the first index 1, and then obtains the target context model corresponding to node 1 based on the index of the target context model corresponding to node 1, and then uses the target context model corresponding to the node to predict and decode the plane position information of node 1 on the i-th coordinate axis. At the same time, the number of times the first index 1 in countBuffer is added by 1, and at the same time, the number of times the first index 1 in countBuffer is compared with the first preset threshold corresponding to the first layer of the secondary information partition tree stored in CountTimeTh. If the number of times the first index 1 in countBuffer is less than the first preset threshold corresponding to the first layer of the secondary information partition tree stored in CountTimeTh, the secondary information partition tree is not divided.

[0593] Next, for node 2 in the point cloud, when predicting and decoding the planar position information of node 2, first, based on the above steps, the first context information and / or second context information corresponding to node 2 is determined, and the first context information and / or second context information corresponding to node 2, as well as the preset context information, are divided into primary information and secondary information, for example, 8 bits of primary information and 10 bits of secondary information. Next, the number of right-shifted bits of the secondary information corresponding to node 2 is obtained in KDown. Since the secondary information partitioning tree is not divided, the number of right-shifted bits of the secondary information corresponding to node 2 is the same as the number of right-shifted bits of the secondary information corresponding to node 1, which is the initial value of the right-shifted bits of the secondary information, for example, 10 bits. In this way, when the decoding end determines that the number of right-shifted bits of the secondary information corresponding to node 2 is 10 bits, the secondary information of node 2 is right-shifted by 10 bits. Since the secondary information of node 2 is a total of 10 bits, after the right shift, the first secondary information of node 2 is 0 bits. Next, the decoding end determines the first index 2 based on the main information and the first secondary information after the binary representation of node 2, and then obtains the index of the target context model corresponding to node 2 from the context model index cache ContextBuffer based on the first index 2, and then obtains the target context model corresponding to node 2 based on the index of the target context model corresponding to node 2, and then uses the target context model corresponding to the node to predict and decode the plane position information of node 2 on the i-th coordinate axis. At the same time, the number of first index 2 in countBuffer is increased by 1, and at the same time, the number of first index 2 in countBuffer is compared with the first preset threshold corresponding to the first layer of the secondary information partition tree stored in CountTimeTh. If the number of first index 2 in countBuffer is less than the first preset threshold corresponding to the first layer of the secondary information partition tree stored in CountTimeTh, the secondary information partition tree is not divided.

[0594] Assuming that the above-mentioned first index 1 is the same as the above-mentioned first index 2, and the first preset threshold corresponding to the first layer of the secondary information partition tree stored in CountTimeTh is 2, it can be determined that the number of times the first index 1 in countBuffer is equal to the first preset threshold corresponding to the first layer of the secondary information partition tree stored in CountTimeTh. At this time, the secondary information partition tree is divided, specifically, the first layer of the secondary information partition tree is divided into a non-full binary tree to obtain a new secondary information partition tree. At this time, the new secondary information partition tree includes 2 layers, the first layer includes 1 node, and the second layer includes 2 nodes.

[0595] At the same time, the number of right-shifted bits of the secondary information in KDown is updated to obtain the number of right-shifted bits of the secondary information corresponding to the second level of the secondary information partitioning tree. For example, the number of right-shifted bits of the secondary information corresponding to the second level is the number of right-shifted bits of the secondary information corresponding to the first level minus 1, that is, 10 bits - 1 bit = 9 bits.

[0596] Furthermore, countBuffer is set to 0.

[0597] With reference to the above steps, the accuracy of the secondary information is gradually restored, and the secondary information partitioning tree shown in FIG15 can be obtained.

[0598] In this way, when predicting and decoding the plane position information of the current node on the i-th coordinate axis in the point cloud, based on the above steps, the first context information and / or second context information corresponding to the current node is determined, and the first context information and / or second context information corresponding to the current node, as well as the preset context information, are divided into primary information and secondary information, for example, 8 bits of primary information and 10 bits of secondary information. Next, the number of secondary information right-shift bits corresponding to the last layer of the current secondary information partitioning tree is determined. As can be seen from the above, the number of secondary information right-shift bits corresponding to the last layer of the current secondary information partitioning tree (i.e., the current layer obtained by the most recent partitioning) is stored in KDown. Therefore, the decoding end can obtain the number of secondary information right-shift bits corresponding to the last layer of the current secondary information partitioning tree from KDown, and then determine the number of secondary information right-shift bits corresponding to the last layer as the number of secondary information right-shift bits corresponding to the current node.

[0599] Next, the decoding end selects the first secondary information from the secondary information represented in binary format at the current node based on the number of right-shifted bits of the secondary information corresponding to the current node.

[0600] For example, the number of right shift bits of the secondary information corresponding to the current node is n bits, so the decoding end can right shift the secondary information of the current node after binary representation by n+1 bits or n-1 bits to obtain the first secondary information.

[0601] For another example, the secondary information of the current node after binary representation is right-shifted by the number of bits of the secondary information corresponding to the current node to obtain the first secondary information. Assuming that the number of bits of the secondary information corresponding to the current node after right shift is n bits, the secondary information of the current node after binary representation is right-shifted by n bits to obtain the first secondary information.

[0602] Next, the decoding end determines a first index based on the primary information and the first secondary information after the binary representation of the current node.

[0603] The embodiment of the present application does not limit the specific method for the decoding end to determine the first index based on the main information and the first secondary information after the binary representation of the current node.

[0604] In one example, the decoding end obtains the first index corresponding to the current node based on the following formula (26): state = ct1 × (ct2>>shift) (26)

[0605] Among them, state is the first index corresponding to the current node, ct1 is the main information of the current node after binary representation, ct2 is the secondary information of the current node after binary representation, shift is the number of bits of right shift of the secondary information corresponding to the current node, and ct2>>shift is the first secondary information corresponding to the current node.

[0606] After obtaining the first index corresponding to the current node based on formula (26), the decoder obtains the context model index corresponding to the first index from the preset context model index cache, and then records the context model index as the index of the target context model. In this way, the decoder selects the target context model from the preset multiple context models based on the target context model index, and then uses the target context model to predict and decode the planar position information of the current node on the i-th coordinate axis.

[0607] In some embodiments, after the decoding end determines the index of the target context model based on the above steps, it updates the index of the target upper and lower models in the context model index cache to increase the probability of the index of the target context model.

[0608] In an embodiment of the present application, the decoding end determines the target context model based on the above steps, and also includes the steps of data updating and partitioning the secondary information partition tree.

[0609] The embodiment of the present application does not limit the specific division method of the secondary information partition tree.

[0610] In one example, each layer in the secondary information partition tree is partitioned into a non-full binary tree.

[0611] In another example, each layer in the secondary information partition tree is partitioned into a full binary tree.

[0612] In another example, some layers in the secondary information partition tree are partitioned into non-full binary trees, and some layers are partitioned into full binary trees.

[0613] The following is an introduction to the division process of the secondary information division tree.

[0614] In some embodiments, if the secondary information partition tree of the embodiment of the present application includes an incomplete binary tree layer, the method of the embodiment of the present application further includes the following step 1:

[0615] Step 1: If the last layer of the current secondary information partitioning tree is a non-full binary tree layer, and the number of occurrences of the first index in the last layer is greater than or equal to the first preset threshold corresponding to the last layer, then the last layer is binary-divided to obtain a new secondary information partitioning tree.

[0616] Based on the above steps, the decoding end determines the first index corresponding to the current node and the index of the target context model corresponding to the current node, and also determines whether to continue to divide the last layer of the current secondary information partitioning tree. Specifically, if the last layer of the current secondary information partitioning tree is a non-full binary tree, the decoding end determines whether the number of times the first index corresponding to the current node appears in the last layer (i.e., the latest layer) of the current secondary information partitioning tree is greater than or equal to the first preset threshold corresponding to the last layer. If the decoding end determines that the number of times the first index corresponding to the current node appears in the last layer (i.e., the latest layer) of the current secondary information partitioning tree is greater than or equal to the first preset threshold corresponding to the last layer, the last layer of the current secondary information partitioning tree is divided into a binary tree to obtain a new secondary information partitioning tree.

[0617] For example, the decoding end determines based on the following formula (27) to further divide the secondary information: countBuffer[state]>=CountTimeTh[shift] (27)

[0618] Among them, countBuffer[state] represents the number of times the first index state corresponding to the current node appears in the last layer (i.e., the latest layer) of the current secondary information partitioning tree, and CountTimeTh[shift] is the first preset threshold corresponding to the last layer of the current secondary information partitioning tree.

[0619] In the embodiment of the present application, the decoding end performs binary tree partitioning on the last layer of the current secondary information partitioning tree to obtain a new secondary information partitioning tree, which includes at least the following two situations:

[0620] Case 1: If the last layer of the current secondary information partition tree is not the last non-full binary tree layer of the secondary information partition tree, then the last layer is partitioned into a non-full binary tree to obtain a new secondary information partition tree.

[0621] For example, as shown in Figure 15, assume that the secondary information partition tree includes 4 non-full binary tree layers and 2 full binary tree layers. As shown in Figure 16, assume that the last layer of the current secondary information partition tree is layer 2, that is, the secondary information is currently partitioned to layer 2. At this time, layer 2 is not the last non-full binary tree layer, because the last non-full binary tree layer is layer 4. Therefore, when layer 2 is partitioned, a non-full binary tree partition is performed on layer 2, resulting in a new secondary information partition tree. This new secondary information partition tree includes 3 layers, and these 3 layers are all non-full binary tree layers.

[0622] Case 2: If the last layer of the current secondary information partition tree is the last non-full binary tree layer of the secondary information partition tree, then the last layer is partitioned into a full binary tree to obtain a new secondary information partition tree.

[0623] For example, as shown in Figure 15, assume that the secondary information partition tree includes 4 non-full binary tree layers and 2 full binary tree layers. As shown in Figure 17, assume that the last layer of the current secondary information partition tree is the 4th layer, that is, the secondary information is currently divided to the 4th layer. At this time, the 4th layer is the last non-full binary tree layer. Therefore, when the 4th layer is divided, the 4th layer is divided into a full binary tree, resulting in a new secondary information partition tree. This new secondary information partition tree includes 5 layers, and the first 4 layers of these 5 layers are non-full binary tree layers, and the last layer is a full binary tree layer.

[0624] In an embodiment of the present application, in addition to performing full binary tree division on the last layer of the current secondary information partition tree to obtain a new secondary information partition tree, it also includes a step of updating the number of secondary information right shift bits, that is, reducing the number of secondary information right shift bits corresponding to the current node by one to obtain a new number of secondary information right shift bits.

[0625] For example, the decoding end obtains the number of right shifts of the new secondary information based on the following formula (28): newShift = shift - 1 (28)

[0626] Among them, shift is the number of times the secondary information corresponding to the current node is shifted right, and newShift is the number of times the new secondary information is shifted right.

[0627] Correspondingly, the calculation formula of stateUpdate after the update is shown in formula (29): stateUpdate=ct1×(ct2>>newShift) (29)

[0628] Correspondingly, the context probability corresponding to the updated stateUpdate inherits the context of its parent node, as shown in formula (30): ContextBuffer[stateUpdate]=ContextBuffer[state] (30)

[0629] Correspondingly, the accuracy of the secondary information corresponding to the current state is reduced, that is, KDown[state]--.

[0630] Finally, the decoder resets the occurrence counter of the current state to 0, that is, countBuffer[state]=0.

[0631] In some embodiments, if the secondary information partition tree of the embodiment of the present application includes a full binary tree layer, the method of the embodiment of the present application further includes the following steps 21 to 24:

[0632] Step 21: If the last layer of the current secondary information partition tree is a full binary tree layer, determine the number of secondary information right shift bits corresponding to the last non-full binary tree layer of the current secondary information partition tree and a first preset threshold;

[0633] Step 22: Based on the number of right shifts of the secondary information corresponding to the last non-full binary tree layer, select the second secondary information from the secondary information after binary representation of the current node;

[0634] Step 23: Determine a second index based on the primary information and the second secondary information after the binary representation of the current node;

[0635] Step 24: If the number of occurrences of the second index in the last layer is greater than or equal to the first preset threshold corresponding to the last non-full binary tree layer, perform full binary tree partitioning on the last layer to obtain a new secondary information partitioning tree.

[0636] In this embodiment, if the secondary information partitioning tree includes a non-full binary tree layer and a full binary tree layer, whether to continue to partition the full binary tree layer is determined based on the number of secondary information right shift bits corresponding to the last non-full binary tree layer of the secondary information partitioning tree and the first preset threshold. Specifically, if the last layer of the current secondary information partitioning tree is a full binary tree layer, the number of secondary information right shift bits corresponding to the last non-full binary tree layer of the current secondary information partitioning tree and the first preset threshold are determined, and based on the number of secondary information right shift bits corresponding to the last non-full binary tree layer, the second secondary information is selected from the secondary information after the binary representation of the current node. For example, the secondary information after the binary representation of the current node is right-shifted by the number of secondary information right shift bits corresponding to the last non-full binary tree layer to obtain the second secondary information corresponding to the current node. Then, based on the main information after the binary representation of the current node and the second secondary information, the second index is determined. For example, the main information after the binary representation of the current node and the second secondary information are multiplied to determine the second index.

[0637] Then, based on the following formula (31), it is determined whether the number of occurrences of the second index in the last layer of the current secondary information partition tree is greater than or equal to the first preset threshold corresponding to the last non-full binary tree layer: countBuffer[state]1>=CountTimeTh[shift]1 (31)

[0638] Among them, countBuffer[state]1 is the number of occurrences of the second index in the last layer of the current secondary information partitioning tree, and CountTimeTh[shift]1 is the first preset threshold corresponding to the last non-full binary tree layer.

[0639] If the number of occurrences of the second index in the last layer of the current secondary information partition tree is greater than or equal to the first preset threshold corresponding to the last non-full binary tree layer, the last layer is partitioned into a full binary tree to obtain a new secondary information partition tree.

[0640] At the same time, the decoding end updates the number of right shift bits of the secondary information, that is, subtracts one from the number of right shift bits of the secondary information corresponding to the current node to obtain a new number of right shift bits of the secondary information.

[0641] Exemplarily, the decoding end obtains the new number of right-shifted bits of the secondary information based on the above formula (28).

[0642] Correspondingly, the calculation formula of stateUpdate after the update is shown in the above formula (29).

[0643] Correspondingly, the context probability corresponding to the updated stateUpdate inherits the context from the last non-full binary tree layer.

[0644] Correspondingly, the accuracy of the secondary information corresponding to the current state is reduced, that is, KDown[state]--.

[0645] Finally, the decoder resets the occurrence counter of the current state to 0, that is, countBuffer[state]=0.

[0646] For example, as shown in Figure 15, it is assumed that the secondary information partitioning tree includes 4 non-full binary tree layers and 2 full binary tree layers. As shown in Figure 18, it is assumed that the last layer of the current secondary information partitioning tree is the 5th layer, that is, the secondary information at the current moment is divided into the 5th layer. At this time, the 5th layer is a full binary tree layer. Therefore, when judging whether to divide the 5th layer, the decoding end first determines the last non-full binary tree layer of the current secondary information partitioning tree, that is, the secondary information right shift bit a corresponding to the 4th layer and the first preset threshold b. Then, the decoding end shifts the secondary information after the binary representation of the current node right by the secondary information right shift bit a corresponding to the last non-full binary tree layer to obtain the second secondary information. Then, the decoding end multiplies the main information after the binary representation of the current node and the second secondary information to obtain the second index corresponding to the current node. Then determine whether the number of occurrences of the second index in the current last layer (i.e., the 5th layer) is greater than or equal to the first preset threshold b corresponding to the last non-full binary tree layer. If the number of occurrences of the second index in the 5th layer is greater than or equal to the first preset threshold b corresponding to the last non-full binary tree layer, perform full binary tree partitioning on the 5th layer to obtain a new secondary information partitioning tree.

[0647] In summary, the entire processing flow of Dynamic-OUBF can be as follows: Dynamic-OUBF is used as a processor, with the primary information and secondary information of the current node as input, and finally an index context of the target context model between 0 and 255 is output.

[0648] In some embodiments, in order to further reduce the amount of context information, the step of obtaining the target context model based on the index of the target context model in S102-B2124 includes the following steps S102-B21241 and S102-B21242:

[0649] S102-B21241. Quantize the index of the target context model to obtain a quantized model index;

[0650] S102-B21242. Obtain a target context model based on the quantized model index.

[0651] In this embodiment, in order to further reduce the amount of context information, the index of the target context model determined above is quantized to obtain a quantized model index, and then based on the quantized model index, the target context model is obtained from multiple preset context models.

[0652] In the embodiment of the present application, the index of the target context model is quantized, and the specific method of obtaining the quantized model index is not limited.

[0653] In one possible implementation, the index of the target context model is right-shifted by n bits to obtain a quantized model index, where n is a positive integer.

[0654] The embodiment of the present application does not limit the specific value of n.

[0655] In one example, the above n=2 bits. At this time, if quantization is not performed, the number of contexts is 256, and the index of the context model is shifted right by 2 bits, which can reduce the total number of contexts to 256 / 4=64. This can greatly reduce the number of contexts and improve the decoding efficiency of the point cloud.

[0656] In one example, if n = 4 bits, and if quantization is not performed, the number of contexts is 256, then right-shifting the context model index by 4 bits can reduce the total number of contexts to 256 / 16 = 16. This yields 3 × 16 = 48 context models for the three coordinate axes, significantly reducing the number of contexts and improving point cloud decoding efficiency.

[0657] The embodiment of the present application predictively encodes the planar position information of the current node by considering the planar structure information of the neighboring nodes, which can improve the geometric coding efficiency of the point cloud.

[0658] The following takes the geometric lossless attribute lossless test environment as an example, where the number of bits per pixel (BPP) is used as a performance indicator to measure compression efficiency. When BPP is less than 100%, it means that the encoding and decoding efficiency is improved compared to existing encoding and decoding solutions.

[0659] Under the condition of lossless geometry and lossless attributes, the performance of the point cloud decoding method provided by the embodiment of the present application is shown in Table 4:

[0660] Table 4

[0661] Under lossy geometry and lossy attributes, the performance of the point cloud decoding method provided by the embodiment of the present application is shown in Table 5:

[0662] Table 5:

[0663] With all plane decoding enabled for all test sequences, the test performance of this application and the existing TMC13-v19 is shown in Table 6:

[0664] Table 6

[0665] It can be seen from Tables 4 to 6 above that by applying the method provided in the embodiments of the present application to the selected test sequence set, the compression performance of a single sequence can be improved by up to 5.7%.

[0666] As can be seen from the above, in an embodiment of the present application, when decoding the plane position information of a node, the plane position information of the current node is predicted and encoded based on the plane structure information of the neighboring nodes, taking into account the correlation between the plane structure information of the adjacent nodes, thereby effectively improving the geometric information coding efficiency of the point cloud. Furthermore, an embodiment of the present application determines the N neighboring nodes of the current node based on the first information corresponding to the current node, and then determines the first context information and / or the second context information based on the type of the N neighboring nodes, and based on the type of the N neighboring nodes, samples the first context information, the second context information and the preset context differently and divides them into primary information and secondary information, and uses the Dynamic-OUBF technology to map the plane position context to a preset number (for example, 48) of contexts. On the premise of improving the decoding effect of the node's plane position information, the number of contexts is reduced, thereby saving memory space for storing context information, and further improving the decoding efficiency of the point cloud.

[0667] The point cloud decoding method provided by the embodiment of the present application determines the first information corresponding to the current node when decoding the plane structure information of the current node in the current decoding frame. The first information is used to indicate whether a first type of neighboring node of the current node exists. The first type of neighboring node is a neighboring node whose geometric information has been decoded. Then, based on the first information, the occupancy information of the N neighboring nodes of the current node is obtained, and based on the occupancy information of the N neighboring nodes, the plane structure information of the current node is predicted and decoded. In other words, when the embodiment of the present application predicts and decodes the plane structure information of the current node, the correlation between the plane structure information between adjacent nodes is taken into account, and the type of neighboring nodes is taken into account, which can effectively improve the geometric information decoding efficiency of the point cloud, thereby improving the prediction decoding performance of the plane structure information, and improving the decoding efficiency and performance of the point cloud.

[0668] The above takes the decoding end as an example to introduce in detail the point cloud decoding method provided in the embodiment of the present application. The following takes the encoding end as an example to introduce the point cloud encoding method provided in the embodiment of the present application.

[0669] Figure 19 is a schematic diagram of a point cloud encoding method according to an embodiment of the present application. The point cloud encoding method according to the embodiment of the present application can be implemented by the point cloud encoding device shown in Figure 3 or Figure 4A above.

[0670] As shown in FIG19 , the point cloud encoding method of the embodiment of the present application includes:

[0671] S201: Determine first information corresponding to the current node.

[0672] The first information is used to indicate whether the first type of neighboring nodes of the current node are valid, and the first type of neighboring nodes are neighboring nodes whose geometric information has been encoded.

[0673] As can be seen from the above, a point cloud includes geometric information and attribute information, and encoding of a point cloud includes geometric encoding and attribute encoding. The embodiments of the present application relate to geometric encoding of a point cloud.

[0674] In some embodiments, the geometric information of the point cloud is also referred to as the position information of the point cloud. Therefore, the geometric encoding of the point cloud is also referred to as the position encoding of the point cloud.

[0675] In the octree-based encoding method, the encoding end constructs the octree structure of the point cloud based on the geometric information of the point cloud. As shown in Figure 9, the point cloud is enclosed by the smallest rectangular block. The bounding box is first divided into octrees to obtain 8 nodes. The occupied nodes among these 8 nodes, that is, the nodes including the points, are further divided into octrees, and so on, until the division is to the voxel level, for example, to a 1X1X1 cube. The point cloud octree structure obtained by such division includes multiple layers of nodes, for example, N layers. During encoding, the placeholder information of each layer is encoded layer by layer until the voxel-level leaf nodes of the last layer are encoded. That is to say, in octree encoding, the point cloud is divided into octrees, and finally the points in the point cloud are divided into the voxel-level leaf nodes of the octree. The encoding of the point cloud is achieved by encoding the entire octree.

[0676] 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 utilizing plane coding. For example, as shown in Figure 5A, the four occupied child nodes in the current node are all located in the low plane position of the current node in the Z coordinate axis direction. At this time, the occupancy information of the current node is represented as: 11001100. When encoding the current node using plane coding, it is first necessary to encode an identifier to indicate that the current node is a plane in the Z coordinate axis direction. Secondly, if the current node is a plane in the Z coordinate axis direction, the plane position of the current node needs to be represented. Secondly, it is only necessary to encode the low plane node placeholder information in the Z coordinate axis direction (i.e., the placeholder information of the four child nodes 0246). Therefore, encoding the current node based on the plane coding method only requires encoding 6 bits, which can reduce the representation of 2 bits compared to the original octree coding, thereby improving the coding performance of the point cloud.

[0677] As can be seen from the above, when the current node is encoded using the plane coding method, the encoding end needs to perform predictive coding on the plane structure information of the current node.

[0678] Currently, the plane structure information of the current node is predictively encoded based on some prior reference information, such as the spatial distance between the nodes at the same division depth and the same coordinates as the current node, and / or the plane position of the node at the same division depth and the same coordinates as the current node, resulting in poor prediction coding performance of the plane structure information.

[0679] In order to solve the above problems, in an embodiment of the present application, the encoding end predictively encodes the plane structure of the current node based on the occupancy information of the N neighboring nodes of the current node, thereby improving the predictive encoding performance of the plane structure information and improving the encoding efficiency and performance of the point cloud.

[0680] In an embodiment of the present application, in order to improve the prediction coding accuracy of the plane structure information of the current node, the occupancy information of the neighboring nodes whose N geometric information of the current node has been encoded is usually used to predict the plane structure information of the current node.

[0681] In some embodiments, for ease of description, the N neighboring nodes of the current node whose geometric information has been encoded are recorded as first-type neighboring nodes.

[0682] In an embodiment of the present application, the first type of neighborhood node can be understood as a neighborhood node in which the occupancy status of the sub-nodes included is encoded. For example, the occupancy status of the 8 sub-nodes of neighborhood node 1 is 11001010, where 1 indicates occupied and 0 indicates unoccupied.

[0683] It should be noted that, in the embodiment of the present application, the specific method for determining the first type of neighborhood nodes is not limited.

[0684] In one example, as shown in FIG11 , the first type of neighboring nodes of the current node include any node whose geometric information has been encoded within the 3X3 point cloud space area.

[0685] In one example, as shown in Figure 12, the bold dashed line node is the current node to be encoded, the solid line nodes are the three neighboring nodes coplanar with the current node, the dot-dashed line nodes are the three neighboring nodes colinear with the current node, and the long dashed line nodes are the neighboring nodes co-pointing with the current node. Because the geometric information of the seven neighboring nodes coplanar, co-linear, and co-pointing with the current node (left front and bottom) as shown in Figure 12 has already been encoded when encoding the placeholder information of the current node according to the order of point cloud encoding, these seven neighboring nodes can be recorded as first-type neighboring nodes.

[0686] In one example, the first type of neighborhood nodes of the current node include, in addition to the seven neighborhood nodes that are coplanar, colinear, and co-point with the current node (left front and lower direction) as shown in Figure 12, other nodes whose geometric information has been encoded within a preset reference neighborhood range may also be included. This embodiment of the present application does not impose any restrictions on this.

[0687] In some embodiments, the first type of neighboring node of the current node is invalid. For example, the current node does not include a first type of neighboring node (i.e., a neighboring node whose geometric information has been encoded). In this case, the encoding end cannot use the placeholder information of the above-mentioned first type of neighboring node to predict and encode the planar structure information of the current node.

[0688] Based on this, before the encoding end predictively encodes the plane structure information of the current node, it first needs to determine the first information corresponding to the current node. The first information is used to indicate whether the current node has a first type of neighboring node (i.e., a neighboring node whose geometric information has been encoded). Then, based on the first information, the N neighboring nodes of the current node are determined. For example, when the first information indicates that the current node includes a first type of neighboring node, the encoding end determines the N first type of neighboring nodes of the current node, and predictively encodes the plane structure information of the current node based on the geometric information of the first type of neighboring nodes. For another example, if the first information indicates that the current node does not include a first type of neighboring node, the encoding end determines the N other types of neighboring nodes of the current node, and then predictively encodes the plane structure information of the current node based on the geometric information of these N other types of neighboring nodes.

[0689] The following describes a specific process in which the encoding end determines the first information corresponding to the current node.

[0690] When encoding the geometric information of the current node, the encoder determines whether the current node has a first-type neighboring node, and determines the first information neighAvaibale corresponding to the current node based on whether the current node has a first-type neighboring node. For example, if the current node includes a first-type neighboring node, the first information neighAvaibale is set to true; if the current node does not include a first-type neighboring node, the first information neighAvaibale is set to false.

[0691] In some embodiments, the encoder writes the first information neighAvaibale corresponding to the current node into the bitstream.

[0692] After the encoder determines the first information corresponding to the current node based on the above steps, it executes the following step S202.

[0693] S202: Based on the first information, obtain the placeholder information of N neighboring nodes of the current node.

[0694] Wherein, N is a positive integer.

[0695] After determining the first information corresponding to the current node based on the above steps, the encoder determines whether the current node has a first type of neighboring node based on the first information. In this way, the occupancy information of the N neighboring nodes of the current node can be obtained based on the first information.

[0696] The embodiment of the present application does not limit the specific process of the encoder obtaining the occupancy information of the N neighboring nodes of the current node based on the first information.

[0697] Case 1: If the first information indicates that at least one first-type neighboring node of the current node is valid, the encoding end obtains the placeholder information of the N first-type neighboring nodes of the current node, and uses the placeholder information of the N first-type neighboring nodes as the placeholder information of the N neighboring nodes of the current node.

[0698] In this case 1, if the first information corresponding to the current node indicates that at least one first-type neighboring node of the current node is valid (i.e., exists), since the geometric information of the first-type neighboring nodes has been encoded, using the occupancy information of the first-type neighboring nodes encoded with this geometric information to predict the plane structure information of the current node can improve the prediction accuracy of the plane structure information of the current node. Therefore, the encoder obtains the occupancy information of the N first-type neighboring nodes of the current node and predictively encodes the plane structure information of the current node based on the occupancy information of these N first-type neighboring nodes.

[0699] The embodiment of the present application does not limit the number and specific locations of the N first-type neighborhood nodes.

[0700] In some embodiments, the N first-type neighborhood nodes include at least one of three first coplanar neighborhood nodes, three first collinear neighborhood nodes, and one first co-point neighborhood node. As shown in Figure 12, the three first coplanar neighborhood nodes include a neighborhood node coplanar with the front surface of the current node, a neighborhood node coplanar with the left surface of the current node, and a neighborhood node coplanar with the lower surface of the current node. The three first collinear neighborhood nodes include a neighborhood node colinear with the left sideline of the front surface of the current node, a neighborhood node colinear with the lower sideline of the front surface of the current node, and a neighborhood node colinear with the left sideline of the lower surface of the current node. The first co-point neighborhood node is a neighborhood node that has a common point with the lower left front vertex of the current node.

[0701] In some embodiments, as shown in FIG12 , if all seven first-type neighboring nodes of the current node exist, in one example, these seven first-type neighboring nodes can be used as the N first-type neighboring nodes of the current node, where N = 7. In another example, N first-type neighboring nodes can be selected from these seven first-type neighboring nodes, where N is a positive integer less than 7.

[0702] In some embodiments, as shown in FIG12 , if only some of the seven first-type neighboring nodes of the current node exist, in one example, these remaining first-type neighboring nodes can be used as the N first-type neighboring nodes of the current node. In another example, N first-type neighboring nodes can be selected from these remaining first-type neighboring nodes.

[0703] Based on the above method, the encoding end determines the N first-type neighboring nodes of the current node. Since the geometric information of the above-mentioned N first-type neighboring nodes has been encoded, the encoding end can obtain the occupancy information of these N first-type neighboring nodes, where the occupancy information of the first-type neighboring node indicates whether each child node of the first-type neighboring node is unoccupied. For example, if the present application adopts octree encoding, the occupancy information of the first neighboring node is 8 bits of information.

[0704] The above describes the specific process of obtaining the geometric information of N first-type neighboring nodes when the first information indicates that the current node includes first-type neighboring nodes in Case 1.

[0705] Case 2: If the first information indicates that all first-type neighboring nodes of the current node are invalid, the placeholder information of the N second-type neighboring nodes of the current node is obtained, and the placeholder information of the N second-type neighboring nodes is used as the placeholder information of the N neighboring nodes of the current node.

[0706] In case 2, if the first information corresponding to the current node indicates that the first type of neighboring node of the current node is invalid (i.e., does not exist), the encoder cannot use the placeholder information of the first type of neighboring node to predictively encode the plane structure information of the current node. In this case, the encoder determines N second type neighboring nodes of the current node and predictively encodes the plane structure information of the current node based on the placeholder information of the N second type neighboring nodes.

[0707] Among them, the second type of neighborhood nodes are neighborhood nodes whose geometric information is not encoded.

[0708] In the embodiment of the present application, the geometric information of the second-type neighbor node is not encoded. Therefore, the occupancy status of the second-type neighbor node's child nodes is unknown, but whether the second-type neighbor node is occupied is known. For example, when the second-type neighbor node is occupied, the occupancy information of the second-type neighbor node is represented as 1; when the second-type neighbor node is occupied, the occupancy information of the second-type neighbor node is represented as 0.

[0709] As can be seen, in this embodiment of the present application, the placeholder information of the second-type neighbor node is different from the placeholder information of the first-type neighbor node. The placeholder information of the first-type neighbor node indicates whether the subcode of the first-type neighbor node is occupied, which is 8 bits of information. The placeholder information of the second-type neighbor node indicates whether the second-type neighbor node is occupied, which is 1 bit of information.

[0710] The embodiment of the present application does not limit the number and specific locations of the N second-type neighborhood nodes.

[0711] In some embodiments, the N second-type neighboring nodes include any neighboring node of the current node except the first-type neighboring node.

[0712] In some embodiments, the N second-type neighborhood nodes include at least one of three second coplanar neighborhood nodes and nine second collinear neighborhood nodes. Exemplarily, as shown in FIG13 , the three second coplanar neighborhood nodes include a neighborhood node coplanar with the back of the current node, a neighborhood node coplanar with the right side of the current node, and a neighborhood node coplanar with the top of the current node, and the nine second collinear neighborhood nodes include four neighborhood nodes that are respectively colinear with the four edges of the right surface of the current node, three neighborhood nodes that are respectively colinear with the front side edge line, the left side edge line, and the back side edge line of the upper surface of the current node, and two neighborhood nodes that are respectively colinear with the left side edge line and the bottom side edge line of the back surface of the current node.

[0713] In some embodiments, as shown in FIG13 , if all 12 second-type neighboring nodes of the current node exist, in one example, these 12 second-type neighboring nodes can be used as the N second-type neighboring nodes of the current node, where N = 12. In another example, N second-type neighboring nodes can be selected from these 12 second-type neighboring nodes, where N is a positive integer less than 12.

[0714] In some embodiments, as shown in FIG13 , if only some of the 12 second-type neighboring nodes of the current node exist, in one example, these remaining second-type neighboring nodes can be used as the N second-type neighboring nodes of the current node. In another example, N second-type neighboring nodes can be selected from these remaining second-type neighboring nodes.

[0715] Based on the above method, the encoding end determines the N second-type neighboring nodes of the current node. Since the geometric information of the above-mentioned N second-type neighboring nodes is not encoded, the encoding end can obtain the occupancy status of each second-type neighboring node in the N second-type neighboring nodes, and then determine the occupancy status of the second-type neighboring nodes as the occupancy information of the second-type neighboring nodes. For example, when the second-type neighboring node is occupied, the occupancy information of the second-type neighboring node is determined to be 1. If the second-type neighboring node is not occupied, the occupancy information of the second-type neighboring node is determined to be 0. In other words, the occupancy information of the second-type neighboring node is 1 bit of information.

[0716] After the encoder determines N neighboring nodes of the current node based on the first information, it executes the following step S203.

[0717] S203 : Based on the occupancy information of the N neighboring nodes, perform predictive coding on the plane structure information of the current node.

[0718] In an embodiment of the present application, the plane structure information of the current node includes the plane identification information of the current node and / or the plane position information of the current node.

[0719] From the above, we can see that the plane identification of the current node is PlaneMode i (i=0,1,2) indicates that i=0 represents the X coordinate axis, i=1 represents the Y coordinate axis, and i=2 represents the Z coordinate axis. PlaneMode i =0 means the current node is not a plane in the direction of the i-th coordinate axis. PlaneMode i =1 means that the current node is a plane in the direction of the i-th coordinate axis.

[0720] If the current node is a plane in the direction of the i-th coordinate axis, that is, PlaneMode i = 1, the encoder continues to encode the plane position information of the current node on the i-th coordinate axis. For example, using PlanePosition i Indicates the plane position information of the current node in the direction of the i-th coordinate axis, such as PlanePosition i =0 means that the current node is a plane in the direction of the i-th coordinate axis, and the plane position is the low plane, PlanePosition i =1 means that the current node is a high plane in the direction of the i-th coordinate axis.

[0721] In the embodiment of the present application, the plane structure information of the current node is predictively encoded based on the occupancy information of N neighboring nodes, that is, the plane identification and / or plane position information of the current node is predictively encoded.

[0722] For example, based on the occupancy information of the N neighboring nodes of the current node, the plane identifier of the current node on the i-th coordinate axis is predictively encoded.

[0723] For another example, based on the occupancy information of the N neighboring nodes of the current node, the plane position information of the current node on the i-th coordinate axis is predictively encoded.

[0724] In an embodiment of the present application, the plane structure information of the current node is predictively encoded based on the placeholder information of the N neighboring nodes of the current node. This can be understood as using the placeholder information of the N neighboring nodes of the current node as the context information of the plane structure information of the current node to predictively encode the plane structure information of the current node. For example, based on the placeholder information of the N neighboring nodes of the current node, a context model index is determined, based on the context model index, a context model is determined, and based on the context model, the plane structure information of the current node is predictively encoded, for example, the plane identifier of the current node is predictively encoded based on the context model, or the plane position information of the current node is predictively encoded based on the context model.

[0725] The embodiment of the present application does not limit the specific manner in which the encoding end performs predictive encoding on the plane structure information of the current node based on the placeholder information of N neighboring nodes.

[0726] In some embodiments, it can be seen from the above that the N neighboring nodes of the current node may be first type neighboring nodes or second type neighboring nodes. However, in this embodiment, the types of the N neighboring nodes are not considered, and the encoding end uses the occupancy information of the N neighboring nodes as context information to predict the plane structure information of the current node. For example, the occupancy information of the N neighboring nodes of the current node is used as context information to determine a context model index, and based on the context model index, a context model is determined, and based on the context model, the plane structure information of the current node is predictively encoded.

[0727] In some embodiments, if the plane structure information of the current node includes the plane position information of the current node, the encoder considers the type of the neighboring nodes when predictively encoding the plane structure information of the current node based on the occupancy information of the N neighboring nodes. In this case, the above S203 includes the following step S203-A:

[0728] S203-A: Based on the types and occupancy information of the N neighboring nodes, predictively encode the planar position information of the current node.

[0729] In this embodiment, the encoder considers the type of neighboring nodes when predicting the plane position information of the current node based on the occupancy information of the N neighboring nodes. For example, different methods can be used for predicting the plane position information of the current node based on the occupancy information of the neighboring nodes for different types of neighboring nodes.

[0730] In some embodiments, the encoder may also use the types and placeholder information of the N neighboring nodes as context information to predictively encode the planar structure information of the current node. For example, the encoder may use the types and placeholder information of the N neighboring nodes as context information to determine a context model index, determine a context model based on the context model index, and predictively encode the planar position information of the current node based on the context model.

[0731] In some embodiments, the above S203-A includes the following steps:

[0732] S203-A1. Determine, based on the types and placeholder information of the N neighboring nodes, first context information and / or second context information corresponding to the i-th coordinate axis, where the i-th coordinate axis is the X-coordinate axis, the Y-coordinate axis, or the Z-coordinate axis;

[0733] S203-A2: Based on the first context information and / or the second context information corresponding to the i-th coordinate axis, perform predictive encoding on the plane position information of the current node on the i-th coordinate axis.

[0734] In the embodiment of the present application, due to different types of neighboring nodes, the implementation of S203-A1 includes at least the following two cases:

[0735] Case 1: If the N neighboring nodes are the first type of neighboring nodes, then the above S203-A1 includes the following steps:

[0736] S203-A1-a1. Determine the plane structure information of the N neighboring nodes based on the occupancy information of the N neighboring nodes, where the occupancy information of the neighboring nodes indicates the occupancy information of the child nodes of the neighboring nodes;

[0737] S203-A1-a2. Determine the first context information and / or the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes.

[0738] In case 1, if the current node includes a first-type neighboring node, when the encoding end uses the placeholder information of the first-type neighboring node to predict the plane position information of the current node, first, based on the placeholder information of the N first-type neighboring nodes, the plane structure information of the N first-type neighboring nodes is determined, and then based on the plane structure information of the N first-type neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined. Finally, based on the first context information and / or the second context information corresponding to the i-th coordinate axis, a target context model is determined, and the target context model is used to predict the plane position information of the current node on the i-th coordinate axis, thereby improving the accuracy of the predictive encoding of the plane position information of the current node.

[0739] In an embodiment of the present application, for each of the N neighboring nodes, the specific process of determining the plane structure information of the neighboring node based on the occupancy information of the neighboring node is consistent. For the sake of convenience of description, any one of the N neighboring nodes is taken as an example for illustration.

[0740] In some embodiments, the above S203-A1-a1 includes the following step S203-A1-a11:

[0741] S203-A1-a11. For any neighboring node among the N neighboring nodes, determine at least one of the plane identification information and the plane position information of the neighboring node based on the occupancy information of the neighboring node.

[0742] In an embodiment of the present application, the encoding end may determine the plane identification information and / or plane position information of the neighboring node based on the occupancy information of the neighboring node.

[0743] The following describes a specific process of determining the plane identification information of a neighboring node based on the placeholder information of the neighboring node.

[0744] Specifically, the encoder determines plane0 and plane1 corresponding to the i-th coordinate axis based on the occupancy information of the neighboring node, and then determines the plane identification information corresponding to the neighboring node on the i-th coordinate axis based on plane0 and plane1.

[0745] Based on the above method, the encoder can determine plane0 and plane1 corresponding to the neighborhood node on the i-th coordinate axis, and then determine the plane identification information corresponding to the neighborhood node on the i-th coordinate axis based on plane0 and plane1.

[0746] The specific process of determining the planar location information of the neighborhood nodes is introduced below.

[0747] In an embodiment of the present application, the encoding end can determine the plane identification information planarMode of the neighboring node based on the above method, and then determine the plane position information of the neighboring node based on the plane identification information planarMode.

[0748] Exemplarily, the encoding end determines the plane position information of the neighborhood node on the i-th axis based on the above formula (25).

[0749] The above describes the specific process of determining the plane identification information and plane position information of the neighboring nodes on the X-coordinate axis. The specific process of determining the plane identification information and plane position information of the neighboring nodes on the Y-coordinate axis and the Z-coordinate axis can refer to the above-mentioned process of determining the plane identification information and plane position information of the X-coordinate axis, which will not be repeated here.

[0750] Based on the above steps, the encoding end determines the plane identification information and / or plane position information of each of the N neighboring nodes, and then predicts and encodes the plane position information of the current node based on the plane identification information and / or plane position information of each of the N neighboring nodes.

[0751] In the embodiment of the present application, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined based on the plane structure information of N neighboring nodes in the above S203-A1-a2.

[0752] The following describes a specific process in which the encoder determines the first context information corresponding to the i-th coordinate axis based on the planar structure information of N neighboring nodes.

[0753] It should be noted that, in the embodiment of the present application, the encoder determines the first context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes in the following specific ways, but not limited to:

[0754] In a first approach, the encoder determines the first context information corresponding to the i-th coordinate axis based on the plane structure information of some of the N neighboring nodes.

[0755] In one possible implementation, the encoder performs an AND operation on the planar structure information of any one of the P neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. The encoder then weights the first values ​​corresponding to the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0756] In the embodiment of the present application, the specific method of weighting the first values ​​corresponding to the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis is not limited.

[0757] In some embodiments, the weights of the first values ​​corresponding to the P neighboring nodes are preset values, so that the first values ​​corresponding to the P neighboring nodes can be weighted based on the weights of the first values ​​corresponding to each of the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis.

[0758] In some embodiments, weighting the first values ​​corresponding to the P neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis includes the following steps A1 and A2:

[0759] Step A1: determining the number of left shifts corresponding to the first value, and determining the weight corresponding to the first value based on the number of left shifts;

[0760] Step A2: Based on the weighted weight of the first value, weight the first values ​​corresponding to the P neighborhood nodes to obtain first context information corresponding to the i-th coordinate axis.

[0761] In this way, the weighted weight corresponding to each first value can be determined based on the number of left shifts corresponding to each first value. For example, if the number of left shifts corresponding to the first value is m, then 2 m Determine the weighted weight corresponding to the first value. In this way, it can be determined that the weighted weight corresponding to the first value 1 is 2 5 , the first value 2 corresponds to a weighted weight of 2 4 , the first value 3 corresponds to a weighted weight of 2 3 , the first value 4 corresponds to a weighted weight of 2 2 , the first value 5 corresponds to a weighted weight of 2 1 , the first value 6 corresponds to a weighted weight of 2 0 .

[0762] Then, based on the weighted weights of the first values, the first values ​​are weighted to obtain the first context information corresponding to the i-th coordinate axis. It is understood that the weighting of the first values ​​can be understood as concatenating the first values, that is, placing the first values ​​in corresponding bits to obtain the first context information corresponding to the i-th coordinate axis.

[0763] The above describes a specific process in which the encoder determines the first context information corresponding to the i-th coordinate axis based on the planar structure information of P neighboring nodes coplanar with the current node among the N neighboring nodes.

[0764] In some embodiments, the encoding end may further determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of the neighboring nodes among the N neighboring nodes that are collinear with the current node.

[0765] In some embodiments, the encoding end may further determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of the neighboring nodes among the N neighboring nodes that have a common point with the current node.

[0766] In some embodiments, the encoding end may also determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and colinear with the current node.

[0767] In some embodiments, the encoding end may also determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and co-point with the current node.

[0768] In some embodiments, the encoding end may also determine the first context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is collinear and co-point with the current node.

[0769] The above describes a specific process in which the encoder determines the first context information corresponding to the i-th coordinate axis based on the planar structure information of some of the N neighboring nodes.

[0770] In a second method, the encoder determines the first context information corresponding to the i-th coordinate axis based on the first plane position information of the N neighboring nodes.

[0771] The first plane structure information includes plane identification information and / or plane position information of the neighboring nodes. That is, the encoder determines the first context information corresponding to the i-th coordinate axis based on the plane identification information of the N neighboring nodes. Alternatively, the encoder determines the first context information corresponding to the i-th coordinate axis based on the plane position information of the N neighboring nodes. Alternatively, the encoder determines the first context information corresponding to the i-th coordinate axis based on the plane position information and plane identification information of the N neighboring nodes.

[0772] The embodiment of the present application does not limit the specific manner in which the encoder determines the first context information corresponding to the i-th coordinate axis based on the first plane position information of N neighboring nodes.

[0773] In one possible implementation, the encoder performs an AND operation on the first plane position information of any one of the N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain a second value corresponding to the neighboring node. The encoder then weights the second values ​​corresponding to the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0774] Exemplarily, the first preset value corresponding to the X coordinate axis is 0, the first preset value corresponding to the Y coordinate axis is 1, and the first preset value corresponding to the Z coordinate axis is 2.

[0775] As can be seen from the above, the plane structure information of the neighboring node includes plane identification information and / or plane position information. Therefore, in some embodiments, the above-mentioned encoding end performs an AND operation on the first plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the second value corresponding to the neighboring node, including: the encoding end performs an AND operation on the plane identification information and / or plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. In other words, the encoding end performs an AND operation on the plane identification information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then performs a weighted addition to obtain the first context information corresponding to the i-th coordinate axis. Alternatively, the encoding end performs an AND operation on the plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then performs a weighted addition to obtain the first context information corresponding to the i-th coordinate axis. Alternatively, the encoding end performs an AND operation on the plane identification information and plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then performs a weighted addition to obtain the first context information corresponding to the i-th coordinate axis.

[0776] In the embodiment of the present application, the specific method of weighting the second values ​​corresponding to N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis is not limited.

[0777] In some embodiments, the weights of the second values ​​corresponding to the N neighboring nodes are preset values, so that the second values ​​corresponding to the N neighboring nodes can be weighted based on the weights of the second values ​​corresponding to each of the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis.

[0778] In some embodiments, the weighting of the second values ​​corresponding to the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis includes the following steps B1 and B2:

[0779] Step B1: determining the number of left shifts corresponding to the second value, and determining a weighted weight corresponding to the second value based on the number of left shifts;

[0780] Step B2: Based on the weighted weight of the second value, weight the second values ​​corresponding to the N neighboring nodes to obtain the first context information corresponding to the i-th coordinate axis.

[0781] The above describes the specific process by which the encoder determines the first context information corresponding to the i-th coordinate axis based on the planar structure information of N neighboring nodes. It should be noted that in addition to determining the first context information corresponding to the i-th coordinate axis using the various methods shown above, the encoder may also use other methods to determine the first context information corresponding to the i-th coordinate axis.

[0782] The following describes a specific process of determining the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes in S203-A1.

[0783] It should be noted that, in the embodiment of the present application, the encoder determines the second context information corresponding to the i-th coordinate axis based on the plane structure information of the N neighboring nodes in the following specific ways, but not limited to:

[0784] In a first approach, the encoder determines the second context information corresponding to the i-th coordinate axis based on the plane structure information of some of the N neighboring nodes.

[0785] For example, the encoding end determines the second context information corresponding to the i-th coordinate axis based on the plane structure information of Q neighboring nodes among the N neighboring nodes that are collinear and / or co-point with the current node, where Q is a positive integer.

[0786] The plane structure information of the Q neighboring nodes includes plane identification information and / or plane position information of the Q neighboring nodes. That is, the encoding end determines the second context information corresponding to the i-th coordinate axis based on the plane identification information of the P coplanar neighboring nodes. Alternatively, the encoding end determines the second context information corresponding to the i-th coordinate axis based on the plane position information of the Q neighboring nodes. Alternatively, the encoding end determines the second context information corresponding to the i-th coordinate axis based on the plane identification information and plane position information of the Q neighboring nodes.

[0787] The embodiment of the present application does not limit the specific method for the encoding end to determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of Q neighboring nodes among N neighboring nodes that are collinear and / or co-point with the current node.

[0788] In one possible implementation, the encoder performs an AND operation on the plane structure information of any one of the Q neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighboring node. The encoder then weights the first values ​​corresponding to the P neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0789] As can be seen from the above, the plane structure information of the neighborhood node includes plane identification information and / or plane position information. Therefore, in some embodiments, the above-mentioned encoding end performs an AND operation on the plane structure information of the neighborhood node and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighborhood node, including: the encoding end performs an AND operation on the plane identification information and / or plane position information of the neighborhood node and the first preset value corresponding to the i-th coordinate axis to obtain the first value corresponding to the neighborhood node. In other words, the encoding end performs an AND operation on the plane identification information of Q neighborhood nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the encoding end performs an AND operation on the plane position information of Q neighborhood nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the encoding end performs an AND operation on the plane identification information and plane position information of Q neighborhood nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis.

[0790] In the embodiment of the present application, the specific method of weighting the first values ​​corresponding to the Q neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis is not limited.

[0791] In some embodiments, the weights of the first values ​​corresponding to the Q neighboring nodes are preset values, so that the first values ​​corresponding to the Q neighboring nodes can be weighted based on the weights of the first values ​​corresponding to each of the Q neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis.

[0792] In some embodiments, weighting the first values ​​corresponding to the Q neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis includes the following steps C1 and C2:

[0793] Step C1: determining the number of left shifts corresponding to the first value, and determining a weighted weight corresponding to the first value based on the number of left shifts;

[0794] Step C2: Based on the weighted weight of the first value, weight the first value corresponding to the Q neighborhood nodes to obtain second context information corresponding to the i-th coordinate axis.

[0795] The above describes a specific process of determining the second context information corresponding to the i-th coordinate axis on the encoder side based on the plane structure information of Q neighboring nodes that are collinear and / or co-point with the current node among the N neighboring nodes.

[0796] In some embodiments, the encoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is collinear with the current node.

[0797] In some embodiments, the encoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that has a common point with the current node.

[0798] In some embodiments, the encoding end may further determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar with the current node.

[0799] In some embodiments, the encoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and colinear with the current node.

[0800] In some embodiments, the encoding end may also determine the second context information corresponding to the i-th coordinate axis based on the plane structure information of at least one neighboring node among the N neighboring nodes that is coplanar and co-point with the current node.

[0801] The above describes a specific process in which the encoder determines the second context information corresponding to the i-th coordinate axis based on the planar structure information of some of the N neighboring nodes.

[0802] In a second method, the encoder determines the second context information corresponding to the i-th coordinate axis based on the second plane position information of the N neighboring nodes.

[0803] The second plane structure information includes plane identification information and / or plane position information of the neighboring nodes. That is, the encoder determines the second context information corresponding to the i-th coordinate axis based on the plane identification information of the N neighboring nodes. Alternatively, the encoder determines the second context information corresponding to the i-th coordinate axis based on the plane position information of the N neighboring nodes. Alternatively, the encoder determines the second context information corresponding to the i-th coordinate axis based on the plane position information and plane identification information of the N neighboring nodes.

[0804] The embodiment of the present application does not limit the specific manner in which the encoder determines the second context information corresponding to the i-th coordinate axis based on the first plane position information of N neighboring nodes.

[0805] In one possible implementation, the encoder performs an AND operation on the second plane position information of any one of the N neighboring nodes with the first preset value corresponding to the i-th coordinate axis to obtain a third value corresponding to the neighboring node. The encoder then weights the third values ​​corresponding to the N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis. It should be noted that different coordinate axes correspond to different first preset values, and the embodiments of the present application do not limit the specific values ​​of the first preset values ​​corresponding to each coordinate axis.

[0806] As can be seen from the above, the plane structure information of the neighboring node includes plane identification information and / or plane position information. Therefore, in some embodiments, the above-mentioned encoding end performs an AND operation on the second plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain the third value corresponding to the neighboring node, including: the encoding end performs an AND operation on the plane identification information and / or plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis to obtain the third value corresponding to the neighboring node. In other words, the encoding end performs an AND operation on the plane identification information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the encoding end performs an AND operation on the plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis. Alternatively, the encoding end performs an AND operation on the plane identification information and plane position information of N neighboring nodes and the first preset value corresponding to the i-th coordinate axis, and then weights them to obtain the second context information corresponding to the i-th coordinate axis.

[0807] In the embodiment of the present application, the specific method of weighting the third values ​​corresponding to N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis is not limited.

[0808] In some embodiments, the weights of the third values ​​corresponding to the N neighboring nodes are preset values, so that the third values ​​corresponding to the N neighboring nodes can be weighted based on the weights of the third values ​​corresponding to each of the N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis.

[0809] In some embodiments, weighting the third values ​​corresponding to the N neighboring nodes to obtain the second context information corresponding to the i-th coordinate axis includes the following steps D1 and D2:

[0810] Step D1...

Claims

1. A point cloud decoding method, characterized in that: include: Determine first information corresponding to the current node, where the first information is used to indicate whether a first type of neighboring node of the current node is valid, where the first type of neighboring node is a neighboring node whose geometric information has been decoded; Based on the first information, obtain the placeholder information of N neighboring nodes of the current node, where N is a positive integer; Based on the placeholder information of the N neighboring nodes, the plane structure information of the current node is predicted and decoded.

2. The method according to claim 1, characterized in that The obtaining, based on the first information, the placeholder information of the N neighboring nodes of the current node includes: If the first information indicates that at least one first-type neighboring node of the current node is valid, obtaining placeholder information of N first-type neighboring nodes of the current node, and using the placeholder information of the N first-type neighboring nodes as placeholder information of the N neighboring nodes of the current node; If the first information indicates that all first-type neighboring nodes of the current node are invalid, then the placeholder information of N second-type neighboring nodes of the current node is obtained, and the placeholder information of the N second-type neighboring nodes is used as the placeholder information of the N neighboring nodes of the current node. The second-type neighboring nodes are neighboring nodes whose geometric information is not decoded.

3. The method according to claim 2, characterized in that The N first-type neighborhood nodes include at least one of three first coplanar neighborhood nodes, three first colinear neighborhood nodes, and one first co-point neighborhood node. Among them, the three first coplanar neighbor nodes include a neighbor node coplanar with the front surface of the current node, a neighbor node coplanar with the left surface of the current node, and a neighbor node coplanar with the lower surface of the current node; the three first collinear neighbor nodes include a neighbor node colinear with the left side line of the front surface of the current node, a neighbor node colinear with the lower side line of the front surface of the current node, and a neighbor node colinear with the left side line of the lower surface of the current node; the first co-point neighbor node is a neighbor node co-point with the lower left front vertex of the current node.

4. The method according to claim 3, characterized in that The N second-type neighboring nodes include any neighboring node among the neighboring nodes of the current node except the first-type neighboring nodes.

5. The method according to claim 4, characterized in that The N second type neighborhood nodes include at least one of three second coplanar neighborhood nodes and nine second colinear neighborhood nodes, Among them, the three second coplanar neighboring nodes include a neighboring node coplanar with the back of the current node, a neighboring node coplanar with the right side of the current node, and a neighboring node coplanar with the top of the current node; the nine second colinear neighboring nodes include four neighboring nodes colinear with the four edge lines of the right surface of the current node, three neighboring nodes colinear with the front edge line, left edge line and back edge line of the upper surface of the current node, and two neighboring nodes colinear with the left edge line and bottom edge line of the back surface of the current node.

6. The method according to claim 2, characterized in that If the plane structure information of the current node includes the plane position information of the current node, predicting and decoding the plane structure information of the current node based on the placeholder information of the N neighboring nodes includes: Based on the types and occupancy information of the N neighboring nodes, the plane position information of the current node is predicted and decoded.

7. The method according to claim 6, characterized in that The predicting and decoding the plane position information of the current node based on the types and occupancy information of the N neighboring nodes includes: Based on the types and placeholder information of the N neighboring nodes, determine the first context information and / or the second context information corresponding to the i-th coordinate axis, where the i-th coordinate axis is an X-coordinate axis, a Y-coordinate axis or a Z-coordinate axis; Based on the first context information and / or the second context information corresponding to the i-th coordinate axis, the plane position information of the current node on the i-th coordinate axis is predicted and decoded.

8. The method according to claim 7, characterized in that The determining, based on the types and placeholder information of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis includes: If the N neighboring nodes are the first type of neighboring nodes, determining the plane structure information of the N neighboring nodes based on the occupancy information of the N neighboring nodes, the occupancy information of the neighboring nodes indicating whether the child nodes of the neighboring nodes are occupied; Based on the plane structure information of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined.

9. The method according to claim 8, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: Based on the plane structure information of P neighboring nodes among the N neighboring nodes that are coplanar with the current node, the first context information corresponding to the i-th coordinate axis is determined, where P is a positive integer.

10. The method according to claim 9, characterized in that The determining, based on the plane structure information of P neighboring nodes coplanar with the current node among the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: For any neighboring node among the P neighboring nodes, perform an AND operation on the plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a first value corresponding to the neighboring node; The first values ​​corresponding to the P neighborhood nodes are weighted to obtain the first context information corresponding to the i-th coordinate axis.

11. The method according to claim 8, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: Based on the plane structure information of Q neighboring nodes among the N neighboring nodes that are co-linear and / or co-point with the current node, the second context information corresponding to the i-th coordinate axis is determined, where Q is a positive integer.

12. The method according to claim 11, characterized in that The determining, based on the plane structure information of Q neighboring nodes that are co-linear and / or co-point with the current node among the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: For any neighboring node among the Q neighboring nodes, perform an AND operation on the plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a first value corresponding to the neighboring node; The first values ​​corresponding to the Q neighboring nodes are weighted to obtain second context information corresponding to the i-th coordinate axis.

13. The method according to claim 8, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: Based on the first plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis is determined, where the first plane structure information includes plane identification information or plane position information of the neighboring nodes.

14. The method according to claim 13, characterized in that The determining, based on the first plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: For any neighboring node among the N neighboring nodes, performing an AND operation on the first plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a second value corresponding to the neighboring node; The second values ​​corresponding to the N neighboring nodes are weighted to obtain the first context information corresponding to the i-th coordinate axis.

15. The method according to claim 8, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: Based on the second plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis is determined, where the second plane structure information is the plane identification information or the plane position information of the neighboring nodes.

16. The method according to claim 15, characterized in that The determining, based on the second plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: For any neighboring node among the N neighboring nodes, performing an AND operation on the second plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a third value corresponding to the neighboring node; The third values ​​corresponding to the N neighboring nodes are weighted to obtain the second context information corresponding to the i-th coordinate axis.

17. The method according to claim 7, characterized in that The determining, based on the types and placeholder information of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis includes: If the N neighboring nodes are the second type of neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined based on the occupancy information of the N neighboring nodes, and the occupancy information of the neighboring node indicates whether the neighboring node is occupied.

18. The method according to claim 17, characterized in that Determining first context information corresponding to the i-th coordinate axis based on the placeholder information of the N neighboring nodes includes: Based on the placeholder information of at least one neighboring node among the N neighboring nodes that is coplanar with the current node, first context information corresponding to the i-th coordinate axis is determined.

19. The method according to claim 17, characterized in that Determining the second context information corresponding to the i-th coordinate axis based on the placeholder information of the N neighboring nodes includes: Based on the placeholder information of at least one neighboring node among the N neighboring nodes that is co-linear with the current node, second context information corresponding to the i-th coordinate axis is determined.

20. The method according to claim 7, characterized in that The predicting and decoding of the plane position information of the current node on the i-th coordinate axis based on the first context information and / or the second context information corresponding to the i-th coordinate axis and the preset context information includes: Determine a target context model based on the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information; Based on the target context model, the plane position information of the current node on the i-th coordinate axis is predicted and decoded.

21. The method according to claim 20, characterized in that The determining the target context model based on the first context information and / or the second context information corresponding to the i-th coordinate axis and the preset context information includes: Based on the types of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information are divided into primary information and secondary information; The target context model is determined based on the primary information of the current node and part or all of the secondary information of the current node.

22. The method according to claim 21, characterized in that The preset context information includes at least one of the following third context information, fourth context information, fifth context information, and sixth context information: Third context information: using the neighboring node occupancy information to predict the plane position information of the current node, the plane position information is three elements: predicted as a low plane, predicted as a high plane, and unpredictable; Fourth context information: the spatial distances between the nodes at the same partition depth and the same coordinates as the current node and the current node, “near” and “far”; Fifth context information: the plane position of the node at the same partition depth and the same coordinates as the current node, if it is a plane; Sixth context information: coordinate dimension.

23. The method according to claim 22, characterized in that The dividing, based on the types of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information includes: If the N neighboring nodes are the first type of neighboring nodes, the fourth context information, the fifth context information and at least one of the first context information are determined as the primary information, and the third context information and at least one of the second context information are determined as the secondary information.

24. The method according to claim 22, characterized in that The dividing, based on the types of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information includes: If the N neighboring nodes are the second type of neighboring nodes, at least one of the third context information, the fourth context information, the fifth context information and the first context information is determined as the primary information, and the second context information is determined as the secondary information.

25. The method according to claim 21, characterized in that The determining the target context model based on the primary information of the current node and part or all of the secondary information of the current node includes: Converting the primary information of the current node and the secondary information of the current node into binary representation; Determine the number of right-shifted bits of the secondary information corresponding to the current node, and select the first secondary information from the secondary information represented by the binary representation of the current node based on the number of right-shifted bits of the secondary information corresponding to the current node, wherein the initial value of the number of right-shifted bits of the secondary information is the total number of bits of the binary secondary information; Determine a first index based on the main information after the binary representation of the current node and the first secondary information, and obtain an index of the target context model from a preset context model index cache based on the first index; Based on the index of the target context model, the target context model is obtained.

26. The method according to claim 25, characterized in that Determining the number of right shift bits of the secondary information corresponding to the current node includes: Determine the number of right shifts of the secondary information corresponding to the last layer of the current secondary information partition tree, wherein the secondary information partition tree is obtained by performing binary tree partitioning on the secondary information starting from the highest bit of the secondary information; The number of right-shifted bits of the secondary information corresponding to the last layer is determined as the number of right-shifted bits of the secondary information corresponding to the current node.

27. The method according to claim 26, characterized in that The method further comprises: If the last layer of the current secondary information partitioning tree is a non-full binary tree layer, and the number of occurrences of the first index in the last layer is greater than or equal to the first preset threshold corresponding to the last layer, the last layer is binary tree partitioned to obtain a new secondary information partitioning tree.

28. The method according to claim 26, characterized in that The method further comprises: If the last layer of the current secondary information partition tree is a full binary tree layer, determining the number of right shift bits of secondary information corresponding to the last non-full binary tree layer of the current secondary information partition tree and a first preset threshold; Selecting second secondary information from the secondary information represented by the binary representation of the current node based on the number of right shifts of the secondary information corresponding to the last non-full binary tree layer; Determine a second index based on the primary information after the binary representation of the current node and the second secondary information; If the number of occurrences of the second index in the last layer is greater than or equal to the first preset threshold corresponding to the last non-full binary tree layer, the last layer is partitioned into a full binary tree to obtain a new secondary information partition tree.

29. The method according to claim 27 or 28, characterized in that The method further comprises: The number of right-shifted bits of the secondary information corresponding to the current node is reduced by one to obtain a new number of right-shifted bits of the secondary information.

30. The method according to claim 25, characterized in that The obtaining the target context model based on the index of the target context model comprises: quantizing the index of the target context model to obtain a quantized model index; Based on the quantized model index, the target context model is obtained.

31. A point cloud encoding method, characterized in that: include: Determine first information corresponding to the current node, where the first information is used to indicate whether a first type of neighboring node of the current node is valid, where the first type of neighboring node is a neighboring node whose geometric information has been encoded; Based on the first information, obtain the placeholder information of N neighboring nodes of the current node, where N is a positive integer; Based on the placeholder information of the N neighboring nodes, predictive coding is performed on the plane structure information of the current node.

32. The method according to claim 31, characterized in that The obtaining, based on the first information, the placeholder information of the N neighboring nodes of the current node includes: If the first information indicates that at least one first-type neighboring node of the current node is valid, obtaining placeholder information of N first-type neighboring nodes of the current node, and using the placeholder information of the N first-type neighboring nodes as placeholder information of the N neighboring nodes of the current node; If the first information indicates that all first-type neighboring nodes of the current node are invalid, then the placeholder information of N second-type neighboring nodes of the current node is obtained, and the placeholder information of the N second-type neighboring nodes is used as the placeholder information of the N neighboring nodes of the current node. The second-type neighboring nodes are neighboring nodes whose geometric information is not encoded.

33. The method according to claim 32, characterized in that The N first-type neighborhood nodes include at least one of three first coplanar neighborhood nodes, three first colinear neighborhood nodes, and one first co-point neighborhood node. Among them, the three first coplanar neighbor nodes include a neighbor node coplanar with the front surface of the current node, a neighbor node coplanar with the left surface of the current node, and a neighbor node coplanar with the lower surface of the current node; the three first collinear neighbor nodes include a neighbor node colinear with the left side line of the front surface of the current node, a neighbor node colinear with the lower side line of the front surface of the current node, and a neighbor node colinear with the left side line of the lower surface of the current node; the first co-point neighbor node is a neighbor node co-point with the lower left front vertex of the current node.

34. The method according to claim 33, characterized in that The N second-type neighboring nodes include any neighboring node among the neighboring nodes of the current node except the first-type neighboring nodes.

35. The method according to claim 34, characterized in that The N second type neighborhood nodes include at least one of three second coplanar neighborhood nodes and nine second colinear neighborhood nodes, Among them, the three second coplanar neighboring nodes include a neighboring node coplanar with the back of the current node, a neighboring node coplanar with the right side of the current node, and a neighboring node coplanar with the top of the current node; the nine second colinear neighboring nodes include four neighboring nodes colinear with the four edge lines of the right surface of the current node, three neighboring nodes colinear with the front edge line, left edge line and back edge line of the upper surface of the current node, and two neighboring nodes colinear with the left edge line and bottom edge line of the back surface of the current node.

36. The method according to claim 32, characterized in that If the plane structure information of the current node includes the plane position information of the current node, the predictive coding of the plane structure information of the current node based on the placeholder information of the N neighboring nodes includes: Based on the types and occupancy information of the N neighboring nodes, predictive encoding is performed on the plane position information of the current node.

37. The method according to claim 36, characterized in that The predictive coding of the plane position information of the current node based on the types and occupancy information of the N neighboring nodes includes: Based on the types and placeholder information of the N neighboring nodes, determine the first context information and / or the second context information corresponding to the i-th coordinate axis, where the i-th coordinate axis is an X-coordinate axis, a Y-coordinate axis or a Z-coordinate axis; Based on the first context information and / or the second context information corresponding to the i-th coordinate axis, the plane position information of the current node on the i-th coordinate axis is predictively encoded.

38. The method according to claim 37, characterized in that The determining, based on the types and placeholder information of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis includes: If the N neighboring nodes are the first type of neighboring nodes, determining the plane structure information of the N neighboring nodes based on the occupancy information of the N neighboring nodes, the occupancy information of the neighboring nodes indicating whether the child nodes of the neighboring nodes are occupied; Based on the plane structure information of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined.

39. The method according to claim 38, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: Based on the plane structure information of P neighboring nodes among the N neighboring nodes that are coplanar with the current node, the first context information corresponding to the i-th coordinate axis is determined, where P is a positive integer.

40. The method according to claim 39, characterized in that The determining, based on the plane structure information of P neighboring nodes coplanar with the current node among the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: For any neighboring node among the P neighboring nodes, perform an AND operation on the plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a first value corresponding to the neighboring node; The first values ​​corresponding to the P neighborhood nodes are weighted to obtain the first context information corresponding to the i-th coordinate axis.

41. The method according to claim 38, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: Based on the plane structure information of Q neighboring nodes among the N neighboring nodes that are co-linear and / or co-point with the current node, the second context information corresponding to the i-th coordinate axis is determined, where Q is a positive integer.

42. The method according to claim 41, characterized in that The determining, based on the plane structure information of Q neighboring nodes that are co-linear and / or co-point with the current node among the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: For any neighboring node among the Q neighboring nodes, perform an AND operation on the plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a first value corresponding to the neighboring node; The first values ​​corresponding to the Q neighboring nodes are weighted to obtain second context information corresponding to the i-th coordinate axis.

43. The method according to claim 38, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: Based on the first plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis is determined, where the first plane structure information includes plane identification information or plane position information of the neighboring nodes.

44. The method according to claim 43, characterized in that The determining, based on the first plane structure information of the N neighboring nodes, the first context information corresponding to the i-th coordinate axis includes: For any neighboring node among the N neighboring nodes, performing an AND operation on the first plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a second value corresponding to the neighboring node; The second values ​​corresponding to the N neighboring nodes are weighted to obtain the first context information corresponding to the i-th coordinate axis.

45. The method according to claim 38, characterized in that The determining, based on the plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: Based on the second plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis is determined, where the second plane structure information is the plane identification information or the plane position information of the neighboring nodes.

46. ​​The method according to claim 45, characterized in that The determining, based on the second plane structure information of the N neighboring nodes, the second context information corresponding to the i-th coordinate axis includes: For any neighboring node among the N neighboring nodes, performing an AND operation on the second plane structure information of the neighboring node and the first preset value corresponding to the i-th coordinate axis to obtain a third value corresponding to the neighboring node; The third values ​​corresponding to the N neighboring nodes are weighted to obtain the second context information corresponding to the i-th coordinate axis.

47. The method according to claim 37, characterized in that The determining, based on the types and placeholder information of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis includes: If the N neighboring nodes are the second type of neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis is determined based on the occupancy information of the N neighboring nodes, and the occupancy information of the neighboring node indicates whether the neighboring node is occupied.

48. The method according to claim 39, characterized in that Determining first context information corresponding to the i-th coordinate axis based on the placeholder information of the N neighboring nodes includes: Based on the placeholder information of at least one neighboring node among the N neighboring nodes that is coplanar with the current node, first context information corresponding to the i-th coordinate axis is determined.

49. The method according to claim 39, characterized in that Determining the second context information corresponding to the i-th coordinate axis based on the placeholder information of the N neighboring nodes includes: Based on the placeholder information of at least one neighboring node among the N neighboring nodes that is co-linear with the current node, second context information corresponding to the i-th coordinate axis is determined.

50. The method of claim 37, wherein: The predictive encoding of the plane position information of the current node on the i-th coordinate axis based on the first context information and / or the second context information corresponding to the i-th coordinate axis and the preset context information includes: Determine a target context model based on the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information; Based on the target context model, predictive encoding is performed on the plane position information of the current node on the i-th coordinate axis.

51. The method according to claim 50, characterized in that The determining the target context model based on the first context information and / or the second context information corresponding to the i-th coordinate axis and the preset context information includes: Based on the types of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information are divided into primary information and secondary information; The target context model is determined based on the primary information of the current node and part or all of the secondary information of the current node.

52. The method according to claim 51, characterized in that The preset context information includes at least one of the following third context information, fourth context information, fifth context information, and sixth context information: Third context information: using the neighboring node occupancy information to predict the plane position information of the current node, the plane position information is three elements: predicted as a low plane, predicted as a high plane, and unpredictable; Fourth context information: the spatial distances between the nodes at the same partition depth and the same coordinates as the current node and the current node, “near” and “far”; Fifth context information: the plane position of the node at the same partition depth and the same coordinates as the current node, if it is a plane; Sixth context information: coordinate dimension.

53. The method according to claim 52, characterized in that The dividing, based on the types of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information includes: If the N neighboring nodes are the first type of neighboring nodes, the fourth context information, the fifth context information and at least one of the first context information are determined as the primary information, and the third context information and at least one of the second context information are determined as the secondary information.

54. The method according to claim 52, characterized in that The dividing, based on the types of the N neighboring nodes, the first context information and / or the second context information corresponding to the i-th coordinate axis, and the preset context information into primary information and secondary information includes: If the N neighboring nodes are the second type of neighboring nodes, at least one of the third context information, the fourth context information, the fifth context information and the first context information is determined as the primary information, and the second context information is determined as the secondary information.

55. The method according to claim 51, characterized in that The determining the target context model based on the primary information of the current node and part or all of the secondary information of the current node includes: Converting the primary information of the current node and the secondary information of the current node into binary representation; Determine the number of right-shifted bits of the secondary information corresponding to the current node, and select the first secondary information from the secondary information represented by the binary representation of the current node based on the number of right-shifted bits of the secondary information corresponding to the current node, wherein the initial value of the number of right-shifted bits of the secondary information is the total number of bits of the binary secondary information; Determine a first index based on the main information after the binary representation of the current node and the first secondary information, and obtain an index of the target context model from a preset context model index cache based on the first index; Based on the index of the target context model, the target context model is obtained.

56. The method according to claim 55, characterized in that Determining the number of right shift bits of the secondary information corresponding to the current node includes: Determine the number of right shifts of the secondary information corresponding to the last layer of the current secondary information partition tree, wherein the secondary information partition tree is obtained by performing binary tree partitioning on the secondary information starting from the highest bit of the secondary information; The number of right-shifted bits of the secondary information corresponding to the last layer is determined as the number of right-shifted bits of the secondary information corresponding to the current node.

57. The method according to claim 56, characterized in that The method further comprises: If the last layer of the current secondary information partitioning tree is a non-full binary tree layer, and the number of occurrences of the first index in the last layer is greater than or equal to the first preset threshold corresponding to the last layer, the last layer is binary tree partitioned to obtain a new secondary information partitioning tree.

58. The method according to claim 56, characterized in that The method further comprises: If the last layer of the current secondary information partition tree is a full binary tree layer, determining the number of right shift bits of secondary information corresponding to the last non-full binary tree layer of the current secondary information partition tree and a first preset threshold; Selecting second secondary information from the secondary information represented by the binary representation of the current node based on the number of right shifts of the secondary information corresponding to the last non-full binary tree layer; Determine a second index based on the primary information after the binary representation of the current node and the second secondary information; If the number of occurrences of the second index in the last layer is greater than or equal to the first preset threshold corresponding to the last non-full binary tree layer, the last layer is partitioned into a full binary tree to obtain a new secondary information partition tree.

59. The method according to claim 57 or 58, characterized in that The method further comprises: The number of right-shifted bits of the secondary information corresponding to the current node is reduced by one to obtain a new number of right-shifted bits of the secondary information.

60. The method of claim 55, wherein: The obtaining the target context model based on the index of the target context model comprises: quantizing the index of the target context model to obtain a quantized model index; Based on the quantized model index, the target context model is obtained.

61. A point cloud decoding device, characterized in that: include: A determining unit is used to determine first information corresponding to a current node, wherein the first information is used to indicate whether a first type of neighboring node of the current node exists. The first type of neighboring nodes are neighboring nodes whose geometric information has been decoded; an acquiring unit, configured to acquire, based on the first information, placeholder information of N neighboring nodes of the current node, where N is a positive integer; The decoding curtain is used to predict and decode the plane structure information of the current node based on the occupancy information of the N neighboring nodes.

62. A point cloud encoding device, characterized in that: include: A determination unit, configured to determine first information corresponding to a current node, wherein the first information is used to indicate whether a first type of neighboring node of the current node is valid, wherein the first type of neighboring node is a neighboring node whose geometric information has been encoded; an acquiring unit, configured to acquire, based on the first information, placeholder information of N neighboring nodes of the current node, where N is a positive integer; The encoding unit is used to predict and encode the plane structure information of the current node based on the occupancy information of the N neighboring nodes.

63. An electronic device, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 30 or 31 to 60.

64. A computer-readable storage medium, characterized in that Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 30 or 31 to 60.

Citation Information

Patent Citations

  • Point cloud geometrical information inter-frame encoding and decoding method

    CN112565764A

  • Coding processing method and decoding processing method for geometric information of point cloud and related equipment

    CN115471627A

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

    CN115606188A

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

    WO2021184380A1

  • Occupancy coding using inter prediction in geometry point cloud compression

    WO2023279083A1

Cited By

  • Robust three-dimensional reconstruction method based on weighted local curved surface approximation

    CN120014204A

  • Robust 3D Reconstruction Method Based on Weighted Local Surface Approximation

    CN120014204B