Point cloud attribute compression method based on deleting 0 elements in quantisation matrix
11216985 · 2022-01-04
Assignee
Inventors
Cpc classification
G06T3/4023
PHYSICS
H04N19/597
ELECTRICITY
International classification
Abstract
Disclosed in the present invention is a point cloud attribution compression method based on deleting 0 elements in a quantisation matrix, including optimizing a traversal sequence for a quantisation matrix and deleting the 0 elements at the end of the data stream. The present invention may use seven types of traversal sequences at the encoding end of the point cloud attribute compression, such that the distribution of the 0 elements in the data stream may be more concentrated at the end thereof. The 0 elements at the end of the data stream may be deleted, removing redundant information and reducing the quantity of data to be entropy encoded. At the decoding end, the point cloud geometric information may be incorporated to supplement the deleted 0 elements and the quantisation matrix may be restored according to the traversal sequence, thereby improving compression performance without introducing new errors.
Claims
1. A point cloud attribute compression method based on deleting 0 elements in a quantisation matrix, for a quantisation matrix in a point cloud attribute compression process, using an optimal traversal sequence at an encoding end to concentrate the 0 elements at the end of a generated data stream and implementing an entropy encoding after deleting the 0 elements, comprising the following steps: 1) Point Cloud Attribute Compression Encoding Process Implementing a KD tree division on the point cloud data to be compressed based on geometric information, where the blocks generated at the final layer of the KD tree division are point cloud coding blocks, generating a quantisation matrix by implementing an intra-frame prediction, a residual transformation, and a quantisation on the attribute information in each coding block; 2) Optimising the Traversal Sequence for a Quantisation Matrix at an Encoding End: Applying 7 types of different traversal sequences to each quantisation matrix, transforming the two-dimensional matrix into a one-dimensional data stream, comparing the numbers of 0 elements appeared in succession at the end of the data streams, selecting the data stream in which the number of 0 elements appeared in succession at the end thereof is most as an optimal data stream, while recording the corresponding traversal pattern; 3) Deleting the 0 Elements at the End of the Data Stream: Deleting all 0 elements appeared in succession at the end thereof after resulting in an optimal data stream, thus obtaining a clipped data stream, after implementing the same operations on all coding blocks, performing an entropy coding in a unified manner, thus resulting in a point cloud attribute compressed code stream; 4) Referring to the Geometric Information to Restore the Quantisation Matrix at a Decoding End: Carrying out an entropy decoding on a code stream to obtain the clipped data stream at a decoding end, incorporating the point cloud geometric information to solve for the number of deleted 0 elements and implementing a supplement, thus resulting in an original data stream, restoring a two-dimensional quantisation matrix from the one-dimensional data stream according to the traversal sequence; 5) Point Cloud Attribute Compression Decoding Process: Performing an inverse quantisation, an inverse transformation and a prediction compensation on the restored quantisation matrix sequentially, thus obtaining the decoding result that is cloud attribute information.
2. The point cloud attribute compression method of claim 1, wherein, at step 1), a point KD tree division method is a binary division method, supposing that there is a total of N points in the point cloud to be processed, and the KD tree division depth is set to d, obtaining 2.sup.d coding blocks after dividing the point cloud d times, where the number of points in each block is close, and is n or n+1, the calculation method of n shown as in formula 1; and numbering all coding blocks according to a breadth preferential traversal sequence b.sub.1, b.sub.2, . . . , b.sub.i, . . . , b.sub.2.sub.
3. The point cloud attribute compression method of claim 1, wherein, the size of the quantisation matrix obtained at step 1) is related to the number of the points in the coding block, i.e. n×3 or (n+1)×3.
4. The point cloud attribute compression method of claim 1, wherein, at step 2), applying 7 types of traversal sequences to each quantisation matrix, where 7 types of traversal sequences are a YUV progressive scan, a YUV column by column scan, a YVU column by column scan, a UYV column by column scan, a UVY column by column scan, a VYU column by column scan, a VUY column by column scan, respectively; after scanning, transforming the n×3 two-dimensional matrix to an one-dimensional data stream having a length of 3n; and selecting the data stream in which the number of 0 elements appeared in succession at the end thereof is most as an optimal data stream, while recording the corresponding traversal pattern m.sub.i.
5. The point cloud attribute compression method of claim 1, wherein, the length of the optimal data stream selected at step 3) is 3n, supposing that the number of 0 elements appeared in succession at the end of the data stream is l.sub.i, the length of the clipped data stream is 3n−l.sub.i.
6. The point cloud attribute compression method of claim 1, wherein, performing an entropy decoding at step 4) to obtain the clipped data streams having the length of l.sub.c; as the number of deleted 0 elements needs to be known in order to restore the original data stream, implementing the same KD tree division on the point cloud geometric information at a decoding end as at the encoding end to obtain 2.sup.d coding block, including n or n+1 points in each block, numbering all coding blocks according to a breadth preferential traversal sequence, obtaining a result in one-to-one correspondence with the encoding end, solving for the number of deleted 0 elements l.sub.0 according to formula 2; where the length of the data stream after the 0 elements are supplemented is 3n, and transforming the data stream to a n×3 quantisation matrix according to the saved traversal pattern m.sub.i.
l.sub.0=3n−l.sub.c (formula 2)
7. The point cloud attribute compression method of claim 1, wherein, details at step 5) are as follows: (7-1) After obtaining a quantisation matrix at step 4), performing an inverse quantisation, an inverse transformation, and a prediction compensation on the quantisation matrix sequentially, thus resulting in cloud attribute information; (7-2) The code stream according to the point cloud attribute compression method based on deleting 0 elements in a quantisation matrix is mainly composed of two parts: header information and coding block information, where the header information mainly comprise a quantisation step size, prediction pattern information, traversal pattern information of a quantisation matrix and the like, and the coding block information in a coding block unit is arranged in accordance with the traversal sequence of the coding blocks, where mainly comprised within each coding block is the color residual of the coding block; (7-3) The performance of the point cloud attribute compression is measured by a code rate and a Peak Signal-to-Noise Ratio (PSNR), where the unit of code rate is bpp (bits per poin), the unit of PSNR is decibels (dB), and the smaller the code rate, the greater the PSNR, and the better the point cloud attribute compression performance.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8) Hereinafter, the present disclosure is further described, by way of embodiment, in conjunction with the appended drawings, which are not intended to limit the scope of the invention in any way.
(9) The present disclosure provides a point cloud attribute compression method based on deleting 0 elements in a quantisation matrix, for a quantisation matrix in a point cloud attribute compression process, using an optimal traversal sequence at an encoding end to concentrate the 0 elements at the end of a generated data stream and implementing an entropy encoding after deleting the 0 elements, reducing the data quantity of the data stream and reducing the code streams generated after encoding; at a decoding end, incorporating point cloud geometric information to restore the deleted 0 elements, ensuring that present method does not introduce additional error.
(10)
(11)
(12)
(13)
(14)
(15) A point cloud attribute compression is carried out for the official point cloud data sets: a Longdress-Vox 10-1300 Ply, a Queen-Vox_Frame_0200 Ply, and a Soldier-Vox 10-0690 Ply in the MPEG point cloud compression working group by using the method according to the present disclosure, and as shown in
(16) (1) Point Cloud Attribute Compression Encoding Process:
(17) A point cloud Longdress-vox10-1300.ply has a total of 857,966 points. Suppose the KD tree division depth is set to 13, there is a total of 8,192 coding blocks after being divided, the number of points in a block is 104 or 105, for example, 104 points as to the first coding block, and the attribute information in a block undergoes an intra-frame prediction, a residual transformation, and a quantisation (the quantisation step size is 4) to result in a 104×3 quantisation matrix Q.sub.1.
(18) (2) Optimising the Traversal Sequence for a Quantisation Matrix at an Encoding End:
(19) 7 types of different traversal sequences are applied to the resulting quantisation matrix Q.sub.1. After comparation, it was found that the number of 0 elements in the data stream resulting from the YUV column-by-column scan appeared in succession at the end thereof is most, therefor selecting this pattern to transform the two-dimensional quantisation matrix into a one-dimensional data stream S.sub.1 having a length of 312, while recording the traversal pattern M.sub.1=1 corresponding to the first block.
(20) (3) Deleting the 0 Elements at the End of the Data Stream
(21) For the resulting data stream S.sub.1, 266 0 elements appeared in succession at the end thereof are deleted, thus resulting in a new data stream having a length of 46. After all 8,192 coding blocks undergo the same operations, the respective coding block information is respectively written into the data streams, then the information of a quantisation step size, a traversal pattern, and a prediction pattern and the like is written into the compression header information, performing an entropy coding in a unified manner, the structure of the outputted final code stream files is shown as in
(22) (4) Referring to the Geometric Information to Restore the Quantisation Matrix at a Decoding End:
(23) At a decoding end, a code stream file is inputted to carry out an entropy decoding, thus resulting in header information and the coding block information of 8,192 blocks, and taking the first block as an example, resulting in a clipped data stream having a length of 46. The number of deleted 0 elements needs to be known in order to restore the original data stream. At a decoding end, the same KD tree division is implemented on the point cloud geometric information as at an encoding end to obtain 8,192 coding block, having 104 points in the first block, thus the number of deleted 0 elements solved for is 266. The length of the data stream after the 0 elements are supplemented is 312. According to the traversal pattern M.sub.1=1 of the first block in the header information, the data stream is transformed to a 104×3 quantisation matrix by using the traversal sequence of the YUV column-by-column scan.
(24) (5) Point Cloud Attribute Compression Decoding Process:
(25) Information of a quantisation step size, a prediction pattern and the like is incorporated into the restored quantisation matrix. An inverse quantisation, an inverse transformation, and a prediction compensation are sequentially performed to solve for the attribute information of the point cloud. The performance of the point cloud attribute compression is measured by a code rate and a Peak Signal-to-Noise Ratio (PSNR), where the unit of code rate is bpp (bits per poin), and the unit of PSNR is decibels (dB).
(26) In order to verify the effect of the point cloud attribute compression method based on deleting 0 elements in a quantisation matrix according to present disclosure, aforesaid three data sets: a Longdress-vox10-1300.ply, a Queen-frame-0200.ply, and a Soldier-vox10-0690.ply are used for carrying out experiments, and in terms of compression performance, the comparison results to existing methods are shown as in
(27) As can be seen from
(28) It should be noted that the purpose for disclosing the embodiments is to facilitate further understanding the present disclosure, but those skilled in the art will appreciate that various substitutions and modifications are possible, without departing from the scope and spirit of the present disclosure disclosed in the specification and the accompanying claims. Accordingly, the scope of the invention is not limited by the disclosure of the embodiment, but the claimed scope of the present disclosure is defined by the accompanying claims.
INDUSTRIAL APPLICABILITY
(29) The present disclosure provides a point cloud attribute compression method based on deleting 0 elements in a quantisation matrix, for a quantisation matrix in a point cloud attribute compression process, using an optimal traversal sequence at an encoding end to concentrate the 0 elements at the end of a generated data stream and implementing an entropy encoding after deleting the 0 elements, reducing the data quantity of the data stream and reducing the code streams generated after encoding; at a decoding end, incorporating point cloud geometric information to restore the deleted 0 elements, ensuring that the present method does not introduce additional error. With the rapid advancements of three-dimensional scanning devices (lasers, radars, etc.), the accuracy and resolution of a point cloud become higher. The high-precision point clouds are widely applied to the construction of urban digitized map and play a technical support role in numerous hot studies, such as the studies of the smart city, unmanned driving, cultural relic protection and the like.