Point cloud decoding device, point cloud decoding method, and program
The point cloud decoding device addresses the limitation of fixed node sizes in Trisoup by using an approximate surface synthesis unit to generate predicted values for vertex information at smaller node sizes, thereby enhancing encoding efficiency across multiple node sizes.
Patent Information
- Application Number
- PCT/JP2024/008380
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2024-03-05
- Publication Date
- 2024-10-17
AI Technical Summary
The existing Trisoup method can only be executed with a fixed node size for each slice, limiting its encoding efficiency as it cannot effectively handle multiple node sizes, particularly in decoding vertex positions at smaller node sizes.
A point cloud decoding device and method that includes an approximate surface synthesis unit capable of decoding vertex information at multiple node sizes, generating a predicted value for the target node size based on decoded vertex information from larger node sizes, and using this predicted value to decode vertex information efficiently.
Improves encoding efficiency by enabling the encoding and decoding of vertex position differences across various node sizes, enhancing the flexibility and accuracy of point cloud processing.
Smart Images

Figure JP2024008380_17102024_PF_FP_ABST
Abstract
Description
Point group decoding device, point group decoding method and program
[0001] The present invention relates to a point group decoding device, a point group decoding method, and a program.
[0002] Non-Patent Document 1 discloses a geometry information encoding technique called Trisoup.
[0003] G-PCC Future Enhancement, ISO / IEC JTC1 / SC29 / WG11 N19328 [GPCC] [13.50] Report on enhanced edge neighborhood for vertex prediction in TriSoup, ISO / IEC JTC1 / SC29 / WG7 m61565
[0004] However, the method of Non-Patent Document 1 has a problem in that Trisoup can only be executed with a fixed node size for each slice.
[0005] Therefore, the present invention has been made in consideration of the above-mentioned problems, and aims to provide a point cloud decoding device, a point cloud decoding method, and a program that can improve coding efficiency in Trisoup with multiple node sizes by generating predicted values of vertex positions at small node sizes based on vertex positions decoded at large node sizes, and encoding / decoding the difference with the vertex positions at small node sizes.
[0006] A first feature of the present invention is a point cloud decoding device comprising an approximate surface synthesis unit that decodes vertex information of Trisoup for each node size in order from the largest node size, wherein the vertex information includes at least one of the presence or absence of a vertex for each unique segment or the vertex position for each unique segment, and wherein, when a decoded node size larger than a target node size exists, the approximate surface synthesis unit generates a predicted value of the vertex information for the target node size from the vertex information for the decoded node size, and decodes the vertex information for the target node size using the predicted value.
[0007] A second feature of the present invention is a point cloud decoding device comprising an approximate surface synthesis unit that decodes vertex information of a Trisoup, wherein the vertex information includes at least one of the presence or absence of a vertex for each unique segment or the vertex position for each unique segment, and the presence or absence of a vertex and the position of the vertex are each decoded using a plurality of contexts, and the contexts are configured to be prepared and initialized in the minimum number necessary based on the values that the contexts can take prior to the decoding process.
[0008] A third feature of the present invention is a point cloud decoding method comprising a step of decoding vertex information of Trisoup for each node size in order from the largest node size, wherein the vertex information includes at least one of the presence or absence of a vertex for each unique segment or the vertex position for each unique segment, and wherein, in the step, if there is a decoded node size larger than a target node size, a predicted value of the vertex information for the target node size is generated from the vertex information for the decoded node size, and the vertex information for the target node size is decoded using the predicted value.
[0009] A fourth feature of the present invention is a program that causes a computer to function as a point cloud decoding device, the point cloud decoding device comprising an approximate surface synthesis unit that decodes vertex information of Trisoup for each node size in order from the largest node size, the vertex information including at least one of the presence or absence of a vertex for each unique segment or the vertex position for each unique segment, and when there is a decoded node size that is larger than a target node size, the approximate surface synthesis unit generates a predicted value of the vertex information for the target node size from the vertex information for the decoded node size, and decodes the vertex information for the target node size using the predicted value.
[0010] According to the present invention, in Trisoup with multiple node sizes, a point cloud decoding device, a point cloud decoding method and a program can be provided that can improve coding efficiency by generating predicted values of vertex positions at small node sizes based on vertex positions decoded at large node sizes and encoding / decoding the difference with the vertex positions at small node sizes.
[0011] FIG. 1 is a diagram showing an example of the configuration of a point cloud processing system 10 according to an embodiment. FIG. 2 is a diagram showing an example of functional blocks of a point cloud decoding device 200 according to an embodiment. FIG. 3 is a diagram showing an example of the configuration of encoded data (bit stream) received by a geometric information decoding unit 2010 of the point cloud decoding device 200 according to an embodiment. FIG. 4 is a diagram showing an example of the syntax configuration of GPS2011. FIG. 5 is a diagram showing an example of the syntax configuration of GSH2012. FIG. 7 is a flowchart showing an example of processing in a tree synthesis unit 2020 of the point cloud decoding device 200 according to an embodiment. FIG. 7 is a flowchart showing an example of processing in an approximate surface synthesis unit 2030 of the point cloud decoding device 200 according to an embodiment. FIG. 8 is a flowchart showing an example of processing in step S703 shown in FIG. 7. FIG. 9 is a flowchart showing an example of processing in step S704 shown in FIG. 7. FIG. 10 is a flowchart showing a specific example of a method for generating mask information. FIG. 11 is a diagram showing an example of generating segments and mask values. FIG. 12 is a flowchart showing an example of processing in step S705 shown in FIG. 7. FIG. 13 is a flowchart illustrating an example of the process of step S706 shown in FIG. 7. FIG. 14 is a flowchart illustrating an example of the process of step S708 shown in FIG. 7. FIG. 15A is a diagram illustrating an example of the process of step S1302 in FIG. 13. FIG. 15B is a diagram illustrating an example of the process of step S1302 in FIG. 13. FIG. 16A is a diagram illustrating an example of the process of step S705 in FIG. 7. FIG. 16B is a diagram illustrating an example of the process of step S706 in FIG. 7. FIG. 16C is a diagram illustrating an example of the process of step S708 in FIG. 7. FIG. 17 is a diagram illustrating an example of the process of the approximate surface synthesis unit 2030 of the point cloud decoding device 200 according to an embodiment. FIG. 18A is a diagram illustrating an example of a method for setting a context in the point cloud decoding device 200 according to an embodiment. FIG. 18B is a diagram illustrating an example of a method for setting a context in the point cloud decoding device 200 according to an embodiment. FIG. 19A is a diagram illustrating an example of a method for setting a context in the point cloud decoding device 200 according to an embodiment.19B is a diagram illustrating an example of a context setting method in the point group decoding device 200 according to an embodiment. FIG. 19C is a diagram illustrating an example of a context setting method in the point group decoding device 200 according to an embodiment. FIG. 20 is a diagram illustrating an example of a context setting method in the point group decoding device 200 according to an embodiment. FIG. 21 is a diagram illustrating an example of a context setting method in the point group decoding device 200 according to an embodiment. FIG. 22 is a diagram illustrating an example of a context setting method in the point group decoding device 200 according to an embodiment. FIG. 23 is a flowchart illustrating an example of processing in which the approximate surface synthesis unit 2030 of the point group decoding device 200 according to an embodiment decodes the presence or absence of a vertex and the vertex position based on information about the "interpolated vertex". FIG. 24 is a flowchart illustrating an example of processing in which the approximate surface synthesis unit 2030 of the point group decoding device 200 according to an embodiment decodes the presence or absence of a vertex and the vertex position based on information about the "interpolated vertex". Fig. 25 is a flowchart showing an example of processing performed by the approximate surface synthesis unit 2030 of the point cloud decoding device 200 according to an embodiment to decode the presence or absence of vertices and the vertex positions based on information about the "interpolated vertices". Fig. 26 is a diagram showing an example of functional blocks of the point cloud encoding device 100 according to this embodiment.
[0012] Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the components in the following embodiments can be appropriately replaced with existing components, etc., and various variations, including combinations with other existing components, are possible. Therefore, the description of the following embodiments does not limit the content of the invention described in the claims.
[0013] First Embodiment Hereinafter, a point cloud processing system 10 according to a first embodiment of the present invention will be described with reference to Figures 1 to 26. Figure 1 is a diagram showing a point cloud processing system 10 according to this embodiment.
[0014] As shown in FIG. 1 , the point cloud processing system 10 includes a point cloud encoding device 100 and a point cloud decoding device 200 .
[0015] The point cloud encoding device 100 is configured to generate encoded data (bitstream) by encoding an input point cloud signal, and the point cloud decoding device 200 is configured to generate an output point cloud signal by decoding the bitstream.
[0016] The input point cloud signal and the output point cloud signal are composed of position information and attribute information of each point in the point cloud, such as color information and reflectance of each point.
[0017] Here, the bit stream may be transmitted from the point group encoding device 100 to the point group decoding device 200 via a transmission path. Alternatively, the bit stream may be stored in a storage medium and then provided from the point group encoding device 100 to the point group decoding device 200.
[0018] (Point Group Decoding Device 200) The point group decoding device 200 according to this embodiment will be described below with reference to Fig. 2. Fig. 2 is a diagram showing an example of functional blocks of the point group decoding device 200 according to this embodiment.
[0019] As shown in Figure 2, the point cloud decoding device 200 has a geometric information decoding unit 2010, a tree synthesis unit 2020, an approximate surface synthesis unit 2030, a geometric information reconstruction unit 2040, an inverse coordinate transformation unit 2050, an attribute information decoding unit 2060, an inverse quantization unit 2070, an RAHT unit 2080, an LoD calculation unit 2090, an inverse lifting unit 2100, and an inverse color transformation unit 2110.
[0020] The geometric information decoding unit 2010 is configured to receive as input a bit stream relating to geometric information (geometric information bit stream) from among the bit streams output from the point group encoding device 100, and to decode the syntax.
[0021] The decoding process is, for example, a context-adaptive binary arithmetic decoding process. Here, for example, the syntax includes control data (flags and parameters) for controlling the decoding process of the position information.
[0022] The tree synthesis unit 2020 is configured to receive as input the control data decoded by the geometric information decoding unit 2010 and an occupancy code indicating at which node in the tree (described later) the point group exists, and to generate tree information indicating in which area in the decoding target space the point exists.
[0023] The decoding process of the occupancy code may be performed within the tree synthesis unit 2020.
[0024] This process divides the decoding target space into rectangular parallelepipeds, determines whether a point exists in each rectangular parallelepiped by referring to the occupancy code, divides the rectangular parallelepiped in which the point exists into multiple rectangular parallelepipeds, and refers to the occupancy code. By recursively repeating this process, tree information can be generated.
[0025] Here, inter prediction may be used when decoding such an occasion code.
[0026] In this embodiment, a method called "Octree" can be used, which recursively performs octree division on the above-mentioned rectangular parallelepiped as a cube, and a method called "QtBt" can be used, which performs quadtree division and binary tree division in addition to octree division. Whether or not to use "QtBt" is transmitted from the point cloud encoding device 100 as control data.
[0027] In this embodiment, the method of decoding geometric information by dividing the above-mentioned cube using "Octree" until it becomes 1x1x1 in size is specifically referred to as "Octree only."
[0028] Furthermore, even when "Octree" is used in combination with "QtBt," the method of decoding geometric information by dividing the above-mentioned rectangular parallelepiped using only "Octree" and "QtBt" until it reaches a size of 1x1x1, as described above, may also be called "Octree only."
[0029] Alternatively, when the use of predictive geometry coding is specified by the control data, the tree synthesis unit 2020 is configured to decode the coordinates of each point based on an arbitrary tree configuration determined by the point cloud encoding device 100.
[0030] The approximate surface synthesis unit 2030 is configured to generate approximate surface information using the tree information generated by the tree synthesis unit 2020, and to decode the point cloud based on the approximate surface information.
[0031] For example, when decoding three-dimensional point cloud data of an object, if the point cloud is densely distributed on the surface of the object, approximate surface information is used to represent the area where the point cloud exists by approximating it with a small plane, rather than decoding each individual point cloud.
[0032] Specifically, the approximate surface synthesis unit 2030 can generate approximate surface information and decode the point cloud using a technique called "Trisoup," for example. A specific example of the "Trisoup" process will be described later. Furthermore, when decoding a sparse point cloud acquired by Lidar or the like, this process can be omitted.
[0033] The geometric information reconstruction unit 2040 is configured to reconstruct the geometric information (position information in the coordinate system assumed by the decoding process) of each point of the point cloud data to be decoded based on the tree information generated by the tree synthesis unit 2020 and the approximate surface information generated by the approximate surface synthesis unit 2030.
[0034] The inverse coordinate transformation unit 2050 is configured to receive the geometric information reconstructed by the geometric information reconstruction unit 2040 as input, transform it from the coordinate system assumed by the decoding process to the coordinate system of the output point cloud signal, and output position information.
[0035] The attribute information decoding unit 2060 is configured to receive as input a bit stream relating to attribute information (attribute information bit stream) from among the bit streams output from the point group encoding device 100, and to decode the syntax.
[0036] The decoding process is, for example, a context-adaptive binary arithmetic decoding process, where the syntax includes, for example, control data (flags and parameters) for controlling the decoding process of the attribute information.
[0037] Moreover, the attribute information decoding unit 2060 is configured to decode the quantized residual information from the decoded syntax.
[0038] The inverse quantization unit 2070 is configured to perform inverse quantization processing based on the quantized residual information decoded by the attribute information decoding unit 2060 and the quantization parameter, which is one of the control data decoded by the attribute information decoding unit 2060, to generate inverse quantized residual information.
[0039] The dequantized residual information is output to either the RAHT unit 2080 or the LoD calculation unit 2090, depending on the characteristics of the point group to be decoded. Which unit the information is output to is specified by control data decoded by the attribute information decoding unit 2060.
[0040] The RAHT unit 2080 is configured to receive as input the inverse-quantized residual information generated by the inverse quantization unit 2070 and the geometric information generated by the geometric information reconstruction unit 2040, and to decode the attribute information of each point using a type of Haar transform (inverse Haar transform in the decoding process) called RAHT (Region Adaptive Hierarchical Transform). As a specific process of RAHT, for example, the method described in Non-Patent Document 1 can be used.
[0041] The LoD calculation unit 2090 is configured to receive the geometric information generated by the geometric information reconstruction unit 2040 as an input and generate an LoD (Level of Detail).
[0042] LoD is information for defining a reference relationship (a point to be referenced and a point to be referenced) to realize predictive coding, such as predicting attribute information of another point from attribute information of another point and encoding or decoding the prediction residual.
[0043] In other words, LoD is information that defines a hierarchical structure in which each point contained in geometric information is classified into multiple levels, and the attributes of points belonging to lower levels are encoded or decoded using the attribute information of points belonging to higher levels.
[0044] As a specific method for determining the LoD, for example, the method described in Non-Patent Document 1 mentioned above may be used.
[0045] The inverse lifting unit 2100 is configured to decode attribute information of each point based on the hierarchical structure defined by the LoD, using the LoD generated by the LoD calculation unit 2090 and the inverse-quantized residual information generated by the inverse quantization unit 2070. As a specific process of inverse lifting, for example, the method described in the above-mentioned Non-Patent Document 1 can be used.
[0046] The inverse color conversion unit 2110 is configured to perform inverse color conversion processing on the attribute information output from the RAHT unit 2080 or the inverse lifting unit 2100 when the attribute information to be decoded is color information and color conversion has been performed on the point cloud encoding device 100 side. Whether or not to perform such inverse color conversion processing is determined by the control data decoded by the attribute information decoding unit 2060.
[0047] The point cloud decoding device 200 is configured to decode and output attribute information of each point in the point cloud through the above processing.
[0048] (Geometric Information Decoding Unit 2010) Hereinafter, the control data decoded by the geometric information decoding unit 2010 will be described with reference to FIGS.
[0049] FIG. 3 shows an example of the structure of coded data (bit stream) received by the geometric information decoding unit 2010.
[0050] First, the bitstream may include a GPS 2011. The GPS 2011 is also called a geometry parameter set and is a set of control data related to decoding of geometric information. A specific example will be described later. Each GPS 2011 includes at least GPS ID information for identifying each GPS 2011 when multiple GPS 2011 exist.
[0051] Second, the bitstream may include GSH2012A / 2012B. GSH2012A / 2012B is also called a geometry slice header or geometry data unit header, and is a collection of control data corresponding to a slice, which will be described later. Hereinafter, the term "slice" will be used, but "slice" can also be interpreted as "data unit." Specific examples will be described later. GSH2012A / 2012B includes at least GPS ID information for specifying the GPS2011 corresponding to each GSH2012A / 2012B.
[0052] Third, the bitstream may include slice data 2013A / 2013B following the GSH 2012A / 2012B. The slice data 2013A / 2013B includes data in which geometric information is encoded. An example of the slice data 2013A / 2013B is an occupancy code, which will be described later.
[0053] As described above, the bit stream is configured such that one GSH 2012A / 2012B and one GPS 2011 correspond to each slice data 2013A / 2013B.
[0054] As described above, the GPS id information is used to specify which GPS 2011 to refer to in the GSH 2012A / 2012B, so a common GPS 2011 can be used for multiple slice data 2013A / 2013B.
[0055] In other words, it is not necessary to transmit the GPS 2011 for each slice. For example, as shown in Fig. 3, the bit stream may be configured such that the GPS 2011 is not coded immediately before the GSH 2012B and slice data 2013B.
[0056] 3 is merely an example. As long as the GSH 2012A / 2012B and the GPS 2011 correspond to each slice data 2013A / 2013B, elements other than those described above may be added as components of the bit stream.
[0057] For example, as shown in Fig. 3, the bitstream may include a sequence parameter set (SPS) 2001. Similarly, when transmitted, the bitstream may be shaped into a configuration different from that shown in Fig. 3. Furthermore, the bitstream may be combined with a bitstream decoded by an attribute information decoding unit 2060 (described later) and transmitted as a single bitstream.
[0058] FIG. 4 shows an example of the syntax configuration of GPS2011.
[0059] Note that the syntax names explained below are merely examples. If the syntax functions explained below are similar, the syntax names may be different.
[0060] The GPS 2011 may include GPS id information (gps_geom_parameter_set_id) for identifying each GPS 2011.
[0061] 4 indicates how each syntax element is coded. ue(v) indicates an unsigned zeroth-order exponential-Golomb code, and u(1) indicates a 1-bit flag.
[0062] The GPS 2011 may include a flag (trisoup_enabled_flag) that controls whether or not the approximate surface synthesis unit 2030 uses Trisoup.
[0063] For example, it may be defined that Trisoup is not used when the value of trisoup_enabled_flag is "0", and that Trisoup is used when the value of trisoup_enabled_flag is "1".
[0064] The geometric information decoding unit 2020 may be configured to additionally decode the following syntax when Trisoup is used, that is, when the value of trisoup_enabled_flag is “1”.
[0065] Note that trisoup_enabled_flag may be included in SPS2001 instead of GPS2011.
[0066] The GPS2011 may include a flag (trisoup_multilevel_enabled_flag, first flag) that controls whether or not trisoup is permitted at multiple levels.
[0067] For example, when the value of trisoup_multilevel_enabled_flag is "0", multi-level trisoup is not allowed, i.e., single-level trisoup is allowed, and when the value of trisoup_multilevel_enabled_flag is "1", multi-level trisoup is allowed.
[0068] If this syntax is not included in GPS2011, the value of this syntax may be considered to be the value when performing Trisoup at a single level, i.e., "0".
[0069] Note that trisoup_multilevel_enabled_flag may be defined to be included in SPS2001 instead of GPS2011. In this case, if trisoup_multilevel_enabled_flag is not included in SPS2001, the value of the syntax may be regarded as the value for performing trisoup at a single level, i.e., "0".
[0070] 5 shows an example of the syntax configuration of GSH 2012. As mentioned above, GSH is also called GDUH (Geometry Data Unit Header).
[0071] The geometric information decoding unit 2020 may be configured to additionally decode the following syntax when multi-level Trisoup is permitted, that is, when the value of trisoup_multilevel_enabled_flag is "1".
[0072] When GSH2012 allows multi-level Trisoup, it may include syntax (log2_trisoup_max_node_size_minus2) that specifies the maximum Trisoup node size.
[0073] The syntax may be expressed as a value obtained by converting the maximum value of the actual Trisoup node size into a logarithm with base 2. Furthermore, the syntax may be expressed as a value obtained by subtracting 2 from the logarithm with base 2 with respect to the maximum value of the actual Trisoup node size.
[0074] When GSH2012 allows multi-level Trisoup, it may include syntax (log2_trisoup_min_node_size_minus2) that specifies the minimum Trisoup node size.
[0075] The syntax may be expressed as a value obtained by converting the actual minimum Trisoup node size to a logarithm with base 2. Furthermore, the syntax may be expressed as a value obtained by converting the actual minimum Trisoup node size to 4 (=2 2 ) and expressed as a value obtained by converting it to a logarithm with base 2 and then subtracting 2 from it.
[0076] Furthermore, the value of this syntax may be restricted to be greater than or equal to 0 and less than or equal to log2_trisoup_max_node_size_minus2.
[0077] In this case, trisoup_depth may be defined as trisoup_depth=log2_trisoup_max_node_size_minus2−log2_trisoup_min_node_size_minus2+1 as shown in FIG.
[0078] Furthermore, instead of directly decoding the minimum and maximum Trisoup node sizes, Depth values corresponding to the maximum and minimum Trisoup node sizes in Octree processing, which will be described later, may be decoded.
[0079] For example, if the maximum Depth (the Depth at which all nodes are 1x1x1 in size) is 10, the minimum Trisoup node size is 4 (=2 2 ), the maximum Trisoup node size is 16 (=2 4), the depth value corresponding to the minimum Trisoup node size may be decoded as 8, and the depth value corresponding to the maximum Trisoup node size may be decoded as 6.
[0080] When allowing Trisoup at multiple levels, GSH2012 may include syntax (log2_trisoup_ctu_size_minus2) that specifies the size of a node (hereinafter referred to as a CTU) that decodes the Trisoup node size.
[0081] Such syntax may be expressed as a base 2 logarithmic value.
[0082] Furthermore, this syntax limits the actual Trisoup node size to a minimum of 4 (=2 2 ) and expressed as a value obtained by converting it to a logarithm with base 2 and then subtracting 2 from it.
[0083] Furthermore, the value of such syntax may be restricted to be equal to or greater than the maximum Trisoup node size.
[0084] In addition, the value of such syntax may be expressed as the value obtained by subtracting the value obtained by converting the maximum Trisoup node size to a logarithm with base 2 from the value obtained by converting the CTU size to a logarithm with base 2.
[0085] The geometric information decoding unit 2020 may be configured to additionally decode the following syntax when multi-level Trisoup is not permitted, that is, when the value of trisoup_multilevel_enabled_flag is "0".
[0086] As described above, the geometric information decoding unit 2020 in this embodiment may be configured to decode the maximum Trisoup node size, which is the maximum value of the node size to which the above-mentioned Trisoup is applied, and the minimum Trisoup node size, which is the minimum value of the node size to which Trisoup is applied.
[0087] As described above, the geometric information decoding unit 2020 in this embodiment may be configured to decode the predetermined size (CTU size) as a value equal to or larger than the maximum Trisoup node size.
[0088] With this configuration, it becomes possible to select a node size between the maximum Trisoup node size and the minimum Trisoup node size for each region (CTU) of a predetermined size.
[0089] As described above, the geometric information decoding unit 2020 in this embodiment may be configured to set the maximum Trisoup node size to a predetermined size.
[0090] By adopting such a configuration, it is possible to omit decoding of the CTU size, thereby reducing the amount of coding and the amount of processing.
[0091] GSH2012 may include syntax (log2_trisoup_node_sizeTrisoup_node_size_minus2) to specify the Trisoup node size when multi-level Trisoup is not allowed and when Trisoup is used.
[0092] Such syntax may be expressed as a base 2 logarithm of the actual Trisoup node size.
[0093] Furthermore, such syntax may be expressed as a base 2 logarithm of the actual Trisoup node size, followed by subtracting 2.
[0094] In this case, trisoup_depth may be defined as trisoup_depth=1, as shown in FIG.
[0095] GSH2012 may include syntax (trisoup_sampling_value_minus1) to control the subsampling interval of the reconstruction points when using Trisoup.
[0096] GSH2012 may include a syntax (trisoup_vertex_number_bits) that specifies the precision (number of bits) of the vertex positions of Trisoup (described later). For example, if the value of this syntax is 2, this means that the vertex position is 2 bits, that is, it can take on four values: 0, 1, 2, and 3.
[0097] Here, as described above, trisoup_vertex_number_bits may always transmit only one value regardless of the value of trisoup_depth, or the number of bits to be decoded may be changed depending on the value of trisoup_depth.
[0098] For example, trisoup_vertex_number_bits corresponding to each trisoup_depth may be decoded. In other words, the same number of trisoup_vertex_number_bits as trisoup_depth may be decoded. Specifically, for example, when trisoup_depth is 2, two types of values of trisoup_vertex_number_bits may be transmitted.
[0099] The GSH2012 may include a flag (trisoup_centroid_vertex_residual_flag) indicating whether or not to decode the centroid residuals of the vertices of Trisoup (described later). For example, the flag may be defined such that a value of 1 indicates that the centroid residuals are to be decoded, and a value of 0 indicates that the centroid residuals are not to be decoded.
[0100] Here, as described above, trisoup_centroid_vertex_residual_flag may always transmit only one value regardless of the value of trisoup_depth, or the number of values to be decoded may be changed depending on the value of trisoup_depth.
[0101] For example, trisoup_centroid_vertex_residual_flag corresponding to each trisoup_depth may be decoded. In other words, the same number of trisoup_centroid_vertex_residual_flag as the trisoup_depth may be decoded. Specifically, for example, when trisoup_depth is 2, two types of values of trisoup_centroid_vertex_residual_flag may be transmitted.
[0102] When GSH2012 uses Trisoup and allows Trisoup at multiple levels, it may include a flag (unique_segments_exist_flag[i]) for each hierarchical level i (i = 0,..., trisoup_depth-1) indicating whether a unique segment exists in the target hierarchical level.
[0103] For example, if the value of unique_segments_exist_flag[i] is "1", it means that at least one unique segment exists in tier i. On the other hand, if the value of unique_segments_exist_flag[i] is "0", it means that no unique segments exist in tier i.
[0104] If a unique segment exists in the target layer for each layer i (i = 0, ..., trisoup_depth-1), i.e., if the value of unique_segments_exist_flag[i] is "1", GSH2012 may additionally include a syntax (num_unique_segments_bits_minus1[i]) indicating the number of bits of the syntax indicating the number of unique segments in the target layer and a syntax (num_unique_segments_minus1[i]) indicating the number of unique segments in the target layer.
[0105] Here, for both num_unique_segments_bits_minus1[i] and num_unique_segments_minus1[i], the original value minus "1" may be coded as the syntax value.
[0106] (Tree Merging Unit 2020) The processing of the tree merging unit 2020 will be described below with reference to Fig. 6. Fig. 6 is a flowchart showing an example of processing in the tree merging unit 2020. Note that the following describes an example in which trees are merged using "Octree."
[0107] In step S601, the tree synthesis unit 2020 checks whether the processing for all depths has been completed. Note that the depth numbers may be included as control data in the bitstream transmitted from the point cloud encoding device 100 to the point cloud decoding device 200.
[0108] The tree synthesis unit 2020 calculates the node size of the target depth. In the case of an "Octree," the node size of the first depth may be defined as "2 to the power of the depth number." In other words, if the depth number is N, the node size of the first depth may be defined as 2 to the Nth power.
[0109] Furthermore, the node sizes at the second and subsequent depths may be defined by decreasing the number N by 1. That is, the node size at the second depth may be defined as "2 to the power (N-1)", the node size at the third depth may be defined as "2 to the power (N-2)", and so on.
[0110] Alternatively, since the node size is always defined as a power of 2, the value of the exponent part (N, N-1, N-2, etc.) may simply be considered as the node size. In the following explanation, the node size refers to the value of the exponent part of the length of one side of the node.
[0111] For simplicity, the following description will be given taking as an example a case where the node shape is a cube, that is, a case where all sides of the node have the same length.
[0112] When using QtBt, that is, when the node shape is a rectangular parallelepiped and the lengths of the sides of the node are different in each axial direction (x, y, z), the length of the shortest side of the three directions may be considered to be the node size.Similarly, the length of the longest side of the three directions may be considered to be the node size.
[0113] Here, when the flag (trisoup_enabled_flag) that controls whether or not to use Trisoup indicates that Trisoup is to be used, that is, when the value of trisoup_enabled_flag is "1," the tree synthesis unit 2020 may change the number of Depths to be processed based on the value of the syntax (log2_trisoup_min_node_size_minus2) that specifies the minimum value of the Trisoup node size or the syntax (log2_Trisoup_node_size_minus2) that specifies the Trisoup node size. In such a case, for example, it may be defined as follows:
[0114] Number of Processing Depths=Total Number of Depths−(Minimum) Trisoup Node Size Here, the minimum Trisoup node size can be defined as, for example, (log2_trisoup_min_node_size_minus2+2). Similarly, the Trisoup node size can be defined as (log2_Trisoup_node_size_minus2+2).
[0115] In this case, if the processing for all the processing depths has been completed, the tree merging unit 2020 proceeds to step S609; otherwise, the tree merging unit 2020 proceeds to step S602.
[0116] In other words, if (processing depth number - n) = 0, the tree merging unit 2020 proceeds to step S609, and if (processing depth number - n) > 0, the tree merging unit 2020 proceeds to step S602.
[0117] Furthermore, the tree merging unit 2020 may determine that Trisoup is applied to all nodes having the node size (N-processing depth number) when proceeding to step S609.
[0118] In step S602, the tree synthesis unit 2020 determines whether or not it is necessary to decode Trisoup_node_size, which will be described later, at the target depth.
[0119] For example, if "Trisoup at multiple levels is allowed (the value of trisoup_multilevel_enabled_flag is "1")" and "the node size (N-n) of the target depth is the CTU size," the tree synthesis unit 2020 may determine that "decoding of Trisoup_node_size is necessary."
[0120] In this embodiment, the "node that decodes the Trisoup node size" is called a CTU (Coding Tree Unit). The name CTU is merely an example, and any other name may be used as long as it is a "node that decodes the Trisoup node size."
[0121] Furthermore, if the above conditions are not met, the tree synthesis unit 2020 may determine that "decoding of Trisoup_node_size is not necessary."
[0122] Here, the maximum Trisoup node size can be defined as, for example, (log2_trisoup_max_node_size_minus2+2).
[0123] Similarly, the minimum Trisoup node size can be defined as, for example, (log2_trisoup_min_node_size_minus2+2).
[0124] Once the above-mentioned determination is completed, the tree merging unit 2020 proceeds to step S603.
[0125] In step S603, the tree merging unit 2020 determines whether or not processing of all nodes included in the target depth has been completed.
[0126] If it is determined that processing of all nodes of the target depth has been completed, the tree merging unit 2020 proceeds to step S601 and performs processing of the next depth.
[0127] On the other hand, if processing of all nodes at the target depth has not been completed, the tree merging unit 2020 proceeds to step S604.
[0128] In step S604, the tree synthesis unit 2020 checks whether or not it is necessary to decode Trisoup_node_size determined in step S602.
[0129] Note that step S602 may be omitted, and at the processing timing of step S604, it may be determined whether or not Trisoup_node_size needs to be decoded using a method similar to that of step S602.
[0130] If it is determined that decoding of Trisoup_node_size is necessary, the tree merging unit 2020 proceeds to step S605, and if it is determined that decoding of Trisoup_node_size is not necessary, the tree merging unit 2020 proceeds to step S606.
[0131] In step S605, the tree synthesis unit 2020 decodes Trisoup_node_size.
[0132] Trisoup_node_size is information indicating the size at which Trisoup is applied to a descendant node obtained by recursively dividing the CTU using Octree or QtBt.
[0133] For example, if the CTU size is 5 (=2 5 = 32), and the decoded Trisoup_node_size is 2 (= 2 2 = 4), it may mean that Trisoup is applied to each node (node size 2) obtained when the CTU is divided three times (= 5 - 2) by Octree.
[0134] The node size to which the decoded Trisoup is applied (hereinafter referred to as Trisoup node size) is stored as additional information of the node. Note that the initial value of the Trisoup node size is 0 (=2 0 = 1) and overwrite it with the decrypted value in step S605.
[0135] After decoding Trisoup_node_size, the tree synthesis unit 2020 proceeds to step S606.
[0136] In step S606, the tree merging unit 2020 checks the value of the Trisoup node size stored as internal information of the node.
[0137] If Trisoup is to be applied to the target node, that is, if the size of the node is equal to the Trisoup node size stored as internal information of the node, the tree merging unit 2020 proceeds to step S607.
[0138] If Trisoup is not to be applied to the target node, that is, if the size of the node differs from the Trisoup node size stored as internal information of the node, the tree merging unit 2020 proceeds to step S608.
[0139] In step S607, the tree merging unit 2020 stores the target node as a node to which Trisoup is applied, i.e., as a Trisoup node. No further node division using "Octree" is applied to this target node. The tree merging unit 2020 then proceeds to step S603 to process the next node.
[0140] In step S608, the tree synthesis unit 2020 decodes information called an occupancy code.
[0141] In the case of "Octree," the occupancy code is information indicating whether the point to be decoded is contained in each of the child nodes when the target node is divided in half in each of the x, y, and z axis directions and divided into eight nodes (called child nodes).
[0142] For example, the occupancy code may assign one bit of information to each child node, and if the one bit of information is "1", it may be defined that the point to be decoded is included in the child node, and if the one bit of information is "0", it may be defined that the point to be decoded is not included in the child node.
[0143] When decoding such an occurrence code, the tree synthesis unit 2020 may estimate in advance the probability that the point to be decoded exists in each child node, and entropy decode the bits corresponding to each child node based on that probability.
[0144] In step S608, the tree merging unit 2020 may store the position information of the nodes to which Trisoup has not been applied in a one-dimensional array or the like for each depth, for use in step S901 described later.
[0145] Specifically, the tree merging unit 2020 may store position information of the target node (node before splitting) in step S608. For example, the tree merging unit 2020 may store the coordinate values of the vertices of the target node (rectangular parallelepiped) that are closest to the origin in a one-dimensional array for each depth, and this information may be used by the approximate surface merging unit 2030, which will be described later.
[0146] If the size of the rectangular prism (lengths of the sides in the x-axis, y-axis, and z-axis directions) is determined for each depth, the position information of the node can be restored by identifying the coordinate values and depth of the point closest to the origin within the node as described above.
[0147] Similarly, the point cloud encoding device 100 may perform entropy encoding.
[0148] In step S608, the Trisoup node size stored as internal information of the node may be stored as internal information of each child node of the node. In other words, the Trisoup node size may be inherited by the child node. This allows the value of the Trisoup node size decoded in step S605 to be propagated to the descendant nodes.
[0149] (Approximate Surface Synthesis Unit 2030) Hereinafter, an example of the processing of the approximate surface synthesis unit 2030 will be described with reference to FIGS.
[0150] FIG. 7 is a flowchart showing an example of the processing performed by the approximate surface synthesis unit 2030.
[0151] As shown in FIG. 7, in step S701, the approximate surface synthesis unit 2030 determines whether or not processing has been completed for all trisoup_depths.
[0152] If the process has been completed for all trisoup_depths, the process proceeds to step S709, where the process ends. If the process has not been completed for all trisoup_depths, the process proceeds to step S702.
[0153] In step S702, the approximate surface synthesis unit 2030 determines whether the Trisoup node size corresponding to the trisoup_depth is equal to the maximum Trisoup node size.
[0154] If they are equal, the operation proceeds to step S704, and if they are not equal, that is, if the Trisoup node size corresponding to the trisoup_depth is smaller than the maximum Trisoup node size, the operation proceeds to step S703.
[0155] In step S702, the approximate surface synthesis unit 2030 acquires and integrates the vertex positions for each node.
[0156] In step S703, the approximate surface synthesis unit 2030 generates segments corresponding to the "interpolated vertices (vertices on which interpolation processing has been performed)" generated in step S708, which will be described later. Fig. 8 is a flowchart showing an example of the processing in step S703.
[0157] An example of the process in step S703 will be described below with reference to FIG.
[0158] As shown in FIG. 8, in step S801, the approximate surface synthesis unit 2030 determines whether or not processing has been completed for all of the "interpolated vertices" generated in step S708, which will be described later.
[0159] If so, the operation proceeds to step S805 and ends processing. If not, the operation proceeds to step S802 to process the next "interpolated vertex."
[0160] In step S802, the approximate surface synthesis unit 2030 determines on which direction (x, y, or z direction) the "interpolated vertex" exists.
[0161] For example, as described below, if the vertices of a segment and Trisoup are located at a position 0.5 offset from the integer coordinate position, then in the x-direction segment, only the x-coordinate of the "interpolated vertex" will be an integer value (x.0), and the y-coordinate and z-coordinate will be decimal values (x.5).
[0162] Similarly, in segments in the y direction, only the y coordinate is an integer value, and in segments in the z direction, only the z coordinate is an integer value, so the approximate surface synthesis unit 2030 can determine the direction of the segment in which the ``interpolated vertex'' should exist by checking which axial coordinate is an integer.
[0163] In addition, when coordinate values are stored in integer format, for example, when the true coordinate value is doubled and stored as an integer value to represent 0.5, the approximate surface synthesis unit 2030 can determine whether the coordinate value in each axis direction is an integer or a decimal (x.5) depending on whether the lowest bit is 1.
[0164] The approximate surface synthesis unit 2030 stores the result of this determination, and proceeds to the next step S803.
[0165] In step S803, the approximate surface synthesis unit 2030 determines whether the "interpolated vertex" exists on an edge of the current Trisoup node size. For example, the approximate surface synthesis unit 2030 can make this determination using the following method: (1) First, the approximate surface synthesis unit 2030 quantizes the coordinate values of the "interpolated vertex" on the x, y, and z axes to integers.
[0166] Specifically, the approximate surface synthesis unit 2030 adds 0.5 to each coordinate value and then rounds down the decimal points.
[0167] Here, if the coordinate values are stored as integer values that are twice the true values, the approximate surface synthesis unit 2030 adds 1, divides by 2, and truncates to the nearest digit.
[0168] Alternatively, if the coordinate values are stored as integer values that are twice the true values, the approximate surface synthesis unit 2030 adds 1 and then shifts them one bit to the right.
[0169] Note that although the case where integers are converted for all of the x, y, and z axis directions has been described here, the approximate surface synthesis unit 2030 may convert integers only for axes other than the "direction" determined in step S802.
[0170] For example, when the above-mentioned "direction" is the x-axis, the approximate surface synthesis unit 2030 only needs to convert the y-coordinate and z-coordinate into integers.
[0171] (2) Secondly, the approximate surface synthesis unit 2030 checks whether the coordinate values after integer conversion of the axes other than the "direction" determined in step S802 are multiples of the Trisoup node size.
[0172] For example, the approximate surface synthesis unit 2030 determines whether the above-mentioned "direction" is the x-axis direction and the value of the Trisoup node size is 8 (=2 3 ), it is checked whether the integer-converted y coordinate and z coordinate are each a multiple of 8.
[0173] In the above process (2), if the coordinate values after integer conversion of the axes other than the "direction" are all multiples of the Trisoup node size, the approximate surface synthesis unit 2030 determines that the "interpolated vertex" exists on an edge of the current Trisoup node size, and proceeds to step S804.
[0174] If this is not the case, that is, if the coordinate value in at least one axis direction is not a multiple of the Trisoup node size, the approximate surface synthesis unit 2030 determines that the "interpolated vertex" does not exist on an edge in the current Trisoup node size, and proceeds to step S801 to process the next "interpolated vertex."
[0175] In step S804, the approximate surface synthesis unit 2030 generates a segment corresponding to the "interpolated vertex" using the coordinates of the "interpolated vertex" converted into integers in step S803.
[0176] Here, a segment may be composed of three elements: the coordinates (x, y, z) of the start point, the coordinates (x, y, z) of the end point, and the vertex position on the segment (0 to Trisoup node size - 1).
[0177] The above-mentioned starting point can be obtained, for example, by quantizing the coordinate values of the "interpolated vertex" converted into integers by the Trisoup node size.
[0178] Specifically, for example, if the logarithm of the base 2 of the Trisoup node size is TrisoupNodeSizeLog2, it can be derived by performing the following calculation on the coordinate values of the "interpolated vertices."
[0179] Coordinate value after quantization=(coordinate value>>TrisoupNodeSizeLog2)<<TrisoupNodeSizeLog2 where >> denotes a right bit shift and << denotes a left bit shift.
[0180] When proceeding to processing in step S804, it is clear that the coordinate values of axes other than the "direction" determined in step S802 are already multiples of the Trisoup node size, so in step S804, the approximate surface synthesis unit 2030 may perform the above-mentioned quantization processing only on the coordinate values of the axis corresponding to the "direction" determined in step S802.
[0181] Next, the coordinates of the end point can be calculated by adding the value of the Trisoup node size to the coordinate value of the axis corresponding to the "direction" determined in step S802 for the coordinates of the start point.
[0182] Finally, the vertex position on the segment can be derived by subtracting the coordinate value of the starting point on the axis corresponding to the above-mentioned "direction" from the coordinate value of the integerized "interpolated vertex" on the axis corresponding to the "direction" determined in step S802.
[0183] After the above processing is performed, the operation proceeds to step S801 to process the next "interpolated vertex."
[0184] The above describes an example of generating segments from "interpolated vertices," but instead of segments, data may be stored in the form of "whether or not an interpolated vertex is present" and "the position of the interpolated vertex" for each unique segment.
[0185] The "presence or absence of an interpolated vertex" for each unique segment can be determined as "has a vertex" if, for example, the coordinates of the start point and the coordinates of the end point of each unique segment are identical among the segments generated using the above-mentioned method, and as "has no vertex" if the coordinates of the start point and the coordinates of the end point of each unique segment are not identical.
[0186] Furthermore, as described above, the vertex position held by the segment when it is determined that a vertex is present can be used as is as the "position of the interpolated vertex."
[0187] As described above, the approximate surface synthesis unit 2030 generates a segment (or "presence or absence of an interpolated vertex" and "position of the interpolated vertex") from the "interpolated vertex" in step S703 of Figure 8, and then proceeds to step S704.
[0188] In step S704, the approximate surface synthesis unit 2030 collects neighbor information to be used for decoding the vertices in the next step S705.
[0189] 9 is a flowchart showing an example of the process of step S704. An example of the process of step S704 will be described below with reference to FIG.
[0190] 9, in step S901, the approximate surface synthesis unit 2030 generates mask information. Fig. 10 shows a specific example of a method for generating mask information.
[0191] When generating mask information, as shown in FIG. 10, the approximate surface synthesis unit 2030 determines in step S1001 whether or not processing has been completed for all Trisoup nodes in the Trisoup node size.
[0192] If completed, the operation proceeds to step S1003; if not completed, the operation proceeds to step S1002.
[0193] In step S1002, the approximate surface synthesis unit 2030 generates 36 segments and mask values corresponding to each segment for the Trisoup node.
[0194] An example of generating segments and mask values is shown in Fig. 11. The shaded areas in Fig. 11 indicate examples of the Trisoup nodes, each line segment indicates an example of a segment, and the numbers written on the segments indicate examples of mask values.
[0195] Since it is difficult to provide examples of mask values for all segments, examples of mask values are provided only for some segments. However, in reality, mask values are set for all segments as follows:
[0196] First, the approximate surface synthesis unit 2030 generates four segments at adjacent positions with larger coordinate values than the node and four segments at adjacent positions with smaller coordinate values for each of the 12 sides of the Trisoup node in the x, y, and z directions, generating a total of 36 segments as shown in Figure 11.
[0197] Here, each segment has information about its start point and end point, but since there are no vertices, information about the vertex positions is not held.
[0198] Next, an example of setting the mask value for each segment will be described.
[0199] The approximate surface synthesis unit 2030 sets a mask value in which only one of the lower four bits of the mask value is 1 and the rest are 0 for the segments corresponding to the 12 sides of the Trisoup node.
[0200] For example, as shown in FIG. 11, the approximate surface synthesis unit 2030 may set mask values of 1, 2, 4, and 8 for segments in the x-axis direction.
[0201] Similarly, the approximate surface synthesis unit 2030 may set mask values of 1+(1<<13), 2+(1<<13), 4+(1<<13), and 8+(1<<13) for segments in the y-axis direction.
[0202] Similarly, the approximate surface synthesis unit 2030 may set mask values of 1+(1<<14), 2+(1<<14), 4+(1<<14), and 8+(1<<14) for segments in the z-axis direction.
[0203] With this setting, if any of the first to fourth bits of the mask value is 1, it can be determined that the node corresponding to the segment is a Trisoup node.
[0204] Next, the approximate surface synthesis unit 2030 may set mask values of 16, 32, 64, and 128, respectively, for segments (12 segments in total, four in each of the x, y, and z directions) corresponding to adjacent nodes whose coordinate values increase from the Trisoup node in the x, y, and z directions, as shown in Figure 11.
[0205] With this setting, if any of the fifth to eighth bits of the mask value is 1, it can be determined that the adjacent node with the smaller coordinate value for the segment is the Trisoup node.
[0206] Next, the approximate surface synthesis unit 2030 may set mask values of 256, 512, 1024, and 2048, respectively, for segments (four in each of the x, y, and z directions, for a total of 12 segments) corresponding to adjacent nodes whose coordinate values are smaller than the Trisoup node in the x, y, and z directions, as shown in Figure 11.
[0207] With this setting, if any of the 9th to 12th bits of the mask value is 1, it can be determined that the adjacent node with a larger coordinate value for the segment is a Trisoup node.
[0208] As described above, after generating the segments and the corresponding mask values, the approximate surface synthesis unit 2030 proceeds to step S1001 to process the next Trisoup node.
[0209] Here, the nodes to which Trisoup was not applied at the depth, which were saved in step S608 above, may be added to the nodes to be processed in step S1001 as the nodes to be processed in this step.
[0210] For "nodes to which Trisoup was not applied at that depth", Trisoup is not applied at that depth, so no Trisoup vertices or the like are generated for the node itself, but this is an area where Trisoup is supposed to be applied at depths greater than that depth. Therefore, when generating a mask for "nodes to which Trisoup was not applied at that depth" in step S1002, no mask is set where "any of the first to fourth bits of the mask value is 1" as described above, and only masks where "any of the fifth to eighth bits of the mask value is 1" and "any of the ninth to twelfth bits of the mask value is 1" are set.
[0211] In step S1003, the approximate surface synthesis unit 2030 determines whether or not processing of all segments corresponding to the "interpolated vertices" generated in step S703 has been completed.
[0212] If completed, the operation proceeds to step S1005, where the mask generation process of step S901 ends. If not completed, the operation proceeds to step S1004.
[0213] In step S1004, the approximate surface synthesis unit 2030 generates, for the segment corresponding to the "interpolated vertex," a mask value that indicates that the "interpolated vertex" exists in the segment.
[0214] The approximate surface synthesis unit 2030 may set the mask value to, for example, 1<<15. When such a value is set, if the 16th bit of the mask value is 1, it can be determined that an "interpolated vertex" exists in the segment.
[0215] After generating the mask value, the approximate surface synthesis unit 2030 proceeds to step S1003 to process the next segment.
[0216] Note that the mask values generated in steps S1002 and S1004 are both powers of 2. By doing so, when combining mask values of segments that exist in the same position in step S905, which will be described later, the mask values can be easily combined by performing a bit operation (logical sum).
[0217] Furthermore, depending on whether each bit of the mask value synthesized in this way is 1 or 0, as described above, information about the segment (whether it is a Trisoup node, whether there is an adjacent Trisoup node, whether there is an "interpolated vertex" in the segment, etc.) can be obtained.
[0218] After generating the mask information as described above, the approximate surface synthesis unit 2030 proceeds to step S902.
[0219] In step S902, the approximate surface synthesis unit 2030 collects and sorts all of the segments generated in step S901 and the segments corresponding to the "interpolated vertices."
[0220] The approximate surface synthesis unit 2030 sorts the segments based on, for example, the coordinates of the start point and the coordinates of the end point of each segment. By performing this processing, it is possible to rearrange the segments so that segments having the same start point and end point are consecutive.
[0221] After completing this sorting, the approximate surface synthesis unit 2030 proceeds to step S903.
[0222] In step S903, the approximate surface synthesis unit 2030 determines whether or not processing of all segments after sorting in step S902 has been completed.
[0223] If completed, the operation proceeds to step S909, and the neighbor information collection process of step S704 ends. If not completed, the operation proceeds to step S904.
[0224] In step S904, the approximate surface synthesis unit 2030 determines whether the segment is in the same position as the segment processed immediately before.
[0225] Specifically, the approximate surface synthesis unit 2030 determines whether or not both the coordinates of the start point and the coordinates of the end point of the segment are the same as those of the segment processed immediately before.
[0226] If the position is the same as the previously processed segment, the operation proceeds to step S905. If the position is not the same as the previously processed segment, the operation proceeds to step S906.
[0227] In step S905, the approximate surface synthesis unit 2030 integrates the mask value corresponding to the segment generated in step S901 with the mask values of the segments at the same position processed up to that point.
[0228] For example, when the mask values corresponding to each segment are composed of powers of 2 as described in step S901, the approximate surface synthesis unit 2030 can integrate the masks by taking the logical sum of the mask values of each segment.
[0229] After the approximate surface synthesis unit 2030 integrates the masks, the process proceeds to step S907.
[0230] In step S906, the approximate surface synthesis unit 2030 stores the segment processed immediately before the current segment as a unique segment if the segment satisfies a predetermined condition A.
[0231] For example, the predetermined condition A may be that the segment processed immediately before is a segment corresponding to a Trisoup node.
[0232] For example, if at least one of the four lowest bits of the mask value integrated in step S905 is 1, it is found that the segment processed immediately before is the segment corresponding to the Trisoup node.
[0233] The approximate surface synthesis unit 2030 may store, as information about the unique segment, the coordinates of the start point, the coordinates of the end point, information about the interpolation points described in step S907 below, information about adjacent segments described in step S908 below, and the mask value integrated in step S905, for the unique segment (target unique segment). This information is used in the vertex decoding process in step S705.
[0234] After saving the information about the unique segments, the approximate surface synthesis unit 2030 initializes various information (information about interpolation points, information about adjacent segments, integrated mask values, etc.).
[0235] If the predetermined conditions are not satisfied, the approximate surface synthesis unit 2030 performs only initialization. After the above processing is completed, the operation proceeds to step S907.
[0236] In step S907, if the predetermined condition B is satisfied, the approximate surface synthesis unit 2030 stores information about the interpolation points.
[0237] For example, the predetermined condition B may be that the mask value of the segment indicates that the segment has an "interpolated vertex." Specifically, the predetermined condition B may be that the 16th bit of the mask value is 1.
[0238] If the predetermined condition B is satisfied, the approximate surface synthesis unit 2030 saves the coordinates of the "interpolated vertices." Specifically, the approximate surface synthesis unit 2030 saves the values of the "vertex positions on the segment" generated in step S804. The values saved here are saved as information about the unique segment in step S906.
[0239] If the segment is not determined to be a unique segment in step S906 (if the specified condition A in step S906 is not satisfied), the information about the interpolation points of the segment saved in step S907 is discarded.
[0240] In addition, the approximate surface synthesis unit 2030 may prepare a separate array to store the values of the "vertex positions on the segment," and in this step, store an index value for identifying the value corresponding to the segment in that array instead of the coordinate value itself.
[0241] After the above processing is completed, the operation proceeds to step S908.
[0242] In step S908, the approximate surface synthesis unit 2030 stores information about the adjacent segments.
[0243] Specifically, for example, the approximate surface synthesis unit 2030 stores the start coordinates of the segment, and information for identifying segments with the same start coordinates or end coordinates (for example, segment index, etc.).
[0244] For example, there are segments with the same start point coordinates as the segment in question, and start point coordinates or end point coordinates, specifically, one segment in the same axial direction as the segment in question, whose end point coordinates are the same as the start point coordinates of the segment in question, and four segments in the axial direction perpendicular to the segment in question. The information saved here is saved as information about unique segments in step S906.
[0245] If the segment is not determined to be a unique segment in step S906 (if the specified condition A in step S906 is not satisfied), the information on the adjacent segments of the segment generated in step S908 is discarded.
[0246] After the above processing is completed, the operation proceeds to step S903 to process the next segment.
[0247] As described above, after collecting the neighboring information in step S704, the approximate surface synthesis unit 2030 proceeds to step S705.
[0248] In step S705, the approximate surface synthesis unit 2030 decodes the vertices of Trisoup at the trisoup_depth.
[0249] 12 is a flowchart showing an example of a method for decoding vertices in step S705. An example of the processing in step S705 will be described below with reference to FIG.
[0250] As shown in FIG. 12, in step S1201, the approximate surface synthesis unit 2030 initializes the context.
[0251] Here, initialization means, for example, setting the initial value of the probability distribution when entropy decoding information corresponding to a context. By updating the probability distribution for each context based on the entropy-decoded value, it is possible to improve coding efficiency.
[0252] The approximate surface synthesis unit 2030 may prepare multiple sets of contexts depending on the application and initialize each of them.
[0253] For example, the approximate surface synthesis unit 2030 may have three types of contexts for each application: a context for decoding whether or not a vertex exists, a context for decoding the first bit of the vertex position, and a context for decoding the second bit of the vertex position, as described below.
[0254] These contexts may be configured from two elements, CtxMap1 and CtxMap2, as will be described later. For example, in Non-Patent Document 2, a context for decoding the presence or absence of a vertex is provided as MapOBUFTrisoup[0], a context for decoding the first bit of a vertex position is provided as MapOBUFTrisoup[1], and a context for decoding the first bit of a vertex position is provided as MapOBUFTrisoup[2].
[0255] Furthermore, in Non-Patent Document 2, a 7-bit (=128 ways) context for CtxMap1 of MapOBUFTrisoup[0] is prepared, and a 15-bit (14+1 bit) context for CtxMap2 is prepared, and each is initialized.
[0256] Similarly, CtxMap1 of MapOBUFTrisoup[1] is prepared for 6 bits, CtxMap2 is prepared for 15 bits (10 + 1 + 3 + 1 bits), CtxMap1 of MapOBUFTrisoup[2] is prepared for 7 bits (6 + 1 bits), and CtxMap2 is prepared for 15 bits (10 + 1 + 3 + 1 bits), and they are initialized.
[0257] As will be described later, CtxMap1 of the context for decoding the presence or absence of a vertex takes a value of 7 bits, and CtxMap2 takes a value of 15 bits.
[0258] Similarly, CtxMap1, which is the first bit of a vertex position, takes a value of 6 bits, CtxMap2 takes a value of 11 bits, CtxMap1, which is the first bit of a vertex position, takes a value of 7 bits, and CtxMap2 takes a value of 15 bits. In this case, if a context greater than the number of bits actually used is prepared in advance, as in Non-Patent Document 2 described above, subsequent processing becomes possible.
[0259] Furthermore, by preparing only the minimum necessary context based on the bits that are actually used, it is possible to reduce the amount of memory required to store the context.
[0260] In the example described below, since the first bit of the vertex position, CtxMap2, takes only an 11-bit value, it is sufficient to prepare and initialize a context for only 11 bits. In other words, there is no need to prepare a 15-bit value as in Non-Patent Document 2.
[0261] After the context initialization is complete, the operation proceeds to step S1202.
[0262] In step S1202, the approximate surface synthesis unit 2030 determines whether or not the processing has been completed for all the unique segments generated in step S703.
[0263] If processing has been completed for all unique segments, the operation proceeds to step S1208, and the processing of step S703 ends. If processing has not been completed for all unique segments, the operation proceeds to step S1203.
[0264] In step S1203, the approximate surface synthesis unit 2030 determines whether or not an "interpolated vertex" exists in the unique segment.
[0265] Whether or not an "interpolated vertex" exists can be determined based on the integrated mask value saved in step S906 or the "presence or absence of an interpolated vertex" information generated in step S703. If an "interpolated vertex" exists, the operation proceeds to step S1204. If an "interpolated vertex" does not exist, the operation proceeds to step S1205.
[0266] In step S1204, the approximate surface synthesis unit 2030 saves the "vertex positions on the segment" saved in step S906 or the "interpolated vertex positions" generated in step S703 as vertex positions in the unique segment.
[0267] In other words, the approximate surface synthesis unit 2030 sets the "vertex positions on the segment" saved in step S906 as the decoded values of the vertex positions in the unique segment.
[0268] Furthermore, the approximate surface synthesis unit 2030 sets the decoded value of "vertex presence / absence" in the unique segment to "vertex presence."
[0269] That is, step S1204 is a process of implicitly determining the vertex positions and the information indicating the presence or absence of vertices using the interpolated values, instead of decoding the information indicating the vertex positions and the presence or absence of vertices from the bitstream.
[0270] After the above processing is completed, the operation proceeds to step S1202 to process the next unique segment.
[0271] In step S1205, the approximate surface synthesis unit 2030 decodes, from the bitstream, information indicating whether or not a vertex exists in the unique segment.
[0272] The information indicating the presence or absence of a vertex may be a 1-bit flag, and may be entropy coded in the point cloud coding device 100. The approximate surface synthesis unit 2030 may prepare multiple probability models for entropy coding (coding device) / decoding (decoding device) and select one according to the context. The context may be set based on, for example, the mask value saved and integrated in step S906.
[0273] An example of a method for setting a context will be described below with reference to FIGS.
[0274] 18A and 18B show neighboring nodes when the unique segment is E. The direction of the arrow of E indicates the direction away from the origin (the direction in which the coordinate value increases).
[0275] Nodes e1 to e4 are adjacent to the unique segment (they include the unique segment as an edge).
[0276] Whether or not nodes e1 to e4 exist can be determined by checking whether the first to fourth bits of the mask value of the unique segment generated in step S704 are 1 or 0, respectively.
[0277] Nodes a1 to a4 are nodes adjacent to (included as edges of) the unique segment in a direction closer to the origin (a direction in which the coordinate value decreases).
[0278] Whether or not nodes a1 to a4 exist can be determined by whether the fifth to eighth bits of the mask value of the unique segment generated in step S704 are 1 or 0, respectively.
[0279] Nodes b1 to b4 are nodes adjacent to (included as edges of) the unique segment in question and adjacent segments in a direction away from the origin (a direction in which the coordinate values increase).
[0280] Whether or not nodes b1 to b4 exist can be determined by checking whether the 9th to 12th bits of the mask value of the unique segment generated in step S704 are 1 or 0, respectively.
[0281] 19A to 19C show numbers assigned to the edges of the neighboring nodes shown in FIGS. 18A and 18B.
[0282] 19A to 19C, the unique segment E is arranged differently depending on whether its direction is the x-axis, y-axis, or z-axis. This arrangement is made up of only edges (segments) that have been decoded before the unique segment E when the unique segments are decoded in raster scan order (also called lexicographic order, where the coordinate values are sorted in ascending order with the priority of x, y, and z).
[0283] The direction of the arrow of each segment in FIGS. 19A to 19C indicates a direction away from the origin (a direction in which the coordinate value increases).
[0284] The context may consist of CtxMap1 (or Primary Information) and CtxMap2 (Secondary Information).
[0285] CtxMap1 may be configured, for example, as follows:
[0286] CtxMap1=min(nclosestPattern, 2)×15×2+(neighbEdge−1)×2+(ctx1==4?1:0) Here, min(A, B) is a function that returns the smaller value of two variables A and B.
[0287] In addition, nclosestPattern is the number of edges (unique segments) with subscripts a to e shown in Figures 19A to 19C whose vertices are located close to the unique segment E (positions whose distance from the unique segment is less than half the length of the edge), and takes on a value between 0 and 4.
[0288] That is, min(nclosestPattern, 2) is one of three integer values from 0 to 2.
[0289] 18A。 NeighbEdge is a 4-bit binary number, and each bit represents whether or not each of nodes e1 to e4 in Fig. 18A exists. When considered in decimal, neighbEdge takes an integer value of 1 to 15.
[0290] ctx1 is the number of existing nodes among the nodes a1 to a4 in FIG. 18B.
[0291] (Condition ? A : B) is a ternary operator that returns the value of A if the condition is met, and returns the value of B if the condition is not met. In the above case, if the value of ctx1 is 4, it returns 1, otherwise it returns 0.
[0292] As described above, CtxMap1 has 3×15×2 combinations=90 combinations (<2 7 In other words, all possible values can be expressed with a 7-bit binary number.
[0293] CtxMap2 may be configured as shown in Fig. 20. As shown in Fig. 20, CtxMap2 has 15 bits of information. In other words, CtxMap2 has 2 15 Takes street value.
[0294] After the approximate surface synthesis unit 2030 decodes the information indicating the presence or absence of a vertex, the process proceeds to step S1206.
[0295] In step S1206, the approximate surface synthesis unit 2030 determines whether or not a vertex exists in the unique segment.
[0296] If a vertex exists based on the information indicating the presence or absence of the vertex decoded in step S1205, the approximate surface synthesis unit 2030 proceeds to step S1207. If such a vertex does not exist, the approximate surface synthesis unit 2030 proceeds to step S1202 and proceeds to processing of the next unique segment.
[0297] In step S1207, the approximate surface synthesis unit 2030 decodes the "vertex position on the segment" for the unique segment in which it is determined that a vertex exists. Here, the vertex position may be entropy coded. When performing entropy coding (encoding device) / decoding (decoding device), the approximate surface synthesis unit 2030 may prepare multiple probability models and select one according to the context. The context may be set, for example, based on the information of the adjacent segments saved in step S906.
[0298] An example of a method for setting a context will be described below with reference to FIGS. 18, 19, 21 and 22. FIG.
[0299] The vertex position may be decoded bit by bit starting from the MSB as follows: Furthermore, the vertex position context may be configured from CtxMap1 (or Primary Information) and CtxMap2 (Secondary Information), similar to the above-mentioned vertex presence / absence context.
[0300] First, an example of generating a context for the first bit (MSB) will be described.
[0301] CtxMap1 may be configured, for example, as follows:
[0302] CtxMap1=ctxFullNbounds×2+(nclosestStart>0?1:0) where ctxFullNbounds may be defined as follows:
[0303] ctxFullNbounds = (4 x (ctx0 <= 1 ? 0 : (ctx0 >= 3 ? 2 : 1)) + (max (1, ctx1) - 1)) x 2 + (ctxE == 3 ? 0 : 1) Here, ctx0 is the number of existing nodes among nodes b1 to b4 in Figure 18B.
[0304] Also, max(A, B) is a function that returns the larger value of the two arguments A and B.
[0305] Furthermore, ctxE is a value obtained by subtracting 1 from the number of existing nodes among the nodes e1 to e4 in FIG. 18A.
[0306] nclosestStart is the number of edges whose vertices are closest to the unique segment E (i.e., the distance from the unique segment E is less than or equal to the edge length / 4) among the edges with subscripts a to e shown in Figures 19A to 19C.
[0307] From the above, CtxMap1 has 3×4×2×2=48 combinations (<2 6 In other words, CtxMap1 can express all possible values in a 6-bit binary number.
[0308] CtxMap2 may be configured as shown in Fig. 21. As shown in Fig. 21, CtxMap2 has 11 bits of information. In other words, CtxMap2 has 2 11 Takes street value.
[0309] Next, an example of generating a context for the second bit will be described.
[0310] CtxMap1 may be configured, for example, as follows:
[0311] CtxMap1 = (CtxMap1 of the 1st bit) << 1 + 1st bit decoding result Here, << 1 means shifting 1 bit to the left. From the above, CtxMap1 has 48 x 2 = 96 combinations (<2 7 In other words, CtxMap1 can express all possible values in a 7-bit binary number.
[0312] CtxMap2 may be configured as shown in Fig. 22. As shown in Fig. 22, CtxMap2 has 15 bits of information. In other words, CtxMap2 has 2 15 Takes street value.
[0313] Here, the vertex positions may be decoded with the bit precision specified by the syntax (trisoup_vertex_number_bits) that specifies the precision (number of bits) of the vertex positions of the above-mentioned Trisoup.
[0314] For example, when trisoup_vertex_number_bits is 2, it may be decoded to take four values: 0, 1, 2, and 3. Furthermore, when trisoup_vertex_number_bits is decoded for each depth, it may be decoded with bit precision corresponding to the depth.
[0315] Furthermore, the bit precision specified by trisoup_vertex_number_bits may be used only at the depth (largest depth) corresponding to the smallest trisoup node size, and thereafter the bit precision may be increased by 1 as the node size increases by 1 (as the depth decreases by 1).
[0316] For example, if there are two types of node sizes (two levels: minimum and maximum), the vertex position may be decoded using the value of trisoup_vertex_number_bits as the bit precision of the Depth for the minimum Trisoup node size, and the value of trisoup_vertex_number_bits plus 1 as the bit precision of the Depth for the maximum Trisoup node size.
[0317] As described above, the approximate surface synthesis unit 2030 decodes the presence or absence of vertices and the positions of the vertices using multiple contexts, and the contexts are configured to be prepared and initialized in the minimum number necessary based on the values that the contexts can take prior to the decoding process.
[0318] After decoding the vertex positions, the approximate surface synthesis unit 2030 proceeds to step S1202 to process the next unique segment.
[0319] The above describes an example in which the approximate surface synthesis unit 2030 uses the "interpolated vertex" as the vertex position in step S1204 as is, but the approximate surface synthesis unit 2030 may also decode the presence or absence of a vertex and the vertex position based on the information on the "interpolated vertex."
[0320] For example, as shown in Figure 23, in a unique segment where an "interpolated vertex" exists, the approximate surface synthesis unit 2030 may decode the difference value with respect to the position of the "interpolated vertex" in step S2201, and add the decoded difference value to the position of the "interpolated vertex" to obtain the decoded value of the vertex position in the unique segment.
[0321] In this case, the approximate surface synthesis unit 2030 may limit the difference value to a range of −d to +d. For example, the approximate surface synthesis unit 2030 may set d to 1. In this case, the difference value is limited to three values: −1, 0, and +1.
[0322] At this time, the approximate surface synthesis unit 2030 may binarize the data so that the first bit indicates whether the absolute value is zero or not, and the second bit indicates the code when the absolute value is 1, such as 0⇒0, +1⇒10, and -1⇒11, and then perform entropy decoding on the assumption that each bit has been entropy coded.
[0323] In such a case, the approximate surface synthesis unit 2030 may prepare different contexts for the first bit and the second bit, and update the probability distribution used for entropy decoding.
[0324] Furthermore, when performing such differential encoding hierarchically between multiple node sizes, the approximate surface synthesis unit 2030 may be configured to obtain the final differential value by applying an inverse transform (such as an inverse Wavelet transform) to the transform coefficients of the decoded differential value, assuming that a transform process such as a Wavelet transform has been applied to the differential value.
[0325] Also, for example, the approximate surface synthesis unit 2030 may rearrange the order of processing as shown in Figure 24 and determine whether or not an "interpolated vertex" exists for a unique segment decoded as "with vertex."
[0326] Furthermore, if an "interpolated vertex" exists for the unique segment, the approximate surface synthesis unit 2030 may decode the difference value with respect to the position of the "interpolated vertex", as in the example of Figure 24, and add the decoded difference value to the position of the "interpolated vertex", and use the result as the decoded value of the vertex position in the unique segment.
[0327] Furthermore, for example, the approximate surface synthesis unit 2030 may decode the presence or absence of a vertex and the position of the vertex using information on each of the "interpolated vertices," as shown in FIG.
[0328] A specific example of the process of steps S2401 and S2402, which are differences from FIG. 12, will be described below.
[0329] As shown in Figure 25, in step S2401, when decoding the presence or absence of vertices in the unique segment, the approximate surface synthesis unit 2030 switches the context depending on whether or not an "interpolated vertex" exists in the unique segment, and performs entropy decoding based on the context.
[0330] Here, the approximate surface synthesis unit 2030 may use the context in combination with the context described in step S1205.
[0331] After decoding the presence or absence of a vertex as described above, the operation proceeds to step S1206.
[0332] In step S2402, when decoding the vertex positions of the unique segment, the approximate surface synthesis unit 2030 determines whether or not an "interpolated vertex" exists in the unique segment, and if an "interpolated vertex" exists in the unique segment, performs entropy decoding based on the vertex position.
[0333] For example, if the approximate surface synthesis unit 2030 quantizes the position of the "interpolated vertex" in two bits (limited to four possibilities), the approximate surface synthesis unit 2030 may determine a total of five contexts: four possible positions + the case where the interpolated vertex does not exist.
[0334] The approximate surface synthesis unit 2030 may also use these contexts in combination with the context described in step S1207.
[0335] As described above, the approximate surface synthesis unit 2030 is configured to decode the vertex information of Trisoup for each node size in descending order of node size.
[0336] Here, the vertex information includes at least one of the presence or absence of a vertex for each unique segment and the vertex position for each unique segment.
[0337] Then, if there is a decoded node size larger than the node size (target node size), the approximate surface synthesis unit 2030 may be configured to generate a predicted value of the vertex information for that node size from the Trisoup vertex information for that decoded node size, and decode the vertex information for that node size using that predicted value.
[0338] Furthermore, as explained using Figures 23 and 24, if there is a decoded node size larger than the node size (target node size), the approximate surface synthesis unit 2030 may be configured to generate a predicted value from the vertex position of each unique segment in the decoded node size, and if there is a predicted value of vertex information in the unique segment (target unique segment) at the node size, decode the difference value between the above-mentioned predicted value and the vertex position of the unique segment at the node size, and add the difference value and the predicted value to decode the vertex position of the unique segment at the node size.
[0339] With this configuration, it is possible to improve the coding efficiency compared to the case where the vertex positions of Trisoup are directly decoded.
[0340] Furthermore, as explained using Figure 25, if there is a decoded node size larger than the node size (target node size), the approximate surface synthesis unit 2030 may be configured to generate a predicted value from the vertex position for each unique segment in the decoded node size, switch the context based on whether or not a predicted value of vertex information exists in the unique segment (target unique segment) in the node size, and use the context to decode the presence or absence of a vertex in the unique segment.
[0341] With this configuration, entropy decoding can be performed using different contexts (probability distributions) depending on whether or not a predicted value is present, thereby improving coding efficiency.
[0342] Furthermore, as explained using Figure 25, if there is a decoded node size larger than the node size (target node size), the approximate surface synthesis unit 2030 may be configured to generate predicted values from the vertex positions of each unique segment in the decoded node size, and if there is a predicted value of vertex information in the unique segment (target unique segment) in the node size, switch contexts based on the predicted values and use the contexts to decode the vertex positions of the unique segment.
[0343] With this configuration, entropy decoding can be performed using different contexts (probability distributions) based on the predicted values, thereby improving coding efficiency.
[0344] In addition, the approximate surface synthesis unit 2030 may limit the application of the differential encoding described in Figures 23 and 24 and the context switching using predicted values described using Figure 25 to only unique segments located on boundaries of different node sizes (CTU boundaries if node sizes are selected in CTU units).
[0345] As described above, after the approximate surface synthesis unit 2030 decodes the vertices in step S705, the process proceeds to step S706.
[0346] In step S706, the approximate surface synthesis unit 2030 generates a reconstructed point group based on the vertices decoded in step S705. Fig. 13 is a flowchart showing an example of a method for generating a reconstructed point group. An example of the processing in step S706 will be described below with reference to Fig. 13.
[0347] As shown in FIG. 13, in step S1301, the approximate surface synthesis unit 2030 determines whether or not processing has been completed for all Trisoup nodes in the trisoup_depth.
[0348] If the process has been completed for all Trisoup nodes, the operation proceeds to step S1306, where the process ends. If the process has not been completed for all Trisoup nodes, the operation proceeds to step S1302.
[0349] In step S1302, first, the approximate surface synthesis unit 2030 identifies unique segments corresponding to each edge (segment) of the Trisoup node. For example, the approximate surface synthesis unit 2030 can identify unique segments by searching, from among the unique segments processed in step S705, for unique segments whose start point coordinates and end point coordinates are the same as those of each edge (segment) of the Trisoup node.
[0350] Second, if a vertex exists in the identified unique segment, the approximate surface synthesis unit 2030 adds the vertex to the reconstructed point cloud in the following procedure: (1) The approximate surface synthesis unit 2030 shifts the position of the segment by -0.5. Specifically, the approximate surface synthesis unit 2030 subtracts 0.5 from the coordinate values of the start point coordinate and the end point coordinate of the segment, excluding the axis along the direction of the segment.
[0351] For example, if the start coordinates of a segment are (x, y, z) = (12, 100, 32), the node size is 4, and the direction of the segment is the x-axis, the end coordinates will be (16, 100, 32), which is the x-coordinate of the start point plus the node size.
[0352] On the other hand, the coordinates other than the x-axis, that is, the y-coordinate and z-coordinate in this example, are each reduced by 0.5, so that the start point coordinates and end point coordinates become (12, 99.5, 31.5) and (16, 99.5, 31.5), respectively.
[0353] (2) The approximate surface synthesis unit 2030 adds the "vertex position on the segment" of the segment to the above-mentioned starting point coordinates. For example, in the above example, if the "vertex position on the segment" is 2, the result is (14, 99.5, 31.5).
[0354] (3) The approximate surface synthesis unit 2030 adds 0.5 to the coordinate values calculated in (2) above, except for the coordinate values of the axes along the segment direction. For example, in the above example, the result is (14, 100, 32). The same result can be obtained by adding 2, the vertex position on the unique segment, to the starting coordinates (12, 100, 32) of the unique segment before executing the procedure in (1) above, so the approximate surface synthesis unit 2030 may perform the calculation in this manner.
[0355] (4) If the coordinates calculated in (3) above exist inside the Trisoup node, the approximate surface synthesis unit 2030 generates a point at the coordinates calculated in (3) above and adds it to the reconstructed point group.
[0356] Here, inside the Trisoup node is a point whose x, y, and z coordinate values are in the range of the start point of the Trisoup node (the point with the smallest x, y, and z coordinates) + Trisoup node size - 1.
[0357] For example, if the starting coordinates of the Trisoup node are (x, y, z) = (12, 100, 32) and the Trisoup node size is 4, points in the ranges (12 to 15, 100 to 103, 32 to 35) are considered to be inside the Trisoup node.
[0358] In this case, if the coordinates calculated in (3) above are (14, 100, 32), these coordinates are determined to be inside the Trisoup node, and the approximate surface synthesis unit 2030 adds the point at these coordinates to the reconstructed point cloud. Figure 15A shows such results when projected onto the x-y plane.
[0359] On the other hand, for example, if the starting coordinates of the Trisoup node are (x, y, z) = (12, 96, 32), points in the ranges (12 to 15, 96 to 99, 32 to 35) are inside the Trisoup node, so in this case, it is determined that (14, 100, 32) does not exist inside the Trisoup node, and the coordinates calculated in (3) above are not added to the reconstructed point cloud, and this operation ends the processing. Figure 15B shows an example of such a case.
[0360] After the above processing is completed, the operation proceeds to step S1303.
[0361] In step S1303, the approximate surface synthesis unit 2030 calculates the initial coordinates of the centroid from the vertices corresponding to the Trisoup node.
[0362] For example, the initial coordinates of the centroid can be calculated by averaging the x, y, and z components of all vertex positions of the Trisoup node. Note that if the Trisoup node has three or fewer vertices, the centroid calculation may be omitted.
[0363] After this process is completed, the operation proceeds to step S1304.
[0364] In step S1304, the approximate surface synthesis unit 2030 sorts the vertices and determines the projection surface. Specifically, for example, the approximate surface synthesis unit 2030 can sort the vertices and determine the projection surface in the following procedure.
[0365] (1) The approximate surface synthesis unit 2030 projects the vertices onto the xy plane. This process is equivalent to extracting the x and y coordinate values from the coordinates of each vertex.
[0366] Since the vertices are originally on the sides of the nodes, in the projected plane, each vertex will be on the side of a square or rectangle that the nodes are projected onto. Since a square is also a type of rectangle, the following explanation will be given assuming that the shape of the node after projection is a rectangle.
[0367] (2) The approximate surface synthesis unit 2030 sorts the points on the sides of the rectangle onto which the nodes are projected in clockwise or counterclockwise order.
[0368] Furthermore, the approximate surface synthesis unit 2030 assigns a temporary index value (0, 1, 2, . . . ) to each vertex in the sorted order.
[0369] (3) The approximate surface synthesis unit 2030 defines a triangle defined by three points: two adjacent vertices in sorted order and the centroid, and calculates the area of this triangle. The area of the triangle can be calculated, for example, by generating vectors starting from the centroid and pointing to the coordinates of the two vertices, and then using the cross product of these vectors.
[0370] In this way, the approximate surface synthesis unit 2030 calculates and sums the areas of triangles for all combinations of two adjacent vertices in sorted order: (0, 1), (1, 2), . . . (N, 0).
[0371] When there are only three vertices, the approximate surface synthesis unit 2030 calculates the area of the triangle formed by the three vertices without using a centroid. This area is the area on the projected plane.
[0372] (4) The approximate surface synthesis unit 2030 performs the above steps (1) to (3) on the x-z plane and the y-z plane in the same manner, and selects the plane with the largest area calculated in the above step (3) as the projection plane. At this time, the sorting order and the provisional index assigned in the above step (2) are adopted as the final sorting order and index.
[0373] As described above, after sorting the vertices and determining the projection surface, the approximate surface synthesis unit 2030 proceeds to step S1305.
[0374] In step S1305, the approximate surface synthesis unit 2030 generates a reconstructed point group using the triangles generated in step S1304 and ray tracing.
[0375] Specifically, the approximate surface synthesis unit 2030 generates a reconstructed point cloud in the following procedure: (1) First, the approximate surface synthesis unit 2030 generates a triangle based on the index and centroid determined in step S1304, similar to step S1304. However, while the approximate surface synthesis unit 2030 generated a triangle on a two-dimensional plane in step S1304, in step S1305 the approximate surface synthesis unit 2030 generates a triangle in three-dimensional space using all of the x, y, and z coordinates of each vertex.
[0376] (2) Second, the approximate surface synthesis unit 2030 defines the normal vector of the projection surface (if the projection surface is an xy plane, a vector in the z direction) and places it on the projection surface.
[0377] For example, the approximate surface synthesis unit 2030 sets the initial position to the point on the projection surface that is closest to the origin of the node shape (i.e., rectangle).
[0378] (3) Third, the approximate surface synthesis unit 2030 determines whether or not the normal vector intersects with the triangle generated in (1) above as the norm of the normal vector is increased, and if so, calculates the coordinates of the intersection.
[0379] For example, the approximate surface synthesis unit 2030 can realize such processing by using a general ray tracing method, etc. Fig. 16A shows an example of a triangle configuration.
[0380] (4) Fourth, if the coordinates where the normal vector calculated in (3) above intersects with the triangle exist within the Trisoup node, the approximate surface synthesis unit 2030 generates a point at such coordinate position and adds it to the reconstructed point group.
[0381] (5) Fifth, the approximate surface synthesis unit 2030 repeats the above steps (3) and (4) for each of the integer coordinate positions within the node (rectangle) on the projection surface.
[0382] In this case, the interval at which the normal vectors are arranged may be 1 (i.e., all integer coordinate positions). Here, the interval 1 is the smallest possible interval. An example of a reconstructed point cloud generated from the triangle in FIG. 16A is shown in FIG. 16B.
[0383] After generating the reconstruction points for the Trisoup node in this manner, the approximate surface synthesis unit 2030 proceeds to step S1301 to process the next Trisoup node.
[0384] As described above, in step S706, the approximate surface synthesis unit 2030 generates the reconstructed point group, and then the process proceeds to step S707.
[0385] In step S707, the approximate surface synthesis unit 2030 determines whether the Trisoup node size at the trisoup_depth is the minimum Trisoup node size.
[0386] If it is the minimum Trisoup node size, the operation proceeds to step S701. Otherwise, that is, if the Trisoup node size at the trisoup_depth is greater than the minimum Trisoup node size, the operation proceeds to step S708.
[0387] In step S708, the approximate surface synthesis unit 2030 interpolates vertices onto the segments of the nodes at the minimum Trisoup node size based on the vertices corresponding to the Trisoup node size in trisoup_depth decoded in step S705.
[0388] Fig. 14 is a flowchart showing an example of the processing of step S708. An example of the processing of step S708 will be described below with reference to Fig. 14. Note that the processing of Fig. 14 is almost the same as the processing of Fig. 13, and the same processing is denoted by the same reference numerals. Only the differences from Fig. 13 will be described below.
[0389] As shown in FIG. 14, in step S1402, the approximate surface synthesis unit 2030 saves the vertices of the Trisoup node as "interpolated vertices."
[0390] Specifically, the approximate surface synthesis unit 2030 stores the coordinate values obtained after steps (1) and (2) described in step S1302 have been performed as "interpolated vertices."
[0391] For example, in step S1302, the approximate surface synthesis unit 2030 saves the coordinate values (14, 99.5, 31.5) as the "interpolated vertex." This is because the position of the segment is defined to be shifted by 0.5 from the integer coordinate position.
[0392] To store this value as an integer, the approximate surface synthesis unit 2030 may store the value as double the true coordinate value. In the above example, the approximate surface synthesis unit 2030 may save the value (28, 199, 63) as the "interpolated vertex."
[0393] In step S1405, the approximate surface synthesis unit 2030 changes the position at which the normal vector is placed in procedure (2) of step S1305 so that it is placed at the position where a segment exists when the Trisoup node is divided by the minimum Trisoup node size.
[0394] If the intersecting coordinates calculated in the same manner as in step (3) of step S1305 are on a segment obtained by dividing the Trisoup node by the minimum Trisoup node size, the approximate surface synthesis unit 2030 stores such coordinate values as "interpolated vertices."
[0395] If the coordinate values are doubled and converted into integers and stored in step S1402, the approximate surface synthesis unit 2030 also stores the doubled coordinate values in step S1405.
[0396] The approximate surface synthesis unit 2030 saves the "interpolated vertices" generated by the above process and uses them in step S703 in the next trisoup_depth.
[0397] Furthermore, if the trisoup_depth is greater than 0, i.e., if the trisoup node size at the trisoup_depth is not the maximum trisoup node size, there will be "interpolated vertices" generated at a larger node size, but the approximate surface synthesis unit 2030 does not delete the set of these "interpolated vertices," but saves the "interpolated vertices" newly generated in step S1402 by adding them to the above set.
[0398] In addition, when the interpolated vertices are used only between nodes or CTU nodes (when the differential encoding described in Figures 23 and 24 or the context construction described in Figure 25 is performed only between nodes or CTU nodes), the approximate surface synthesis unit 2030 may be configured to store only those of the ``interpolated vertices'' that exist on the surface of the Trisoup node, as shown in Figure 16C.
[0399] Alternatively, the approximate surface synthesis unit 2030 may store only the "interpolated vertices" that exist on the surface of the CTU node (node that decodes the Trisoup node size).
[0400] That is, the approximate surface synthesis unit 2030 may be configured to generate predicted values of vertex method information of a small node size from vertex information of a large node size in a unique segment located on the boundary between different node sizes.
[0401] As described above, the amount of memory required can be reduced by storing only the vertices required for processing.
[0402] Furthermore, if the interpolated vertices are used in all unique segments, i.e., if the vertex information of all nodes is hierarchically encoded in descending order of node size, the approximate surface synthesis unit 2030 may store all the "interpolated vertices," as shown in FIG. 17.
[0403] For convenience, steps S706 and S708 have been described as separate processes, but since they have much in common, they may be performed simultaneously.
[0404] For example, if the conditions of step S707 are satisfied in step S1302, the approximate surface synthesis unit 2030 may also perform step S1402, and similarly, if the conditions of step S707 are satisfied in step S1305, the approximate surface synthesis unit 2030 may also perform step S1405.
[0405] As described above, the approximate surface synthesis unit 2030 in this embodiment may be configured to decode, for each node of a predetermined size, the node size for applying Trisoup to the descendant nodes obtained by recursively dividing the node using Octree.
[0406] Furthermore, as described above, the approximate surface synthesis unit 2030 in this embodiment may be configured to perform context-adaptive decoding using information on the presence or absence of vertices and vertex positions of spatially adjacent decoded segments when decoding the presence or absence of vertices and vertex positions of each segment that constitutes a Trisoup node.
[0407] Furthermore, as described above, the approximate surface synthesis unit 2030 in this embodiment may be configured to perform context-adaptive decoding using information on the presence or absence of vertices and vertex positions of segments that constitute a node of the same size as the Trisoup node, among spatially adjacent decoded segments, when decoding the presence or absence of vertices and vertex positions of each segment that constitutes a Trisoup node.
[0408] With this configuration, an appropriate Trisoup node size is selected for each local region according to the characteristics of the point cloud, and Trisoup nodes of the same size are adjacent within the local region, thereby improving coding efficiency by utilizing spatial correlation.
[0409] (Point Cloud Encoding Device 100) Hereinafter, the point cloud encoding device 100 according to this embodiment will be described with reference to Fig. 26. Fig. 26 is a diagram showing an example of functional blocks of the point cloud encoding device 100 according to this embodiment.
[0410] As shown in FIG. 26 , the point cloud encoding device 100 includes a coordinate transformation unit 1010, a geometric information quantization unit 1020, a tree analysis unit 1030, an approximate surface analysis unit 1040, a geometric information encoding unit 1050, a geometric information reconstruction unit 1060, a color conversion unit 1070, an attribute transfer unit 1080, an RAHT unit 1090, an LoD calculation unit 1100, a lifting unit 1110, an attribute information quantization unit 1120, and an attribute information encoding unit 1130.
[0411] The coordinate transformation unit 1010 is configured to perform transformation processing from the three-dimensional coordinate system of the input point cloud to any different coordinate system. For example, the coordinate transformation may involve rotating the input point cloud to transform the x, y, and z coordinates of the input point cloud into any s, t, and u coordinates. Alternatively, as a variation of the transformation, the coordinate system of the input point cloud may be used as is.
[0412] The geometric information quantization unit 1020 is configured to quantize the position information of the input point group after coordinate transformation and remove points with overlapping coordinates. Note that when the quantization step size is 1, the position information of the input point group and the position information after quantization match. In other words, when the quantization step size is 1, it is equivalent to not performing quantization.
[0413] The tree analysis unit 1030 is configured to receive position information of the quantized point group as input, and to generate an occupancy code indicating at which node in the encoding target space a point exists, based on a tree structure described below.
[0414] In this process, the tree analysis unit 1030 is configured to recursively divide the encoding target space into rectangular parallelepipeds to generate a tree structure.
[0415] If a point exists within a rectangular parallelepiped, a tree structure can be generated by recursively dividing the rectangular parallelepiped into multiple rectangular parallelepipeds until the rectangular parallelepiped reaches a predetermined size. Each such rectangular parallelepiped is called a node. Each rectangular parallelepiped generated by dividing a node is called a child node, and the occupancy code is a value of 0 or 1 indicating whether or not the point is contained within the child node.
[0416] As described above, the tree analysis unit 1030 is configured to generate an occupancy code while recursively dividing a node until it reaches a predetermined size.
[0417] In this embodiment, a method called "Octree" can be used, which recursively performs octree division on the above-mentioned rectangular parallelepiped, always treating it as a cube, and a method called "QtBt" can be used, which performs quadtree division and binary tree division in addition to octree division.
[0418] Here, whether or not to use “QtBt” is transmitted to the point cloud decoding device 200 as control data.
[0419] Alternatively, it may be specified to use predictive coding using an arbitrary tree structure. In such a case, the tree analysis unit 1030 determines the tree structure, and the determined tree structure is transmitted to the point cloud decoding device 200 as control data.
[0420] For example, the tree-structured control data may be configured so that it can be decoded according to the procedure described with reference to FIG.
[0421] The approximate surface analysis unit 1040 is configured to generate approximate surface information using the tree information generated by the tree analysis unit 1030 .
[0422] For example, when decoding three-dimensional point cloud data of an object, if the point cloud is densely distributed on the surface of the object, approximate surface information is used to represent the area where the point cloud exists by approximating it with a small plane, rather than decoding each individual point cloud.
[0423] Specifically, the approximate surface analysis unit 1040 may be configured to generate approximate surface information using, for example, a method called "Trisoup." Furthermore, when decoding a sparse point cloud acquired by Lidar or the like, this process can be omitted.
[0424] The geometric information encoding unit 1050 is configured to generate a bitstream (geometric information bitstream) by encoding syntax such as the occupancy code generated by the tree analysis unit 1030 and the approximate surface information generated by the approximate surface analysis unit 1040. Here, the bitstream may include, for example, the syntax described in FIGS. 4 and 5.
[0425] The encoding process is, for example, a context-adaptive binary arithmetic coding process. Here, for example, the syntax includes control data (flags and parameters) for controlling the decoding process of the position information.
[0426] The geometric information reconstruction unit 1060 is configured to reconstruct the geometric information of each point of the point cloud data to be encoded (the coordinate system assumed by the encoding process, i.e., the position information after coordinate transformation in the coordinate transformation unit 1010) based on the tree information generated by the tree analysis unit 1030 and the approximate surface information generated by the approximate surface analysis unit 1040.
[0427] The color conversion unit 1070 is configured to perform color conversion when the input attribute information is color information. The color conversion does not necessarily have to be performed, and whether or not the color conversion process is to be performed is coded as part of the control data and transmitted to the point cloud decoding device 200.
[0428] The attribute transfer unit 1080 is configured to correct the attribute values based on the position information of the input point cloud, the position information of the point cloud after reconstruction in the geometric information reconstruction unit 1060, and the attribute information after color change in the color conversion unit 1070, so as to minimize distortion of the attribute information.
[0429] The RAHT unit 1090 is configured to receive as input the attribute information transferred by the attribute transfer unit 1080 and the geometric information generated by the geometric information reconstruction unit 1060, and to generate residual information for each point using a type of Haar transform called RAHT (Region Adaptive Hierarchical Transform). As a specific example of the RAHT process, the method described in the above-mentioned literature 2 can be used.
[0430] The LoD calculation unit 1100 is configured to receive the geometric information generated by the geometric information reconstruction unit 1060 as an input and generate an LoD (Level of Detail).
[0431] LoD is information for defining a reference relationship (a point to be referenced and a point to be referenced) to realize predictive coding, such as predicting attribute information of another point from attribute information of another point and encoding or decoding the prediction residual.
[0432] In other words, LoD is information that defines a hierarchical structure in which each point contained in geometric information is classified into multiple levels, and the attributes of points belonging to lower levels are encoded or decoded using the attribute information of points belonging to higher levels.
[0433] As a specific method for determining the LoD, for example, the method described in the above-mentioned document 2 may be used.
[0434] The lifting unit 1110 is configured to generate residual information by a lifting process using the LoD generated by the LoD calculation unit 1100 and the attribute information after attribute transfer by the attribute transfer unit 1080 .
[0435] As a specific lifting process, for example, a method described in the literature (Text of ISO / IEC 23090-9 DIS Geometry-based PCC, ISO / IEC JTC1 / SC29 / WG11 N19088) may be used.
[0436] The attribute information quantization unit 1120 is configured to quantize the residual information output from the RAHT unit 1090 or the lifting unit 1110. Here, a quantization step size of 1 is equivalent to no quantization being performed.
[0437] The attribute information encoding unit 1130 is configured to perform encoding processing using the quantized residual information, etc. output from the attribute information quantization unit 1120 as syntax, and to generate a bit stream related to the attribute information (attribute information bit stream).
[0438] The encoding process is, for example, a context-adaptive binary arithmetic coding process, where the syntax includes, for example, control data (flags and parameters) for controlling the decoding process of the attribute information.
[0439] Through the above processing, the point cloud encoding device 100 is configured to perform encoding processing using the position information and attribute information of each point in a point cloud as input, and to output a geometry information bit stream and an attribute information bit stream.
[0440] Furthermore, the above-described point group encoding device 100 and point group decoding device 200 may be realized as a program that causes a computer to execute each function (each process).
[0441] In each of the above embodiments, the present invention has been described using the example of applying it to the point cloud encoding device 100 and the point cloud decoding device 200, but the present invention is not limited to such an example and can be similarly applied to a point cloud encoding / decoding system having the functions of the point cloud encoding device 100 and the point cloud decoding device 200.
[0442] According to this embodiment, for example, it is possible to improve the overall service quality in video communication, which makes it possible to contribute to Goal 9 of the Sustainable Development Goals (SDGs) led by the United Nations, which is to "Develop resilient infrastructure, promote sustainable industrialization and foster innovation."
[0443] 10... Point cloud processing system 100... Point cloud encoding device 1010... Coordinate transformation unit 1020... Geometric information quantization unit 1030... Tree analysis unit 1040... Approximate surface analysis unit 1050... Geometric information encoding unit 1060... Geometric information reconstruction unit 1070... Color conversion unit 1080... Attribute transfer unit 1090... RAHT unit 1100... LoD calculation unit 1110... Lifting unit 1120... Attribute information quantization unit 1130... Attribute information encoding unit 200... Point cloud decoding device 2010... Geometric information decoding unit 2020... Tree synthesis unit 2030... Approximate surface synthesis unit 2040... Geometric information reconstruction unit 2050... Inverse coordinate transformation unit 2060... Attribute information decoding unit 2070... Inverse quantization unit 2080... RAHT unit 2090...LoD calculation unit 2100...inverse lifting unit 2110...inverse color conversion unit
Claims
1. A point cloud decoding device comprising an approximate surface synthesis unit that decodes vertex information of a Trisoup, the vertex information including at least one of the presence or absence of a vertex for each unique segment, or the vertex position for each unique segment, the presence or absence of a vertex and the position of the vertex are each decoded using a plurality of contexts, and the contexts are configured to be prepared and initialized in the minimum number necessary based on the values that the contexts can take prior to the decoding process.
2. A point cloud decoding method comprising a step of decoding vertex information of a Trisoup, the vertex information including at least one of the presence or absence of a vertex for each unique segment, or the vertex position for each unique segment, the presence or absence of a vertex and the position of the vertex are each decoded using a plurality of contexts, and the contexts are prepared and initialized in the minimum number necessary based on the values that the contexts can take prior to the decoding process.
3. A program that causes a computer to function as a point cloud decoding device, the point cloud decoding device comprising an approximate surface synthesis unit that decodes vertex information of a Trisoup, the vertex information including at least one of the presence or absence of a vertex for each unique segment, or the vertex position for each unique segment, the presence or absence of a vertex and the position of the vertex are each decoded using a plurality of contexts, and the contexts are configured to be prepared and initialized in the minimum number necessary based on the values that the contexts can take prior to the decoding process.
Citation Information
Patent Citations
Method and device for binary entropy coding of point clouds
JP2021521679A
Trisoup syntax signaling for geometry-based point cloud compression
US20210319595A1
