Point group decoding apparatus, point group decoding method, and program
The point cloud decoding device enhances Trisoup encoding efficiency by predicting and decoding vertex information at smaller node sizes based on larger sizes, addressing the fixed node size limitation of Trisoup.
Patent Information
- Application Number
- JP2023066594
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-10-25
AI Technical Summary
The existing Trisoup method is limited to a fixed node size for each slice, which restricts its encoding efficiency.
A point cloud decoding device that decodes Trisoup vertex information for each node size, generating a predicted value based on larger node sizes and using it to decode vertex information at smaller sizes, with context-based decoding of vertex presence and position.
Improves encoding efficiency by effectively encoding and decoding vertex position differences across varying node sizes.
Smart Images

Figure 2024152411000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a point group decoding device, a point group decoding method, and a program. [Background technology]
[0002] Non-Patent Document 1 discloses a geometry information encoding technique called Trisoup. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] G-PCC Future Enhancement, ISO / IEC JTC1 / SC29 / WG11 N19328 [Non-Patent Document 2] [GPCC][13.50] Report on enhanced edge neighborhood for vertex prediction in TriSoup, ISO / IEC JTC1 / SC29 / WG7 m61565 Summary of the Invention [Problem to be solved by the invention]
[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 encoding efficiency in Trisoup with multiple node sizes by generating predicted values of vertex positions at smaller node sizes based on vertex positions decoded at larger node sizes, and encoding / decoding the difference with the vertex positions at the smaller node sizes. [Means for solving the problem]
[0006] A first feature of the present invention is a point cloud decoding device comprising an approximate surface synthesis unit that decodes Trisoup vertex information for each node size in ascending order of 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 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 of the target node size using the predicted value.
[0007] A second feature of the present invention is a point cloud decoding device including an approximate surface synthesis unit that decodes Trisoup vertex information, 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.
[0008] A third feature of the present invention is a point cloud decoding method comprising the steps of: decoding Trisoup vertex information for each node size in ascending order of node size; 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 if a decoded node size larger than a target node size exists in the step, 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 for causing a computer to function as a point cloud decoding device, the point cloud decoding device comprising an approximate surface synthesis unit that decodes Trisoup vertex information 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 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. Effect of the Invention
[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 encoding efficiency by generating predicted values of vertex positions at smaller node sizes based on vertex positions decoded at larger node sizes, and encoding / decoding the difference with the vertex positions at smaller node sizes. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of a point cloud processing system 10 according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of functional blocks of a point group decoding device 200 according to an embodiment. [Diagram 3] FIG. 3 is a diagram showing an example of the configuration of encoded data (bit stream) received by the geometric information decoding unit 2010 of the point cloud decoding device 200 according to an embodiment. [Figure 4] FIG. 4 is a diagram showing an example of the syntax configuration of GPS2011. [Diagram 5] FIG. 5 is a diagram showing an example of the syntax configuration of GSH2012. [Figure 6]FIG. 7 is a flowchart illustrating an example of a process in the tree synthesis unit 2020 of the point group decoding device 200 according to an embodiment. [Figure 7] FIG. 7 is a flowchart showing an example of processing by the approximate surface synthesis unit 2030 of the point cloud decoding device 200 according to an embodiment. [Figure 8] FIG. 8 is a flowchart showing an example of the process of step S703 shown in FIG. [Figure 9] FIG. 9 is a flowchart showing an example of the process of step S704 shown in FIG. [Figure 10] FIG. 10 is a flowchart showing a specific example of a method for generating mask information. [Figure 11] FIG. 11 is a diagram showing an example of generation of segments and mask values. [Figure 12] FIG. 12 is a flowchart showing an example of the process of step S705 shown in FIG. [Figure 13] FIG. 13 is a flowchart showing an example of the process in step S706 shown in FIG. [Figure 14] FIG. 14 is a flowchart showing an example of the process of step S708 shown in FIG. [Figure 15A] FIG. 15A is a diagram for explaining an example of the process in step S1302 in FIG. [Figure 15B] FIG. 15B is a diagram for explaining an example of the process in step S1302 in FIG. [Figure 16A] FIG. 16A is a diagram for explaining an example of the process in step S705 in FIG. [Figure 16B] FIG. 16B is a diagram for explaining an example of the process in step S706 in FIG. [Figure 16C] FIG. 16C is a diagram for explaining an example of the process in step S708 in FIG. [Figure 17] FIG. 17 is a diagram for explaining an example of the process of the approximate surface synthesis unit 2030 of the point cloud decoding device 200 according to an embodiment. [Figure 18A]FIG. 18A is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 18B] FIG. 18B is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 19A] FIG. 19A is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 19B] FIG. 19B is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 19C] FIG. 19C is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 20] FIG. 20 is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 21] FIG. 21 is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 22] FIG. 22 is a diagram for explaining an example of a context setting method in the point group decoding device 200 according to an embodiment. [Figure 23] FIG. 23 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 a vertex and the vertex position based on the information of the "interpolated vertex". [Figure 24] FIG. 24 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 a vertex and the vertex position based on the information of the "interpolated vertex". [Diagram 25] 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 a vertex and the vertex position based on the information of the "interpolated vertex". [Figure 26]FIG. 26 is a diagram showing an example of functional blocks of the point group encoding device 100 according to this embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the 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, 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) A point cloud processing system 10 according to a first embodiment of the present invention will be described below with reference to Fig. 1 to Fig. 26. Fig. 1 is a diagram showing a point cloud processing system 10 according to the embodiment.
[0014] As shown in FIG. 1, a 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 (bit stream) by encoding an input point cloud signal. The point cloud decoding device 200 is configured to generate an output point cloud signal by decoding the bit stream.
[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, such a bit stream may be transmitted from the point group encoding device 100 to the point group decoding device 200 via a transmission path. Also, 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 Cloud Decoding Device 200) Hereinafter, the point group decoding device 200 according to this embodiment will be described 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 FIG. 2, the point cloud decoding device 200 includes 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, a 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) out of 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 which node in the tree described below the point group exists in, and generate tree information indicating in which area in the space to be decoded the point exists.
[0023] The tree synthesis unit 2020 may be configured to perform the decoding process of the occupancy code within itself.
[0024] This process divides the space to be decoded into rectangles, determines whether a point exists in each rectangle by referring to the occupancy code, divides the rectangle in which the point exists into multiple rectangles, and then generates tree information by recursively repeating the process of referring to the occupancy code.
[0025] Here, inter prediction may be used when decoding the occupancy code.
[0026] In this embodiment, a method called "Octree" can be used, which always treats the above-mentioned rectangular parallelepiped as a cube and performs octree division recursively, 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 by "Octree" until it has a size of 1x1x1 is specifically referred to as "Octree only."
[0028] In addition, even if "Octree" is used in combination with "QtBt", the method of decoding geometric information by dividing the above-mentioned rectangular prism into 1x1x1 size using only "Octree" and "QtBt" may also be called "Octree only".
[0029] Alternatively, when the control data specifies that predictive geometry coding is to be used, the tree synthesis unit 2020 is configured to decode the coordinates of each point based on an arbitrary tree structure determined in 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] Approximate surface information is used when, for example, decoding three-dimensional point cloud data of an object, in cases where the point cloud is densely distributed on the object surface, to approximate the area in which the point cloud exists using 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 method called "Trisoup", for example. A specific processing example of "Trisoup" will be described later. In addition, when decoding a sparse point cloud acquired by Lidar or the like, this processing can be omitted.
[0033] The geometric information reconstruction unit 2040 is configured to reconstruct 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 the information 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) out of 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. Here, for example, the syntax includes 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 a 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 according to the features of the point group to be decoded. Control data decoded by the attribute information decoding unit 2060 specifies which unit the dequantized residual information is output to.
[0040] The RAHT unit 2080 is configured to receive the inverse quantized residual information generated by the inverse quantization unit 2070 and the geometric information generated by the geometric information reconstruction unit 2040 as input, 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 a Level of Detail (LoD).
[0042] LoD is information for defining a reference relationship (a referencing point and a referenced point) to realize predictive coding, such as predicting attribute information of a certain 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 attributes of points belonging to lower levels are encoded or decoded using 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 group decoding device 200 is configured to decode and output the attribute information of each point in the point group through the above processing.
[0048] (Geometric Information Decoding Part 2010) The control data decoded by the geometric information decoding unit 2010 will be described below with reference to FIGS.
[0049] FIG. 3 shows an example of the structure of the coded data (bit stream) received by the geometric information decoding unit 2010. In FIG.
[0050] First, the bit stream 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 there are multiple GPS 2011s.
[0051] Secondly, the bit stream may include GSH2012A / 2012B. GSH2012A / 2012B is also called a geometry slice header or geometry data unit header, and is a set of control data corresponding to a slice described later. In the following description, the term "slice" is used, but slice can also be read as data unit. A specific example will be described later. GSH2012A / 2012B includes at least GPS id information for specifying GPS2011 corresponding to each GSH2012A / 2012B.
[0052] Thirdly, the bit stream may include slice data 2013A / 2013B following the GSH 2012A / 2012B. The slice data 2013A / 2013B includes data that encodes geometric information. 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 each slice data 2013A / 2013B corresponds to one GSH 2012A / 2012B and one GPS 2011.
[0054] As described above, since the GPS ID information is used to specify which GPS 2011 to refer to in the GSH 2012A / 2012B, a common GPS 2011 can be used for a plurality of 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 the slice data 2013B.
[0056] 3 is merely an example. As long as the slice data 2013A / 2013B corresponds to the GSH 2012A / 2012B and the GPS 2011, 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 is an example of the syntax configuration of GPS2011.
[0059] Note that the syntax names described below are merely examples. If the syntax functions described 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] The Descriptor column in Fig. 4 indicates how each syntax 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 Trisoup is used in the approximate surface synthesis unit 2030 .
[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] GPS2011 may include a flag (trisoup_multilevel_enabled_flag, first flag) that controls whether or not Trisoup is permitted on multiple levels.
[0067] For example, when the value of trisoup_multilevel_enabled_flag is "0", multi-level trisoup is not allowed, i.e., a single-level trisoup is performed, and when the value of trisoup_multilevel_enabled_flag is "1", multi-level trisoup is allowed.
[0068] If the syntax is not included in GPS2011, the value of the syntax may be regarded as 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] Figure 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 trisoups, it may include syntax (log2_trisoup_max_node_size_minus2) to specify 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 the base 2. Furthermore, the syntax may be expressed as a value obtained by subtracting 2 from the logarithm with the maximum value of the actual Trisoup node size.
[0074] GSH2012 may include syntax (log2_trisoup_min_node_size_minus2) to specify a minimum Trisoup node size when allowing multi-level Trisoups.
[0075] The syntax may be expressed as a logarithm of the base 2 for the actual minimum Trisoup node size. Furthermore, the syntax may be expressed as a logarithm of the base 2 for the actual minimum Trisoup node size. 2 ), converted to a logarithm with base 2, and then expressed as the value after subtracting 2.
[0076] In addition, 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] Also, instead of directly decoding the minimum Trisoup node size and the maximum Trisoup node size, a Depth value corresponding to the maximum Trisoup node size and the minimum Trisoup node size in Octree processing 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 ), and the maximum Trisoup node size is 16 (=2 4 ), then 8 may be decoded as the Depth value corresponding to the minimum Trisoup node size, and 6 may be decoded as the Depth value corresponding to the maximum Trisoup node size.
[0080] When GSH2012 allows multi-level trisoups, it may include a 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 conversion of the value.
[0082] Furthermore, this syntax limits the actual Trisoup node size to a minimum of 4 (=2 2 ), converted to a logarithm with base 2, and then expressed as the value after subtracting 2.
[0083] Furthermore, the value of such syntax may be restricted to always be equal to or greater than the maximum Trisoup node size.
[0084] The value of this syntax may also be expressed as the value obtained by converting the CTU size to its logarithm in base 2 minus the value obtained by converting the maximum Trisoup node size to its logarithm in 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 a maximum Trisoup node size, which is the maximum value of the node size to which the above-mentioned Trisoup is applied, and a minimum Trisoup node size, which is the minimum value of the node size to which the 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 above-mentioned maximum Trisoup node size to a predetermined size value.
[0090] With this configuration, it is possible to omit decoding of the CTU size, and therefore it is possible to reduce 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 Trisoup is used.
[0092] Such syntax may be expressed as the base 2 logarithm of the actual Trisoup node size.
[0093] Furthermore, such syntax may be expressed as the actual Trisoup node size after converting it to a base 2 logarithm and then subtracting 2 from it.
[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 position of Trisoup, which will be 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 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 to be decoded may be changed according to 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 the 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] GSH2012 may include a flag (trisoup_centroid_vertex_residual_flag) indicating whether or not to decode the residual of the centroid of the Trisoup vertices described later. For example, the flag may be defined so that a value of 1 indicates that the centroid residual is decoded, and a value of 0 indicates that the centroid residual is not 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 bits 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 hierarchy i (i=0,...,trisoup_depth-1) indicating whether unique segments exist in the target hierarchy.
[0103] For example, if the value of unique_segments_exist_flag[i] is "1", it means that at least one unique segment exists in hierarchical layer i. If the value of unique_segments_exist_flag[i] is "0", it means that no unique segments exist in hierarchical layer i.
[0104] If a unique segment exists in the target hierarchical layer for each hierarchical layer i (i=0,...,trisoup_depth-1), i.e., if the value of unique_segments_exist_flag[i] is "1", GSH2012 may additionally include syntax (num_unique_segments_bits_minus1[i]) indicating the number of bits of the syntax indicating the number of unique segments in the target hierarchical layer and syntax (num_unique_segments_minus1[i]) indicating the number of unique segments in the target hierarchical 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 Synthesis Department 2020) The processing of the tree composing unit 2020 will be described below with reference to Fig. 6. Fig. 6 is a flowchart showing an example of the processing in the tree composing unit 2020. Note that, below, an example of the case where trees are composed using "Octree" will be described.
[0107] In step S601, the tree synthesis unit 2020 checks whether the processing of all depths has been completed. Note that the depth number may be included as control data in a bit stream transmitted from the point group encoding device 100 to the point group 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 power of N.
[0109] In addition, the node size 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 of (N-1)", the node size at the third depth may be defined as "2 to the power of (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, 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 length of each side of the node differs for each axis direction (x, y, z), the length of the shortest side among the three directions may be considered as the node size. Similarly, the length of the longest side among the three directions may be considered as the node size.
[0113] Here, when the flag (trisoup_enabled_flag) that controls whether to use Trisoup indicates that Trisoup is 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] Processing Depth Number = Total Depth Number - (Minimum) Trisoup Node Size Here, the minimum Trisoup node size can be defined as (log2_trisoup_min_node_size_minus2+2), for example. 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, and if not, the tree merging unit 2020 proceeds to step S602.
[0116] In other words, if (number of processing depths-n)=0, the tree merging unit 2020 proceeds to step S609, and if (number of processing depths-n)>0, the tree merging unit 2020 proceeds to step S602.
[0117] Furthermore, the tree synthesis unit 2020 may determine that Trisoup is applied to all nodes having the node size (N-the number of processing depths) 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 "multiple levels of Trisoup are allowed (the value of trisoup_multilevel_enabled_flag is "1")" and "the node size (Nn) 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 other names may be used as long as the "node that decodes the Trisoup node size" is the same.
[0121] Furthermore, the tree synthesis unit 2020 may determine that "decoding of Trisoup_node_size is not necessary" if the above condition is not satisfied.
[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 merge unit 2020 proceeds to step S603.
[0125] In step S603, the tree synthesis unit 2020 determines whether or not the processing of all nodes included in the target depth has been completed.
[0126] If it is determined that the processing of all nodes of the target depth has been completed, the tree merging unit 2020 proceeds to step S601 and processes 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 the 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 the Trisoup_node_size needs to be decoded in the same manner as 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 that indicates the size at which Trisoup should be applied to descendant nodes obtained by recursively dividing the CTU using Octree or QtBt.
[0133] For example, if the CTU size is 5 (=2 5 =32) and the decrypted Trisoup_node_size is 2 (=2 2 = 4), it may mean applying Trisoup to each node (node size 2) obtained when dividing the CTU three times (= 5 - 2) using an Octree.
[0134] The node size to which the decrypted Trisoup is applied (hereinafter referred to as the Trisoup node size) is stored as additional information for 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 the tree synthesis unit 2020 decodes Trisoup_node_size, the process proceeds to step S606.
[0136] In step S606, the tree synthesis unit 2020 checks the value of the Trisoup node size stored as internal information of the node.
[0137] When Trisoup is applied to the target node, that is, when the size of the node is equal to the Trisoup node size stored as the internal information of the node, the tree synthesis unit 2020 proceeds to step S607.
[0138] If Trisoup is not 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 synthesis unit 2020 proceeds to step S608.
[0139] In step S607, the tree synthesis unit 2020 stores the target node as a node to which Trisoup is applied, i.e., as a Trisoup node. No further node division by "Octree" is applied to the target node. After that, the tree synthesis unit 2020 proceeds to step S603 and moves to processing of the next node.
[0140] In step S608, the tree synthesis unit 2020 decodes information called an occpancy code.
[0141] In the case of an "Octree", the occpancy code is information that indicates 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 directions and divided into eight nodes (called child nodes).
[0142] For example, the occpancy code may assign one bit of information to each child node, and if the one bit of information is "1", it is defined that the point to be decoded is contained within the child node, and if the one bit of information is "0", it is defined that the point to be decoded is not contained within the child node.
[0143] When decoding such an occpancy 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] Also, in step S608, the tree synthesis unit 2020 may store position information of nodes to which Trisoup has not been applied in a one-dimensional array or the like for each Depth, in order to use it in S901 described later.
[0145] Specifically, the tree merging unit 2020 may store position information of the target node (node before division) in step S608. For example, the tree merging unit 2020 may store the coordinate values of the point closest to the origin among the vertices of the target node (rectangular parallelepiped) in a one-dimensional array for each depth, and this information may be used by the approximate surface merging unit 2030 described later.
[0146] If the size of the rectangular prism (the lengths of the sides in the x-, y-, and z-directions) is determined for each depth, then 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, in the point cloud encoding device 100, entropy encoding may be performed.
[0148] In addition, in step S608, the Trisoup node size stored as the internal information of the node may be stored as the 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 node.
[0149] (Approximate surface synthesis section 2030) An example of the processing of the approximate surface synthesis unit 2030 will be described below with reference to FIGS.
[0150] FIG. 7 is a flowchart showing an example of the process of 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 the processing at all trisoup_depths has been completed.
[0152] If the processing has been completed for all trisoup_depth, the process proceeds to step S709 and ends. If the processing has not been completed for all trisoup_depth, 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 the two are equal, the operation proceeds to step S704, and if the two 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 obtains 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 the interpolation process has been performed)" generated in step S708, which will be described later. Fig. 8 is a flowchart showing an example of the process 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 the 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 segment in which direction (x, y, or z direction) the "interpolated vertex" exists.
[0161] For example, if the vertices of a segment and Trisoup are located at a position 0.5 away from the integer coordinate position as described below, 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 a segment in the y direction, only the y coordinate is an integer value, and in a segment 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 axis direction coordinate is an integer.
[0163] In addition, when coordinate values are stored in integer format, for example, when the true coordinate values are doubled and stored as integer values to represent 0.5, the approximate surface synthesis unit 2030 can determine whether the coordinate values in each axis direction are integers or decimals (x.5) depending on whether the least significant 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 in the current Trisoup node size. For example, the approximate surface synthesis unit 2030 can perform such a determination in the following manner.
[0166] (1) First, the approximate surface synthesis unit 2030 quantizes the x-, y-, and z-axis coordinate values of the “interpolated vertex” to integers.
[0167] Specifically, the approximate surface synthesis unit 2030 adds 0.5 to each coordinate value and then rounds down the decimal points.
[0168] Here, when 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 integer.
[0169] Alternatively, when 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 the coordinate values 1 bit to the right.
[0170] Note that although the case where all of the x, y, and z axial directions are converted to integers has been described here, the approximate surface synthesis unit 2030 may convert only the axes other than the “direction” determined in step S802 into integers.
[0171] For example, when the above-mentioned "direction" is the x-axis, the approximate surface synthesis unit 2030 needs to convert only the y-coordinate and the z-coordinate into integers.
[0172] (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.
[0173] For example, the approximate surface synthesis unit 2030 determines whether the above-mentioned "direction" is the x-axis direction and the Trisoup node size is 8 (=2 3 ), check whether the integer-converted y and z coordinates are each a multiple of 8.
[0174] In the above-mentioned 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.
[0175] 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."
[0176] In step S804, the approximate surface synthesis unit 2030 generates a segment corresponding to the "interpolated vertex" by using the coordinates of the "interpolated vertex" that have been converted into integers in step S803.
[0177] 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).
[0178] The above-mentioned starting point is obtained, for example, by quantizing the coordinate value of the "interpolated vertex" converted into integers by the Trisoup node size.
[0179] 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".
[0180] Coordinate value after quantization = (Coordinate value>>TrisoupNodeSizeLog2)< <TrisoupNodeSizeLog2 Here, >> means a right bit shift, and << means a left bit shift.
[0181] When proceeding to the processing of step S804, it is clear that the coordinate values of the 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.
[0182] 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.
[0183] 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 "interpolated vertex" that has been converted to an integer on the axis corresponding to the "direction" determined in step S802.
[0184] After the above processing is performed, the operation proceeds to step S801, and proceeds to processing of the next "interpolated vertex."
[0185] The above describes an example of generating a segment from an "interpolated vertex." However, instead of a segment, 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.
[0186] The "presence or absence of an interpolated vertex" for each unique segment can be determined, for example, as "a vertex is present" if the coordinates of the start point and the coordinates of the end point of each unique segment are identical among the segments generated by the above-mentioned method, and as "no vertex is present" if the coordinates of the start point and the coordinates of the end point of each unique segment are not identical.
[0187] As described above, the vertex position held by the segment when it is determined that a vertex is present can be used as the "interpolated vertex position."
[0188] 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.
[0189] In step S704, the approximate surface synthesis unit 2030 collects neighboring information to be used in decoding the vertices in the next step S705.
[0190] 9 is a flowchart showing an example of the process in step S704. Hereinafter, an example of the process in step S704 will be described with reference to FIG.
[0191] As shown in Fig. 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.
[0192] 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.
[0193] If completed, the operation proceeds to step S1003; if not completed, the operation proceeds to step S1002.
[0194] In step S1002, the approximate surface synthesis unit 2030 generates, for the Trisoup node, 36 segments and mask values corresponding to each segment.
[0195] An example of generating segments and mask values is shown in Fig. 11. The shaded portion in Fig. 11 shows an example of the Trisoup node, each line segment shows an example of a segment, and the numbers written on the segments show an example of a mask value.
[0196] Since it is difficult to provide examples of mask values for all segments, examples of mask values are provided only for some segments. In reality, however, mask values are set for all segments as follows.
[0197] First, the approximate surface synthesis unit 2030 generates four segments at adjacent positions with larger coordinate values and four segments at adjacent positions with smaller coordinate values than the node 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.
[0198] Here, each segment has information on a start point and an end point, but since there are no vertices, information on the vertex positions is not held.
[0199] Next, an example of setting the mask value for each segment will be described.
[0200] 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.
[0201] 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.
[0202] 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.
[0203] 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.
[0204] When set in this way, 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.
[0205] Next, the approximate surface synthesis unit 2030 may set mask values of 16, 32, 64, and 128, respectively, for segments (12 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.
[0206] When set in this way, if any of the 5th to 8th 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.
[0207] Next, the approximate surface synthesis unit 2030 may set mask values of 256, 512, 1024, and 2048, respectively, for segments (12 in total, four in each of the x, y, and z directions) corresponding to adjacent nodes whose coordinate values are smaller than that of the Trisoup node in the x, y, and z directions, as shown in Figure 11.
[0208] When set in this way, 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 the Trisoup node.
[0209] As described above, after generating the segments and the mask values corresponding to them, the approximate surface synthesis unit 2030 proceeds to step S1001 to process the next Trisoup node.
[0210] Here, the nodes to which Trisoup was not applied at the relevant depth, which were saved in the above-mentioned step S608, may be added as the nodes to be processed in step S1001 as the nodes to be processed in this step.
[0211] For "nodes to which Trisoup has not been applied at the relevant depth", Trisoup is not applied at the relevant depth, so no Trisoup vertices are generated for the node itself, but it is an area where Trisoup would be applied at depths greater than the relevant depth. Therefore, when generating a mask for "nodes to which Trisoup has not been applied at the relevant depth" in step S1002, a mask in which "any bit in the 1st to 4th bits of the mask value is 1" as described above is not set, and only a mask in which "any bit in the 5th to 8th bits of the mask value is 1" and a mask in which "any bit in the 9th to 12th bits of the mask value is 1" are set.
[0212] In step S1003, the approximate surface synthesis unit 2030 determines whether or not the processing of all segments corresponding to the "interpolated vertices" generated in step S703 has been completed.
[0213] If completed, the operation proceeds to step S1005, and the mask generation process of step S901 ends. If not completed, the operation proceeds to step S1004.
[0214] 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.
[0215] The approximate surface synthesis unit 2030 may set the mask value to, for example, a value of 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.
[0216] After generating the mask value, the approximate surface synthesis unit 2030 proceeds to step S1003 to process the next segment.
[0217] Each of the mask values generated in steps S1002 and S1004 is a power of 2. In this way, when combining mask values of segments that exist at the same position in step S905 described later, the mask values can be easily combined by performing a bit operation (logical sum).
[0218] 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 a Trisoup node adjacent to it, whether there is an "interpolated vertex" in the segment, etc.) can be obtained.
[0219] After generating the mask information as described above, the approximate surface synthesis unit 2030 proceeds to step S902.
[0220] 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."
[0221] The approximate surface synthesis unit 2030 sorts the segments based on, for example, the start point coordinates and end point coordinates of each segment. By performing such processing, it is possible to rearrange the segments so that segments having the same start point and end point are continuous.
[0222] After completing this sorting, the approximate surface synthesis unit 2030 proceeds to step S903.
[0223] In step S903, the approximate surface synthesis unit 2030 determines whether or not the processing of all the segments after sorting in step S902 has been completed.
[0224] 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.
[0225] In step S904, the approximate surface synthesis unit 2030 determines whether the segment is in the same position as the previously processed segment.
[0226] Specifically, the approximate surface synthesis unit 2030 determines, for example, 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.
[0227] If the location is the same as the previously processed segment, the operation proceeds to step S905. If the location is not the same as the previously processed segment, the operation proceeds to step S906.
[0228] 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.
[0229] For example, when the mask value corresponding to each segment is formed by a power 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.
[0230] After the approximate surface synthesis unit 2030 integrates the masks, the process proceeds to step S907.
[0231] In step S906, if the segment processed immediately before the current segment satisfies a predetermined condition A, the approximate surface synthesis unit 2030 stores the segment as a unique segment.
[0232] For example, the predetermined condition A may be a case where the previously processed segment is a segment corresponding to a Trisoup node.
[0233] For example, if at least one of the lowest four bits of the mask value integrated in step S905 is 1, it is found that the previously processed segment is a segment corresponding to the Trisoup node.
[0234] The approximate surface synthesis unit 2030 may store, as information about a unique segment, for example, 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). These pieces of information are used in the vertex decoding process in step S705.
[0235] The approximate surface synthesis unit 2030 saves information about the unique segments, and then initializes various information (information about the interpolation points, information about the adjacent segments, integrated mask values, etc.).
[0236] Moreover, if the predetermined condition is not satisfied, the approximate surface synthesis unit 2030 performs only initialization. After the above processing is completed, the operation proceeds to step S907.
[0237] In step S907, if the predetermined condition B is satisfied, the approximate surface synthesis unit 2030 stores information about the interpolation points.
[0238] 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.
[0239] The approximate surface synthesis unit 2030 stores the coordinates of the "interpolated vertex" when the predetermined condition B is satisfied. Specifically, the approximate surface synthesis unit 2030 stores the value of the "vertex position on the segment" generated in step S804. The value stored here is stored as information related to the unique segment in step S906.
[0240] If the segment is not determined to be a unique segment in step S906 (if the predetermined condition A in step S906 is not satisfied), the information on the interpolation points of the segment stored in step S907 is discarded.
[0241] 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 the array instead of the coordinate value itself.
[0242] After the above processing is completed, the operation proceeds to step S908.
[0243] In step S908, the approximate surface synthesis unit 2030 stores information about the adjacent segments.
[0244] Specifically, for example, the approximate surface synthesis unit 2030 stores the start coordinates of the segment, and information for identifying segments having the same start coordinates or end coordinates (for example, a segment index, etc.).
[0245] For example, the segments having the same start coordinates as the segment, and the same start coordinates or end coordinates as the segment, specifically, there is one segment in the same axial direction as the segment, whose end coordinates are the same as the start coordinates of the segment, and four segments in the axial direction perpendicular to the segment. The information stored here is stored as information about unique segments in step S906.
[0246] If the segment is not determined to be a unique segment in step S906 (if the predetermined condition A in step S906 is not satisfied), the information on the adjacent segments of the segment generated in step S908 is discarded.
[0247] After the above processing is completed, the operation proceeds to step S903 to process the next segment.
[0248] As described above, after the approximate surface synthesis unit 2030 collects the adjacent information in step S704, the process proceeds to step S705.
[0249] In step S705, the approximate surface synthesis unit 2030 decodes the vertices of the Trisoup at the trisoup_depth.
[0250] 12 is a flowchart showing an example of a method for decoding vertices in step S705. An example of the process in step S705 will be described below with reference to FIG.
[0251] As shown in FIG. 12, in step S1201, the approximate surface synthesis unit 2030 initializes the context.
[0252] Here, initialization means, for example, setting an initial value of a 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 the coding efficiency.
[0253] The approximate surface synthesis unit 2030 may prepare multiple sets of contexts depending on the application and initialize each of them.
[0254] For example, the approximate surface synthesis unit 2030 may be provided with three types of contexts for each application: a context for decoding the presence or absence of a vertex, 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.
[0255] These contexts may be composed of two elements, CtxMap1 and CtxMap2, as described later. For example, in Non-Patent Document 2, a context for decoding the presence or absence of a vertex is MapOBUFTrisoup[0], a context for decoding the first bit of a vertex position is MapOBUFTrisoup[1], and a context for decoding the first bit of a vertex position is MapOBUFTrisoup[2].
[0256] Furthermore, in Non-Patent Document 2, a 7-bit (=128 ways) context is prepared for CtxMap1 of MapOBUFTrisoup[0], and a 15-bit (14+1 bit) context is prepared for CtxMap2, which are both initialized.
[0257] Similarly, CtxMap1 of MapOBUFTrisoup[1] is provided with 6 bits, CtxMap2 is provided with 15 bits (10+1+3+1 bits), and CtxMap1 of MapOBUFTrisoup[2] is provided with 7 bits (6+1 bits), and CtxMap2 is provided with 15 bits (10+1+3+1 bits), and are initialized.
[0258] As will be described later, CtxMap1 of the context for decoding the presence or absence of a vertex takes a 7-bit value, and CtxMap2 takes a 15-bit value.
[0259] Similarly, CtxMap1 for the first bit of a vertex position takes a 6-bit value, CtxMap2 takes a 11-bit value, CtxMap1 for the first bit of a vertex position takes a 7-bit value, and CtxMap2 takes a 15-bit value. In this case, if a context greater than or equal to the number of bits actually used is prepared in advance, as in Non-Patent Document 2 described above, subsequent processing becomes possible.
[0260] Furthermore, by preparing only the minimum necessary context based on the bits actually used, the amount of memory required to store the context can be reduced.
[0261] In the example described later, 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.
[0262] After the context initialization is complete, the operation proceeds to step S1202.
[0263] 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.
[0264] If the processing has been completed for all unique segments, the operation proceeds to step S1208, and the processing of step S703 ends. If the processing has not been completed for all unique segments, the operation proceeds to step S1203.
[0265] In step S1203, the approximate surface synthesis unit 2030 determines whether or not an "interpolated vertex" exists in the unique segment.
[0266] Whether or not an "interpolated vertex" exists can be determined based on the integrated mask value stored in step S906 or the information on "whether or not an interpolated vertex exists" 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.
[0267] 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.
[0268] In other words, the approximate surface synthesis unit 2030 sets the "vertex positions on the segment" stored in step S906 as the decoded values of the vertex positions in the unique segment.
[0269] Furthermore, the approximate surface synthesis unit 2030 sets the decoded value of "vertex presence / absence" in the unique segment to "vertex present."
[0270] That is, step S1204 is a process of implicitly determining the vertex positions and the information indicating the presence or absence of a vertex using the interpolated values, instead of decoding the information indicating the vertex positions and the presence or absence of a vertex from the bit stream.
[0271] After the above processing is completed, the operation proceeds to step S1202 to process the next unique segment.
[0272] In step S1205, the approximate surface synthesis unit 2030 decodes, from the bit stream, information indicating whether or not a vertex exists in the unique segment.
[0273] 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 a plurality of probability models for entropy coding (coding device) / decoding (decoding device) and select one according to the context. The context may be set based on the mask value stored and integrated in step S906, for example.
[0274] An example of a method for setting a context will be described below with reference to FIGS.
[0275] 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).
[0276] Nodes e1 to e4 are adjacent to the unique segment (include the unique segment as an edge).
[0277] Whether or not the nodes e1 to e4 exist can be determined by whether the first to fourth bits of the mask value of the unique segment generated in step S704 are 1 or 0, respectively.
[0278] Nodes a1 to a4 are nodes adjacent to (included as edges of) the unique segment in question and adjacent segments in a direction closer to the origin (a direction in which the coordinate value decreases).
[0279] Whether or not the nodes a1 to a4 exist can be determined by whether the 5th to 8th bits of the mask value of the unique segment generated in step S704 are 1 or 0, respectively.
[0280] Nodes b1 to b4 are nodes adjacent to (included as edges of) the unique segment and adjacent segments in a direction away from the origin (a direction in which the coordinate value increases).
[0281] Whether or not nodes b1 to b4 exist can be determined by whether the 9th to 12th bits of the mask value of the unique segment generated in step S704 are 1 or 0, respectively.
[0282] 19A to 19C show the edges of the neighboring nodes shown in FIGS. 18A and 18B numbered.
[0283] 19A to 19C, the unique segment E has a different arrangement depending on whether its direction is the x-axis direction, y-axis direction, or z-axis direction. This arrangement is made up of only edges (segments) that have been decoded before the unique segment when the unique segment is decoded in raster scan order (also called lexicographic order, where the coordinate values are rearranged in ascending order with the priority of x, y, and z).
[0284] 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).
[0285] The context may consist of CtxMap1 (or Primary Information) and CtxMap2 (Secondary Information).
[0286] CtxMap1 may be configured, for example, as follows:
[0287] 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.
[0288] 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 or equal to half the edge length), and takes a value from 0 to 4.
[0289] That is, min(nclosestPattern,2) is one of the three integer values from 0 to 2.
[0290] neighbEdge is a 4-bit binary number, with one bit expressing 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.
[0291] ctx1 is the number of existing nodes among the nodes a1 to a4 in FIG. 18B.
[0292] (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.
[0293] As mentioned above, CtxMap1 has 3×15×2 combinations=90 combinations (<2 7 In other words, all possible values can be represented by a 7-bit binary number.
[0294] CtxMap2 may be configured, for example, 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.
[0295] After the approximate surface synthesis unit 2030 decodes the information indicating the presence or absence of a vertex, the process proceeds to step S1206.
[0296] In step S1206, the approximate surface synthesis unit 2030 determines whether or not a vertex exists in the unique segment.
[0297] If a vertex is present 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 is not present, the approximate surface synthesis unit 2030 proceeds to step S1202 and proceeds to processing of the next unique segment.
[0298] In step S1207, the approximate surface synthesis unit 2030 decodes the "vertex position on the segment" in 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 a plurality of probability models and select one according to the context. The context may be set based on the information of the adjacent segment stored in step S906, for example.
[0299] An example of a method for setting a context will be described below with reference to FIGS.
[0300] The vertex position may be decoded bit by bit starting from the MSB as follows: In addition, the vertex position context may be composed of CtxMap1 (or Primary Information) and CtxMap2 (Secondary Information) in the same manner as the above-mentioned vertex presence / absence context.
[0301] First, an example of generating a context for the first bit (MSB) will be described.
[0302] CtxMap1 may be configured, for example, as follows:
[0303] CtxMap1= ctxFullNbounds×2 + (nclosestStart>0 ? 1:0) Here, ctxFullNbounds may be defined as follows:
[0304] ctxFullNbounds=(4×(ctx0<=1 ? 0 : (ctx0 >= 3 ? 2 : 1)) + (max(1, ctx1) - 1))×2+(ctxE == 3 ? 0 :1) Here, ctx0 is the number of existing nodes among the nodes b1 to b4 in FIG. 18B.
[0305] Also, max(A,B) is a function that returns the larger value of the two arguments A and B.
[0306] Furthermore, ctxE is a value obtained by subtracting 1 from the number of existing nodes among the nodes e1 to e4 in FIG. 18A.
[0307] nclosestStart is the number of edges whose vertex is closest to the unique segment E (the distance from the unique segment is less than or equal to the edge length / 4) among the edges with subscripts a to e shown in Figures 19A to 19C.
[0308] From the above, CtxMap1 has 3×4×2×2=48 combinations (<2 6 In other words, CtxMap1 can represent all possible values of a 6-bit binary number.
[0309] 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.
[0310] Next, an example of generating the context for the second bit will be described.
[0311] CtxMap1 may be configured, for example, as follows:
[0312] CtxMap1 = (CtxMap1 for the 1st bit) << 1+1st bit decoded result Here, <<1 means to shift 1 bit to the left. From the above, CtxMap1 has 48×2=96 combinations (<2 7 In other words, CtxMap1 can represent all possible values for a 7-bit binary number.
[0313] CtxMap2 may be configured, for example, 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.
[0314] Here, the vertex positions may be decoded with a 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.
[0315] 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.
[0316] In addition, the bit precision specified by trisoup_vertex_number_bits is used only at the depth corresponding to the minimum Trisoup node size (the largest depth), and thereafter, the bit precision may be increased by 1 as the node size increases by 1 (as the depth decreases by 1).
[0317] 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 at the depth corresponding to the minimum Trisoup node size, and the value of trisoup_vertex_number_bits plus 1 at the depth corresponding to the maximum Trisoup node size, as the bit precision of the relevant depth.
[0318] 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.
[0319] After decoding the vertex positions, the approximate surface synthesis unit 2030 proceeds to step S1202 to process the next unique segment.
[0320] The above describes an example in which the approximate surface synthesis unit 2030 uses the "interpolated vertex" as the vertex position directly in step S1204, 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 of the "interpolated vertex."
[0321] For example, as shown in FIG. 23, in a unique segment in which an "interpolated vertex" exists, the approximate surface synthesis unit 2030 may, in step S2201, decode the difference value with respect to the position of the "interpolated vertex," and add the decoded difference value to the position of the "interpolated vertex," thereby obtaining the decoded value of the vertex position in the unique segment.
[0322] At this time, 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.
[0323] At this time, the approximate surface synthesis unit 2030 may perform entropy decoding on the assumption that each bit has been entropy coded, after binarizing the data so that the first bit indicates whether the absolute value is zero or not, and the second bit indicates the sign when the absolute value is 1, e.g., 0⇒0, +1⇒10, -1⇒11.
[0324] In this 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.
[0325] In addition, 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.
[0326] Also, for example, the approximate surface synthesis unit 2030 may change the order of processing as shown in FIG. 24, and determine whether or not an "interpolated vertex" exists for a unique segment decoded as "with vertex."
[0327] 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" to obtain the decoded value of the vertex position in the unique segment.
[0328] Also, for example, the approximate surface synthesis unit 2030 may decode the presence / absence of a vertex and the position of the vertex by using information on each of the "interpolated vertices" as shown in FIG.
[0329] A specific example of the process of steps S2401 and S2402, which are differences from FIG. 12, will be described below.
[0330] As shown in FIG. 25, in step S2401, when decoding the presence or absence of a vertex 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.
[0331] Here, the approximate surface synthesis unit 2030 may use the context in combination with the context described in step S1205.
[0332] After the vertex presence / absence is decoded as described above, the operation proceeds to step S1206.
[0333] 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.
[0334] For example, when the approximate surface synthesis unit 2030 quantizes the position of the "interpolated vertex" with 2 bits (limited to four possibilities), the approximate surface synthesis unit 2030 may determine that there are a total of five contexts, i.e., four possible positions plus the case where the interpolated vertex does not exist.
[0335] Furthermore, the approximate surface synthesis unit 2030 may use these contexts in combination with the context described in step S1207.
[0336] As described above, the approximate surface synthesis unit 2030 is configured to decode the vertex information of Trisoup for each node size in ascending order of node size.
[0337] 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.
[0338] 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 at the node size from the Trisoup vertex information at the decoded node size, and decode the vertex information of the node size using the predicted value.
[0339] Furthermore, as described using Figures 23 and 24, when a decoded node size larger than the node size (target node size) exists, 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, and when a predicted value of vertex information exists in the unique segment (target unique segment) at the node size, decode a 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.
[0340] With this configuration, it is possible to improve the coding efficiency compared to the case where the vertex positions of Trisoup are directly decoded.
[0341] Furthermore, as described using FIG. 25, when 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 for each unique segment in the decoded node size, switch contexts based on whether or not a predicted value of vertex information exists in the unique segment (target unique segment) in the node size, and decode the presence or absence of a vertex in the unique segment using the context.
[0342] With this configuration, entropy decoding can be performed using different contexts (probability distributions) depending on the presence or absence of a predicted value, thereby improving the coding efficiency.
[0343] Also, as described using Figure 25, when 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, and when a predicted value of vertex information exists in the unique segment (target unique segment) in the node size, switch contexts based on the predicted value and use the context to decode the vertex positions of the unique segment.
[0344] With this configuration, it is possible to perform entropy decoding using different contexts (probability distributions) based on the predicted values, thereby improving the coding efficiency.
[0345] 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 only to unique segments located on the boundary between different node sizes (CTU boundaries if node sizes are selected in CTU units).
[0346] As described above, after the approximate surface synthesis unit 2030 decodes the vertices in step S705, the process proceeds to step S706.
[0347] 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 process in step S706 will be described below with reference to Fig. 13.
[0348] As shown in FIG. 13, in step S1301, the approximate surface synthesis unit 2030 determines whether or not the processing has been completed for all Trisoup nodes in the trisoup_depth.
[0349] If the process has been completed for all the Trisoup nodes, the operation proceeds to step S1306, where the process ends. If the process has not been completed for all the Trisoup nodes, the operation proceeds to step S1302.
[0350] In step S1302, first, the approximate surface synthesis unit 2030 identifies unique segments corresponding to each side (segment) of the Trisoup node. For example, the approximate surface synthesis unit 2030 can identify unique segments whose start point coordinates and end point coordinates of each side (segment) of the Trisoup node are the same, from among the unique segments processed in step S705.
[0351] Second, if a vertex exists in the identified unique segment, the approximate surface synthesis unit 2030 adds the vertex to the reconstructed point group 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 and end point of the segment other than the axis along the direction of the segment.
[0352] 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.
[0353] On the other hand, the coordinates other than the x-axis, i.e., in this example, the y-coordinate and the z-coordinate, are each decreased by 0.5. Therefore, the start point coordinates and the end point coordinates become (12, 99.5, 31.5) and (16, 99.5, 31.5), respectively. (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). (3) The approximate surface synthesis unit 2030 adds 0.5 to the coordinate values calculated in (2) above, except for the axis along the direction of the segment. For example, in the above example, the result is (14, 100, 32). The same result can be obtained by adding the vertex position 2 on the unique segment to the start coordinate (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. (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.
[0354] Here, the inside of 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.
[0355] For example, if the start coordinates of the Trisoup node are (x, y, z) = (12, 100, 32) and the Trisoup node size is 4, points that exist in the ranges (12 to 15, 100 to 103, 32 to 35) are considered to be inside the Trisoup node.
[0356] In this case, if the coordinates calculated in (3) above are (14, 100, 32), this coordinate is determined to be inside the Trisoup node, and the approximate surface synthesis unit 2030 adds the point of this coordinate to the reconstructed point group. Figure 15A shows such a result in the case of projection onto the xy plane.
[0357] On the other hand, for example, when the start point 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 group, and this operation ends the process. Figure 15B shows an example of such a case.
[0358] After the above processing is completed, the operation proceeds to step S1303.
[0359] In step S1303, the approximate surface synthesis unit 2030 calculates the initial coordinates of the centroid from the vertices corresponding to the Trisoup node.
[0360] For example, the initial coordinates of the centroid can be calculated by averaging the x, y, and z components of all the vertices of the Trisoup node. If the Trisoup node has three or fewer vertices, the calculation of the centroid process may be omitted.
[0361] After this process is completed, the operation proceeds to step S1304.
[0362] In step S1304, the approximate surface synthesis unit 2030 performs a process of sorting the vertices and determining the projection plane. Specifically, for example, the approximate surface synthesis unit 2030 can sort the vertices and determine the projection plane in the following procedure. (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.
[0363] 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 the plane. Since a square is also a type of rectangle, the following explanation will be given assuming that the shape of the nodes after projection is a rectangle. (2) The approximate surface synthesis unit 2030 sorts the points on the sides of the rectangle onto which the nodes are projected in a clockwise or counterclockwise order.
[0364] Furthermore, the approximate surface synthesis unit 2030 assigns a provisional index value (0, 1, 2, . . . ) to each vertex in the sorted order. (3) The approximate surface synthesis unit 2030 defines a triangle defined by three points, the two vertices adjacent 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 using the cross product of these vectors.
[0365] 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).
[0366] When there are only three vertices, the approximate surface synthesis unit 2030 calculates the area of a triangle formed by the three vertices without using a centroid. This area is the area on the projected plane. (4) The approximate surface synthesis unit 2030 performs the above steps (1) to (3) on the xz plane and the yz plane in the same manner, and selects the plane with the largest area calculated in the above step (3) as the projection plane. In this case, the sorting order and the provisional index assigned in the above step (2) are adopted as the final sorting order and index.
[0367] As described above, after sorting the vertices and determining the projection plane, the approximate surface synthesis unit 2030 proceeds to step S1305.
[0368] In step S1305, the approximate surface synthesis unit 2030 generates a reconstructed point group by using the triangles generated in step S1304 and ray tracing.
[0369] Specifically, the approximate surface synthesis unit 2030 generates the reconstructed point group 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, similarly 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 it generates a triangle in a three-dimensional space using all of the x, y, and z coordinates of each vertex. (2) Secondly, the approximate surface synthesis unit 2030 defines a 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.
[0370] 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 (that is, a rectangle). (3) Thirdly, 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.
[0371] 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 configuration of triangles. (4) Fourth, if the coordinates where the normal vector calculated in (3) above intersects with the triangle exist inside the Trisoup node, the approximate surface synthesis unit 2030 generates a point at such coordinate position and adds it to the reconstructed point group. (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.
[0372] 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 group generated from the triangle in FIG. 16A is shown in FIG. 16B.
[0373] After generating the reconstruction points for the Trisoup node in the above manner, the approximate surface synthesis unit 2030 proceeds to step S1301 to process the next Trisoup node.
[0374] 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.
[0375] 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.
[0376] 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.
[0377] In step S708, the approximate surface synthesis unit 2030 interpolates vertices onto the segments of the nodes in the minimum Trisoup node size, based on the vertices corresponding to the Trisoup node size in the trisoup_depth decoded in step S705.
[0378] Fig. 14 is a flow chart showing an example of the process of step S708. Hereinafter, an example of the process of step S708 will be described with reference to Fig. 14. Note that the process of Fig. 14 is almost the same as the process of Fig. 13, and the same processes are denoted by the same reference numerals. Hereinafter, only the differences from Fig. 13 will be described.
[0379] As shown in FIG. 14, in step S1402, the approximate surface synthesis unit 2030 stores the vertices of the Trisoup node as "interpolated vertices."
[0380] Specifically, the approximate surface synthesis unit 2030 stores the coordinate values after performing the steps (1) and (2) described in step S1302 as "interpolated vertices".
[0381] 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.
[0382] To store this value as an integer, the approximate surface synthesis unit 2030 may store it as a value that is twice 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."
[0383] 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 the normal vector is placed at a position where a segment exists when the Trisoup node is divided by the minimum Trisoup node size.
[0384] 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 into the minimum Trisoup node size, the approximate surface synthesis unit 2030 stores the coordinate values as the “interpolated vertex.”
[0385] If the coordinate values are doubled in step S1402 to convert them into integers and stored, the approximate surface synthesis unit 2030 also stores the doubled coordinate values in step S1405.
[0386] 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.
[0387] 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 newly generated "interpolated vertices" in step S1402 by adding them to the above-mentioned set.
[0388] 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.
[0389] Alternatively, the approximate surface synthesis unit 2030 may store only those vertices that exist on the surface of the CTU node (a node that decodes the Trisoup node size) among the "interpolated vertices."
[0390] That is, the approximate surface synthesis unit 2030 may be configured to generate a predicted value of vertex method information of a smaller node size from vertex information of a larger node size in a unique segment located on the boundary between different node sizes.
[0391] As described above, by storing only the vertices necessary for processing, the amount of memory can be reduced.
[0392] In addition, when the interpolated vertices are used in all unique segments, i.e., when the vertex information of all nodes is hierarchically encoded in order from the largest node size, the approximate surface synthesis unit 2030 may store all the "interpolated vertices" as shown in FIG. 17.
[0393] For the sake of convenience, steps S706 and S708 have been described as separate processes, but since the two have much in common, they may be performed simultaneously.
[0394] For example, if the condition of step S707 is satisfied in step S1302, the approximate surface synthesis unit 2030 may also perform step S1402, and similarly, if the condition of step S707 is satisfied in step S1305, the approximate surface synthesis unit 2030 may also perform step S1405.
[0395] 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 descendant nodes obtained by recursively dividing the node by an Octree.
[0396] 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 / absence of vertices and the vertex positions of spatially adjacent decoded segments when decoding the presence / absence of vertices and the vertex positions of each segment constituting a Trisoup node.
[0397] 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 / absence of vertices and the vertex positions of segments constituting a node of the same size as the Trisoup node, among decoded segments that are spatially adjacent to the Trisoup node, when decoding the presence / absence of vertices and the vertex positions of each segment constituting the Trisoup node.
[0398] 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 to each other within the local region, thereby improving coding efficiency by utilizing spatial correlation.
[0399] (Point cloud encoding device 100) Hereinafter, the point group 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 group encoding device 100 according to this embodiment.
[0400] 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, a RAHT unit 1090, a LoD calculation unit 1100, a lifting unit 1110, an attribute information quantization unit 1120, and an attribute information encoding unit 1130.
[0401] The coordinate conversion unit 1010 is configured to convert the three-dimensional coordinate system of the input point cloud into any different coordinate system. The coordinate conversion may convert the x, y, and z coordinates of the input point cloud into any s, t, and u coordinates by rotating the input point cloud, for example. As a variation of the conversion, the coordinate system of the input point cloud may be used as it is.
[0402] The geometric information quantization unit 1020 is configured to quantize the position information of the input point group after the coordinate transformation and to remove points with overlapping coordinates. 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 the case where quantization is not performed.
[0403] 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.
[0404] 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.
[0405] If a point exists within a certain rectangular parallelepiped, a tree structure can be generated by recursively dividing the rectangular parallelepiped into multiple rectangular parallelepipeds until the rectangular parallelepiped reaches a specified 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 expressed as 0 or 1 to indicate whether or not a point is included in the child node.
[0406] As described above, the tree analysis unit 1030 is configured to generate occupancy codes while recursively dividing nodes until a predetermined size is reached.
[0407] 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.
[0408] Here, whether or not to use “QtBt” is transmitted to the point cloud decoding device 200 as control data.
[0409] Alternatively, it may be specified to use predictive coding using an arbitrary tree structure. In this 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.
[0410] For example, the tree-structured control data may be configured so as to be decoded according to the procedure described with reference to FIG.
[0411] The approximate surface analyzer 1040 is configured to generate approximate surface information using the tree information generated by the tree analyzer 1030 .
[0412] Approximate surface information is used when, for example, decoding three-dimensional point cloud data of an object, in cases where the point cloud is densely distributed on the object surface, to approximate the area in which the point cloud exists using a small plane, rather than decoding each individual point cloud.
[0413] Specifically, the approximate surface analysis unit 1040 may be configured to generate approximate surface information using, for example, a method called "Trisoup." In addition, when decoding a sparse point cloud acquired by Lidar or the like, this process can be omitted.
[0414] The geometric information encoding unit 1050 is configured to generate a bit stream (geometric information bit stream) 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 bit stream may include, for example, the syntax described in Fig. 4 and Fig. 5.
[0415] The encoding process is, for example, a context-adaptive binary arithmetic encoding process. Here, for example, the syntax includes control data (flags and parameters) for controlling the decoding process of the position information.
[0416] The geometric information reconstruction unit 1060 is configured to reconstruct geometric information (the coordinate system assumed by the encoding process, i.e., the position information after coordinate transformation in the coordinate transformation unit 1010) of each point of the point cloud data to be encoded, 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.
[0417] 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 the presence or absence of the color conversion process is coded as part of the control data and transmitted to the point cloud decoding device 200.
[0418] 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 reconstructing 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.
[0419] The RAHT unit 1090 is configured to receive the attribute information transferred by the attribute transfer unit 1080 and the geometric information generated by the geometric information reconstruction unit 1060 as input, 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 document 2 can be used.
[0420] 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 a Level of Detail (LoD).
[0421] LoD is information for defining a reference relationship (a referencing point and a referenced point) to realize predictive coding, such as predicting attribute information of a certain point from attribute information of another point and encoding or decoding the prediction residual.
[0422] 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 attributes of points belonging to lower levels are encoded or decoded using attribute information of points belonging to higher levels.
[0423] As a specific method for determining the LoD, for example, the method described in the above-mentioned document 2 may be used.
[0424] 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.
[0425] As a specific example of the lifting process, the method described in the literature (Text of ISO / IEC 23090-9 DIS Geometry-based PCC, ISO / IEC JTC1 / SC29 / WG11 N19088) may be used.
[0426] 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.
[0427] The attribute information encoding unit 1130 is configured to perform encoding processing using the quantized residual information and the like 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).
[0428] The encoding process is, for example, a context-adaptive binary arithmetic encoding process. Here, for example, the syntax includes control data (flags and parameters) for controlling the decoding process of the attribute information.
[0429] Through the above processing, the point group encoding device 100 is configured to perform encoding processing using position information and attribute information of each point in a point group as input, and to output a geometric information bit stream and an attribute information bit stream.
[0430] Furthermore, the above-mentioned 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).
[0431] In each of the above embodiments, the present invention has been described using the point cloud encoding device 100 and the point cloud decoding device 200 as examples, but the present invention is not limited to such examples 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. [Industrial Applicability]
[0432] 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 "build resilient infrastructure, promote sustainable industrialization and foster innovation." [Explanation of symbols]
[0433] 10...Point cloud processing system 100...Point cloud encoding device 1010... Coordinate conversion section 1020...Geometric information quantization section 1030…Tree analysis section 1040…Approximate surface analysis section 1050...Geometric information encoding unit 1060...Geometric information reconstruction unit 1070…Color conversion section 1080…Attribute transfer section 1090…RAHT Section 1100…LoD calculation section 1110…Lifting section 1120...Attribute information quantization section 1130...Attribute information encoding unit 200...Point cloud decoding device 2010…Geometric Information Decoding Department 2020…Tree synthesis section 2030…Approximate surface synthesis part 2040...Geometric information reconstruction unit 2050…Inverse coordinate conversion section 2060…Attribute information decoding unit 2070...Inverse quantization section 2080…RAHT Division 2090…LoD calculation section 2100…Reverse lifting section 2110…Color inversion unit
Claims
1. A point cloud decoding device, comprising: an approximate surface synthesis unit that decodes vertex information of Trisoup for each node size in descending order of node size; The vertex information includes at least one of the presence or absence of a vertex for each unique segment, or the position of a vertex for each unique segment, The point cloud decoding device is characterized in that, when a decoded node size larger than the target node size exists, the approximate surface synthesis unit generates a predicted value of the vertex information at the target node size from the vertex information at the decoded node size, and decodes the vertex information of the target node size using the predicted value.
2. The approximate surface synthesis unit includes: generating the predicted value from a vertex position for each unique segment in the decoded node size; The point cloud decoding device described in claim 1, characterized in that when a predicted value of the vertex information exists in a target unique segment in the target node size, a difference value between the predicted value and the vertex position of the unique segment in the target node size is decoded, and the vertex position of the unique segment in the target node size is decoded by adding the difference value and the predicted value.
3. The approximate surface synthesis unit includes: generating the predicted value from a vertex position for each unique segment in the decoded node size; Switching context based on whether the predicted value of the vertex information exists in a target unique segment in the target node size; The point cloud decoding device according to claim 1 , wherein the context is used to decode the presence or absence of a vertex in the target unique segment.
4. The approximate surface synthesis unit includes: generating the predicted value from a vertex position for each unique segment in the decoded node size; If a predicted value of the vertex information exists in a target unique segment for the target node size, switching a context based on the predicted value; The point cloud decoding device according to claim 1 , further comprising: decoding a vertex position of the target unique segment using the context.
5. The point cloud decoding device according to any one of claims 2 to 4, characterized in that the approximate surface synthesis unit generates a predicted value of the vertex information of a smaller node size from the vertex information of a larger node size in a unique segment located on the boundary between different node sizes.
6. A point cloud decoding device, comprising: An approximate surface synthesis unit that decodes vertex information of Trisoup, The vertex information includes at least one of the presence or absence of a vertex for each unique segment, or the position of a vertex for each unique segment, The presence or absence of the vertex and the position of the vertex are decoded using a plurality of contexts, respectively; A point cloud decoding device characterized in that the context is configured to be prepared and initialized in a minimum number of times based on the values that the context can take prior to the decoding process.
7. 1. A point cloud decoding method, comprising: Decoding vertex information of Trisoup for each node size in descending order of node size; The vertex information includes at least one of the presence or absence of a vertex for each unique segment, or the position of a vertex for each unique segment, A point cloud decoding method characterized in that, in the above process, if a decoded node size larger than a target node size exists, a predicted value of the vertex information at the target node size is generated from the vertex information at the decoded node size, and the vertex information of the target node size is decoded using the predicted value.
8. A program for causing a computer to function as a point group decoding device, The point cloud decoding device includes an approximate surface synthesis unit that decodes vertex information of Trisoup for each node size in ascending order of node size, The vertex information includes at least one of the presence or absence of a vertex for each unique segment, or the position of a vertex for each unique segment, The program is characterized in that, when a decoded node size larger than the target node size exists, the approximate surface synthesis unit generates a predicted value of the vertex information at the target node size from the vertex information at the decoded node size, and decodes the vertex information of the target node size using the predicted value.
Citation Information
Patent Citations
Trisoup syntax signaling for geometry-based point cloud compression
US20210319595A1
