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

The method improves point cloud compression by using an octree structure, vertex information, and plane information within TriSoup coding to enhance compression efficiency and enable real-time transmission of dense and dynamic point clouds.

US20260378106A1Pending Publication Date: 2026-11-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/146772
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2023-01-11
Publication Date
2026-11-26

Smart Images

  • Figure US20260378106A1-D00000_ABST
    Figure US20260378106A1-D00000_ABST
Patent Text Reader

Abstract

Method for decoding, from a bitstream, the geometry of a 3D point cloud, preferably implemented in a decoder, includeing: 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 points of the point cloud based on the decoded octree information and vertex information; characterized in that the bitstream further comprises plane information indicating whether the point cloud data is plane or not, the determining points of the point cloud is further based on the decoded plane information.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application is the U.S. national phase application of International Application No. PCT / CN2023 / 071828, filed on Jan. 11, 2023, the disclosure of which is incorporated herein by reference in its entirety.TECHNICAL FIELD

[0002] The present disclosure relates to a method for decoding a 3D point cloud from a bitstream. Additionally, it is an object of the present disclosure to provide a method for encoding a 3D point cloud into a bitstream. Further, it is an object of the present disclosure to provide an encoder and decoder, a bitstream encoded according to the present disclosure and a software. It is an object of the present disclosure to provide a method with improved compression efficiency of the decoding or reconstruction process of a 3D point cloud, in particular, with respect to point cloud data with flat areas.BACKGROUND

[0003] 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:

[0004] movie post-production,

[0005] real-time 3D immersive telepresence or VR / AR (virtual reality / augmented reality) applications,

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

[0007] Geographical Information Systems (aka cartography),

[0008] cultural heritage (storage of scans of rare objects in a digital form),

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

[0010] 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.

[0011] Consequently, a point cloud is a combination of geometry (the 3D position of each point) and attributes.

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

[0013] 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, point clouds may have from thousands to up to billions of points for cartography applications.

[0014] 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 colors. The 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.

[0015] 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.

[0016] 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 the Moving Picture Experts Group (MPEG), has initiated work items on point cloud compression. This has led to two standards, namely:

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

[0018] MPEG-I part 9 (ISO / IEC 23090-9) or Geometry-based Point Cloud Compression (G-PCC). Both V-PCC and G-PCC standards have finalized their first version in late 2020.

[0019] 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.

[0020] 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 center of these nodes. By using neighbor-based prediction techniques, a high level of compression can be obtained for dense point clouds. Sparse point clouds are also addressed by directly coding the position of points 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).

[0021] 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 advantages of lower latency and simpler decoding, as compared with 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.

[0022] 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.

[0023] 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 most of the time they 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 neighbors.

[0024] 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.

[0025] 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 utilize 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 million 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.

[0026] 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 (10× more compressed than lossless coding) would already make possible real time transmission.

[0027] 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.

[0028] 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.

[0029] However, as with all lossy compression schemes, efficiency and quality of reconstruction of the points of the point cloud are essential.SUMMARY

[0030] In a first aspect, a method for decoding geometry of a 3D point cloud from a bitstream is provided implemented in a decoder. The method includes: receiving and decoding a bitstream, wherein the bitstream contains octree information including, information about the 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; and determining points of the point cloud based on the decoded octree information and vertex information; wherein the bitstream further comprises plane information indicating whether the point cloud data is plane or not, the determining points of the point cloud is further based on the decoded plane information.

[0031] In another aspect of the present disclosure a method for encoding a 3D point cloud into a bitstream is provided implemented in an encoder. The method includes: 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; determining points of the point cloud based on the encoded octree information and vertex information; and determining and encoding plane information indicating whether the point cloud data is plane or not, the determining points of the point cloud is further based on the encoded plane information.BRIEF DESCRIPTION OF DRAWINGS

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

[0033] FIG. 1 a flow diagram of the method for decoding a 3D point cloud geometry according to the present disclosure.

[0034] FIG. 2 an example for generation of the octree structure.

[0035] FIG. 3 an octree according to FIG. 2.

[0036] FIG. 4 an example for determining vertices on edges of a cuboid.

[0037] FIG. 5 an example for generating triangles.

[0038] FIG. 6 an example of vertices on the edges of a cuboid.

[0039] FIG. 7 a generation of the triangle by vertices.

[0040] FIG. 8 an example of determining the order of the triangles according to FIG. 7FIG. 9 a schematic drawing for the step of voxelization.

[0041] FIG. 10 an example of reconstruction of triangles using the centroid point C as a pivoting point.

[0042] FIG. 11 an example of normal vector.

[0043] FIG. 12 an example of a 1D residual along the normal vector.

[0044] FIG. 13 an example of normal vector determination process.

[0045] FIG. 14 probability distribution of quantized centroid residual Q(Cres) for ulb_unicorn sequence.

[0046] FIG. 15 an example of non-flat leaf node whose dominant direction is vertical.

[0047] FIG. 16 an example of flat leaf node whose dominant direction is vertical.DETAILED DESCRIPTION OF THE EMBODIMENTS

[0048] Thus, it is an object of the present disclosure 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.

[0049] The problem is solved by a method for decoding, a method for encoding, an encoder, a decoder, a bitstream and a non-transitory computer-readable storage medium according to the present disclosure.

[0050] In a first aspect a method for decoding geometry of a 3D point cloud from a bitstream is provided implemented in a decoder. The method includes: 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; and determining points of the point cloud based on the decoded octree information and vertex information; wherein the bitstream further comprises plane information indicating whether the point cloud data is plane or not, the determining points of the point cloud is further based on the decoded plane information.

[0051] 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. Alternatively, or additionally, the geometry of the Point cloud is GPCC-encoded. Thus, by decoding from the bitstream the octree information about the volume of the point cloud 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. Furthermore, the bitstream according to the present disclosure additionally comprises plane information indicating whether the point cloud data is plane or not. Thus, by decoding the bitstream, such plane information is also available which could be used for determining point cloud data with better overall compression efficiency. Therein the bitstream is alternatively or additionally decoded by a TriSoup decoding scheme at the decoder.

[0052] After decoding the octree information and vertex information from the bitstream which is described in the previous step, in a further step, points of the point cloud are determined not only based on the decoded octree information and vertex information, but also based on the additionally provided plane information. Therein, standard technologies might be used to determine the point cloud based on the octree information and the vertex information, alternatively or additionally, according to TriSoup coding scheme. With the decoded plane information, it is possible to provide shortcuts for the standard coding technologies so that unnecessary bits could be saved in certain use cases. As a result, the overall compression efficiency can be improved.

[0053] Alternatively or additionally, when the plane information indicates that the point cloud data is plane, determining points of the point cloud based on the decoded or encoded octree information and vertex information comprises: determining a virtual position by averaging the positions of vertices of one cuboid relating to a leaf node of the octree structure; constructing triangles by connecting clockwise two consecutive vertices of one cuboid and the virtual position; determining a flat degree of a current leaf node indicating whether the current leaf node is flat or not; if the flat degree indicates that the current leaf node is flat: set a centroid residual Cres to 0; if the flat degree indicates that the current leaf node is not flat: determining a normal vector of the cuboid based on the constructed triangle and determining a centroid residual Cres based on the normal vector; determining a centroid position based on the virtual position and the centroid residual Cres; reconstructing triangles by connecting clockwise two consecutive vertices of the cuboid and the centroid position; voxelization of the reconstructed triangles to determine points of the point cloud.

[0054] Thus, when it is determined that the point cloud data is plane, for reconstructing the point cloud geometry, triangles may be determined for each cuboid. Specifically, a virtual position is first determined by averaging the positions of vertices of one cuboid. Then, a first set of triangles are constructed 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). Subsequently, a flat degree of the current leaf node indicating whether the current leaf node is flat or not is determined. Based on the flat degree, it might be determined whether it will be necessary to decode and calculate residual information from the bitstream. In particular, if the flat degree indicates that the current node is a flat leaf node, the centroid residual is directly set to be 0 without decoding it from the bitstream. Otherwise, a normal vector of the cuboid may be 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. Alternatively, or additionally, the normal vectors of the first set of the triangles are weighted. Alternatively, or additionally, the weight is determined based on the areas of the first set of triangles. Triangles with larger area are more likely to contain more points of the point cloud and are thus are given a larger weight. Then a centroid position is determined based on the virtual position and the centroid residual. The normal vector might be scaled as a centroid residual for adjusting the virtual position. With such adjustment, the determined centroid position might be closer to the original positions of the point cloud in the leaf node. The triangles are constructed according to the vertices and the centroid in a similar manner as previously described. In order to reconstruct the points of the point cloud from the reconstructed triangles, voxelization is performed 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.

[0055] Alternatively, or additionally, the flat degree is determined based on a dominant distance Ddomin, wherein the dominant distance is the largest distance along dominant direction among all the vertices of a leaf node, the dominant direction being the direction with the largest projected area of the constructed triangles. Thus, to determine the flat degree, a dominant distance might be needed. A dominant direction is commonly known in the standard TriSoup coding methods. Therein, each of the three axis is tested and the one maximizing the total surface of triangles is the dominant axis (i.e., direction). Thereafter, the distance between the vertex of the leaf node with largest value along the dominant direction and the one with smallest value is calculated as the dominant distance. Alternatively, or additionally, when the dominant distance is 0, then the flat degree indicates that the current leaf node is flat. Alternatively, or additionally, when the dominant distance is greater than 0, the flat degree indicates that the current leaf node is not flat.

[0056] Alternatively, or additionally, the bitstream further contains an additional value a and the centroid position is further determined based on the additional value. Therein, the additional value may be determined by the encoder and may be used to calculate the centroid position.

[0057] Alternatively, or additionally, the additional value a 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 encoder by considering all the points of the point cloud belonging to the current leaf node. Alternatively, or additionally, 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.

[0058] Alternatively, or additionally, the plane information is obtained by characteristic of the point cloud data.

[0059] In another aspect of the present disclosure a method for encoding a 3D point cloud into a bitstream is provided alternatively or additionally implemented in an encoder. Alternatively, or additionally, the method for encoding is further built according to the features described before in connection with the method for decoding.

[0060] In another aspect of the present disclosure 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.

[0061] In another aspect of the present disclosure 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 described before.

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

[0063] In another aspect of the present disclosure 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.

[0064] In another aspect of the present disclosure 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.

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

[0066] The method for decoding geometry of a 3D point cloud from a bitstream, alternatively or additionally implemented in a decoder, includes at least the following steps.

[0067] S11: 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.

[0068] S12: determining points of the point cloud based on the decoded octree information and vertex information.

[0069] S13: the bitstream further comprises plane information indicating whether the point cloud data is plane or not, the determining points of the point cloud is further based on the decoded plane information.

[0070] The corresponding steps are also performed at the encoder side. 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 FIGS. 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 sub-volumes 104 refers to the sub-volumes 102 that are occupied by at least one point and are then recursively into octants 106, each is represented by a node 116 in the tree 110, until a target level is reached. The octants 106 that are occupied by at least one point are shaded in FIGS. 2 and 3, for example, as shown by a node 120 in the tree 110.

[0071] 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.

[0072] FIG. 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 outlined by solid lines and corresponding dotted lines intersects the edges of the block at six illustrated vertices 232 of a polygon 230 outlined by dashed lines and corresponding dotted line. An edge of the block 220 is said to be selected if it contains a vertex.

[0073] FIG. 5 illustrates the block 220 outlined by solid lines and long dashed lines 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 240 on edge i, one specifies a scalar value to indicate a corresponding fraction of the length of the edge 250.

[0074] As illustrated in FIGS. 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 outlined by short dashed lines and dotted lines. This surface is encoded and used to obtain the positions of the reconstructed (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.

[0075] Vertices 310 of triangles are coded along the edges 320 of volumes associated with leaf nodes 300 of the tree, as depicted in FIG. 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.

[0076] As mentioned above, the encoding of the TriSoup vertices requires two information per edge: a vertex flag indicating if a TriSoup vertex is present on the edge, and when present, the vertex position along the edge.

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

[0078] 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{circumflex over ( )}s might be coded with unitary precision by pushing (bypassing / not entropy coding) s bits into the bitstream.

[0079] 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 FIG. 7.

[0080] Additionally, one of ordinary skill in the art would easily understand that other combinations of triangles 330, 340 are possible. The choice of triangles comes from a three-step process. Step 1, determining a dominant direction along one of the three axes, Step 2, ordering TriSoup vertices depending on the dominant direction, and Step 3, constructing triangle based on the ordered list of vertices.

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

[0082] FIG. 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 axes is depicted on FIG. 8.

[0083] 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.

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

[0085] 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 FIG. 8 inside the node. It is to be noted that taking the horizontal axis as dominant would have led to another construction of triangles.

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

[0087] 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.

[0088] For ray tracing as shown in FIG. 9, rays 350 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 360 (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.

[0089] 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.

[0090] 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 FIG. 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:

[0091] V1V2C,

[0092] V2V3C,

[0093] . . . ,

[0094] VM-1VMC, and

[0095] VMV1C.

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

[0097] 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.

[0098] 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.

[0099] For example:C=Cmean+Cres

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

[0101] 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 these many bits are not fully compensated by the better accuracy of the model. Therefore, it is preferred to code a 1D residual Cres.

[0102] For example, a normal vector {right arrow over (n)} may be constructed, as shown in FIG. 11, and the residual may be determined by the following equation:Cres=α*{right arrow over (n)}

[0103] Where α is a 1D signed scalar value coded in the bitstream, see FIG. 12. The normal vector {right arrow over (n)} may be derived by the following two steps:

[0104] 1. {right arrow over (m)}={right arrow over (E1)}×{right arrow over (E2)}+ . . . +{right arrow over (EM−1)}×{right arrow over (EM)}+{right arrow over (EM)}×{right arrow over (E1)},

[0105] 2, and then normalization {right arrow over (n)}={right arrow over (m)} / √∥{right arrow over (m)}∥

[0106] Where x is the cross product (also named vector (cross) product) between two vectors, and the edges {right arrow over (Ej)} are:EJ→=VJ⁢Cmean→.

[0107] It will be understood that the vector {right arrow over (n)} may be taken parallel to an axis in order to simplify computation of its determination and the value α. The vector {right arrow over (n)} may be taken parallel to the dominant axis as a good approximation of the vector computed above.

[0108] The value α may be determined by the encoder, alternatively or additionally, 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.

[0109] The value α may be binarized into: a flag f0 indicating if α is equal to 0, a sign that indicates if α>0 or α<0, a flag f1 indicating if |α| is equal to 1, or a remainder |α|−2 coded by an expGolomb coder.

[0110] 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, {right arrow over (n)}) is found by:dk=n→×Cmean⁢Pk→.

[0111] 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), as shown by:rk=n→·Cmean⁢Pk→.

[0112] The value α is thus obtained by:α=Σp<sub2>k< / sub2>∈Srk / |S|. 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.In a triangle (assume the index of this triangle is i) constructed by vertices and Cmean, the normal vector {right arrow over (nl)} of this triangle can be obtained by the cross product of the edges {right arrow over (Ej)}, andEJ→=VJ⁢Cmean→.For example, as shown in FIG. 13, the normal vector {right arrow over (n1)} of triangle V1V2Cmean can be obtained by cross product of {right arrow over (E1)} and {right arrow over (E2)}, which can be described by the following equation:{right arrow over (n1)}={right arrow over (E1)}×{right arrow over (E2)}.Where the normal vector {right arrow over (n2)} of triangle V2V3Cmean can be obtained by cross product of {right arrow over (E2)} and {right arrow over (E3)}, which can be described by the following equation:{right arrow over (n2)}={right arrow over (E2)}×{right arrow over (E3)}.Similarly, the normal vector {right arrow over (n3)} of triangle V3V4Cmean and {right arrow over (n4)} of triangle V4V1Cmean can be obtained by:{right arrow over (n3)}={right arrow over (E3)}×{right arrow over (E4)},{right arrow over (n4)}={right arrow over (E4)}×{right arrow over (E1)}Then, the normal vector {right arrow over (n)} of leaf node in this example is determined by following two steps: calculate the sum of normal vector {right arrow over (nl)} of each triangle (V1V2Cmean, V2V3 Cmean, . . . , VM−1VM Cmean, VMV1 Cmean),{right arrow over (m)}={right arrow over (E1)}×{right arrow over (E2)}+ . . . +{right arrow over (EM−1)}×{right arrow over (EM)}+{right arrow over (EM)}×{right arrow over (E1)}={right arrow over (E1)}×{right arrow over (E2)}+{right arrow over (E2)}×{right arrow over (E3)}+{right arrow over (E3)}×{right arrow over (E4)}+{right arrow over (E4)}×{right arrow over (E1)}={right arrow over (n1)}+{right arrow over (n2)}+{right arrow over (n3)}+{right arrow over (n4)}.Then calculate normalization of normal vector:{right arrow over (n)}={right arrow over (m)} / ∥{right arrow over (m)}∥In current TriSoup coding, at encoder side, to encode the centroid residuals of all leaf nodes into bitstream, it follows the steps of: iterating each leaf node in a point cloud to obtain the centroid residual Cres for each leaf node using method described above. Then quantizing the centroid residual Cres and get Q(Cres). Finally encoding Q(Cres) of each leaf node into bitstream by entropy encoding. Specifically, firstly it encodes a bin indicating if Q(Cres) is equal to 0 or not, and if Q(Cres) is equal to 0, the encoding of Q(Cres) finishes; otherwise, continue to encode the magnitude and sign of Q(Cres) by entropy encoding.And at decoder, to decode the centroid residuals of all leaf nodes from bitstream, it follows the steps of: iterating each leaf node in a point cloud to decode Q(Cres) of each leaf node from bitstream by entropy decoding. Specifically, firstly it decodes a bin indicating if Q(Cres) is equal to 0 or not, and if Q(Cres) is equal to 0, the decoding of Q(Cres) finishes; otherwise, continue to decode the magnitude and sign of Q(Cres) by entropy decoding. Then perform dequantization to Q (Cres) to get dequantized centroid residual C′res. Finally use the dequantized centroid residual C′res to reconstruct the centroid position of each leaf node.As is previously described, residual Cres is a 1D residual constructed from the mean point Cmean and the centroid point C (along the line of normal vector n) in a leaf node, and the centroid point C of a leaf node is used to estimate the highest part of surface of point cloud in the leaf node, so the residual Cres tends to be non-zero in leaf node that has non-flat areas, which can be named as ‘non-flat node’; and the residual Cres tends to be zero in leaf node that all points within it locate in a flat area, which can be named as ‘flat node’. And after centroid residual quantization, not only the quantized centroid residuals Q(Cres) of flat nodes are 0, the quantized centroid residuals Q(Cres) of some non-flat nodes may also become 0, and they are encoded / decoded from bitstream.According to our observation, for flat point cloud data (whose surface has a majority of flat nodes), like stanford_area and ulb_unicorn sequences in MPEG test dataset, most of the values of quantized residuals Q(Cres) are 0, for example, the distribution of Q(Cres) for ulb_unicorn sequence is shown in FIG. 14, and more than 90% of Q(Cres) values for ulb_unicorn sequence are 0, which has different distribution from that of non-flat data. However, in current TriSoup coding, it uses same method to encode / decode Q(Cres) by entropy coding for both flat point cloud data and non-flat point cloud data, which is not optimal coding method for flat point cloud data since most of their Q(Cres) values are 0 is a prior information that can be used to improve compression efficiency, and these Q(Cres) values has relationship with flat degrees of leaf nodes, it will be a waste of bits if we code so many 0 values into bitstream directly.

[0122] Thus, the present disclosure provides a method to improve the compression efficiency of point cloud data.

[0123] In general, it is proposed to improve the compression efficiency of centroid residual Cres for point cloud data with a majority of flat areas (which can be named as plane data) by only coding centroid residuals Q(Cres) of non-flat nodes into / from bitstream, and not coding centroid residuals Q (Cres) of flat nodes since their Q(Cres) tends to be 0. By doing so, it can save coding bits for compression of plane data since there are a large percentage of leaf nodes whose Q(Cres) are 0 for plane data, and as a result, the geometry compression efficiency of plane data can be improved.

[0124] In one embodiment, to estimate if point cloud in a leaf node is flat or not (flat leaf node or non-flat leaf node), a distance Ddomin is introduced. Specifically, in current TriSoup coding, vertices are determined for edges of each leaf node, they can be used to calculate the largest distance along dominant direction among all the vertices of a leaf node, the largest distance can be represented as dominant distance Ddomin, and the dominant distance Ddomin of a leaf node can be obtained by, firstly, finding the maximum coordinate Max and the minimum coordinate Min along dominant direction by iterating all vertices in the leaf node, and then obtain Ddomin of this leaf node by the following equation:Ddomin=Max−Min.

[0125] For example, as is shown in FIG. 15, it's a non-flat leaf node, and there are 4 vertices V1, V2, V3 and V4 in this leaf node, and the dominant direction of vertices in this leaf node is vertical (along z direction, shown by the arrow) since projecting these triangles along vertical direction will get largest projecting area. Along dominant direction, the maximum coordinate among all vertices is z2, the minimum coordinate among all vertices is 24, so the dominant distance Ddomin can be calculated as:Ddomin=z2−z4.

[0126] For the leaf node in FIG. 15, the largest dominant distance Ddomin is larger than 0. For a flat leaf node, as shown in FIG. 16, its dominant direction is also vertical, and vertices in this leaf node are on a plane, so the largest dominant distance Ddomin is 0 according to the previous equation.

[0127] Thus, there is a relationship between the largest dominant distance Ddomin and flat degree of a leaf node, the flat degree of a leaf node means the surface constructed by points in a leaf node is flat or non-flat. The relationship is that: for non-flat leaf nodes, the largest dominant distance Ddomin tends to be larger than 0; and for flat leaf nodes, the largest dominant distance Ddomin tends to be 0, then the largest dominant distance Ddomin can be used to estimate flat degree of a leaf node.

[0128] To improve the geometry compression efficiency of centroid residuals for plane data, only code quantized centroid residuals Q(Cres) for non-flat nodes into / from bitstream, and not coding centroid residuals Q(Cres) for flat nodes into / from bitstream, and infer centroid residuals Q(Cres) as for flat nodes.

[0129] An embodiment of the proposed centroid residual decoding of TriSoup method for plane data follows the steps.

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

[0131] Specifically, for each leaf node, firstly, it determines dominant direction and the largest dominant distance Ddomin. Then, it judges if the current leaf node is flat or not to decode the quantized centroid residuals Q(Cres) based on Ddomin: If the largest dominant distance Ddomin is not 0, then it's non-flat leaf node, and it decodes the quantized centroid residuals Q(Cres) from bitstream following the same method as prior art, which is described above (i.e., current TriSoup coding). Alternatively, if the largest dominant distance Ddomin is 0, then it's flat leaf node, and it directly infers the quantized centroid residuals Q(Cres) to be 0, and it doesn't decode it from bitstream. Then dequantize Q(Cres) and get reconstructed centroid residuals C′res, and then use C′res to obtain centroid position C of current leaf node. Finally, construct triangles based on decoded vertices and obtained centroid position C, and apply tray tracing method to these triangles to get reconstructed point cloud.

[0132] An embodiment of the proposed centroid residual encoding of TriSoup method for plane data follows the steps.

[0133] At the encoder, after encoding vertices of each leaf node into bitstream, then it iterates each leaf node to encode information of centroid position and also to get reconstructed point cloud for later attribute coding by constructing triangles.

[0134] Specifically, for each leaf node, firstly, it determines dominant direction and the largest dominant distance Ddomin. Then, it determines centroid residuals Cres with method described in prior art, and then, it quantizes centroid residuals Cres and get quantized centroid residuals Q(Cres). Then, it judges if the current leaf node is flat or not to encode the quantized centroid residuals Q(Cres) into bitstream based on Ddomin. If the largest dominant distance Ddomin is not 0, then it's non-flat leaf node, and it encodes the quantized centroid residuals Q(Cres) into bitstream following the same method as prior art, which is described above (i.e., current TriSoup coding). Alternatively, if the largest dominant distance Ddomin is 0, then it's flat leaf node, and it doesn't encode Q(Cres) into bitstream, and directly set Q(Cres) as 0 to reconstruct centroid residual. Then dequantize Q(Cres) and get reconstructed centroid residuals C′res, and then use C′res to obtain centroid position C of current leaf node. Finally, construct triangles based on the determined vertices and obtained centroid position C, and then apply tray tracing method to these triangles to get reconstructed point cloud for later attribute coding.

[0135] Since the proposed method is mainly to improve centroid residual coding performance for plane data, it is alternatively or additionally used combining with a flag indicating if the point cloud is plane data or not in TriSoup coding of a point cloud data, and the plane data means point cloud data with majority of flat areas.

[0136] In one embodiment, the flag TrisoupPlaneFlag indicating if the point cloud is plane data or not can be obtained by characteristic of input point cloud data.

[0137] In some embodiments, at encoder, after determining the flag TrisoupPlaneFlag, the flag is encoded into bitstream, and put it in Geometry Parameter Set (GPS).

[0138] In some embodiments, at the decoder side, the flag is decoded from bitstream.

[0139] Thus, an embodiment of the proposed centroid residual decoding of TriSoup coding method for a point cloud data may follow the steps. First, it decodes flag TrisoupPlaneFlag from bitstream. Then, if the flag TrisoupPlaneFlag is true, then current point cloud is plane data, and use the proposed centroid residual decoding method for plane data as described before; otherwise, use centroid residual decoding method in prior art.

[0140] An embodiment of the proposed centroid residual encoding of TriSoup coding method for a point cloud data may follow the steps. First, it determines flag TrisoupPlaneFlag and encodes it into bitstream. Then, if the flag TrisoupPlaneFlag is true, then current point cloud is plane data, and use the proposed centroid residual encoding method for plane data as described before to encode centroid residual; otherwise, use centroid residual decoding method in prior art to encode centroid residual.

Claims

1. A method for decoding, from a bitstream, a geometry of a three-dimensional (3D) point cloud, implemented in a decoder, comprising:receiving a bitstream, wherein the bitstream containsoctree information including information about an octree structure of a volume of the 3D point cloud,vertex information including information about a vertex presence and a position of a vertex on edges of cuboids of leaf nodes of the octree structure, andplane information indicating whether 3D point cloud data is a plane;decoding the bitstream to create decoded octree information, decoded vertex information, and decoded plane information; anddetermining points of the 3D point cloud based on the decoded octree information, the decoded vertex information, and the decoded plane information.

2. (canceled)3. The method according to claim 1, when the plane information indicates that the 3D point cloud data is the plane, determining the points of the 3D point cloud based on the decoded octree information and the vertex information comprises:determining a virtual position by averaging positions of vertices of one cuboid relating to a leaf node of the octree structure;constructing triangles by connecting clockwise two consecutive vertices of the one cuboid and the virtual position;determining a flat degree of a current leaf node, the flat degree indicates whether the current leaf node is flat or not flat, and;one a condition that the flat degree indicates that the current leaf node is flat setting a centroid residual Cres to 0, orone a condition that the flat degree indicates that the current leaf node is not flat: determining a normal vector of the one cuboid based on the triangles and determining a centroid residual Cres based on the normal vector;determining a centroid position based on the virtual position and the centroid residual Cres;reconstructing the triangles to create reconstructed triangles by connecting clockwise two consecutive vertices of the cuboid and the centroid position; andvoxelization of the reconstructed triangles to determine the points of the 3D point cloud.

4. The method according to claim 3, whereinthe flat degree is determined based on a dominant distance,the dominant distance is a largest distance along a dominant direction among all the vertices of the current leaf node,the dominant direction being the direction with a largest projected area of the triangles.

5. The method according to claim 3, whereinthe bitstream further contains an additional value α, andthe centroid position is further determined based on the additional value α.

6. The method according to claim 3, further comprising:determining an additional value α; andencoding the additional value α into the bitstream, andwherein the centroid position is further determined based on the additional value α.

7. The method according to claim 6, the additional value α is determined based on a position of each of a plurality of points of the current leaf node.

8. (canceled)9. A decoder to decode a three-dimensional (3D) point cloud from a bitstream comprising:at least one processor; anda memory storing instructions, andwherein when the instructions are executed by the at least one processor, the instructions cause the at least one processor to perform the method according to claim 1.

10. (canceled)11. A non-transitory computer-readable storage medium, for decoding the geometry of the 3D point cloud, comprising instructions and when the instructions are executed by a processor, cause the processor to perform the method according to claim 1.

12. The method according to claim 5, wherein the additional value α is determined based on a position of each of a plurality of points of the current leaf node.

13. A method for encoding a three-dimensional (3D) point cloud into a bitstream, 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 3D point cloud for each of at least one cuboid relating to a leaf node, wherein the vertex information includes information about a vertex presence and a position of a vertex on edges of the at least one cuboid;encoding the octree information and the vertex information into a bitstream containing encoded octree information and the encoded vertex information;determining plane information that indicates whether the 3D point cloud data is a plane;encoding the plane information to create encoded plane information; anddetermining points of the 3D point cloud based on the encoded octree information, vertex information, and the encoded plane information.

14. The method according to claim 13, when the plane information indicates that the 3D point cloud data is plane, determining the points of the 3D point cloud based on the encoded octree information and the vertex information comprises:determining a virtual position by averaging positions of vertices of one cuboid relating to a leaf node of the octree structure;constructing triangles by connecting clockwise two consecutive vertices of the one cuboid and the virtual position;determining a flat degree of a current leaf node, the flat degree indicates whether the current leaf node is flat or not flat, andone a condition that the flat degree indicates that the current leaf node is flat, setting a centroid residual Cres to 0, orone a condition that the flat degree indicates that the current leaf node is not flat: determining a normal vector of the one cuboid based on the triangles anddetermining a centroid residual Cres based on the normal vector;determining a centroid position based on the virtual position and the centroid residual Cres;reconstructing the triangles to create reconstructed triangles by connecting clockwise two consecutive vertices of the cuboid and the centroid position; andvoxelization of the reconstructed triangles to determine the points of the 3D point cloud.

15. The method according to claim 14, whereinthe flat degree is determined based on a dominant distance,the dominant distance is a largest distance along a dominant direction among all the vertices of the current leaf node,the dominant direction being the direction with a largest projected area of the triangles.

16. The method according to claim 14, whereinthe bitstream further contains an additional value α, andthe centroid position is further determined based on the additional value α.

17. The method according to claim 16, the additional value α is determined based on a position of each of a plurality of points of the current leaf node.

18. The method according to claim 14, further comprising:determining an additional value α; andencoding the additional value α into the bitstream, andwherein the centroid position is further determined based on the additional value α.

19. The method according to claim 18, the additional value α is determined based on a position of each of a plurality of points of the current leaf node.

20. An encoder to encode a three-dimensional (3D) point cloud into a bitstream comprisinga memory storing instructions; andat least one processor configured to execute the instructions, which cause the at least one processor to perform the method according to claim 13.

21. A bitstream encoded by the method according to claim 13.

22. A non-transitory computer-readable storage medium for encoding a three-dimensional (3D) point cloud into a bitstream, and comprising instructions when executed by a processor, cause the processor to perform the method according to claim 13.