Point cloud attribute encoding method, device, decoding method, device and related equipment

By sorting and grouping point cloud data, and using transformation matrices to transform the coding group and predict DC coefficients, the problem that RAHT coding cannot reflect the characteristics of multi-point relationships is solved and the point cloud attribute compression performance is improved.

CN115086672BActive Publication Date: 2024-08-23PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110264409.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-11
Publication Date
2024-08-23
Estimated Expiration
2041-03-11

AI Technical Summary

Technical Problem

When performing point cloud compression and coding through RAHT in the existing technology, the transformation is only for two points, which cannot effectively reflect the relationship characteristics between multiple points, limiting the compression and coding performance.

Method used

Sort and group the point cloud data to be coded, use the transformation matrix to transform the coding group, obtain DC coefficients and AC coefficients, and use the DC coefficient prediction values ​​to implement point cloud attribute coding, reduce redundant information, and improve coding performance.

Benefits of technology

Each transformation targets multiple points to better reflect the relationship characteristics between multiple points and improve the point cloud attribute compression effect and coding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086672B
    Figure CN115086672B
Patent Text Reader

Abstract

The present invention discloses a point cloud attribute encoding method, device, decoding method, device and related equipment, wherein the point cloud attribute encoding method comprises: sorting and grouping the point cloud data to be encoded to obtain the group to be encoded, wherein the point cloud data to be encoded is the point cloud data of the attribute to be encoded; transforming each of the groups to be encoded based on the transformation matrix to obtain the transformation coefficient, wherein the transformation coefficient includes the DC coefficient and the AC coefficient; respectively obtaining the DC coefficient prediction value of each of the groups to be encoded, and realizing the point cloud attribute encoding of each of the groups to be encoded based on the DC coefficient prediction value and the transformation coefficient. Compared with the prior art, the scheme of the present invention is conducive to improving the encoding performance and obtaining a better point cloud attribute compression effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a point cloud attribute encoding method, device, decoding method, device and related equipment. Background Art

[0002] With the rapid development of science and technology, technologies such as 3D reconstruction have been increasingly widely used. 3D point cloud is an important form of digitalization of the real world. With the rapid development of 3D scanning equipment (such as laser, radar, etc.), the accuracy and resolution of point cloud have become higher. Point cloud is obtained by sampling the surface of an object with 3D scanning equipment. The number of points in a frame of point cloud is generally in the millions, and each point contains geometric information and attribute information such as color and reflectivity. The amount of data is huge. Therefore, it is very important to compress and encode and decode the point cloud.

[0003] In the prior art, point clouds are usually compressed and encoded and decoded by using the region-adaptive hierarchical transform (RAHT) method. When encoding, the attributes of the points are forward transformed into transform coefficients, then the transform coefficients are quantized, and then the quantized coefficients are adaptively entropy encoded. When decoding, adaptive entropy decoding is first performed to obtain the quantized coefficients, then inverse quantization is performed to obtain the transform coefficients, and then the RAHT inverse transform is used to generate the reconstructed attribute values ​​of the points. The problem with the prior art is that the transformation based on RAHT for compression encoding is a multiple one-dimensional transformation, and each transformation is only for two points, which cannot well reflect the relationship characteristics between multiple points, limiting the compression coding performance.

[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention

[0005] The main purpose of the present invention is to provide a point cloud attribute encoding method, device, decoding method, device and related equipment, aiming to solve the problem that the transformation during compression encoding through RAHT in the prior art is only for two points each time, which cannot well reflect the relationship characteristics between multiple points and limits the compression coding performance.

[0006] In order to achieve the above object, the present invention provides a point cloud attribute encoding method in a first aspect, wherein the method comprises:

[0007] Sorting and grouping the point cloud data to be encoded to obtain a group to be encoded, wherein the point cloud data to be encoded is point cloud data with attributes to be encoded;

[0008] Based on the transformation matrix, each of the above-mentioned groups to be encoded is transformed to obtain transformation coefficients, wherein the above-mentioned transformation coefficients include direct current coefficients and alternating current coefficients;

[0009] The DC coefficient prediction values ​​of each of the above-mentioned groups to be encoded are obtained respectively, and the point cloud attribute encoding of each of the above-mentioned groups to be encoded is implemented based on the above-mentioned DC coefficient prediction values ​​and the above-mentioned transformation coefficients.

[0010] Optionally, the above-mentioned sorting and grouping of the point cloud data to be encoded to obtain the group to be encoded includes:

[0011] Arrange the above-mentioned point cloud data to be encoded from three dimensions to one dimension according to a preset rule to obtain a reordered point cloud sequence;

[0012] Based on the above reordered point cloud sequence, the point clouds are grouped in sequence to obtain groups to be encoded.

[0013] Optionally, the transformation matrix is ​​a one-dimensional K-order transformation matrix, where K is the number of points in the group to be encoded.

[0014] Optionally, the above-mentioned obtaining the DC coefficient prediction value of each of the above-mentioned groups to be encoded respectively, and implementing the point cloud attribute encoding of each of the above-mentioned groups to be encoded based on the DC coefficient prediction value and the above-mentioned transform coefficient, includes:

[0015] Obtain the position of each of the above groups to be encoded;

[0016] Based on the position of each of the above-mentioned groups to be encoded and the position of the encoded geometric point, respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be encoded;

[0017] Calculate the residual between the DC coefficient prediction value and the DC coefficient as the DC coefficient residual;

[0018] Based on the DC coefficient residual and the AC coefficient, the point cloud attribute encoding of each of the above-mentioned groups to be encoded is achieved.

[0019] Optionally, the step of encoding the point cloud attributes of each of the groups to be encoded based on the DC coefficient residual and the AC coefficient includes:

[0020] quantizing the DC coefficient residual and the AC coefficient to obtain a quantized DC coefficient residual and a quantized AC coefficient;

[0021] The quantized DC coefficient residual and the quantized AC coefficient are entropy encoded to achieve point cloud attribute encoding of the group to be encoded.

[0022] A second aspect of the present invention provides a point cloud attribute encoding device, wherein the device comprises:

[0023] A grouping module, used for sorting and grouping the above-mentioned point cloud data to be encoded to obtain a group to be encoded, wherein the above-mentioned point cloud data to be encoded is point cloud data of attributes to be encoded;

[0024] A transformation coefficient acquisition module, used to transform each of the above-mentioned groups to be encoded based on a transformation matrix to obtain transformation coefficients, wherein the above-mentioned transformation coefficients include direct current coefficients and alternating current coefficients;

[0025] The encoding module is used to respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be encoded, and to implement point cloud attribute encoding for each of the above-mentioned groups to be encoded based on the above-mentioned DC coefficient prediction value and the above-mentioned transformation coefficient.

[0026] A third aspect of the present invention provides a point cloud attribute decoding method, wherein the method comprises:

[0027] Sorting and grouping the above-mentioned point cloud data to be decoded to obtain a group to be decoded, wherein the above-mentioned point cloud data to be decoded is point cloud data with attributes to be decoded;

[0028] Perform inverse entropy coding and inverse quantization based on each of the above groups to be decoded, to obtain a reconstructed DC coefficient residual and a reconstructed AC coefficient of each of the above groups to be decoded;

[0029] The DC coefficient prediction values ​​of each of the above-mentioned groups to be decoded are obtained respectively, and the point cloud attribute decoding of each of the above-mentioned point cloud data to be decoded is implemented based on the above-mentioned DC coefficient prediction values, the above-mentioned reconstructed DC coefficient residuals and the above-mentioned reconstructed AC coefficients.

[0030] A fourth aspect of the present invention provides a point cloud attribute decoding device, wherein the device comprises:

[0031] A grouping module, used for sorting and grouping the above-mentioned point cloud data to be decoded to obtain a group to be decoded, wherein the above-mentioned point cloud data to be decoded is point cloud data with attributes to be decoded;

[0032] A reconstruction coefficient acquisition module, used for performing inverse entropy coding and inverse quantization based on each of the above groups to be decoded, and obtaining a reconstructed DC coefficient residual and a reconstructed AC coefficient of each of the above groups to be decoded;

[0033] The decoding module is used to respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be decoded, and to decode the point cloud attributes of each of the above-mentioned point cloud data to be decoded based on the above-mentioned DC coefficient prediction value, the above-mentioned reconstructed DC coefficient residual and the above-mentioned reconstructed AC coefficient.

[0034] A fifth aspect of the present invention provides an intelligent terminal, which includes a memory, a processor, and a point cloud attribute decoding program stored in the memory and executable on the processor. When the point cloud attribute decoding program is executed by the processor, any step of the point cloud attribute decoding method is implemented.

[0035] A sixth aspect of the present invention provides a computer-readable storage medium, on which a point cloud attribute decoding program is stored. When the point cloud attribute decoding program is executed by a processor, any step of the point cloud attribute decoding method is implemented.

[0036] As can be seen from the above, the scheme of the present invention sorts and groups the point cloud data to be encoded to obtain the group to be encoded, wherein the above point cloud data to be encoded is the point cloud data whose attributes are to be encoded; based on the transformation matrix, each of the above groups to be encoded is transformed to obtain the transformation coefficient, wherein the above transformation coefficient includes the DC coefficient and the AC coefficient; the DC coefficient prediction value of each of the above groups to be encoded is obtained respectively, and the point cloud attribute encoding of each of the above groups to be encoded is realized based on the DC coefficient prediction value and the transformation coefficient. Compared with the prior art, in the scheme of the present invention, the point cloud data to be encoded is grouped and then the group to be encoded is transformed, and each transformation can be for multiple points to better reflect the relationship characteristics between multiple points; and for the DC coefficients with high correlation between the groups to be encoded, the corresponding redundant information is reduced by the prediction method, which is conducive to improving the encoding performance and obtaining a better point cloud attribute compression effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0038] Figure 1 It is a flowchart of a point cloud attribute encoding method provided by an embodiment of the present invention;

[0039] Figure 2 Embodiment of the present invention Figure 1 Specific flow diagram of step S100;

[0040] Figure 3 is a schematic diagram of a group to be encoded provided by an embodiment of the present invention;

[0041] Figure 4 Embodiment of the present invention Figure 1 Specific flow diagram of step S300;

[0042] Figure 5 Embodiment of the present invention Figure 4 Specific flow diagram of step S304;

[0043] Figure 6 It is a schematic flow chart of a point cloud attribute encoding method provided with an encoding residual processing step provided in an embodiment of the present invention;

[0044] Figure 7 It is a structural schematic diagram of a point cloud attribute encoding device provided by an embodiment of the present invention;

[0045] Figure 8 It is a flowchart of a point cloud attribute decoding method provided by an embodiment of the present invention;

[0046] Fig. 9 It is a schematic flow chart of a point cloud attribute decoding method provided with a decoding residual processing step provided in an embodiment of the present invention;

[0047] Fig.10 It is a structural schematic diagram of a point cloud attribute decoding device provided by an embodiment of the present invention;

[0048] Fig.11 It is a block diagram of the internal structure principle of an intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0050] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0051] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0052] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0053] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0054] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0056] With the rapid development of science and technology, technologies such as three-dimensional reconstruction have been increasingly widely used. Three-dimensional point clouds are an important form of digitalization of the real world. With the rapid development of three-dimensional scanning equipment (such as lasers, radars, etc.), the accuracy and resolution of point clouds have become higher. High-precision point clouds are widely used in the construction of digital city maps, and play a technical supporting role in many popular research projects such as smart cities, unmanned driving, and cultural relics protection. Point clouds are obtained by sampling the surface of objects with three-dimensional scanning equipment. The number of points in a frame of point cloud is generally in the millions, and each point contains geometric information and attribute information such as color and reflectivity. The amount of data is very large. The huge amount of data in three-dimensional point clouds brings huge challenges to data storage and transmission, so it is very important to compress point clouds.

[0057] Point cloud compression is mainly divided into geometric compression and attribute compression. In the prior art, the attributes of the points are usually forward transformed into transformation coefficients through RAHT encoding, and then the transformation coefficients are quantized, and then the quantized coefficients are adaptively entropy encoded. During decoding, adaptive entropy decoding is first performed to obtain the quantized coefficients, and then inverse quantization is performed to obtain the transformation coefficients, and then the RAHT inverse transformation is used to generate the reconstructed attribute values ​​of the points. RAHT is designed based on one-dimensional transformation. It is a multiple one-dimensional transformation. Each transformation is only for two points, which cannot well reflect the relationship characteristics between multiple points and limits the compression coding performance. And its transformation order in three-dimensional space will affect the final algorithm performance. For example, in three-dimensional space, the current RAHT method transforms in the order of first x direction, then y direction, and finally z direction, but this is not the best solution. Therefore, it is necessary to provide a better point cloud attribute encoding and corresponding point cloud attribute decoding scheme to improve the point cloud compression performance and obtain better compression effect.

[0058] In order to solve the problems of the prior art, the present invention provides a point cloud attribute encoding method. In an embodiment of the present invention, the point cloud data to be encoded are sorted and grouped to obtain a group to be encoded, wherein the point cloud data to be encoded is point cloud data with attributes to be encoded; each of the groups to be encoded is transformed based on a transformation matrix to obtain a transformation coefficient, wherein the transformation coefficient includes a DC coefficient and an AC coefficient; a DC coefficient prediction value of each of the groups to be encoded is obtained, and point cloud attribute encoding of each of the groups to be encoded is implemented based on the DC coefficient prediction value and the transformation coefficient. Compared with the prior art, in the scheme of the present invention, the point cloud data to be encoded are grouped and then the groups to be encoded are transformed. Each transformation can target multiple points and better reflect the relationship characteristics between multiple points; and for DC coefficients with high correlation between the groups to be encoded, the corresponding redundant information is reduced by a prediction method, which is beneficial to improving the encoding performance and obtaining a better point cloud attribute compression effect.

[0059] like Figure 1 As shown, an embodiment of the present invention provides a point cloud attribute encoding method. Specifically, the method includes the following steps:

[0060] Step S100, sorting and grouping the point cloud data to be encoded to obtain a group to be encoded, wherein the point cloud data to be encoded is point cloud data with attributes to be encoded.

[0061] Specifically, after obtaining the point cloud data to be encoded, the point cloud data to be encoded is sorted and grouped. The point cloud data to be encoded is point cloud data that needs to be attribute compressed and encoded. Point cloud encoding mainly includes geometric encoding and attribute encoding. In the embodiment of the present invention, point cloud attribute encoding is mainly implemented, for example, encoding the color attribute of the point cloud.

[0062] Step S200: transform each of the above-mentioned groups to be encoded based on a transformation matrix to obtain transformation coefficients, wherein the above-mentioned transformation coefficients include direct current coefficients and alternating current coefficients.

[0063] The above transformation matrix may be a pre-set matrix, or may be set and adjusted according to actual needs, which is not specifically limited here.

[0064] Step S300, respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be encoded, and implement point cloud attribute encoding for each of the above-mentioned groups to be encoded based on the DC coefficient prediction value and the above-mentioned transformation coefficient.

[0065] Specifically, for each group to be encoded, a transformation is performed respectively to obtain the transformation coefficient of the group to be encoded, and further, a DC coefficient prediction value of the group to be encoded is obtained, and the point cloud attribute encoding of the group to be encoded is implemented based on the corresponding DC coefficient prediction value and the transformation coefficient. Optionally, point cloud attribute encoding can be performed on each group to be encoded in turn according to the above steps S200 and S300.

[0066] As can be seen from the above, the point cloud attribute encoding method provided in the embodiment of the present invention sorts and groups the point cloud data to be encoded to obtain the group to be encoded, wherein the above-mentioned point cloud data to be encoded is the point cloud data whose attributes are to be encoded; based on the transformation matrix, each of the above-mentioned groups to be encoded is transformed to obtain the transformation coefficient, wherein the above-mentioned transformation coefficient includes the DC coefficient and the AC coefficient; the DC coefficient prediction value of each of the above-mentioned groups to be encoded is obtained respectively, and the point cloud attribute encoding of each of the above-mentioned groups to be encoded is realized based on the DC coefficient prediction value and the transformation coefficient. Compared with the prior art, in the scheme of the present invention, the point cloud data to be encoded is grouped and then the group to be encoded is transformed, and each transformation can be for multiple points to better reflect the relationship characteristics between multiple points; and for the DC coefficients with high correlation between the groups to be encoded, the corresponding redundant information is reduced by the prediction method, which is conducive to improving the encoding performance and obtaining a better point cloud attribute compression effect.

[0067] Specifically, in this embodiment, Figure 2 As shown, the above step S100 includes:

[0068] Step S101 , arranging the above-mentioned point cloud data to be encoded from three dimensions into one-dimensional sequence according to a preset rule, and obtaining a reordered point cloud sequence.

[0069] The preset rules are pre-set sorting rules, which can be set and adjusted according to actual needs. Optionally, the preset rules can be sorting rules based on Morton codes or Hilbert codes. Specifically, in this embodiment, based on Morton codes or Hilbert codes, the point cloud data to be encoded are reordered in order from small to large to obtain a reordered point cloud sequence.

[0070] Step S102 , based on the above reordered point cloud sequence, grouping is performed in sequence to obtain a group to be encoded.

[0071] Specifically, for the reordered point cloud sequence, group them into groups to be encoded, each K points as a group, and the number of geometric points in the last group to be encoded is K end , where K is an integer greater than or equal to 2, K end It can be any integer between 1 and K (including 1 and K). Specifically, K can represent the order of transforming the coding group. Figure 3 is a schematic diagram of a group to be encoded provided by an embodiment of the present invention, Figure 3 In the process, the coded point cloud data are sorted and grouped in ascending order based on the Hilbert code, K = 4, K end =3. Further, in this embodiment, each group to be encoded is encoded in turn. Figure 3 The first two groups to be encoded shown in FIG. 1 have completed encoding, and the third group to be encoded is being processed.

[0072] Optionally, the transformation matrix is ​​a one-dimensional K-order transformation matrix, where K is the number of points in the group to be encoded.

[0073] The above transformation matrix can be set and adjusted according to actual needs. Optionally, the above transformation matrix can be a discrete cosine transformation matrix or a Haar wavelet transformation matrix.

[0074] Specifically, the attribute values ​​of the K geometric points in the coding group can be subjected to a one-dimensional K-order transformation. The transformation matrix can select a discrete cosine (DCT) transformation matrix or a Haar wavelet (Haar) transformation matrix. After the transformation, the transformation coefficients are obtained, including a DC coefficient and K-1 AC coefficients. In this embodiment, the specific transformation formula is Y=TX, X and Y are K-dimensional column vectors, the p-th dimension of X represents the attribute value of the p-th point, the first dimension of Y is the transformation DC coefficient, and the remaining K-1 dimensions are the transformation AC coefficients. The embodiment of the present invention also provides an example of a specific transformation matrix T when K=4, as shown in the following formula (1):

[0075]

[0076] Specifically, in this embodiment, Figure 4 As shown, the above step S300 includes:

[0077] Step S301, obtaining the position of each of the above-mentioned groups to be encoded.

[0078] Specifically, the position of the group to be encoded is the position coordinate of the group to be encoded. Based on the spatial position of the geometric point in the group to be encoded, the position coordinate of the group to be encoded is calculated. Optionally, K (or K end) points as the position coordinates of the group to be encoded, or the position coordinates of a random point in the group to be encoded or the position coordinates of the center point can be used as the position coordinates of the group to be encoded, which is not specifically limited here.

[0079] Step S302: based on the position of each of the above-mentioned groups to be encoded and the position of the encoded geometric points, respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be encoded.

[0080] Specifically, the DC coefficient prediction value is calculated based on the position of the group to be encoded obtained in the above step S301 and the position of the encoded geometric point. The above encoded point is a geometric point in the group to be encoded that has been encoded. Because each group to be encoded is encoded in sequence according to step S200 and step S300, when the DC coefficient prediction value is calculated for the current group to be encoded, the group to be encoded before the current group to be encoded has been encoded, such as Figure 3 As shown, when the DC coefficient prediction value is calculated for the third group to be encoded, the points in the first and second groups to be encoded are the encoded geometric points. In this embodiment, the DC coefficient prediction value of the first group to be encoded is set to 0.

[0081] In this embodiment, M points closest to the position of the current group to be encoded or adjacent points are searched from all or part of the encoded geometric points as reference points. The DC coefficient prediction value is the weighted average of the reconstruction attributes of the M reference points multiplied by The weight w of each reference point i The distance d from the reference point to the group to be encoded i Related, the reconstructed attribute value of each reference point is a i (i=1, 2, ..., M). Distance d i It can be Euclidean distance or Manhattan distance, which is not specifically limited here. In this embodiment, M=3. Specific DC coefficient prediction value DC pred The calculation formula is as follows:

[0082]

[0083] Step S303, calculating the residual between the DC coefficient prediction value and the DC coefficient as the DC coefficient residual.

[0084] Step S304, encoding the point cloud attributes of each of the above-mentioned groups to be encoded based on the above-mentioned DC coefficient residual and the above-mentioned AC coefficient.

[0085] Specifically, for a group to be encoded, a DC coefficient residual and K-1 AC coefficients are obtained, and a DC coefficient residual and K-1 AC coefficients are quantized and entropy encoded together to realize the point cloud attribute encoding of the group to be encoded. Among them, entropy encoding of the DC coefficient residual can save code length compared with directly encoding the DC coefficient. And combining prediction and transformation is conducive to utilizing the correlation of DC coefficients between coding groups, using the prediction method to reduce the corresponding redundant information, improving the encoding performance, and obtaining better point cloud attribute compression effect. At the same time, the spatial information of the point cloud and the reconstructed attribute value are used to predict the transformed frequency domain DC coefficient (when the transformation formula is Y=TX, X is the signal in the spatial domain, and Y is the signal in the frequency domain), which can effectively reduce the correlation between DC coefficients and their influence, and combine the transformation and prediction methods to achieve efficient point cloud attribute compression.

[0086] Specifically, in this embodiment, Figure 5 As shown, the above step S304 includes:

[0087] Step S3041, quantize the DC coefficient residual and the AC coefficient to obtain a quantized DC coefficient residual and a quantized AC coefficient.

[0088] Step S3042, entropy coding is performed on the quantized DC coefficient residual and the quantized AC coefficient to achieve point cloud attribute coding of the group to be coded.

[0089] In this embodiment, the DC coefficient residual and the AC coefficient are quantized according to a preset quantization step size. The specific quantization step size can be set and adjusted according to actual needs, and is not specifically limited here. Optionally, the quantization step size for the DC coefficient residual and the quantization step size for the AC coefficient can be the same or different. For example, a larger quantization step size (for example, twice the quantization step size for the DC coefficient residual) can be used for the AC coefficient. The quantization method can adopt uniform quantization, uniform quantization with dead zone, non-uniform quantization, etc., which is not specifically limited here.

[0090] Specifically, the entropy coding is to encode the quantized coefficients (including the quantized DC coefficient residual and the quantized AC coefficient) according to the entropy principle without losing any information, and can use Shannon coding, Huffman coding or arithmetic coding, etc., which are not specifically limited here. When performing the corresponding inverse entropy coding, the entropy-coded quantized coefficients can be completely restored.

[0091] Furthermore, for the last group to be encoded, if K end =K, the above specific steps can be used for encoding. If K end<K, the points of the to-be-encoded group can also be encoded individually. Specifically, for the q-th point (q = 1,..., K end ), based on the position of the q-th point and the positions of the encoded geometric points, its attribute prediction value is calculated. The calculation method is to search for M points in all or part of the encoded geometric points that are the closest in position or adjacent to the q-th point as reference points. The attribute prediction value of the q-th point is the weighted average of the reconstructed attributes of the M reference points. The weight w i of each reference point is related to the distance d i from the reference point to the to-be-encoded group, and the reconstructed attribute value of each reference point is a i (i = 1, 2,..., M). The distance d i can be the Euclidean distance or the Manhattan distance, and no specific limitation is made here. Optionally, the number M of the above reference points can be the same as or different from the number of reference points in step S302. In this embodiment, they are the same and both are 3. The specific formula for the attribute prediction value A pred is as follows:

[0092]

[0093] Further, calculate the residual between the attribute prediction value and the actual attribute value, quantize the residual to obtain the quantized residual coefficient, and then perform entropy coding on the quantized residual coefficient to achieve the encoding of the point cloud attributes of the last to-be-encoded group.

[0094] Optionally, after the above step S300, the above method further includes: reconstructing the to-be-encoded group. Specifically, inverse-quantize the quantized DC coefficient residual and the quantized AC coefficient to obtain the reconstructed DC coefficient residual and the reconstructed AC coefficient. Add the DC coefficient prediction value corresponding to the to-be-encoded group and the above reconstructed DC coefficient residual to obtain the reconstructed DC coefficient. For the reconstructed DC coefficient and K - 1 reconstructed AC coefficients, form a column matrix, denoted as Y ′ , perform a one-dimensional K-th order inverse transform to obtain the reconstructed attribute values of K points, denoted as X ′ . The inverse transform formula is X ′ = T T Y ′ , where T T is the transpose of the transformation matrix T.

[0095] For the last to-be-encoded group, if K end = K, the above steps are used for reconstruction; if K end < K, the following reconstruction method can also be used: for the q-th point (q = 1,..., K end ), inverse-quantize the quantized residual coefficient to obtain the reconstructed attribute residual coefficient, and add the corresponding attribute prediction value obtained during encoding to the above reconstructed attribute residual coefficient to obtain the reconstructed attribute value.

[0096] In this way, after encoding each group to be encoded, the reconstructed property values ​​of the corresponding points are calculated, and when encoding the next group to be encoded, the DC coefficient prediction value of the next group to be encoded can be predicted based on the reconstructed property values ​​of the corresponding points. At the same time, it can also be used to ensure the consistency of encoding and decoding during decoding.

[0097] Furthermore, in order to reduce the loss in the attribute encoding and decoding process and realize the attribute encoding and decoding without calculation or nearly lossless, the encoding residual processing step and the decoding residual processing step can be set to improve the accuracy in the encoding and decoding process. Optionally, the above encoding residual processing step and the decoding residual processing step can also be combined with other compression methods to realize lossless and nearly lossless attribute compression, which is not specifically limited here.

[0098] Specifically, the above point cloud attribute encoding method may further include an encoding residual processing step. Figure 6 is a flow chart of a point cloud attribute encoding method provided with an encoding residual processing step provided in an embodiment of the present invention, such as Figure 6 As shown in FIG. 1 , when performing attribute encoding, the attribute residual value of the reconstructed point cloud and the original point cloud at each spatial point is obtained, and then the attribute residual value is quantized according to the requirements to obtain the attribute quantization residual coefficient, and finally the attribute quantization residual coefficient is encoded. Among them, the above-mentioned reconstructed point cloud is a point cloud with reconstructed attribute values ​​obtained according to the above-mentioned point cloud attribute encoding method, and the above-mentioned original point cloud is a point cloud that has not been processed in the point cloud data to be processed. Specifically, for the nearly lossless condition (limited-lossy), the attribute residual value is quantized and encoded according to the given quantization step size, which can realize the control of Hausdorff error. For the lossless condition (lossless), the following two methods can be used for processing: Method 1, for the attribute residual value, no quantization processing is required, that is, the quantization step size is 1, and the attribute residual value is directly encoded; Method 2, for the attribute residual value, the attribute quantization residual remainder and the attribute quantization residual coefficient are encoded. Among them, for color encoding, the calculation of the attribute residual value needs to be performed in the color space of the original point cloud. If the reconstructed attribute values ​​of the point cloud generated by the inverse transformation are in a different color space from the attribute values ​​of the original point cloud, for example, the original point cloud has attribute values ​​in the RGB color space, while the inverse transformation generates attribute values ​​in the YUV color space, then the color space conversion of the reconstructed attribute values ​​of the point cloud generated by the inverse transformation is required, and then the calculation is performed in the same color space as the original point cloud.

[0099] Furthermore, the embodiment of the present invention is based on PCRM software v2.0 version, and the experimental results of the method of this embodiment compared with the anchor are tested. The results are shown in Tables 1 to 3 below.

[0100] Table 1

[0101]

[0102] Table 2

[0103]

[0104] Table 3

[0105]

[0106] Table 1 is a comparison table of rate-distortion data of brightness, chromaticity and reflectivity under finite lossy geometry and lossy attribute conditions; Table 2 is a comparison table of rate-distortion data of brightness, chromaticity and reflectivity under lossless geometry and lossy attribute conditions; Table 3 is a comparison table of rate-distortion data of color attributes and reflectivity of the three color channels of red (R), green (G) and blue (B) under lossless geometry and finite lossy attribute conditions. According to Tables 1 to 3, compared with the benchmark results of the test platform PCRM, under the conditions of limited lossy geometry and lossy attributes, and under the conditions of lossless geometry and lossy attributes, for the brightness attribute, the end-to-end attribute rate distortion of the present invention is reduced by 13.7% and 29.7% respectively; for the chroma Cb attribute, the end-to-end attribute rate distortion of the present invention is reduced by 34.8% and 38.3% respectively; for the chroma Cr attribute, the end-to-end attribute rate distortion of the present invention is reduced by 35.3% and 38.9% respectively; under the conditions of lossless geometry and limited lossy attributes, for the color attributes of the three color channels of red (R), green (G), and blue (B), the end-to-end Hausdorff attribute rate distortion of the present invention is reduced by 10.8%.

[0107] like Figure 7 As shown, corresponding to the above point cloud attribute encoding method, an embodiment of the present invention further provides a point cloud attribute encoding device, and the above point cloud attribute encoding device includes:

[0108] The grouping module 410 is used to sort and group the point cloud data to be encoded to obtain a group to be encoded, wherein the point cloud data to be encoded is point cloud data with attributes to be encoded.

[0109] Specifically, after obtaining the point cloud data to be encoded, the point cloud data to be encoded is sorted and grouped. The point cloud data to be encoded is point cloud data that needs to be attribute compressed and encoded. Point cloud encoding mainly includes geometric encoding and attribute encoding. In the embodiment of the present invention, point cloud attribute encoding is mainly implemented, for example, encoding the color attribute of the point cloud.

[0110] The transformation coefficient acquisition module 420 is used to transform each of the above-mentioned groups to be encoded based on the transformation matrix to obtain transformation coefficients, wherein the above-mentioned transformation coefficients include direct current coefficients and alternating current coefficients.

[0111] The above transformation matrix may be a pre-set matrix, or may be set and adjusted according to actual needs, which is not specifically limited here.

[0112] The encoding module 430 is used to respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be encoded, and to implement point cloud attribute encoding for each of the above-mentioned groups to be encoded based on the above-mentioned DC coefficient prediction value and the above-mentioned transformation coefficient.

[0113] Specifically, for each group to be encoded, a transformation is performed respectively to obtain the transformation coefficient of the group to be encoded, and further, a DC coefficient prediction value of the group to be encoded is obtained, and the point cloud attribute encoding of the group to be encoded is implemented based on the corresponding DC coefficient prediction value and the transformation coefficient. Optionally, the point cloud attribute encoding of each group to be encoded can be performed in sequence through the above-mentioned transformation coefficient acquisition module 420 and the above-mentioned encoding module 430.

[0114] As can be seen from the above, the point cloud attribute encoding device provided by the embodiment of the present invention sorts and groups the point cloud data to be encoded through the grouping module 410 to obtain the group to be encoded, wherein the above-mentioned point cloud data to be encoded is the point cloud data whose attributes are to be encoded; the transformation coefficient acquisition module 420 transforms each of the above-mentioned groups to be encoded based on the transformation matrix to obtain the transformation coefficient, wherein the above-mentioned transformation coefficient includes a DC coefficient and an AC coefficient; the DC coefficient prediction value of each of the above-mentioned groups to be encoded is obtained through the encoding module 430, and the point cloud attribute encoding of each of the above-mentioned groups to be encoded is realized based on the DC coefficient prediction value and the transformation coefficient. Compared with the prior art, in the scheme of the present invention, after the point cloud data to be encoded is grouped, the group to be encoded is transformed, and each transformation can be for multiple points, so as to better reflect the relationship characteristics between multiple points; and for the DC coefficients with high correlation between the groups to be encoded, the corresponding redundant information is reduced by the prediction method, which is conducive to improving the encoding performance and obtaining a better point cloud attribute compression effect.

[0115] Specifically, in this embodiment, the grouping module 410 is used to: arrange the point cloud data to be encoded from three dimensions to one dimension according to preset rules to obtain a reordered point cloud sequence; and group the point cloud data in sequence based on the reordered point cloud sequence to obtain a group to be encoded.

[0116] Among them, the above preset rules are pre-set sorting rules, which can be set and adjusted according to actual needs. Optionally, the above preset rules can be sorting rules based on Morton code or Hilbert code. Specifically, in this embodiment, based on Morton code or Hilbert code, the above-mentioned point cloud data to be encoded are reordered in order from small to large to obtain a reordered point cloud sequence. For the reordered point cloud sequence, they are grouped in sequence as groups to be encoded, each K points is a group, and the number of geometric points in the last group to be encoded is K. end , where K is an integer greater than or equal to 2, K endIt can be any integer between 1 and K (including 1 and K). Specifically, K can represent the order of transforming the coding group.

[0117] Optionally, the transformation matrix is ​​a one-dimensional K-order transformation matrix, where K is the number of points in the group to be encoded.

[0118] The above transformation matrix can be set and adjusted according to actual needs. Optionally, the above transformation matrix can be a discrete cosine transformation matrix or a Haar wavelet transformation matrix. The specific transformation method and the corresponding transformation matrix example can refer to the specific description in the corresponding point cloud attribute encoding method, which will not be repeated here.

[0119] Specifically, in this embodiment, the above-mentioned encoding module 430 is specifically used to: obtain the position of each of the above-mentioned groups to be encoded; based on the position of each of the above-mentioned groups to be encoded and the position of the encoded geometric points, respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be encoded; calculate the residual between the above-mentioned DC coefficient prediction value and the above-mentioned DC coefficient as the DC coefficient residual; and realize the point cloud attribute encoding of each of the above-mentioned groups to be encoded based on the above-mentioned DC coefficient residual and the above-mentioned AC coefficient.

[0120] Furthermore, the above-mentioned encoding module 430 can also be specifically used to: quantize the above-mentioned DC coefficient residual and the above-mentioned AC coefficient to obtain quantized DC coefficient residual and quantized AC coefficient; entropy encode the above-mentioned quantized DC coefficient residual and the above-mentioned quantized AC coefficient to realize point cloud attribute encoding of the above-mentioned group to be encoded.

[0121] The specific process of the above-mentioned processing performed by the above-mentioned encoding module 430 may refer to the specific description in the corresponding point cloud attribute encoding method, which will not be repeated here.

[0122] Optionally, the point cloud attribute encoding device may further include an encoding residual processing module ( Figure 7 (not shown in the figure), used to obtain the attribute residual value of the reconstructed point cloud and the original point cloud at each spatial point, and then quantize the attribute residual value according to the requirements to obtain the attribute quantization residual coefficient, and finally encode the attribute quantization residual coefficient. That is, the corresponding above-mentioned encoding residual processing steps are executed, so as to cooperate with the corresponding decoding residual processing to improve the compression accuracy. The specific processing process of the above-mentioned encoding residual processing module can refer to the corresponding description in the above-mentioned encoding residual processing steps, which will not be repeated here.

[0123] like Figure 8 As shown, corresponding to the above point cloud attribute encoding method, an embodiment of the present invention further provides a point cloud attribute decoding method, the above method comprising:

[0124] Step A100, sorting and grouping the point cloud data to be decoded to obtain a group to be decoded, wherein the point cloud data to be decoded is point cloud data with attributes to be decoded, specifically point cloud data encoded based on the point cloud attribute encoding method provided by the embodiment of the present invention.

[0125] Specifically, after obtaining the point cloud data to be decoded, the point cloud data to be decoded is sorted and grouped, wherein the above-mentioned data to be decoded is the point cloud data that needs to be attribute decoded. Point cloud decoding mainly includes geometric decoding and attribute decoding. In the embodiment of the present invention, point cloud attribute decoding is mainly implemented, such as decoding the color attribute of the point cloud.

[0126] Step A200, performing inverse entropy coding and inverse quantization based on each of the above groups to be decoded, to obtain a reconstructed DC coefficient residual and a reconstructed AC coefficient of each of the above groups to be decoded.

[0127] Step A300, respectively obtain the DC coefficient prediction value of each of the above-mentioned groups to be decoded, and decode the point cloud attributes of each of the above-mentioned point cloud data to be decoded based on the above-mentioned DC coefficient prediction value, the above-mentioned reconstructed DC coefficient residual and the above-mentioned reconstructed AC coefficient.

[0128] Specifically, the point cloud data to be decoded is arranged from three dimensions to one dimension according to a preset rule to obtain a reordered point cloud sequence. The preset rule may be a sorting rule based on a Morton code or a Hilbert code. Specifically, in this embodiment, the point cloud data to be decoded is reordered from small to large based on the Morton code or the Hilbert code to obtain a reordered sequence to be decoded, and the points in the reordered sequence to be decoded are grouped in sequence as groups to be decoded. Specifically, each K points is a group, and the number of geometric points in the last group to be decoded is K. end , where K is an integer greater than or equal to 2, K end It can be any integer between 1 and K (including 1 and K).

[0129] Decode each group to be decoded separately. Specifically, perform inverse entropy coding and inverse quantization on the group to be decoded to obtain the reconstructed DC coefficient residual and the reconstructed AC coefficient of each group to be decoded. Calculate the DC coefficient prediction value of the group to be decoded (the specific calculation method can refer to the corresponding calculation method in the point cloud attribute encoding method), add the DC coefficient prediction value to the reconstructed DC coefficient residual to obtain the reconstructed DC coefficient. Perform a one-dimensional K-order inverse transform on the reconstructed DC coefficient and the reconstructed AC coefficient to obtain the reconstructed attribute values ​​of K points, thereby realizing the point cloud attribute decoding of the group to be decoded. Among them, the inverse transformation matrix during the inverse transformation can be set and adjusted according to actual needs, and can be specifically set based on the corresponding transformation matrix during encoding.

[0130] Specifically, the reconstructed DC coefficient and K-1 reconstructed AC coefficients are formed into a column matrix, denoted as Y ′, perform a one-dimensional inverse K - order transform to obtain the reconstructed attribute values of K points, denoted as X ′ . The inverse transform formula is X ′ = T T Y ′ , where T T is the transpose of the transform matrix T.

[0131] Furthermore, for the last group to be decoded, if K end = K, the above - mentioned specific steps can be used for decoding. If K end < K, the points of this group to be decoded can also be decoded separately. Specifically, for the q - th point (q = 1,..., K end ), perform decoding and inverse quantization to obtain the value of the reconstructed attribute residual of the q - th point. At the same time, obtain the attribute prediction value (the specific obtaining method can refer to the corresponding obtaining method in the point cloud attribute encoding method), and add it to the reconstructed attribute residual to obtain the reconstructed attribute value.

[0132] Optionally, in this embodiment, the above - mentioned point cloud attribute decoding method can also refer to the specific steps in the above - mentioned point cloud attribute encoding method for corresponding decoding. For example, perform inverse quantization based on the corresponding quantization step size in the above - mentioned point cloud attribute encoding method, etc., which will not be elaborated here. In this way, the data encoded based on the above - mentioned point cloud attribute encoding method can be decoded.

[0133] Furthermore, in order to reduce the loss in the attribute encoding and decoding process and achieve lossless or near - lossless attribute encoding and decoding, corresponding to the above - mentioned encoding residual processing step, a decoding residual processing step can be set to improve the accuracy in the encoding and decoding process.

[0134] Specifically, the above - mentioned point cloud attribute decoding method may further include a decoding residual processing step, Fig. 9 which is a schematic flow diagram of a point cloud attribute decoding method provided by an embodiment of the present invention with a decoding residual processing step set, as shown in Fig. 9As shown, when performing attribute decoding, the reconstructed point cloud attribute value and the quantized residual coefficient code stream are obtained, the quantized residual coefficient code stream is entropy decoded to obtain the attribute quantized residual coefficient, and then the attribute quantized residual coefficient is inversely quantized to obtain the reconstructed attribute residual value (i.e., the residual of the point cloud attribute value after reconstruction and the original point cloud attribute value), and finally the reconstructed attribute residual value is added to the reconstructed point cloud attribute value to obtain the final point cloud attribute decoding result. Among them, the above-mentioned reconstructed point cloud attribute value is the point cloud attribute value with the reconstructed attribute obtained in the above-mentioned reconstruction process of the decoding group, and the above-mentioned quantized residual coefficient code stream is the code stream data of the quantized residual coefficient processed and outputted based on the above-mentioned residual processing step. Specifically, for the near-lossless condition, for the quantized residual coefficient code stream, it is first entropy decoded to obtain the quantized attribute residual coefficient, and then inversely quantized according to the given quantization step (the same as the corresponding quantization step in the encoding residual processing step) to obtain the attribute residual value. For lossless conditions, the following two methods can be used for processing: Method 1: For the existing attribute residual value code stream, first entropy decoding is performed on it to obtain the attribute residual value, without using inverse quantization processing, and the attribute residual value is directly added to the reconstructed point cloud attribute value to obtain the final point cloud attribute decoding result; Method 2: For the existing attribute quantization residual code stream and attribute quantization residual coefficient code stream, first entropy decoding is performed separately to obtain attribute quantization residual remainder and attribute quantization residual coefficient, and then they are inverse quantized to obtain reconstructed attribute residual remainder and reconstructed attribute residual coefficient, and finally the reconstructed attribute residual remainder, reconstructed attribute residual coefficient and reconstructed point cloud attribute value are added to obtain the final point cloud attribute decoding result. Among them, for color decoding, the decoding residual processing needs to be performed in the color space of the original point cloud. If the reconstructed attribute values ​​of the point cloud generated by the inverse transformation are in a different color space from the attribute values ​​of the original point cloud, for example, the original point cloud has attribute values ​​in the RGB color space, while the inverse transformation generates attribute values ​​in the YUV color space, then the color space conversion of the reconstructed attribute values ​​of the point cloud generated by the inverse transformation is required, and then the calculation is performed in the same color space as the original point cloud.

[0135] like Fig.10 As shown, corresponding to the above point cloud attribute decoding method, an embodiment of the present invention further provides a point cloud attribute decoding device, and the above point cloud attribute decoding device includes:

[0136] The grouping module 510 is used to sort and group the point cloud data to be decoded to obtain a group to be decoded, wherein the point cloud data to be decoded is point cloud data with attributes to be decoded.

[0137] Specifically, after obtaining the point cloud data to be decoded, the point cloud data to be decoded is sorted and grouped. Among them, the above-mentioned point cloud data to be decoded is the point cloud data that needs to be attribute decompressed. Point cloud decoding mainly includes geometric decoding and attribute decoding. In the embodiments of the present invention, point cloud attribute decoding is mainly implemented, for example, decoding the color attribute of the point cloud.

[0138] The reconstruction coefficient acquisition module 520 is configured to perform inverse entropy coding and inverse quantization based on each of the above-mentioned groups to be decoded, and obtain the reconstructed DC coefficient residuals and reconstructed AC coefficients of each of the above-mentioned groups to be decoded.

[0139] The decoding module 530 is configured to respectively obtain the DC coefficient prediction values of each of the above-mentioned groups to be decoded, and implement point cloud attribute decoding of each of the above-mentioned point cloud data to be decoded based on the above-mentioned DC coefficient prediction values, the above-mentioned reconstructed DC coefficient residuals, and the above-mentioned reconstructed AC coefficients.

[0140] Specifically, the point cloud data to be decoded is rearranged from three-dimensional to one-dimensional in accordance with a preset rule to obtain a re-ordered point cloud sequence. Among them, the above-mentioned preset rule may be a sorting rule based on Morton code or Hilbert code. Specifically, in this embodiment, re-ordering is performed from small to large based on Morton code or Hilbert code to obtain a re-ordered sequence to be decoded, and the points in the re-ordered sequence to be decoded are sequentially grouped as groups to be decoded. Specifically, every K points are grouped into one group, and the number of geometric points in the last group to be decoded is K end , where K is an integer greater than or equal to 2, K end can be any integer between 1 and K (including 1 and K).

[0141] Decoding is performed separately for each group to be decoded. Specifically, inverse entropy coding and inverse quantization are performed on the group to be decoded to obtain the reconstructed DC coefficient residuals and reconstructed AC coefficients of each of the above-mentioned groups to be decoded. Calculate the DC coefficient prediction value of the group to be decoded (the specific calculation process can refer to the corresponding calculation process in the point cloud attribute coding method or device), add the above-mentioned DC coefficient prediction value to the reconstructed DC coefficient residual to obtain the reconstructed DC coefficient. Perform a one-dimensional K-order inverse transform on the above-mentioned reconstructed DC coefficient and the above-mentioned reconstructed AC coefficients to obtain the reconstructed attribute values of K points, thereby realizing point cloud attribute decoding of the group to be decoded. Among them, the inverse transform matrix during inverse transform can be set and adjusted according to actual needs, and specifically can be set based on the corresponding transform matrix during encoding.

[0142] Further, for the last group to be decoded, if K end = K, the above specific steps can be used for decoding. If K end < K, the points of this group to be decoded can also be decoded separately. Specifically, for the q-th point (q = 1,..., K end), decode and inverse quantize to obtain the value of the reconstructed attribute residual of the qth point, and at the same time, obtain the attribute prediction value (the specific acquisition process can refer to the corresponding acquisition process in the point cloud attribute encoding method or device), add it to the reconstructed attribute residual to obtain the reconstructed attribute value.

[0143] Optionally, in this embodiment, the point cloud attribute decoding device may also refer to the specific steps in the point cloud attribute encoding method to perform corresponding decoding, for example, inverse quantization may be performed based on the corresponding quantization step size in the point cloud attribute encoding method, etc., which will not be described in detail here. In this way, the data encoded based on the point cloud attribute encoding method or device may be decoded.

[0144] Optionally, the above-mentioned point cloud attribute decoding device may further include a decoding residual processing module ( Fig.10 (not shown), used to obtain the reconstructed point cloud attribute value and the quantized residual coefficient code stream, entropy decode the quantized residual coefficient code stream to obtain the attribute quantized residual coefficient, then inverse quantize the attribute quantized residual coefficient to obtain the reconstructed attribute residual value (i.e., the residual of the point cloud attribute value after reconstruction and the original point cloud attribute value), and finally add the reconstructed attribute residual value to the reconstructed point cloud attribute value to obtain the final point cloud attribute decoding result. Among them, the above-mentioned reconstructed point cloud attribute value is the point cloud attribute value with reconstructed attribute obtained in the above-mentioned reconstruction process of the encoding group, and the above-mentioned quantized residual coefficient is the code stream data of the quantized residual coefficient processed and output based on the above-mentioned residual processing step. That is, the corresponding decoding residual processing step is executed, thereby cooperating with the corresponding encoding residual processing to improve the compression accuracy. The specific processing process of the above-mentioned decoding residual processing module can refer to the corresponding description in the above-mentioned decoding residual processing step, which will not be repeated here.

[0145] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Fig.11 As shown. The above-mentioned intelligent terminal includes a processor, a memory, a network interface and a display screen connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a point cloud attribute decoding program. The internal memory provides an environment for the operation of the operating system and the point cloud attribute decoding program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the point cloud attribute decoding program is executed by the processor, the steps of any one of the above-mentioned point cloud attribute decoding methods are implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.

[0146] Those skilled in the art will understand that Fig.11The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0147] In one embodiment, a smart terminal is provided. The smart terminal includes a memory, a processor, and a point cloud attribute decoding program stored in the memory and executable on the processor. When the point cloud attribute decoding program is executed by the processor, the following operation instructions are performed:

[0148] Sorting and grouping the point cloud data to be decoded to obtain a group to be decoded, wherein the point cloud data to be decoded is point cloud data with attributes to be decoded;

[0149] Perform inverse entropy coding and inverse quantization based on each of the above groups to be decoded, to obtain a reconstructed DC coefficient residual and a reconstructed AC coefficient of each of the above groups to be decoded;

[0150] The DC coefficient prediction values ​​of each of the above-mentioned groups to be decoded are obtained respectively, and the point cloud attribute decoding of each of the above-mentioned point cloud data to be decoded is implemented based on the above-mentioned DC coefficient prediction values, the above-mentioned reconstructed DC coefficient residuals and the above-mentioned reconstructed AC coefficients.

[0151] An embodiment of the present invention further provides a computer-readable storage medium, on which a point cloud attribute decoding program is stored. When the point cloud attribute decoding program is executed by a processor, the steps of any point cloud attribute decoding method provided in the embodiment of the present invention are implemented.

[0152] Optionally, the above-mentioned intelligent terminal and computer-readable storage medium may also store a point cloud attribute encoding program to implement the steps of the above-mentioned point cloud attribute encoding method.

[0153] It should be understood that the serial numbers of the steps in the above embodiments do not imply a sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0154] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0155] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0156] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0157] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / terminal equipment embodiments described above are only illustrative, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0158] If the above-mentioned integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

[0159] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features therein may be replaced by equivalents. However, these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A point cloud attribute encoding method, characterized in that: The method comprises: Sorting and grouping the point cloud data to be encoded to obtain a group to be encoded, wherein the point cloud data to be encoded is point cloud data with attributes to be encoded; Transforming each of the to-be-encoded groups based on a transformation matrix to obtain transformation coefficients, wherein the transformation coefficients include direct current coefficients and alternating current coefficients; Respectively obtain the DC coefficient prediction value of each of the to-be-encoded groups, and implement point cloud attribute encoding for each of the to-be-encoded groups based on the DC coefficient prediction value and the transform coefficient; The step of respectively obtaining the DC coefficient prediction value of each of the to-be-encoded groups, and encoding the point cloud attributes of each of the to-be-encoded groups based on the DC coefficient prediction value and the transform coefficient, comprises: Obtaining the position of each of the to-be-encoded groups; Based on the position of each of the to-be-encoded groups and the position of the encoded geometric point, respectively obtain the DC coefficient prediction value of each of the to-be-encoded groups; Calculating a residual between the DC coefficient prediction value and the DC coefficient as a DC coefficient residual; Encoding the point cloud attributes of each of the to-be-encoded groups based on the DC coefficient residual and the AC coefficient; The encoding of the point cloud attributes of each of the to-be-encoded groups based on the DC coefficient residual and the AC coefficient includes: quantizing the DC coefficient residual and the AC coefficient to obtain a quantized DC coefficient residual and a quantized AC coefficient; The quantized DC coefficient residual and the quantized AC coefficient are entropy encoded to achieve point cloud attribute encoding of the group to be encoded.

2. The point cloud attribute encoding method according to claim 1, characterized in that: The step of sorting and grouping the point cloud data to be encoded to obtain the group to be encoded includes: Arranging the to-be-encoded point cloud data from three dimensions into one-dimensional order according to a preset rule to obtain a reordered point cloud sequence; Based on the reordered point cloud sequence, grouping is performed in sequence to obtain a group to be encoded.

3. The point cloud attribute encoding method according to claim 1, characterized in that: The transformation matrix is ​​a one-dimensional K-order transformation matrix, where K is the number of points in the group to be encoded.

4. A point cloud attribute encoding device for implementing the point cloud attribute encoding method according to any one of claims 1 to 3, characterized in that: The device comprises: A grouping module, used for sorting and grouping the point cloud data to be encoded, and obtaining a group to be encoded, wherein the point cloud data to be encoded is point cloud data of attributes to be encoded; A transformation coefficient acquisition module, used to transform each of the to-be-encoded groups based on a transformation matrix to obtain transformation coefficients, wherein the transformation coefficients include direct current coefficients and alternating current coefficients; The encoding module is used to respectively obtain the DC coefficient prediction value of each group to be encoded, and to implement point cloud attribute encoding for each group to be encoded based on the DC coefficient prediction value and the transformation coefficient.

5. A point cloud attribute decoding method corresponding to the point cloud attribute encoding method according to any one of claims 1 to 3, characterized in that: The method comprises: Sorting and grouping the point cloud data to be decoded to obtain a group to be decoded, wherein the point cloud data to be decoded is point cloud data with attributes to be decoded; Perform inverse entropy coding and inverse quantization based on each of the groups to be decoded, and obtain a reconstructed DC coefficient residual and a reconstructed AC coefficient of each of the groups to be decoded; The DC coefficient prediction values ​​of each of the to-be-decoded groups are obtained respectively, and the point cloud attribute decoding of each of the to-be-decoded point cloud data is implemented based on the DC coefficient prediction values, the reconstructed DC coefficient residuals and the reconstructed AC coefficients.

6. A point cloud attribute decoding device for implementing the point cloud attribute decoding method according to claim 5, characterized in that: The device comprises: A grouping module, used for sorting and grouping the point cloud data to be decoded to obtain a group to be decoded, wherein the point cloud data to be decoded is point cloud data with attributes to be decoded; A reconstruction coefficient acquisition module, used for performing inverse entropy coding and inverse quantization based on each of the groups to be decoded, and obtaining a reconstructed DC coefficient residual and a reconstructed AC coefficient of each of the groups to be decoded; The decoding module is used to respectively obtain the DC coefficient prediction value of each group to be decoded, and to decode the point cloud attributes of each point cloud data to be decoded based on the DC coefficient prediction value, the reconstructed DC coefficient residual and the reconstructed AC coefficient.

7. An intelligent terminal, characterized in that: The intelligent terminal includes a memory, a processor, and a point cloud attribute decoding program stored in the memory and executable on the processor. When the point cloud attribute decoding program is executed by the processor, the steps of the point cloud attribute decoding method according to claim 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a point cloud attribute decoding program, and when the point cloud attribute decoding program is executed by the processor, the steps of the point cloud attribute decoding method according to claim 5 are implemented.