Method and device for predictive coding and decoding of point cloud
By only encoding the translation vector estimation error and rotation matrix in the dynamic 3D point cloud, the problem of low encoding efficiency in the existing technology is solved, more efficient encoding and decoding is achieved, and the bit rate and computational complexity are reduced.
Patent Information
- Application Number
- CN201880075765.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-10-19
- Filing Date
- 2018-10-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2038-10-11
AI Technical Summary
In the existing technology, in dynamic 3D point cloud coding, the bit rate required to encode the rigid transformation matrix is high, especially the quantization bit rate of the translation vector is too high, which affects the coding efficiency.
By encoding only the estimated error of the translation vector, rather than the translation vector itself, and utilizing the encoding and decoding of the rotation matrix, the bitrate required for encoding is reduced. The size of the 3D block is used to quantify the translation error, which reduces the complexity of encoding. Spend.
Significantly reduces the quantization bits required for inter-prediction coding of dynamic 3D point clouds, improves coding efficiency, and further reduces computational complexity and distortion through more easily compressible rotational transformation representations such as Euler angles or unit quaternions. .
Smart Images

Figure CN111386551B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of point cloud data sources representing 3D objects.
[0002] More specifically, it deals with dynamic (i.e., time-varying) 3D point clouds.
[0003] Therefore, the present disclosure relates to a method for encoding and decoding a point cloud and to a corresponding encoder and decoder. It also relates to a computer program implementing the encoding and decoding method of the present invention. Background Art
[0004] The approaches described in this section could be pursued, but are not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated herein, the approaches described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.
[0005] Point clouds consist of a collection of points that are typically intended to represent the outer surface of a 3D object, but also more complex geometries (such as hair, fur) that may not be efficiently represented by other data formats (such as meshes). Each point is defined by its 3D spatial position (x, y and z coordinates in 3D space) (i.e. geometric information) and possibly other associated attributes, which typically include color information expressed in RGB or YUV or any other color coordinate system. Other properties may include transparency, reflectivity, etc.
[0006] A point cloud can be either static or dynamic, depending on whether it evolves with respect to time. It should be noted that in the case of a dynamic point cloud, the number of points is not constant, but on the contrary, usually evolves with time. Therefore, a dynamic point cloud is a time-ordered list of point sets.
[0007] The present disclosure relates more particularly to dynamic 3D point clouds. Such point clouds are useful representations of 3D video streams in mixed reality systems such as augmented reality where natural scenes are combined with synthetic or virtual objects, or in immersive virtual rooms where synthetic scenes are augmented with live captured natural 3D video streams representing users.
[0008] 3D point clouds are well suited for fast real-time acquisition and communication. However, realistic reconstructed 3D point clouds may contain hundreds of thousands to millions of points, and compression is critical for efficient and real-time communication in bandwidth-constrained networks.
[0009] Compression of 3D point clouds has received extensive attention in recent years. To compare different solutions, both compression ratio and geometric deformation have been evaluated.
[0010] However, in the context of immersive, augmented, and mixed reality communication systems, several other additional factors are also important for evaluating compression solutions.
[0011] In fact, as in these systems, point cloud sequences are captured rapidly, inter-frame redundancy can be exploited to achieve better compression performance via inter-frame prediction, which is usually not considered in existing static point cloud encoders.
[0012] The article by R. Mekuria et al.: “Design, Implementation, and Evaluation of a PointCloud Codec for Tele-Immersive Video”, IEEE Transactions on Circuits and Systems for Video Technology, Vol. 27, No. 4, pp. 828-842, April 2017, describes a codec for time-varying 3D point clouds for enhanced and immersive 3D videos. The proposed codec exploits inter-frame redundancy and introduces a method for inter-frame predictive coding of frames based on previous inputs, which includes the computation of a rigid transform based on an iterative closest point (ICP) algorithm. The computed rigid transform can be used to generate a predictor.
[0013] The rigid transformation matrix Transf is a 4×4 matrix, including a 3×3 rotation matrix R and a 3×1 translation vector T. Figure 1 as shown in .
[0014] Although the solution of the article allows to improve the rate-distortion (RD) performance of the dynamic 3D point cloud codec by using inter-frame prediction, there is still a need to reduce the number of bits required to encode the rigid transformation matrix. For example, in the article, 16 bits per component (i.e. x, y, z) are used to quantize the translation vector T, which is still a large number. Summary of the invention
[0015] The present disclosure proposes a solution for improving the current situation.
[0016] The present disclosure provides a method and apparatus for encoding a point cloud according to claims 1 and 2, and a method and apparatus for decoding a point cloud according to claims 13 and 14.
[0017] Accordingly, the present disclosure provides a method for predictively encoding a time-varying 3D point cloud into at least one bitstream, wherein the time-varying 3D point cloud comprises a series of consecutive frames divided into 3D blocks, the method comprising encoding 3D motion information comprising a geometric transformation, wherein the geometric transformation comprises rotation information representing a rotation transformation and translation information representing a translation transformation, wherein the translation information comprises a vector ΔT representing an estimated error of the translation transformation.
[0018] Therefore, the method disclosed in the present invention can significantly reduce the range of the translation vector compared to the prior art by encoding only the estimation error of the translation vector T (rather than the translation vector T itself). Therefore, the quantization bits required for inter-frame prediction encoding of dynamic 3D point clouds are much less than the quantization bits required in the prior art.
[0019] Advantageously, the rotation transformation is represented by a rotation matrix R, and the encoding method comprises:
[0020] - Encode the rotation matrix R;
[0021] -Decode the encoded rotation matrix to obtain the reconstructed rotation matrix R rec ;as well as
[0022] - Determine the estimate of the translation transformation as the reconstructed rotation matrix R rec The vector T * function.
[0023] Therefore, according to the present disclosure, what is encoded is the vector ΔT=TT * The range of ΔT is much smaller than that of T, since it is roughly the size of the 3D block, which is usually chosen to be very small. For example, if the 3D block is a cube of fixed size 16×16×16, only 4 bits are needed to encode each component of ΔT.
[0024] Advantageously, the 3D motion information contains vectors pointing to matching reference 3D blocks associated with each 3D block of the current point cloud frame, said matching reference 3D blocks being in the reference point cloud frame.
[0025] The reference point cloud frame is a point cloud frame that has been encoded.
[0026] It is important to note that the geometric transformation including rotation and translation information transforms the subset of the reference point cloud frame falling in the matching reference 3D block to the closest form of the subset of the current point cloud frame falling in the 3D block currently being encoded.
[0027] Advantageously, the estimate of the translation information T * is the reconstructed rotation matrix R rec and a function that points to the reconstruction vector of the matching reference 3D block.
[0028] Preferably, a matching reference 3D block is selected from a plurality of candidate reference 3D blocks in the reference point cloud frame as the reference 3D block providing a minimum prediction error less than a threshold.
[0029] This means that each block to be coded in the current frame is compared with several blocks in the search area in the reference frame. This is very advantageous because there are more chances for the block to be coded to find a matching reference block and be compressed by inter-frame prediction.
[0030] Advantageously, the geometric transformation is represented by a 4x4 transformation matrix determined using an iterative closest point (ICP) algorithm.
[0031] The ICP algorithm has been described in the article by Paul J. Besl et al.: “A method for registration of 3-D shapes” (IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 14, No. 2, pp. 239-256, 1992), and in the article by T. Tamaki et al.: “Softassign and EM-ICP on GPU” (2010 1st International Conference on Networking and Computing, Higashihiroshima, 2010, pp. 179-183).
[0032] According to an embodiment, the rotation transformation is represented by three Euler angles.
[0033] Advantageously, the encoding of the rotation information uses at least one trigonometric look-up table LUT.
[0034] By using such a LUT, the conversion between trigonometric function values and angles can be avoided. This allows improving the encoding accuracy and reducing its calculation complexity.
[0035] According to another embodiment, the rotation transformation is represented by a unit quaternion.
[0036] These representations are more compressible than 3×3 rotation matrices.
[0037] The present disclosure also provides an encoder for predictively encoding a time-varying 3D point cloud into at least one bitstream, wherein the time-varying 3D point cloud comprises a series of consecutive frames divided into 3D blocks, and the encoder comprises a component for encoding 3D motion information comprising a geometric transformation, wherein the geometric transformation comprises rotation information representing a rotation transformation and translation information representing a translation transformation, wherein the translation information is represented by a vector ΔT representing an estimated error of the translation transformation.
[0038] Advantageously, the 3D motion information contains vectors pointing to matching reference 3D blocks associated with each 3D block of the current point cloud frame, said matching reference 3D blocks being in the reference point cloud frame.
[0039] The present disclosure also provides a method for predictive decoding of a time-varying 3D point cloud from at least one bitstream, wherein the time-varying 3D point cloud includes a series of consecutive frames divided into 3D blocks, and the method includes decoding 3D motion information including a geometric transformation, wherein the geometric transformation includes rotation information representing a rotation transformation and translation information representing a translation transformation, wherein the translation information is represented by a vector ΔT representing an estimated error of the translation transformation.
[0040] The present disclosure also provides a decoder for inter-frame prediction decoding of a time-varying 3D point cloud from at least one bitstream, wherein the time-varying 3D point cloud includes a series of consecutive frames divided into 3D blocks, and the decoder includes a component for decoding 3D motion information including a geometric transformation, wherein the geometric transformation includes rotation information representing a rotation transformation and translation information representing a translation transformation, wherein the translation information is represented by a vector ΔT representing an estimated error of the translation transformation.
[0041] The methods according to the present disclosure may be implemented in software on a programmable device. These methods may be implemented in hardware or software alone, or in a combination thereof.
[0042] Since these methods can be implemented in software, they can be embodied as computer readable code to be provided to a programmable device on any suitable carrier medium. The carrier medium may include a storage medium such as a floppy disk, CD-ROM, hard disk drive, magnetic tape device or solid state storage device.
[0043] Therefore, the present disclosure provides a computer-readable program including computer-executable instructions for enabling a computer to execute the encoding method of the present disclosure.
[0044] Figure 3 An example of a general algorithm for such a computer program is shown in FIG.
[0045] The present disclosure also provides a computer-readable program, which includes computer-executable instructions for enabling a computer to execute the decoding method of the present disclosure.
[0046] Figure 8 An example of a general algorithm for such a computer program is shown in FIG. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings in which like reference numerals refer to similar elements and in which:
[0048] - Figure 1 (described) represents the transformation matrix used in inter-frame prediction coding of 3D point clouds;
[0049] - Figure 2 is a flow chart showing the principle of inter-frame prediction coding of 3D point clouds;
[0050] - Figure 3 is a flow chart showing the steps of a method for encoding a point cloud according to an embodiment of the present invention;
[0051] - Figure 4 An example of a combination of translation and rotation transformations in 2D is shown;
[0052] - Figure 5 shows a curve illustrating the distortion of a sinusoidal value in a first embodiment of the present principles;
[0053] - Figure 6 A curve illustrating the distortion of a sinusoidal value in a second embodiment of the present principles is shown.
[0054] - Figure 7 is a decomposition of a transformation matrix used in inter-frame prediction coding of a 3D point cloud according to an embodiment of the present disclosure;
[0055] - Figure 8 is a flow chart showing the steps of a method for decoding a point cloud according to an embodiment of the present invention;
[0056] - Fig. 9 is a schematic diagram illustrating an encoder according to an embodiment of the present invention; and
[0057] - Fig.10 is a schematic diagram illustrating a decoder according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The principles of the present disclosure can be used in both inter-prediction coding and intra-prediction coding. The embodiments described below are directed to the case of inter-prediction coding.
[0059] exist Figure 2 The principle of inter-frame prediction encoding of 3D point cloud according to an embodiment of the present invention is illustrated in the flowchart.
[0060] The 3D point cloud consists of a series of consecutive frames divided into multiple 3D blocks.
[0061] Inter-frame prediction coding exploits temporal redundancy between adjacent frames, i.e., the encoder will try to find a 3D block 2 (called a reference block) similar to the current block 4 in the current frame 6, instead of directly encoding the original data of each 3D block, the block 2 is encoded on a previously encoded frame 8 (called a reference frame). This process is based on a block matching algorithm. If the encoder search is successful, block 4 can be encoded using 3D motion information representing the transformation between the reference block 2 and the current block 4 and a prediction error or residual (i.e., the difference 12 between the transformed block 10 obtained by transforming the matching reference block 2 and the current block 4). Both the 3D motion information and the prediction residual are encoded and sent to the decoder in at least one bitstream to restore the current block 4 encoded by encoding based on inter-frame prediction.
[0062] According to an embodiment, the 3D block is a cube with fixed size, for example 16×16×16.
[0063] 3D blocks are not necessarily fully occupied. They can contain from 1 to K 3 elements, where K is the size of the 3D block, for example, for a 16×16×16 block, K=16.
[0064] Figure 3 is a block diagram showing the steps of inter-frame prediction encoding of a current block 4 from a current frame 6 according to a preferred embodiment of the present disclosure.
[0065] For the current frame 6, a reference frame 8 is selected from the point cloud frames within the same group of point cloud frames (hereinafter referred to as GOPC) for inter-frame coding. Therefore, for one GOPC, a common bounding box is used. The bounding box of the current frame is first evenly divided into multiple 3D blocks. Only 3D blocks of the current frame that contain at least one point will be processed for inter-frame prediction coding.
[0066] Assume that the lower left corner of the current 3D block 4 is (x min ,y min ,z min ), then its lower left corner is in the region ([x min -S,x min +S],[y min -S,y min +S],[z min -S,z min +S]) constitutes a search area for matching the reference 3D block. The search step is denoted by ΔS. According to an example, when the size of the current 3D block is 16×16×16, S is selected to be equal to 4 and ΔS is selected to be equal to 2.
[0067] For each pair of candidate reference blocks PC selected from the search area in step 18 Ref and the current block PC Cur 4. In step 20, the two subsets of the point cloud frames 6 and 8 are aligned by the iterative closest point (ICP) algorithm. The subset here refers to the reference frame 8 that falls into the candidate reference block PC Ref The points in the current frame 6 fall into the current block PC Cur The point in .
[0068] ICP outputs a rotation matrix R and a translation vector T that minimizes the mean square error between the two subsets of point cloud frames 6 and 8. Therefore, the result of aligning the subsets of point cloud frames is a 4×4 transformation matrix Transf ICP , which has Figure 1 The form expressed in .
[0069] The "iterative" character of ICP comes from the fact that point correspondences are reconsidered as the solution gets closer to a local minimum of the error. Like any gradient descent method, ICP is applicable when there is a relatively good starting point in advance. Otherwise, it will get stuck in the first local minimum and the solution will be useless. Therefore, it is necessary to roughly align the candidate reference block and the current block in advance. This initial alignment is achieved by translating the candidate reference block so that the average values of the candidate reference block and the current block overlap. Then the initial transformation matrix (denoted as Transf Init ) can be determined by the following formula:
[0070]
[0071] in, and PC Ref and PC Cur The average value of .
[0072] Then, use the PC Ref With PC Cur The final transformation matrix for alignment is:
[0073] Transf=Transf ICP *Transf Init .
[0074] from Figure 1 It can be clearly seen that in this matrix, the upper left 3×3 submatrix represents the rotation, that is Figure 1 In addition, the upper right 3×1 submatrix represents the translation, that is, Figure 1 T in.
[0075] Without any further processing, 12 floating point numbers (i.e., 9 for rotation and 3 for translation) are required to recover the transformation matrix. This cost is obviously too high for compression. Therefore, the transformation matrix needs to be converted to a more compressible format. Referring to the following steps, we describe how to convert R and T into several integers.
[0076] Therefore, the transformation matrix is further converted to a more compressible format at step 22. The conversion process also includes a quantization process.
[0077] Two embodiments of the conversion rotation transformation are described below.
[0078] According to the first embodiment, the rotation transformation is represented by 3 Euler angles. According to the Euler rotation theorem, any 3D rotation can be decomposed into 3 consecutive element rotations (i.e., rotations around the coordinate system axes). Therefore, any 3×3 rotation matrix can be described by three angles (which are called Euler angles). There are twelve possible rotation axis orders, divided into two groups:
[0079] - Proper Euler angles including the sequence ZXZ, XYX, YZY, ZYZ, XZX, YXY, and
[0080] - Includes Tait-Bryan corners of the sequence XYZ, YZX, ZXY, XZY, ZYX, YXZ.
[0081] Without loss of generality, we choose XYZ as the rotation axis order. Then, the corresponding 3 elements are rotated as follows:
[0082] 1. The first rotation is to rotate around the X axis by an angle θ using the following rotation matrix X :
[0083]
[0084] 2. The second rotation is to rotate around the Y axis by an angle θ using the following rotation matrix Y :
[0085]
[0086] 3. The third rotation is to rotate around the Z axis by an angle θ using the following rotation matrix Z :
[0087]
[0088] Then, the rotation matrix can be written as:
[0089]
[0090] Based on equation (1), the three Euler angles θ in radians can be X ,θ Y and θ Z To describe R, the three Euler angles are determined by the following formula:
[0091]
[0092] The process of converting R into 3 angles in integer degrees is as follows.
[0093] First, determine the 3 floating point angles using equation (2).
[0094] Second, quantize the 3 angles in floating point radians to 3 angles in integer degrees as follows:
[0095]
[0096] The process of reconstructing R from the three angles in integer degrees is as follows.
[0097] First, use i = x, y or z Convert the 3 angles in integer degrees to 3 angles in floating point radians. Next, reconstruct R using equation (1).
[0098] Through the above conversion, the rotation transformation is represented by three integer Euler angles.
[0099] It should be noted that it may be advantageous to use a trigonometric lookup table LUT, and to describe the rotation matrix using indices of the LUT, which avoids conversions between trigonometric values and angles.
[0100] According to an embodiment, the use of the LUT is implemented according to the following process.
[0101] Since the period of the sine function is 2π,
[0102]
[0103] Therefore, it is necessary to only calculate sinθ, Build the LUT.
[0104] According to the first embodiment, a uniform sampling step size Δθ, for example, Δθ=5 degrees, can be used to construct sinθ, Then, the LUT of uniform sampling of sinθ is as shown in Table 1.
[0105]
[0106] Table 1: Uniform LUT for sinθ, where Δθ = 5 degrees
[0107] LUT[i] returns the value of the i-th entry of the LUT. In this example, the LUT contains N=19 entries (19 indexes i from 0 to 18) and N=19 outputs (19 sinusoidal values), where N=(90 / Δθ)+1. The LUT includes a finite number of sinusoidal values, one value per Δθ=5 degrees.
[0108] According to an embodiment, the LUT is extended in order to speed up the determination of integers representing triangular values, in particular when there are a large number of rotation matrices to be encoded.
[0109] In this expansion process, for each integer value ID'∈[0…90° / QP θ ] Calculates the sine value reconstructed using the LUT. Parameter QP θ is the quantization step size of the angle in degrees. For example, QP θ =0.5°.
[0110] The usage of this LUT is as follows. Assume that the quantization step size of θ in degrees is QP θ , for example, QP θ = 0.5. For any integer ID, the corresponding value of the sine function sinθ is determined by:
[0111] First, by θ′=ID*QP θ Determine θ′ in degrees,
[0112] Secondly, θ′ is converted to θ″∈[0,360°) by θ″=MOD(θ′,360°), where MOD(x,y) is the modulo operator.
[0113] Third, determine sinθ from the following formula:
[0114]
[0115] in,
[0116]
[0117]
[0118] express The integer part of .
[0119] It should be noted that LUT[i] returns the value of the i-th entry of the LUT, and LUT(ID) returns the query result using ID as the query.
[0120] To signal the LUT, Δθ, QP θ The sinθ value stored in the LUT is transmitted to the decoder side in the bitstream. Another embodiment is to transmit only Δθ and QP θ The decoder calculates the sinθ value stored in the LUT based on Δθ.
[0121] The disadvantage of the uniformly sampled lookup table is that The determined distortion increases with the increase of θ, such as Figure 5 This results in coding artifacts. In order to achieve quasi-uniform distortion, non-uniform sampling steps are preferred for the generation of the lookup table. Note that express The integer part of .
[0122] According to the second embodiment, a non-uniform sampling step size Δθ is used to construct a LUT for sinθ. An example of a non-uniform sampling step size is Then, the LUT for non-uniform sampling of sinθ is as follows:
[0123]
[0124] Table 2
[0125] This LUT is then extended to speed up the determination of integers representing triangular values, especially when there are a large number of rotation matrices to be encoded.
[0126] In this second embodiment, for any integer ID'∈[0...90°*QP θ ], the corresponding value of the sine function reconstructed using the LUT is determined by the ReconSine function, as defined by the following formula:
[0127]
[0128] in,
[0129] ·θ″′=ID′*QP θ
[0130] · express The integer part of
[0131] ·
[0132] For any ID'∈[0;90*QP θ ], these trigonometric values are calculated only once and stored. Later, these trigonometric values can be retrieved.
[0133] Set Δθ1, Δθ2, θ Seg , QP θ and the sinθ value of the LUT is transmitted to the decoder side in the bitstream. Another embodiment is to transmit only Δθ1, Δθ2, θ Seg and QP θ The decoder is based on Δθ1, Δθ2 and θ Seg Calculate the sinθ value stored in the LUT.
[0134] The resulting distortion exist Figure 6 Compared with the distortion of the first embodiment, the distortion is reduced.
[0135] Based on equation (1), R can be expressed as 3 pairs of trigonometric function values: as well as Note that cosθ Y ≥0, because θ Y ∈[-π / 2,π / 2].
[0136] For a pair of trigonometric values (sinδ, cosδ), an integer ID to use as a lookup for the LUT constructed above to reconstruct (sinδ, cosδ) δ Determined by the following formula:
[0137]
[0138] If the LUT is constructed by uniform sampling and is not extended, ID′ is determined as follows δ :
[0139]
[0140] Among them, LUT[INDEX Unif ]≤|sinδ| and LUT[INDEX Unif +1]≥|sinδ|.
[0141] If the LUT is constructed by non-uniform sampling and is not extended, ID′ is determined as follows δ :
[0142] Among them, LUT[INDEX NonUnif ]≤|sinδ| and LUT[INDEX NonUnif +1]≥|sinδ|.
[0143] If only one trigonometric value is to be encoded, such as cosδ, then the ID is determined as δ .
[0144] First, determine the integer ID″ using |cosδ| δ If you expand the LUT, then ID″ δ Set to make ||cosδ|-ReconSine(ID)|, ID∈[0…90 / QP θ ] minimum integer value. If the LUT is not extended, use equations (4) and (5) to determine ID″ δ , where sinδ is replaced by cosδ. Secondly, ID δ Determined as
[0145]
[0146] Then, R can be determined by the three integers given by equation (3): and To express, where δ=θ X ,δ=θ Y and δ = θ Z .
[0147] The determined integer value ID is encoded into the bitstream F1. In an embodiment, the integer value ID is entropy encoded.
[0148] According to the second embodiment, the rotation transformation is represented by a unit quaternion Quatern(qw, qx, qy, qz), which is determined by the following formula:
[0149]
[0150] qx=(r 21 -r 12 ) / (4*qw)=sinα / 2cosβ x ,
[0151] qy=(r 02 -r 20 ) / (4*qw)=sinα / 2cosβ y ,
[0152] qz=(r 10 -r 01 ) / (4*qw)=sinα / 2cosβ z .
[0153] Then, R can be reconstructed from Quatern(qw,qx,qy,qz) as follows:
[0154]
[0155] Here, Quatern(qw,qx,qy,qz) describes a rotation using the angle qw in radians and the rotation axis (qx,qy,qz) as a unit vector.
[0156] Therefore, the rotation matrix R 3D It can be described by a pair of cosine / sine values and 3 cosine values:
[0157] -
[0158] -
[0159] - as well as
[0160]
[0161] Quatern(qw,qx,qy,qz) is further converted to an easily compressible format as follows:
[0162] -qw by qw Int =Float2Integer((qw*180.0+0.5)) is converted,
[0163] -qx and qy through qx In =Float2Integer(qx*QP Quatern +0.5) and qy Int =Float2Integer(qy*QP Quatern +0.5) is quantized, where QP Quatern is the quantization parameter of Quatern(qw,qx,qy,qz). Since (qx,qy,qz) is a unit vector, only the sign of qz needs to be signaled, i.e. output to the compressed bitstream.
[0164] Through the above conversion, the rotation transformation is described by four integers representing the unit quaternion.
[0165] Regarding translation transformation, the original translation data T(t x ,t y ,t z ) is very large, which may harm the rate-distortion (RD) performance of the codec. In order to achieve better performance, the original translation data also needs to be further transformed.
[0166] Any combination of translation and rotation operations can be approximated by 3 consecutive transformations. Figure 4 A 2D example is shown.
[0167] Suppose we want to transform a 3D object OBJ Src , so that it can be combined with another 3D object OBJ through translation and rotation operations Tar Alignment. First, translate the OBJ Src , to change its centroid O Src Move to the origin O of the world coordinate system. Secondly, rotate the translated OBJ′ Src , so that the axes of its object coordinate system are aligned with OBJ Tar The axis alignment of the object coordinate system. Third, the translated and then rotated OBJ″ Src Translate to move its center of mass to OBJ Tar At this point, the transformed OBJ Src With OBJ Tar Alignment. The above three transformations are called T Orig , R and T Center .
[0168] Therefore, the transformation matrix Transf can be rewritten as Figure 7 This means that the translation vector can be written as T = R * T Orig +T Center .
[0169] The average value of the points falling into the candidate reference 3D block is expressed as It can be determined by a vector pointing to the candidate reference 3D block.
[0170] We also consider estimating the average value of the points falling into the current 3D block as C Cur (i.e., the center of the current 3D block). Then, T Orig =-M Ref And T Center =C Cur .
[0171] After having encoded and decoded R into the reconstructed rotation matrix R Rec In the case of , the estimate of T can be determined by the following formula:
[0172] T * =R Rec *(-M Ref )+C Cur .
[0173] Instead of encoding T, according to the present disclosure, the estimated error ΔT of T is encoded, which can be obtained by ΔT=TT * definition.
[0174] The range of is roughly the size of the 3D block. For example, when the size of the 3D block is 16×16×16, the range of ΔT is and Quantized to integers before encoding.
[0175] Then, refactor T to T Recons =T * +ΔT Int , where ΔT Int Elements are quantized and
[0176] With this conversion, the translation transform is represented by an integer 3D vector representing the estimated error of the translation transform.
[0177] Then, in step 24, the transformation matrix is reconstructed according to the transformed result. Then, the reconstructed transformation matrix Transf Recons , determine the transform subset of reference frame 8 that falls into the candidate reference block according to the following formula, denoted as
[0178]
[0179] Then, in step 26, by combining the current block 4 with The comparison is performed to determine the scalar prediction error.
[0180] According to an embodiment, the prediction error is determined using a weighted sum of the following two factors:
[0181] 1) Current block PC Cur Relative to the transformed candidate reference block The mean square geometric error (hereafter referred to as MSGE) is
[0182] 2) Relative to PC Cur According to the example, both weights are chosen to be equal to 0.5.
[0183] According to another embodiment, the prediction error is determined using the following two factors:
[0184] 1) PC Cur Relative to The mean square geometric error (hereinafter referred to as MSGE) is
[0185] 2) The point in the relative to PC Cur The average of the MAX_ERR_POINT_NUM largest squared geometric errors,
[0186] Among them, MAX_ERR_POINT_NUM is determined by Determine, among which, is the candidate reference block PC Ref , and MAX_ERR_POINT_RATIO is a predefined constant, for example, equal to 0.1.
[0187] In this embodiment, Used to penalize the transformed candidate reference blocks Move away from the current block PC Cur point.
[0188] The prediction error is a weighted sum of the above two factors and is determined by:
[0189]
[0190] Among them, for example, w Cur,Ref =w Ref,Cur =1 / 2.
[0191] After comparing all candidate reference blocks with the current block, if the obtained minimum prediction error is within a user-defined threshold, the current block 4 will be encoded using inter-frame prediction and the reference 3D block with the minimum prediction error will be selected in step 28 as the matching reference 3D block.
[0192] According to an embodiment, in step 29, the 3D motion information is further encoded by Huffman coding. The current 3D block, assuming that the lower left corner of the matching reference 3D block is
[0193] The vector pointing to the matching reference 3D block is signaled as and the index of the reference frame in the GOP.
[0194] Then, according to the distribution probability of various code words, Different Huffman encoders are designed based on the integer Euler angles or integers representing unit quaternions, and integer vectors representing translation vector estimation errors. Each Huffman encoder is designed based on the probability of occurrence of different code words for each data type. For example, Table 3 shows the code words for Occurrence probability and Huffman coding of all code words.
[0195] Codeword Probability Huffman Coding 0 40% 0 -2 20% 100 +2 20% 101 -4 10% 110 +4 10% 111
[0196] Table 3
[0197] Then, at step 30, by comparing the current 3D block 4 with the matching reference block selected at step 28, a prediction residual to be encoded and output to a compressed bitstream is determined.
[0198] It is interesting to note that the prediction residual is different from the prediction error determined in step 26. The prediction residual is a set of 3D vectors that the decoder uses to reconstruct the current block 4.
[0199] In fact, for matching reference block PC Ref Each point in (denoted as P Ref ), the prediction residual to be encoded is P Cur -P TransfRef Determine, where P TransfRef =Trans Ref→Cur *P Ref , and P Cur Is the current block PC Cur The closest transformed reference block P TransfRef point.
[0200] The prediction residuals are then sorted according to the decoding order of all points in the matching reference block and entropy coded by an arithmetic encoder.
[0201] Figure 8 is shown by reference to Figure 3 A block diagram of the steps of performing inter-prediction decoding of a bitstream 31 generated by the described encoding method in order to reconstruct a current 3D block of a point cloud.
[0202] The first bitstream data field R contains the encoded rotation representation, ie, the encoded integer Euler angles or an integer representing a unit quaternion.
[0203] The second bitstream data field T contains the encoded translation estimation error, ie the encoded integer vector representing the translation vector estimation error.
[0204] The third bitstream data field M contains a vector pointing to a matching reference 3D block.
[0205] The bit data fields R, T and M are entropy decoded at steps 32, 34 and 36 respectively.
[0206] Then, in step 38, the rotation matrix is reconstructed according to the decoded rotation representation.
[0207] When using a LUT, the decoding method includes the following steps:
[0208] - According to the bit stream data field R, decode the integer value ID representing the rotation matrix; generate the integer value ID representing the rotation matrix, and possibly generate a LUT table;
[0209] - at least according to a lookup table, associate an integer value with each of the N trigonometric function values; in this step, the lookup table LUT is reconstructed. Optionally, for any integer ID′∈[0…90° / QP θ ], pre-calculate the reconstructed trigonometric function value ReconSine(ID′);
[0210] - For a decoded integer value ID, use ID and the lookup table LUT to determine the corresponding reconstructed sin and / or cos function values ReconSine(ID) and ReconCosine(ID) representing the rotation matrix.
[0211] If not pre-computed, when the LUT is constructed by uniform sampling and both ReconSine(ID) and ReconCosine(ID) need to be determined, ReconSine(ID) and ReconCosine(ID) are determined by:
[0212]
[0213]
[0214] in,
[0215] θ″=MOD(θ′,360°) and θ″∈[0,360°), where MOD(x,y) is the modulo operator and θ′=ID*QP θ ;
[0216] · express The integer part of
[0217] · as well as
[0218] ·
[0219] ·
[0220] formula is a piecewise linear interpolant of any angle θ″′∈[0°;90°]. And sign(θ″) sets the sign of sinθ. And signcos(θ″) sets the sign of cosθ.
[0221] If not precomputed, when the LUT is constructed by uniform sampling and only ReconCosine(ID) needs to be determined (when the rotation matrix is encoded by converting to a quaternion), ReconCosine(ID) is given by to be sure.
[0222] in,
[0223] · And θ″ Cos ∈[0,180°], where θ′ Cos =ID·QP θ ;
[0224] · represent The integer part of
[0225] · as well as
[0226] ·
[0227] If not pre-calculated, when the LUT is constructed by non-uniform sampling and both ReconSine(ID) and ReconCosine(ID) need to be determined, ReconSine(ID) and ReconCosine(ID) are determined by the following formula:
[0228]
[0229]
[0230] in,
[0231] θ″=MOD(θ′,360°) and θ″∈[0,360°), where MOD(x,y) is the modulo operator;
[0232] · represent The integer part of
[0233] ·
[0234] · as well as
[0235] ·
[0236] ·
[0237] If not pre-computed, when the LUT is constructed by non-uniform sampling and only ReconCosine(ID) needs to be determined (when the rotation matrix is encoded by converting to a quaternion), ReconCosine(ID) is determined by:
[0238]
[0239] in,
[0240] · And θ″ Co ∈[0,180°], where θ′ Cos =ID*QP θ ;
[0241] · express The integer part of
[0242] ·
[0243] · as well as
[0244] ·
[0245] If pre-calculation is performed and both ReconSine(ID) and ReconCosine(ID) need to be determined, ReconSine(ID) and ReconCosine(ID) are determined by the following formula:
[0246] ReconSine(ID)=sign(θ″)*ReconSine(ID″′)
[0247]
[0248] in,
[0249] θ″=MOD(θ′,360°) and θ″∈[0,360°), where MOD(x,y) is the modulo operator and θ′=ID*QP θ ;
[0250] ·
[0251] · as well as
[0252] ·
[0253] If pre-calculation is done and only ReconCosine(ID) needs to be determined (when the rotation matrix is encoded by conversion to quaternion), ReconCosine(ID) is given by ReconCosine(ID)=signcos1(θ″) Cos )*ReconSine(ID″′ Cos ) to determine.
[0254] in,
[0255] · And θ″ Cos ∈[0,180°], where θ′ Cos =ID*QP θ ;
[0256] · as well as
[0257] Note that if pre-calculation is performed, that is, for any integer ID′∈[0…90° / QP θ ]If ReconSine(ID′) is pre-computed, the same method is used to determine ReconCosine(ID) and / or ReconSosine(ID) for both LUTs constructed by uniform sampling or non-uniform sampling methods.
[0258] - determining said rotation matrix from said at least one reconstructed trigonometric function value.
[0259] Therefore, according to ID γ Determine (sinγ, cosγ), and determine the rotation matrix based on (sinγ, cosγ).
[0260] In the example of converting the rotation matrix into 3 Euler angles, according to ID X 、ID Y and ID Z Determine (sinθ X ,cosθ X ), (sinθ Y ,cosθ Y ) and (sinθ Z ,cosθ Z ), and according to (sinθ X ,cosθ X ), (sinθ Y ,cosθ Y ) and (sinθ Z ,cosθ Z ) determines the rotation matrix.
[0261] In the embodiment of converting the rotation matrix to a quaternion, according to ID α / 2 , and Determine (cosα / 2, sinα / 2), cosβ x , cosβ y and cosβ z , and according to (cosα / 2, sinα / 2), cosβ x , cosβ y and cosβ z Determine the rotation matrix.
[0262] In step 39, the decoded matching reference 3D block is determined by the decoded vector pointing to the matching reference 3D block and the reconstructed reference frame. Assume that the decoded vector pointing to the matching reference 3D block is (Δx Dec ,Δy Dec ,Δz Dec ), then when the size of the current 3D block is 16×16×16, the lower left corner and upper right corner of the matching reference 3D block are (x min +Δx Dec ,y min +Δy Dec ,z min +Δz Dec ) and (x min +Δx Dec +16,y min +Δy Dec +16,z min +Δz Dec +16). Then, all reconstructed points in the decoded reference frame that fall into the matching reference 3D block are selected.
[0263] Then, at step 40, first, an estimated translation vector T is determined by the rotation matrix reconstructed at step 38, the center POS of the current 3D block, and the average position of all reconstructed points selected at step 39. * Secondly, by dividing the decoded translation estimation error determined in step 34 by the estimated translation vector T * Add them together to reconstruct the translation vector.
[0264] In step 42, according to Figure 1 , reconstruct the transformation matrix according to the reconstructed rotation matrix and the reconstructed translation vector.
[0265] Then, at step 44, the predictor of the current 3D block is reconstructed according to the reconstructed transformation matrix and the decoded points in the matching 3D block.
[0266] In step 46, the prediction residual is reconstructed.
[0267] The resulting prediction residual is used to reconstruct the points falling within the current 3D block according to the reconstructed predictor of the current 3D block at step 48 .
[0268] Fig. 9 is a block diagram of an exemplary embodiment of an encoder 50 that implements the encoding method of the present disclosure.
[0269] Advantageously, the encoder 50 comprises one or more processors and a memory 52 .
[0270] The encoder 50 comprises an encoding module 54 for encoding 3D motion information comprising a geometric transformation comprising rotation information representing a rotation transformation and translation information representing a translation transformation, wherein the translation information is represented by a vector ΔT representing an estimated error of the translation transformation.
[0271] According to the illustrated embodiment, bus 56 provides a communication path between the various elements of encoder 50. Other point-to-point interconnect options (eg, non-bus architectures) are also possible.
[0272] Fig.10 is a block diagram of an exemplary embodiment of a decoder 60 that implements the decoding method of the present disclosure.
[0273] Advantageously, the decoder 60 comprises one or more processors and a memory 62 .
[0274] The decoder 60 comprises a decoding module 64 for decoding 3D motion information containing a geometric transformation including rotation information representing a rotation transformation and translation information representing a translation transformation, wherein the translation information is represented by a vector ΔT representing an estimated error of the translation transformation.
[0275] According to the illustrated embodiment, bus 66 provides a communication path between the various elements of decoder 60. Other point-to-point interconnect options (eg, non-bus architectures) are also possible.
[0276] Although what is currently considered to be the preferred embodiment of the present invention has been shown and described, it will be appreciated by those skilled in the art that various other modifications may be made, and equivalents may be substituted, without departing from the true scope of the present invention. In addition, many modifications may be made to adapt specific situations to the teachings of the present invention without departing from the central inventive concept described herein. In addition, embodiments of the present invention may not include all of the features described above. Therefore, it is intended that the present invention is not limited to the specific embodiments disclosed, but that the present invention includes all embodiments falling within the scope of the appended claims.
[0277] In interpreting this description and its related claims, expressions such as "includes," "comprising," "incorporating," "containing," "is," and "having" are to be interpreted in a non-exclusive manner, i.e., to allow that other items or components not expressly defined will also be present. References to the singular shall also be interpreted as references to the plural, and vice versa.
[0278] A person skilled in the art will readily appreciate that various parameters disclosed in the present description may be modified, and that the various embodiments disclosed and / or claimed may be combined without departing from the scope of the present invention.
[0279] For example, it is interesting to note that the encoding method described above as inter-frame prediction encoding can also be used for intra-frame prediction based compression of point clouds. That is, the reference point cloud frame can be the current point cloud frame to be encoded. And only those 3D blocks that have been encoded and decoded can be used as candidate 3D blocks for encoding the current 3D block.
Claims
1. A predictive video coding method based on an estimation error ΔT, comprising: Obtaining 3D motion information including a geometric transformation, wherein the geometric transformation includes a rotation transformation and a translation transformation, and wherein the rotation transformation is represented by a rotation matrix R; obtaining information representing the rotation transformation; An estimate of the translation transformation is obtained based on the information representing the rotation transformation, wherein according to the reconstructed rotation matrix R rec The estimate of the translation transform is obtained as a vector T * ; determining the estimated error ΔT between the translation transform and the estimate; and The estimated error ΔT is encoded.
2. The method of claim 1, further comprising: Encoding the rotation matrix R; as well as Decode the encoded rotation matrix to obtain the reconstructed rotation matrix R rec .
3. The method of claim 1, wherein: The 3D motion information includes a vector pointing to a matching reference 3D block, wherein the matching reference 3D block is associated with a 3D block of a current point cloud frame, and wherein the matching reference 3D block is in a reference point cloud frame.
4. The method of claim 3, wherein: The vector T * is the reconstructed rotation matrix R rec and a function of a reconstruction vector pointing to the matching reference 3D block.
5. The method of claim 1, wherein: The geometric transformation is represented by a 4x4 transformation matrix determined using an iterative closest point (ICP) algorithm.
6. The method of claim 1, wherein: The rotation transformation is represented by three Euler angles.
7. The method of claim 1, wherein: The rotation transformation is represented by a unit quaternion.
8. A predictive video decoding method based on an estimated error ΔT, comprising: Get the rotation information of the current target block used to predict the point cloud; determining an estimate of a translational transform, wherein the estimate of the translational transform is determined using at least the rotation information and an average position of reconstructed points associated with a reference block corresponding to the current target block; Obtaining the estimated error ΔT; Determining translation information for predicting the current target block according to the estimate of the translation transform and the estimation error ΔT; and The current target block of the point cloud is predicted, wherein the current target block is predicted using the rotation information and the translation information.
9. The method according to claim 8, wherein: The estimated error ΔT is decoded from a bitstream, and wherein the bitstream comprises a compressed representation of the point cloud.
10. The method of claim 8, wherein: The rotation information is decoded from a bitstream, and wherein the bitstream comprises a compressed representation of the point cloud.
11. The method of claim 9, wherein: The rotation information is represented by three Euler angles.
12. The method of claim 9, wherein: The rotation information is represented by a unit quaternion.
13. A non-transitory processor-readable medium having stored thereon instructions for performing the method according to claim 1 when the program is executed on a computer.
14. A non-transitory processor-readable medium having stored thereon instructions for performing the method according to claim 8 when the program is executed on a computer.
15. A predictive video encoding device based on an estimation error ΔT, comprising a processor, the processor being configured to at least: Obtain 3D motion information including geometric transformation, where: The geometric transformation includes a rotation transformation and a translation transformation, and wherein the rotation transformation is represented by a rotation matrix R; obtaining information representing the rotation transformation; An estimate of the translation transformation is obtained based on the information representing the rotation transformation, wherein according to the reconstructed rotation matrix R rec The estimate of the translation transform is obtained as a vector T * ; determining the estimated error ΔT between the translation transform and the estimate; and The estimated error ΔT is encoded.
16. The device of claim 15, wherein: The processor is further configured to: encoding the rotation matrix R; and Decode the encoded rotation matrix to obtain the reconstructed rotation matrix R rec .
17. The apparatus of claim 15, wherein: The 3D motion information includes a vector pointing to a matching reference 3D block, wherein the matching reference 3D block is associated with a 3D block of a current point cloud frame, and wherein the matching reference 3D block is in a reference point cloud frame.
18. The apparatus of claim 17, wherein: The vector T * is the reconstructed rotation matrix R rec and a function of a reconstruction vector pointing to the matching reference 3D block.
19. The apparatus of claim 15, wherein: The geometric transformation is represented by a 4x4 transformation matrix determined using an iterative closest point (ICP) algorithm.
20. The apparatus of claim 15, wherein: The rotation transformation is represented by three Euler angles.
21. The apparatus of claim 15, wherein: The rotation transformation is represented by a unit quaternion.
22. A predictive video decoding device based on an estimation error ΔT, comprising a processor, the processor being configured to at least: Get the rotation information of the current target block used to predict the point cloud; determining an estimate of a translation transform using at least the rotation information and an average position of reconstructed points associated with a reference block corresponding to the current target block; Obtaining the estimated error ΔT; Determining translation information for predicting the current target block according to the estimate of the translation transform and the estimation error ΔT; as well as The current target block of the point cloud is predicted using the rotation information and the translation information.
23. The apparatus of claim 22, wherein the estimated error ΔT is decoded from a bitstream, The bitstream includes a compressed representation of the point cloud.
24. The apparatus of claim 22, wherein: The rotation information is decoded from a bitstream, wherein the bitstream includes a compressed representation of the point cloud.
25. The apparatus of claim 24, wherein: The rotation information is represented by three Euler angles.
26. The apparatus of claim 24, wherein: The rotation information is represented by a unit quaternion.
