Method for encoding and decoding a 3D point cloud, encoder, decoder

The method addresses inefficiencies in existing point cloud compression by using an octree structure and TriSoup encoding to enhance compression efficiency and accuracy, particularly in dense and complex 3D point clouds, supporting real-time transmission and diverse applications.

WO2024216517A1PCT designated stage expired Publication Date: 2024-10-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/089073
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Current point cloud compression technologies, such as MPEG-I part 5 (V-PCC) and MPEG-I part 9 (G-PCC), are inefficient in compressing dense and locally complex 3D point clouds, leading to high data volumes and limited versatility, especially in real-time transmission for AR/VR applications, and lack competitive lossy compression methods that maintain visual quality.

Method used

A method for encoding and decoding 3D point clouds using an octree structure and TriSoup encoding scheme, which involves determining a virtual position, constructing triangles, adjusting vertices, and voxelizing to reconstruct points, allowing for improved compression efficiency and accuracy.

Benefits of technology

The proposed method achieves enhanced compression efficiency and accuracy, reducing point-to-point distortion and improving geometry quality, while maintaining real-time transmission capabilities and versatility across various point cloud types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023089073_24102024_PF_FP_ABST
    Figure CN2023089073_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Method for decoding, from a bitstream, the geometry of a 3D point cloud, preferably implemented in a decoder, including: receiving and decoding a bitstream, wherein the bitstream contains octree information including information about octree structure of the volume of the point cloud and vertex information including information about vertex presence and position of a vertex on edges of cuboids of leaf nodes of the octree structure; determining a virtual position based on the positions of vertices of one cuboid relating to a leaf node of the octree structure; constructing triangles based on the vertices of one cuboid and the virtual position; determining a normal vector of the cuboid based on the constructed triangle; determining a centroid position based on the normal vector; reconstructing triangles based on vertices of the cuboid and the centroid position; voxelizing the reconstructed triangles to determine points of the point cloud, wherein before reconstructing the triangles, the method further comprising adjusting at least one vertices towards the centroid position.
Need to check novelty before this filing date? Find Prior Art

Description

Method for encoding and decoding a 3D point cloud, encoder, decoderTechnical Field

[0001] The present invention relates to a method for decoding a 3D point cloud from a bitstream. Additionally, it is an object of the present invention to provide a method for encoding a 3D point cloud into a bitstream. Further, it is an object of the present invention to provide an encoder and decoder, a bitstream encoded according to the present invention and a software. In particular, it is an object of the present invention to provide a method with increased accuracy of the decoding or reconstruction process of a 3D point cloud.Background

[0002] As a format for the representation of 3D data, point clouds have recently gained traction as they are versatile in their capability in representing all types of 3D objects or scenes. Therefore, many use cases can be addressed by point clouds, among which are

[0003] · movie post-production,

[0004] · real-time 3D immersive telepresence or VR / AR applications,

[0005] · free viewpoint video (for instance for sports viewing) ,

[0006] · Geographical Information Systems (aka cartography) ,

[0007] · culture heritage (storage of scans of rare objects into a digital form) ,

[0008] · Autonomous driving, including 3D mapping of the environment and real-time Lidar data acquisition

[0009] A point cloud is a set of points located in a 3D space, optionally with additional values attached to each of the points. These additional values are usually called point attributes. Consequently, a point cloud is a combination of a geometry (the 3D position of each point) and attributes.

[0010] Attributes may be, for example, three-component colours, material properties like reflectance and / or two-component normal vectors to a surface associated with the point.

[0011] Point clouds may be captured by various types of devices like an array of cameras, depth sensors, Lidars, scanners, or may be computer-generated (in movie post-production for example) . Depending on the use cases, points clouds may have from thousands to up to billions of points for cartography applications.

[0012] Raw representations of point clouds require a very high number of bits per point, with at least a dozen of bits per spatial component X, Y or Z, and optionally more bits for the attribute (s) , for instance three times 10 bits for the colours. Practical deployment of point-cloud-based applications requires compression technologies that enable the storage and distribution of point clouds with reasonable storage and transmission infrastructures.

[0013] Compression may be lossy (like in video compression) for the distribution to and visualization by an end-user, for example on AR / VR glasses or any other 3D-capable  device. Other use cases do require lossless compression, like medical applications or autonomous driving, to avoid altering the results of a decision obtained from the analysis of the compressed and transmitted point cloud.

[0014] Until recently, point cloud compression (aka PCC) was not addressed by the mass market and no standardized point cloud codec was available. In 2017, the standardization working group ISO / JCT1 / SC29 / WG11, also known as Moving Picture Experts Group or MPEG, has initiated work items on point cloud compression. This has led to two standards, namely

[0015] · MPEG-I part 5 (ISO / IEC 23090-5) or Video-based Point Cloud Compression (V-PCC)

[0016] · MPEG-I part 9 (ISO / IEC 23090-9) or Geometry-based Point Cloud Compression (G-PCC)

[0017] Both V-PCC and G-PCC standards have finalized their first version in late 2020.

[0018] The V-PCC coding method compresses a point cloud by performing multiple projections of a 3D object to obtain 2D patches that are packed into an image (or a video when dealing with moving point clouds) . Obtained images or videos are then compressed using already existing image / video codecs, allowing for the leverage of already deployed image and video solutions. By its very nature, V-PCC is efficient only on dense and continuous point clouds because image / video codecs are unable to compress non-smooth patches as would be obtained from the projection of, for example, Lidar-acquired sparse geometry data.

[0019] The G-PCC coding method has two schemes for the compression of the geometry. The first scheme is based on an occupancy tree (octree / quadtree / binary tree) representation of the point cloud geometry. Occupied nodes are split down until a certain size is reached, and occupied leaf nodes provide the location of points, typically at the centre of these nodes. By using neighbour-based prediction techniques, high level of compression can be obtained for dense point clouds. Sparse point clouds are also addressed by directly coding the position of point within a node with non-minimal size, by stopping the tree construction when only isolated points are present in a node; this technique is known as Direct Coding Mode (DCM) .

[0020] The second scheme is based on a predictive tree, each node representing the 3D location of one point and the relation between nodes is spatial prediction from parent to children. This method can only address sparse point clouds and offers the advantage of lower latency and simpler decoding than the occupancy tree. However, compression performance is only marginally better, and the encoding is complex, relatively to the first occupancy-based method, intensively looking for the best predictor (among a long list of potential predictors) when constructing the predictive tree.

[0021] In both schemes, attribute (de) coding is performed after complete geometry (de) coding, leading to a two-pass coding. Thus, low latency is obtained by using slices that decompose the 3D space into sub-volumes that are coded independently, without  prediction between the sub-volumes. This may heavily impact the compression performance when many slices are used.

[0022] An important use case is the transmission of dynamic AR / VR point clouds. Dynamic means that the point cloud evolves with respect to time. Also, AR / VR point clouds are typically locally 2D as they most of time represent the surface of an object. As such, AR / VR point clouds are highly connected (or said to be dense) in the sense that a point is rarely isolated and, instead, has many neighbours.

[0023] Dense (or solid) point clouds represent continuous surfaces with a resolution such that volumes (small cubes called voxels) associated with points touch each other without exhibiting any visual hole in the surface.

[0024] Such point clouds are typically used in AR / VR environments and are viewed by the end user through a device like a TV, a smartphone or a headset. They are transmitted to the device or stored locally. Many AR / VR applications use moving point clouds, as opposed to static point clouds, that vary with time. Therefore, the volume of data is huge and must be compressed. Nowadays, lossless compression based on an octree representation of the geometry of the point cloud can achieve down to slightly less than a bit per point (1 bpp) . This may not be sufficient for real time transmission that may involve several millions of points per frame with a frame rate as high as 50 frames per second (fps) , thus leading to hundreds of megabits of data per second. Consequently, lossy compression may be used with the usual requirement of maintaining an acceptable visual quality while compressing sufficiently to fit within the bandwidth provided by the transmission channel while maintaining real time transmission of the frames. In many applications, bitrates as low as 0.1 bpp (10x more compressed than lossless coding) would already make possible real time transmission.

[0025] The codec VPCC based on MPEG-I part 5 (ISO / IEC 23090-5) or Video-based Point Cloud Compression (V-PCC) can achieve such low bitrates by using lossy compression of video codecs that compress 2D frames obtained from the projection of the point cloud on a plane. The geometry is represented by a series of projection patches assembled into a frame, each patch being a small local depth map. However, VPCC is not versatile and is limited to a narrow type of point clouds that do not exhibit locally complex geometry (like trees, hair) because the obtained projected depth map would not be smooth enough to be efficiently compressed by a video codec.

[0026] Purely 3D compression techniques can handle any type of point clouds. It is still an open question whether 3D compression techniques can compete with VPCC (or any projection + image coding scheme) on dense point clouds. Standardization is still under its way toward offering an extension (an amendment) of GPCC that would provide competitive lossy compression that would compress dense point clouds as good as VPCC intra while maintaining the versatility of GPCC that can handle any type of point clouds (dense, Lidar, 3D maps) . This extension is likely to use the so-called TriSoup coding scheme that works over to an octree, as detailed in next sections.  TriSoup is under exploration in the standardization working group JTC1 / SC29 / WG7 of ISO / IEC.

[0027] However, as for all lossy compression schemes, quality of reconstruction the points of the point cloud is essential.

[0028] SUMMARY

[0029] Thus, it is an object of the present invention to provide a method for decoding geometry of a 3D point cloud from a bitstream as well as encoding of a 3D point cloud into a bitstream with increased efficiency.

[0030] The problem is solved by a method for decoding according to claim 1, a method for encoding according to claim 2, an encoder according to claim 9, a decoder according to claim 10, a bitstream according to claim 11 and a software according to claim 12. In a first aspect a method for decoding geometry of a 3D point cloud from a bitstream is provided preferably implemented in a decoder. The method includes:

[0031] receiving a bitstream, wherein the bitstream contains octree information including information about octree structure of the volume of the point cloud and vertex information including information about vertex presence and position of a vertex on edges of cuboids of leaf nodes of the octree structure;

[0032] determining a virtual position based on the positions of vertices of one cuboid relating to a leaf node of the octree structure;

[0033] constructing triangles based on the vertices of one cuboid and the virtual position;

[0034] determining a normal vector of the cuboid based on the constructed triangle;

[0035] determining a centroid position based on the normal vector;

[0036] reconstructing triangles based on vertices of the cuboid and the centroid position;

[0037] voxelizing the reconstructed triangles to determine points of the point cloud,

[0038] wherein before reconstructing the triangles, the method further comprising adjusting at least one vertices towards the centroid position.

[0039] Thus, in a first step a bitstream is received and the bitstream contains information regarding the octree structure of the volume of the point cloud which are decoded. Preferably, the geometry of the Point cloud is GPCC-encoded. Thus, by decoding from the bitstream the octree information about the volume of the point could is provided. Further, the bitstream also includes vertex information including information about vertex presence and position of a vertex on edges of the cuboids relating to leaf nodes in the octree structure. Thus, the vertex information is provided by decoding from the bitstream. Therein the bitstream is preferably encoded by a TriSoup encoding scheme at the encoder.

[0040] After decoding the octree information and vertex information from the bitstream which is described in previous one step, in a further step, for reconstructing the point cloud geometry, triangles are determined for each cuboid. In particular, a virtual position is first determined based on the positions of vertices of one cuboid relating to a leaf node of the octree structure, preferably by averaging the positions of vertices of one cuboid. Then, a first set of triangles are constructed based on the vertices of  one cuboid and the virtual position, preferably by connecting clockwise two consecutive vertices on the edges of a cuboid and the determined virtual position. Thus, the surfaces of the first set triangles are determined by the position of the vertices included in the bitstream and the determined virtual position (i.e., mean position of the vertices) .

[0041] Subsequently, a normal vector of the cuboid is determined based on the constructed triangle. Therein, a normal vector is a vector that is perpendicular to a given object. Thus, the normal vector of each of the first set of triangles can be determined respectively. Then, the normal vector of the cuboid may be determined based on the sum of the determined normal vectors of the first set of the triangles. Then a centroid position is determined based on the virtual position and the normal vector of the cuboid. With such adjustment, the determined centroid position might be closer to the original positions of the point cloud in the leaf node. In addition, according to the present invention, at least one vertices may be adjusted towards the determined centroid position to get a better modelling of the original point cloud surface. In particular, vertices that are on the edges alone an axis where the vector has maximum value may be adjusted along the edges which they belong to, to make the reconstructed surface more natural. Therein, the vector is the vector from Cmean to C. More specifically, it may first determine an axis along which the vector has its maximum value. Then it may find vertices that are on edges parallel to the determined axis in the leaf node. Finally, these vertices may be adjusted based on  The triangles are then constructed according to the adjusted vertices and the centroid in a similar manner as previously described.

[0042] In order to reconstruct the points of the point cloud from the reconstructed triangles, voxelization is performed, preferably by a ray-tracing process wherein in the ray-tracing process rays are launched along the three directions parallel to any of the three axes. Their origin is a point of integer coordinates corresponding to the sampling precision wanted for the rendering. The intersection point (if any) of the ray with one of the reconstructed triangles is then determined and added to the list of rendered points, i.e., added to the points of the point cloud. The surface of the reconstructed triangles is sampled by the rays during voxelization in order to determine the points of point cloud.

[0043] Preferably, the bitstream further contains an additional value α and the centroid position is further determined based on the additional value α. Therein, the additional value is determined by the encoder and might be used to calculate the centroid position. Such a value provides greater flexibility in determining the centroid position. Preferably, the additional value α is determined based on the position of all the points of the point cloud belonging to the current leaf node. Thus, the additional value might be determined by the encoding by considering all the points of the point could belonging to the current leaf node. Preferably, only points that located within a pre- determined distance from the line (virtual point, the normal vector) is considered. With the additional value, the accuracy of the centroid point might be further improved.

[0044] Preferably, the at least one vertices is adjusted only if the difference between the virtual position and the centroid position exceeds a threshold, preferably a scale s,  of the leaf node size, for example, s can be 1 / 128. Thus, before performing the method according to the present invention, it is first determined whether prominence degree of the modelling surface in the leaf node is large enough. For example, by comparing the centroid residual with a threshold. This constraint reduces unnecessary adjustments, leading to computational efficiency and reduced complexity.

[0045] Preferably, the at least one vertices is adjusted according to a fixed value, preferably the fixed value is determined based on the type of the point could and is coded into or from the bitstream. In particular, the fixed value may be determined according to statistic of input point cloud sequences indicating properties, characteristics, or features of a sequence of 3D point clouds (e.g., plain or not) . The statistic of input point cloud sequences may include various measures and attributes, such as: Descriptive statistics: These include measures such as mean, median, mode, variance, and standard deviation of point coordinates (x, y, z) and other properties such as color, intensity, or normal vectors. Geometric properties: Characteristics like point density, spatial distribution, or the extent of the point cloud can be quantified and summarized. Temporal properties: For time-varying point cloud sequences, properties such as motion or deformation of the point cloud can be analyzed and summarized. Topological properties: The connectivity or relationships between points in the point cloud can be studied, providing insights into the underlying structure of the data. This approach offers simplicity and consistency across similar point cloud types.

[0046] Preferably, the at least one vertices is adjusted based on the difference between the virtual position and the centroid position of a leaf node, preferably further based on the edge boundary of the leaf node. As previously explained, the vertices may be adjusted towards the centroid position along certain determined edges. In addition, the adjustment may further be based on the edge boundary of the leaf node so that it can be assured that the adjusted vertices will not exceed the leaf node which it belongs to. Thus, this technique allows for more precise vertex adjustments, leading to a more accurate representation of the point cloud geometry.

[0047] In another aspect of the present invention a method for encoding a 3D point cloud into a bitstream is provided preferably implemented in an encoder. The method for encoding the 3D point cloud includes:

[0048] obtaining octree information including an octree structure of a volume including a plurality of cuboids;

[0049] obtaining vertex information from surfaces of the point cloud for each cuboid relating to a leaf node, wherein the vertex information includes information about vertex presence and position of a vertex on edges of the cuboid;

[0050] encoding the octree information and the vertex information into a bitstream;

[0051] reconstructing the point cloud geometry data by using octree information and vertex information obtained in the preceding encoding process, wherein reconstructing the point cloud data includes:

[0052] determining a virtual position based on the positions of vertices of one cuboid relating to a leaf node of the octree structure;

[0053] constructing triangles based on the vertices of one cuboid and the virtual position;

[0054] determining a normal vector of the cuboid based on the constructed triangle;

[0055] determining a centroid position based on the virtual position and the normal vector;

[0056] reconstructing triangles based on vertices of the cuboid and the centroid position;

[0057] voxelizing the reconstructed triangles to determine points of the point cloud,

[0058] wherein before reconstructing the triangles, the method further comprising adjusting at least one vertices towards the centroid position.

[0059] Thus, by the method for encoding, the octree information as well as the vertex information are generated. This information is encoded into the bitstream. Subsequently at the encoder side, a reconstruction step is performed. In this reconstruction step the point cloud geometry information is reconstructed, wherein the steps of reconstructing are the same as that in the method for decoding as described above. The reconstructed geometry of point cloud at the encoder side is then used to encode attributes (color, reflectance…) of the points of the point cloud for example by RAHT (Region-Adaptive Hierarchical Transform) , predicting transform or lifting transform being used in order to encode the attributes of the points of the point cloud.

[0060] Preferably, geometry of the point cloud is encoded into the bitstream by Geometry-based Point Cloud Compression (G-PCC) .

[0061] Preferably, the bitstream is an MPEG G-PCC compliant bitstream.

[0062] Preferably, the method for encoding is further built according to the features described before in connection with the method for decoding.

[0063] In another aspect of the present invention an encoder is provided for encoding a 3D point cloud into a bitstream. The encoder comprises a memory and a processor, wherein instructions are stored in the memory, which when executed by the processor perform the steps of the method for encoding described before.

[0064] In another aspect of the present invention a decoder is provided for decoding a 3D point cloud from a bitstream. The decoder comprises a memory and a processor, wherein instructions are stored in the memory, which when executed by the processor perform the steps of the method for decoding de-scribed before.

[0065] In another aspect of the present invention a bitstream is provided, wherein the bitstream is encoded by the steps of the method for encoding described before.

[0066] In another aspect of the present invention a computer-readable storage medium is provided comprising instructions to perform the steps of the method for encoding a 3D point cloud into a bitstream as described above.

[0067] In another aspect of the present invention a computer-readable storage medium is provided comprising instructions to perform the steps of the method for decoding a 3D point cloud from a bitstream as described above.

[0068] FIGURES

[0069] In the following the present invention is described in more detail with reference to the accompanying figures.

[0070] The figures show:

[0071] Figure 1 a flow diagram of the method for decoding a 3D point cloud geometry according to the present invention,

[0072] Figure 2 an example for generation of the octree structure,

[0073] Figure 3 an octree according to Figure 2,

[0074] Figure 4 an example for determining vertices on edges of a cuboid,

[0075] Figure 5 an example for generating triangles,

[0076] Figure 6 an example of vertices on the edges of a cuboid,

[0077] Figure 7 a generation of the triangle by vertices,

[0078] Figure 8 an example of determining the order of the triangles according to Figure 7,

[0079] Figure 9 a schematic drawing for the step of voxelization,

[0080] Figure 10 an example of reconstruction of triangles using the centroid point C as a pivoting point,

[0081] Figure 11 an example of normal vector,

[0082] Figure 12 an example of a 1D residual along the normal vector,

[0083] Figure 13 an example of a smooth convex surface in a leaf node with modelling triangles constructed by vertices and centroid point,

[0084] Figure 14 an example of a refined surface,

[0085] Figure 15 a decoder or encoder.DETAILED DESCRIPTION

[0086] Referring to Figure 1 showing a schematic diagram for the method of decoding geometry information of a 3D point cloud from a bitstream.

[0087] The method for decoding geometry of a 3D point cloud from a bitstream, preferably implemented in a decoder, includes the steps:

[0088] S11: receiving a bitstream, wherein the bitstream contains octree information including information about octree structure of the volume of the point cloud and vertex information including information about vertex presence and position of a vertex on edges of cuboids of leaf nodes of the octree structure;

[0089] S12: determining a virtual position based on the positions of vertices of one cuboid relating to a leaf node of the octree structure;

[0090] S13: constructing triangles based on the vertices of one cuboid and the virtual position;

[0091] S14: determining a normal vector of the cuboid based on the constructed triangle;

[0092] S141: determining a centroid position based on the normal vector;

[0093] S142: reconstructing triangles based on vertices of the cuboid and the centroid position; voxelizing the reconstructed triangles to determine points of the point cloud, wherein before reconstructing the triangles, the method further comprising adjusting at least one vertices towards the centroid position.

[0094] The first step of the geometry encoding process in order to determine the octree information is to build and encode an octree, as illustrated in Figures 2 and 3. The bounding box is the main volume 100 that contains all the points, and is associated to the root node 112 (i.e. single node at the top of the tree 110) . This volume 100 is first divided into 8 sub-volumes 102 called octants, each is represented by a node 114 in the tree 110. The octants 106 that are occupied by at least one point, which are shaded in Figures 2 and 3, are then recursively split in sub-volumes 104 until a target level is reached.

[0095] Each octant (or node) is represented by an occupancy byte that contains one bit per child octant, set to one if it is occupied by at least one point, or to zero otherwise. The occupancy bytes 118 of all the octants are serialized (in breadth-first order) and entropy coded with a binary arithmetic encoder.

[0096] Figure 4 illustrates a blocking representation of a 3D surface 210, as well as an example of a block 220 in a TriSoup. The surface 210 intersects the block 220, which is therefore an occupied block, and the block 220 exists among multiple blocks 200 in 3D space. Within the block 220, the enclosed portion of the surface 210 intersects the edges of the block at six illustrated vertices of a polygon 230. An edge of the block 220 is said to be selected if it contains a vertex.

[0097] Figure 5 illustrates the block 220 in the TriSoup, omitting the surface 210 for clarity, and showing a non-selected edge 270, a selected edge 260, and the ith edge 250. Suppose the ith edge 250 is selected. To specify a vertex vi on edge i, one specifies a scalar value to indicate a corresponding fraction of the length of the edge 250.

[0098] As illustrated in Figures 4 and 5, within each octant 220 in the target level of the octree, the trisoup represents the original surface 210 as a set of triangles 245. This surface is encoded and used to obtain the positions of the recon-structed (or decoded) points. First, the intersections of the surface represented by the original points with the edges of the octants are estimated by averaging the positions of the points that are the closest to those edges within the octant. Secondly, the twelve edges of all the octants and their associated intersections (if any) are stored as segments and vertices respectively. Each (unique) segment is then encoded as follows. A first single bit is arithmetically coded, set to one if the segment is occupied by a vertex and zero otherwise. If it is occupied, the relative position of the vertex on the segment is also arithmetically coded.

[0099] Vertices 310 of triangles are coded along the edges 320 of volumes associated with leaf nodes 300 of the tree, as depicted on Figure 6. These vertices 310 on edge 320 are shared among leaf nodes 300 having a common edge 320. This means that at most one vertex is coded per edge belonging to at least one leaf node. By doing so, continuity of the model is ensured through leaf nodes.

[0100] As mentioned above, the encoding of the TriSoup vertices requires two information per edge:

[0101] · a vertex flag indicating if a TriSoup vertex is present on the edge, and

[0102] · when present, the vertex position along the edge.

[0103] Consequently, the coded data consists in the octree data plus the TriSoup data.

[0104] The vertex flag is coded by an adaptive binary arithmetic coder that uses one specific context for coding vertex flags. The position of a vertex on an edge of length N=2^s might be coded with unitary precision by pushing (bypassing / not entropy coding) s bits into the bitstream.

[0105] Inside a leaf node, triangles are constructed from the TriSoup vertices if at least three vertices 310 are present on the edges 320 of the leaf node 300. Reconstructed triangles 330, 340 are depicted in Figure 7.

[0106] Obviously, other combinations of triangles 330, 340 are possible. The choice of triangles comes from a three-step process

[0107] 1. determining a dominant direction along one of the three axes

[0108] 2. ordering TriSoup vertices depending on the dominant direction

[0109] 3. constructing triangle based on the ordered list of vertices

[0110] Knowledge about the exact position of the triangles within the current leaf is not necessary and can be deduced from the vertices.

[0111] Figure 8 will be used to explain this process. Each of the three axis is tested and the one maximizing the total surfaces of triangle is kept as dominant axis. For simplicity of the figure, only the test over two axis is depicted on Figure 8.

[0112] A first test (top) along the vertical axis is performed by projecting the cube and the Trisoup vertices 310 vertically on a 2D plane. The vertices 310 are then ordered following a clockwise order relative to the center of the projected node (a square) . Then, triangles 330, 340 are constructed following a fixed rule based on the ordered vertices. Here, triangles 123 and 134 are constructed systematically when 4 vertices are involved. When 3 vertices are present, the only possible triangle is 123. When 5 vertices are present, a fixed rule may be to construct triangles 123, 134 and 451. And so on, up to 12 vertices.

[0113] A second test (left) along a horizontal vertical axis is performed by projecting the cube and the Trisoup vertices horizontally on a 2D plane.

[0114] The vertical projection exhibits the 2D total surface of triangles that is maximum, thus the dominant axis is selected as vertical, and the constructed TriSoup triangles are obtained from the order of the vertical projection, as in Figure 8 inside the node.  It is to be noted that taking the horizontal axis as dominant would have led to another construction of triangles.

[0115] The adequate selection of the dominant axis by maximizing the projected surface leads to a continuous reconstruction of the point cloud without holes.

[0116] The rendering of TriSoup triangles into points is performed by ray tracing. The set of all rendered points by ray tracing will make the decoded point cloud.

[0117] For ray tracing as shown in Figure 9, rays are launched along the three directions parallel to an axis. Their origin is a point of integer (voxelized) coordinates of precision corresponding to the sampling precision wanted for the rendering. The intersection (if any, dashed point) with one of the Trisoup triangles is then voxelized (= rounded to the closest point at the wanted sampling precision) and added to the list of rendered points.

[0118] After applying Trisoup to all leaf nodes, i.e., constructing triangles and obtaining points by ray tracing, copies of same points in the list of all rendered points are discarded (i.e. only one voxel is kept among all voxels sharing the same position and volume) to obtain a set of decoded (unique) points.

[0119] Based on the above deprescribed basic concepts, improvements might be applied to the Trisoup coding. For example, by computing a centroid point whose coordinates are the mean coordinates of all (ordered) vertices Vi, see Figure 10 where the centroid point C is depicted using checkboard filling. The centroid point is used as a pivoting point. The triangle are constructed from the ordered vertices (V1, V2, …, VM) by pivoting around the centroid point C. The following M triangles are constructed

[0120] · V1V2C

[0121] · V2V3C

[0122] · …

[0123] · VM-1VMC

[0124] · VMV1C

[0125] Therein, the vertices are ordered clockwise and is not important which of the vertices is chosen as V1.

[0126] This construction preserves natural symmetries of the model without privileging arbitrary some triangles. Moreover, it provides an additional degree of freedom to improve the accuracy of the model, namely the position of the centroid point C.

[0127] Consequently, the position of the centroid point C might be further improved by coding a residual position in the bitstream such that the position centroid point C is closer from original points of the point cloud.

[0128] For example, C = Cmean + Cres

[0129] where Cmean is the mean position obtained by averaging coordinates of all (ordered) vertices, and Cres is a coded residual.

[0130] The coded residual may be a 3D residual. However, it is observed that a 3D residual is rarely advantageous because it requires many bits to be coded and this many bits  are not fully compensated by the better accuracy of the model. Therefore, it is preferred to code a 1D residual Cres.

[0131] For example, a normal vector may be constructed, as shown in Figure 11, and the residual may be determined by the following equation:

[0132] where α is a 1D signed scalar value coded in the bitstream, see Figure 12. The normal vector may be derived by the following two steps

[0133] 1.

[0134] 2. and then normalization

[0135] where × is the cross product (also named vector (cross) product) between two vectors, and the edges are:

[0136] It will be understood that the vector may be taken parallel to an axis in order to simplify computation of its determination and the value α. The vector may be taken parallel to the dominant axis as a good approximation of the vector computed above. The value α is determined by the encoder, encoded into the bitstream and obtained by the decoder by decoding the bitstream. The value α may be binarized and each bit may be encoded by using a binary entropy coder such as an arithmetic coder or a context adaptive binary coder like CABAC.

[0137] The value α may be binarized into

[0138] · a flag f0 indicating if α is equal to 0,

[0139] · a sign that indicates if α>0 or α<0,

[0140] · a flag f1 indicating if |α| is equal to 1,

[0141] · a remainder |α|-2 coded by an expGolomb coder.

[0142] The value α may be determined by the encoder by considering all points Pk of the point cloud belonging to a current leaf node. For each point Pk, its distance dk from the line (Cmean,  ) is found by

[0143] and in case this distance dk is below a pre-defined threshold th (e.g., th =2) , the point Pk is used to compute the value α. The 1D residual rk of a point Pk relative to the mean point Cmean is obtained by the scalar product (also named inner product or dot product)

[0144] The value α is thus obtained by

[0145] where S is the set of points Pk such that their distance dk is below the threshold th, and |S| is the number of points belonging to this set.

[0146] In current trisoup coding, as is described in relation to the previous figures, the centroid point C of a leaf node is used to estimate the highest part of surface of point cloud in the leaf node, and to reconstruct point cloud, centroid point C and vertices  (V0, …, Vi) of a leaf node will be used to construct triangles, then, preferably a ray tracing method is applied to the constructed triangles.

[0147] The point cloud data captured in natural scenes tend to have smooth surface even in concave or convex areas. However, in current trisoup coding, to model concave or convex areas by triangles in a leaf nodes, the generated centroid residual Cres will be big, (for example, Cres can be around half of the leaf node width) , then the modelled surface using the constructed triangles (by using centroid point C and vertices (V0, …, Vi) ) within a leaf node will have a big protrusion, and the generated surface will be far from naturel smooth and have artifacts effects. As is shown in Figure 13, points 1301 represent vertices along edges in a leaf node, and points 1303 represent centroid point C in a leaf node, small points 1305 represent points on original surface (for the sake of clarity, only one of these small points is marked with reference 1305) , and it can be seen that the modelled surface with pointy protrusions cannot model original surface well enough, and the reconstructed surface may not keep the smooth characteristics of original surface, which may make the reconstructed point cloud having bad visual quality, especially at lower compression rate when the leaf node size is relatively big. Thus, the compression efficiency of current trisoup coding in MPEG G-PCC is not optimal.

[0148] Thus, the problem to be solved by the present invention is to improve compression efficiency of point cloud by reducing the non-smooth degree of reconstructed surface at decoder side.

[0149] Therefore, according to the present invention, it is proposed to refine the triangle modelling in leaf nodes to make the reconstructed surface closer to original surface at decoder side. To be detail, for example, after obtaining the decoded vertices and decoded centroid point C at decoder side, the proposed method may be used to adjust the positions of vertices towards the direction of vector in leaf nodes of convex or concave areas, then the proposed method can reduce the non-smooth degree of reconstructed point cloud and the bitstream size will not increase. Thus, the advantages of the proposed methods are:

[0150] · the compression efficiency of trisoup coding for point cloud geometry information can be improved, and also the experiment results show that the proposed method can improve the compression efficiency of point cloud data on D1 (point-to-point distortion) metric by around 2%and D2 (point-to-point distortion) metric by around 1%, therein, D1 and D2 are provided by the G-PCC for evaluation purpose.

[0151] · and also the improved geometry quality of reconstructed point cloud can benefit the following attribute coding,

[0152] · further, the proposed method will not increase the running time of trisoup coding.

[0153] In some embodiments, the method according to the present invention follows the steps:

[0154] At decoder side, after decoding vertices of each leaf node from bitstream, it iterates each leaf node to construct triangles for getting reconstructed point cloud, preferably by ray tracing method.

[0155] To be detail, for each leaf node, for example

[0156] · if the current (i.e., processed) leaf node has more than 3 vertices,

[0157] · Firstly, it may determine the centroid point C to construct modelling surface consisted of triangles constructed by vertices and centroid point C. To be detail, firstly it may determine the mean point Cmean of vertices (V0, …, Vi) in the leaf node, and unit vector of centroid residual, and then it decodes the magnitude value Cres of centroid residual from bitstream, and finally it may obtain the centroid point C by wherein is the vector from Cmean to C, which can also be named as

[0158] · Then it may determine a prominence degree of modelling surface in the leaf node, in a preferred embodiment, it may determine if the centroid residual Cres is large or not relative to leaf node size.

[0159] · If the centroid residual Cres is large relative to leaf node size (it is more likely that the constructed surface based on current vertices (V0, …, Vi) ) and centroid point C will have pointy protrusions artifacts in the generated modelling surface) , then among all the vertices V (V1, …, Vi) ) in the leaf node, vertices that are on edges along axis where the vector has maximum value among all three axes, may be refined along the edges which they belong to, within the boundary of the edge in the leaf node, and toward direction that can make reconstructed surface more natural. (The detail vertices refinement is described later)

[0160] · Otherwise, all vertices (V0, …, Vi) in the leaf node may not be refined.

[0161] · Then all vertices in the leaf node (including the refined vertices V’ and the other non-refined vertices V) are used to construct triangles combined with centroid point C, as is described in relation to the previous figures, and it may apply ray tracing method onto each triangle to get reconstructed points in the leaf node.

[0162] · Otherwise, if the leaf node has 3 vertices, there will be no mean point Cmean and centroid point C in the processed leaf node, and only 1 triangle V1V2V3 can be constructed, and it may apply ray tracing method onto the triangle to get reconstructed points in the leaf node.

[0163] · Otherwise, if the leaf node has less than 3 vertices, there will be no triangle constructed for the leaf node, so no reconstructed points will be generated for the leaf node.

[0164] At encoder side, after encoding vertices of each leaf node into bitstream, it iterates each leaf node to encode information of centroid position C, and for later attribute coding, it also needs to get reconstructed geometry information of point cloud by  constructing triangles based on vertices and centroid position C. And to get refined modelling surface in the leaf node, it processes the leaf nodes iteratively following same steps as described above in decoder side.

[0165] In some embodiments, to determine if the centroid residual Cres is large or not relative to leaf node size, the centroid residual Cres may be compared with a threshold Th that based on leaf node size N. The threshold Th may be a scale s of the leaf node size, Th=N*s, and the sale s may be 0<s≤1 / 8, for example,  And in practical implementation, to increase the precision of division / multiplication operation, Cres are multiplied by 64 (which may be achieved by applying left shift 6 bits operation on Cres, so the compared threshold Th need to be multiplied by 64, which becomes N / 2) . And for example, for a leaf node, if Cres> Th, then vertices in the leaf node may be refined according to the proposed method; otherwise, the proposed surface refinement method will not be applied for the leaf node, and it follows the same process as that in prior art.

[0166] As described above, if the centroid residual Cres is large relative to leaf node size, then among all the vertices V (V1, …, Vi) ) in the leaf node, vertices that are on edges along axis where the vector has maximum value among all three axes, may be refined along the edges which they belong to, within the boundary of the edge in the leaf node, and toward direction that can make reconstructed surface more natural. In preferred embodiments, the detail vertices refinement may follow the steps:

[0167] · Firstly, it may determine the axis axis_max along which the vector has maximum value;

[0168] · Then, it may find vertices (V0, …, Vi) that are on edges parallel to axis axis_max in the leaf node,

[0169] · then it changes the axis_max-th dimension of these vertices based on the centroid residual vector of the leaf node, and the obtained vertex V’i can be described as

[0170] wherein the offset is a shift distance from Vi, and is a unit vector pointing direction of the shift. In preferred embodiments,  may be based on and edge boundary, wherein represents the projected vector of centroid residual vector along axis_max direction, edge boundary is a constrain condition to keep the vertex not exceed the leaf node which it belongs to. And in such embodiments,  may be along the same direction of and offset may be obtained based on the magnitude value of and edge boundary of the leaf node. In preferred embodiments, the offset can be 1 / 3 of magnitude value of Figure 14 shows the refined  surface produced according to the present invention, the points 1401 on edges are vertices V used to model surface according to the current trisoup method, the arrow line parallel to the X axis represents the projected vector of the centroid residual and the points 1401a (for the sake of clarity, only of these points have been marked with reference) are refined vertices V’ by shifting vertices V along direction of as can be seen that, the refined surface are closer to the original surface in the leaf nodes, and the pointy protrusions artifacts has been reduced in some extent.

[0171] Reference is now made to Figure 15, which shows a simplified block diagram of an example embodiment of an encoder or decoder 300. The encoder or decoder 300 includes a processor 301 and a memory storage device 303. The memory storage device 303 may store a computer program or application containing instructions that, when executed, cause the processor 301 to perform operations such as those described herein. For example, the instructions may encode and output bitstreams encoded or decode bitstreams and output points of a point cloud in accordance with the methods described herein. It will be understood that the instructions may be stored on a non-transitory computer-readable medium, such as a compact disc, flash memory device, random access memory, hard drive, etc. When the instructions are executed, the processor 301 carries out the operations and functions specified in the instructions so as to operate as a special-purpose processor that implements the described process (es) . Such a processor may be referred to as a "processor circuit" or "processor circuitry" in some examples.

[0172] It will be appreciated that the decoder and / or encoder according to the present application may be implemented in a number of computing devices, including, without limitation, servers, suitably programmed general purpose computers, machine vision systems, and mobile devices. The decoder or encoder may be implemented by way of software containing instructions for configuring a processor or processors to carry out the functions described herein. The software instructions may be stored on any suitable non-transitory computer-readable memory, including CDs, RAM, ROM, Flash memory, etc.

[0173] It will be understood that the decoder and / or encoder described herein and the module, routine, process, thread, or other software component implementing the described method / process for configuring the encoder or decoder may be realized using standard computer programming techniques and languages. The present application is not limited to particular processors, computer languages, computer programming conventions, data structures, other such implementation details. Those skilled in the art will recognize that the described processes may be implemented as a part of computer-executable code stored in volatile or non-volatile memory, as part of an application-specific integrated chip (ASIC) , etc.

[0174] Certain adaptations and modifications of the described embodiments can be made. Therefore, the above discussed embodiments are considered to be illustrative and not restrictive. In particular, embodiments can be freely combined with each other.

Claims

1.Method for decoding, from a bitstream, the geometry of a 3D point cloud, preferably implemented in a decoder, including:receiving a bitstream, wherein the bitstream contains octree information including information about octree structure of the volume of the point cloud and vertex information including information about vertex presence and position of a vertex on edges of cuboids of leaf nodes of the octree structure;determining a virtual position based on the positions of vertices of one cuboid relating to a leaf node of the octree structure;constructing triangles based on the vertices of one cuboid and the virtual position;determining a normal vector of the cuboid based on the constructed triangle;determining a centroid position based on the normal vector;reconstructing triangles based on vertices of the cuboid and the centroid position;voxelizing the reconstructed triangles to determine points of the point cloud, wherein before reconstructing the triangles, the method further comprising adjusting at least one vertices towards the centroid position.2.Method for encoding a 3D point cloud into a bitstream, preferably implemented in an encoder, including:obtaining octree information including an octree structure of a volume including a plurality of cuboids;obtaining vertex information from surfaces of the point cloud for each cuboid relating to a leaf node, wherein the vertex information includes information about vertex presence and position of a vertex on edges of the cuboid;encoding the octree information and the vertex information into a bitstream;reconstructing the point cloud geometry data by using octree information and vertex information obtained in the preceding encoding process, wherein reconstructing the point cloud data includes:determining a virtual position based on the positions of vertices of one cuboid relating to a leaf node of the octree structure;constructing triangles based on the vertices of one cuboid and the virtual position;determining a normal vector of the cuboid based on the constructed triangle;determining a centroid position based on the virtual position and the normal vector;reconstructing triangles based on vertices of the cuboid and the centroid position;voxelizing the reconstructed triangles to determine points of the point cloud, wherein before reconstructing the triangles, the method further comprising adjusting at least one vertices towards the centroid position.3.The method according to claim 1, wherein the bitstream further contains an additional value α and the centroid position is further determined based on the additional value α.4.The method according to claim 2, further comprising: determining an additional value α; encoding the additional value into the bitstream; wherein the centroid position is further determined based on the additional value α.5.The method according to any of claims 3 or 4, the additional value α is determined based on the position of all the points of the point cloud.6.The method according to any of claims 1 to 5, wherein the at least one vertices is adjusted only if the difference between the virtual position and the centroid position exceeds a threshold, preferably the threshold is based on the leaf node size, preferably a scale s of the leaf node size, wherein preferably s = 1 / 128.7.The method according to any of claims 1 to 6, wherein the at least one vertices is adjusted according to a fixed value, preferably the fixed value is determined based on the type of the point could and is coded into or from the bitstream.8.The method according to any of claims 1 to 6, wherein the at least one vertices is adjusted based on the difference between the virtual position and the centroid position, preferably further based on the edge boundary of the leaf node.9.Encoder to encode a 3D point cloud into a bitstream comprising at least one processor and a memory, wherein the memory stores instructions when executed by the processor perform the steps of the method according to any of claims 2 and 4 to 8 when dependent on claim 2.10.Decoder to decode a 3D point cloud from a bitstream comprising at least one processor and a memory, wherein the memory stores instructions when executed by the processor perform the steps of the method according to any of claims 1, 3 and 5 to 8 when dependent on claim 1.11.Bitstream encoded by the method according to any of claims 2 and 4 to 8 when dependent on claim 2.12.Computer-readable storage medium comprising instructions when executed by a processor to perform the steps of the method according to any of claims 1 to 8.