Point cloud coding processing method, point cloud decoding processing method and related equipment

By adaptively determining coding parameters and entropy coding prediction residuals in point cloud coding, the problem of coding redundancy in prediction tree coding technology is solved and coding efficiency is improved.

CN118678075AActive Publication Date: 2024-09-20VIVO MOBILE COMM CO LTD

Patent Information

Application Number
CN202310243014.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20
Estimated Expiration
2043-03-14

AI Technical Summary

Technical Problem

Existing prediction tree coding technology has coding redundancy in the point cloud coding process, resulting in low coding efficiency.

Method used

The coding parameters are adaptively determined by determining the size of the point cloud block to be encoded, and entropy coding is performed on the prediction residual based on these parameters to reduce coding redundancy and improve coding efficiency.

Benefits of technology

It effectively reduces coding redundancy, improves the efficiency of point cloud coding, and reduces the number of bits required in the coding process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678075A
    Figure CN118678075A
Patent Text Reader

Abstract

The invention discloses a point cloud coding processing method, a point cloud decoding processing method and related equipment, and belongs to the technical field of computers.The point cloud coding processing method comprises the steps that a to-be-coded point cloud block is determined based on geometric information of point cloud, and a first parameter is determined based on the to-be-coded point cloud block, the first parameter is used for representing a bit number required for encoding a second parameter, and the second parameter is used for indicating the size of the to-be-encoded point cloud block; constructing a prediction tree corresponding to the to-be-coded point cloud block, and determining a prediction residual error of a node in the prediction tree; and performing entropy coding on the prediction residual error based on the first parameter to obtain a geometric coding result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to a point cloud encoding processing method, a point cloud decoding processing method and related equipment. Background Art

[0002] Point cloud is a representation of a three-dimensional object or scene. It is composed of a set of discrete points that are irregularly distributed in space and express the spatial structure and surface properties of the three-dimensional object or scene. In order to accurately reflect the information in space, the number of discrete points required is quite large. In order to reduce the bandwidth occupied by point cloud data storage and transmission, the point cloud data needs to be encoded and compressed. Point cloud data usually consists of geometric information describing the location, such as three-dimensional coordinates (x, y, z) and attribute information of the location, such as color (R, G, B) or reflectivity. In the process of point cloud coding and compression, the encoding of geometric information and attribute information is performed separately.

[0003] At present, in the process of encoding the geometric information of the point cloud using the prediction tree coding technology, the prediction residual is encoded based on the pre-set fixed coding parameters, which has coding redundancy and makes the coding efficiency low. Summary of the invention

[0004] The embodiments of the present application provide a point cloud encoding processing method, a point cloud decoding processing method and related equipment, which can solve the problem of low encoding efficiency.

[0005] In a first aspect, a point cloud encoding processing method is provided, which is executed by an encoding end and includes:

[0006] Determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0007] Constructing a prediction tree corresponding to the point cloud block to be encoded, and determining the prediction residuals of the nodes in the prediction tree;

[0008] The prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result.

[0009] In a second aspect, a point cloud decoding processing method is provided, which is executed by a decoding end and is characterized by comprising:

[0010] Acquire a first parameter corresponding to the point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode the second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0011] Performing entropy decoding on the geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual;

[0012] A geometric reconstruction process is performed based on the prediction residual to obtain geometric information.

[0013] In a third aspect, a point cloud coding processing device is provided, comprising:

[0014] A first determination module, used to determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to characterize the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0015] A second determination module is used to construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree;

[0016] The encoding module is used to perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric encoding result.

[0017] In a fourth aspect, a point cloud decoding processing device is provided, comprising:

[0018] An acquisition module, used to acquire a first parameter corresponding to a point cloud block to be decoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0019] A decoding module, configured to perform entropy decoding on a geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual;

[0020] The reconstruction module is used to perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

[0021] In a fifth aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.

[0022] In a sixth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: determine a point cloud block to be encoded based on geometric information of a point cloud, determine a first parameter based on the point cloud block to be encoded, the first parameter being used to characterize the number of bits required to encode a second parameter, and the second parameter being used to indicate the size of the point cloud block to be encoded; construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree; perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric coding result.

[0023] In the seventh aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: obtain a first parameter corresponding to a point cloud block to be decoded, the first parameter being used to characterize the number of bits required to encode a second parameter, and the second parameter being used to indicate the size of the point cloud block to be decoded; perform entropy decoding on a geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; and perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

[0024] In an eighth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.

[0025] In the ninth aspect, a coding and decoding system is provided, comprising: an encoding end device and a decoding end device, wherein the encoding end device can be used to execute the steps of the method described in the first aspect, and the decoding end device can be used to execute the steps of the method described in the second aspect.

[0026] In the tenth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect, or to implement the method described in the second aspect.

[0027] In the eleventh aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.

[0028] In an embodiment of the present application, a point cloud block to be encoded is determined based on the geometric information of the point cloud, a first parameter is determined based on the point cloud block to be encoded, the first parameter is used to characterize the number of bits required to encode the second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; a prediction tree corresponding to the point cloud block to be encoded is constructed, and the prediction residual of each node in the prediction tree is determined; the prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result. In this way, in the process of encoding the geometric information of the point cloud using the prediction tree coding technology, the first parameter is adaptively determined by the size of the point cloud block to be encoded, and the prediction residual is entropy encoded based on the first parameter, which can reduce coding redundancy and improve coding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of an AVS encoder framework in the related art;

[0030] Figure 2 It is a schematic diagram of an AVS decoder framework in the related art;

[0031] Figure 3 It is a schematic diagram of a prediction tree in the related art;

[0032] Figure 4 It is a flow chart of a point cloud coding processing method provided in an embodiment of the present application;

[0033] Figure 5 is a flow chart of a point cloud decoding processing method provided in an embodiment of the present application;

[0034] Figure 6 It is a structural schematic diagram of a point cloud coding processing device provided in an embodiment of the present application;

[0035] Figure 7 It is a structural schematic diagram of a point cloud decoding processing device provided in an embodiment of the present application;

[0036] Figure 8 It is a structural diagram of a communication device provided in an embodiment of the present application;

[0037] Fig. 9 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0039] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, "A or B" covers three schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0040] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.

[0041] The codec end corresponding to the point cloud codec processing method in the embodiment of the present application may be a terminal, which may also be referred to as a terminal device or a user terminal (UE). The terminal may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device (Wearable Device) or a vehicle-mounted device (VUE), a pedestrian terminal (PUE) and other terminal-side devices, and the wearable device includes: a smart watch, a bracelet, a headset, glasses, etc. It should be noted that the specific type of the terminal is not limited in the embodiment of the present application.

[0042] For ease of understanding, some contents involved in the embodiments of the present application are described below:

[0043] like Figure 1 and Figure 2 As shown in the figure, in the point cloud audio and video coding standard (AVS) codec framework, the geometric information of the point cloud and the attribute information corresponding to each point are encoded separately. The encoding process of the geometric information of the point cloud is as follows: the coordinates of the geometric information are transformed so that all the point clouds are contained in a bounding box. The geometric information of the point cloud is then quantized. This step of quantization mainly plays a role in scaling. Due to the quantization rounding, the geometric information of some points is the same. The parameters are used to decide whether to remove duplicate points. The process of quantization and removal of duplicate points belongs to the preprocessing process. Divide the three-dimensional space where the bounding box is located into several The non-overlapping coding macroblocks of different sizes are used as the basic coding unit. In each macroblock, different geometric coding methods can be used according to its characteristics.

[0044] In the related technology, there are two geometric coding methods: one is octree coding, which is suitable for dense point clouds; the other is prediction tree coding, which is suitable for sparse point clouds. If the current macroblock selects prediction tree coding, the point cloud is first Morton sorted (this step is not necessary), and the prediction tree is constructed for the sorted point cloud. The prediction tree adopts a single chain structure, such as Figure 3 As shown in the figure, except for the only leaf node, each tree node has only one child node. Except for the root node predicted by the default value, the other nodes are provided with geometric prediction values ​​by their parent nodes. The method of constructing the prediction tree is as follows: construct an auxiliary KD tree (K-dimensional tree) with the points to be encoded. In order to reduce the complexity of the construction, the encoder can control the number of nodes in the tree; first select the root node, then search the point closest to the root node in the KD tree as the only child node of the root node, and remove the child node in the KD tree; then search the nearest neighbor of the child node in the KD tree as its child node in the same way; and so on, complete the construction of the entire prediction tree, and the constructed prediction tree is a single chain tree. Among them, the KD tree is a binary tree in which each node is a k-dimensional point. Since each node in the prediction tree has only one child node and only one prediction mode, it is only necessary to entropy encode the geometric position residual of each point in the bitstream to fully express the entire prediction tree, and the geometric encoding is completed. After the geometric encoding is completed, the geometric information is reconstructed to obtain a geometrically reconstructed point cloud for recoloring in the attribute encoding process.

[0045] Attribute encoding is mainly aimed at color and reflectivity information. First, determine whether to perform color space conversion based on the parameters. If color space conversion is performed, the color information is converted from RGB color space to YUV color space. Then, the original point cloud is used to recolor the geometrically reconstructed point cloud so that the unencoded attribute information corresponds to the reconstructed geometric information. In color information encoding, after sorting the point cloud by Morton code, the nearest neighbor of the point to be predicted is searched by geometric spatial relationship, and the reconstructed attribute value of the neighbor is used to predict the point to be predicted to obtain the predicted attribute value. Then, the real attribute value and the predicted attribute value are differentiated to obtain the predicted residual. Finally, the predicted residual is quantized and encoded to generate a binary code stream.

[0046] In the following, in combination with the accompanying drawings, the point cloud encoding processing method, the point cloud decoding processing method and related equipment provided in the embodiments of the present application are described in detail through some embodiments and their application scenarios.

[0047] See also Figure 4 , Figure 4is a flowchart of a point cloud encoding processing method provided in an embodiment of the present application, which can be applied to the encoding end, such as Figure 4 As shown, the point cloud coding processing method includes the following steps:

[0048] Step 101: determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to characterize the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded.

[0049] The point cloud block to be encoded can be a coding macroblock, which is a basic coding unit. The point cloud can be divided into a bounding box, and the three-dimensional space where the bounding box is located is divided into several non-overlapping coding macroblocks, and the divided coding macroblocks are used as the point cloud block to be encoded. For example, the process of determining the point cloud block to be encoded based on the geometric information of the point cloud can be as follows: coordinate transformation is performed on the geometric information so that all the point clouds are contained in a bounding box, and the three-dimensional space where the bounding box is located is divided into several The non-overlapping coding macroblocks of different sizes are used as the point cloud blocks to be encoded.

[0050] In addition, the second parameter may characterize the bit depth of the side length of the point cloud block to be encoded. The bit depth of the side length of the point cloud block to be encoded may refer to the number of bits required to represent the side length of the point cloud block to be encoded. For example, the second parameter may characterize the bit depth of the longest side length of the point cloud block to be encoded; or, the second parameter may include a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be encoded in the third direction. For example, the point cloud block to be encoded is a cuboid, and the bit depth of the cuboid in the length direction is 32, the bit depth in the width direction is 15, and the bit depth in the height direction is 8. The second parameter may be 32, or the second parameter may include 32, 15, and 8.

[0051] It should be noted that the first parameter may be the minimum number of bits required to encode the second parameter, or may be described as the number of bits required to represent the second parameter. Taking the second parameter as 32 as an example, the number of bits required to encode the second parameter is 6, and the first parameter is 6; taking the second parameter as 32, 15, and 8 as an example, the number of bits required to encode the second parameter is 6, 4, and 4, respectively, and the first parameter as 6, 4, and 4.

[0052] Step 102: construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree.

[0053] Among them, a KD tree can be constructed based on the points in the point cloud block to be encoded, and the root node is selected. The point closest to the root node is searched in the constructed KD tree as the only child node of the root node, and the child node is removed from the KD tree at the same time; then the nearest neighbor point of the child node is searched in the KD tree as its child node in the same way; and so on, the construction of a single-link tree is realized, and the constructed single-link tree is the prediction tree corresponding to the point cloud block to be encoded.

[0054] In addition, determining the prediction residual of the node in the prediction tree may be, determining the prediction residual of each node in the prediction tree; performing entropy encoding on the prediction residual based on the first parameter may be, performing entropy encoding on the prediction residual of each node based on the first parameter, respectively, thereby obtaining the geometric encoding result of each node. When calculating the prediction residual of the node, except for the root node, the prediction residual of each node in the prediction tree is calculated in the same way. For example, the prediction residual of a node is the difference between the geometric position coordinates of the node and the geometric position coordinates of the node before the node. The prediction residual of the root node may be the difference between the geometric position coordinates of the root node and a first preset value, and the first preset value may be 0, or may also be other pre-set values.

[0055] Step 103: Perform entropy coding on the prediction residual based on the first parameter to obtain a geometric coding result.

[0056] Among them, entropy encoding the prediction residual based on the first parameter to obtain a geometric coding result may include: performing a shift operation on the absolute value of the prediction residual to obtain a first value; determining the target number of coding bits required to encode the first value; encoding the target number of coding bits using the first parameter as the number of coding bits to obtain a first coding sub-result; encoding the first value based on the target number of coding bits to obtain a second coding sub-result; performing a modulo operation on the absolute value of the prediction residual to obtain a second value; encoding the second value to obtain a third coding sub-result; encoding the third value to obtain a fourth coding sub-result, and the third value is used to indicate whether the prediction residual is greater than zero; wherein the geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0057] In an embodiment of the present application, a point cloud block to be encoded is determined based on the geometric information of the point cloud, a first parameter is determined based on the point cloud block to be encoded, the first parameter is used to characterize the number of bits required to encode the second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; a prediction tree corresponding to the point cloud block to be encoded is constructed, and the prediction residual of each node in the prediction tree is determined; the prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result. In this way, in the process of encoding the geometric information of the point cloud using the prediction tree coding technology, the first parameter is adaptively determined by the size of the point cloud block to be encoded, and the prediction residual is entropy encoded based on the first parameter, which can reduce coding redundancy and improve coding efficiency.

[0058] Optionally, performing entropy encoding on the prediction residual based on the first parameter includes:

[0059] Performing a shift operation on the absolute value of the prediction residual to obtain a first value;

[0060] determining a target number of encoding bits required to encode the first value;

[0061] Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result;

[0062] Among them, the geometric coding result includes the first coding sub-result.

[0063] Among them, the absolute value of the prediction residual is shifted to obtain the first value, which can be that the value to be shifted corresponding to the absolute value of the prediction residual is right-shifted to obtain the first value. The value to be shifted can be the absolute value of the prediction residual, or it can be the difference between the absolute value of the prediction residual and the second preset value. The second preset value can be 1, or it can also be other pre-set values. For example, the first value ResHalf is: ResHalf=absRes-1>>1, absRes is the absolute value of the prediction residual.

[0064] In addition, the number of encoding bits can be understood as the number of encoding bits. The target number of encoding bits can be the minimum number of encoding bits required to encode the first value. For example, the first value is 2 32 , then the target encoding bit number is 32. Taking the first parameter as 6 as an example, the first encoding sub-result is: 100000.

[0065] It should be noted that the number of coding bits required to encode the first value is less than or equal to the number of coding bits required to encode the absolute value of the prediction residual, the number of coding bits required to encode the absolute value of the prediction residual is less than or equal to the number of bits required to encode the size of the point cloud block to be encoded, and the second parameter can characterize the bit depth of the side length of the point cloud block to be encoded. Therefore, the number of coding bits required to encode the first value (i.e., the target number of coding bits) is less than or equal to the second parameter, so that the number of bits required to encode the target number of coding bits is less than or equal to the number of bits required to encode the second parameter (i.e., the first parameter). Encoding the target number of coding bits using the first parameter as the number of coding bits can meet the encoding requirements for the target number of coding bits, and can greatly reduce coding redundancy and improve coding efficiency.

[0066] In this implementation, the absolute value of the prediction residual is subjected to a shift operation to obtain a first value; the target number of coding bits required to encode the first value is determined; the target number of coding bits is encoded using the first parameter as the number of coding bits to obtain a first encoding sub-result; wherein the geometric encoding result includes the first encoding sub-result. In this way, encoding the target number of coding bits by using the first parameter adaptively determined by the size of the point cloud block to be encoded as the number of coding bits can reduce coding redundancy and improve coding efficiency compared to encoding the target number of coding bits using a preset fixed coding parameter.

[0067] Optionally, the performing entropy encoding on the prediction residual based on the first parameter further includes:

[0068] Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result;

[0069] Performing a modulo operation on the absolute value of the prediction residual to obtain a second value;

[0070] Encoding the second value to obtain a third encoding sub-result;

[0071] encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0072] The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0073] The second value may be obtained by performing a modulo operation on the absolute value of the prediction residual and performing a modulo operation on the absolute value of the prediction residual and 2. For example, the second value ResRemainder is: ResRemainder=absRes%2.

[0074] In addition, the third value is used to indicate whether the prediction residual is greater than zero, so that the positive and negative signs of the prediction residual can be encoded by encoding the third value.

[0075] It should be noted that a flag may be used to indicate whether the prediction residual is 0, and the flag may be transmitted to the decoding end.

[0076] In this implementation, the first value is encoded based on the target number of coding bits to obtain a second coding sub-result; the absolute value of the prediction residual is subjected to a modulo operation to obtain a second value; the second value is encoded to obtain a third coding sub-result; the third value is encoded to obtain a fourth coding sub-result, and the third value is used to indicate whether the prediction residual is greater than zero; wherein the geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result, thereby enabling entropy coding of the prediction residual.

[0077] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the third direction;

[0078] The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter;

[0079] The entropy encoding the prediction residual based on the first parameter includes:

[0080] Performing entropy encoding on the prediction residual in the first direction based on the fourth sub-parameter;

[0081] Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter;

[0082] The prediction residual in the third direction is entropy encoded based on the sixth sub-parameter.

[0083] Among them, the first direction, the second direction and the third direction may be the directions of the three coordinate axes of the three-dimensional space where the point cloud is located; or may be the length direction, width direction and height direction of the point cloud block to be encoded. Taking the first direction, the second direction and the third direction as the directions of the three coordinate axes (i.e., the X, Y and Z axes) of the three-dimensional space where the point cloud is located as an example, the bit depth of the point cloud block to be encoded in the first direction may refer to the bit depth of the side length of the point cloud block to be encoded in the first direction, that is, the number of bits required to represent the side length of the point cloud block to be encoded in the first direction; the bit depth of the point cloud block to be encoded in the second direction may refer to the bit depth of the side length of the point cloud block to be encoded in the second direction, that is, the number of bits required to represent the side length of the point cloud block to be encoded in the second direction; the bit depth of the point cloud block to be encoded in the third direction may refer to the bit depth of the side length of the point cloud block to be encoded in the third direction, that is, the number of bits required to represent the side length of the point cloud block to be encoded in the third direction.

[0084] In addition, the prediction residual of the node may include the prediction residual in the first direction, the prediction residual in the second direction and the prediction residual in the third direction. Taking the first direction as the X-axis direction, the second direction as the Y-axis direction, and the third direction as the Z-axis direction as an example, the prediction residual of the node may include the prediction residual in the X-axis direction, the prediction residual in the Y-axis direction and the prediction residual in the Z-axis direction. The first sub-parameter represents the bit depth of the point cloud block to be encoded in the X-axis direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the Y-axis direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the Z-axis direction, so that the fourth sub-parameter, the fifth sub-parameter and the sixth sub-parameter can be used to entropy encode the prediction residuals in the X-axis direction, the Y-axis direction and the Z-axis direction respectively.

[0085] In this implementation, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, and entropy coding is performed on the prediction residual in the first direction based on the fourth sub-parameter; entropy coding is performed on the prediction residual in the second direction based on the fifth sub-parameter; and entropy coding is performed on the prediction residual in the third direction based on the sixth sub-parameter. In this way, entropy coding can be performed on the prediction residual in each direction of the node of the point cloud block to be coded according to the bit depth of the point cloud block to be coded in each direction, thereby reducing coding redundancy in each direction and improving coding efficiency.

[0086] Optionally, after performing entropy coding on the prediction residual based on the first parameter to obtain a geometric coding result, the method further includes:

[0087] A geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry encoding result and the first parameter.

[0088] It should be noted that the first parameter can be transmitted from the encoding end to the decoding end, or can be obtained by the decoding end through point cloud bit depth calculation without being written into the code stream and transmitted to the decoding end.

[0089] In this implementation, a geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry encoding result and the first parameter, so that the decoding end can decode the prediction residual through the first parameter carried in the geometry code stream.

[0090] Optionally, determining the first parameter based on the point cloud block to be encoded includes:

[0091] When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

[0092] The threshold can be set to 2 32 , or can be set to 2 40 , or can be set to 2 50 , etc. This embodiment does not limit the threshold value, and the threshold value can be preset. The longest side length of the point cloud block to be encoded is less than or equal to the threshold value, which can be understood as the bit depth of the longest side length of the point cloud block to be encoded has an upper limit. When the longest side length of the point cloud block to be encoded is greater than the threshold value, it can be considered that the bit depth upper limit of the supported encoded point cloud is exceeded, and it can be not encoded.

[0093] It should be noted that in the related art, the AVS coding platform does not specify the upper limit of the bit depth of the supported coded point cloud. Therefore, if the bit depth of the point cloud block to be coded is greater than 31, the existing prediction tree coding technology still uses a fixed 5 bits to encode the minimum number of coding bits required for ResHalf, which may result in insufficient bits, resulting in failure of normal encoding and decoding. This embodiment limits the bit depth of the longest side length of the point cloud block to be coded, and uses the first parameter adaptively determined by the size of the point cloud block to be coded as the number of coding bits to encode the minimum number of coding bits required for encoding ResHalf, thereby achieving normal encoding and decoding.

[0094] It should be noted that the embodiments of the present application relate to the prediction tree entropy coding part in the AVS encoder framework.

[0095] In the related art, during the AVS encoding process, the process of encoding the prediction residual of the node in the prediction tree corresponding to the geometric information is as follows:

[0096] The prediction residual value of the node in the prediction tree is denoted as Res i[k], k = 0, 1, 2 represents the corresponding geometric position coordinates X, Y, Z; i represents the number of points, i = 0, 1, ..., N-1, N is the number of nodes in the point cloud block to be encoded. i-1 With P i ) is:

[0097]

[0098] For Res i [k], whose absolute value is defined as absRes i [k].

[0099] The absolute value of the prediction residual absRes i The encoding method of [k] is as follows:

[0100] (1) Determine the current absRes i [k] is zero. If it is zero, a flag bit is used to indicate it;

[0101] (2) If absRes i If [k] is non-zero, then calculate:

[0102] ResHalf i [k] = absRes i [k]-1>>1,ResRemainder i [k] = absRes i [k]%2;

[0103] Among them, “>>” is the right shift operator, and “%” is the remainder operator.

[0104] (3) Calculate the code ResHalf i The minimum number of coding bits required B i [k];

[0105] (4) Design context model for B i [k](b4b3b2b1b0) is encoded using a fixed 5-bit code B i [k], design part of the relevant context model ctxNumBits[ctxIdx] for B i The number of bits of [k] is encoded:

[0106] ctxIdx=0, encoding b0;

[0107] ctxIdx=1+b0, encoding b1;

[0108] ctxIdx=3+b1, encoding b2;

[0109] ctxIdx=5+b2+b1*2, encoding b3;

[0110] ctxIdx=9, encoding b4;

[0111] According to the number of bits B i [k], bit-by-bit encoding ResHalf o [k]; Recode ResRemainder i [k].

[0112] For the prediction residual Res o [k] is encoded.

[0113] It should be noted that in the related art, when the prediction tree coding technology encodes the absolute value of the residual, a fixed 5 bits are used to encode ResHalf o The minimum number of coding bits required B o [k], for smaller point cloud blocks to be encoded, encoding B i [k] The number of bits required is less than 5 bits. If a fixed 5 bits are used for encoding, there will be a waste of bits, resulting in coding redundancy, and there will also be redundant occupancy in the use of the context model.

[0114] In the embodiment of the present application, when encoding and decoding based on the prediction tree, the encoding ResHalf is adaptively calculated according to the current point cloud block size. i The number of coding bits required is B i The bit depth of [k] can improve the coding efficiency and reduce the redundant occupancy of the context model.

[0115] As a specific embodiment, the point cloud encoding processing method performed by the encoding end may include the following process:

[0116] Step (11): First, set an upper limit for the side length (or bit depth) of the current point cloud block to be encoded, and use the parameter MaxLCUDimLog2 to represent it. Then, based on the size of the current point cloud block to be encoded, obtain its bit depth in three directions, calculate the number of bits required to represent the bit depth, and use the parameter Maxnumbits[k] to represent it. k = 0, 1, 2 represents the corresponding geometric position X, Y, Z dimensions. The Maxnumbits[k] parameter is passed to the decoder as an identifier.

[0117] Step (12): Perform Morton sorting on the points in the current point cloud block to be encoded (this step is optional), construct a prediction tree for the sorted point cloud, and after the construction is completed, predict each point and obtain its prediction residual, which is recorded as Res i[k], k = 0, 1, 2 represents the corresponding geometric position coordinates X, Y, Z; i represents the number of points, i = 0, 1, ..., N-1, N is the number of points in the point cloud block to be encoded. i-1 With P i ) is:

[0118]

[0119] Among them, P i is the geometric position coordinates of point i, P i-1 is the geometric position coordinates of point i-1.

[0120] For Res i [k], whose absolute value is defined as absRes i [k].

[0121] Step (13): Absolute value of prediction residual absRes i The encoding method of [k] is as follows:

[0122] (a) Determine the current absRes i [k] is zero. If it is zero, a flag bit is used to indicate it;

[0123] (b) If absRes i If [k] is non-zero, then calculate:

[0124] ResHalf i [k] = absRes i [k]>>1,ResRemainder i [k] = absRes i [k]%2;

[0125] Among them, “>>” is the right shift operator, and “%” is the remainder operator.

[0126] (c) Calculate the code ResHalf i The minimum number of coding bits required B i [k];

[0127] (d) Design context model for B i [k] is encoded, and the required number of bits is Maxnumbits[k]. The partially related context model ctxNumBits[ctxIdx] is designed for B i [k] Each bit b0b1...b n To encode:

[0128] ctxIdx=0, encoding b0;

[0129] ctxIdx=1+b0, encoding b1;

[0130] ctxIdx=3+b1, encoding b2;

[0131] ctxIdx=5+b2+b1*2, encoding b3;

[0132] ctxIdx=9, encoding b4, b5, ..., b n ;

[0133] Among them, n-1 is B i The number of bits of [k].

[0134] According to the number of bits B i , bit-by-bit encoding ResHalf i [k]; Recode ResRemainder i [k];

[0135] Step (14): For the prediction residual Res i [k] is encoded.

[0136] Repeat the above steps (11) to (14) to perform entropy coding on the prediction residual of the geometric position of each point until the last point is coded, at which point the geometric coding ends.

[0137] See also Figure 5 , Figure 5 is a flowchart of a point cloud decoding processing method provided in an embodiment of the present application, which can be applied to a decoding end, such as Figure 5 As shown, the point cloud decoding processing method includes the following steps:

[0138] Step 201: Obtain a first parameter corresponding to a point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0139] Step 202: performing entropy decoding on the geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual;

[0140] Step 203: Perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

[0141] Optionally, the geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result;

[0142] The entropy decoding of the geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual includes:

[0143] Decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits;

[0144] Decoding the second encoding sub-result based on the target number of encoding bits to obtain a first value;

[0145] Decoding the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual;

[0146] Decoding the fourth encoding sub-result to obtain a third value, where the third value is used to indicate whether the prediction residual is greater than zero;

[0147] The prediction residual is determined based on the first value, the second value, and the third value.

[0148] Optionally, decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits includes:

[0149] The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

[0150] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be decoded in the third direction;

[0151] The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter;

[0152] The entropy decoding of the geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter includes:

[0153] Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter;

[0154] Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter;

[0155] Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

[0156] Optionally, the obtaining a first parameter corresponding to the point cloud block to be decoded includes:

[0157] A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric encoding result and a first parameter corresponding to a point cloud block to be decoded.

[0158] Optionally, the obtaining a first parameter corresponding to the point cloud block to be decoded includes:

[0159] When the longest side length of the point cloud block to be decoded is less than or equal to a threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

[0160] It should be noted that this embodiment is Figure 4 The corresponding decoding side implementation in the embodiment shown in the figure can be found in the specific implementation. Figure 4 In order to avoid repeated description, the relevant description of the embodiment shown will not be repeated in this embodiment, and the same beneficial effects can still be achieved.

[0161] As a specific embodiment, the point cloud decoding processing method performed by the decoding end includes the following process:

[0162] Step (21): The size (or bit depth) of the point cloud block to be decoded must be within the set MaxLCUDimLog2 parameter to be decoded. The Maxnumbits[k] parameter is parsed from the geometry stream.

[0163] Step (22): parse the prediction residual information from the geometry bitstream as follows:

[0164] (a) Analyze the absolute value of the current prediction residual absRes i Is [k] zero? If it is zero, the prediction residual Res i [k] is 0; k=0, 1, 2 represents the corresponding geometric position coordinates X, Y, Z; i represents the number of points, i=0, 1, ..., N-1, N is the number of points in the point cloud block to be decoded.

[0165] (b) If absRes i [k] is non-zero, and the parameter Maxnumbits[k] indicates the parsing of ResHalf i The minimum number of coding bits required B i [k]:

[0166] In the parsing process, the relevant context model ctxNumBits[ctxIdx] needs to be used for B i [k] Each bit b0b1...b n To decode:

[0167] ctxIdx=0,decode b0;

[0168] ctxIdx=1+b0, decode b1;

[0169] ctxIdx=3+b1, decode b2;

[0170] ctxIdx=5+b2+b1*2, decode b3;

[0171] ctxIdx=9,decode b4,b5,...,b n ;

[0172] Among them, n-1 is B i The number of bits of [k].

[0173] (c) According to the number of bits B i , decode ResHalf bit by bit i [k]; decode ResRemainder i [k];

[0174] Step (23): For the prediction residual Res i [k] is decoded.

[0175] Repeat the above steps (21) to (23) to perform entropy decoding and coordinate compensation on the prediction residual of the geometric position of each point until the last point is decoded. At this time, the geometric information is reconstructed and the decoding is completed.

[0176] This embodiment proposes an entropy encoding and decoding method based on a prediction tree. When encoding and decoding based on the prediction tree, the encoding ResHalf is adaptively calculated according to the current point cloud block size. i The number of coding bits required is B i The bit depth of [k] can improve the coding efficiency and reduce the redundant occupancy of the context model.

[0177] It should be noted that the point cloud coding processing method provided in the embodiment of the present application can be executed by a point cloud coding processing device, or a control module in the point cloud coding processing device for executing the point cloud coding processing method. In the embodiment of the present application, the point cloud coding processing device provided in the embodiment of the present application is described by taking the method for executing the point cloud coding processing by the point cloud coding processing device as an example.

[0178] See also Figure 6 , Figure 6 is a structural diagram of a point cloud coding processing device provided in an embodiment of the present application, such as Figure 6 As shown, the point cloud coding processing device 300 includes:

[0179] A first determination module 301 is used to determine a point cloud block to be encoded based on geometric information of the point cloud, and to determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to characterize the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0180] A second determination module 302 is used to construct a prediction tree corresponding to the to-be-encoded point cloud block and determine the prediction residuals of the nodes in the prediction tree;

[0181] The encoding module 303 is used to perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric encoding result.

[0182] Optionally, the encoding module is specifically used for:

[0183] Performing a shift operation on the absolute value of the prediction residual to obtain a first value;

[0184] determining a target number of encoding bits required to encode the first value;

[0185] Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result;

[0186] Among them, the geometric coding result includes the first coding sub-result.

[0187] Optionally, the encoding module is further used for:

[0188] Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result;

[0189] Performing a modulo operation on the absolute value of the prediction residual to obtain a second value;

[0190] Encoding the second value to obtain a third encoding sub-result;

[0191] encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0192] The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0193] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the third direction;

[0194] The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter;

[0195] The entropy encoding the prediction residual based on the first parameter includes:

[0196] Performing entropy encoding on the prediction residual in the first direction based on the fourth sub-parameter;

[0197] Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter;

[0198] The prediction residual in the third direction is entropy encoded based on the sixth sub-parameter.

[0199] Optionally, the device further comprises:

[0200] The sending module is used to send a geometric code stream to a decoding end, where the geometric code stream includes the geometric coding result and the first parameter.

[0201] Optionally, the first determining module is specifically configured to:

[0202] When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

[0203] The point cloud coding processing device 300 in the embodiment of the present application can reduce coding redundancy, thereby improving coding efficiency.

[0204] The point cloud coding processing device in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The device or electronic device can be a mobile terminal or a non-mobile terminal. Exemplarily, the mobile terminal can include but is not limited to the types of terminals listed above, and the non-mobile terminal can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0205] The point cloud coding processing device provided in the embodiment of the present application can achieve Figure 4 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.

[0206] It should be noted that the point cloud decoding processing method provided in the embodiment of the present application can be executed by a point cloud decoding processing device, or a control module in the point cloud decoding processing device for executing the point cloud decoding processing method. In the embodiment of the present application, the point cloud decoding processing device provided in the embodiment of the present application is described by taking the method for executing the point cloud decoding processing by the point cloud decoding processing device as an example.

[0207] See also Figure 7 , Figure 7 is a structural diagram of a point cloud decoding processing device provided in an embodiment of the present application, such as Figure 7 As shown, the point cloud decoding processing device 400 includes:

[0208] An acquisition module 401 is used to acquire a first parameter corresponding to a point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0209] A decoding module 402 is used to perform entropy decoding on the geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual;

[0210] The reconstruction module 403 is used to perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

[0211] Optionally, the geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result;

[0212] The decoding module comprises:

[0213] A first decoding unit, configured to decode the first encoding sub-result based on the first parameter to obtain a target number of encoding bits;

[0214] A second decoding unit, configured to decode the second encoding sub-result based on the target number of encoding bits to obtain a first value;

[0215] A third decoding unit, configured to decode the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual;

[0216] a fourth decoding unit, configured to decode the fourth encoding sub-result to obtain a third value, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0217] A determination unit is used to determine the prediction residual based on the first value, the second value and the third value.

[0218] Optionally, the first decoding unit is specifically configured to:

[0219] The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

[0220] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be decoded in the third direction;

[0221] The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter;

[0222] The decoding module is specifically used for:

[0223] Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter;

[0224] Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter;

[0225] Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

[0226] Optionally, the acquisition module is specifically used for:

[0227] A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric encoding result and a first parameter corresponding to a point cloud block to be decoded.

[0228] Optionally, the acquisition module is specifically used for:

[0229] When the longest side length of the point cloud block to be decoded is less than or equal to a threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

[0230] The point cloud decoding processing device in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The device or electronic device can be a mobile terminal or a non-mobile terminal. Exemplarily, the mobile terminal can include but is not limited to the types of terminals listed above, and the non-mobile terminal can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0231] The point cloud decoding processing device provided in the embodiment of the present application can achieve Figure 5 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.

[0232] Alternatively, if Figure 8 As shown, the embodiment of the present application further provides a communication device 500, including a processor 501 and a memory 502, and the memory 502 stores a program or instruction that can be run on the processor 501. For example, when the communication device 500 is an encoding end device, the program or instruction is executed by the processor 501 to implement the various steps of the above-mentioned point cloud encoding processing method embodiment, and can achieve the same technical effect. When the communication device 500 is a decoding end device, the program or instruction is executed by the processor 501 to implement the various steps of the above-mentioned point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0233] The embodiment of the present application also provides a terminal, including a processor and a communication interface, the processor is used to: determine a point cloud block to be encoded based on the geometric information of the point cloud, determine a first parameter based on the point cloud block to be encoded, the first parameter is used to characterize the number of bits required for encoding the second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residual of the node in the prediction tree; entropy encode the prediction residual based on the first parameter to obtain a geometric encoding result. Alternatively, the processor is used to: obtain a first parameter corresponding to the point cloud block to be decoded, the first parameter is used to characterize the number of bits required for encoding the second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded; entropy decode the geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; perform geometric reconstruction processing based on the prediction residual to obtain geometric information. This terminal embodiment corresponds to the above-mentioned point cloud encoding processing method or point cloud decoding processing method embodiment, and each implementation process and implementation method of the above-mentioned point cloud encoding processing method or point cloud decoding processing method embodiment can be applied to this terminal embodiment, and can achieve the same technical effect. Specifically, Fig. 9 A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.

[0234] The terminal 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609 and at least some of the components of a processor 610.

[0235] Those skilled in the art will appreciate that the terminal 600 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The terminal structure shown in the figure does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0236] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0237] In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 601 can transmit the data to the processor 610 for processing; in addition, the RF unit 601 can send uplink data to the network side device. Generally, the RF unit 601 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

[0238] The memory 609 can be used to store software programs or instructions and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory x09 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0239] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0240] Wherein, when the terminal is a coding terminal:

[0241] The processor 610 is configured to:

[0242] Determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0243] Constructing a prediction tree corresponding to the point cloud block to be encoded, and determining the prediction residuals of the nodes in the prediction tree;

[0244] The prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result.

[0245] Optionally, the processor 610 is configured to:

[0246] Performing a shift operation on the absolute value of the prediction residual to obtain a first value;

[0247] determining a target number of encoding bits required to encode the first value;

[0248] Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result;

[0249] Among them, the geometric coding result includes the first coding sub-result.

[0250] Optionally, the processor 610 is configured to:

[0251] Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result;

[0252] Performing a modulo operation on the absolute value of the prediction residual to obtain a second value;

[0253] Encoding the second value to obtain a third encoding sub-result;

[0254] encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0255] The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0256] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the third direction;

[0257] The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter;

[0258] The processor 610 is configured to:

[0259] Performing entropy encoding on the prediction residual in the first direction based on the fourth sub-parameter;

[0260] Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter;

[0261] The prediction residual in the third direction is entropy encoded based on the sixth sub-parameter.

[0262] Optionally, the processor 610 is configured to:

[0263] A geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry encoding result and the first parameter.

[0264] Optionally, the processor 610 is configured to:

[0265] When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

[0266] Wherein, when the terminal is a decoding terminal:

[0267] The processor 610 is configured to:

[0268] Acquire a first parameter corresponding to the point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode the second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0269] Performing entropy decoding on the geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual;

[0270] A geometric reconstruction process is performed based on the prediction residual to obtain geometric information.

[0271] Optionally, the geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result;

[0272] The processor 610 is specifically configured to:

[0273] Decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits;

[0274] Decoding the second encoding sub-result based on the target number of encoding bits to obtain a first value;

[0275] Decoding the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual;

[0276] Decoding the fourth encoding sub-result to obtain a third value, where the third value is used to indicate whether the prediction residual is greater than zero;

[0277] The prediction residual is determined based on the first value, the second value, and the third value.

[0278] Optionally, the processor 610 is specifically configured to:

[0279] The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

[0280] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be decoded in the third direction;

[0281] The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter;

[0282] The processor 610 is specifically configured to:

[0283] Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter;

[0284] Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter;

[0285] Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

[0286] Optionally, the processor 610 is specifically configured to:

[0287] A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric encoding result and a first parameter corresponding to a point cloud block to be decoded.

[0288] Optionally, the processor 610 is specifically configured to:

[0289] When the longest side length of the point cloud block to be decoded is less than or equal to a threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

[0290] Specifically, the terminal of the embodiment of the present application also includes: instructions or programs stored in the memory 609 and executable on the processor 610, and the processor 610 calls the instructions or programs in the memory 609 to execute Figure 6 or Figure 7 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.

[0291] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned point cloud encoding processing method embodiment are implemented, or when the program or instruction is executed by a processor, the various processes of the above-mentioned point cloud decoding processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0292] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.

[0293] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned point cloud encoding processing method embodiment, or to implement the various processes of the above-mentioned point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0294] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0295] The embodiments of the present application further provide a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned point cloud encoding processing method or point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0296] An embodiment of the present application also provides a coding and decoding system, including: an encoding end device and a decoding end device, wherein the encoding end device can be used to execute the steps of the point cloud encoding processing method as described above, and the decoding end device can be used to execute the steps of the point cloud decoding processing method as described above.

[0297] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0298] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable a terminal or a network-side device to execute the methods described in each embodiment of the present application.

[0299] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.

Claims

1. A point cloud coding processing method, executed by an encoding end, characterized in that: include: Determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; Constructing a prediction tree corresponding to the point cloud block to be encoded, and determining the prediction residuals of the nodes in the prediction tree; The prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result.

2. The method according to claim 1, characterized in that The entropy encoding the prediction residual based on the first parameter includes: Performing a shift operation on the absolute value of the prediction residual to obtain a first value; determining a target number of encoding bits required to encode the first value; Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result; Among them, the geometric coding result includes the first coding sub-result.

3. The method according to claim 2, characterized in that The entropy encoding the prediction residual based on the first parameter further includes: Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result; Performing a modulo operation on the absolute value of the prediction residual to obtain a second value; Encoding the second value to obtain a third encoding sub-result; encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero; The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

4. The method according to any one of claims 1 to 3, characterized in that The second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the third direction; The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter; The entropy encoding the prediction residual based on the first parameter includes: Performing entropy encoding on the prediction residual in the first direction based on the fourth sub-parameter; Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter; The prediction residual in the third direction is entropy encoded based on the sixth sub-parameter.

5. The method according to any one of claims 1 to 4, characterized in that After performing entropy coding on the prediction residual based on the first parameter to obtain a geometric coding result, the method further includes: A geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry encoding result and the first parameter.

6. The method according to any one of claims 1 to 5, characterized in that The determining the first parameter based on the point cloud block to be encoded includes: When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

7. A point cloud decoding processing method, executed by a decoding end, characterized in that: include: Acquire a first parameter corresponding to the point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode the second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded; Performing entropy decoding on the geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; A geometric reconstruction process is performed based on the prediction residual to obtain geometric information.

8. The method according to claim 7, characterized in that The geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result; The entropy decoding of the geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual includes: Decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits; Decoding the second encoding sub-result based on the target number of encoding bits to obtain a first value; Decoding the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual; Decoding the fourth encoding sub-result to obtain a third value, where the third value is used to indicate whether the prediction residual is greater than zero; The prediction residual is determined based on the first value, the second value, and the third value.

9. The method according to claim 8, characterized in that The decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits includes: The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

10. The method according to any one of claims 7 to 9, characterized in that: The second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be decoded in the third direction; The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter; The entropy decoding of the geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter includes: Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter; Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter; Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

11. The method according to any one of claims 7 to 10, characterized in that: The obtaining of the first parameter corresponding to the point cloud block to be decoded includes: A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric encoding result and a first parameter corresponding to a point cloud block to be decoded.

12. The method according to any one of claims 7 to 10, characterized in that: The obtaining of the first parameter corresponding to the point cloud block to be decoded includes: When the longest side length of the point cloud block to be decoded is less than or equal to a threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

13. A point cloud coding processing device, characterized in that: include: A first determination module, used to determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to characterize the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; A second determination module is used to construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree; The encoding module is used to perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric encoding result.

14. A point cloud decoding processing device, characterized in that: include: An acquisition module, used to acquire a first parameter corresponding to a point cloud block to be decoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded; A decoding module, configured to perform entropy decoding on a geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; The reconstruction module is used to perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

15. A terminal, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the steps of the point cloud encoding processing method according to any one of claims 1 to 6 are implemented; or, when the program or instruction is executed by the processor, the steps of the point cloud decoding processing method according to any one of claims 7 to 12 are implemented.

16. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the point cloud encoding processing method as described in any one of claims 1 to 6 are implemented, or when the program or instruction is executed by the processor, the steps of the point cloud decoding processing method as described in any one of claims 7 to 12 are implemented.

Citation Information

Patent Citations

  • Point cloud encoding and decoding method and device

    CN112740702A

  • Three-dimensional data encoding method, three-dimensional data decoding method, three-dimensional data encoding device, and three-dimensional data decoding device

    CN115335868A

  • Point cloud coding processing method, point cloud decoding processing method and related equipment

    CN115474058A

  • Point cloud coding method, point cloud decoding method and point cloud coding device

    CN115474059A

  • Three-dimensional data encoding method, three-dimensional data decoding method, three-dimensional data encoding device, and three-dimensional data decoding device

    US20200351519A1

Cited By

  • Point cloud encoding processing method, point cloud decoding processing method, and related device

    EP4683326A1