Point cloud coding processing method, point cloud decoding processing method and related equipment
By selecting an appropriate encoding method according to the preset values of the target parameters during the point cloud encoding and decoding process, the problem of low efficiency in residual entropy encoding of point cloud data attributes is solved, more efficient encoding and decoding is achieved, and redundancy is reduced. , improving data transmission efficiency.
Patent Information
- Application Number
- CN202310243212.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, the attribute residual entropy coding efficiency of point cloud data is low, resulting in coding redundancy and affecting data transmission efficiency.
By judging the preset values of the target parameters at the encoding end and the decoding end respectively, and using different encoding and decoding methods to encode or decode the attribute residuals of the encoding points, the encoding redundancy is reduced and the encoding efficiency is improved.
Through attribute run-length coding and second-order exponential Columbus coding algorithm, coding branches are reduced, the efficiency of point cloud coding is improved, redundancy is reduced, and data transmission efficiency is improved.
Smart Images

Figure CN118678076A
Abstract
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 the space, the number of discrete points required is quite large. In order to reduce the bandwidth occupied by the 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 point cloud coding and compression process, the encoding of geometric information and attribute information is performed separately. Among them, the encoding process of attribute information includes entropy coding of attribute residuals.
[0003] In the related art, in the process of entropy coding the attribute residual, the attribute residual of each to-be-coded point is coded, which results in coding redundancy and low coding efficiency. 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] Get the attribute residual of the attribute information of the point to be coded;
[0007] When it is determined that the target parameter corresponding to the point to be encoded is a first preset value, entropy encoding is performed on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero;
[0008] When it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value, encoding the to-be-encoded value corresponding to the target parameter to obtain a second encoding result;
[0009] The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
[0010] In a second aspect, a point cloud decoding processing method is provided, which is executed by a decoding end and includes:
[0011] When it is determined that the target parameter corresponding to the point to be decoded is a first preset value, entropy decoding is performed on the first encoding result in the attribute code stream of the point to be decoded to obtain an attribute residual, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero;
[0012] When it is determined that the target parameter corresponding to the point to be decoded is not the first preset value, the second encoding result in the attribute code stream is decoded to obtain the target parameter.
[0013] In a third aspect, a point cloud coding processing device is provided, comprising:
[0014] An acquisition module, used to obtain the attribute residual of the attribute information of the point to be coded;
[0015] A first encoding module is used to perform entropy encoding on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result when it is determined that the target parameter corresponding to the point to be encoded is a first preset value, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero;
[0016] A second encoding module is used to encode the to-be-encoded value corresponding to the target parameter to obtain a second encoding result when it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value;
[0017] The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
[0018] In a fourth aspect, a point cloud decoding processing device is provided, comprising:
[0019] A first decoding module is used to perform entropy decoding on a first encoding result in an attribute code stream of the point to be decoded to obtain an attribute residual when it is determined that a target parameter corresponding to the point to be decoded is a first preset value, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero;
[0020] The second decoding module is used to decode the second encoding result in the attribute code stream to obtain the target parameter when it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value.
[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: obtain an attribute residual of attribute information of a point to be encoded; when it is determined that a target parameter corresponding to the point to be encoded is a first preset value, entropy encode the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero; when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, encode the value to be encoded corresponding to the target parameter to obtain a second encoding result; wherein the attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
[0023] In a seventh aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: when it is determined that the target parameter corresponding to the point to be decoded is a first preset value, entropy decode the first encoding result in the attribute code stream of the point to be decoded to obtain the attribute residual, and the target parameter is used to indicate the continuous statistical value of the point to be decoded whose attribute residual is zero; when it is determined that the target parameter corresponding to the point to be decoded is not the first preset value, decode the second encoding result in the attribute code stream to obtain the target parameter.
[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, the attribute residual of the attribute information of the point to be encoded is obtained; when it is determined that the target parameter corresponding to the point to be encoded is a first preset value, the attribute residual of the attribute information of the point to be encoded is entropy encoded to obtain a first encoding result, and the target parameter is used to indicate the continuous statistical value of the point to be encoded with zero attribute residual; when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result; wherein the attribute code stream of the point to be encoded includes the first encoding result or the second encoding result. In this way, by encoding the value to be encoded corresponding to the target parameter, the encoding redundancy of the attribute residual entropy encoding can be reduced through attribute run encoding, thereby improving the encoding efficiency; and when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded, and the encoding efficiency can be improved by using fewer encoding branches. 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 flow chart of a point cloud coding processing method provided in an embodiment of the present application;
[0032] Figure 4 It is a flow chart of a point cloud coding processing method in the related art;
[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 This is one of the coding test results provided by the embodiment of the present application;
[0035] Figure 7 This is a second example of a coding test result provided in an embodiment of the present application;
[0036] Figure 8 It is a structural schematic diagram of a point cloud coding processing device provided in an embodiment of the present application;
[0037] Fig. 9 It is a structural schematic diagram of a point cloud decoding processing device provided in an embodiment of the present application;
[0038] Fig.10 It is a structural diagram of a communication device provided in an embodiment of the present application;
[0039] Fig.11 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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 (User Equipment, 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.
[0044] For ease of understanding, some contents involved in the embodiments of the present application are described below:
[0045] 1. Point Cloud AVS Codec
[0046] like Figure 1 and Figure 2As 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 and decoded separately. The encoding process of the geometric information of the point cloud is as follows: First, the coordinates of the geometric information are transformed so that all the point clouds are contained in a bounding box. Then quantization is performed. This step of quantization mainly plays a scaling role. Due to the quantization rounding, the geometric information of some points is the same. Whether to remove duplicate points is determined based on the parameters. The process of quantization and removal of duplicate points belongs to the preprocessing process. Next, the bounding box is divided in the order of breadth-first traversal (based on octree / quadtree / binary tree division), and finally, the placeholder code of each node is encoded. In the octree-based geometric coding framework, the bounding box is divided into sub-cubes in sequence, and the non-empty (containing points in the point cloud) sub-cubes are divided until the leaf node obtained by division is a 1x1x1 unit cube, and the division is stopped. The number of points contained in the leaf node is encoded, and finally the encoding of the geometric octree is completed to generate a binary code stream. In the octree-based geometric decoding process, the decoding end obtains the placeholder code of each node by continuously parsing in the order of breadth-first traversal, and continuously divides the nodes in sequence until the division is a 1x1x1 unit cube, and the division is stopped when the number of points contained in each leaf node is parsed, and finally the geometric reconstructed point cloud information is restored.
[0047] After the geometric coding is completed, the geometric information is reconstructed, and the reconstructed geometric information is used to encode the attribute information. At present, attribute coding is mainly performed on color and reflectivity information. First, determine whether to perform color space conversion. If color space conversion is performed, the color information is converted from RGB color space to YUV color space. Then, in the case of lossy geometric coding, it is necessary to perform attribute interpolation on the reconstructed point cloud, that is, recoloring, and calculate new attribute values for each point in the reconstructed point cloud so that the attribute error between the reconstructed point cloud and the original point cloud is minimized. Then, a binary code stream is generated through attribute prediction or attribute transformation branches. The attribute prediction process is as follows: first, the point cloud is reordered, and then differential prediction is performed. Among them, there are two reordering methods: Morton reordering and Hilbert reordering. Hilbert code is used to reorder point clouds in the current AVS coding framework. Then, the attribute prediction is performed on the sorted point cloud using the differential method. If the geometric information of the current point to be coded is the same as that of the previous coded point, that is, it is a duplicate point, then the reconstructed attribute value of the duplicate point is used as the attribute prediction value of the current point to be coded. Otherwise, the first m points of the Hilbert order are selected as neighbor candidate points for the current point to be coded, and then the Manhattan distance of their geometric information with the current point to be coded is calculated respectively. The n points with the closest distance are determined as the neighbors of the current point to be coded. The weighted average of the attributes of all neighbors is calculated with the inverse of the distance as the weight as the attribute prediction value of the current point to be coded. Then, the prediction residual is calculated by the attribute prediction value and the attribute value of the current point to be coded, and finally the prediction residual is quantized and entropy coded to generate a binary code stream. The attribute transformation process is as follows: first, wavelet transform is performed on the point cloud attributes, and the transform coefficients are quantized; secondly, the attribute reconstruction value is obtained by inverse quantization and inverse wavelet transform; then the difference between the original attribute and the attribute reconstruction value is calculated to obtain the attribute residual and quantize it; finally, the quantized transform coefficient and attribute residual are entropy coded to generate a binary code stream.
[0048] 2. Columbus Code
[0049] In computers, numbers are generally encoded in binary, but because different numbers are recorded with equal lengths, a lot of redundant information will appear, as shown in Table 1:
[0050] Table 1
[0051] Decimal 5 4 255 2 1 Binary 00000101 00000100 11111111 00000010 00000001 Valid Bytes 3 3 8 2 1
[0052] For example, the number 1, which originally only needed 1 bit to represent, now needs 8 bits to represent. Then the remaining 7 bits can be regarded as redundant data. When transmitting over the network, if the data is transmitted in the original equal-length encoding method, there will be a lot of redundancy, which will increase the network burden. However, if only valid bytes are used to transmit the above code stream, it will be: 10110011111111101, which cannot separate the original data at all. Columbus coding is a compression coding algorithm that can effectively compress the original data and easily separate the encoded code stream into code words. The amount of information in a code word is called entropy, which can be represented by log2[n] in binary, which is the valid byte in the table above. However, if the valid code words are simply connected in series, only a useless code stream is obtained, because this code stream does not describe the amount of information of a single code word, which means that the code stream cannot be separated. Columbus coding uses a 0 prefix to express the amount of information in a codeword. After obtaining m 0 prefixes, the length of the codeword in the code stream can be known, and the codeword can be separated from the code stream.
[0053] 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.
[0054] See also Figure 3 , Figure 3 is 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 3 As shown, the point cloud coding processing method includes the following steps:
[0055] Step 101: Obtain attribute residuals of attribute information of a point to be encoded.
[0056] Among them, the point to be encoded can be any point in the point cloud. The attribute residual can include attribute prediction residual or attribute transformation coefficient or attribute transformation coefficient residual and other attribute information to be encoded. The attribute prediction residual can be the difference between the attribute value of the point to be encoded and the attribute prediction value. The attribute prediction value can be obtained by differential prediction. For example, the point cloud can be reordered by Hilbert code, and then the attribute prediction is performed on the sorted point cloud by differential method. If the geometric information of the current point to be encoded is the same as that of the previous encoded point, that is, it is a duplicate point, the reconstructed attribute value of the duplicate point is used as the attribute prediction value of the current point to be encoded. Otherwise, the m points in the previous Hilbert order are selected as neighbor candidate points for the current point to be encoded, and then the Manhattan distance of their geometric information with the current point to be encoded is calculated respectively, and the n points with the closest distance are determined as neighbors of the current point to be encoded. The inverse of the distance is used as the weight, and the weighted average of the attributes of all neighbors is calculated as the attribute prediction value of the current point to be encoded. Both m and n are positive integers.
[0057] Step 102: When it is determined that the target parameter corresponding to the point to be encoded is a first preset value, entropy encoding is performed on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero.
[0058] Among them, after obtaining the attribute residual of the attribute information of the point to be encoded, the continuous statistical value of the point to be encoded with an attribute residual value of 0 can be calculated. When the attribute residual of the attribute information of the point to be encoded is 0, the value of the target parameter is added by 1; when the attribute residual of the attribute information of the point to be encoded is not 0, the value of the target parameter is added by 0, and the target parameter after adding 1 or 0 is used as the target parameter corresponding to the point to be encoded. For example, the attribute residuals of the first point to be encoded to the fifth point to be encoded are: 1, 1, 1, 0 and 1 respectively, then the target parameter corresponding to the first point to be encoded is 0, the target parameter corresponding to the second point to be encoded is 0, the target parameter corresponding to the third point to be encoded is 0, the target parameter corresponding to the fourth point to be encoded is 1, and the target parameter corresponding to the fifth point to be encoded is 1. The first preset value can be 0, and the target parameter is 0, which means that the continuous statistical value of the point to be encoded with an attribute residual of zero is 0.
[0059] Step 103: When it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value, encode the to-be-encoded value corresponding to the target parameter to obtain a second encoding result;
[0060] The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
[0061] In addition, it can be determined whether the attribute residual of the attribute information of the point to be encoded is 0. If the attribute residual of the attribute information of the point to be encoded is not 0, then: when it is determined that the target parameter corresponding to the point to be encoded is the first preset value, the attribute residual of the attribute information of the point to be encoded is entropy encoded to obtain a first encoding result; when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result. If the attribute residual of the attribute information of the point to be encoded is 0, the value of the target parameter is increased by 1.
[0062] In addition, when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result, including: when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result, and the attribute residual of the attribute information of the point to be encoded is entropy encoded to obtain the first encoding result.
[0063] It should be noted that after entropy encoding the attribute residual of the attribute information of the to-be-encoded point or after encoding the to-be-encoded value corresponding to the target parameter, the value of the target parameter is set to 0, that is, the target parameter is cleared to 0. For example, the attribute residuals of the first to-be-encoded point to the fifth to-be-encoded point are 0, 0, 0, 1, and 1, respectively. Then, the target parameter corresponding to the first to-be-encoded point is 1, the target parameter corresponding to the second to-be-encoded point is 2, the target parameter corresponding to the third to-be-encoded point is 3, and the target parameter corresponding to the fourth to-be-encoded point is 3. At this time, the attribute residual does not need to be encoded for the first to-be-encoded point to the third to-be-encoded point, and the attribute residual and the target parameter need to be encoded for the fourth to-be-encoded point. After encoding, the target parameter is cleared to 0, and the target parameter corresponding to the fifth to-be-encoded point is 0.
[0064] In one implementation, the first preset value is 0, and the point cloud coding processing method includes the following process: traversing the attribute residual Res of each point to be coded, and counting the number of points with continuous attribute residual values of 0 as the target parameter run_length;
[0065] If the attribute residual Res is non-zero, the target parameter run_length is first encoded, then the non-zero attribute residual is encoded, and finally the target parameter run_length is set to 0 and counted again;
[0066] Among them, when the attribute residual Res of the point to be encoded is non-zero, the process of encoding the target parameter runlength is as follows:
[0067] Step (a1): determine whether the target parameter runlength corresponding to the point to be encoded is 0 (first preset value). If the target parameter runlength value is 0, identify the target parameter by the second identifier and execute step (c1); if the target parameter runlength value is not 0, execute step (b1);
[0068] Step (b1): Encode runlength-1 using the 2nd-order exponential Golomb coding algorithm and execute step (c1).
[0069] Step (c1): Encode the attribute residual corresponding to the point to be encoded.
[0070] This embodiment proposes an attribute run-length encoding and decoding method, which can improve the performance of point cloud encoding under the condition of reasonable use of context.
[0071] In the related technologies, the AVS attribute run-length coding technology has a complicated coding method and too many branches, and the coding efficiency still needs to be improved.
[0072] In related technologies, such as Figure 4 As shown, the process of entropy coding the attribute residual (such as attribute prediction residual or attribute transformation coefficient or attribute transformation coefficient residual) is as follows:
[0073] Traverse the attribute residual Res of each point to be encoded, and count the number of points with continuous attribute residual values of 0, run_length;
[0074] If the attribute residual Res is non-zero, the run_length value is first encoded, then the non-zero attribute residual is encoded, and finally the run_length value is set to 0 and counted again;
[0075] The process of encoding runlength is as follows:
[0076] First, determine whether the current runlength is 0, and use the parameter zero_run_length_equal_zero as the flag. Use the context model isZero to encode the flag. If the current runlength value is 0, the encoding ends;
[0077] If it is not 0, determine whether the current runlength is 1, and use the parameter zero_run_length_equal_one as the flag. Use the context model isOne to encode the flag. If the current runlength value is 1, the encoding ends;
[0078] If it is not 1, determine whether the current runlength is 2, use the parameter zero_run_length_equal_two as the flag identifier and use the context model isTwo to encode the flag. If the current length value is 2, the encoding ends;
[0079] If the encoding is not finished, runlength-3 is encoded. First, the least significant bit (LSB or parity) of runlength-3 is encoded, and then the value of (runlength-3) / 2 is encoded. In the related art, a second-order exponential Golomb coding algorithm is used to encode (runlength-3) / 2. Among them, the second-order exponential Golomb coding is to binarize the value to be encoded and then perform arithmetic encoding on the binary value. In the related art, a context model is assigned to each of the prefix code and suffix code of the binarized value to be encoded.
[0080] In the related art, the AVS attribute run-length encoding method is cumbersome, has too many branches, and the encoding efficiency still has room for improvement.
[0081] In an embodiment of the present application, the attribute residual of the attribute information of the point to be encoded is obtained; when it is determined that the target parameter corresponding to the point to be encoded is a first preset value, the attribute residual of the attribute information of the point to be encoded is entropy encoded to obtain a first encoding result, and the target parameter is used to indicate the continuous statistical value of the point to be encoded with zero attribute residual; when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result; wherein the attribute code stream of the point to be encoded includes the first encoding result or the second encoding result. In this way, by encoding the value to be encoded corresponding to the target parameter, the encoding redundancy of the attribute residual entropy encoding can be reduced through attribute run encoding, thereby improving the encoding efficiency; and when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the value to be encoded corresponding to the target parameter is encoded, and the encoding efficiency can be improved by using fewer encoding branches.
[0082] Optionally, encoding the to-be-encoded value corresponding to the target parameter includes:
[0083] Binarizing a value to be encoded, wherein the value to be encoded is determined based on the target parameter;
[0084] Encoding the value to be encoded after the binarization process based on a preset encoding algorithm;
[0085] In the process of encoding the binarized value to be encoded based on a preset encoding algorithm, the prefix code and the suffix code of the binarized value to be encoded are each assigned k context models, where k is an integer greater than or equal to 1.
[0086] The preset coding algorithm may be an exponential Golomb coding algorithm, for example, a second-order exponential Golomb coding algorithm; or the preset coding algorithm may be other coding algorithms, such as a Huffman coding algorithm, and so on.
[0087] It should be noted that Exp-Golomb coding is a variable-length coding method, which is a variable-length coding mode that uses certain rules to construct codewords. It divides all numbers into groups of equal size. The groups with smaller symbol values are assigned shorter code lengths. The symbol lengths in the same group are basically equal, and the size of the group grows exponentially. The bit string of the Exp-Golomb code is divided into two parts: "prefix" and "suffix". Its logical structure is: [Mzero][1][INFO]. The encoded code length is 2M+1+k, where M is the prefix length, 1 is the length of the middle 1, and M+k is the suffix length. The k-order Exp-Golomb code table is shown in Table 2.
[0088] Table 2k-order exponential Columbus code table
[0089]
[0090]
[0091] Taking the 0-order exponential Golomb prefix code and suffix code design context as an example, the meanings of each context are as follows: prefix context: prectx0: data distribution probability of 0 and non-0; prectx1: data distribution probability of 1 to 2 and greater than 2; prectx2: data distribution probability of 3 to 6 and greater than 6. Suffix context: sufctx0: data distribution probability of 0 and 1 in the first reverse order of the suffix; sufctx1: data distribution probability of 0 and 1 in the second reverse order of the suffix; sufctx2: data distribution probability of 0 and 1 in the third reverse order of the suffix.
[0092] In this implementation, the value to be encoded is binarized, and the value to be encoded is determined based on the target parameter; the binarized value to be encoded is encoded based on a preset encoding algorithm; wherein, in the process of encoding the binarized value to be encoded based on the preset encoding algorithm, the prefix code and the suffix code of the binarized value to be encoded are each assigned k context models, and k is an integer greater than or equal to 1. In this way, by assigning k context models to the prefix code and the suffix code of the binarized value to be encoded, more original data information can be carried, thereby improving the performance of point cloud encoding.
[0093] Optionally, the value to be encoded is the target parameter, or the value to be encoded is a difference between the target parameter and a second preset value.
[0094] The second preset value may be 1, or may be 2, etc. Both the encoding end and the decoding end are configured with the second preset value, so that after decoding the value encoded by the value to be encoded, the decoding end can determine the target parameter through the second preset value.
[0095] In this implementation manner, the value to be encoded is the difference between the target parameter and the second preset value, thereby being able to reduce the value to be encoded and further improve encoding efficiency.
[0096] Optionally, the preset coding algorithm is a second-order exponential Golomb coding algorithm.
[0097] Optionally, when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, encoding the value to be encoded corresponding to the target parameter to obtain a second encoding result includes:
[0098] When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is not the third preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result.
[0099] The third preset value may be 1. When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and the target parameter is not the third preset value, encoding the value to be encoded corresponding to the target parameter may include: when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, determining whether the target parameter is the third preset value; when it is determined that the target parameter is not the third preset value, encoding the value to be encoded corresponding to the target parameter.
[0100] In one implementation, the first preset value is 0, and the third preset value is 1. The point cloud coding processing method includes the following process: traversing the attribute residual Res of each point to be coded, and counting the number of points with continuous attribute residual values of 0 as the target parameter run_length;
[0101] If the attribute residual Res is non-zero, the target parameter run_length is first encoded, then the non-zero attribute residual is encoded, and finally the target parameter run_length is set to 0 and counted again;
[0102] Among them, when the attribute residual Res of the point to be encoded is non-zero, the process of encoding the target parameter runlength is as follows:
[0103] Step (a2): determine whether the target parameter runlength corresponding to the point to be encoded is 0 (first preset value). If the target parameter runlength value is 0, identify the target parameter by the second identifier and execute step (d2); if the target parameter runlength value is not 0, execute step (b2);
[0104] Step (b2): determine whether the target parameter runlength value is 1 (third preset value); if the target parameter runlength value is 1, identify the target parameter by the first identifier and execute step (d2); if the target parameter runlength value is not 1, execute step (c2);
[0105] Step (c2): Encode runlength-2 using a 2nd order exponential Golomb coding algorithm.
[0106] Step (d2): Encode the attribute residual corresponding to the point to be encoded.
[0107] In this implementation, when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, and when it is determined that the target parameter is not the third preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result. When the target parameter is the first preset value and the third preset value, the target parameter can be identified by an identification bit or the like, and when the target parameter is not the first preset value and the third preset value, the value to be encoded corresponding to the target parameter can be encoded, thereby improving the encoding efficiency by adopting fewer encoding branches.
[0108] Optionally, the method further comprises:
[0109] When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is the third preset value, the first identifier corresponding to the point to be encoded is set to the fourth preset value and the first identifier is encoded based on the context model.
[0110] The fourth preset value may be 1, or the fourth preset value may be 0. When the target parameter is the third preset value, the first identifier corresponding to the point to be encoded may be set to 1; when the target parameter is not the third preset value, the first identifier corresponding to the point to be encoded may be set to 0; or, when the target parameter is the third preset value, the first identifier corresponding to the point to be encoded may be set to 0; when the target parameter is not the third preset value, the first identifier corresponding to the point to be encoded may be set to 1.
[0111] In this implementation, when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, and when it is determined that the target parameter is the third preset value, the first identifier corresponding to the point to be encoded is set to the fourth preset value, and the first identifier is encoded based on the context model, so that the target parameter of the third preset value can be identified by the first identifier, so that the decoding end can determine whether the target parameter is the third preset value through the first identifier.
[0112] Optionally, the method further comprises:
[0113] When it is determined that the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded is set to a fifth preset value, and the second identifier is encoded based on the context model.
[0114] The fifth preset value may be 1, or the fifth preset value may be 0. When the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded may be set to 1; when the target parameter corresponding to the point to be encoded is not the first preset value, the second identifier corresponding to the point to be encoded may be set to 0; or, when the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded may be set to 0; when the target parameter corresponding to the point to be encoded is not the first preset value, the second identifier corresponding to the point to be encoded may be set to 1.
[0115] In this implementation, when it is determined that the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded is set to the fifth preset value, and the second identifier is encoded based on the context model, so that the target parameter of the fifth preset value can be identified by the second identifier, so that the decoding end can determine whether the target parameter is the fifth preset value through the second identifier.
[0116] 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:
[0117] Step 201: When it is determined that the target parameter corresponding to the point to be decoded is a first preset value, entropy decoding is performed on the first encoding result in the attribute code stream of the point to be decoded to obtain an attribute residual, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero;
[0118] Step 202: When it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value, decode the second encoding result in the attribute code stream to obtain the target parameter.
[0119] Optionally, the decoding the second encoding result in the attribute code stream to obtain the target parameter includes:
[0120] Decoding the second encoding result in the attribute code stream based on a preset decoding algorithm to obtain a decoded value, wherein the prefix code and the suffix code of the decoded value are each assigned k context models, where k is an integer greater than or equal to 1;
[0121] The target parameter is determined based on the decoded value.
[0122] Optionally, the target parameter is the decoded value, or the target parameter is the sum of the decoded value and a second preset value.
[0123] Optionally, the preset decoding algorithm is a second-order exponential Golomb decoding algorithm.
[0124] Optionally, when it is determined that the target parameter corresponding to the point to be decoded is not the first preset value, decoding the second encoding result in the attribute code stream includes:
[0125] When it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value and when it is determined that the target parameter is not the third preset value, the second encoding result in the attribute code stream is decoded.
[0126] Optionally, the method further comprises:
[0127] Decoding the first identifier corresponding to the point to be decoded based on the context model;
[0128] In a case where the first identifier obtained by decoding is a fourth preset value, determining the target parameter to be the third preset value; or
[0129] When the first identifier obtained by decoding is not the fourth preset value, it is determined that the target parameter is not the third preset value.
[0130] Optionally, the method further comprises:
[0131] Decoding the second identifier corresponding to the point to be decoded based on the context model;
[0132] In a case where the second identifier obtained by decoding is the fifth preset value, determining that the target parameter corresponding to the point to be decoded is the first preset value; or
[0133] When the second identifier obtained by decoding is not the fifth preset value, it is determined that the target parameter corresponding to the point to be decoded is not the first preset value.
[0134] It should be noted that this embodiment is Figure 3 The corresponding decoding side implementation in the embodiment shown in the figure can be found in the specific implementation. Figure 3 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.
[0135] The point cloud encoding processing method and the point cloud decoding processing method of the embodiment of the present application are described below through two specific embodiments:
[0136] Embodiment 1:
[0137] In this embodiment, encoding attribute residuals (such as attribute prediction residuals or attribute transformation coefficients or attribute transformation coefficient residuals) at the encoding end includes the following process:
[0138] First, traverse the attribute residuals of the points to be encoded, and count the number of points with continuous attribute residual values of 0, run_length. Run_length can be described as the zero run value of the attribute residual, that is, the number of attribute residuals that are continuously distributed as zero. If the attribute residual is non-zero, the run_length value is encoded. The process of encoding the run_length value is as follows:
[0139] Step (11): First determine whether the current runlength is 0, and use zero_run_length_equal_zero as the flag. Use the context model to encode the flag. If the current runlength value is 0, the encoding ends;
[0140] Step (12): If the current runlength value is not 0, runlength-1 is encoded using the 2nd-order exponential Golomb coding algorithm;
[0141] Among them, after runlength-1 is binarized using a second-order exponential Golomb coding algorithm, k (k>=1) context models are respectively assigned to the prefix code and the suffix code of the binarized value.
[0142] Step (13): After encoding the run_length value, encode the current non-zero attribute residual value.
[0143] Repeat the above steps (11) to (13), continuously perform entropy coding on the attribute residual, and finally obtain the attribute code stream.
[0144] In this embodiment, the decoding end decodes the attribute residual including the following process:
[0145] Step (21): Decode zero_run_length_equal_zero from the attribute code stream. If the decoded value of the zero_run_length_equal_zero flag is equal to 1, the attribute residual zero run value run_length is equal to 0, and runlength decoding is completed.
[0146] Step (22): If the decoded value of the zero_run_length_equal_zero flag is equal to 0, indicating that the attribute residual zero run value run_length is not equal to 0, then the second-order exponential Golomb decoding algorithm is used to decode runlength-1, and runlength decoding is completed; wherein, after the second-order exponential Golomb binarization, the prefix code and the suffix code are each assigned k (k>=1) context models.
[0147] Step (23): After the runlength value is decoded, decode the current non-zero attribute residual value.
[0148] Repeat the above steps (21) to (23), continuously perform entropy decoding on the attribute residual, dequantize and compensate the decoded attribute residual, and finally obtain the attribute information.
[0149] Embodiment 2:
[0150] In this embodiment, encoding attribute residuals (such as attribute prediction residuals or attribute transformation coefficients or attribute transformation coefficient residuals) at the encoding end includes the following process:
[0151] First, traverse the attribute residuals of the points to be encoded, and count the number of points with continuous attribute residual values of 0, run_length. Run_length can be described as the zero run value of the attribute residual, that is, the number of attribute residuals that are continuously distributed as zero. If the attribute residual is non-zero, the run_length value is encoded. The process of encoding the run_length value is as follows:
[0152] Step (31): First determine whether the current runlength is 0, and use zero_run_length_equal_zero as the flag. Use the context model to encode the flag. If the current runlength value is 0, the encoding ends;
[0153] Step (32): If the current runlength value is not 0, determine whether the current runlength value is 1, and use zero_run_length_equal_one as the flag identifier. Use the context model to encode the flag. If the current runlength value is 0, the encoding ends;
[0154] Step (33): If the current runlength value is not 1, then runlength-2 is encoded using the 2nd-order exponential Golomb coding algorithm.
[0155] Among them, after the runlength-2 is binarized using the second-order exponential Golomb coding algorithm, k (k>=1) context models are respectively assigned to the prefix code and the suffix code of the binarized value.
[0156] Step (34): After the runlength value is encoded, encode the current non-zero attribute residual value.
[0157] Repeat the above steps (31) to (34), continuously perform entropy coding on the attribute residual, and finally obtain the attribute code stream.
[0158] In this embodiment, the decoding end decodes the attribute residual including the following process:
[0159] Step (41): Decode zero_run_length_equal_zero from the attribute code stream. If the decoded value of the zero_run_length_equal_zero flag is equal to 1, the attribute residual zero run value run_length is equal to 0, and runlength decoding is completed.
[0160] Step (42): If the decoded value of the zero_run_length_equal_zero flag is equal to 0, it means that the attribute residual zero run value run_length is not equal to 0; then continue to decode zero_run_length_equal_one; if the decoded value of the zero_run_length_equal_one flag is equal to 1, the attribute residual zero run value is equal to 1, and the decoding is completed;
[0161] Step (43): If the decoded value of the zero_run_length_equal_one flag is equal to 0, indicating that the attribute residual zero run value is not equal to 1, then the second-order exponential Golomb decoding algorithm is used to decode runlength-2, and the runlength decoding is completed; wherein, after the second-order exponential Golomb binarization, the prefix code and the suffix code are each assigned k (k>=1) context models.
[0162] Step (44): After the runlength value is decoded, the current non-zero attribute residual value is decoded.
[0163] Repeat the above steps (41) to (44), continuously perform entropy decoding on the attribute residual, dequantize and compensate the decoded attribute residual, and finally obtain the attribute information.
[0164] like Figure 6 and Figure 7 As shown, the attribute run-length encoding and decoding method of the embodiment of the present application can simplify the encoding process and improve the encoding efficiency compared with the AVS PCRM V10.0 technology.
[0165] Figure 6 and Figure 7 In the figure, the first vertical column is the point cloud sequence name, for example: bicycle_vox13, building_vox13, caiman_vox15, candlestick_vox13, casket_vox14 and chair_vox12, etc. The AVSC2_ai and AVSC3_ai parameters represent the point cloud coding test conditions. AVSC2 represents lossless coding of geometric positions and lossy coding of attributes; AVSC3 represents lossless coding of geometric positions and limited lossy coding of attributes. The geometric coding parameters of geometric lossless coding are as follows: geom_remove_dup_flag = 0, that is, duplicate points are not removed; geom_quant_step = 1, that is, geometric coordinates are not quantized. The attribute coding parameters of limited lossy coding of attributes are as follows: color_transform_flag = 0, that is, no conversion from RGB to YUV is performed; the setting of attribute quantization parameters is obtained according to Table 3, and a total of 5 bit rate points are set, R1-R5, with decreasing quantization damage.
[0166] Table 3 Attribute quantization parameters with limited lossy attributes
[0167]
[0168] The attribute encoding parameters of the attribute lossy encoding are as follows: color_transform_flag = 1, that is, RGB to YUV conversion is required; the setting of the attribute quantization parameter is obtained according to Table 4, a total of 6 bit rate points are set, R1-R6, the quantization loss decreases, and the same quantization parameter is used for brightness and chrominance.
[0169] Table 4 Lossy attribute quantization parameters
[0170]
[0171] Figure 6 and Figure 7In the figure, BD-AttrRate represents the point cloud attribute quality distortion assessment parameter, and luma, ChromaCb, ChromaCr and Color are the attribute components. If the BD-AttrRate parameter is a negative value, it means that under the test conditions of AVSC2_ai and AVSC3_ai, the point cloud comprehensive quality generated by encoding the point cloud using this embodiment is higher than the point cloud comprehensive quality generated by encoding using the AVS PCRM V10.0 technology.
[0172] 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.
[0173] See also Figure 8 , Figure 8 is a structural diagram of a point cloud coding processing device provided in an embodiment of the present application, such as Figure 8 As shown, the point cloud coding processing device 300 includes:
[0174] An acquisition module 301 is used to acquire the attribute residual of the attribute information of the point to be encoded;
[0175] A first encoding module 302 is used to perform entropy encoding on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result when it is determined that the target parameter corresponding to the point to be encoded is a first preset value, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero;
[0176] A second encoding module 303 is used to encode the to-be-encoded value corresponding to the target parameter to obtain a second encoding result when it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value;
[0177] The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
[0178] Optionally, when it is determined that the target parameter corresponding to the point to be encoded is not the first preset value, the second encoding module is specifically configured to:
[0179] Binarizing a value to be encoded, wherein the value to be encoded is determined based on the target parameter;
[0180] Encoding the value to be encoded after the binarization process based on a preset encoding algorithm;
[0181] In the process of encoding the binarized value to be encoded based on a preset encoding algorithm, the prefix code and the suffix code of the binarized value to be encoded are each assigned k context models, where k is an integer greater than or equal to 1.
[0182] Optionally, the value to be encoded is the target parameter, or the value to be encoded is a difference between the target parameter and a second preset value.
[0183] Optionally, the preset coding algorithm is a second-order exponential Golomb coding algorithm.
[0184] Optionally, the second encoding module is specifically used to:
[0185] When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is not the third preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result.
[0186] Optionally, the second encoding module is further used to:
[0187] When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is the third preset value, the first identifier corresponding to the point to be encoded is set to the fourth preset value and the first identifier is encoded based on the context model.
[0188] Optionally, the first encoding module is further configured to:
[0189] When it is determined that the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded is set to a fifth preset value, and the second identifier is encoded based on the context model.
[0190] 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.
[0191] The point cloud coding processing device provided in the embodiment of the present application can achieve Figure 3 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0192] 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.
[0193] See also Fig. 9 , Fig. 9 is a structural diagram of a point cloud decoding processing device provided in an embodiment of the present application, such as Fig. 9 As shown, the point cloud decoding processing device 400 includes:
[0194] A first decoding module 401 is used to perform entropy decoding on a first encoding result in an attribute code stream of a point to be decoded to obtain an attribute residual when it is determined that a target parameter corresponding to the point to be decoded is a first preset value, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero;
[0195] The second decoding module 402 is used to decode the second encoding result in the attribute code stream to obtain the target parameter when it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value.
[0196] Optionally, when it is determined that the target parameter corresponding to the point to be decoded is not the first preset value, the second decoding module is specifically configured to:
[0197] Decoding the second encoding result in the attribute code stream based on a preset decoding algorithm to obtain a decoded value, wherein the prefix code and the suffix code of the decoded value are each assigned k context models, where k is an integer greater than or equal to 1;
[0198] The target parameter is determined based on the decoded value.
[0199] Optionally, the target parameter is the decoded value, or the target parameter is the sum of the decoded value and a second preset value.
[0200] Optionally, the preset decoding algorithm is a second-order exponential Golomb decoding algorithm.
[0201] Optionally, the second decoding module is specifically configured to:
[0202] When it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value and when it is determined that the target parameter is not the third preset value, the second encoding result in the attribute code stream is decoded.
[0203] Optionally, the second decoding module is further configured to:
[0204] Decoding the first identifier corresponding to the point to be decoded based on the context model;
[0205] In a case where the first identifier obtained by decoding is a fourth preset value, determining the target parameter to be the third preset value; or
[0206] When the first identifier obtained by decoding is not the fourth preset value, it is determined that the target parameter is not the third preset value.
[0207] Optionally, the first decoding module is further configured to:
[0208] Decoding the second identifier corresponding to the point to be decoded based on the context model;
[0209] In a case where the second identifier obtained by decoding is the fifth preset value, determining that the target parameter corresponding to the point to be decoded is the first preset value; or
[0210] When the second identifier obtained by decoding is not the fifth preset value, it is determined that the target parameter corresponding to the point to be decoded is not the first preset value.
[0211] 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.
[0212] 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.
[0213] Alternatively, if Fig.10As 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.
[0214] The embodiment of the present application also provides a terminal, including a processor and a communication interface, wherein the processor is used to: obtain the attribute residual of the attribute information of the to-be-encoded point; when it is determined that the target parameter corresponding to the to-be-encoded point is a first preset value, entropy encode the attribute residual of the attribute information of the to-be-encoded point to obtain a first encoding result, wherein the target parameter is used to indicate the continuous statistical value of the to-be-encoded point with zero attribute residual; when it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value, encode the to-be-encoded value corresponding to the target parameter to obtain a second encoding result; wherein the attribute code stream of the to-be-encoded point includes the first encoding result or the second encoding result. Alternatively, the processor is used to: when it is determined that the target parameter corresponding to the to-be-decoded point is a first preset value, entropy decode the first encoding result in the attribute code stream of the to-be-decoded point to obtain the attribute residual, wherein the target parameter is used to indicate the continuous statistical value of the to-be-decoded point with zero attribute residual; when it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value, decode the second encoding result in the attribute code stream to obtain the target parameter. 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.11 A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.
[0215] 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.
[0216] 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.11 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.
[0217] 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.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] Wherein, when the terminal is a coding terminal:
[0222] The processor 610 is configured to:
[0223] Get the attribute residual of the attribute information of the point to be coded;
[0224] When it is determined that the target parameter corresponding to the point to be encoded is a first preset value, entropy encoding is performed on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero;
[0225] When it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value, encoding the to-be-encoded value corresponding to the target parameter to obtain a second encoding result;
[0226] The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
[0227] Optionally, the processor 610 is specifically configured to:
[0228] Binarizing a value to be encoded, wherein the value to be encoded is determined based on the target parameter;
[0229] Encoding the value to be encoded after the binarization process based on a preset encoding algorithm;
[0230] In the process of encoding the binarized value to be encoded based on a preset encoding algorithm, the prefix code and the suffix code of the binarized value to be encoded are each assigned k context models, where k is an integer greater than or equal to 1.
[0231] Optionally, the value to be encoded is the target parameter, or the value to be encoded is a difference between the target parameter and a second preset value.
[0232] Optionally, the preset coding algorithm is a second-order exponential Golomb coding algorithm.
[0233] Optionally, the processor 610 is specifically configured to:
[0234] When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is not the third preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result.
[0235] Optionally, the processor 610 is further configured to:
[0236] When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is the third preset value, the first identifier corresponding to the point to be encoded is set to the fourth preset value and the first identifier is encoded based on the context model.
[0237] Optionally, the processor 610 is further configured to:
[0238] When it is determined that the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded is set to a fifth preset value, and the second identifier is encoded based on the context model.
[0239] Wherein, when the terminal is a decoding terminal:
[0240] The processor 610 is configured to:
[0241] When it is determined that the target parameter corresponding to the point to be decoded is a first preset value, entropy decoding is performed on the first encoding result in the attribute code stream of the point to be decoded to obtain an attribute residual, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero;
[0242] When it is determined that the target parameter corresponding to the point to be decoded is not the first preset value, the second encoding result in the attribute code stream is decoded to obtain the target parameter.
[0243] Optionally, the processor 610 is specifically configured to:
[0244] Decoding the second encoding result in the attribute code stream based on a preset decoding algorithm to obtain a decoded value, wherein the prefix code and the suffix code of the decoded value are each assigned k context models, where k is an integer greater than or equal to 1;
[0245] The target parameter is determined based on the decoded value.
[0246] Optionally, the target parameter is the decoded value, or the target parameter is the sum of the decoded value and a second preset value.
[0247] Optionally, the preset decoding algorithm is a second-order exponential Golomb decoding algorithm.
[0248] Optionally, the processor 610 is specifically configured to:
[0249] When it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value and when it is determined that the target parameter is not the third preset value, the second encoding result in the attribute code stream is decoded.
[0250] Optionally, the processor 610 is further configured to:
[0251] Decoding the first identifier corresponding to the point to be decoded based on the context model;
[0252] In a case where the first identifier obtained by decoding is a fourth preset value, determining the target parameter to be the third preset value; or
[0253] When the first identifier obtained by decoding is not the fourth preset value, it is determined that the target parameter is not the third preset value.
[0254] Optionally, the processor 610 is specifically configured to:
[0255] Decoding the second identifier corresponding to the point to be decoded based on the context model;
[0256] In a case where the second identifier obtained by decoding is the fifth preset value, determining that the target parameter corresponding to the point to be decoded is the first preset value; or
[0257] When the second identifier obtained by decoding is not the fifth preset value, it is determined that the target parameter corresponding to the point to be decoded is not the first preset value.
[0258] 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 8 or Fig. 9 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.
[0259] 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.
[0260] 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.
[0261] 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.
[0262] 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.
[0263] 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.
[0264] 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.
[0265] 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.
[0266] 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.
[0267] 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: Get the attribute residual of the attribute information of the point to be coded; When it is determined that the target parameter corresponding to the point to be encoded is a first preset value, entropy encoding is performed on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero; When it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value, encoding the to-be-encoded value corresponding to the target parameter to obtain a second encoding result; The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
2. The method according to claim 1, characterized in that The encoding of the to-be-encoded value corresponding to the target parameter includes: Binarizing a value to be encoded, wherein the value to be encoded is determined based on the target parameter; Encoding the value to be encoded after the binarization process based on a preset encoding algorithm; In the process of encoding the binarized value to be encoded based on a preset encoding algorithm, the prefix code and the suffix code of the binarized value to be encoded are each assigned k context models, where k is an integer greater than or equal to 1.
3. The method according to claim 2, characterized in that The value to be encoded is the target parameter, or the value to be encoded is the difference between the target parameter and a second preset value.
4. The method according to claim 2 or 3, characterized in that: The preset coding algorithm is a second-order exponential Golomb coding algorithm.
5. The method according to any one of claims 1 to 4, characterized in that The step of encoding the value to be encoded corresponding to the target parameter to obtain a second encoding result comprises: When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is not the third preset value, the value to be encoded corresponding to the target parameter is encoded to obtain a second encoding result.
6. The method according to claim 5, characterized in that The method further comprises: When it is determined that the target parameter corresponding to the point to be encoded is not the first preset value and when it is determined that the target parameter is the third preset value, the first identifier corresponding to the point to be encoded is set to the fourth preset value and the first identifier is encoded based on the context model.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When it is determined that the target parameter corresponding to the point to be encoded is the first preset value, the second identifier corresponding to the point to be encoded is set to a fifth preset value, and the second identifier is encoded based on the context model.
8. A point cloud decoding processing method, executed by a decoding end, characterized in that: include: When it is determined that the target parameter corresponding to the point to be decoded is a first preset value, entropy decoding is performed on the first encoding result in the attribute code stream of the point to be decoded to obtain an attribute residual, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero; When it is determined that the target parameter corresponding to the point to be decoded is not the first preset value, the second encoding result in the attribute code stream is decoded to obtain the target parameter.
9. The method according to claim 8, characterized in that The decoding of the second encoding result in the attribute code stream to obtain the target parameter includes: Decoding the second encoding result in the attribute code stream based on a preset decoding algorithm to obtain a decoded value, wherein the prefix code and the suffix code of the decoded value are each assigned k context models, where k is an integer greater than or equal to 1; The target parameter is determined based on the decoded value.
10. The method according to claim 9, characterized in that The target parameter is the decoded value, or the target parameter is the sum of the decoded value and a second preset value.
11. The method according to claim 9 or 10, characterized in that: The preset decoding algorithm is a second-order exponential Golomb decoding algorithm.
12. The method according to any one of claims 8 to 11, characterized in that The step of decoding the second encoding result in the attribute code stream when it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value includes: When it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value and when it is determined that the target parameter is not the third preset value, the second encoding result in the attribute code stream is decoded.
13. The method according to claim 12, characterized in that The method further comprises: Decoding the first identifier corresponding to the point to be decoded based on the context model; In a case where the first identifier obtained by decoding is a fourth preset value, determining the target parameter to be the third preset value; or When the first identifier obtained by decoding is not the fourth preset value, it is determined that the target parameter is not the third preset value.
14. The method according to any one of claims 8 to 13, characterized in that: The method further comprises: Decoding the second identifier corresponding to the point to be decoded based on the context model; In a case where the second identifier obtained by decoding is the fifth preset value, determining that the target parameter corresponding to the point to be decoded is the first preset value; or When the second identifier obtained by decoding is not the fifth preset value, it is determined that the target parameter corresponding to the point to be decoded is not the first preset value.
15. A point cloud coding processing device, characterized in that: include: An acquisition module, used to obtain the attribute residual of the attribute information of the point to be coded; A first encoding module is used to perform entropy encoding on the attribute residual of the attribute information of the point to be encoded to obtain a first encoding result when it is determined that the target parameter corresponding to the point to be encoded is a first preset value, wherein the target parameter is used to indicate a continuous statistical value of the point to be encoded whose attribute residual is zero; A second encoding module is used to encode the to-be-encoded value corresponding to the target parameter to obtain a second encoding result when it is determined that the target parameter corresponding to the to-be-encoded point is not the first preset value; The attribute code stream of the point to be encoded includes the first encoding result or the second encoding result.
16. A point cloud decoding processing device, characterized in that: include: A first decoding module is used to perform entropy decoding on a first encoding result in an attribute code stream of the point to be decoded to obtain an attribute residual when it is determined that a target parameter corresponding to the point to be decoded is a first preset value, wherein the target parameter is used to indicate a continuous statistical value of the point to be decoded whose attribute residual is zero; The second decoding module is used to decode the second encoding result in the attribute code stream to obtain the target parameter when it is determined that the target parameter corresponding to the to-be-decoded point is not the first preset value.
17. 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 as described in any one of claims 1 to 7 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 8 to 14 are implemented.
18. 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 7 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 8 to 14 are implemented.
Citation Information
Cited By
Encoding method, decoding method, encoder, decoder, storage medium, and bitstream
WO2026152371A1
