Point cloud processing method and apparatus, computer device, and storage medium
By shifting and reconstructing the target encoding information of the point cloud, the problem of low point cloud encoding and decoding efficiency in the existing technology is solved, and more efficient data transmission and processing are achieved.
Patent Information
- Application Number
- PCT/CN2023/096242
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-19
- Filing Date
- 2023-05-25
- Publication Date
- 2024-09-12
AI Technical Summary
In the existing technology, the encoding and decoding efficiency of point cloud is low, resulting in an efficiency bottleneck in data transmission and processing.
By shifting the target encoding information of the point cloud, the amount of data required in the encoding and decoding stages is reduced, and shift reconstruction technology is used to improve encoding and decoding efficiency.
It significantly improves the encoding and decoding efficiency of point cloud, reduces the resource consumption of data transmission and processing, and improves the overall performance of the system.
Smart Images

Figure CN2023096242_12092024_PF_FP_ABST
Abstract
Description
Point cloud processing method, device, computer equipment, and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 19, 2022, with application number 202211001666X and application name “A point cloud processing method, device, computer equipment, and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and specifically to point cloud encoding and decoding technology. Background Art
[0003] With the continuous development of science and technology, it is now possible to obtain a large number of high-precision point clouds at a low cost and in a short period of time. A point cloud can include multiple points, and each point in the point cloud has geometric information and attribute information. This information is called point cloud related information. In order to improve the transmission efficiency of the point cloud, it is usually necessary to encode the point cloud related information before transmitting the point cloud; specifically, after the encoding end encodes the point cloud related information, it can transmit the encoded information to the decoding end, and the decoding end can decode the encoded information to reconstruct the point cloud related information. However, in actual applications, due to the large amount of point cloud related information data, the encoding and decoding efficiency of point clouds is usually not high.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a point cloud processing method, apparatus, computer equipment, and storage medium, which can improve the encoding and decoding efficiency of point clouds.
[0006] In one aspect, an embodiment of the present application provides a point cloud processing method, which is executed by a computer device. The point cloud processing method includes:
[0007] Get the encoded data of the point cloud;
[0008] Parse the coded data to obtain shift data, which is obtained by shifting the target coded information of the point cloud during the encoding process of the point cloud;
[0009] The shifted data is shifted and reconstructed to obtain reconstructed coding information of the target coding information.
[0010] In the embodiment of the present application, after obtaining the encoded data of the point cloud, the encoded data can be parsed to obtain shifted data. The shifted data is obtained by shifting the target encoded information of the point cloud during the encoding process of the point cloud. The shifted data is then reconstructed to obtain reconstructed encoded information of the target encoded information. By shifting the target encoded information, the embodiment of the present application can reduce the amount of data required to decode during the decoding stage of the point cloud, thereby improving the decoding efficiency of the point cloud.
[0011] On the other hand, an embodiment of the present application provides a point cloud processing method, which is executed by a computer device. The point cloud processing method includes:
[0012] Get the target encoding information of the point cloud;
[0013] Get the encoding mode;
[0014] performing shift processing on the target coding information according to the coding mode to obtain shift data of the target coding information;
[0015] The shifted data is encoded.
[0016] In an embodiment of the present application, after obtaining the target coding information of the point cloud, the target coding information can be shifted to obtain shifted data of the target coding information, and then the shifted data can be encoded; by shifting the target coding information, the embodiment of the present application can reduce the amount of data required for encoding in the encoding stage of the point cloud, thereby improving the encoding efficiency of the point cloud.
[0017] Accordingly, an embodiment of the present application provides a point cloud encoding device, which includes:
[0018] An acquisition unit, used to acquire the encoded data of the point cloud;
[0019] A processing unit, configured to parse the coded data and obtain shift data, wherein the shift data is obtained by performing shift processing on target coded information of the point cloud during the encoding process of the point cloud;
[0020] The processing unit is further configured to perform shift reconstruction on the shifted data to obtain reconstructed coding information of the target coding information.
[0021] Accordingly, an embodiment of the present application provides a point cloud encoding device, which includes:
[0022] An acquisition unit, used to obtain target coding information of the point cloud;
[0023] The acquisition unit is also used to acquire the encoding mode;
[0024] a processing unit, configured to perform shift processing on the target coding information according to the coding mode to obtain shift data of the target coding information;
[0025] The processing unit is further configured to encode the shifted data.
[0026] Accordingly, an embodiment of the present application provides a computer device, comprising a processor and a computer-readable storage medium, wherein:
[0027] a processor suitable for implementing a computer program;
[0028] A computer-readable storage medium stores a computer program, wherein the computer program is suitable for being loaded by a processor and executing the above-mentioned point cloud processing method.
[0029] Accordingly, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned point cloud processing method.
[0030] Accordingly, embodiments of the present application provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described point cloud processing method.
[0031] In an embodiment of the present application, by shifting the target coding information, the amount of data required to be encoded in the encoding stage of the point cloud can be reduced, and the amount of data required to be decoded in the decoding stage of the point cloud can be reduced, thereby improving the encoding and decoding efficiency of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1a is a schematic diagram of a point cloud coding process provided by an embodiment of the present application;
[0033] FIG1b is a schematic diagram of another point cloud coding process provided by an embodiment of the present application;
[0034] FIG2 is a schematic diagram of a bounding box provided in an embodiment of the present application;
[0035] FIG3 is a schematic diagram of an octree encoding provided in an embodiment of the present application;
[0036] FIG4 is a schematic diagram of a block structure encoding provided by an embodiment of the present application;
[0037] FIG5a is a schematic diagram of a prediction tree coding structure provided by an embodiment of the present application;
[0038] FIG5 b is a schematic diagram of another prediction tree coding structure provided by an embodiment of the present application;
[0039] FIG6 is a schematic structural diagram of a point cloud processing system provided in an embodiment of the present application;
[0040] FIG7 is a flow chart of a point cloud processing method provided in an embodiment of the present application;
[0041] FIG8 is a flow chart of another point cloud processing method provided in an embodiment of the present application;
[0042] FIG9 is a schematic structural diagram of a point cloud processing device provided in an embodiment of the present application;
[0043] FIG10 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0045] In order to more clearly understand the technical solutions provided by the embodiments of the present application, the basic concepts involved in the embodiments of the present application are first introduced here:
[0046] (1) Point Cloud. A point cloud is a set of irregularly distributed discrete points in space that express the spatial structure and surface properties of a three-dimensional object or scene. Point clouds can be divided into different categories based on different classification criteria. For example, based on the acquisition method of the point cloud, they can be divided into dense point clouds and sparse point clouds. For another example, based on the time series type of the point cloud, they can be divided into static point clouds and dynamic point clouds.
[0047] (2) Point Cloud Data. The geometric information and attribute information of each point in the point cloud together constitute point cloud data. Geometric information can also be called three-dimensional position information. The geometric information of a point in the point cloud refers to the spatial coordinates (x, y, z) of the point, which can include the coordinate values of the point in each coordinate axis direction of the three-dimensional coordinate system, for example, the coordinate value x in the X-axis direction, the coordinate value y in the Y-axis direction, and the coordinate value z in the Z-axis direction. The attribute information of a point in the point cloud can include at least one of the following: color information, material information, laser reflection intensity information (also called reflectivity); usually, each point in the point cloud has the same number and type of attribute information. For example, each point in the point cloud can have two types of attribute information: color information and laser reflection intensity. For another example, each point in the point cloud can have three types of attribute information: color information, material information, and laser reflection intensity information.
[0048] (3) Point Cloud Compression (PCC). Point cloud coding refers to the process of encoding the geometric information and attribute information of each point in the point cloud to obtain a compressed code stream. Point cloud coding can include two main processes: geometric information encoding and attribute information encoding. The current mainstream point cloud coding technology can be divided into geometric structure-based point cloud coding and projection-based point cloud coding according to different types of point clouds. Here, G-PCC (Geometry-Based Point Cloud Compression) in MPEG (Moving Picture Expert Group, international audio and video coding standard) and AVS-PCC in AVS (Audio Video Coding Standard, China's national video coding standard) are used as examples to introduce them.
[0049] The coding frameworks of G-PCC and AVS-PCC are roughly the same. Figure 1a shows the coding framework of AVS-PCC, and Figure 1b shows the coding framework of G-PCC. They can be divided into the geometry information encoding process and the attribute information encoding process. In the geometry information encoding process, the geometry information of each point in the point cloud is encoded to obtain a geometry bitstream. In the attribute information encoding process, the attribute information of each point in the point cloud is encoded to obtain an attribute bitstream. The geometry bitstream and attribute bitstream together constitute the compressed bitstream of the point cloud.
[0050] For the geometric information encoding process, the main operations and processing can be seen in the following description:
[0051] ① Pre-processing: This can include coordinate transformation and voxelization. Through scaling and translation operations, the point cloud data in 3D space is converted into integer form and its minimum geometric position is moved to the coordinate origin.
[0052] ② Geometric coding: Geometric coding can include two modes, namely, octree-based geometric coding (Octree) and triangle-based geometric coding (Trisoup). These two coding modes can be used under different conditions. Among them:
[0053] Octree-based geometric coding: An octree is a tree-like data structure that evenly divides a predefined bounding box in three-dimensional space, with each node having eight children. By indicating whether each child node in the octree is occupied using "1" or "0," an occupancy code is generated as the code stream of the point cloud geometry information.
[0054] Geometric encoding based on triangulation: Divide the point cloud into blocks of a certain size, locate the intersection points of the point cloud surface at the edge of the block and construct triangles. By encoding the intersection points, geometric information is compressed.
[0055] ③ Geometry Quantization: The degree of quantization fineness is usually determined by the quantization parameter (QP). The larger the QP value, the larger the range of coefficients will be quantized to the same output, which usually results in greater distortion and lower bit rate. On the contrary, the smaller the QP value, the smaller the range of coefficients will be quantized to the same output, which usually results in less distortion and a higher bit rate.
[0056] ④ Geometry Entropy Encoding: Statistical compression encoding is performed on the octtree's occupancy code information, ultimately outputting a binary (0 or 1) compressed bitstream. Statistical coding is a lossless encoding method that can effectively reduce the bitrate required to express the same signal. A commonly used statistical coding method is context-adaptive binary arithmetic coding (CABAC).
[0057] For the attribute information encoding process, the main operations and processing can be found in the following description:
[0058] 1. Attribute Recoloring: In lossy encoding, after the geometric information is encoded, the encoder needs to decode and reconstruct the geometric information, that is, to restore the geometric information of each point in the point cloud. For a reconstructed point in the recovered point cloud, the attribute information of one or more neighboring points in the original point cloud is searched and used as the attribute information of the reconstructed point.
[0059] ② Attribute Transform Coding (Transform): Attribute transform coding can include three modes, namely predictive transform coding (Predicting Transform), lifting transform coding (Lifting Transform), and hierarchical region adaptive transform coding (RAHT). These three coding modes can be used under different conditions. Among them:
[0060] Predictive transform coding: By selecting subsets of points based on distance, the point cloud is divided into multiple levels of detail (LoDs), achieving a point cloud representation from coarse to fine. Adjacent layers can be predicted from the bottom up, where neighboring points in the coarse layer predict the attributes of points introduced in the fine layer, generating the corresponding residual signal. The points in the lowest layer are used as reference information for encoding.
[0061] Lifting transform coding: Based on the prediction of the adjacent layers of LoD, a weight update strategy for the neighborhood points is introduced to finally obtain the predicted attribute value of each point and the corresponding residual signal.
[0062] Hierarchical Region Adaptive Transform Coding: The attribute information is transformed into the transform domain through RAHT, which is called transform coefficient.
[0063] Attribute Quantization: The degree of quantization is usually determined by the quantization parameter. In predictive transform coding and lifting transform coding, entropy coding is performed on the quantized residual values; in RAHT, entropy coding is performed on the quantized transform coefficients.
[0064] 4. Attribute Entropy Coding: Quantized attribute residual signals or transform coefficients are typically compressed using run-length coding and arithmetic coding. The corresponding coding mode, quantization parameters, and other information are also encoded using an entropy encoder.
[0065] (4) Point cloud decoding. Point cloud decoding refers to the process of decoding the compressed bitstream obtained by point cloud encoding to reconstruct the point cloud; in detail, it refers to the process of reconstructing the geometric information and attribute information of each point in the point cloud based on the geometric bitstream and attribute bitstream in the compressed bitstream. After the decoding end obtains the compressed bitstream, the geometric bitstream is first entropy decoded to obtain the quantized geometric information of each point in the point cloud, and then dequantized to reconstruct the geometric information of each point in the point cloud. For the attribute bitstream, entropy decoding is first performed to obtain the quantized prediction residual information or quantized transform coefficients of each point in the point cloud; then the quantized prediction residual information is dequantized to obtain the reconstructed residual information, and the quantized transform coefficients are dequantized to obtain the reconstructed transform coefficients. The reconstructed transform coefficients are inversely transformed to obtain the reconstructed residual information. Based on the reconstructed residual information of each point in the point cloud, the attribute information of each point in the point cloud can be reconstructed. The reconstructed attribute information of each point in the point cloud is matched one by one with the reconstructed geometric information in order to reconstruct the point cloud.
[0066] The above content introduces the basic concepts involved in the embodiments of this application. The following introduces the basic technologies involved in the embodiments of this application:
[0067] (1) Pretreatment:
[0068] The floating point coordinates of each point in the input point cloud are expressed as (x m ,y m ,z m ), m=0,…,M-1, M is the number of points in the point cloud, the coordinate point (x min ,y min ,z min ) and coordinate point (x max ,y max ,z max ) is represented as follows: x min =min(x 0 ,x 1 ,…,x M-1 ) y min =min(y 0 ,y 1 ,…,y M-1 ) z min =min(z 0 ,z 1 ,…,z M-1 ) x max =max(x 0 ,x 1 ,…,x M-1 ) y max =max(y 0 ,y 1 ,…,y M-1 ) z max=max(z 0 ,z 1 ,…,z M-1 )
[0069] Among them, the function min(s 0 ,s 1 ,…,s M-1 ) means taking the minimum value of the current input, max(s 0 ,s 1 ,…,s M-1 ) means taking the maximum value of the current input.
[0070] As shown in Figure 2, the bounding box represents the smallest cuboid that can contain all the points in the input point cloud. The origin coordinates of the bounding box (x origin ,y origin ,z origin ) can be calculated as follows: origin =int(floor(x min )) y origin =int(floor(y min )) z origin =int(floor(z min ))
[0071] The size of the bounding box in the x, y, and z directions can be calculated as follows: BoudingBoxSize x =int(x max -x origin )+1 BoudingBoxSize y =int(y max -y origin )+1 BoudingBoxSize z =int(z max -z origin )+1
[0072] Among them, int(s) is the integer function, and floor(s) function returns the largest integer value less than or equal to s.
[0073] (2) Octree encoding:
[0074] An octree is a tree-like data structure, currently used primarily in G-PCC or AVS-PCC to partition point clouds. For point cloud data in three-dimensional space, the octree partitioning method evenly divides the pre-defined bounding box layer by layer, with each node having eight child nodes. By indicating the occupancy of each child node in the octree with '1' or '0', as shown in Figure 3, occupancy code information (occupancy code) is obtained as the code stream of point cloud geometry information.
[0075] Octrees are constructed based on the Morton sequence. This involves converting the 3D coordinates of point cloud data into corresponding Morton codes by querying a Morton sequence table. The order of each Morton code is used to determine the corresponding point in each octree layer. Currently, mainstream point cloud coding techniques use octree partitioning to represent point cloud data, employing different processing procedures for geometric and attribute information.
[0076] (3) Block structure encoding:
[0077] The block structure coding method introduces a concept similar to the coding block in video coding, which divides the three-dimensional space into several (2 dx ,2 dy ,2 dz ) size of non-overlapping coding macroblocks, each coding macroblock is used as the basic coding unit. You can set the octree partition depth d or control the size of the 3D macroblock through the parameter (nodeSizeLog2). When the octree is divided into each node with a size of (2 dx ,2 dy ,2 dz ) and the following conditions are met: nodeSizeLog2>max(d x ,d y ,d z )
[0078] Each node is encoded according to the coding macroblock (LCU). As shown in Figure 4, the coding starts from the second level of the 2D quadtree partition and is sequentially encoded according to the coding macroblock (LCU). Each coding macroblock can be regarded as a separate tree partition structure.
[0079] In the current implementation, a breadth-first traversal is used within each coded macroblock. This block-structured encoding approach offers significant flexibility. Within each coded macroblock, different geometric encoding methods can be used based on its characteristics. Attribute encoding can also be performed after geometric encoding of a macroblock is complete. This eliminates the need to wait for the entire point cloud to be geometrically encoded before performing attribute encoding.
[0080] (4) Predictive coding technology:
[0081] All points in the point cloud are linked into a single prediction tree, with each point predicted based on the signal value of its previous point. This method, as an option for point cloud signal prediction, can be set to act on the entire raw point cloud data, or on a subset of point cloud data obtained by octree child nodes or other methods.
[0082] In addition, the existing predictive coding technology in G-PCC uses distance search between points to establish a prediction tree. Figure 5a shows a prediction tree coding structure in AVS. The prediction tree shown in Figure 5a is a single-chain prediction tree. Figure 5b shows a prediction tree coding structure in MPEG. The prediction tree shown in Figure 5b is a multi-chain prediction tree. Each point is connected to other points, indicating the number of points it is connected to and one of four prediction modes. The four prediction modes are as follows:
[0083] 1) No prediction.
[0084] 2) Use the parent point (generation parent node) for prediction, that is, the previous point; for example, for point 401 in Figure 5b, point 402 is its parent point.
[0085] 3) Use parent point (first-generation parent node) and grandparent point (second-generation parent node) for prediction; for example, for point 401 in Figure 5b, point 402 is its parent point, and point 403 is its grandparent point.
[0086] 4) Use parent point (first-generation parent node), grandparent point (second-generation parent node) and grand-grandparent point (third-generation parent node) for prediction; for example, for point 401 in Figure 5b, point 402 is its parent point, point 403 is its grandparent point, and point 404 is its grand-grandparent point.
[0087] (5) Entropy coding technology:
[0088] Entropy coding technology is used to binarize and process the signed attribute prediction residual or transform coefficient after quantization (lossy condition).
[0089] 1) Variable-length coding: Codewords of varying lengths are used to represent the residual or coefficient to be encoded. The code length is designed based on the probability of the symbol occurring. Commonly used coding methods include Exponential-Golomb Coding (Exp-Golomb) and arithmetic coding.
[0090] Exponential Golomb coding is a lossless data compression method and a variable-length prefix code. The K-order (K is a non-negative integer) Exponential Golomb coding works as follows: Write the number in binary form, remove the lowest K bits, and then add 1. Calculate the number of bits remaining and subtract one from this number to find the number of leading zeros to add. The lowest K bits removed in the first step are then added back to the end of the bit string. For example, the second-order Exponential Golomb coding process for the number "5" is as follows: Write the number "5" in binary form as "101," remove the two lowest bits "10," leaving the high-order bit "1," and add 1 to the high-order bit "1" to get "10." The number of bits remaining is 2. Subtract one from this number to find the number of leading zeros to add, meaning a leading zero needs to be added. The two lowest bits removed in the first step are then added back to the end of the bit string, resulting in the second-order Exponential Golomb code for the number "5," "01001." The decoding process of the K-order exponential Golomb coding method is the inverse process of the encoding process of the K-order exponential Golomb coding method.
[0091] 2) CABAC: CABAC can include the following steps:
[0092] ① Binarization: CABAC uses binary arithmetic coding, which means that only two numbers (1 or 0) are encoded. A non-binary numerical symbol, such as a transform coefficient or motion vector, is first binarized or converted into a binary codeword before arithmetic coding. This process is similar to converting a numerical value into a variable-length codeword, but the binary codeword is further encoded by the arithmetic encoder before transmission.
[0093] ②Context model selection: The context model is a probabilistic model that is selected based on the statistics of the most recent encoded data symbols. This model stores the probability of each "bin" being 1 or 0.
[0094] ③Arithmetic coding: The arithmetic encoder encodes each "bin" according to the selected probability model.
[0095] ④Probability update: The selected context model will be updated according to the actual encoding value. For example, if the value of "bin" is 1, the frequency count of 1 will increase.
[0096] 3) Run-Length Coding:
[0097] Encode the signal values such as the signed attribute prediction residuals or transform coefficients after quantization (in the case of lossy), and count the number of consecutive 0s in the statistical data as the run - length. Taking the residual value Res as an example, if Res is non - zero, first perform entropy encoding on the run - length value, then perform entropy encoding on the non - zero attribute prediction residual, and set the run - length value to 0 to start counting again.
[0098] (6) Shift:
[0099] The principle of shifting is to shift the number based on binary. Shifting can include left - shifting (<<) and right - shifting (>>). Left - shifting means moving a binary number to the left by the specified number of bits to be shifted. The shifted - out bits are discarded, and the empty positions on the right are filled with zeros. Right - shifting means moving a binary number to the right by the specified number of bits to be shifted. The shifted - out bits are discarded, and the empty positions on the left are filled with zeros. After shifting the binary number, the shift quotient and shift remainder can be obtained. The binary number can be reconstructed through the shift quotient and shift remainder. The shift quotient refers to the result after right - shifting the binary number by the target number of bits, and the shift remainder refers to the binary difference between the binary number and the result of left - shifting the shift quotient by the target number of bits. For example, A = A1<<s + A2 means that shifting A can obtain the shift quotient A1 and the shift remainder A2, and reconstructing A can be achieved by left - shifting the shift quotient A1 by the target number of bits s and then adding the shift remainder A2.
[0100] Based on the introduction of the above basic concepts and basic technologies, the embodiments of this application provide a point cloud processing solution that can improve the encoding and decoding efficiency of point clouds. In the point cloud encoding stage of this point cloud processing solution, for the target encoding information to be encoded in the point cloud, the target encoding information can be shifted, and the data after shifting the target encoding information can be encoded. This can reduce the amount of data to be encoded in the point cloud encoding stage, thereby improving the encoding efficiency of the point cloud; correspondingly, in the point cloud decoding stage of this point cloud processing solution, after decoding the data after shifting the target encoding information, the data after shifting the target encoding information can be shifted and reconstructed to obtain the reconstructed encoding information of the target encoding information. This can reduce the amount of data to be decoded in the point cloud decoding stage, thereby improving the decoding efficiency of the point cloud.
[0101] The point cloud processing solution provided in the embodiments of the present application can also be combined with cloud computing, cloud storage and other technologies in cloud technology. Among them, cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, enabling various application systems to obtain computing power, storage space and information services as needed. Cloud computing can provide powerful computing support for the point cloud encoding and decoding stages, which can greatly improve the encoding efficiency of the point cloud and improve the decoding efficiency of the point cloud. Cloud storage is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide data storage and business access functions to the outside world. Cloud storage can provide powerful storage support for the point cloud encoding and decoding stages, which can further improve the encoding efficiency of the point cloud and improve the decoding efficiency of the point cloud.
[0102] The following describes a point cloud processing system suitable for implementing the point cloud processing solution provided in an embodiment of the present application, in conjunction with FIG6 . As shown in FIG6 , the point cloud processing system may include an encoding device 601 and a decoding device 602. Encoding device 601 may be a terminal or a server, and decoding device 602 may be a terminal or a server. FIG6 takes encoding device 601 as a terminal and decoding device 602 as a server as an example. Encoding device 601 and decoding device 602 may establish a direct connection via wired communication or an indirect communication connection via wireless communication. The terminal may be, but is not limited to, a smartphone, tablet computer, laptop computer, desktop computer, intelligent voice interaction device, smartwatch, in-vehicle terminal, smart home appliance, aircraft, etc. The server may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0103] (1) For the encoding device 601:
[0104] The encoding device 601 can acquire point cloud data (i.e., the geometric and attribute information of each point in the point cloud). Point cloud data can be acquired through scene capture or device generation. Scene capture of point cloud data refers to acquiring point cloud data by a capture device associated with the encoding device 601, capturing a real-world visual scene. The capture device is used to provide point cloud data acquisition services for the encoding device 601. The capture device may include, but is not limited to, any of the following: a camera, a sensor, or a scanning device. Cameras may include ordinary cameras, stereo cameras, and light field cameras, etc., sensor devices may include laser devices, radar devices, etc., and scanning devices may include 3D laser scanning devices, etc. The capture device associated with the encoding device 601 may be a hardware component provided in the encoding device 601, such as a camera or sensor in a terminal. The capture device associated with the encoding device 601 may also be a hardware device connected to the encoding device 601, such as a camera connected to a server. Device generation of point cloud data refers to the encoding device 601 generating point cloud data based on virtual objects (e.g., virtual 3D objects and virtual 3D scenes obtained through 3D modeling).
[0105] The encoding device 601 can encode the geometric information of each point in the point cloud to obtain a geometric bit stream, and can encode the attribute information of each point in the point cloud to obtain an attribute bit stream. The encoding device 601 can transmit the encoded geometric bit stream and attribute bit stream together to the decoding device 602. During the geometric encoding or attribute encoding process, for the target encoding information to be encoded in the point cloud (for example, the attribute information, attribute residual information, geometric information, geometric residual information, or run-length information involved in the encoding process, etc. of the point to be encoded in the point cloud), the encoding device 601 can shift the target encoding information and encode the shifted value. This can greatly reduce the amount of data required to be encoded in the encoding stage of the point cloud, thereby improving the encoding efficiency of the point cloud.
[0106] (2) For the decoding device 602:
[0107] After receiving the compressed code stream (i.e., the attribute bitstream and the geometry bitstream) transmitted by the encoding device 201, the decoding device 602 can decode the geometry bitstream to reconstruct the geometric information of each point in the point cloud, and can also decode the attribute bitstream to reconstruct the attribute information of each point in the point cloud. During the geometry decoding or attribute decoding process, the decoding device 602 can shift and reconstruct the parsed data to obtain the reconstructed encoding information of the target encoding information. This can greatly reduce the amount of data required to decode during the point cloud decoding stage, thereby improving the point cloud decoding efficiency.
[0108] In the embodiment of the present application, the encoding device can reduce the amount of data required to be encoded by the encoding device during the encoding phase of the point cloud by performing shift processing on the information to be encoded, thereby improving the point cloud encoding efficiency of the encoding device; the decoding device can reduce the amount of data required to be decoded by the decoding device during the decoding phase of the point cloud by performing shift reconstruction on the parsed information, thereby improving the point cloud decoding efficiency of the decoding device. It is understandable that the point cloud processing system described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application and does not constitute a limitation on the technical solution provided by the embodiment of the present application. Those skilled in the art will appreciate that with the evolution of system architecture and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is equally applicable to similar technical problems.
[0109] The point cloud processing solution provided in the embodiment of the present application is described in more detail below with reference to the accompanying drawings.
[0110] This embodiment of the present application provides a point cloud processing method, which mainly introduces the decoding process of the target encoding information at the decoding end. The point cloud processing method can be executed by a computer device, which can be the decoding device 602 in the above-mentioned point cloud processing system. As shown in Figure 7, the point cloud processing method may include the following steps S701-S703:
[0111] S701, obtaining the encoded data of the point cloud.
[0112] S702 , parsing the coded data to obtain shifted data, where the shifted data is obtained by performing a shift process on target coded information of the point cloud during the encoding process of the point cloud.
[0113] In step S701-step S702, in the decoding stage of the point cloud, the encoded data of the point cloud can be obtained, and the shifted data can be obtained by parsing the encoded data. That is, the encoded data can be obtained by encoding the shifted data, and the shifted data can be obtained by shifting the target encoded information of the point cloud during the encoding process of the point cloud.
[0114] The target coding information may be any point cloud related information that needs to be encoded during the encoding process of the point cloud. For example, in the geometric coding process, if geometric prediction coding is adopted, the target coding information may be the geometric residual information of any point in the point cloud (for example, specifically, the geometric residual information of any point in a certain direction); if geometric transform coding is adopted, the target coding information may be the transformation coefficient of the geometric information of any point in the point cloud (for example, specifically, the transformation coefficient of the geometric information of any point in a certain direction); if geometric prediction transform coding is adopted, the target coding information may be the transformation coefficient of the geometric residual information of any point in the point cloud (for example, specifically, the transformation coefficient of the geometric residual information of any point in a certain direction). For another example, in the attribute coding process, if attribute prediction coding is adopted, the target coding information may be the attribute residual information of any point in the point cloud; if attribute transform coding is adopted, the target coding information may be the transformation coefficient of the attribute information of any point in the point cloud; if attribute prediction transform coding is adopted, the target coding information may be the transformation coefficient of the attribute residual information of any point in the point cloud. If run encoding is used in the attribute encoding process or the geometric encoding process, the target encoding information can also be run information. The run information can be, for example, a zero run value. The zero run value can refer to the number of points in the point cloud where the residual information or transform coefficient is continuously 0.
[0115] The coded data may be generated according to a coding mode. Under different coding modes, the parsing process of the coded data may be different. That is, the coding mode may be obtained, and the coded data may be parsed according to the coding mode to obtain the shifted data. The coding mode determination process may be described as follows: the coding mode may be a default setting of the codec; or the coding mode may be determined based on coding mode information parsed from a coding parameter set or coding bitstream of the point cloud; or the codec may use a default threshold parameter and determine the coding mode based on mode determination information (e.g., target coding information, the number of occupied bits of target coding information, quantization parameter of target coding information, bounding box information, etc.) and a threshold parameter; or the threshold parameter may be parsed from a coding parameter set or coding bitstream, and the coding mode may be determined based on the mode determination information and the parsed threshold parameter.
[0116] The scope of application of the coding mode in the point cloud can be described as follows: the coding mode can be applied to the entire point cloud, that is, all points in the point cloud adopt the same coding mode; or, the coding mode can be applied to a single point cloud slice, that is, all points belonging to the same point cloud slice adopt the same coding mode, and the point cloud slice can be composed of one or more macroblocks; or, the coding mode can be applied to the entire macroblock, that is, all points belonging to the same macroblock adopt the same coding mode; or, the coding mode can be applied to the entire prediction tree, that is, all points belonging to the same prediction tree adopt the same coding mode; or, the coding mode can be applied to a single point in the point cloud; or, the coding mode can be applied to a certain direction of a single point (corresponding to the geometric coding process).
[0117] The following will focus on the parsing process of encoded data in different encoding modes:
[0118] (1) The coding mode may include a first coding mode. In the first coding mode, it may be determined whether the target coding information is a specific value. If the target coding information is not the specific value, it may indicate that the target coding information is shifted during the coding process. Accordingly, the shift data of the target coding information may be parsed. The shift data may include a coding shift quotient and a coding shift remainder of the target coding information. Moreover, before parsing the coding shift quotient of the target coding information, it may be determined whether the coding shift quotient of the target coding information is a specific value. If the coding shift quotient is not the specific value, the coding shift quotient of the target coding information may be parsed.
[0119] In the actual parsing process of the coded data, the coding information flag field can be used to identify whether the target coding information is a specific value, that is, the coded data can include a coding information flag field, and the coding information flag field can be parsed to determine whether the parsed value of the coding information flag field meets the shift parsing condition, that is, to determine whether the target coding information is a specific value; if the parsed value of the coding information flag field meets the shift parsing condition, it can be said that the target coding information is not a specific value. At this time, the coded data can also include a shift quotient flag field, which can be used to identify the coding shift quotient of the target coding information. Whether it is a specific value, the shift quotient flag field can be parsed to determine whether the parsed value of the shift quotient flag field meets the indirect parsing condition, that is, to determine whether the coding shift quotient of the target coding information is a specific value; if the parsed value of the shift quotient flag field meets the indirect parsing condition, it can be said that the coding shift quotient of the target coding information is not a specific value. At this time, the coding data can also include the coding result of the coding shift quotient and the coding result of the coding shift remainder. The coding result of the coding shift quotient can be parsed to obtain the coding shift quotient, and the coding result of the coding shift remainder can be parsed to obtain the coding shift remainder.
[0120] (2) The coding mode may include a second coding mode. In the second coding mode, it may be determined whether the target coding information is a specific value. If the target coding information is not a specific value, it may indicate that the target coding information has been shifted during the coding process. Then, the shift data of the target coding information may be parsed. The shift data may include a coding shift quotient and a coding shift remainder of the target coding information.
[0121] In the actual parsing process of the encoded data, the encoding information flag field can be used to identify whether the target encoding information is a specific value, that is, the encoding data can include the encoding information flag field, and the encoding information flag field can be parsed to determine whether the parsed value of the encoding information flag field meets the shift parsing condition, that is, to determine whether the target encoding information is a specific value; if the parsed value of the encoding information flag field meets the shift parsing condition, it can be said that the target encoding information is not a specific value. At this time, the encoding data can also include the encoding result of the encoding shift quotient and the encoding result of the encoding shift remainder. The encoding result of the encoding shift quotient can be parsed to obtain the encoding shift quotient, and the encoding result of the encoding shift remainder can be parsed to obtain the encoding shift remainder.
[0122] (3) The coding mode may include a third coding mode. In the third coding mode, the shift data of the target coding information may be parsed. The shift data of the target coding information may include a coding shift quotient and a coding shift remainder of the target coding information. Before parsing the coding shift quotient of the target coding information, it may be determined whether the coding shift quotient of the target coding information is a specific value. If the coding shift quotient is not the specific value, the coding shift quotient of the target coding information may be parsed.
[0123] In the actual parsing process of the encoded data, the shift quotient flag field can be used to identify whether the encoding shift quotient of the target encoding information is a specific value, that is, the encoded data can include the shift quotient flag field, and the shift quotient flag field can be parsed to determine whether the parsed value of the shift quotient flag field meets the indirect parsing condition, that is, to determine whether the encoding shift quotient of the target encoding information is a specific value; if the parsed value of the shift quotient flag field meets the indirect parsing condition, it can be said that the encoding shift quotient of the target encoding information is not a specific value. At this time, the encoded data can also include the encoding result of the encoding shift quotient and the encoding result of the encoding shift remainder. The encoding result of the encoding shift quotient can be parsed to obtain the encoding shift quotient, and the encoding result of the encoding shift remainder can be parsed to obtain the encoding shift remainder.
[0124] (4) The coding mode may include a fourth coding mode. In the fourth coding mode, it is not necessary to determine whether the target coding information is a specific value, nor is it necessary to determine whether the coding shift quotient of the target coding information is a specific value. The coding shift quotient and the coding shift remainder of the target coding information can be directly parsed. In other words, the coded data may include the coding result of the coding shift quotient and the coding result of the coding shift remainder. The coding result of the coding shift quotient can be parsed to obtain the coding shift quotient, and the coding result of the coding shift remainder can be parsed to obtain the coding shift remainder.
[0125] In the above-mentioned first coding mode and second coding mode, it is necessary to parse the coding information flag field to determine whether the parsed value of the coding information flag field meets the shift parsing condition, that is, to determine whether the target coding information is a specific value; if the parsed value of the coding information flag field meets the shift parsing condition, it can be said that the target coding information is not a specific value, and it is necessary to parse the coding shift quotient and coding shift remainder of the target coding information to reconstruct the target coding information; if the parsed value of the coding information flag field does not meet the shift parsing condition, it can be said that the target coding information is a specific value, and it is not necessary to parse the coding shift quotient and coding shift remainder of the target coding information, and the reconstructed coding information of the target coding information can be directly determined as a specific value. Parse the coding information flag field to determine whether the parsed value of the coding information flag field meets the shift parsing condition. For details, please refer to the following:
[0126] The number of coding information flag fields may be m1, each coding information flag field corresponding to a different specific value, where m1 is a positive integer; the i-th coding information flag field among the m1 coding information flag fields may be parsed, where i is a positive integer less than m1; if the parsed value of the i-th coding information flag field is a first value (for example, it may be 0), it may be indicated that the target coding information is not the i-th specific value, and the i+1-th coding information flag field may be parsed; if the parsed value of the i-th coding information flag field is a second value (for example, it may be 1), it may be indicated that the target coding information is the i-th specific value corresponding to the i-th coding information flag field, the coding information flag field does not meet the shift parsing condition, and there is no need to parse the coding shift quotient and the coding shift remainder of the target coding information, and parsing of subsequent coding information flag fields of the i-th coding information flag field may be stopped, and the reconstructed coding information of the target coding information may be directly determined to be the i-th specific value.
[0127] When parsing to the m1th coding information flag field, if the parsed value of the m1th coding information flag field is a first value, it can be determined that the target coding information is not the m1th specific value corresponding to the m1th coding information flag field, that is, it can be determined that the parsed value of the coding information flag field meets the shift parsing condition, and it is necessary to parse the coding shift quotient and coding shift remainder of the target coding information; if the parsed value of the m1th coding information flag field is a second value, it can be determined that the target coding information is the m1th specific value, the coding information flag field does not meet the shift parsing condition, and it is not necessary to parse the coding shift quotient and coding shift remainder of the target coding information. The reconstructed coding information of the target coding information can be directly determined to be the m1th specific value. Among them, the i-th specific value can be i-1, that is, the m1-th specific value can be m1-1.
[0128] For example, when the number of coding information flag fields is 1, if the parsed value of the coding information flag field is 0, it can be determined that the target coding information is not a specific value 0, the parsed value of the coding information flag field meets the shift parsing condition, and the coding shift quotient and coding shift remainder of the target coding information need to be parsed; if the parsed value of the coding information flag field is 1, it can be determined that the target coding information is a specific value 0, the parsed value of the coding information flag field does not meet the shift parsing condition, and there is no need to parse the coding shift quotient and coding shift remainder of the target coding information, and the reconstructed coding information of the target coding information can be directly determined to be a specific value 0.
[0129] For another example, when the number of coding information flag fields is 3, if the parsed value of the first coding information flag field is 0, it can be determined that the target coding information is not a specific value 0, and the second coding information flag field can be parsed. If the parsed value of the first coding information flag field is 1, it can be determined that the target coding information is a specific value 0, and the parsed value of the coding information flag field does not meet the shift parsing condition. There is no need to parse the coding shift quotient and coding shift remainder of the target coding information, and the reconstructed coding information of the target coding information can be directly determined to be a specific value 0; if the parsed value of the second coding information flag field is 0, it can be determined that the target coding information is not a specific value 1, and the third coding information flag field can be parsed. If the parsed value of the second coding information flag field is 1, it can be determined that the target coding information is The specific value is 1, and the parsed value of the coding information flag field does not meet the shift parsing condition. It is not necessary to parse the coding shift quotient and the coding shift remainder of the target coding information, and the reconstructed coding information of the target coding information can be directly determined to be the specific value 1. If the parsed value of the third coding information flag field is 0, it can be determined that the target coding information is not the specific value 2, and the parsed value of the coding information flag field meets the shift parsing condition. It is necessary to parse the coding shift quotient and the coding shift remainder of the target coding information. If the parsed value of the third coding information flag field is 1, it can be determined that the target coding information is the specific value 2. The parsed value of the coding information flag field does not meet the shift parsing condition, and it is not necessary to parse the coding shift quotient and the coding shift remainder of the target coding information. The reconstructed coding information of the target coding information can be directly determined to be the specific value 2.
[0130] In both the first and third coding modes mentioned above, it is necessary to parse the shift quotient flag field to determine whether the parsed value of the shift quotient flag field meets the indirect parsing condition, that is, to determine whether the coding shift quotient of the target coding information is a specific value; if the parsed value of the shift quotient flag field meets the indirect parsing condition, it can be said that the coding shift quotient is not a specific value, and the coding shift quotient of the target coding information needs to be parsed; if the parsed value of the shift quotient flag field does not meet the indirect parsing condition, it can be said that the coding shift quotient is a specific value, and there is no need to parse the coding shift quotient of the target coding information, and the coding shift quotient can be directly determined as a specific value. Similar to the judgment of the shift parsing condition, the shift quotient flag field is parsed to determine whether the parsed value of the shift quotient flag field meets the indirect parsing condition. For details, please refer to the following content:
[0131] The number of shift quotient flag fields can be m2, each shift quotient flag field corresponds to a different specific value, m2 is a positive integer; the j-th shift quotient flag field in the m2 shift quotient flag fields can be parsed, j is a positive integer less than m2; if the parsed value of the j-th shift quotient flag field is a first value (for example, it can be 0), it can be said that the coded shift quotient is not the j-th specific value corresponding to the j-th shift quotient flag field, and the j+1-th shift quotient flag field can be parsed; if the parsed value of the j-th shift quotient flag field is a second value (for example, it can be 1), it can be said that the coded shift quotient is the j-th specific value corresponding to the j-th shift quotient flag field, the shift quotient flag field does not meet the indirect parsing condition, and there is no need to parse the coded shift quotient of the target coding information, the parsing of the subsequent shift quotient flag fields of the j-th shift quotient flag field can be stopped, and the coded shift quotient can be directly determined to be the j-th specific value.
[0132] When parsing to the m2th shift quotient flag field, if the parsed value of the m2th shift quotient flag field is the first value, it can be said that the coding shift quotient is not the m2th specific value corresponding to the m2th shift quotient flag field, that is, it can be determined that the parsed value of the shift quotient flag field meets the indirect parsing condition, and it is necessary to parse the coding shift quotient of the target coding information; if the parsed value of the m2th shift quotient flag field is the second value, it can be said that the coding shift quotient is the m2th specific value corresponding to the m2th shift quotient flag field, the shift quotient flag field does not meet the indirect parsing condition, and it is not necessary to parse the coding shift quotient of the target coding information, and the coding shift quotient can be directly determined to be the m2th specific value. Among them, the jth specific value can be j-1, that is, the m2th specific value can be m2-1.
[0133] For example, when the number of shift quotient flag fields is 1, if the parsed value of the shift quotient flag field is 0, it can be determined that the coding shift quotient is not a specific value 0, the parsed value of the shift quotient flag field meets the indirect parsing condition, and the coding shift quotient of the target coding information needs to be parsed; if the parsed value of the shift quotient flag field is 1, it can be determined that the coding shift quotient is a specific value 0, the parsed value of the shift quotient flag field does not meet the indirect parsing condition, and the coding shift quotient of the target coding information does not need to be parsed, and the coding shift quotient can be directly determined to be a specific value 0.
[0134] For another example, when the number of shift quotient flag fields is 3, if the parsed value of the first shift quotient flag field is 0, it can be determined that the coded shift quotient is not a specific value of 0, and the second shift quotient flag field can be parsed. If the parsed value of the first shift quotient flag field is 1, it can be determined that the coded shift quotient is a specific value of 0, and the parsed value of the shift quotient flag field does not meet the indirect parsing condition. There is no need to parse the coded shift quotient of the target coding information, and the coded shift quotient can be directly determined to be a specific value of 0; if the parsed value of the second shift quotient flag field is 0, it can be determined that the coded shift quotient is not a specific value of 1, and the third shift quotient flag field can be parsed. If the parsed value of the second shift quotient flag field is 1, it can be To determine that the coding shift quotient is a specific value 1, the parsed value of the shift quotient flag field does not meet the indirect parsing conditions, and there is no need to parse the coding shift quotient of the target coding information, and the coding shift quotient can be directly determined to be a specific value 1; if the parsed value of the third shift quotient flag field is 0, it can be determined that the coding shift quotient is not a specific value 2, the parsed value of the shift quotient flag field meets the indirect parsing conditions, and the coding shift quotient of the target coding information needs to be parsed; if the parsed value of the third shift quotient flag field is 1, it can be determined that the coding shift quotient is a specific value 2, the parsed value of the shift quotient flag field does not meet the indirect parsing conditions, there is no need to parse the coding shift quotient of the target coding information, and the coding shift quotient can be directly determined to be a specific value 2.
[0135] In this case, after parsing the coding shift quotient of the target coding information, the coding shift quotient can be updated using the target value associated with the m2th specific value. The update here can specifically mean that the updated coding shift quotient is equal to the coding shift quotient before the update plus the target value. The target value can specifically be the m2th specific value + 1. For example, when the number of shift quotient flag fields is 1, the shift quotient flag field is used to determine whether the coding shift quotient is a specific value of 0. If the parsed value of the shift quotient flag field meets the indirect parsing condition, that is, the coding shift quotient is not the specific value of 0, then the parsed coding shift quotient can be added to 1 (0+1) to update the coding shift quotient.
[0136] In the above-mentioned first coding mode to fourth coding mode, parsing the coding shift quotient of the target coding information can mainly include any one of the following two methods: the first method is to parse the coding result of the coding shift quotient based on the exponential Columbus coding method to obtain the coding shift quotient, where the order adopted by the exponential Columbus coding method can be K1, and K1 is a non-negative integer; the second method is to parse the coding result of the coding shift quotient based on the bit number coding method to obtain the coding shift quotient.
[0137] For the second method of parsing the coded shift quotient (i.e., the bit number encoding method), the encoding result of the coded shift quotient may include: the encoding result of the number of bits occupied by the coded shift quotient, and the encoding of each bit occupied by the coded shift quotient. The process of parsing the encoding result of the coded shift quotient based on the bit encoding method to obtain the coded shift quotient may include: parsing the encoding result of the number of bits occupied by the coded shift quotient to obtain the number of bits occupied by the coded shift quotient; parsing the encoding of each bit occupied by the coded shift quotient to obtain the value of the encoding of each bit occupied by the coded shift quotient; and reconstructing the coded shift quotient based on the value of the encoding of each bit occupied by the coded shift quotient.
[0138] The number of bits occupied by the coded shift quotient may be obtained by parsing in any of the following ways:
[0139] ① Bit number encoding method. The encoding result of the occupied bit number can be parsed based on the bit number encoding method to obtain the occupied bit number. Specifically, the encoding result of the occupied bit number can include the encoding of each bit occupied by the occupied bit number. The encoding of each bit occupied by the occupied bit number can be parsed bit by bit to reconstruct the occupied bit number. ② Exponential Columbus encoding method. The encoding result of the occupied bit number can be parsed based on the exponential Columbus encoding method to obtain the occupied bit number of the encoding shift quotient. Here, the order adopted by the exponential Columbus parsing method can be K3, and K3 is a non-negative integer. ③ Shift encoding method. The encoding result of the occupied bit number can be parsed based on the shift encoding method to obtain the occupied bit number of the encoding shift quotient. Specifically, the encoding result of the occupied bit number can include the encoding result of the occupied shift quotient of the occupied bit number and the encoding result of the occupied shift remainder. The occupied shift quotient and the occupied shift remainder can be obtained by shifting the occupied bit number. Parsing the coding result of the occupied bit number based on the shift coding method to obtain the occupied bit number of the coding shift quotient may specifically include: parsing the coding result of the occupied shift quotient to obtain the occupied shift quotient; parsing the coding result of the occupied shift remainder to obtain the occupied shift remainder; performing shift reconstruction processing on the occupied shift quotient and the occupied shift remainder to obtain the occupied bit number of the coding shift quotient. Wherein:
[0140] The occupancy shift quotient and the occupancy shift remainder can be obtained by parsing using a bit number encoding method or an exponential Columbus encoding method. Specifically, for the occupancy shift quotient: the encoding result of the occupancy shift quotient can be parsed based on the bit number encoding method, and the encoding result of the occupancy shift quotient can include the encoding of each bit occupied by the occupancy shift quotient, and the encoding of each bit occupied by the occupancy shift quotient can be parsed bit by bit to reconstruct the occupancy shift quotient; or, the encoding result of the occupancy shift quotient can be parsed based on the exponential Columbus encoding method to obtain the occupancy shift quotient, where the order adopted by the exponential Columbus encoding method can be K4, and K4 is a non-negative integer. For the occupied shift remainder: the coding result of the occupied shift remainder can be parsed based on the bit number coding method, and the coding result of the occupied shift remainder may include the coding of each bit occupied by the occupied shift remainder, and the coding of each bit occupied by the occupied shift remainder can be parsed bit by bit to reconstruct the occupied shift remainder; or, the coding result of the occupied shift remainder can be parsed based on the exponential Columbus coding method to obtain the occupied shift remainder, where the order adopted by the exponential Columbus coding method can be K5, and K5 is a non-negative integer.
[0141] The occupied shift quotient and the occupied shift remainder are shifted and reconstructed to obtain the number of occupied bits of the encoded shift quotient. This process can be based on the number of shifted bits (the number of shifted bits here can be the first number of shifted bits), that is, the occupied shift quotient can be shifted based on the number of shifted bits (specifically, it can be a left shift) to obtain the shifted occupied shift quotient. Then, the shifted occupied shift quotient can be added to the occupied shift remainder to obtain the reconstructed number of occupied bits.
[0142] In the above-mentioned first coding mode to fourth coding mode, parsing the coding shift remainder of the target coding information can mainly include any one of the following two methods: ① Bit number coding method, which can parse the coding result of the coding shift remainder based on the bit number coding method. The coding result of the coding shift remainder can include the coding of each bit occupied by the coding shift remainder, and the coding of each bit occupied by the coding shift remainder can be parsed bit by bit to reconstruct the coding shift remainder. ② Exponential Columbus coding method, which can parse the coding result of the occupied bit number based on the exponential Columbus coding method to obtain the occupied bit number of the coding shift quotient. Here, the order adopted by the exponential Columbus parsing method can be K2 order, and K2 is a non-negative integer.
[0143] S703, performing shift reconstruction on the shifted data to obtain reconstructed coding information of the target coding information.
[0144] After parsing and obtaining the shifted data, the shifted data can be shifted and reconstructed to obtain reconstructed coding information of the target coding information. Specifically, the shifted data may include a coding shift quotient and a coding shift remainder, and the number of shifted bits (herein, the number of shifted bits may refer to the second number of shifted bits) can be obtained. The coding shift quotient can be shifted (specifically, it can be left-shifted) based on the number of shifted bits to obtain a shifted coding shift quotient. Then, the shifted coding shift quotient and the coding shift remainder can be added to obtain reconstructed coding information of the target coding information.
[0145] Among them, the number of shifting bits (which may refer to the above-mentioned first number of shifting bits or the above-mentioned second number of shifting bits) may be a default setting of the codec end. Alternatively, the number of shifting bits may be parsed from the encoding parameter set or encoding code stream of the point cloud. Alternatively, the number of shifting bits may be determined based on the shifting bit threshold parameter. Specifically, the number of shifting bits may be determined based on the size relationship between the shifting bit determination information and the shifting bit threshold. When the shifting bit determination information is less than or equal to the shifting bit threshold, the number of shifting bits may be determined to be the first number of shifting bits (for example, it may be 2 bits). When the shifting bit determination information is greater than the shifting bit threshold, the number of shifting bits may be determined to be the second number of shifting bits (for example, it may be 1 bit). Among them, the shifting bit determination information may be the order adopted by the exponential Columbus encoding method. For example, in the attribute decoding process, the shifting bit determination information may be the order adopted when parsing the reflectance attribute based on the exponential Columbus encoding method, or it may be the order adopted when parsing the color attribute based on the exponential Columbus encoding method. The shifting bit threshold may be a default setting of the codec end, or it may be parsed from the encoding parameter set or encoding code stream of the point cloud.
[0146] It should be noted that, for the above-mentioned first coding mode and second coding mode, the shifted data is shifted and reconstructed, and the initial reconstruction information of the target coding information can be obtained. The initial reconstruction information can be updated using a reference value associated with the m1th specific value to obtain the reconstructed coding information of the target coding information; the update here can specifically refer to: the reconstructed coding information of the target coding information is equal to the initial reconstruction information of the target coding information plus the reference value, and the reference value can specifically be the m1th specific value + 1. For example, when the number of coding information flag fields is 1, the coding information flag field is used to determine whether the target coding information is a specific value of 0. If the parsed value of the coding information flag field meets the shift parsing condition, that is, the target coding information is not the specific value 0, then the initial reconstruction information of the target coding information obtained by parsing can be added with 1 (0+1) to obtain the reconstructed coding information of the target coding information.
[0147] It should be noted that the parsing of encoded data involves parsing based on the Exponential Golomb coding scheme, so the order of the Exponential Golomb coding scheme needs to be confirmed. The order of the Exponential Golomb coding scheme can be determined in any of the following ways: the codec can set the order of the Exponential Golomb coding scheme by default, or the order of the Exponential Golomb coding scheme can be parsed from the point cloud encoding stream or encoding parameter set, or the order of the Exponential Golomb coding scheme can be determined based on the data characteristics of the target encoding information.
[0148] The method of determining the order of the exponential Golomb coding method according to the data characteristics of the target coding information may specifically include any of the following:
[0149] (1) Query the order of the exponential Columbus encoding method based on the dynamic range information of the point cloud:
[0150] The data characteristics of the target coding information may include the dynamic range information of the point cloud to which the target coding information belongs. The point cloud to which the target coding information belongs may refer to the entire point cloud, a point cloud slice, a current macroblock, or a current prediction tree, etc.; the dynamic range information may be determined based on the precision information of the point cloud. The precision information refers to the number of bits to which the information in the point cloud can be accurate. The dynamic range parameter may be obtained by performing an exponential operation on the precision information. For example, if the precision information of the information in the point cloud is 10 bits, the dynamic range parameter may be 2^10.
[0151] After obtaining the dynamic range information of the point cloud to which the target coding information belongs, the query index value can be calculated based on the dynamic range information, and then the order adopted by the exponential Columbus coding method can be queried in the query table based on the query index value; the query table can be written based on experience, and the length of the query table is related to the accuracy information of the point cloud. The query table includes multiple index values and the order corresponding to each index value. Therefore, based on the query index value, the order corresponding to the query index value can be quickly queried from the query table as the order adopted by the exponential Columbus coding method.
[0152] The calculation process of the query index value can also be related to the quantization step size of the point cloud. The dynamic range parameter can be calculated based on the dynamic range information and the quantization step size. Then, the query index value can be calculated based on the dynamic range parameter. For details, please refer to the following formula: Index = log2B'-1
[0153] Where, Index represents the query index value, and B' represents the dynamic range parameter.
[0154] (2) Adaptively determine the order of the exponential Golomb coding method:
[0155] Adaptively determining the order used in the exponential Golomb coding scheme may specifically include determining an initial order, and adjusting the initial order or the current order based on data characteristics of target coding information to obtain the order used in the exponential Golomb coding scheme. The data characteristics of the target coding information may include decoding information of a preceding decoded point of the point to be decoded to which the target coding information belongs. The preceding decoded point may refer to a decoded point that precedes the point to be decoded in a decoding order. The decoding information of the preceding decoded point may refer to information related to the preceding decoded point obtained through parsing, such as geometric residual information, attribute residual information, etc. of the preceding decoded point.
[0156] ① The initial order golombNum can be obtained, and the order adjustment threshold can be determined based on the initial order. The order adjustment threshold can include an order adjustment upper limit golombNumUp and an order adjustment lower limit golombNumLow. The first method for determining the order adjustment upper limit golombNumUp and the order adjustment lower limit golombNumLow can be referred to the following formula: golombNumLow = 2^golombNum, golombNumUp = 2^(golombNum+1)
[0157] The second method for determining the order adjustment upper limit golombNumUp and the order adjustment lower limit golombNumLow can be referred to the following formula: golombNumLow=2^(golombNum-1), golombNumUp=2^golombNum
[0158] ② The initial order or current order can be adjusted according to the size relationship between the decoding information of the previous decoded point and the order adjustment threshold to obtain the order adopted by the exponential Golomb coding method. Specifically, the statistical characteristic value of the decoding information of the previous decoded point can be determined: the previous decoded point can be a previous decoded point adjacent to the point to be decoded, and the statistical characteristic value A' can be the decoding information of the adjacent previous decoded point itself; or, the order adopted by the exponential Golomb coding method is adaptively adjusted once every L points, and the statistical characteristic value A' can be the average of the decoding information of the L previous decoded points; or, the order adopted by the exponential Golomb coding method is adaptively adjusted once every L points, and the statistical characteristic value A' can be the average of the non-zero decoding information in the decoding information of the L previous decoded points; this embodiment of the present application is not limited to this.
[0159] Then, the initial order or current order can be adjusted according to the size relationship between the statistical characteristic value and the order adjustment threshold to obtain the order adopted by the exponential Columbus coding method, and the current order can refer to the order adopted by the exponential Columbus coding method determined last time. Among them, according to the size relationship between the statistical characteristic value and the order adjustment threshold, the initial order is adjusted to obtain the order adopted by the exponential Columbus coding method, which may include: if the statistical characteristic value is greater than the order adjustment upper limit, then the order adopted by the exponential Columbus coding method is equal to the initial order minus the updated value (for example, it can be 1); if the statistical characteristic value is less than the order adjustment lower limit, then the order adopted by the exponential Columbus coding method is equal to the initial order plus the updated value (for example, it can be 1). For details, please refer to the following formula:
[0160] When A' <golombNumLow,K=golombNum+1
[0161] When A'>golombNumUp, K=golombNum-1
[0162] Where A' represents the statistical eigenvalue, golombNumLow represents the lower limit of the order adjustment, golombNumUp represents the upper limit of the order adjustment, golombNum represents the initial order, and K represents the order used in the exponential Golomb coding method.
[0163] According to the relationship between the statistical characteristic value and the order adjustment threshold, the current order is adjusted to obtain the order used by the exponential Golomb coding method, which may include: if the statistical characteristic value is greater than the order adjustment upper limit, then the order used by the exponential Golomb coding method is equal to the initial order minus the updated value (for example, it can be 1); if the statistical characteristic value is less than the order adjustment lower limit, then the order used by the exponential Golomb coding method is equal to the initial order plus the updated value (for example, it can be 1). For details, please refer to the following formula:
[0164] When A1 <golombNumLow,K=K’+1
[0165] When A1>golombNumUp, K=K'-1
[0166] Among them, A' represents the statistical eigenvalue, golombNumLow represents the lower limit of the order adjustment, golombNumUp represents the upper limit of the order adjustment, K' represents the current order, and K represents the order used by the exponential Columbus encoding method.
[0167] ③ After determining the order adopted by the exponential Golomb coding method, the order reset threshold can also be obtained. If it is determined based on the order reset threshold that the order adopted by the exponential Golomb coding method meets the order reset condition, the order adopted by the exponential Golomb coding method needs to be reset. If it is determined based on the order reset threshold that the order adopted by the exponential Golomb coding method does not meet the order reset condition, the order adopted by the exponential Golomb coding method can be kept unchanged. Herein, the order reset threshold can include the first order reset threshold t1 or the second order reset threshold t2. That the order adopted by the exponential Golomb coding method meets the order reset condition may mean that: the order adopted by the exponential Golomb coding method is less than (less than or equal to) the first order reset threshold. At this time, the order adopted by the exponential Golomb coding method can be reset to the first reference order t3; or, the order adopted by the exponential Golomb coding method is greater than (greater than or equal to) the second order reset threshold. At this time, the order adopted by the exponential Golomb coding method can be reset to the second reference order t4. Both the first reference order t3 and the second reference order t4 can be set to the corresponding initial order. For details, refer to the following formula:
[0168] If K <= t1 (K < t1), then K = t3 (t1 and t3 can be the same or different);
[0169] If K >= t2 (K > t2), then K = t4 (t2 and t4 can be the same or different);
[0170] That the order adopted by the exponential Golomb coding method does not meet the order reset condition may mean that: the order adopted by the exponential Golomb coding method is greater than or equal to (greater than) the first order reset threshold. At this time, the order adopted by the exponential Golomb coding method can be kept unchanged; or, the order adopted by the exponential Golomb coding method is less than or equal to (greater than) the second order reset threshold. At this time, the order adopted by the exponential Golomb coding method can be kept unchanged.
[0171] In addition, if the parsing process of the encoded data involves multiple parsing processes based on the exponential Golomb coding method, the orders used by each exponential Golomb coding method are independent of each other or interrelated. The interrelationship may include any of the following situations: the orders used by each exponential Golomb coding method are the same. Alternatively, the orders used by each exponential Golomb coding method are associated through an offset parameter (offset); for example, the five orders K1, K2, K3, K4, and K5 used by the exponential Golomb coding method mentioned above can be associated through an offset parameter (offset), K2 = K1-offset, K3 = K1-offset, K4 = K1-offset, K5 = K1-offset, and for example, K2 = K1-offset, K3 = K2-offset, K4 = K3-offset, K5 = K4-offset.
[0172] In the embodiment of the present application, after obtaining the encoded data of the point cloud, the encoded data can be parsed to obtain shifted data. The shifted data is obtained by shifting the target encoded information of the point cloud during the encoding process of the point cloud. The shifted data is then reconstructed to obtain reconstructed encoded information of the target encoded information. By shifting the target encoded information, the embodiment of the present application can reduce the amount of data required to decode during the decoding stage of the point cloud, thereby improving the decoding efficiency of the point cloud.
[0173] The following describes the application of the point cloud processing solution provided in the embodiment of the present application in the actual point cloud decoding process in conjunction with the syntax table:
[0174] Syntax Table 1
[0175] Here we first explain the parameters involved in the above syntax table 1:
[0176] nodeIdx: indicates the current point in the point cloud;
[0177] k: indicates the kth direction of the current point;
[0178] ptn_residual_abs_eq0_flag (coding information flag field): indicates whether the target coding information is 0; when this field is set to 1, it means that the target coding information is 0; when this field is set to 0, it means that the target coding information is not 0 (and greater than 0);
[0179] ptn_residual_abs_remainingptn: indicates the coding shift remainder obtained by shifting the target coding information;
[0180] ptn_residual_abs_half_eq0_flag (shift quotient flag field): indicates whether the coding shift quotient obtained by shifting the target coding information is 0; when this field is set to 1, it indicates that the coding shift quotient is 0; when this field is set to 0, it indicates that the coding shift quotient is not 0 (and greater than 0);
[0181] ptn_residual_abs_numbits (occupied bits field): indicates the number of bits occupied by the current value to be encoded;
[0182] ptn_numbits_remaining (occupied bit remainder field): indicates the occupied shift remainder obtained by shifting the number of occupied bits;
[0183] ptn_residual_abs_value_per (bit value field): indicates the value of each bit in the occupied bit number.
[0184] It can be seen that the above syntax table 1 takes the target coding information as the residual value of the current point in the point cloud in the k-th direction as an example to introduce the parsing process of the target point cloud coding information (corresponding to the above-mentioned first coding mode). For details, please refer to the following description:
[0185] (1) Analyze whether ptn_residual_abs_eq0_flag[k] is 0. If it is 0, continue to analyze. If it is not 0, it can be determined that the residual value A[k] of the current point in the k-th direction is 0;
[0186] (2) If ptn_residual_abs_eq0_flag[k] is 0, parse ptn_residual_abs_remaining[k] to obtain the coded shift remainder A2[k] of the residual value of the current point in the k-th direction;
[0187] (3) Analyze whether ptn_residual_abs_half_eq0_flag[k] is 0. If it is 0, continue to analyze. If it is not 0, it can be determined that the coding shift quotient A1[k] of the residual value of the current point in the k-th direction is 0;
[0188] (4) If ptn_residual_abs_half_eq0_flag[k] is 0, the coded shift quotient A1[k] of the residual value of the current point in the k-th direction is parsed based on the bit encoding method, that is, by parsing ptn_residual_abs_numbits[k] and ptn_residual_abs_value_per[k][j], the coded shift quotient A1[k] of the residual value of the current point in the k-th direction is obtained;
[0189] (5) Reconstruct the residual value A[k] of the current point in the kth direction by encoding the shift quotient A1[k] and the shift remainder A2[k]: A[k]=A1[k]< <s1+A2[k]。
[0190] Grammar Table 2
[0191] It can be seen that the above syntax table 2 takes the target coding information as the residual value of the current point in the point cloud in the k-th direction as an example to introduce the parsing process of the target point cloud coding information (corresponding to the above second coding mode). For details, please refer to the following description:
[0192] (1) Analyze whether ptn_residual_abs_eq0_flag[k] is 0. If it is 0, continue to analyze. If it is not 0, it can be determined that the residual value A[k] of the current point in the k-th direction is 0;
[0193] (2) If ptn_residual_abs_eq0_flag[k] is 0, parse ptn_residual_abs_remaining[k] to obtain the coded shift remainder A2[k] of the residual value of the current point in the k-th direction;
[0194] (3) Analyze the coded shift quotient A1[k] of the residual value of the current point in the k-th direction based on the bit number encoding method, that is, by analyzing ptn_residual_abs_numbits[k] and ptn_residual_abs_value_per[k][j], obtain the coded shift quotient A1[k] of the residual value of the current point in the k-th direction;
[0195] (4) Reconstruct the residual value A[k] of the current point in the kth direction by encoding the shift quotient A1[k] and the shift remainder A2[k]: A[k]=A1[k]< <s1+A2[k]。
[0196] Grammar Table 3
[0197] It can be seen that the above syntax table 3 takes the target coding information as the residual value of the current point in the point cloud in the k-th direction as an example to introduce the parsing process of the target point cloud coding information (corresponding to the above third coding mode). For details, please refer to the following description:
[0198] (1) Parse ptn_residual_abs_remaining[k] to obtain the coded shift remainder A2[k] of the residual value of the current point in the kth direction;
[0199] (2) Analyze whether ptn_residual_abs_half_eq0_flag[k] is 0. If it is 0, continue to analyze. If it is not 0, it can be determined that the coding shift quotient A1[k] of the residual value of the current point in the k-th direction is 0;
[0200] (3) If ptn_residual_abs_half_eq0_flag[k] is 0, the coded shift quotient A1[k] of the residual value of the current point in the k-th direction is parsed based on the bit encoding method, that is, by parsing ptn_residual_abs_numbits[k] and ptn_residual_abs_value_per[k][j], the coded shift quotient A1[k] of the residual value of the current point in the k-th direction is obtained;
[0201] (4) Reconstruct the residual value A[k] of the current point in the kth direction by encoding the shift quotient A1[k] and the shift remainder A2[k]: A[k]=A1[k]< <s1+A2[k]。
[0202] Grammar Table 4
[0203] It can be seen that the above syntax table 4 takes the target coding information as the residual value of the current point in the point cloud in the k-th direction as an example to introduce the parsing process of the target point cloud coding information (corresponding to the above third coding mode). For details, please refer to the following description:
[0204] (1) Parse ptn_residual_abs_remaining[k] to obtain the coded shift remainder A2[k] of the residual value of the current point in the kth direction;
[0205] (2) Analyze the coding shift quotient A1[k] of the residual value of the current point in the k-th direction based on the bit number coding method, that is, by analyzing ptn_residual_abs_numbits[k] and ptn_residual_abs_value_per[k][j], obtain the coding shift quotient A1[k] of the residual value of the current point in the k-th direction;
[0206] (3) Reconstruct the residual value A[k] of the current point in the kth direction by encoding the shift quotient A1[k] and the shift remainder A2[k]: A[k]=A1[k]< <s1+A2[k]。
[0207] Grammar Table 5
[0208] Here we first explain the parameters involved in the above syntax table 5:
[0209] zero_run_length_equal_zero (zero run value is zero flag, which can be used as a coding information flag field):
[0210] Binary variable. A value of "1" indicates that the zero-run value is zero; a value of "0" indicates that the zero-run value is non-zero. When this syntax element is not in the codestream, its value defaults to zero.
[0211] zero_run_length_equal_one (zero run value is one flag, which can be used as a coding information flag field):
[0212] Binary variable. A value of "1" indicates that the zero-run value is one; a value of "0" indicates that the zero-run value is not one. When this syntax element is not in the bitstream, its value defaults to zero.
[0213] zero_run_length_equal_two (zero run value is two flag, which can be used as a coding information flag field):
[0214] Binary variable. A value of "1" indicates that the zero-run value is two; a value of "0" indicates that the zero-run value is not two. When this syntax element is not in the codestream, its value defaults to zero.
[0215] zero_run_length_minus3_parity (zero run value minus triple parity indicator):
[0216] A binary variable. A value of "0" indicates that the zero-run value minus three is an even number; a value of "1" indicates that the zero-run value minus three is an odd number.
[0217] zero_run_length_minus3_parityH (zero run value minus the three high-order parity indicators):
[0218] A binary variable. A value of "0" indicates that the zero run value minus three divided by two is an even number; a value of "1" indicates that the zero run value minus three divided by two is an odd number.
[0219] zero_run_length_minus3_div2 (zero run value minus three divided by two):
[0220] Unsigned integer. Represents the zero run value minus three divided by two (i.e., right shifted one bit). When this syntax element is not in the codestream, its value defaults to zero.
[0221] zero_run_length_minus3_div4 (zero run value minus three divided by four)
[0222] Unsigned integer. Represents the zero run value minus three divided by four (i.e., right shifted two bits). When this syntax element is not in the codestream, its value defaults to zero.
[0223] It can be seen that the above syntax table 5 takes the target encoding information as a zero run value as an example to introduce the parsing process of the target point cloud encoding information. For details, please refer to the following description:
[0224] (1) Parse zero_run_length_equal_zero. If zero_run_length_equal_zero=0, continue parsing zero_run_length_equal_one. If zero_run_length_equal_zero=1, it means that the zero run value is 0.
[0225] (2) Parse zero_run_length_equal_one. If zero_run_length_equal_one=0, continue parsing zero_run_length_equal_two. If zero_run_length_equal_one=1, it means that the zero run value is 1.
[0226] (3) Parse zero_run_length_equal_two. If zero_run_length_equal_two = 0, parse zero_run_length_minus3_parity. If zero_run_length_equal_two = 1, it means that the zero run value is 2.
[0227] (4) Determine whether useGolomb is true or false;
[0228] (5) If useGolomb=true, it means that the zero run value is right-shifted by 2 bits, and zero_run_length_minus3_parity is parsed as the low-order value in the encoding shift remainder of the zero run value, zero_run_length_minus3_parityH is parsed as the high-order value in the encoding shift remainder of the zero run value, and zero_run_length_minus3_div4 is parsed as the encoding shift quotient of the zero run value; the zero run value zero_run_length can be reconstructed by the encoding shift quotient of the zero run value, the high-order value of the encoding shift remainder, and the low-order value of the encoding shift remainder, zero_run_length=zero_run_length_minus3_div4<<2+zero_run_length_minus3_parityH+zero_run_length_minus3_parity.
[0229] (6) If useGolomb=false, it means that the zero run value is right-shifted by 1 bit, and zero_run_length_minus3_parity is parsed as the encoding shift remainder of the zero run value, and zero_run_length_minus3_div2 is parsed as the encoding shift quotient of the zero run value; the zero run value zero_run_length can be reconstructed by the encoding shift quotient and encoding shift remainder of the zero run value, zero_run_length=zero_run_length_minus3_div2<<1+zero_run_length_minus3_parity.
[0230] Grammar Table 6
[0231] Here we first explain the parameters involved in the above syntax table 6 that are different from the above syntax table 5:
[0232] zero_run_length_minus3_mod4 (zero run value minus the three-modulus four indicator):
[0233] An unsigned integer representing the zero run value minus the value of three modulo four, that is, the zero run value minus the encoded shift remainder of three right shifts of two bits (two-bit binary variables can also be used to represent its high and low bits respectively).
[0234] zero_run_length_minus3_mod2 (zero run value minus the three-modulus four identifier):
[0235] An unsigned integer representing the zero run value minus the value of three modulo two, that is, the zero run value minus the encoded shift remainder of three right shifts one position.
[0236] It can be seen that the above syntax table 6 takes the target encoding information as a zero run value as an example to introduce the parsing process of the target point cloud encoding information. For details, please refer to the following description:
[0237] (1) Parse zero_run_length_equal_zero. If zero_run_length_equal_zero=0, continue parsing zero_run_length_equal_one. If zero_run_length_equal_zero=1, it means that the zero run value is 0.
[0238] (2) Parse zero_run_length_equal_one. If zero_run_length_equal_one=0, continue parsing zero_run_length_equal_two. If zero_run_length_equal_one=1, it means that the zero run value is 1.
[0239] (3) Parse zero_run_length_equal_two. If zero_run_length_equal_two = 0, useGolomb is determined to be true or false. If zero_run_length_equal_two = 1, the zero run value is 2.
[0240] (4) If useGolomb=true, it means that the zero run value is right-shifted by 2 bits, and zero_run_length_minus3_mod4 is parsed as the encoding shift remainder of the zero run value, and zero_run_length_minus3_div4 is parsed as the encoding shift quotient of the zero run value; the zero run value zero_run_length can be reconstructed by the encoding shift quotient and encoding shift remainder of the zero run value, zero_run_length=zero_run_length_minus3_div4<<2+zero_run_length_minus3_mod4.
[0241] (5) If useGolomb=false, it means that the zero run value is right-shifted by 1 bit, and zero_run_length_minus3_mod2 is parsed as the encoding shift remainder of the zero run value, and zero_run_length_minus3_div2 is parsed as the encoding shift quotient of the zero run value; the zero run value zero_run_length can be reconstructed by the encoding shift quotient and encoding shift remainder of the zero run value, zero_run_length=zero_run_length_minus3_div2<<1+zero_run_length_minus3_mod2.
[0242] It should be noted that both Syntax Table 5 and Syntax Table 6 require that "useGolomb" be judged as true or false. Whether "useGolomb" is true or false is related to the number of shift bits of the zero-run value. When "useGolomb" is true, the number of shift bits of the zero-run value can be the first number of shift bits (for example, two). When "useGolomb" is false, the number of shift bits of the zero-run value can be the second number of shift bits (for example, one). The specific description of "useGolomb" being true or false in the attribute decoding process is as follows:
[0243] RefGolombNum represents the order used when encoding the reflectivity attribute based on the exponential Golomb coding method. RefGolombNum can be used as the moving bit determination information. The bit threshold th val It can be used as the moving number threshold. If RefGolombNum≤moving number threshold th val , then useGolomb=true, the number of moving bits of zero run value is the first moving bit; if RefGolombNum> moving bit threshold th val , then useGolomb=false, the number of moving bits of zero run value is the first moving bit. Moving bit threshold th val It can be related to the attribute coding mode used in the specific attribute decoding. For example, when the attribute coding mode used in the attribute decoding is predictive transform coding, the moving bit threshold th val The value can be 1. When the attribute encoding mode used in attribute decoding is transform coding, the moving bit threshold th val The value of can be 2.
[0244] Similarly, ColorGolombNum represents the order used when encoding color attributes based on the exponential Golomb encoding method. ColorGolombNum can be used as the moving bit determination information, and the bit threshold th valIt can be used as the moving digit threshold. If ColorGolombNum≤moving digit threshold th val , then useGolomb=true, the number of moving bits of zero run value is the first moving bit; if RefGolombNum> moving bit threshold th val , then useGolomb=false, the number of moving bits of zero run value is the first moving bit. Moving bit threshold th val It can be related to the attribute coding mode used in the specific attribute decoding. For example, when the attribute coding mode used in the attribute decoding is predictive transform coding, the moving bit threshold th val The value can be 1. When the attribute encoding mode used in attribute decoding is transform coding, the moving bit threshold th val The value of can be 2.
[0245] Grammar Table 7
[0246] It can be seen that the above syntax table 7 takes the target encoding information as a zero run value as an example to introduce the parsing process of the target point cloud encoding information. For details, please refer to the following description:
[0247] (1) Parse zero_run_length_equal_zero. If zero_run_length_equal_zero=0, continue parsing zero_run_length_equal_one. If zero_run_length_equal_zero=1, it means that the zero run value is 0.
[0248] (2) Parse zero_run_length_equal_one. If zero_run_length_equal_one=0, continue parsing zero_run_length_equal_two. If zero_run_length_equal_one=1, it means that the zero run value is 1.
[0249] (3) Parse zero_run_length_equal_two. If zero_run_length_equal_two = 1, it means the zero run value is 2.
[0250] (4) If zero_run_length_equal_two=0, parse zero_run_length_minus3_mod2 as the encoding shift remainder of the zero run value, and parse zero_run_length_minus3_div2 as the encoding shift quotient of the zero run value; the zero run value zero_run_length can be reconstructed by the encoding shift quotient and encoding shift remainder of the zero run value, zero_run_length=zero_run_length_minus3_div2<<1+zero_run_length_minus3_mod2.
[0251] The present application provides a point cloud processing method. The point cloud processing method mainly introduces the encoding process of the target encoding information at the encoding end. The point cloud processing method can be executed by a computer device, which can be the encoding device 601 in the above-mentioned point cloud processing system. As shown in Figure 8, the point cloud processing method may include the following steps S801-S803:
[0252] S801, obtaining target coding information of the point cloud.
[0253] The target coding information can be any point cloud related information that needs to be encoded during the encoding process of the point cloud. For example, in the geometric coding process, if geometric prediction coding is adopted, the target coding information can be the geometric residual information of any point in the point cloud (for example, specifically, it can be the geometric residual information of any point in a certain direction); if geometric transform coding is adopted, the target coding information can be the transformation coefficient of the geometric information of any point in the point cloud (for example, specifically, it can be the transformation coefficient of the geometric information of any point in a certain direction); if geometric prediction transform coding is adopted, the target coding information can be the transformation coefficient of the geometric residual information of any point in the point cloud (for example, specifically, it can be the transformation coefficient of the geometric residual information of any point in a certain direction). For another example, in the attribute coding process, if attribute prediction coding is adopted, the target coding information can be the attribute residual information of any point in the point cloud; if attribute transform coding is adopted, the target coding information can be the transformation coefficient of the attribute information of any point in the point cloud; if attribute prediction transform coding is adopted, the target coding information can be the transformation coefficient of the attribute residual information of any point in the point cloud. If run encoding is used in the attribute encoding process or the geometric encoding process, the target encoding information can also be run information. The run information can be, for example, a zero run value. The zero run value can refer to the number of points in the point cloud where the residual information or transform coefficient is continuously 0.
[0254] S802: Perform shift processing on the target coding information to obtain shift data of the target coding information.
[0255] After obtaining the target coding information of the point cloud, the target coding information can be shifted to obtain the shifted data of the target coding information. The target coding information can be shifted according to the coding mode. Different coding modes have different shifting processes for the target coding information. In other words, the coding mode can be obtained and the target coding information can be shifted according to the coding mode to obtain the shifted data of the target coding information.
[0256] The coding mode determination process can be described as follows: the coding mode can be a default setting of the codec end; or, the coding mode can be determined based on the coding mode information set by the codec end, and the coding mode information is written into the coding parameter set or coding stream of the point cloud by the codec end; or, the codec end sets the threshold parameter by default, and the coding mode can be determined by the mode determination information (for example, the target coding information, the number of occupied bits of the target coding information, the quantization parameter of the target coding information, the bounding box information, etc.) and the threshold parameter; or, the codec end sets the threshold parameter by default, and the coding mode can be determined by the mode determination information and the threshold parameter, and the determined coding mode is written into the coding parameter set or coding stream of the point cloud in the form of coding mode information; or, the codec end can set the threshold parameter, and the coding mode can be determined by the mode determination information and the threshold parameter, and the set threshold parameter is written into the coding parameter set or coding stream of the point cloud.
[0257] The scope of application of the coding mode in the point cloud can be described as follows: the coding mode can be applied to the entire point cloud, that is, each point in the point cloud adopts the same coding mode; or, the coding mode can be applied to the entire point cloud slice, that is, each point belonging to the same point cloud slice adopts the same coding mode, and the point cloud slice can be composed of one or more macroblocks; or, the coding mode can be applied to the entire macroblock, that is, each point belonging to the same macroblock adopts the same coding mode, or, the coding mode can be applied to the entire prediction tree, that is, each point belonging to the same prediction tree adopts the same coding mode; or, the coding mode can be applied to a single point in the point cloud; or, the coding mode can be applied to a certain direction of a single point (corresponding to the geometric coding process), in this case, a single point in the point cloud can adopt the same coding mode in all directions, or, a single point in the point cloud can adopt different coding modes in all directions.
[0258] The following will focus on the shift processing process of target coding information in different coding modes:
[0259] (1) The coding mode may include a first coding mode. In the first coding mode, it may be determined whether the target coding information is a specific value. If the target coding information is not the specific value, the target coding information may be shifted to obtain shift data of the target coding information. The shift data may include a coding shift quotient and a coding shift remainder of the target coding information. Then, it may be determined whether the coding shift quotient of the target coding information is a specific value. If the coding shift quotient of the target coding information is not the specific value, it may be determined that indirect coding processing needs to be performed on the coding shift quotient of the target coding information.
[0260] Specifically, it is possible to determine whether the target coding information satisfies the shift coding condition, that is, to determine whether the target coding information is a specific value; if the target coding information satisfies the shift coding condition, it can be explained that the target coding information is not a specific value, and the target coding information needs to be shifted to obtain the coding shift quotient and coding shift remainder of the target coding information; then, it is possible to determine whether the coding shift quotient satisfies the indirect coding condition, that is, to determine whether the coding shift quotient is a specific value; if the coding shift quotient satisfies the indirect coding condition, it can be explained that the coding shift quotient is not a specific value, and it can be determined that the coding shift quotient needs to be indirectly coded.
[0261] (2) The coding mode may include a second coding mode. In the second coding mode, it may be first determined whether the target coding information is a specific value. If the target coding information is not the specific value, the target coding information may be shifted to obtain shift data of the target coding information. The shift data may include a coding shift quotient and a coding shift remainder of the target coding information.
[0262] Specifically, it is possible to determine whether the target coding information satisfies the shift coding conditions, that is, to determine whether the target coding information is a specific value; if the target coding information satisfies the shift coding conditions, it can be said that the target coding information is not a specific value, and the target coding information needs to be shifted to obtain the coding shift quotient and coding shift remainder of the target coding information. At this time, the coding shift quotient of the target coding information needs to be indirectly coded.
[0263] (3) The coding mode may include a third coding mode. In the third coding mode, the target coding information may be subjected to shift processing to obtain shift data of the target coding information. The shift data may include a coding shift quotient and a coding shift remainder of the target coding information. Then, it may be determined whether the coding shift quotient of the target coding information is a specific value. If the coding shift quotient of the target coding information is not the specific value, it may be determined that indirect coding processing is required for the coding shift quotient of the target coding information.
[0264] Specifically, the target coding information is shifted to obtain the coding shift quotient and coding shift remainder of the target coding information; then, it can be determined whether the coding shift quotient meets the indirect coding condition, that is, whether the coding shift quotient is a specific value; if the coding shift quotient meets the indirect coding condition, it can be said that the coding shift quotient is not a specific value, and it can be determined that the coding shift quotient needs to be indirectly coded.
[0265] (4) The coding mode may include a fourth coding mode. In the fourth coding mode, it is not necessary to determine whether the target coding information is a specific value, nor is it necessary to determine whether the coding shift quotient of the target coding information is a specific value. In other words, the target coding information can be directly shifted to obtain the coding shift quotient of the target coding information and the coding shift remainder of the target coding information. In this case, the coding shift quotient of the target coding information needs to be indirectly coded.
[0266] In both the first and second coding modes, it is necessary to determine whether the target coding information satisfies the shift coding condition, that is, to determine whether the target coding information is a specific value. If the target coding information satisfies the shift coding condition, it can be determined that the target coding information is not a specific value, and it is necessary to perform shift processing on the target coding information, and perform encoding processing on the shifted data obtained by the shift processing. If the target coding information does not satisfy the shift coding condition, it can be determined that the target coding information is a specific value, and the target coding information can be directly encoded. For details on determining the shift coding condition for the target coding information, please refer to the following:
[0267] When judging the shift coding conditions of the target coding information, it is necessary to perform a matching check on the target coding information and m1 specific values, where the m1 specific values correspond to different coding information flag fields, and m1 is a positive integer; the target coding information can be matched with the i-th specific value among the m1 specific values, where i is a positive integer less than m1; if the target coding information does not match (i.e., is not equal to) the i-th specific value, it can be said that the target coding information is not the i-th specific value, and the i-th coding information flag field corresponding to the i-th specific value can be set to a first value (for example, 0) and encoded, and the target coding information can be matched with the i+1-th specific value among the m1 specific values; if the target coding information matches (i.e., is equal to) the i-th specific value, it can be said that the target coding information is the i-th specific value. A specific value can be used to directly encode the target coding information. Directly encoding the target coding information can mean: setting the i-th coding information flag field to the second value (for example, 1) and encoding; when the match check reaches the m1-th specific value, if the target coding information does not match the m1-th specific value, it can be said that the target coding information is not the m1-th specific value, and the m1-th coding information flag field corresponding to the m1-th specific value can be set to the first value and encoded, and it is determined that the target coding information meets the shift coding condition; if the target coding information matches the m1-th specific value, it can be determined that the target coding information does not meet the shift coding condition, and the target coding information can be directly encoded. Directly encoding the target coding information can specifically mean: setting the m1-th coding information flag field to the second value and encoding. Among them, the i-th specific value can be i-1, that is, the m1-th specific value can be m1-1.
[0268] For example, when the target coding information is checked for matching with a specific numerical value (the specific numerical value may be 0), if the target coding information matches the specific numerical value 0, the target coding information can be directly encoded, that is, the coding information flag field can be set to 1 and encoded; if the target coding information does not match the specific numerical value 0, the coding information flag field can be set to 0 and encoded, and it can be determined that the target coding information needs to be shifted.
[0269] For another example, when the target coding information is checked for matching with three specific values (which may be the first specific value 0, the second specific value 1, and the third specific value 2), if the target coding information matches the first specific value 0, the target coding information can be directly encoded, that is, the first coding information flag field can be set to 1 and encoded; if the target coding information does not match the first specific value 0, the coding information flag field can be set to 0 and encoded, and the target coding information is matched with the second specific value 1; if the target coding information matches the second specific value 1, the target coding information can be directly encoded, that is, the second coding information flag field can be set to 1 and encoded; if the target coding information does not match the second specific value 1, the second coding information flag field can be set to 0 and encoded, and the target coding information is matched with the third specific value 2; if the target coding information matches the third specific value 2, the target coding information can be directly encoded, that is, the third coding information flag field can be set to 1 and encoded; if the target coding information does not match the third specific value 2, the third coding information flag field can be set to 0 and encoded, and it can be determined that the target coding information needs to be shifted.
[0270] Furthermore, if the target coding information satisfies the shift coding condition, the target coding information can be updated using a reference value associated with the m1th specific value, and then the updated target coding information can be shifted to obtain the coding shift quotient and coding shift remainder of the target coding information. The update here specifically refers to: the updated target coding information is equal to the target coding information before the update minus the reference value. The reference value specifically refers to the m1th specific value + 1. For example, when the target coding information is matched with a specific value (the specific value may be 0), if the target coding information satisfies the shift coding condition, that is, the target coding information is not the specific value 0, the target coding information can be subtracted by 1 (specific value 0+1), and the target coding information after subtraction of 1 is shifted. Here, the purpose of subtracting the reference value (i.e., the m1th specific value + 1) from the target coding information is that when the target coding information does not match the m1th specific value, it means that the target coding information is a value greater than the m1th specific value. Subtracting the reference value (i.e., the m1th specific value + 1) can reduce the amount of encoded data, thereby improving the coding efficiency of the point cloud to a certain extent.
[0271] In both the first and third coding modes, it is necessary to determine whether the coding shift quotient satisfies the indirect coding conditions, that is, to determine whether the coding shift quotient is a specific value. If the coding shift quotient satisfies the indirect coding conditions, it can be determined that the coding shift quotient is not a specific value, and the coding shift quotient needs to be indirectly coded. If the coding shift quotient does not satisfy the indirect coding conditions, it can be determined that the coding shift quotient is a specific value, and the coding shift quotient can be directly coded. For details on the determination of the indirect coding conditions for the coding shift quotient, please refer to the following:
[0272] When judging the indirect coding conditions of the coding shift quotient, it is necessary to check the matching of the coding shift quotient with m2 specific values, where the m2 specific values correspond to different shift quotient flag fields, and m2 is a positive integer; the coding shift quotient can be checked for matching with the j-th specific value among the m2 specific values, where j is a positive integer less than m2; if the coding shift quotient does not match (i.e., is not equal to) the j-th specific value, it can be said that the coding shift quotient is not the j-th specific value, and the j-th shift quotient flag field corresponding to the j-th specific value can be set to the first value (for example, it can be 0) and encoded, and the coding shift quotient can be checked for matching with the j+1-th specific value among the m2 specific values; if the coding shift quotient matches (i.e., is equal to) the j-th specific value, it can be said that the coding shift quotient is the j-th specific value. A specific value can be used to directly encode the coded shift quotient. Directly encoding the coded shift quotient can mean: setting the jth shift quotient flag field to a second value (for example, 1) and encoding it; when the matching check reaches the m2th specific value, if the coded shift quotient does not match the m2th specific value, it can be said that the coded shift quotient is not the m2th specific value, and the m2th shift quotient flag field corresponding to the m2th specific value can be set to the first value and encoded, and it is determined that the coded shift quotient meets the indirect encoding condition; if the coded shift quotient matches the m2th specific value, it can be determined that the coded shift quotient does not meet the indirect encoding condition, and the coded shift quotient can be directly encoded. Directly encoding the coded shift quotient can specifically mean: setting the m2th shift quotient flag field to the second value and encoding it. Among them, the jth specific value can be j-1, that is, the m2th specific value can be m2-1.
[0273] For example, when the coded shift quotient is checked for matching with a specific value (the specific value may be 0), if the coded shift quotient matches the specific value 0, the coded shift quotient can be directly encoded, that is, the shift quotient flag field can be set to 1 and encoded; if the coded shift quotient does not match the specific value 0, the shift quotient flag field can be set to 0 and encoded, and it can be determined that the coded shift quotient meets the indirect encoding condition, and the coded shift quotient needs to be indirectly encoded.
[0274] For another example, when the coded shift quotient is checked for matching with three specific values (which may be the first specific value 0, the second specific value 1, and the third specific value 2), if the coded shift quotient matches the first specific value 0, the coded shift quotient can be directly encoded, that is, the first shift quotient flag field can be set to 1 and encoded; if the coded shift quotient does not match the first specific value 0, the shift quotient flag field can be set to 0 and encoded, and the coded shift quotient can be matched with the second specific value 1; if the coded shift quotient matches the second specific value 1, the coded shift quotient can be directly encoded, that is, the second specific value can be set to 0. The first shift quotient flag field is set to 1 and encoded; if the encoded shift quotient does not match the second specific value 1, the second shift quotient flag field can be set to 0 and encoded, and the encoded shift quotient can be matched with the third specific value 2; if the encoded shift quotient matches the third specific value 2, the encoded shift quotient can be directly encoded, that is, the third shift quotient flag field can be set to 1 and encoded; if the encoded shift quotient does not match the third specific value 2, the third shift quotient flag field can be set to 0 and encoded, and it can be determined that the encoded shift quotient meets the indirect encoding condition, and the encoded shift quotient needs to be indirectly encoded.
[0275] Furthermore, if the coding shift quotient satisfies the indirect coding condition, the target value associated with the m2th specific value can be used to update the coding shift quotient, and then it can be determined that the updated coding shift quotient needs to be indirectly coded. The update here specifically refers to: the updated coding shift quotient is equal to the coding shift quotient before the update minus the target value. The target value can specifically refer to the m2th specific value + 1. For example, when the coding shift quotient is matched with a specific value (the specific value can be 0), if the coding shift quotient satisfies the indirect coding condition, that is, the coding shift quotient is not the specific value 0, the coding shift quotient can be subtracted by 1 (specific value 0+1), and it is determined that the coding shift quotient after subtracting 1 needs to be indirectly coded. Here, the purpose of subtracting the target value (i.e., the m2th specific value + 1) from the coding shift quotient is that when the coding shift quotient does not match the m2th specific value, it means that the coding shift quotient is a value greater than the m2th specific value. Subtracting the target value (i.e., the m2th specific value + 1) can reduce the amount of encoded data, thereby improving the coding efficiency of the point cloud to a certain extent.
[0276] In the first to fourth coding modes described above, the shift processing of the target coding information (or the updated target coding information) is performed based on the number of shift bits (the number of shift bits here may be the second number of shift bits). The number of shift bits may be fixed, the number of shift bits may be determined, or the number of shift bits may be variable.
[0277] ① For the case where the number of shift bits is fixed: the number of shift bits can be obtained, and based on the number of shift bits, the target coding information can be shifted to obtain the coding shift quotient and coding shift remainder of the target coding information. In the case where the number of shift bits is fixed, the number of shift bits can be set by default on the codec side, or the number of shift bits can be set on the encoder side, and the number of shift bits is written into the coding parameter set or coding stream of the point cloud.
[0278] ② For the case where the number of shift bits is determined: the shift bit determination information and the shift bit threshold can be obtained, and the number of shift bits can be determined based on the size relationship between the shift bit determination information and the shift bit threshold. Specifically, when the shift bit determination information is less than or equal to the shift bit threshold, the number of shift bits can be determined to be the first shift bit (for example, it can be 2 bits), and when the shift bit determination information is greater than the shift bit threshold, the number of shift bits can be determined to be the second shift bit (for example, it can be 1 bit); then, based on the number of shift bits, the target coding information can be shifted to obtain the coding shift quotient and coding shift remainder of the target coding information. Among them, the shift bit determination information can be the order adopted by the exponential Columbus coding method. For example, in the attribute coding process, the shift bit determination information can be the order adopted when encoding the reflectivity attribute based on the exponential Columbus coding method, or it can be the order adopted when encoding the color attribute based on the exponential Columbus coding method. When the number of movement bits is determined, the movement bit threshold can be a default setting on the codec end, or the movement bit threshold can be set on the encoding end, and the movement bit threshold is written into the encoding parameter set or encoding code stream of the point cloud, and the determined movement bit count can be written into the encoding parameter set or encoding code stream of the point cloud.
[0279] ③ For the case where the number of shift bits is variable: the initial number of shift bits can be obtained, and based on the initial number of shift bits, the target coding information is shifted to obtain a reference shift quotient and a reference shift remainder of the target coding information. If the reference shift quotient is less than the shift quotient threshold, the reference shift quotient is determined as the coding shift quotient, and the reference shift remainder is determined as the coding shift remainder. If the reference shift quotient is greater than or equal to the shift quotient threshold, the initial number of shift bits is updated (specifically, the initial number of shift bits can be increased), and based on the updated number of shift bits, the target coding information is shifted until the shift processing obtains a reference shift quotient that is less than the shift quotient threshold. In the case where the number of shift bits is variable, the number of shift bits that makes the reference shift quotient obtained by the shift processing less than the shift quotient threshold can be written into the coding parameter set of the point cloud or the coding code stream of the point cloud.
[0280] S803: Encode the shifted data.
[0281] In the above-mentioned first coding mode to fourth coding mode, after the target coding information (or updated target coding information) is shifted to obtain shifted data, the shifted data can be encoded. The shifted data may include the coding shift quotient and coding shift remainder of the target coding information. The shifted data is encoded, that is, the coding shift quotient is encoded (here it refers to indirect coding processing of the coding shift quotient), and the coding shift remainder is encoded.
[0282] Encoding the coded shift quotient, that is, indirectly encoding the coded shift quotient, can include any one of the following two methods: the first method is to encode the coded shift quotient based on the exponential Golomb coding method, where the order used by the exponential Golomb coding method is K1, and K1 is a non-negative integer; the second method is to encode the coded shift quotient based on the bit number coding method.
[0283] In the second method of encoding the coded shift quotient (i.e., the bit number encoding method), the number of occupied bits of the coded shift quotient can be calculated, the occupied bit number can be encoded, and then the value of each bit occupied by the coded shift quotient can be encoded.
[0284] Among them, the number of occupied bits can be encoded in any of the following ways: ① Bit number encoding method, specifically, it can refer to encoding the number of occupied bits based on the bit number encoding method, that is, the value of each bit occupied by the occupied bit number can be encoded bit by bit. ② Exponential Columbus coding method, the number of occupied bits can be encoded based on the exponential Columbus coding method, where the order adopted by the exponential Columbus coding method is K3, and K3 is a non-negative integer. ③ Shift coding method, the number of occupied bits can be encoded based on the shift coding method. Specifically, the number of occupied bits can be shifted to obtain the occupied shift quotient and occupied shift remainder of the occupied bit number, and then the occupied shift quotient can be encoded, and the occupied shift remainder can be encoded. For the shift coding method:
[0285] The occupied shift quotient and the occupied shift remainder can be encoded using a bit position coding method or an exponential Columbus coding method. Specifically, for the occupied shift quotient: the occupied shift quotient can be encoded based on the bit position coding method, that is, the value of each bit occupied by the occupied shift quotient can be encoded bit by bit; or, the occupied shift quotient can be encoded based on the exponential Columbus coding method, where the order adopted by the exponential Columbus coding method is K4, and K4 is a non-negative integer. For the occupied shift remainder: the occupied shift remainder can be encoded based on the bit position coding method, that is, the value of each bit occupied by the occupied shift remainder can be encoded bit by bit; or, the occupied shift remainder can be encoded based on the exponential Columbus coding method, where the order adopted by the exponential Columbus coding method is K5, and K5 is a non-negative integer.
[0286] The process of performing shift processing on the number of occupied bits to obtain the occupied shift quotient and the occupied shift remainder of the occupied bit number can be performed based on the number of shifted bits (the number of shifted bits here can refer to the second number of shifted bits), that is, the number of occupied bits can be shifted based on the number of shifted bits to obtain the occupied shift quotient and the occupied shift remainder of the occupied bit number. The process of determining the second number of shifted bits here is similar to the process of determining the first number of shifted bits described above, and will not be repeated here.
[0287] The encoding processing of the coded shift remainder can include any one of the following two methods: the first method is to encode the coded shift remainder based on the exponential Columbus coding method, where the order adopted by the exponential Columbus coding method is K2, and K2 is a non-negative integer; the second method is to encode the coded shift remainder based on the bit number coding method, that is, the value of each bit occupied by the coded shift remainder can be encoded bit by bit.
[0288] It should be noted that if the encoding process of the target coded information involves an encoding process based on the Exponential Golomb coding method, it is necessary to confirm the order of the Exponential Golomb coding method. The order of the Exponential Golomb coding method can be determined by any of the following methods: the codec can set the order of the Exponential Golomb coding method by default, or the order of the Exponential Golomb coding method can be determined based on the data characteristics of the target coded information and written into the point cloud encoding stream or encoding parameter set.
[0289] The method of determining the order of the exponential Golomb coding method according to the data characteristics of the target coding information may specifically include any of the following:
[0290] (1) Query the order of the exponential Columbus encoding method based on the dynamic range information of the point cloud:
[0291] The data characteristics of the target coding information may include the dynamic range information of the point cloud to which the target coding information belongs. The point cloud to which the target coding information belongs may refer to the entire point cloud, a point cloud slice, a current macroblock or a current prediction tree, etc.; the dynamic range information may be determined based on the precision information of the point cloud. The precision information refers to the number of bits to which the information in the point cloud can be accurate. The dynamic range parameter may be obtained by performing an exponential operation on the precision information. For example, if the precision information of the information in the point cloud is 10 bits, the dynamic range parameter may be 2^10; or, the dynamic range information may be the difference between the maximum coding information and the minimum coding information in the point cloud. For example, the dynamic range information may be the difference between the maximum residual value and the minimum residual value in the point cloud.
[0292] After obtaining the dynamic range information of the point cloud to which the target coding information belongs, the query index value can be calculated based on the dynamic range information, and then the order adopted by the exponential Columbus coding method can be queried in the query table based on the query index value; the query table can be written based on experience, and the length of the query table is related to the accuracy information of the point cloud. The query table includes multiple index values and the order corresponding to each index value. Therefore, based on the query index value, the order corresponding to the query index value can be quickly queried from the query table as the order adopted by the exponential Columbus coding method.
[0293] The calculation process of the query index value can also be related to the quantization step size of the point cloud. The dynamic range parameter can be calculated based on the dynamic range information and the quantization step size. Then, the query index value can be calculated based on the dynamic range parameter. For details, please refer to the following formula:
[0294] Index=log2B'-1
[0295] Where, Index represents the query index value, and B' represents the dynamic range parameter.
[0296] (2) Adaptively determine the order of the exponential Golomb coding method:
[0297] Adaptively determining the order used in the exponential Golomb coding scheme may specifically include determining an initial order, and adjusting the initial order or the current order based on data characteristics of target coding information to obtain the order used in the exponential Golomb coding scheme. The data characteristics of the target coding information may include coding information of a preceding coded point of the point to be coded to which the target coding information belongs. The preceding coded point may refer to a coded point that precedes the point to be coded in the coding order. The coding information of the preceding coded point may refer to related coded information of the preceding coded point, such as geometric residual information, attribute residual information, etc. of the preceding coded point.
[0298] ① The initial order golombNum can be obtained, and the order adjustment threshold can be determined based on the initial order. The order adjustment threshold can include an order adjustment upper limit golombNumUp and an order adjustment lower limit golombNumLow. The first method for determining the order adjustment upper limit golombNumUp and the order adjustment lower limit golombNumLow can be referred to the following formula: golombNumLow = 2^golombNum, golombNumUp = 2^(golombNum+1)
[0299] The second method for determining the order adjustment upper limit golombNumUp and the order adjustment lower limit golombNumLow can be referred to the following formula: golombNumLow=2^(golombNum-1), golombNumUp=2^golombNum
[0300] ② The initial order or current order can be adjusted according to the size relationship between the coding information of the previous coded point and the order adjustment threshold to obtain the order adopted by the exponential Columbus coding method. Specifically, the statistical characteristic value of the coding information of the previous coded point can be determined: the previous coded point can be a previous coded point adjacent to the point to be coded, and the statistical characteristic value A' can be the coding information itself of the adjacent previous coded point; or, the order adopted by the exponential Columbus coding method is adaptively adjusted once every L points, and the statistical characteristic value A' can be the mean of the coding information of the L previous coded points; or, the order adopted by the exponential Columbus coding method is adaptively adjusted once every L points, and the statistical characteristic value A' can be the mean of the non-zero coding information in the coding information of the L previous coded points; the embodiment of the present application does not limit this.
[0301] Then, the initial order or current order can be adjusted according to the size relationship between the statistical characteristic value and the order adjustment threshold to obtain the order adopted by the exponential Columbus coding method, and the current order can refer to the order adopted by the exponential Columbus coding method determined last time. Among them, according to the size relationship between the statistical characteristic value and the order adjustment threshold, the initial order is adjusted to obtain the order adopted by the exponential Columbus coding method, which may include: if the statistical characteristic value is greater than the order adjustment upper limit, then the order adopted by the exponential Columbus coding method is equal to the initial order minus the updated value (for example, it can be 1); if the statistical characteristic value is less than the order adjustment lower limit, then the order adopted by the exponential Columbus coding method is equal to the initial order plus the updated value (for example, it can be 1). For details, please refer to the following formula:
[0302] When A' <golombNumLow,K=golombNum+1
[0303] When A'>golombNumUp, K=golombNum-1
[0304] Where A' represents the statistical eigenvalue, golombNumLow represents the lower limit of the order adjustment, golombNumUp represents the upper limit of the order adjustment, golombNum represents the initial order, and K represents the order used in the exponential Golomb coding method.
[0305] Adjust the current order according to the magnitude relationship between the statistical eigenvalue and the threshold of order adjustment, and obtain the order adopted by the exponential Golomb coding method, which may include: if the statistical eigenvalue is greater than the upper limit of order adjustment, the order adopted by the exponential Golomb coding method is equal to the initial order minus the updated value (for example, it can be 1); if the statistical eigenvalue is less than the lower limit of order adjustment, the order adopted by the exponential Golomb coding method is equal to the initial order plus the updated value (for example, it can be 1). Specifically, refer to the following formula:
[0306] When A1 < golombNumLow, K = K'+1
[0307] When A1 > golombNumUp, K = K'-1
[0308] Where, A' represents the statistical eigenvalue, golombNumLow represents the lower limit of order adjustment, golombNumUp represents the upper limit of order adjustment, K' represents the current order, and K represents the order adopted by the exponential Golomb coding method
[0309] ③ After determining the order adopted by the exponential Golomb coding method, the order reset threshold can also be obtained. If it is determined based on the order reset threshold that the order adopted by the exponential Golomb coding method meets the order reset condition, the order adopted by the exponential Golomb coding method needs to be reset; if it is determined based on the order reset threshold that the order adopted by the exponential Golomb coding method does not meet the order reset condition, the order adopted by the exponential Golomb coding method can remain unchanged. Among them, the order reset threshold can include the first order reset threshold t1 or the second order reset threshold t2. The order adopted by the exponential Golomb coding method meeting the order reset condition can mean that: the order adopted by the exponential Golomb coding method is less than (less than or equal to) the first order reset threshold. At this time, the order adopted by the exponential Golomb coding method can be reset to the first reference order t3; or, the order adopted by the exponential Golomb coding method is greater than (greater than or equal to) the second order reset threshold. At this time, the order adopted by the exponential Golomb coding method can be reset to the second reference order t4. Both the first reference order t3 and the second reference order t4 can be set to the corresponding initial order. Specifically, refer to the following formula:
[0310] If K <= t1 (K < t1), then K = t3 (t1 and t3 can be the same or different);
[0311] If K >= t2 (K > t2), then K = t4 (t2 and t4 can be the same or different);
[0312] That the order adopted by the exponential Golumbus coding method does not satisfy the order reset condition may mean that: the order adopted by the exponential Golumbus coding method is greater than or equal to (greater than) the first order reset threshold, in which case the order adopted by the exponential Golumbus coding method can be kept unchanged; or, the order adopted by the exponential Golumbus coding method is less than or equal to (greater than) the second order reset threshold, in which case the order adopted by the exponential Golumbus coding method can be kept unchanged.
[0313] In addition, if the encoding process of the target coding information involves multiple encoding processes based on the exponential Golomb coding method, the orders used by each exponential Golomb coding method are independent of each other or are interrelated. The interrelatedness may include any of the following situations: the orders used by each exponential Golomb coding method are the same. Alternatively, the orders used by each exponential Golomb coding method are associated through an offset parameter (offset); for example, the five orders K1, K2, K3, K4, and K5 used by the exponential Golomb coding method mentioned above can be associated through an offset parameter (offset), K2 = K1-offset, K3 = K1-offset, K4 = K1-offset, K5 = K1-offset, and for example, K2 = K1-offset, K3 = K2-offset, K4 = K3-offset, and K5 = K4-offset.
[0314] In an embodiment of the present application, after obtaining the target coding information of the point cloud, the target coding information can be shifted to obtain shifted data of the target coding information, and then the shifted data can be encoded; by shifting the target coding information, the embodiment of the present application can reduce the amount of data required for encoding in the encoding stage of the point cloud, thereby improving the encoding efficiency of the point cloud.
[0315] The above describes in detail the method of the embodiment of the present application. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0316] Please refer to Figure 9, which is a schematic diagram of the structure of a point cloud processing device provided in an embodiment of the present application. The point cloud processing device can be set in the computer device provided in an embodiment of the present application, and the computer device can be the decoding device mentioned in the above method embodiment. The point cloud processing device shown in Figure 9 can be a computer program (including program code) running on the computer device. The point cloud processing device can be used to perform some or all of the steps in the method embodiment shown in Figure 7. Please refer to Figure 9. The point cloud processing device may include the following units:
[0317] An acquisition unit 901 is used to acquire the encoded data of the point cloud;
[0318] The processing unit 902 is used to parse the coded data to obtain shift data, where the shift data is obtained by shifting the target coded information of the point cloud during the encoding process of the point cloud;
[0319] The processing unit 902 is further configured to perform shift reconstruction on the shifted data to obtain reconstructed coding information of the target coding information.
[0320] In one implementation, the processing unit 902 is configured to parse the encoded data and, when obtaining the shifted data, specifically perform the following steps:
[0321] Get the encoding mode;
[0322] The encoded data is parsed according to the encoding mode to obtain the shifted data.
[0323] In one implementation, the coding mode includes a first coding mode; the shift data includes a coding shift quotient and a coding shift remainder of target coding information; the coded data includes a coding information flag field; and the processing unit 902 is configured to parse the coded data according to the coding mode, and when the shift data is obtained, specifically to perform the following steps:
[0324] Parse the coding information flag field to determine whether the parsed value of the coding information flag field meets the shift parsing condition;
[0325] If the parsed value of the coding information flag field satisfies the shift parsing condition, the coded data further includes a shift quotient flag field, the shift quotient flag field is parsed, and it is determined whether the parsed value of the shift quotient flag field satisfies the indirect parsing condition;
[0326] If the parsed value of the shift quotient flag field meets the indirect parsing condition, the encoded data also includes the encoding result of the encoded shift quotient and the encoding result of the encoded shift remainder. The encoding result of the encoded shift quotient is parsed to obtain the encoded shift quotient; the encoding result of the encoded shift remainder is parsed to obtain the encoded shift remainder.
[0327] In one implementation, the coding mode is the second coding mode; the shift data includes a coding shift quotient and a coding shift remainder of target coding information; the coded data includes a coding information flag field; and the processing unit 902 is configured to parse the coded data according to the coding mode, and when the shift data is obtained, specifically to perform the following steps:
[0328] Parse the coding information flag field to determine whether the parsed value of the coding information flag field meets the shift parsing condition;
[0329] If the parsed value of the coding information flag field meets the shift parsing condition, the coded data also includes the coding result of the coding shift quotient and the coding result of the coding shift remainder. The coding result of the coding shift quotient is parsed to obtain the coding shift quotient; the coding result of the coding shift remainder is parsed to obtain the coding shift remainder.
[0330] In one implementation, the encoding mode is the third encoding mode; the shift data includes an encoding shift quotient and an encoding shift remainder; the encoded data includes a shift quotient flag field; and the processing unit 902 is configured to parse the encoded data according to the encoding mode, and upon obtaining the shift data, specifically to perform the following steps:
[0331] Parsing the shift quotient flag field to determine whether the parsed value of the shift quotient flag field satisfies an indirect parsing condition;
[0332] If the parsed value of the shift quotient flag field meets the indirect parsing condition, the encoded data also includes the encoding result of the encoded shift quotient and the encoding result of the encoded shift remainder. The encoding result of the encoded shift quotient is parsed to obtain the encoded shift quotient; the encoding result of the encoded shift remainder is parsed to obtain the encoded shift remainder.
[0333] In one implementation, the coding mode is the fourth coding mode; the shift data includes a coding shift quotient and a coding shift remainder; the coded data includes a coding result of the coding shift quotient and a coding result of the coding shift remainder; and the processing unit 902 is configured to parse the coded data according to the coding mode, and when the shift data is obtained, specifically to perform the following steps:
[0334] parsing the encoding result of the coding shift quotient to obtain the coding shift quotient;
[0335] The encoding result of the encoding shift remainder is parsed to obtain the encoding shift remainder.
[0336] In one implementation, the number of coding information flag fields is m1, each coding information flag field corresponds to a different specific value, and m1 is a positive integer. The processing unit 902 is configured to parse the coding information flag field and determine whether the parsed value of the coding information flag field meets the shift parsing condition by performing the following steps:
[0337] Parse the i-th coded information flag field among m1 coded information flag fields, where i is a positive integer less than m1;
[0338] If the parsed value of the i-th coding information flag field is the first value, the i+1-th coding information flag field is parsed; if the parsed value of the i-th coding information flag field is the second value, it is determined that the coding information flag field does not meet the shift parsing condition, and the reconstructed coding information of the target coding information is determined to be the i-th specific value, and the i-th specific value corresponds to the i-th coding information flag field;
[0339] When parsing to the m1th coding information flag field, if the parsed value of the m1th coding information flag field is the first value, it is determined that the parsed value of the coding information flag field meets the shift parsing condition; if the parsed value of the m1th coding information flag field is the second value, it is determined that the coding information flag field does not meet the shift parsing condition, and the reconstructed coding information of the target coding information is determined to be the m1th specific value, and the m1th specific value corresponds to the m1th coding information flag field.
[0340] In one implementation, the processing unit 902 is configured to perform shift reconstruction on the shifted data to obtain reconstructed coding information of the target coding information, specifically to perform the following steps:
[0341] Performing shift reconstruction on the shifted data to obtain initial reconstruction information of the target coding information;
[0342] The initial reconstruction information is updated using the reference value associated with the m1-th specific value to obtain reconstructed coding information of the target coding information.
[0343] In one implementation, the number of shift quotient flag fields is m2, each shift quotient flag field corresponds to a different specific value, and m2 is a positive integer. The processing unit 902 is configured to parse the shift quotient flag field and, when determining the indirect parsing condition for the parsed value of the shift quotient flag field, specifically execute the following steps:
[0344] Parse the j-th shift quotient flag field among the m2 shift quotient flag fields, where j is a positive integer less than m2;
[0345] If the parsed value of the j-th shift quotient flag field is the first value, parsing the j+1-th shift quotient flag field; if the parsed value of the j-th shift quotient flag field is the second value, determining that the shift quotient flag field does not meet the indirect parsing condition, and determining that the encoded shift quotient is the j-th specific value, the j-th specific value corresponding to the j-th shift quotient flag field;
[0346] When parsing to the m2th shift quotient flag field, if the parsed value of the m2th shift quotient flag field is the first value, it is determined that the parsed value of the shift quotient flag field meets the indirect parsing condition; if the parsed value of the m2th shift quotient flag field is the second value, it is determined that the shift quotient flag field does not meet the indirect parsing condition, and the encoded shift quotient is determined to be the m2th specific value, and the m2th specific value corresponds to the m2th shift quotient flag field.
[0347] In one implementation, the processing unit 902 is configured to parse the coding result of the coding shift quotient, and after obtaining the coding shift quotient, further perform the following steps:
[0348] The encoding shift quotient is updated using the target value associated with the m2-th specific value.
[0349] In one implementation, the processing unit 902 is configured to parse the coding result of the coding shift quotient and, when obtaining the coding shift quotient, specifically perform the following steps:
[0350] Analyzing the coding result of the code shift quotient based on the exponential Golomb coding method to obtain the code shift quotient; the order used by the exponential Golomb coding method is K1, and K1 is a non-negative integer; or analyzing the coding result of the code shift quotient based on the bit number coding method to obtain the code shift quotient;
[0351] The processing unit 902 is configured to parse the encoding result of the encoding shift remainder and, upon obtaining the encoding shift remainder, to perform the following steps:
[0352] The coding result of the coded shift remainder is parsed based on the bit number coding method to obtain the coded shift remainder; or, the coding result of the coded shift remainder is parsed based on the exponential Columbus coding method to obtain the coded shift remainder; the order used by the exponential Columbus coding method is K2, and K2 is a positive integer.
[0353] In one implementation, the encoding result of the coded shift quotient includes: an encoding result of the number of bits occupied by the coded shift quotient and an encoding of each bit occupied by the coded shift quotient; the processing unit 902 is configured to parse the encoding result of the coded shift quotient based on the bit number encoding method, and to perform the following steps when obtaining the coded shift quotient:
[0354] parsing the encoding result of the number of occupied bits of the coding shift quotient to obtain the number of occupied bits of the coding shift quotient;
[0355] Parsing the code of each bit occupied by the coding shift quotient to obtain the value of each bit occupied by the coding shift quotient;
[0356] The coding shift quotient is reconstructed according to the value of each bit occupied by the coding shift quotient.
[0357] In one implementation, the processing unit 902 is configured to parse the encoding result of the number of occupied bits of the coding shift quotient, and when obtaining the number of occupied bits of the coding shift quotient, specifically perform the following steps:
[0358] The coding result of the occupied bit number is analyzed based on the bit number coding method to obtain the coding shift quotient; or, the coding result of the occupied bit number is analyzed based on the exponential Columbus coding method to obtain the occupied bit number of the coding shift quotient; the order used by the exponential Columbus coding method is K3, and K3 is a non-negative integer; or, the coding result of the occupied bit number is analyzed based on the shift coding method to obtain the occupied bit number of the coding shift quotient.
[0359] In one implementation, the encoding result of the number of occupied bits includes an encoding result of an occupied shift quotient and an encoding result of an occupied shift remainder of the number of occupied bits, where the occupied shift quotient and the occupied shift remainder are obtained by performing a shift process on the number of occupied bits. The processing unit 902 is configured to parse the encoding result of the number of occupied bits based on the shift encoding method, and when obtaining the number of occupied bits of the encoding shift quotient, specifically to perform the following steps:
[0360] parsing the encoding result of the occupation shift quotient to obtain the occupation shift quotient;
[0361] Parsing the encoding result of the occupied shift remainder to obtain the occupied shift remainder;
[0362] Perform shift reconstruction processing on the occupied shift quotient and the occupied shift remainder to obtain the number of occupied bits of the coded shift quotient.
[0363] In one implementation, the processing unit 902 is configured to parse the encoding result of the occupancy shift quotient and, upon obtaining the occupancy shift quotient, specifically perform the following steps:
[0364] Analyze the encoding result of the occupancy shift quotient based on the bit number encoding method to obtain the occupancy shift quotient; or analyze the encoding result of the occupancy shift quotient based on the exponential Golomb encoding method to obtain the occupancy shift quotient, where the order used in the exponential Golomb encoding method is K4, and K4 is a non-negative integer;
[0365] The processing unit 902 is configured to parse the encoding result of the occupied shift remainder and, upon obtaining the occupied shift remainder, to perform the following steps:
[0366] The coding result of the occupied shift remainder is parsed based on the bit number coding method to obtain the occupied shift remainder; or, the coding result of the occupied shift remainder is parsed based on the exponential Columbus coding method to obtain the occupied shift remainder, the order used by the exponential Columbus coding method is K5, and K5 is a non-negative integer.
[0367] In one implementation, the shifted data includes a coding shift quotient and a coding shift remainder; the processing unit 902 is configured to perform shift reconstruction processing on the shifted data to obtain reconstructed coding information of the target coding information, specifically to perform the following steps:
[0368] Determine the number of shifts;
[0369] Shifting the coded shift quotient based on the number of shifted bits to obtain a shifted coded shift quotient;
[0370] The reconstructed coding information of the target coding information is obtained by adding the shifted coding quotient and the coding shift remainder.
[0371] In one implementation, the processing unit 902 is configured to perform the following steps when determining the number of shift bits:
[0372] Obtaining the number of moving bits determination information and the number of moving bits threshold;
[0373] The number of shift bits is determined based on the magnitude relationship between the shift bit determination information and the shift bit threshold.
[0374] In one implementation, the processing unit 902 is further configured to perform the following steps:
[0375] If the parsing process of the encoded data involves a parsing process based on the Exponential Golomb coding method, the order adopted by the Exponential Golomb coding method is determined.
[0376] In one implementation, the processing unit 902 is configured to determine the order of the exponential Golomb coding method by performing any one of the following steps:
[0377] The codec defaults to the order of the Exponential Golomb coding method.
[0378] Parse the order of the exponential Golomb coding method from the encoding parameter set or encoding code stream of the point cloud;
[0379] The order of the exponential Golomb coding method is determined according to the data characteristics of the target coding information.
[0380] In one implementation, the processing unit 902 is configured to determine the order of the exponential Golomb coding scheme according to the data characteristics of the target coding information by performing the following steps:
[0381] Determine the initial order;
[0382] According to the data characteristics of the target coding information, the initial order or the current order is adjusted to determine the order used in the exponential Golomb coding method.
[0383] In one implementation, if the parsing process of the encoded data involves multiple parsing processes based on the Exponential Golomb coding method, the orders used by each Exponential Golomb coding method are mutually related or independent; the orders used by each Exponential Golomb coding method are mutually related, including:
[0384] The orders used by the various exponential Golomb coding methods are the same; or, the orders used by the various exponential Golomb coding methods are associated through an offset parameter.
[0385] According to another embodiment of the present application, the various units in the point cloud processing device shown in Figure 9 can be individually or completely merged into one or several other units to form a whole, or one (or some) of the units can be further divided into multiple functionally smaller units to form a whole, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the point cloud processing device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0386] According to another embodiment of the present application, a point cloud processing device as shown in FIG. 9 can be constructed, and the point cloud processing method of the embodiment of the present application can be implemented, by running a computer program (including program code) capable of executing some or all of the steps involved in the method shown in FIG. 7 on a general-purpose computing device, such as a computer, including processing elements and storage elements such as a central processing unit 902 (CPU), a random access memory (RAM), and a read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the computing device via the computer-readable storage medium and executed therein.
[0387] In the embodiment of the present application, after obtaining the encoded data of the point cloud, the encoded data can be parsed to obtain shifted data. The shifted data is obtained by shifting the target encoded information of the point cloud during the encoding process of the point cloud. The shifted data is then reconstructed to obtain reconstructed encoded information of the target encoded information. By shifting the target encoded information, the embodiment of the present application can reduce the amount of data required to decode during the decoding stage of the point cloud, thereby improving the decoding efficiency of the point cloud.
[0388] Please refer to Figure 9, which is a schematic diagram of the structure of a point cloud processing device provided in an embodiment of the present application. The point cloud processing device can be set in the computer device provided in an embodiment of the present application, and the computer device can be the decoding device mentioned in the above method embodiment. The point cloud processing device shown in Figure 9 can be a computer program (including program code) running on the computer device. The point cloud processing device can be used to perform some or all of the steps in the method embodiment shown in Figure 8. Please refer to Figure 9. The point cloud processing device may include the following units:
[0389] An acquisition unit 901 is used to acquire target coding information of a point cloud;
[0390] The acquisition unit 901 is further configured to acquire a coding mode;
[0391] The processing unit 902 is configured to perform shift processing on the target coding information according to the coding mode to obtain shift data of the target coding information;
[0392] The processing unit 902 is further configured to encode the shifted data.
[0393] In one implementation, the coding mode includes a first coding mode; the shift data includes a coding shift quotient and a coding shift remainder of target coding information; and the processing unit 902 is configured to perform shift processing on the target coding information according to the coding mode to obtain the shift data of the target coding information, specifically to execute the following steps:
[0394] Determine whether the target coding information meets the shift coding conditions;
[0395] If the target coding information satisfies the shift coding condition, the target coding information is shifted to obtain the coding shift quotient and coding shift remainder of the target coding information;
[0396] Determine whether the coding shift quotient satisfies the indirect coding condition;
[0397] If the coding shift quotient meets the indirect coding condition, it is determined that the coding shift quotient needs to be indirectly coded.
[0398] In one implementation, the coding mode includes the second coding mode; the shift data includes a coding shift quotient and a coding shift remainder of target coding information; and the processing unit 902 is configured to perform shift processing on the target coding information according to the coding mode to obtain the shift data of the target coding information, specifically to execute the following steps:
[0399] Determine whether the target coding information meets the shift coding conditions;
[0400] If the target coding information meets the shift coding condition, the target coding information is shifted to obtain the coding shift quotient and coding shift remainder of the target coding information.
[0401] In one implementation, the coding mode includes a third coding mode; the shift data includes a coding shift quotient and a coding shift remainder of target coding information; and the processing unit 902 is configured to perform shift processing on the target coding information according to the coding mode to obtain the shift data of the target coding information, specifically to execute the following steps:
[0402] Performing shift processing on the target coding information to obtain a coding shift quotient and a coding shift remainder of the target coding information;
[0403] Determine whether the coding shift quotient satisfies the indirect coding condition;
[0404] If the coding shift quotient meets the indirect coding condition, it is determined that the coding shift quotient needs to be indirectly coded.
[0405] In one implementation, the coding mode includes a fourth coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; and the processing unit 902 is configured to perform shift processing on the target coding information according to the coding mode to obtain the shift data of the target coding information, specifically to execute the following steps:
[0406] Shift processing is performed on the target coding information to obtain a coding shift quotient and a coding shift remainder of the target coding information.
[0407] In one implementation, when determining whether the target coding information satisfies the shift coding condition, the target coding information is matched with m1 specific values, where the m1 specific values correspond to different coding information flag fields, and m1 is a positive integer. The processing unit 902 is configured to perform the following steps when determining whether the target coding information satisfies the shift coding condition:
[0408] Perform a match check between the target coded information and the i-th specific value among m1 specific values, where i is a positive integer less than m1;
[0409] If the target coding information does not match the i-th specific value, the i-th coding information flag field corresponding to the i-th specific value is set to the first value and encoded, and the target coding information is checked for matching with the i+1-th specific value among the m1 specific values; if the target coding information matches the i-th specific value, it is determined that the target coding information does not meet the shift coding condition, and the i-th coding information flag field is set to the second value and encoded;
[0410] When the match check reaches the m1th specific value, if the target coding information does not match the m1th specific value, the m1th coding information flag field corresponding to the m1th specific value is set to the first value and encoded, and it is determined that the target coding information meets the shift coding condition; if the target coding information matches the m1th specific value, it is determined that the target coding information does not meet the shift coding condition, and the m1th coding information flag field is set to the second value and encoded.
[0411] In one implementation, when determining whether a coding shift quotient satisfies an indirect coding condition, the coding shift quotient needs to be matched with m2 specific values, where the m2 specific values correspond to different shift quotient flag fields, and m2 is a positive integer. The processing unit 902 is configured to perform the following steps when determining whether the coding shift quotient satisfies the indirect coding condition:
[0412] Check the encoding shift quotient against the jth specific value among the m2 specific values, where j is a positive integer less than m2;
[0413] If the coded shift quotient does not match the j-th specific value, the j-th shift quotient flag field corresponding to the j-th specific value is set to the first value and encoded, and the coded shift quotient is checked for matching with the j+1-th specific value among the m2 specific values; if the coded shift quotient matches the j-th specific value, it is determined that the coded shift quotient does not meet the indirect encoding condition, and the j-th shift quotient flag field is set to the second value and encoded;
[0414] When the match check reaches the m2th specific value, if the encoded shift quotient does not match the m2th specific value, the m2th shift quotient flag field corresponding to the m2th specific value is set to the first value and encoded, and it is determined that the encoded shift quotient meets the indirect encoding condition; if the encoded shift quotient matches the m2th specific value, it is determined that the encoded shift quotient does not meet the indirect encoding condition, and the m2th shift quotient flag field is set to the second value and encoded.
[0415] In one implementation, the processing unit 902 is configured to perform the shift processing on the target coding information to obtain the coding shift quotient and the coding shift remainder of the target coding information, and is specifically configured to perform the following steps:
[0416] Obtaining the number of moving bits determination information and the number of moving bits threshold;
[0417] Determine the number of shifts according to the magnitude relationship between the shift number determination information and the shift number threshold;
[0418] Based on the number of shift bits, the target coded information is shifted to obtain the coding shift quotient and coding shift remainder of the target coded information.
[0419] In one implementation, the processing unit 902 is configured to perform the shift processing on the target coding information to obtain the coding shift quotient and the coding shift remainder of the target coding information, and is specifically configured to perform the following steps:
[0420] Get the initial number of shift bits;
[0421] Based on the initial shift bit number, the target coding information is shifted to obtain a reference shift quotient and a reference shift remainder of the target coding information;
[0422] If the reference shift quotient is less than the shift quotient threshold, the reference shift quotient is determined as the coding shift quotient, and the reference shift remainder is determined as the coding shift remainder;
[0423] If the reference shift quotient is greater than or equal to the shift quotient threshold, the initial shift bit number is updated, and based on the updated shift bit number, the target coding information is shifted until the shift processing obtains a reference shift quotient less than the shift quotient threshold.
[0424] According to another embodiment of the present application, the various units in the point cloud processing device shown in Figure 9 can be individually or completely merged into one or several other units to form a whole, or one (or some) of the units can be further divided into multiple functionally smaller units to form a whole, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the point cloud processing device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0425] According to another embodiment of the present application, a point cloud processing device as shown in FIG. 9 can be constructed, and the point cloud processing method of the embodiment of the present application can be implemented, by running a computer program (including program code) capable of executing some or all of the steps involved in the method shown in FIG. 8 on a general-purpose computing device, such as a computer, including processing elements and storage elements such as a central processing unit 902 (CPU), a random access memory (RAM), and a read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the computing device via the computer-readable storage medium and executed therein.
[0426] In an embodiment of the present application, after obtaining the target coding information of the point cloud, the target coding information can be shifted to obtain shifted data of the target coding information, and then the shifted data can be encoded; by shifting the target coding information, the embodiment of the present application can reduce the amount of data encoded in the encoding stage of the point cloud, thereby improving the encoding efficiency of the point cloud.
[0427] Based on the above method and device embodiments, an embodiment of the present application provides a computer device, which can be the decoding device mentioned above. Please refer to Figure 10, which is a structural diagram of a computer device provided in an embodiment of the present application. The computer device shown in Figure 10 includes at least a processor 1001, an input interface 1002, an output interface 1003, and a computer-readable storage medium 1004. Among them, the processor 1001, the input interface 1002, the output interface 1003, and the computer-readable storage medium 1004 can be connected via a bus or other means.
[0428] Computer-readable storage medium 1004 may be stored in a memory of a computer device. Computer-readable storage medium 1004 is used to store a computer program, which includes computer instructions. Processor 1001 is used to execute the program instructions stored in computer-readable storage medium 1004. Processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device. It is suitable for implementing one or more computer instructions, and is specifically suitable for loading and executing one or more computer instructions to implement a corresponding method flow or corresponding function.
[0429] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the computer device. In addition, one or more computer instructions suitable for being loaded and executed by the processor are also stored in the storage space. These computer instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0430] In some embodiments, the processor 1001 may load and execute one or more computer instructions stored in the computer-readable storage medium 1004 to implement the corresponding steps of the point cloud processing method shown in FIG7 . In a specific implementation, the processor 1001 loads and executes the computer instructions in the computer-readable storage medium 1004 to implement the point cloud processing method for decoding or encoding provided in the embodiments of the present application, thereby improving the encoding and decoding efficiency of the point cloud.
[0431] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the point cloud processing methods provided in the various optional embodiments described above.
[0432] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A point cloud processing method, executed by a computer device, the method comprising: Get the encoded data of the point cloud; Parsing the coded data to obtain shift data, wherein the shift data is obtained by performing shift processing on target coded information of the point cloud during the encoding process of the point cloud; The shifted data is shifted and reconstructed to obtain reconstructed coding information of the target coding information.
2. The method of claim 1, wherein: The parsing of the encoded data to obtain shifted data includes: Get the encoding mode; The encoded data is parsed according to the encoding mode to obtain the shifted data.
3. The method of claim 2, wherein: The coding mode includes a first coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; The coded data includes a coding information flag field; the step of parsing the coded data according to the coding mode to obtain the shift data includes: Parsing the coding information flag field to determine whether the parsed value of the coding information flag field satisfies a shift parsing condition; If the parsed value of the coding information flag field satisfies the shift parsing condition, the coded data further includes a shift quotient flag field, the shift quotient flag field is parsed, and it is determined whether the parsed value of the shift quotient flag field satisfies the indirect parsing condition; If the parsed value of the shift quotient flag field satisfies the indirect parsing condition, the encoded data also includes the encoding result of the encoded shift quotient and the encoding result of the encoded shift remainder, and the encoding result of the encoded shift quotient is parsed to obtain the encoded shift quotient; the encoding result of the encoded shift remainder is parsed to obtain the encoded shift remainder.
4. The method of claim 2, wherein: The coding mode includes a second coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; The coded data includes a coding information flag field; the step of parsing the coded data according to the coding mode to obtain the shift data includes: Parsing the coding information flag field to determine whether the parsed value of the coding information flag field satisfies a shift parsing condition; If the parsed value of the coding information flag field satisfies the shift parsing condition, the coded data also includes the coding result of the coding shift quotient and the coding result of the coding shift remainder, and the coding result of the coding shift quotient is parsed to obtain the coding shift quotient; the coding result of the coding shift remainder is parsed to obtain the coding shift remainder.
5. The method of claim 2, wherein: The coding mode includes a third coding mode; the shift data includes a coding shift quotient and a coding shift remainder; the coded data includes a shift quotient flag field; and the parsing of the coded data according to the coding mode to obtain the shift data includes: Parsing the shift quotient flag field to determine whether the parsed value of the shift quotient flag field satisfies an indirect parsing condition; If the parsed value of the shift quotient flag field satisfies the indirect parsing condition, the encoded data also includes the encoding result of the encoded shift quotient and the encoding result of the encoded shift remainder, and the encoding result of the encoded shift quotient is parsed to obtain the encoded shift quotient; the encoding result of the encoded shift remainder is parsed to obtain the encoded shift remainder.
6. The method of claim 2, wherein: The coding mode includes a fourth coding mode; the shift data includes a coding shift quotient and a coding shift remainder; the coding data includes a coding result of the coding shift quotient and a coding result of the coding shift remainder; The step of parsing the encoded data according to the encoding mode to obtain the shifted data includes: parsing the encoding result of the coding shift quotient to obtain the coding shift quotient; The encoding result of the encoding shift remainder is parsed to obtain the encoding shift remainder.
7. The method according to claim 3 or 4, wherein: The number of the coding information flag fields is m1, each coding information flag field corresponds to a different specific value, and m1 is a positive integer; The parsing of the coding information flag field to determine whether the parsed value of the coding information flag field satisfies a shift parsing condition includes: Parse the i-th coded information flag field among m1 coded information flag fields, where i is a positive integer less than m1; If the parsed value of the i-th coding information flag field is the first value, the i+1-th coding information flag field is parsed; if the parsed value of the i-th coding information flag field is the second value, it is determined that the coding information flag field does not meet the shift parsing condition, and the reconstructed coding information of the target coding information is determined to be the i-th specific value, and the i-th specific value corresponds to the i-th coding information flag field; When parsing to the m1th coding information flag field, if the parsed value of the m1th coding information flag field is a first value, it is determined that the parsed value of the coding information flag field satisfies the shift parsing condition; if the parsed value of the m1th coding information flag field is a second value, it is determined that the coding information flag field does not satisfy the shift parsing condition, and the reconstructed coding information of the target coding information is determined to be the m1th specific value, and the m1th specific value corresponds to the m1th coding information flag field.
8. The method of claim 7, wherein: The step of performing shift reconstruction on the shifted data to obtain reconstructed coding information of the target coding information includes: Performing shift reconstruction on the shifted data to obtain initial reconstruction information of the target coded information; The initial reconstruction information is updated by using a reference value associated with the m1-th specific value to obtain reconstructed coding information of the target coding information.
9. The method according to claim 3 or 5, wherein: The number of the shift quotient flag fields is m2, each shift quotient flag field corresponds to a different specific value, and m2 is a positive integer; parsing the shift quotient flag field to determine whether the parsed value of the shift quotient flag field meets the indirect parsing condition includes: Parse the j-th shift quotient flag field among the m2 shift quotient flag fields, where j is a positive integer less than m2; If the parsed value of the j-th shift quotient flag field is the first value, the j+1-th shift quotient flag field is parsed; if the parsed value of the j-th shift quotient flag field is the second value, it is determined that the shift quotient flag field does not meet the indirect parsing condition, and the coded shift quotient is determined to be the j-th specific value, and the j-th specific value corresponds to the j-th shift quotient flag field; When parsing to the m2th shift quotient flag field, if the parsed value of the m2th shift quotient flag field is a first value, it is determined that the parsed value of the shift quotient flag field satisfies the indirect parsing condition; if the parsed value of the m2th shift quotient flag field is a second value, it is determined that the shift quotient flag field does not satisfy the indirect parsing condition, and the encoded shift quotient is determined to be the m2th specific value, and the m2th specific value corresponds to the m2th shift quotient flag field.
10. The method of claim 9, wherein: After parsing the encoding result of the coding shift quotient to obtain the coding shift quotient, the method further includes: The encoding shift quotient is updated using a target value associated with the m2-th specific value.
11. The method according to any one of claims 3 to 6, wherein: The step of parsing the coding result of the coding shift quotient to obtain the coding shift quotient includes: The coding result of the coding shift quotient is parsed based on the exponential Golomb coding method to obtain the coding shift quotient; the order of the exponential Golomb coding method is K1, and K1 is a non-negative integer; Alternatively, the coding result of the coding shift quotient is parsed based on the bit number coding mode to obtain the coding shift quotient; The step of parsing the encoding result of the encoding shift remainder to obtain the encoding shift remainder includes: Parsing the encoding result of the encoding shift remainder based on the bit number encoding method to obtain the encoding shift remainder; Alternatively, the coding result of the coded shift remainder is parsed based on an exponential Golomb coding method to obtain the coded shift remainder; the order adopted by the exponential Golomb coding method is K2, and K2 is a positive integer.
12. The method of claim 11, wherein: The encoding result of the coding shift quotient includes: the encoding result of the number of bits occupied by the coding shift quotient, and the encoding of each bit occupied by the coding shift quotient; The step of parsing the encoding result of the coding shift quotient based on the bit number encoding mode to obtain the coding shift quotient includes: Parsing the encoding result of the number of occupied bits of the coding shift quotient to obtain the number of occupied bits of the coding shift quotient; Parsing the code of each bit occupied by the coding shift quotient to obtain the value of each bit occupied by the coding shift quotient; The coding shift quotient is reconstructed according to the value of each bit occupied by the coding shift quotient.
13. The method of claim 12, wherein: The step of parsing the encoding result of the number of occupied bits of the coding shift quotient to obtain the number of occupied bits of the coding shift quotient includes: Analyze the encoding result of the occupied bit number based on the bit number encoding method to obtain the encoding shift quotient; Alternatively, the encoding result of the occupied bit number is parsed based on the exponential Golomb coding method to obtain the occupied bit number of the encoding shift quotient; the order adopted by the exponential Golomb coding method is K3, and K3 is a non-negative integer; Alternatively, the encoding result of the number of occupied bits is parsed based on a shift encoding method to obtain the number of occupied bits of the encoding shift quotient.
14. The method of claim 13, wherein: The encoding result of the number of occupied bit positions includes the encoding result of the occupied shift quotient of the number of occupied bit positions and the encoding result of the occupied shift remainder, wherein the occupied shift quotient and the occupied shift remainder are obtained by performing a shift process on the number of occupied bit positions; The step of parsing the encoding result of the occupied bit number based on the shift encoding method to obtain the occupied bit number of the encoding shift quotient includes: parsing the encoding result of the occupancy shift quotient to obtain the occupancy shift quotient; Parsing the encoding result of the occupied shift remainder to obtain the occupied shift remainder; The occupied shift quotient and the occupied shift remainder are subjected to shift reconstruction processing to obtain the number of occupied bits of the coded shift quotient.
15. The method of claim 14, wherein: The parsing the encoding result of the occupancy shift quotient to obtain the occupancy shift quotient includes: Parsing the encoding result of the occupancy shift quotient based on the bit number encoding method to obtain the occupancy shift quotient; Alternatively, the occupancy shift quotient is obtained by parsing the encoding result of the occupancy shift quotient based on an exponential Golomb coding method, wherein the order of the exponential Golomb coding method is K4, and K4 is a non-negative integer; The parsing the encoding result of the occupied shift remainder to obtain the occupied shift remainder includes: Parsing the encoding result of the occupied shift remainder based on the bit number encoding method to obtain the occupied shift remainder; Alternatively, the occupied shift remainder is obtained by parsing the coding result of the occupied shift remainder based on an exponential Golomb coding method, and the order adopted by the exponential Golomb coding method is K5, where K5 is a non-negative integer.
16. The method of claim 1, wherein: The shift data includes a coding shift quotient and a coding shift remainder; the step of performing shift reconstruction on the shift data to obtain reconstructed coding information of the target coding information includes: Determine the number of shifted digits; Performing a shift process on the coding shift quotient based on the number of shift bits to obtain a shifted coding shift quotient; The shifted coding shift quotient is added to the coding shift remainder to obtain reconstructed coding information of the target coding information.
17. The method of claim 16, wherein: Determining the number of shift bits includes: Obtaining the number of moving bits determination information and the number of moving bits threshold; The number of shift bits is determined according to the magnitude relationship between the shift bit determination information and the shift bit threshold.
18. The method of claim 1, wherein: The method further comprises: If the parsing process of the encoded data involves a parsing process based on an exponential Golomb coding method, the order adopted by the exponential Golomb coding method is determined.
19. The method of claim 18, wherein: The step of determining the order of the exponential Golomb coding method includes any one of the following: The codec sets the order of the exponential Golomb coding method by default; Parsing the order of the exponential Golomb coding method from the coding parameter set or coding bit stream of the point cloud; The order of the exponential Golomb coding method is determined according to the data characteristics of the target coding information.
20. The method of claim 19, wherein: The step of determining the order of the exponential Golomb coding method according to the data characteristics of the target coding information includes: Determine the initial order; According to the data characteristics of the target coding information, the initial order or the current order is adjusted to determine the order adopted by the exponential Golomb coding method.
21. The method of claim 18, wherein: If the parsing process of the encoded data involves multiple parsing processes based on exponential Golomb coding methods, the orders used by each exponential Golomb coding method are interrelated or independent of each other; the orders used by each exponential Golomb coding method are interrelated, including: The orders adopted by the various exponential Golomb coding methods are the same; or, the orders adopted by the various exponential Golomb coding methods are associated through an offset parameter.
22. A point cloud processing method, executed by a computer device, the method comprising: Get the target encoding information of the point cloud; Get the encoding mode; According to the coding mode, the target coding information is subjected to shift processing to obtain shift data of the target coding information; The shifted data is encoded.
23. The method of claim 22, wherein: The coding mode includes a first coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; and the target coding information is shifted according to the coding mode to obtain the shift data of the target coding information, including: Determining whether the target coding information satisfies a shift coding condition; If the target coding information satisfies the shift coding condition, the target coding information is subjected to shift processing to obtain a coding shift quotient and a coding shift remainder of the target coding information; Determining whether the coding shift quotient satisfies an indirect coding condition; If the coding shift quotient satisfies the indirect coding condition, it is determined that indirect coding processing needs to be performed on the coding shift quotient.
24. The method of claim 22, wherein: The coding mode includes a second coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; and the target coding information is shifted according to the coding mode to obtain the shift data of the target coding information, including: Determining whether the target coding information satisfies a shift coding condition; If the target coding information satisfies the shift coding condition, the target coding information is subjected to shift processing to obtain a coding shift quotient and a coding shift remainder of the target coding information.
25. The method of claim 22, wherein: The coding mode includes a third coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; and the target coding information is shifted according to the coding mode to obtain the shift data of the target coding information, including: Performing shift processing on the target coding information to obtain a coding shift quotient and a coding shift remainder of the target coding information; Determining whether the coding shift quotient satisfies an indirect coding condition; If the coding shift quotient satisfies the indirect coding condition, it is determined that indirect coding processing needs to be performed on the coding shift quotient.
26. The method of claim 22, wherein: The coding mode includes a fourth coding mode; the shift data includes a coding shift quotient and a coding shift remainder of the target coding information; and the target coding information is shifted according to the coding mode to obtain the shift data of the target coding information, including: The target coding information is subjected to shift processing to obtain a coding shift quotient and a coding shift remainder of the target coding information.
27. The method of claim 23 or 24, wherein: When judging whether the target coding information satisfies the shift coding condition, the target coding information is matched with m1 specific values, wherein the m1 specific values correspond to different coding information flag fields respectively, and m1 is a positive integer; The determining whether the target coding information satisfies the shift coding condition includes: Perform a matching check between the target coding information and the i-th specific value among the m1 specific values, where i is a positive integer less than m1; If the target coding information does not match the i-th specific value, the i-th coding information flag field corresponding to the i-th specific value is set to the first value and encoded, and the target coding information is checked for matching with the i+1-th specific value among the m1 specific values; if the target coding information matches the i-th specific value, it is determined that the target coding information does not meet the shift coding condition, and the i-th coding information flag field is set to the second value and encoded; When the match is checked to the m1th specific value, if the target coding information does not match the m1th specific value, the m1th coding information flag field corresponding to the m1th specific value is set to the first value and encoded, and it is determined that the target coding information meets the shift coding condition; if the target coding information matches the m1th specific value, it is determined that the target coding information does not meet the shift coding condition, and the m1th coding information flag field is set to the second value and encoded.
28. The method of claim 23 or 25, wherein: When judging whether the coding shift quotient satisfies the indirect coding condition, the coding shift quotient is matched with m2 specific values, where the m2 specific values correspond to different shift quotient flag fields, respectively, and m2 is a positive integer; judging whether the coding shift quotient satisfies the indirect coding condition includes: Performing a matching check between the encoding shift quotient and the j-th specific value among the m2 specific values, where j is a positive integer less than m2; If the coded shift quotient does not match the j-th specific value, the j-th shift quotient flag field corresponding to the j-th specific value is set to the first value and encoded, and the coded shift quotient is checked for matching with the j+1-th specific value among the m2 specific values; if the coded shift quotient matches the j-th specific value, it is determined that the coded shift quotient does not meet the indirect encoding condition, and the j-th shift quotient flag field is set to the second value and encoded; When the match is checked to the m2th specific value, if the encoded shift quotient does not match the m2th specific value, the m2th shift quotient flag field corresponding to the m2th specific value is set to the first value and encoded, and it is determined that the encoded shift quotient satisfies the indirect encoding condition; if the encoded shift quotient matches the m2th specific value, it is determined that the encoded shift quotient does not satisfy the indirect encoding condition, and the m2th shift quotient flag field is set to the second value and encoded.
29. The method according to any one of claims 23 to 26, wherein: The step of performing shift processing on the target coding information to obtain a coding shift quotient and a coding shift remainder of the target coding information includes: Obtaining the number of moving bits determination information and the number of moving bits threshold; Determine the number of shifting bits according to the magnitude relationship between the shifting bit determination information and the shifting bit threshold; Based on the number of shift bits, the target coding information is shifted to obtain a coding shift quotient and a coding shift remainder of the target coding information.
30. The method according to any one of claims 23 to 26, wherein: The step of performing shift processing on the target coding information to obtain a coding shift quotient and a coding shift remainder of the target coding information includes: Get the initial number of moving bits; Based on the initial shift bit number, the target coded information is shifted to obtain a reference shift quotient and a reference shift remainder of the target coded information; If the reference shift quotient is less than the shift quotient threshold, determining the reference shift quotient as the coded shift quotient, and determining the reference shift remainder as the coded shift remainder; If the reference shift quotient is greater than or equal to the shift quotient threshold, the initial shift bit number is updated, and based on the updated shift bit number, the target coding information is shifted until the shift processing obtains a reference shift quotient that is less than the shift quotient threshold.
31. A point cloud processing device, the point cloud processing device comprising: An acquisition unit, used for acquiring encoding data of a point cloud; A processing unit, configured to parse the coded data to obtain shift data, wherein the shift data is obtained by performing shift processing on target coded information of the point cloud during the encoding process of the point cloud; The processing unit is further used to perform shift reconstruction on the shifted data to obtain reconstructed coding information of the target coding information.
32. A point cloud processing device, the point cloud processing device comprising: An acquisition unit, used for acquiring target coding information of the point cloud; The acquisition unit is further used to acquire the encoding mode; A processing unit, configured to perform shift processing on the target coding information according to a coding mode to obtain shift data of the target coding information; The processing unit is further used to encode the shifted data.
33. A computer device, comprising: a processor suitable for implementing a computer program; A computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by the processor and executing the point cloud processing method as described in any one of claims 1 to 21, or executing the point cloud processing method as described in any one of claims 22 to 30.
34. A computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the point cloud processing method as described in any one of claims 1 to 21, or executing the point cloud processing method as described in any one of claims 22 to 30.
35. A computer program product, comprising computer instructions, which, when executed by a processor, implement the point cloud processing method according to any one of claims 1 to 21, or execute the point cloud processing method according to any one of claims 22 to 30.
