Encoding method, decoding method, encoding device, and decoding device

The encoding and decoding method using a trisoap approach within an octree structure addresses the challenge of reproducing three-dimensional point clouds by correcting and estimating edge vertices, resulting in improved accuracy and fidelity of the decoded data.

WO2024176931A1PCT designated stage expired Publication Date: 2024-08-29PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA

Patent Information

Application Number
PCT/JP2024/005179
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-02-15
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Current methods for compressing and decoding three-dimensional point clouds, such as those used in computer vision for autonomous vehicles, face challenges in reproducing the original data accurately due to irreversible compression methods, leading to incomplete or distorted representations of three-dimensional structures.

Method used

The proposed solution involves an encoding and decoding method using a trisoap method that generates and corrects edge vertices based on centroid and face vertices within an octree structure, ensuring accurate reproduction of three-dimensional point clouds by adjusting threshold values and estimating missing vertices, thereby improving reproducibility.

Benefits of technology

This approach enhances the reproducibility of decoded point clouds by correctly generating edge vertices and surfaces, resulting in a more accurate representation of the original three-dimensional data, even in cases where initial compression methods may have introduced errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024005179_29082024_PF_FP_ABST
    Figure JP2024005179_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided is an encoding method for encoding a plurality of three-dimensional points, the encoding method comprising: determining (S311) whether four first edge vertexes have been generated respectively for four first sides of a first plane of a first node; and encoding (S312) the plurality of three-dimensional points on the basis of a result of the determining. The four first edge vertexes are used according to a trisoup scheme. The first node is a unit of storage of a plurality of three-dimensional points included in an octree structure. For example, the encoding method further comprises performing at least one of a first process and a second process if the four first edge vertexes have been generated respectively for the four first sides, wherein: in the first process, a plurality of second edge vertexes are generated respectively for a plurality of second sides included in a plurality of sides obtained by removing the four first sides from the plurality of sides of the first node; and in the second process, a threshold value is increased so that the three-dimensional points are used for generating the plurality of second edge vertexes. The distance between the plurality of second sides and the three-dimensional points may be smaller than the increased threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Encoding method, decoding method, encoding device, and decoding device

[0001] The present disclosure relates to an encoding method, a decoding method, an encoding device, and a decoding device.

[0002] In the future, devices and services that utilize 3D data are expected to become widespread in a wide range of fields, including computer vision for autonomous operation of automobiles or robots, map information, surveillance, infrastructure inspection, video distribution, etc. 3D data can be acquired in a variety of ways, including distance sensors such as range finders, stereo cameras, or a combination of multiple monocular cameras.

[0003] One method of representing three-dimensional data is a representation called a point cloud, which represents the shape of a three-dimensional structure using a group of points in three-dimensional space. In a point cloud, the position and color of the points are stored. Point clouds are expected to become the mainstream method of representing three-dimensional data, but point clouds have a very large amount of data. Therefore, when storing or transmitting three-dimensional data, it is essential to compress the amount of data by encoding, just as with two-dimensional moving images (examples include MPEG-4 AVC or HEVC standardized by MPEG).

[0004] Furthermore, compression of point clouds is partially supported by a public library (Point Cloud Library) that performs processing related to point clouds.

[0005] Furthermore, a technique is known in which three-dimensional map data is used to search for and display facilities located around a vehicle (see, for example, Patent Document 1).

[0006] International Publication No. 2014 / 020663

[0007] In addition, lossy compression may be used as the encoding method. In such cases, the decoded point cloud does not completely match the original point cloud. Therefore, it is desirable to improve the reproducibility of the decoded point cloud.

[0008] An object of the present disclosure is to provide an encoding method, a decoding method, an encoding device, or a decoding device that can improve the reproducibility of a decoded point cloud.

[0009] An encoding method according to one aspect of the present disclosure is an encoding method for encoding a plurality of three-dimensional points, which determines whether four first edge vertices have been generated on four first edges of a first face of a first node, and encodes the plurality of three-dimensional points based on the results of the determination, wherein the four first edge vertices are used in a trisorp method, and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0010] A decoding method according to one aspect of the present disclosure is a decoding method for decoding a plurality of three-dimensional points, the decoding method comprising: decoding a plurality of encoded first edge vertices in a first node to generate the plurality of first edge vertices on a plurality of first edges of the first node that are parallel to each other; if the number of the plurality of first edge vertices is less than four, using positions of the plurality of first edge vertices to estimate positions of one or two second edge vertices on one or two second edges other than the plurality of first edges and that are parallel to the plurality of first edges; the plurality of first edge vertices and the one or two second edge vertices are used in a Trisorp method; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0011] A decoding method according to one aspect of the present disclosure is a decoding method for decoding a plurality of three-dimensional points, the decoding method including: determining whether a first face of a first node is parallel to a cross section of the first node; and decoding the encoded plurality of three-dimensional points based on a result of the determination; the first face has four sides on which four edge vertices are respectively located; the cross section passes through a first centroid vertex of the first node; the cross section is defined by two sets of face vertex pairs, each of which is located on a second face perpendicular to the first face; a line connecting the first centroid vertex and a second centroid vertex of a second node adjacent to the first node intersects with a face vertex of the second face; the first centroid vertex, the second centroid vertex, and the four edge vertices are used in a trisorp system; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0012] The present disclosure can provide an encoding method, a decoding method, an encoding device, or a decoding device that can improve the reproducibility of a decoded point cloud.

[0013] FIG. 1 is a diagram showing an example of an original point cloud according to the first embodiment. FIG. 2 is a diagram showing an example of a pruned octree according to the first embodiment. FIG. 3 is a diagram showing an example of a two-dimensional display of leaf nodes according to the first embodiment. FIG. 4 is a diagram for explaining a method of generating centroid vertices according to the first embodiment. FIG. 5 is a diagram for explaining a method of generating centroid vertices according to the first embodiment. FIG. 6 is a diagram showing example vertex information according to the first embodiment. FIG. 7 is a diagram showing an example of a Trithorpe surface according to the first embodiment. FIG. 8 is a diagram for explaining a point cloud restoration process according to the first embodiment. FIG. 9 is a diagram showing an example of a point cloud according to the first embodiment. FIG. 10 is a diagram showing an example of generating centroid vertices according to the first embodiment. FIG. 11 is a diagram showing an example of generating triangles (Trithorpe surfaces) according to the first embodiment. FIG. 12 is a diagram showing an example of generating face vertices according to the first embodiment. FIG. 13 is a diagram showing an example of generating edge vertices and centroid vertices according to the first embodiment. FIG. 14 is a diagram for explaining a method of correcting edge vertices according to the first embodiment. FIG. 15 is a diagram for explaining another method of correcting edge vertices according to the first embodiment. FIG. 16 is a diagram illustrating an example of a plurality of vertices according to the first embodiment. FIG. 17 is a diagram illustrating an example of vertices generated at four nodes according to the first embodiment. FIG. 18 is a diagram illustrating an example of vertices generated at four nodes according to the first embodiment. FIG. 19 is a diagram illustrating an example of vertices generated at four nodes according to the first embodiment. FIG. 20 is a diagram illustrating information dependencies in the restoration of vertex coordinates according to the first embodiment. FIG. 21 is a diagram illustrating an example of vertices generated at four nodes according to the first embodiment. FIG. 22 is a flowchart of a decoding process according to the first embodiment. FIG. 23 is a flowchart of a process of generating a plurality of triangles according to the first embodiment. FIG. 24 is a diagram illustrating an example of generation of edge vertices and centroid vertices according to the second embodiment. FIG. 25 is a diagram illustrating an example of a restored surface according to the second embodiment. FIG. 26 is a diagram illustrating an example of generation of centroid vertices and edge vertices according to the second embodiment. FIG. 27 is a diagram illustrating an example of a restored surface according to the second embodiment. FIG. 28 is a diagram illustrating an example of generation of centroid vertices, edge vertices, and face vertices according to the second embodiment.FIG. 29 is a diagram showing an example of generating centroid vertices, edge vertices, and face vertices according to the second embodiment. FIG. 30 is a flowchart of an encoding process according to the second embodiment. FIG. 31 is a flowchart of an edge vertex regeneration process according to the second embodiment. FIG. 32 is a flowchart of an encoding process and a decoding process according to the second embodiment. FIG. 33 is a flowchart of an edge vertex addition process according to the second embodiment. FIG. 34 is a flowchart of a decoding process according to the second embodiment. FIG. 35 is a block diagram of a decoding device according to the second embodiment. FIG. 36 is a flowchart of an encoding process according to the second embodiment. FIG. 37 is a block diagram of an encoding device according to the second embodiment.

[0014] An encoding method according to one aspect of the present disclosure is an encoding method for encoding a plurality of three-dimensional points, which determines whether four first edge vertices have been generated on four first edges of a first face of a first node, and encodes the plurality of three-dimensional points based on the results of the determination, wherein the four first edge vertices are used in a trisorp method, and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0015] According to this, the encoding method can determine whether the first edge vertices have been correctly generated based on, for example, whether four first edge vertices have been generated on each of the four first edges of the first surface. Specifically, if first edge vertices have been generated on all first edges, there is a possibility that edge vertices for restoring the original point cloud have not been correctly generated. As a result, the encoding method can improve the reproducibility of the point cloud decoded by the decoding device, for example, by performing encoding processing according to the determination result. The encoding processing according to the determination result can, for example, correct the edge vertex positions as described below or not generate edge vertices.

[0016] For example, the encoding method may further include performing at least one of a first process and a second process when the four first edge vertices are generated on the four first edges, respectively, and in the first process, generating a plurality of second edge vertices on a plurality of second edges of the first node that are perpendicular to the first face, respectively, and in the second process, increasing a threshold for generating edge vertices that is compared with distances between a plurality of three-dimensional points and the edges.

[0017] According to this, when an edge vertex is not generated correctly, the encoding method generates an additional edge vertex or regenerates the edge vertex, thereby generating a correct edge vertex, thereby improving the reproducibility of the point group decoded by the decoding device.

[0018] For example, the second process may increase the threshold value for the second edges, thereby enabling the encoding method to generate a correct edge vertex when an edge vertex is erroneously generated on the first face and no edge vertex is generated on some of the second edges.

[0019] For example, the second process may repeatedly increase the threshold value until the plurality of second edge vertices are generated, whereby the encoding method can generate appropriate edge vertices by increasing the threshold value in stages.

[0020] For example, in the first process, the positions of one or two edge vertices may be estimated using the positions of the second edge vertices when the number of the second edge vertices is less than 4. In this way, the encoding method can generate an edge vertex to be added using the second edge vertices.

[0021] For example, in the first process, attribute information of the one or two edge vertices may be estimated from attribute information of the plurality of second edge vertices if the number is less than 4. In this way, the encoding method can improve the reproducibility of the decoded point cloud by estimating the attribute information of the second edge vertices.

[0022] A decoding method according to one aspect of the present disclosure is a decoding method for decoding a plurality of three-dimensional points, the decoding method comprising: decoding a plurality of encoded first edge vertices in a first node to generate the plurality of first edge vertices on a plurality of first edges of the first node that are parallel to each other; if the number of the plurality of first edge vertices is less than four, using positions of the plurality of first edge vertices to estimate positions of one or two second edge vertices on one or two second edges other than the plurality of first edges and that are parallel to the plurality of first edges; the plurality of first edge vertices and the one or two second edge vertices are used in a Trisorp method; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0023] According to this, the decoding method can additionally generate a second edge vertex when an edge vertex is not generated correctly, thereby improving the reproducibility of the decoded point group.

[0024] For example, the estimation may be performed in accordance with control information included in the bitstream and indicating whether to perform the estimation. In this way, the decoding method can determine whether to perform the estimation based on the control information generated by the encoding device, thereby simplifying the determination process in the decoding device and reducing the processing load of the decoding device.

[0025] For example, the attribute information of the one or two second edge vertices may be estimated from the attribute information of the plurality of first edge vertices, thereby improving the reproducibility of the decoded point cloud by estimating the attribute information of the second edge vertices.

[0026] A decoding method according to one aspect of the present disclosure is a decoding method for decoding a plurality of three-dimensional points, the decoding method including: determining whether a first face of a first node is parallel to a cross section of the first node; and decoding the encoded plurality of three-dimensional points based on a result of the determination; the first face has four sides on which four edge vertices are respectively located; the cross section passes through a first centroid vertex of the first node; the cross section is defined by two sets of face vertex pairs, each of which is located on a second face perpendicular to the first face; a line connecting the first centroid vertex and a second centroid vertex of a second node adjacent to the first node intersects with a face vertex of the second face; the first centroid vertex, the second centroid vertex, and the four edge vertices are used in a trisorp system; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0027] According to this, the decoding method can determine whether or not the vertices are correctly generated based on, for example, whether the first surface is parallel to the cross section of the first node, thereby improving the reproducibility of the decoded point group by, for example, performing decoding processing according to the determination result.

[0028] For example, if it is determined that the first surface is not parallel to the cross section, the encoded three-dimensional points may be decoded according to the Trithorpe method, and the three-dimensional points may be arranged on an approximation surface defined by the first centroid vertex and the four edge vertices. According to this, for example, if the first surface is not parallel to the cross section of the first node, the decoding method determines that the edge vertices have been correctly generated, and generates an approximation surface using the edge vertices, thereby improving the reproducibility of the decoded point cloud.

[0029] For example, the decoding method may further include, when it is determined that the first surface is parallel to the cross section, decoding the encoded 3D points to place the 3D points on the cross section. According to this, when the first surface is parallel to the cross section of the first node, for example, the decoding method determines that the edge vertices are not generated correctly, and generates the 3D points on the cross section defined by the centroid vertices and the face vertices. This improves the reproducibility of the decoded point cloud.

[0030] Furthermore, an encoding device according to one aspect of the present disclosure is an encoding device that encodes a plurality of three-dimensional points, and includes a processor and a memory, wherein the processor uses the memory to determine whether four first edge vertices have been generated on each of the four first edges of a first face of a first node, and encodes the plurality of three-dimensional points based on the results of the determination, wherein the four first edge vertices are used in a trisorp method, and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0031] Furthermore, a decoding device according to one aspect of the present disclosure is a decoding device that decodes a plurality of three-dimensional points, and includes a processor and a memory, wherein the processor uses the memory to decode a plurality of encoded first edge vertices in a first node to generate the plurality of first edge vertices on a plurality of first edges of the first node that are parallel to each other, and when the number of the plurality of first edge vertices is less than four, uses positions of the plurality of first edge vertices to estimate positions of one or two second edge vertices on one or two second edges other than the plurality of first edges and that are parallel to the plurality of first edges, the plurality of first edge vertices and the one or two second edge vertices are used in a trisorp system, and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

[0032] Furthermore, a decoding device according to one aspect of the present disclosure is a decoding device that decodes a plurality of 3D points, the decoding device including a processor and a memory, wherein the processor uses the memory to determine whether a first face of a first node is parallel to a cross section of the first node, and decodes the encoded plurality of 3D points based on a result of the determination, wherein the first face has four sides on which four edge vertices are respectively arranged, the cross section passes through a first centroid vertex of the first node, the cross section is defined by two sets of face vertex pairs, each of the two sets of face vertex pairs being arranged on a second face perpendicular to the first face, a line connecting the first centroid vertex and a second centroid vertex of a second node adjacent to the first node intersects with a face vertex of the second face, the first centroid vertex, the second centroid vertex, and the four edge vertices are used in a trisorp system, and the first node is a unit for storing a plurality of 3D points included in an octree structure.

[0033] These comprehensive or specific aspects may be realized as a system, a method, an integrated circuit, a computer program, or a computer-readable recording medium such as a CD-ROM, or may be realized as any combination of a system, a method, an integrated circuit, a computer program, and a recording medium.

[0034] Hereinafter, the embodiments will be described in detail with reference to the drawings. Note that each of the embodiments described below represents a specific example of the present disclosure. The numerical values, shapes, materials, components, component placement and connection configurations, steps, and step order shown in the following embodiments are merely examples and are not intended to limit the present disclosure. Furthermore, among the components in the following embodiments, components not recited in independent claims will be described as optional components.

[0035] (Embodiment 1) Hereinafter, an encoding device (three-dimensional data encoding device) and a decoding device (three-dimensional data decoding device) according to this embodiment will be described. The encoding device generates a bitstream by encoding three-dimensional data. The decoding device generates three-dimensional data by decoding the bitstream.

[0036] The three-dimensional data is, for example, three-dimensional point cloud data (also called point cloud data). A point cloud is a collection of multiple three-dimensional points and represents the three-dimensional shape of an object. The point cloud data includes position information and attribute information of multiple three-dimensional points. The position information indicates the three-dimensional position of each three-dimensional point. Note that the position information may also be called geometry information. For example, the position information is expressed in a Cartesian coordinate system or a polar coordinate system.

[0037] The attribute information indicates, for example, color information, reflectance, transmittance, infrared information, normal vector, time information, etc. One 3D point may have a single piece of attribute information or may have multiple types of attribute information.

[0038] Although the following mainly describes the encoding and decoding of position information, the encoding device may also encode and decode attribute information.

[0039] [TriSoup Method] The encoding device according to this embodiment encodes position information using the TriSoup (Triangle-Soup) method.

[0040] The Trithorpe method is a lossy compression method that encodes the positional information of point cloud data. The Trithorpe method converts the original point cloud to be processed into a set of triangles, and then approximates the point cloud on that plane. Specifically, the original point cloud is converted into vertex information within a node, and the vertices are connected to generate a set of triangles. The vertex information used to generate the triangles is then stored in a bitstream and sent to a decoding device.

[0041] First, the encoding process using the Trithorpe method will be described. Fig. 1 shows an example of an original point cloud. As shown in Fig. 1, a point cloud 102 of an object is contained in an object space 101 and includes a plurality of points 103.

[0042] First, the encoding device divides the source point cloud into an octree to a predetermined depth. In the octree division, the target space is divided into eight nodes (subspaces), and 8-bit information (occupancy code) indicating whether or not a point cloud is included in each node is generated. Furthermore, the node including the point cloud is further divided into eight nodes, and 8-bit information indicating whether or not a point cloud is included in each of the eight nodes is generated. This process is repeated up to a predetermined hierarchy.

[0043] In normal octree coding, division is repeated until the number of points included in a node is reduced to one or a threshold value. On the other hand, in the Trithorpe method, octree division is performed up to an intermediate layer, but not to layers below that layer. Such an octree up to an intermediate layer is called a pruned octree.

[0044] 2 is a diagram showing an example of a pruned octree. As shown in FIG. 2, a point cloud 102 is divided into a plurality of leaf nodes 104 (nodes at the bottom level) of the pruned octree.

[0045] Next, the encoding device performs the following process on each leaf node 104 of the pruned octree. Note that hereinafter, a leaf node may also be simply referred to as a node. The encoding device generates a vertex on the edge as a representative point of a group of points close to the edge of the node. This vertex is called an edge vertex. For example, an edge vertex is generated for each of multiple edges (e.g., four parallel sides).

[0046] 3 is an example of a two-dimensional display of the leaf node 104, for example, a diagram showing the xy plane as viewed from the z direction shown in Fig. 1. As shown in Fig. 3, an edge vertex 112 is generated on the edge based on the nearest points of the edge among the multiple points 111 in the leaf node 104.

[0047] In Fig. 3, the dotted line around the periphery of the leaf node 104 is the edge. In this example, the edge vertex 112 is generated at the weighted average position of the points (points included in the range 113 in Fig. 3) whose distance from the edge is within 1. The unit of distance is, for example, the resolution of the point cloud, but is not limited to this. In this example, this distance (threshold) is 1, but it may be a value other than 1 or may be variable.

[0048] Next, the encoding device generates a vertex inside the node based on a group of points existing in the normal direction of the plane containing the edge vertices. This vertex is called a centroid vertex.

[0049] 4 and 5 are diagrams illustrating a method for generating a centroid vertex. First, the encoding device selects, for example, four points as representative points from a group of edge vertices. In the example shown in FIG. 4, edge vertices v1 to v4 are selected. Next, the encoding device calculates an approximate plane 121 that passes through the four points. Next, the encoding device calculates a normal n to the approximate plane 121 and an average coordinate M of the four points. Next, the encoding device generates a centroid vertex C at the weighted average coordinate of one or more points (for example, points included in the range 122 shown in FIG. 5) that are close to a half-line extending from the average coordinate M in the direction of the normal n.

[0050] Next, the encoding device entropy-encodes the vertex information, which is information on the edge vertices and centroid vertices, and stores the encoded vertex information in a Geometry Data Unit (GDU) included in the bitstream. Note that the GDU includes information indicating the pruned octree in addition to the vertex information.

[0051] 6 is a diagram showing an example of vertex information. Through the above processing, the point group 102 is converted into vertex information 123 as shown in FIG.

[0052] Next, the decoding process of the bitstream generated above will be described. First, the decoding device decodes the GDU from the bitstream to obtain vertex information. Next, the decoding device connects the vertices to generate a TriSoup-Surface, which is a group of triangles.

[0053] 7 is a diagram showing an example of a Trithorpe surface. In the example shown in FIG. 7, four edge vertices v1 to v4 and a centroid vertex C are generated based on the vertex information. In addition, a triangle 131 (Trithorpe surface) is generated whose vertices are the centroid vertex C and two edge vertices. For example, pairs of two edge vertices on two adjacent edges are selected, and a triangle 131 is generated whose vertices are the selected pairs and the centroid vertex.

[0054] 8 is a diagram for explaining the point cloud restoration process. By performing the above process for each leaf node, a three-dimensional model is generated in which the target object is represented by a plurality of triangles 131, as shown in FIG.

[0055] Next, the decoding device generates points 132 at regular intervals on the surface of the triangle 131 to restore the position information of the point group 133 .

[0056] [Example of Representation of Ridge Lines of Point Cloud Surfaces] In some cases, the Trithorpe method cannot reconstruct the shape of ridge lines (edge ​​lines) that cross adjacent nodes. In response to this, the encoding device generates face vertices on the faces that abut adjacent nodes, and reconstructs point clouds on the triangular faces generated from the centroid vertices, face vertices, and edge vertices.

[0057] For example, if there are bends in the point cloud distribution (point cloud surface) inside a leaf node, the corners and edges of the point cloud surface do not intersect, and no vertices are created at the corner positions, so the surface model created by connecting the vertices may not be able to reproduce the shape of the original point cloud.

[0058] 9 is a diagram showing an example of a point cloud in which a ridge line is formed by distributing the point cloud across nodes 1 and 2. As shown in FIG. 9, an edge vertex 112 is generated based on the point cloud distribution near the edge.

[0059] 10 is a diagram showing an example of generating a centroid vertex in this case. As shown in Fig. 10, a centroid vertex 151 is generated in the normal direction of the approximation plane of the edge vertex group.

[0060] Fig. 11 shows an example of the generation of a triangle 131 (Trithorpe surface) in this case. As shown in Fig. 11, the triangle 131 is generated by connecting multiple vertices (multiple edge vertices and centroid vertices). In this case, as shown in Fig. 11, the point cloud near the node boundary cannot be reproduced.

[0061] This is because the centroid vertices can sample the original point cloud surface, but the current method cannot create a vertex between two centroid vertices of two adjacent nodes. For example, if a ridge line continues to be distributed within a node along one of the x, y, or z axes, a vertex corresponding to the ridge line will not be generated because the ridge line does not cross an edge. This causes this problem.

[0062] In this embodiment, the encoding device predicts the ridge line of the point cloud surface, and if it determines that two adjacent nodes have the same ridge line, it transmits information for connecting the two centroid vertices of the two adjacent nodes with a line segment to the decoding device. This information is, for example, one bit of information assigned to each face between the nodes.

[0063] The decoder uses this information to connect the centroid vertices and generate new vertices (face vertices) at the intersections of the resulting line segments and the shared faces between the nodes. The decoder can use these new vertices to reconstruct the ridge lines when generating triangles 131.

[0064] Furthermore, since the coordinate positions of the face vertices are not quantized, there is no problem of positional deviation due to quantization.

[0065] 12 is a diagram showing an example of generating face vertices. As shown in Fig. 12, the decoding device generates face vertices 161 and generates triangles 131 using the face vertices 161, thereby reproducing the ridge line.

[0066] The above method can reproduce the point cloud surface near the node boundary, resulting in a decoded point cloud that is closer to the original point cloud. Note that in the above explanation, the point cloud surface is used only to explain the issues related to ridge lines, and the ridge lines do not need to be actually obtained.

[0067] [Issues in Planar Reconstruction] When reconstructing a point cloud having a plane using these various vertices, the surface of the reconstructed point cloud may not be flat, and irregularities that were not present in the original point cloud may appear. The possible causes are as follows. Note that this problem occurs regardless of whether or not face vertices are used to use faces that span adjacent nodes. For example, if the accuracy of the edge vertices is lower than the accuracy of the centroid vertices, differences will occur in the positions of each vertex created on the surface of the point cloud that crosses the node in a planar manner.

[0068] 13 is a diagram showing an example of generating edge vertices and centroid vertices in this case. Fig. 13 shows nodes 1 and 2 aligned in the x direction. For example, the precision of edge vertex 112 is a representation capability of ¼ of the edge length (8-position interval) when the node width is 32. On the other hand, centroid vertex 151 has integer coordinate precision.

[0069] As shown in Figure 13, the reconstructed surface obtained from vertices with different height positions (y coordinates) has a wavy shape and is not flat like the original point cloud. Note that the surface is made up of multiple triangles generated based on the vertices in one or more nodes, for example.

[0070] One possible solution to this problem is to improve the positional accuracy of the edge vertices. However, if accuracy is improved uniformly, the amount of data for edge vertices in areas where improved accuracy is not required will also increase uniformly. Furthermore, using variable bit allocation, which changes the number of data bits for each edge vertex, complicates processing. Therefore, neither method is practical.

[0071] [Solution] In this embodiment, if the decoding device can estimate that the point group within a node is a plane using the positional relationship between the centroid vertices and the face vertices, it corrects the positions of the edge vertices, thereby making the reconstructed surface a plane.

[0072] FIG. 14 is a diagram for explaining this edge vertex correction method. FIG. 14 shows node 1 and node 2 aligned in the x direction. Node 2 is the target node to be processed. Node 2 has centroid vertex C0, edge vertices E0, E1, E2, and E3, and face vertices F0, F1, F2, and F3.

[0073] For example, only one centroid vertex is generated per node, a maximum of one edge vertex is generated per edge (i.e., only one vertex is generated, or none is generated), and a maximum of one face vertex is generated per face (face).

[0074] First, before processing to reconstruct a surface using multiple vertices in a target node, the decoding device determines whether a pair of face vertices (e.g., F0 and F2) belonging to opposing faces and the centroid vertex C0 form a straight line. For example, the decoding device determines whether the centroid vertex C0 exists on a straight line L0 passing through the face vertex F0 and the face vertex F2. A pair of face vertices (e.g., F0 and F2) that satisfies this condition is called a straight-line vertex pair. Note that the presence of the centroid vertex C0 on the straight line L0 may mean, for example, that the distance between the straight line L0 and the centroid vertex C0 is less than a predetermined threshold.

[0075] Furthermore, the decoding device determines whether a pair of linear vertices (e.g., F1 and F3) also exists on two other opposing faces. For example, the decoding device determines whether a centroid vertex C0 exists on a line L1 passing through face vertex F1 and face vertex F3. If a pair of two linear vertices exists, the decoding device determines that the original point cloud is a plane. In the example of FIG. 14, pairs of linear vertices exist on two opposing faces in the z direction and two opposing faces in the x direction, so it is determined that a plane of the original point cloud exists on the xz plane. In addition, the condition in which a pair of two linear vertices exists within the target node is called an intra-node two-line condition.

[0076] Here, when a face vertex exists on a line connecting the centroid vertices of adjacent nodes, it means that the original point group exists on that line.

[0077] As another method for determining a set of linear vertices, it may be determined whether the directions of two vectors pointing from the centroid vertex C0 to the face vertices (e.g., F0 and F2) of two opposing faces are the same. Here, the two vectors being the same may mean that the difference between the vector directions is 0° or 180°, or within a certain range from these criteria. Note that, although an example using vectors is described here, directions may be used instead of vectors. Similarly, in the following description, directions may be used instead of vectors.

[0078] For example, the decoding device may use the following method to mathematically determine a plane: the decoding device calculates the cross product of a line segment connecting a pair of opposing face vertices within a node with a line segment connecting another pair of opposing face vertices. Next, the decoding device determines a plane whose normal direction is equal to the calculated cross product as a plane that includes the face vertices and the centroid vertex.

[0079] Furthermore, for nodes determined to have a plane, the decoding device corrects the positions of the edge vertices based on the positions of the face vertices and centroid vertices, thereby improving the positional accuracy of the edge vertices and enabling the reconstruction of a planar surface from these vertices.

[0080] Furthermore, for nodes that are not determined to have a plane, the decoding device performs normal surface reconstruction processing without correcting the positions of the edge vertices.

[0081] For example, as shown in Fig. 14, the edge vertex E0 is corrected to the edge vertex E4. Specifically, the decoding device may move the edge vertex (E0) on the edge to the intersection position (position E4) between the estimated plane and the edge (side) of the node.

[0082] Alternatively, the decoding device may move the edge vertex (E0) on the edge to the intersection position (position E4) of the edge with a straight line (L2 in Figure 14) connecting two face vertices belonging to consecutive faces between adjacent nodes.

[0083] Although FIG. 14 shows an example in which only the edge vertex E0 is corrected, the edge vertices E1, E2, and E3 are also corrected in the same manner as the edge vertex E0.

[0084] 15 is a diagram illustrating another method for correcting an edge vertex. Fig. 15 shows an example in which node 2 is the target node and edge vertex E0 is corrected. Note that other edge vertices included in node 2 may also be corrected in the same way as edge vertex E0.

[0085] First, the decoding device calculates offset amounts OS1 and OS2, which are the amounts of movement of two face vertices F1 and F2 generated on two faces that share the edge to which the edge vertex E0 belongs, from the centroid vertex C0. Next, the decoding device corrects the position of the edge vertex E0 to a position (position E1) obtained by adding these offset amounts OS1 and OS2 to the position of the centroid vertex C0.

[0086] Here, we have described an example in which an erroneously generated edge vertex is corrected when it is determined that a node has a plane. However, when it is determined that a node has a plane, the decoding device may also exclude edge vertices that exist on edges that intersect (are perpendicular to) the plane from the vertices used for plane reconstruction.

[0087] Figure 16 is a diagram showing an example of multiple vertices when a slope and a group of nodes intersect three-dimensionally. Even in such a case, the slope can be restored using the above-described method. Specifically, a centroid vertex 151 and a face vertex 161 are generated at each of nodes B and E shown in Figure 16. Even in this case, the centroid vertex 151 and the face vertex 161 are aligned in a straight line, so that each node can be individually determined to be a plane.

[0088] By using the above method, the decoding device determines whether the target node has a plane, and if the target node has a plane, corrects the edge vertices. This allows the plane to be correctly restored, thereby improving the accuracy of the restored point cloud. Furthermore, the above method can determine whether the target node has a plane and correct the edge vertices using only information within the target node (without using information from adjacent nodes).

[0089] Note that methods other than the above may be used to determine whether the original point cloud should be restored on a plane spanning adjacent nodes. For example, the decoding device may make the determination using a first centroid vertex of a first node adjacent to the target node in a first direction, a second centroid vertex of a second node adjacent to the target node in a second direction perpendicular to the first direction, a first face vertex generated on the face of the target node adjacent to the first node, and a second face vertex generated on the face of the target node adjacent to the second node. For example, the decoding device may determine that the target node has a plane if these four vertices are included in the same plane.

[0090] The above describes an example of determining whether a plane crosses a node, but below we will explain a method of determining whether a plane that ends within a node exists. This allows the area of ​​the plane that can be correctly restored to be larger, thereby improving the quality of the restored point cloud.

[0091] Fig. 17 is a diagram showing an example of vertices generated at four nodes A to D. In the example shown in Fig. 17, at nodes C and D, there is a plane (point cloud) that crosses the nodes, and at nodes A and B, there is a plane (point cloud) in the right half (positive x-axis direction) of the nodes.

[0092] In this case, for example, at node A, a pair of face vertices (F0 and F1) exists on opposing faces, but a pair of two line vertices does not exist. Note that the condition under which a pair of line vertices exists within a target node is called the one line within a node condition. Similarly, at node B, a pair of face vertices (F1 and F2) exists on opposing faces, but a pair of two line vertices does not exist. Therefore, nodes A and B do not meet the two line within a node condition described above.

[0093] In this case, the half planes in the positive x-axis direction in nodes A and B may be continuations of the planes continuing from the right side. To determine the planes of the half planes in such nodes, the decoding device performs the following determination.

[0094] When a target node satisfies the intra-node 1-line condition and also satisfies the extra-node 1-line condition in another direction (the positive x-axis direction in the example of FIG. 17 ) orthogonal to the direction in which the intra-node 1-line condition is satisfied (the z-direction in the example of FIG. 17 ), the decoding device determines that a plane exists on one half of the node in the other direction (the positive x-axis direction). Here, the extra-node 1-line condition means that, in node A, the direction of the line Ax formed by the centroid vertex C0 and the face vertex F3 is the same as the direction of the line Cx formed by the pair of linear vertices (F3 and F5) in the adjacent node C on the direction Ax side, or the difference between the directions is less than a predetermined value.

[0095] In node B, the target node also satisfies the intra-node 1 line condition and also satisfies the extra-node 1 line condition in another direction (the positive x-axis direction in the example of FIG. 17 ) orthogonal to the direction in which the intra-node 1 line condition is satisfied (the z direction in the example of FIG. 17 ), so it is determined that a plane exists on the half plane in that other direction (the positive x-axis direction). Specifically, in node B, the direction of the line Bx formed by the centroid vertex C1 and the face vertex F4 is the same as the direction of the line Dx formed by the pair of linear vertices (F4 and F6) in the adjacent node D on the Bx side, or the difference between them is less than a predetermined value, so it is determined that a plane exists on the half plane in the positive x-axis direction of node B.

[0096] The decoding device corrects the positions of the edge vertices on the edges that intersect with the half-plane area in the same way as in the above-mentioned plane processing, and restores the surface within the target node. Note that the edge vertices are not shown in Figure 17.

[0097] Fig. 18 is a diagram showing an example of vertices generated at four nodes A to D. In the example shown in Fig. 18, nodes B, C, and D have planes (point clouds) that cross the nodes, and node A has a plane (point cloud) on the quarter plane on the far right side (negative z-axis direction and positive x-axis direction) of the node.

[0098] In this example, node A does not satisfy the two intra-node line conditions and the one intra-node line conditions. In this case, the decoding device determines whether the one extra-node line condition described above is satisfied in two directions. The condition in which the one extra-node line condition is satisfied in two directions is called the two extra-node line condition.

[0099] In the example of Figure 18, there is a face vertex F1 on the boundary surface between node A and node B adjacent to node A in the negative direction of the z-axis, and node B has a pair of vertices on a straight line (F1 and F2), and the direction of the straight line Az formed by the centroid vertex C0 of node A and the face vertex F1 is the same as the direction of the straight line Bz formed by the pair of straight line vertices (F1 and F2) in adjacent node B, or the difference is less than a predetermined value.

[0100] Furthermore, there is a face vertex F3 on the boundary surface between node A and node C adjacent to node A in the positive x-axis direction, and node C has a pair of linear vertices (F3 and F5) in the same direction (x-axis direction), and the direction of the line Ax formed by the centroid vertex C0 of node A and face vertex F3 is the same as the direction of the line Cx formed by the pair of linear vertices (F3 and F5) in adjacent node C, or the difference is less than a predetermined value.

[0101] In this case, the decoding device estimates that the quarter region of node A in the positive x-axis direction and negative z-axis direction is a planar region continuing from the adjacent node. Thus, if there is a pair of vertices on a straight line from the target node to the adjacent node at each of the two adjacent nodes, the decoding device estimates that the quarter region of the target node is a similar plane. The decoding device also corrects the positions of edge vertices generated on edges that intersect with the plane to restore the surface within the target node. Note that edge vertices are not shown in FIG. 18 .

[0102] 19 is a diagram showing an example of vertices generated at four nodes A to D. In the example shown in Fig. 19, planes (point clouds) exist on a quarter surface of nodes A to D. Specifically, planes exist on a quarter surface in the negative z-axis direction and positive x-axis direction of node A, in the positive z-axis direction and positive x-axis direction of node B, in the negative z-axis direction and negative x-axis direction of node C, and in the positive z-axis direction and negative x-axis direction of node D.

[0103] As shown in Figure 19, even if there is no node that is determined to be a plane in the above determination, the decoding device determines that the four quarter faces of each node are planes if face vertices are generated on the boundary surfaces of each of the four adjacent nodes.

[0104] Specifically, the decoding device detects whether (1) the direction of the line Az formed by the centroid vertex C0 of node A and the face vertex F0 in the negative z-axis direction is the same as the direction of the line Bz formed by the centroid vertex C1 of node B and the face vertex F0 in the positive z-axis direction, or the difference is less than a predetermined value; (2) the direction of the line Ax formed by the centroid vertex C0 of node A and the face vertex F1 in the positive x-axis direction is the same as the direction of the line Cx formed by the centroid vertex C2 of node C and the face vertex F1 in the negative x-axis direction, or the difference is less than a predetermined value; and (3) If the direction of the line Bx formed by the centroid vertex C1 and the face vertex F2 in the positive x-axis direction is the same as the direction of the line Dx formed by the centroid vertex C3 of node D and the face vertex F2 in the negative x-axis direction, or the difference is less than a predetermined value, and (4) the direction of the line Cz formed by the centroid vertex C2 of node C and the face vertex F3 in the negative z-axis direction is the same as the direction of the line Dz formed by the centroid vertex C3 of node D and the face vertex F3 in the positive z-axis direction, or the difference is less than a predetermined value, it is determined that a quarter-plane exists in each of nodes A to D. The above conditions are called a set of extra-node two-line conditions.

[0105] The decoding device also corrects the positions of the edge vertices generated on the edges that intersect with the plane, thereby restoring the surface within the target node. Note that the edge vertices are not shown in Figure 19.

[0106] In addition, when the decoding device determines that a plane exists on half of the face or one-quarter face within the node, and the plane continues up to just before the end of the slice, it may determine that the entire face of the node is a plane based on the continuity of nodes that have planes up to the node, even if there is no face vertex at the node at the end of the slice or the slice cut face.

[0107] 17 , if the left face (the face in the negative x-axis direction) of node A is the edge of the slice, the entire surface of node A may be determined to be a plane. In this case, the decoding device corrects the positions of edge vertices generated on edges that intersect with the plane to restore the surface within the target node.

[0108] Here, the information within the node required for the plane reconstruction process within the node described above is only the centroid vertex and face vertex, and the coordinates of the reconstructed edge vertices themselves are unnecessary information for the plane reconstruction process. Therefore, in order to reduce the amount of transmission data, the encoding device may perform the above plane reconstruction process once on a trial basis, and may not transmit edge vertex information for nodes that meet the plane reconstruction conditions. In other words, the encoding device may not store edge vertex information for nodes that meet the plane reconstruction conditions in the bitstream.

[0109] FIG. 20 is a diagram showing the dependency of information when restoring vertex coordinates within a node using the Trisop method. As shown in FIG. 20, the coordinates of edge vertices and the length of a centroid vector are transmitted as information for each node. Here, the centroid vector is a vector that extends in the normal direction of an approximation plane that passes through multiple edge vertices and points from the approximation plane to the centroid vertex. The decoding device uses this information to calculate the coordinates of the centroid vertex for each node. The decoding device also calculates the coordinates of face vertices from the coordinates of two centroid vertices of adjacent nodes.

[0110] Therefore, for nodes that do not transmit edge vertex coordinates, the vertex recovery dependency is broken, making it impossible to recover the centroid vertices and face vertices. In response to this, the encoding device does not transmit the centroid vector length for nodes that do not transmit edge vertex coordinates. The encoding device also adds an edge vertex non-transmission flag indicating whether or not to transmit edge vertex coordinates to the bitstream, and transmits the centroid vertex coordinates. This allows the decoding device to recover the centroid vertex coordinates and the face vertex coordinates.

[0111] In the above description, face vertices are used to determine whether a plane exists. However, the centroid vertices of adjacent nodes may be connected to determine whether a plane exists, without using face vertices.

[0112] 21 is a diagram showing an example of centroid vertices and edge vertices 112 generated for four nodes 1 to 4. In this case, the decoding device may determine that a plane exists if, for example, centroid vertices C1 to C4 of nodes 1 to 4 are included in the same plane. The decoding device corrects the positions of edge vertices generated on edges that intersect with the plane to restore the surface within the target node.

[0113] The following method may be used to determine whether the original point cloud should be restored onto a plane spanning adjacent nodes. For example, the decoding device may determine that the target node has a plane if a first centroid vertex of a first node adjacent to the target node in a first direction is connected to the centroid vertex of the target node, and a second centroid vertex of a second node adjacent to the target node in a second direction orthogonal to the first direction is connected to the centroid vertex of the target node. For example, information indicating whether the first centroid vertex is connected to the centroid vertex of the target node and information indicating whether the second centroid vertex is connected to the centroid vertex of the target node are generated by the encoding device and stored in the bitstream. The decoding device makes the above determination using this information.

[0114] [Syntax Example] A syntax example of information included in a bitstream for implementing the above-described technique will be described.

[0115] The bitstream may include a first flag indicating whether or not the above-described method is to be applied. When the first flag is on, that is, when the first flag indicates that the above-described method is to be applied, the decoding device may perform plane reconstruction processing using the above-described method.

[0116] The encoding device may store the first flag in, for example, a sequence parameter set (SPS), a geometry parameter set (GPS), a geometry data unit (GDU), or a GDU header.

[0117] SPS is metadata (parameter set) common to multiple frames. GPS is metadata (parameter set) related to encoding of position information. For example, GPS is metadata common to multiple frames. GDU is a data unit (geometry data unit) of encoded data of position information. GDU header is the header (control information) of the GDU.

[0118] The first flag may also be stored for each node, meaning that whether or not to apply the above method may be switched for each node.

[0119] In addition to the first flag, parameters for switching between various methods or thresholds described in this method may be stored separately in the bitstream. For example, the parameters may include information for determining the allowable error ranges for the directions of two vectors when determining the two-line condition within a node. The parameters may also include a second flag indicating whether or not to perform plane reconstruction at the slice end.

[0120] These parameters may be stored in any of the SPS, GPS, and GDU, or may be stored on a node-by-node basis, or may be stored in the bitstream when the first flag is on, or may be always stored in the bitstream regardless of the value of the first flag.

[0121] 22 is a flowchart of the decoding process by the decoding device. First, the decoding device obtains a GDU header and a GDU from the bitstream (S101). Next, the decoding device entropy-decodes octet information from the GDU and generates multiple leaf nodes (a group of leaf nodes) of a pruned octet tree using the octet information (S102).

[0122] Next, the decoding device acquires vertex information indicating the positions of the edge vertices and the centroid vertex from the GDU (S103). Specifically, the decoding device acquires the vertex information by entropy decoding the encoded vertex information included in the GDU.

[0123] Next, the decoding device generates face vertices for each leaf node (hereinafter simply referred to as node) (S104). For example, for each node, the decoding device connects the centroid vertex of the target node to the centroid vertex of an adjacent node according to a condition, and generates face vertices at the intersections of the resulting line segments and the node boundaries.

[0124] Next, the decoding device performs the following processing (loop processing) of steps S105 to S107 for each of the multiple nodes of the pruned octree. First, the decoding device generates multiple triangles (trithorpe surfaces) by connecting the vertices (multiple edge vertices, centroid vertices, and face vertices) in the target node (S105).

[0125] Next, the decoding device performs the following process (loop process) of step S106 for each of the multiple triangles in the target node. The decoding device generates multiple points on the surface of the target triangle (S106). This completes the loop process for each triangle.

[0126] Next, the decoding device makes the restored points in each node unique by their coordinate values ​​and adds them to the decoded points (S107). Here, making them unique means excluding points with duplicate coordinate values. This completes the loop processing for each node.

[0127] 23 is a flowchart of the process of generating multiple triangles (S105). First, the decoding device determines whether the target node satisfies the above-mentioned "two straight lines within the node condition" (S111). If the target node satisfies the "two straight lines within the node condition" (Yes in S111), the decoding device determines that the target node has a plane, and corrects the positions of the edge vertices on the edges that intersect with the plane to, for example, the positions of the plane (S112).

[0128] If the target node does not satisfy the "two line conditions within the node" (No in S111), the decoding device determines whether the target node satisfies the above-mentioned "one line condition within the node" and "one line condition outside the node" (S113). If the target node satisfies both the "one line condition within the node" and the "one line condition outside the node" (Yes in S113), the decoding device determines that a plane exists on half of the target node, and corrects the position of the edge vertex on the edge that intersects with the plane to, for example, the position of the plane (S114).

[0129] If the target node does not satisfy at least one of the "intra-node one line condition" and the "extra-node one line condition" (No in S113), the decoding device determines whether the target node satisfies the above-mentioned "extra-node two line condition" (S115). If the target node satisfies the "extra-node two line condition" (Yes in S115), the decoding device determines that a plane exists on one-quarter of the surface of the target node, and corrects the position of the edge vertex on the edge that intersects with the plane to, for example, the position of the plane (S116).

[0130] If the target node does not satisfy the "two extra-node line conditions" (No in S115), the decoding device determines whether the target node satisfies the above-mentioned "set of two extra-node line conditions" (S117). If the target node satisfies the "set of two extra-node line conditions" (Yes in S117), the decoding device determines that a plane exists in each of the four adjacent nodes including the target node, and corrects the position of the edge vertex on the edge that intersects with the plane to, for example, the position of the plane (S118). Note that the four adjacent nodes are, for example, a group of nodes that are adjacent to two other nodes on the same plane, such as nodes A to D shown in FIG. 19.

[0131] After step S112, S114, S116 or S118, the decoding device generates a plurality of triangles using a plurality of edge vertices including the corrected edge vertex, the centroid vertex, and a plurality of face vertices (S119).

[0132] On the other hand, if the target node does not satisfy the "set of two outside-node straight line conditions" (No in S117), the decoding device does not correct the edge vertices, but generates multiple triangles using the centroid vertex, multiple edge vertices, and multiple face vertices (S119).

[0133] 23 does not necessarily have to be performed, and only some of the determinations may be performed. Also, the order of the determinations is an example, and the determinations may be performed in a different order or in parallel.

[0134] (Embodiment 2) [Issues with Plane Restoration] When restoring a point cloud having a plane using these various vertices, the surface of the restored point cloud may not be flat, and irregularities that were not present in the original point cloud may occur. In addition to the causes described in the above-mentioned embodiment 1, the following causes are considered as causes of this. Note that this problem occurs regardless of whether or not face vertices are used to use faces that span adjacent nodes.

[0135] One possible cause is a sensitivity problem in the edge vertex generation process. Figure 24 is a diagram for explaining this problem, showing an example of generation of edge vertices 112A and 112B and centroid vertex 151. Figure 24 shows node 1 and node 2 aligned in the x direction.

[0136] An edge vertex is generated when the sum of index values ​​obtained by multiplying a weight corresponding to the distance between each point and the edge and the original point cloud distributed near the edge exceeds a threshold value TH. When a point cloud surface is distributed near a node boundary surface, the weight of the edge vertex 112A on the edge parallel to the point cloud is greater than the expected edge vertex 112B on the edge perpendicular to the point cloud. This results in the erroneous generation of the edge vertex 112A on the edge parallel to the point cloud.

[0137] 25 is a diagram showing an example of a restored surface (restored surface) when the edge vertices 112A are erroneously generated in this way. As shown in FIG. 25, when a surface is restored using these erroneously generated edge vertices 112A, a distorted surface is restored.

[0138] Furthermore, if the original point cloud is sparse, the edge vertex 112B that should be generated may not be generated. All of these factors hinder the decoding device from receiving data transmitted using the Trisop method and restoring a high-quality point cloud from the vertices.

[0139] [Solution] The above problem can be solved by the following method. The following process can be performed by either or both of the encoding device and the decoding device. In both the encoding device and the decoding device, if edge vertices are generated for all four edges belonging to the same face of a leaf node, the edge vertices can be determined to be erroneously generated. Therefore, the encoding device and the decoding device can perform a solution process when they detect that four edge vertices are located on this same face.

[0140] [First Method] First, a first method for solving the above problem will be described. The first method is implemented in an encoding device. Fig. 26 is a diagram showing an example of generation of a centroid vertex 151 and edge vertices 112A and 112B. In Fig. 26, in addition to three correct edge vertices 112B, four edge vertices 112A are erroneously generated on the bottom surface. Furthermore, in region 201, edge vertices should be generated, but no edge vertices have been generated.

[0141] First, the encoding device determines whether the target node has a four-vertex face, which is a face in which four edge vertices are arranged on the same face. If the target node has a four-vertex face, the encoding device determines that the node including the four-vertex face contains an incorrectly generated edge vertex, and regenerates the edge vertex of the target node.

[0142] At this time, the encoding device may re-generate edge vertices after excluding the four edges belonging to the four vertex faces (the bottom faces in FIG. 26 ) from the targets for generating edge vertices. Furthermore, if, in the initial edge vertex generation result, edge vertices have not been generated for each of the four edges perpendicular to the four vertex faces, the encoding device may re-generate these edge vertices after relaxing the threshold value TH used for generating the edge vertices.

[0143] When restoring a point cloud that is distributed to match the node face, an edge vertex based on the point cloud is generated at the bottom of the orthogonal edge that is perpendicular to the four-vertex face. Therefore, there is no problem even if the edge vertex that was mistakenly generated on the four-vertex face is deleted.

[0144] For example, the encoding device uses an initial value of 2 (coordinate grid) as the threshold value for the distance between an edge and a point, and increases the threshold by one grid each time regeneration is performed, thereby relaxing the threshold value. An upper limit may also be set for the threshold value. This makes it possible to prevent a threshold value that exceeds the width of a node from being set. Note that any value may be used as the initial value.

[0145] For example, the initial value may be threshold=1, and the upper limit may be about 50% of the node width. Alternatively, the initial value may be greater than 1, and the upper limit may be less than 25% of the node width.

[0146] This threshold adjustment may be performed only on the four edges perpendicular to the four vertex faces, or on all eight edges excluding the four edges of the four vertex faces, or the threshold may be varied for each individual edge to suit other circumstances.

[0147] This threshold relaxation and vertex generation process may be repeated iteratively until correct edge vertices are generated for all four orthogonal edges.

[0148] Furthermore, when regenerating vertices, only the threshold value may be relaxed without excluding edges of four-vertex faces. Furthermore, for example, even if a point group is distributed at a position very close to a four-vertex face, the centroid vertex maintains its height. Therefore, face vertices can be generated at the correct height using another plane restoration technique (for example, the technique described in the first embodiment), allowing for plane restoration. Therefore, the processing of this embodiment may be used as a pre-processing stage of the edge vertex correction processing described in the first embodiment. In other words, the edge vertex group and centroid vertex regenerated by the processing of this embodiment may be restored as a plane based on the technique of the first embodiment. Note that the processing of the first embodiment does not have to be performed.

[0149] The above processing allows the decoding device to restore the geometry with high accuracy, and also reduces unnecessary edge vertex data in the transmitted data and simplifies the processing in the decoding device.

[0150] Figure 27 shows an example of a surface restored by the above process. The edge vertex 112A generated on the four-vertex surface shown in Figure 26 is excluded. Furthermore, by changing the threshold and regenerating the edge vertex, the correct edge vertex 112C is added, thereby restoring the plane.

[0151] The encoding device stores information indicating the positions of the regenerated edge vertices in the bitstream, and the decoding device can generate correct edge vertices by using this information to generate edge vertices.

[0152] [Second Method] Next, a second method for solving the above problem will be described. Note that the second method is implemented by an encoding device or a decoding device. Note that, although an example of processing in an encoding device will be described below, similar processing may also be performed in a decoding device.

[0153] The second method differs from the first method in the method of regenerating edge vertices. In regenerating edge vertices, the encoding device excludes four edge vertices belonging to a four-vertex face (the bottom face in FIG. 26 ). Furthermore, if edge vertices have not been generated on all four orthogonal edges perpendicular to the four-vertex face, the encoding device generates edge vertices on the orthogonal edges where no edge vertices have been generated. For example, if edge vertices 112B are generated on three of the four orthogonal edges as shown in FIG. 26 and no edge vertex is generated on the remaining edge, the encoding device generates edge vertex 112C at a height estimated from the three edge vertices 112B, as shown in FIG. 27 .

[0154] For example, if the point cloud is a plane and crosses the node face in parallel, the heights of the generated edge vertices will all be close to each other, so the height of the fourth edge vertex can be calculated from the average of the heights of the three edge vertices. In this way, the encoding device may estimate the height of the fourth edge vertex from the heights of the three edge vertices and generate the fourth edge vertex by interpolation.

[0155] Furthermore, when an edge vertex is generated on two orthogonal edges and no edge vertex is generated on the remaining two orthogonal edges, or when an edge vertex is generated on one orthogonal edge and no edge vertex is generated on the remaining three orthogonal edges, the encoding device may similarly generate an edge vertex on the orthogonal edge on which no edge vertex has been generated. For example, as described above, the average value of the heights of the one or two edge vertices that have been generated can be used as the height of the remaining edge vertex.

[0156] By using the edge vertices and centroid vertices generated by this method, the face vertices can be generated at the correct height by the edge vertex correction process described in the first embodiment, making it possible to restore a plane. Therefore, the process of this embodiment may be used as a pre-stage process of the edge vertex correction process described in the first embodiment. In other words, the edge vertices and centroid vertices regenerated by the process of this embodiment may be restored as a plane based on the technique of the first embodiment. Note that the process of the first embodiment does not have to be performed.

[0157] Furthermore, when this second method is performed in an encoding device, it is possible to restore a geometry shape with high accuracy, similar to the first method. It is also possible to reduce unnecessary edge vertex data in the transmitted data and simplify processing in the decoding device. Furthermore, since the vertex regeneration process in the encoding device can be omitted, the processing load of the encoding device can be reduced.

[0158] Furthermore, when this second method is performed by a decoding device, the encoding device stores information indicating the positions of the regenerated edge vertices in the bitstream. The decoding device can generate correct edge vertices by using this information to generate edge vertices. In this way, the decoding device can restore a geometric shape that is close to the original point cloud.

[0159] In this case, the decoding device may complement attribute information (such as color) of the added edge vertex or attribute information of the restored point cloud. For example, the decoding device may complement and generate attribute information of the restored point cloud based on the position of a point in the restored point cloud using attribute information of the vertex or a surrounding point. The decoding device may also complement and generate attribute information of the added edge vertex based on the position of the edge vertex using attribute information of other edge vertices. Note that this complementation of attribute information of the edge vertex or point may be performed by the encoding device. In this case, the encoding device stores attribute information of multiple 3D points, including the complemented attribute information, in the bitstream.

[0160] [Third Method] Next, a third method for solving the above problem will be described. Note that the third method is implemented by an encoding device or a decoding device. Note that, although an example of processing in an encoding device will be described below, similar processing may also be performed in a decoding device.

[0161] In the previously described determination of erroneously generated vertices (first method) or inference process of missing vertex positions (second method), estimation is easy when the original point cloud is a plane parallel to the node face, but estimation is not easy when the original point cloud is an inclined plane relative to the node face. In the third method, the arrangement directions of the centroid vertices and face vertices are utilized to determine erroneously generated vertices.

[0162] 28 and 29 are diagrams for explaining this third method, showing examples of generating the centroid vertex 151, edge vertices 112A and 112B, and face vertex 161. FIG.

[0163] Both the centroid vertex 151 and the face vertex 161 are vertices generated based on the distribution of the original point cloud. Therefore, the encoding device determines that an edge vertex generated on a node face parallel to a face including two line segments (line segments L1 and L2 in the example shown in FIG. 28 ) formed by two pairs of face vertices 161 of opposing faces within a node is an erroneously generated vertex.

[0164] 28, the plane including the line segments L1 and L2 is parallel to the bottom surface of the node. Therefore, the four edge vertices 112A generated on the bottom surface are determined to be erroneously generated vertices and are deleted. The edge vertices are regenerated using, for example, the first or second method described above.

[0165] 29, the plane including the line segments L1 and L2 is not parallel to the bottom surface of node 1 (the top surface of node 2). Therefore, it is determined that the four edge vertices generated on the bottom surface (two edge vertices 112A and two edge vertices 112B) include correct vertices that are not erroneously generated vertices.

[0166] For node faces that are determined to include correct vertices, the vertex positions can be used as they are to complement the edge vertices and restore the plane by the edge vertex correction process of embodiment 1. In other words, the edge vertices are not regenerated using the first or second method described above.

[0167] Note that a slope refers to a case where the angle difference between the normal of each face of the node and the normal of the slope formed by the original point cloud is equal to or greater than a threshold. This threshold is not particularly limited, but may be, for example, 10 degrees or 20 degrees. This threshold may be set as needed.

[0168] On the other hand, a plane formed by a point cloud and a plane of a node are said to be parallel when the angular difference between their normals is less than a threshold value, which is not particularly limited but may be, for example, 10 degrees or 20 degrees.

[0169] When this third method is performed by an encoding device, the encoding device stores information indicating the positions of the edge vertices regenerated above in a bitstream. The decoding device can generate correct edge vertices by using this information to generate edge vertices. This allows the decoding device to accurately restore a geometric shape. It also reduces unnecessary edge vertex data in the transmission data and simplifies the processing of the decoding device. Furthermore, since the edge vertex regeneration process in the encoding device can be omitted in some cases, the processing load of the encoding device can be reduced.

[0170] Furthermore, when this third method is performed by a decoding device, the decoding device decodes data in which multiple edge vertices, including erroneously generated edge vertices, are coded, and then performs the third method using the resulting edge vertices, thereby enabling reconstruction of a geometry shape close to the original point cloud.

[0171] In this case, the decoding device may complement attribute information (such as color) of the added edge vertex or attribute information of the restored point cloud. For example, the decoding device may complement and generate attribute information of the restored point cloud based on the position of a point in the restored point cloud using attribute information of the vertex or a surrounding point. The decoding device may also complement and generate attribute information of the added edge vertex based on the position of the edge vertex using attribute information of other edge vertices. Note that this complementation of attribute information of the edge vertex or point may be performed by the encoding device. In this case, the encoding device stores attribute information of multiple 3D points, including the complemented attribute information, in the bitstream.

[0172] [Syntax Example] A syntax example of information included in a bitstream for implementing the above-described technique will be described.

[0173] The bitstream may include a flag indicating whether or not the above method is to be applied. For example, the bitstream may include a first flag indicating whether or not the decoding device is to apply the second method. That is, when the first flag indicates that the second method is to be applied, the decoding device may perform plane reconstruction processing using the second method. For example, the bitstream may include a second flag indicating whether or not the decoding device is to apply the third method. That is, when the second flag indicates that the third method is to be applied, the decoding device may perform plane reconstruction processing using the third method.

[0174] The bitstream may also include a third flag indicating whether the decoding device applies the above-mentioned attribute information complementation. That is, when the third flag indicates that the above-mentioned complementation is to be applied, the decoding device may perform the above-mentioned attribute information complementation.

[0175] The encoding device may store these flags in, for example, the SPS, GPS, or GDU. Furthermore, these flags may be stored on a node-by-node basis. Note that at least one of the first flag, the second flag, and the third flag may be stored in the bitstream. When multiple flags are stored, these flags may be stored in the same or different locations.

[0176] Furthermore, the above flag may be a single flag indicating whether a plurality of processes are on or off, or individual flags indicating whether each of the plurality of processes is on or off.

[0177] Furthermore, this information may be transmitted at all times, or may not be included in the bitstream. Even in this case, the decoding device may still perform the above-described processing.

[0178] [Flowchart] Fig. 30 is a flowchart of the encoding process by the encoding device. The process shown in Fig. 30 is a process when the encoding device implements the first method and the third method described above.

[0179] First, the encoding device generates a plurality of leaf nodes (a group of leaf nodes) of a pruned octree by dividing the original point cloud into an octree (S201). Next, the encoding device generates edge vertices and centroid vertices of each leaf node (hereinafter simply referred to as a node) (S202).

[0180] Next, the encoding device generates face vertices for each node (S203). For example, for each node, the encoding device connects the centroid vertex of the target node to the centroid vertex of an adjacent node according to a condition, and generates face vertices at the intersections of the resulting line segments and the node boundaries.

[0181] Next, the encoding device performs the following processing (loop processing) of steps S204 to S207 for each of the multiple nodes in the pruned octree: First, the encoding device determines whether the target node contains any erroneously generated vertices and regenerates edge vertices (S204).

[0182] Next, the encoding device generates a plurality of triangles (trithorpe surfaces) by connecting the vertices (the plurality of edge vertices, the centroid vertex, and the face vertices) in the target node (S205). For example, the details of this process are the same as those of S105 in FIG. 22 described in the first embodiment.

[0183] Next, the encoding device performs the following process (loop process) in step S206 for each of the multiple triangles in the target node. The encoding device generates multiple points on the surface of the target triangle (S206). This completes the loop process for each triangle.

[0184] Next, the encoding device makes the restored points in each node unique by their coordinate values ​​and adds them to the decoded points (S207). Here, making them unique means excluding points with duplicate coordinate values. This completes the loop processing for each node.

[0185] 31 is a flowchart of the edge vertex regeneration process (S204). First, the encoding device sets the vertex reconstruct flag, which indicates whether or not to reconstruct the edge vertices, to OFF in order to initialize the flag (S211).

[0186] Next, the encoding device performs the following processing (loop processing) of steps S212 to S215 for each face included in the target node. First, the encoding device determines whether four edge vertices exist in the target face (S212). In other words, the encoding device determines whether one edge vertex has been generated for each of the four edges of the target face.

[0187] If the target surface has four edge vertices (Yes in S212), the encoding device determines whether the target surface is parallel to a surface based on the face vertices. Specifically, the encoding device determines whether the target surface is parallel to a surface formed by two pairs of opposing face vertices within the node (S213).

[0188] If the target surface is parallel to the above surface (Yes in S213), the encoding device determines that the target surface is an invalidated surface including an erroneously generated vertex and sets the vertex reconstruction flag to ON (S214). Next, the encoding device discards the four edge vertices included in the target surface (invalidated surface) and excludes the four edges included in the target surface (invalidated surface) from targets for edge vertex regeneration (S215). This completes the loop processing for each surface included in the target node. Furthermore, if the target surface does not have four edge vertices (No in S212) or if the target surface is not parallel to the above surface (No in S213), the loop processing for each surface included in the target node is completed.

[0189] Next, the encoding device determines whether the vertex reconfiguration flag of the target node is on (S216). If the vertex reconfiguration flag is on (Yes in S216), the encoding device relaxes the threshold used to generate edge vertices and regenerates edge vertices in the target node (S217).

[0190] Next, the encoding device determines whether edge vertices have been generated for all four edges perpendicular to the invalidation surface (S218). If edge vertices have not been generated for all four edges (No in S218), the encoding device further relaxes the threshold used for generating edge vertices and regenerates edge vertices in the target node (S217).

[0191] If the vertex reconstruction flag is off (No in S216), or if edge vertices have been generated for all four edges (Yes in S218), the encoding device ends the processing of step S204.

[0192] 32 is a flowchart showing the encoding process in the encoding device and the decoding process in the decoding device when the second and third methods are performed. Note that although the processing in the encoding device will be described below, the processing in the decoding device is similar.

[0193] The process shown in FIG. 32 differs from the process shown in FIG. 30 in that steps S201 to S203 are replaced with step S201A, and step S204 is replaced with step S204A.

[0194] First, the encoding device generates edge vertices, centroid vertices, and face vertices of multiple leaf nodes (S201A). Note that the processing of step S201A in the encoding device is similar to, for example, steps S201 to S203 shown in Fig. 30. Also, the processing of step S201A in the decoding device is similar to, for example, steps S101 to S104 shown in Fig. 22.

[0195] Next, the encoding device performs the following processing (loop processing) of steps S204A to S207 for each of the multiple nodes in the pruned octree. First, the encoding device adds an edge vertex (S204A). Specifically, the encoding device determines whether or not there is an erroneously generated vertex in the target node, and estimates the position of the missing edge vertex. Note that the processing from step S205 onwards is the same as in FIG. 30, and therefore a description thereof will be omitted.

[0196] Fig. 33 is a flowchart of the edge vertex addition process (S204A). The process shown in Fig. 33 differs from the process shown in Fig. 31 in that step S217 is replaced with step S217A. The differences from Fig. 31 will be described below.

[0197] If the vertex reconstruction flag is on (Yes in S216), the encoding device generates an edge vertex for an edge that does not have an edge vertex among the four edges perpendicular to the invalidation surface (S217A). Specifically, the encoding device complements the edge vertex to be added by using the positions of the edge vertices of the remaining edges among the four edges perpendicular to the invalidation surface.

[0198] [Summary] A decoding device (3D data decoding device) according to an embodiment performs the process shown in FIG. 34 . The decoding device decodes multiple 3D points. The decoding device generates multiple first edge vertices on multiple parallel first edges of the first node by decoding multiple encoded first edge vertices in a first node (S301). If the number of multiple first edge vertices is less than four, the decoding device uses the positions of the multiple first edge vertices to estimate the positions of one or two second edge vertices on one or two second edges other than the multiple first edges and parallel to the multiple first edges (S302). The multiple first edge vertices and one or two second edge vertices are used in a trisorp method. The first node is a unit for storing multiple 3D points included in an octree structure. For example, the decoding device decodes multiple 3D points using multiple first edge vertices and one or two second edge vertices. For example, the decoding device generates a triangle using the multiple first edge vertices and one or two second edge vertices and arranges multiple 3D points on the triangle.

[0199] This allows the decoding device to generate an additional second edge vertex when an edge vertex has not been generated correctly, thereby improving the reproducibility of the decoded point group.

[0200] For example, the estimation (S302) is performed in accordance with control information included in the bitstream and indicating whether to perform estimation. This allows the decoding device to determine whether to perform estimation based on the control information generated by the encoding device, thereby simplifying the determination process in the decoding device and reducing the processing load of the decoding device.

[0201] For example, attribute information of one or two second edge vertices is estimated from attribute information of multiple first edge vertices. This allows the decoding device to improve the reproducibility of the decoded point cloud by estimating the attribute information of the second edge vertices.

[0202] For example, a decoding device decodes multiple 3D points. The decoding device determines whether a first face of a first node is parallel to a cross section of the first node, and decodes the multiple encoded 3D points based on the result of the determination. The first face has four sides on which four edge vertices are respectively located. The cross section (e.g., a Trithorpe triangle) passes through a first centroid vertex of the first node. The cross section is defined by two pairs of face vertices, and each of the two pairs of face vertices is located on a second face perpendicular to the first face. A line connecting the first centroid vertex and the second centroid vertex of a second node adjacent to the first node intersects with a face vertex of the second face. The first centroid vertex, the second centroid vertex, and four edge vertices are used in the Trithorpe method. The first node is a unit for storing multiple 3D points included in an octree structure. For example, a Trithorpe triangle is a surface constituting the cross section of the first node and is a surface (approximate surface) that passes through the first centroid vertex.

[0203] This allows the decoding device to determine whether the vertices are correctly generated based on, for example, whether the first surface is parallel to the cross section of the first node, thereby improving the reproducibility of the decoded point cloud by performing decoding processing according to the determination result.

[0204] For example, when the decoding device determines that the first surface is not parallel to the cross section, the decoding device decodes the encoded 3D points according to the Trithorpe method and arranges the 3D points on an approximation surface defined by the first centroid vertex and four edge vertices. According to this, when the first surface is not parallel to the cross section of the first node, for example, the decoding device determines that the edge vertices have been correctly generated and generates an approximation surface using the edge vertices, thereby improving the reproducibility of the decoded point cloud.

[0205] For example, if the decoding device determines that the first surface is parallel to the cross section, it decodes the encoded 3D points and arranges the 3D points on the cross section. According to this, if the first surface is parallel to the cross section of the first node, for example, the decoding device determines that the edge vertices are not generated correctly, and generates 3D points on the cross section defined by the centroid vertices and the face vertices. This improves the reproducibility of the decoded point cloud.

[0206] 35 is a block diagram of the decoding device 10. For example, the decoding device 10 includes a processor 11 and a memory 12, and the processor 11 performs the above-described processing using the memory 12.

[0207] Moreover, an encoding device (three-dimensional data encoding device) according to an embodiment performs the process shown in Fig. 36. The encoding device encodes a plurality of three-dimensional points. The encoding device determines whether four first edge vertices have been generated on each of the four first edges of the first face of the first node (S311), and encodes the plurality of three-dimensional points based on the determination result (S312). The four first edge vertices are used in the Trithorpe method, and the first node is a unit for storing a plurality of three-dimensional points included in the octree structure.

[0208] According to this, the encoding device can determine whether the first edge vertices have been correctly generated based on, for example, whether four first edge vertices have been generated on each of the four first edges of the first surface. Specifically, if first edge vertices have been generated on all first edges, there is a possibility that edge vertices for restoring the original point cloud have not been correctly generated. This allows the encoding device to improve the reproducibility of the point cloud decoded by the decoding device, for example, by performing encoding processing according to the determination result. The encoding processing according to the determination result can, for example, correct the edge vertex positions as described below or not generate edge vertices.

[0209] For example, when four first edge vertices are generated on four first edges, respectively, the encoding device further performs at least one of a first process and a second process, in which the first process generates a plurality of second edge vertices on a plurality of second edges orthogonal to the first face, the plurality of second edges of the first node, respectively, and the second process increases a threshold for generating edge vertices, the threshold being compared with the distances between the plurality of three-dimensional points and the edges. For example, an edge vertex is generated when there is a three-dimensional point whose distance to the edge is less than the threshold.

[0210] According to this, when an edge vertex is not generated correctly, the encoding device generates an additional edge vertex or regenerates the edge vertex, thereby generating a correct edge vertex, thereby improving the reproducibility of the point group decoded by the decoding device.

[0211] For example, in the second process, the encoding device increases the threshold value for the second edges, which allows the encoding device to generate a correct edge vertex when an edge vertex is erroneously generated on the first face and no edge vertex is generated on some of the second edges.

[0212] For example, in the second process, the encoding device repeatedly increases the threshold value until multiple second edge vertices are generated. In this way, the encoding device can generate appropriate edge vertices by increasing the threshold value in stages.

[0213] For example, in the first process, the encoding device estimates the positions of one or two edge vertices using the positions of the second edge vertices when the number of the second edge vertices is less than 4. In this way, the encoding device can generate an edge vertex to be added using the second edge vertices.

[0214] For example, in the first process, the encoding device estimates attribute information of one or two edge vertices from attribute information of multiple second edge vertices if the number is less than 4. This allows the encoding device to improve the reproducibility of the decoded point cloud by estimating the attribute information of the second edge vertices.

[0215] 37 is a block diagram of the encoding device 20. For example, the encoding device 20 includes a processor 21 and a memory 22, and the processor 21 uses the memory 22 to perform the above-described processing.

[0216] The above describes the encoding device (three-dimensional data encoding device) and decoding device (three-dimensional data decoding device) according to the embodiments and modifications of the present disclosure, but the present disclosure is not limited to these embodiments.

[0217] Furthermore, each processing unit included in the encoding device, decoding device, etc. according to the above-described embodiments is typically realized as an LSI, which is an integrated circuit. These may be individually implemented as single chips, or some or all of them may be integrated into a single chip.

[0218] Furthermore, the integrated circuit is not limited to an LSI, but may be realized by a dedicated circuit or a general-purpose processor. An FPGA (Field Programmable Gate Array) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure the connections and settings of circuit cells within the LSI may also be used.

[0219] In each of the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for that component. Each component may be realized by a program execution unit such as a CPU or processor reading and executing a software program recorded on a recording medium such as a hard disk or semiconductor memory.

[0220] Furthermore, the present disclosure may be realized as an encoding method (three-dimensional data encoding method) or a decoding method (three-dimensional data decoding method) executed by an encoding device (three-dimensional data encoding device) and a decoding device (three-dimensional data decoding device), etc.

[0221] The present disclosure may also be realized as a program that causes a computer, processor, or device to execute the encoding method or decoding method. The present disclosure may also be realized as a bitstream generated by the encoding method. The present disclosure may also be realized as a recording medium on which the program or the bitstream is recorded. For example, the present disclosure may also be realized as a non-transitory computer-readable recording medium on which the program or the bitstream is recorded.

[0222] The division of functional blocks in the block diagram is an example, and multiple functional blocks may be realized as a single functional block, one functional block may be divided into multiple blocks, or some functions may be moved to another functional block.Furthermore, the functions of multiple functional blocks having similar functions may be processed in parallel or in time-sharing by a single piece of hardware or software.

[0223] The order in which the steps in the flowchart are executed is merely an example for specifically explaining the present disclosure, and other orders may be used. Also, some of the steps may be executed simultaneously (in parallel) with other steps.

[0224] While the encoding device and decoding device according to one or more aspects have been described based on the embodiments, the present disclosure is not limited to these embodiments. As long as they do not deviate from the spirit of the present disclosure, various modifications conceivable by those skilled in the art to the present embodiments and configurations constructed by combining components of different embodiments may also be included within the scope of one or more aspects.

[0225] The present disclosure is applicable to encoding devices and decoding devices.

[0226] 10 Decoding device 11, 21 Processor 12, 22 Memory 20 Encoding device 101 Object space 102, 133 Point cloud 103, 111, 132 Point 104 Leaf node 112, 112A, 112B, 112C Edge vertex 113, 122 Range 121 Approximation plane 123 Vertex information 131 Triangle 151 Centroid vertex 161 Face vertex 201 Area

Claims

1. A method for encoding a plurality of three-dimensional points, comprising: determining whether four first edge vertices have been generated on four first edges of a first face of a first node; and encoding the plurality of three-dimensional points based on a result of the determination; the four first edge vertices are used in a tri-sort method; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

2. The encoding method according to claim 1, further comprising the steps of: when the four first edge vertices are generated on the four first edges, performing at least one of a first process and a second process; in the first process, generating a plurality of second edge vertices on a plurality of second edges of the first node that are perpendicular to the first face; and in the second process, increasing a threshold for generating edge vertices, the threshold being compared with distances between a plurality of three-dimensional points and the edges.

3. The method according to claim 2, wherein the second process increases the threshold for the second plurality of edges.

4. The method according to claim 2, wherein in said second process, said threshold value is repeatedly increased until said plurality of second edge vertices are generated.

5. The encoding method according to claim 2, wherein in said first process, if the number of said plurality of second edge vertices is less than four, the positions of one or two edge vertices are estimated using the positions of said plurality of second edge vertices.

6. The encoding method according to claim 5, wherein in said first process, if the number is less than four, the attribute information of said one or two edge vertices is estimated from the attribute information of said plurality of second edge vertices.

7. A decoding method for decoding a plurality of three-dimensional points, comprising: generating a plurality of first edge vertices on a plurality of first edges of the first node that are parallel to each other by decoding a plurality of encoded first edge vertices in the first node; if the number of the plurality of first edge vertices is less than four, estimating positions of one or two second edge vertices on one or two second edges other than the plurality of first edges and parallel to the plurality of first edges using positions of the plurality of first edge vertices; the plurality of first edge vertices and the one or two second edge vertices are used in a trisorp method; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

8. The decoding method according to claim 7, wherein said estimation is performed according to control information included in the bitstream, which indicates whether said estimation is to be performed.

9. The decoding method according to claim 7, wherein the attribute information of the one or two second edge vertices is estimated from the attribute information of the plurality of first edge vertices.

10. A decoding method for decoding a plurality of three-dimensional points, comprising: determining whether a first face of a first node is parallel to a cross section of the first node; and decoding the encoded plurality of three-dimensional points based on a result of the determination; the first face has four sides on which four edge vertices are respectively located; the cross section passes through a first centroid vertex of the first node; the cross section is defined by two sets of face vertex pairs; each of the two sets of face vertex pairs is located on a second plane perpendicular to the first face; a line connecting the first centroid vertex and a second centroid vertex of a second node adjacent to the first node intersects with a face vertex of the second face; the first centroid vertex, the second centroid vertex, and the four edge vertices are used in a trisope method; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

11. The decoding method according to claim 10, further comprising the steps of: decoding the encoded three-dimensional points according to the Trithorpe method if it is determined that the first surface is not parallel to the cross section; and arranging the encoded three-dimensional points on an approximation surface defined by the first centroid vertex and the four edge vertices.

12. The decoding method according to claim 10, further comprising: if it is determined that the first surface is parallel to the cross section, decoding the encoded three-dimensional points to place the three-dimensional points on the cross section.

13. An encoding device for encoding a plurality of three-dimensional points, comprising: a processor; and a memory, wherein the processor uses the memory to determine whether four first edge vertices have been generated on each of four first edges of a first face of a first node, and encodes the plurality of three-dimensional points based on a result of the determination, wherein the four first edge vertices are used in a trisorp system, and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

14. A decoding device for decoding a plurality of three-dimensional points, comprising: a processor; and a memory, wherein the processor uses the memory to decode a plurality of encoded first edge vertices in a first node to generate the plurality of first edge vertices on a plurality of first edges of the first node that are parallel to each other; if the number of the plurality of first edge vertices is less than four, the positions of the plurality of first edge vertices are used to estimate positions of one or two second edge vertices on one or two second edges other than the plurality of first edges and parallel to the plurality of first edges; the plurality of first edge vertices and the one or two second edge vertices are used in a trisorp method; and the first node is a unit for storing a plurality of three-dimensional points included in an octree structure.

15. A decoding device for decoding a plurality of 3D points, comprising: a processor; and a memory, wherein the processor uses the memory to determine whether a first face of a first node is parallel to a cross section of the first node, and decodes the encoded plurality of 3D points based on a result of the determination, wherein the first face has four sides on which four edge vertices are respectively located, the cross section passes through a first centroid vertex of the first node, the cross section is defined by two sets of face vertex pairs, each of the two sets of face vertex pairs is located on a second plane perpendicular to the first face, a line connecting the first centroid vertex and a second centroid vertex of a second node adjacent to the first node intersects with a face vertex of the second face, the first centroid vertex, the second centroid vertex, and the four edge vertices are used in a trisope method, and the first node is a unit for storing a plurality of 3D points included in an octree structure.

Citation Information

Patent Citations

  • Point group decoding device, point group encoding device, point group processing system, point group decoding method and program

    JP2022162485A

  • A technique for generalized TRISOUP geometry encoding.

    JP2022521991A

  • Point cloud data transmitting device, point cloud data transmitting method, point cloud data receiving device, and point cloud data receiving method.

    JP2022550877A

Cited By

  • Pprimitive coding method and device, equipment, storage medium and program product

    CN121120809A

  • Decoding method, encoding method, decoding device, and encoding device

    EP4586197A4

  • Decoding method, encoding method, decoding device, and encoding device

    EP4697269A4