Geometric mode determination method and apparatus, device, and storage medium

By acquiring the geometric information of nodes, the geometric pattern of the current node is determined, thus optimizing the encoding and decoding process of point cloud data. This solves the problem of low encoding and decoding efficiency based on octrees in existing technologies and improves the encoding and decoding efficiency.

WO2024188009A1PCT designated stage expired Publication Date: 2024-09-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/076451
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2024-02-06
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing point cloud encoding and decoding technologies based on octrees have low efficiency, especially for point cloud data with special geometric patterns.

Method used

By acquiring the geometric information of nodes, the geometric pattern of the current node is determined, the encoding and decoding process of point cloud data at the decoding and encoding ends is optimized, and the encoding and decoding efficiency is improved by combining the geometric information in the octree partitioning process.

Benefits of technology

It improves the encoding and decoding efficiency of point cloud data and optimizes the decoding and encoding process of point cloud data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024076451_19092024_PF_FP_ABST
    Figure CN2024076451_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of point cloud encoding and decoding, and discloses a geometric mode determination method and apparatus, a device, and a storage medium. The method comprises: acquiring geometric information of a first node (420); and determining the geometric mode of a current node according to the geometric information of the first node, the current node being a node to be decoded currently (440), wherein the first node is at least one of the following nodes: a reference node; a subnode of the reference node; a decoded subnode of the current node; and a subnode to be decoded of the current node. According to the present application, by means of the geometric information of the first node, the determination of the geometric mode of the current node is optimized, thereby improving the encoding and decoding efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for determining geometric pattern

[0001] This application claims priority to Chinese patent application No. 202310283064.6 filed on March 14, 2023, entitled “Method, device, apparatus and storage medium for determining geometric patterns,” the entire contents of which are incorporated herein by reference. Technical Field

[0002] The embodiments of the present application relate to the field of point cloud encoding and decoding technology, and in particular to a method, apparatus, device and storage medium for determining a geometric pattern. Background Art

[0003] A point cloud, also known as point cloud data, is a set of points in 3D (3D) space, each with associated attributes such as color and material. Point cloud data can be used to reconstruct an object or scene as a combination of these points.

[0004] In related technologies, point cloud data is primarily encoded based on an octree. For point cloud data in 3D space, the octree partitioning method evenly divides the pre-defined bounding box layer by layer. Each node has eight child nodes, and the occupancy of each child node in the octree is indicated by '1' and '0'. When encoding based on the octree, the 3D coordinate information of the point cloud data is converted into the corresponding Morton code by querying the Morton sequence table. Based on the order of each Morton code, the corresponding point of each octree layer is obtained.

[0005] However, for point cloud data with special geometric patterns, the octree-based encoding and decoding efficiency in related technologies is low.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a method, apparatus, device, and storage medium for determining a geometric mode, which can optimize the decoding end's determination of a node's geometric mode, thereby improving encoding and decoding efficiency. The technical solution is as follows:

[0008] According to one aspect of an embodiment of the present application, a method for determining a geometric pattern is provided, which is applied to a decoding end and executed by a decoding end device, and includes: obtaining geometric information of a first node; determining the geometric pattern of a current node based on the geometric information of the first node, wherein the current node is a node to be decoded; wherein the first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0009] According to one aspect of an embodiment of the present application, a method for determining a geometric mode is provided, which is applied to an encoding end and executed by an encoding end device, and includes: obtaining geometric information of a first node; determining a geometric mode of a current node based on the geometric information of the first node, wherein the current node is a node to be encoded; wherein the first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0010] According to one aspect of an embodiment of the present application, a device for determining a geometric pattern is provided, which can be implemented as a decoding end, and the device includes: an acquisition module for acquiring geometric information of a first node; a determination module for determining the geometric pattern of a current node based on the geometric information of the first node, wherein the current node is a node to be decoded; wherein the first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0011] According to one aspect of an embodiment of the present application, a device for determining a geometric pattern is provided, which can be implemented as an encoding end, and the device includes: an acquisition module for acquiring geometric information of a first node; a determination module for determining the geometric pattern of a current node based on the geometric information of the first node, wherein the current node is a node to be encoded; wherein the first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0012] According to one aspect of an embodiment of the present application, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the above-mentioned method for determining the geometric pattern.

[0013] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the above-mentioned method for determining the geometric pattern.

[0014] According to one aspect of an embodiment of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described method for determining a geometric pattern.

[0015] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:

[0016] The decoding end device and the encoding end device respectively obtain the geometric information of the first node, and then determine the geometric mode of the current node based on the geometric information. The geometric information in the octree partitioning process is combined to optimize the determination of the geometric mode of the current node, thereby improving the efficiency of the decoding end device in decoding the point cloud data and the encoding end device in encoding the point cloud data, and improving the efficiency of encoding and decoding the point cloud data. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0018] FIG1 is a framework diagram of a point cloud application provided by one embodiment of the present application;

[0019] FIG2 is a schematic diagram of a point cloud coding framework provided by one embodiment of the present application;

[0020] FIG3 is a schematic diagram of a point cloud bounding box provided by one embodiment of the present application;

[0021] FIG4 is a schematic diagram of a node space provided by an embodiment of the present application;

[0022] FIG5 is a schematic diagram of octree encoding provided by one embodiment of the present application;

[0023] FIG6 is a schematic diagram of block structure coding provided by an embodiment of the present application;

[0024] FIG7 is a simplified block diagram of a communication system provided by one embodiment of the present application;

[0025] FIG8 is a schematic diagram of the placement of a point cloud encoder and a point cloud decoder in a streaming environment provided by one embodiment of the present application;

[0026] FIG9 is a flowchart of a method for determining a geometric pattern according to an embodiment of the present application;

[0027] FIG10 is a schematic diagram of an order for selecting decoded nodes at fixed positions according to an embodiment of the present application;

[0028] FIG11 is a flowchart of a method for determining a geometric pattern according to another embodiment of the present application;

[0029] FIG12 is a schematic diagram of the positional relationship between a reference node, decoded child nodes of a current node, and child nodes to be decoded, provided by one embodiment of the present application;

[0030] FIG13 is a flow chart of a method for determining a geometric pattern according to another embodiment of the present application;

[0031] FIG14 is a flowchart of a method for selecting a reference node provided by one embodiment of the present application;

[0032] FIG15 is a flowchart of a method for selecting a reference node provided by another embodiment of the present application;

[0033] FIG16 is a flowchart of a method for determining a geometric pattern according to another embodiment of the present application;

[0034] FIG17 is a block diagram of a device for determining a geometric pattern according to an embodiment of the present application;

[0035] FIG18 is a block diagram of a device for determining a geometric pattern according to an embodiment of the present application;

[0036] FIG19 is a schematic structural diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0037] To make the purpose, technical solutions and advantages of this application clearer, the following will further describe the implementation of this application in detail with reference to the accompanying drawings. Before introducing the embodiments of this application, the background knowledge involved in the embodiments of this application will first be introduced.

[0038] A point cloud, or point cloud data, is a collection of randomly distributed discrete points in 3D space that represent the spatial structure and surface properties of a 3D object or scene. Each point in a point cloud contains at least 3D position information and, depending on the application scenario, may also contain color, material, or other information. Typically, each point in a point cloud has the same number of additional attributes.

[0039] Point cloud data can flexibly and conveniently express the spatial structure and surface properties of three-dimensional objects or scenes, and is therefore widely used. Its main application scenarios can be divided into two categories: a) machine perception of point clouds, such as autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, emergency rescue robots, etc.; b) human perception of point clouds, such as digital cultural heritage, free viewpoint broadcasting, 3D immersive communication, 3D immersive interaction and other point cloud application scenarios.

[0040] Ways to acquire point cloud data include, but are not limited to, computer generation, 3D laser scanning, and 3D photogrammetry. Computers can generate point cloud data for virtual three-dimensional objects and scenes. 3D scanning can obtain point cloud data for static real-world three-dimensional objects or scenes, and can acquire millions of point cloud data per second. 3D photography can obtain point clouds for dynamic real-world three-dimensional objects or scenes, and can acquire tens of millions of point cloud data per second. Furthermore, in the medical field, point cloud data for biological tissues and organs can be acquired through magnetic resonance imaging (MRI), computed tomography (CT), and electromagnetic positioning information. These technologies reduce the cost and time required to acquire point cloud data and improve data accuracy. Changes in point cloud data acquisition methods have made it possible to acquire large amounts of point cloud data. With the continuous accumulation of large-scale point cloud data, efficient storage, transmission, publication, sharing, and standardization of point cloud data have become key to point cloud data applications.

[0041] Point cloud data can be divided into dense point clouds and sparse point clouds based on the data acquisition method. Specifically, if a 3D coordinate measuring machine obtains a relatively small number of points, the spacing between points is relatively large, and the point cloud is relatively sparse, then the point cloud obtained in this case is a sparse point cloud. If a 3D laser scanner or photographic scanner obtains a large number of points, the spacing between points is relatively small, and the point cloud is relatively dense, then the point cloud obtained in this case is a dense point cloud. Point cloud data can be divided into static point clouds and dynamic point clouds based on the data time series type. Specifically, if the object is stationary and the device acquiring the point cloud data is also stationary, then the point cloud obtained in this case is a static point cloud; if the object is moving but the device acquiring the point cloud data is stationary, then the point cloud obtained in this case is a dynamic point cloud.

[0042] Please refer to Figure 1, which shows a point cloud application framework diagram involved in an embodiment of the present application. Taking geometry-based Point Cloud Compression (G-PCC) data as an example, in Figure 1, at the sending end, a real-world virtual scene (A) is captured by a group of cameras or a camera device 11 with multiple lenses and sensors. The acquisition result is the source point cloud data (B). One or more point cloud frames are encoded by the G-PCC encoder 12 into an encoded G-PCC bit stream (E), including an encoded geometry bit stream and an attribute bit stream. Then, the file encapsulator 13 encapsulates one or more encoded bit streams (E) into a media file (F) for file playback, or into a sequence (Fs) of initialization segments and media segments for streaming according to a specific media container file format.

[0043] The file encapsulator 13 also includes metadata into the file or segment, and (Fs) is delivered to the user end through the delivery mechanism 14; the file encapsulator 15 on the user end decapsulates (Fs) to obtain one or more decapsulated encoded bit streams (E'), and decodes (E') through the G-PCC decoder 16 to obtain one or more decoded point cloud frames (D'), and the presentation component 17 presents the virtual scene (A') corresponding to the one or more point cloud frames (D') on the display component 18.

[0044] Below, a brief introduction to the point cloud coding technology is given in conjunction with Figure 2. Figure 2 is a schematic diagram of the point cloud coding framework provided by an embodiment of the present application. For point cloud data, from the perspective of data acquisition method, it can be divided into dense point cloud and sparse point cloud; from the perspective of data time series type, it can be divided into static point cloud and dynamic point cloud. Mainstream point cloud coding technology can be divided into geometric structure-based point cloud coding and projection-based point cloud coding for different point cloud data types. Take G-PCC in the international audio and video coding standard Moving Picture Experts Group (MPEG) and the point cloud coding standard (Audio Video Coding Standard-Point Cloud Compression, AVS-PCC) in the Chinese national digital audio and video coding standard as examples for introduction.

[0045] G-PCC and AVS-PCC are both targeted at static, sparse point clouds, and their encoding frameworks are roughly the same. As shown in Figure 2, point cloud encoding includes geometric structure encoding and attribute information encoding. For geometric structure encoding, the main operations and processing are as follows:

[0046] S21, Pre-processing: including coordinate transformation and voxelization. Through scaling and translation operations, the point cloud data in 3D space is converted into integer form and its minimum geometric position is moved to the coordinate origin.

[0047] S22, Geometry encoding: Geometry encoding can include multiple modes that can be used under different conditions. For example, geometry encoding can include octree-based geometry encoding (Octree) and triangle representation-based geometry encoding (Trisoup).

[0048] Octree-based geometry coding (Octree): An octree is a tree-like data structure that evenly divides a predefined bounding box in 3D space, with each node having eight children. By indicating whether each child node in the octree is occupied using '1' or '0', occupancy codes are generated as the bitstream of point cloud geometry information.

[0049] Trisoup: Divide the point cloud into blocks of a certain size, locate the intersection points of the point cloud surfaces at the edges of the blocks, and construct triangles. This compression of geometric information is achieved by encoding the intersection points.

[0050] S23, Geometry Quantization: The degree of quantization fineness is typically determined by the QP (Quantization Parameter). A larger QP value means that coefficients with a larger value range will be quantized to the same output, which generally results in greater distortion and a lower bitrate. Conversely, a smaller QP value means that coefficients with a smaller value range will be quantized to the same output, which generally results in less distortion and a higher bitrate. In point cloud coding, quantization is performed directly on the coordinate information of the points.

[0051] S24, Geometry Entropy Encoding: Using octree-based geometry coding as an example, this method performs statistical compression encoding on the octree's occupancy code information, ultimately outputting a binary (0 or 1) compressed bitstream. Statistical coding is a lossless encoding method that can effectively reduce the bitrate required to express the same signal. A commonly used statistical coding method is CABAC (Content Adaptive Binary Arithmetic Coding).

[0052] For attribute information encoding, the main operations and processing are as follows:

[0053] S25, Attribute Recoloring: In the case of lossy encoding, after the geometric information is encoded, the encoder needs to decode and reconstruct the geometric information, that is, restore the coordinate information of each point in the 3D point cloud. The attribute information corresponding to one or more neighboring points in the original point cloud data is searched and used as the attribute information of the reconstructed point.

[0054] S26, Attribute Transform Coding (Transform): Attribute transform coding includes three modes that can be used under different conditions.

[0055] Predictive Transform Coding (PTC): This method selects subsets of points based on distance and divides the point cloud into multiple levels of detail (LoDs), achieving a point cloud representation from coarse to fine. Adjacent layers can achieve bottom-up prediction, where neighboring points in the coarse layer predict the attributes of points introduced in the fine layer to obtain the corresponding residual signal. Points in the lowest layer are used as reference information for encoding.

[0056] Lifting Transform: Based on the prediction of adjacent layers of LoD, a weight update strategy for neighboring points is introduced to ultimately obtain the predicted attribute value of each point and the corresponding residual signal.

[0057] Region Adaptive Hierarchical Transform (RAHT): Attribute information is transformed into a transform domain through RAHT, which is called transform coefficients.

[0058] S27, Attribute Quantization: The degree of quantization is usually determined by the QP. In predictive transform coding and lifting transform coding, the residual values ​​are quantized before entropy coding; in RAHT, the transform coefficients are quantized before entropy coding.

[0059] S28, Attribute Entropy Coding: Quantized attribute residual signals or transform coefficients are typically compressed using run-length coding and arithmetic coding. The corresponding coding mode, quantization parameters, and other information are also encoded using an entropy encoder.

[0060] Following the encoding process described above, at the decoding end, after receiving the compressed bitstream, the decoder first performs entropy decoding to obtain various pattern information, quantized geometric information, and attribute information. The geometric information is then dequantized to obtain reconstructed 3D point position information. The attribute information is then dequantized to obtain residual information. This information is then validated against the reference signal using the adopted transform mode to obtain reconstructed attribute information. This information is then sequentially mapped to the geometric information, generating the reconstructed point cloud data.

[0061] Below, we briefly introduce the preprocessing steps in point cloud coding technology with reference to Figure 3. Figure 3 is a schematic diagram of a point cloud bounding box provided by one embodiment of the present application. A point cloud bounding box is a minimum cuboid that contains all data points in the input point cloud; that is, the point cloud bounding box shown in Figure 3 contains all data points in the humanoid point cloud shown, and the point cloud bounding box is the minimum cuboid among the cuboids that contain all data points in the point cloud.

[0062] In the preprocessing step, the origin and size of the point cloud bounding box need to be determined. The floating point coordinates of the kth data point of the input point cloud can be expressed as (x k ,y k , z k ), where k is an integer less than K, and K is the number of data points in the point cloud.

[0063] First, determine the maximum and minimum values ​​of each coordinate axis in the three-dimensional coordinate system of the point cloud, and obtain them as follows: min =min(x 0 ,x 1 ,…,x k-1 ) y min =min(y 0 ,y 1 ,…,y k-1 ) z min =min(z 0 ,z 1 ,…,z k-1 ) x max =max(x 0 ,x 1 ,…,x k-1 ) y max =max(y 0 ,y 1 ,…,y k-1 ) z max =max(z 0 ,z 1 ,…,z k-1 )

[0064] Among them, the function min(s 0 ,s 1 ,…,s k-1 ) means taking the minimum value of the current input, function max(s 0 ,s 1 ,…,s k-1 ) means taking the maximum value of the current input, function min(s 0 ,s 1 ,…,s k-1 ) The value of s can be x, y, or z.

[0065] Next, calculate the origin of the point cloud bounding box (x origin ,y origin , z origin ), obtained as follows: x origin =int(floor(x min )) y origin =int(floor(y min )) z origin =int(floor(z min ))

[0066] Among them, the function int(s) represents rounding, the function floor(s) returns the maximum integer value less than or equal to s, and the value of s in the function floor(s) can be x, y, or z.

[0067] And, the size of the point cloud bounding box in the three-dimensional coordinate axis X axis, Y axis, and Z axis can be calculated as follows: BoundingBoxSize x =int(x max -x origin )+1 BoundingBoxSize y =int(y max -y origin )+1 BoundingBoxSize z =int(z max -z origin )+1

[0068] Among them, the function int(s) represents rounding, BoundingBoxSize s Indicates the size in the s-axis direction. The value of s can be x, y, or z.

[0069] The following is an explanation of some terms involved in this application.

[0070] Node space: The point cloud data is divided according to the tree structure, and the point cloud space corresponding to the nodes in the tree structure is the node space.

[0071] Figure 4 shows a schematic diagram of an octree node space provided by an embodiment of the present application. Figure 4 takes a right-handed coordinate system as an example to show the spatial position of the subnodes of a node during the octree partitioning process. The node space of the node is evenly divided into eight subnode spaces to represent the eight subnodes of the node, and these eight subnodes are numbered respectively. Figure 4 shows a possible implementation method for numbering subnodes.

[0072] Low plane / high plane: The octree node space shown in FIG4 is divided into a high plane and a low plane, where the high plane and the low plane are relative to the coordinate axis.

[0073] For example, if the node space is divided into a high plane and a low plane along the Z-axis, child nodes 1, 3, 5, and 7 are located in the high plane, and child nodes 0, 2, 4, and 6 are located in the low plane; that is, child nodes 1, 3, 5, and 7 are high-plane child nodes, and child nodes 0, 2, 4, and 6 are low-plane child nodes. For another example, if the node space is divided into a high plane and a low plane along the X-axis, child nodes 0, 1, 2, and 3 are located in the low plane, and child nodes 4, 5, 6, and 7 are located in the high plane. For another example, if the node space is divided into a high plane and a low plane along the Y-axis, child nodes 0, 1, 4, and 5 are located in the low plane, and child nodes 2, 3, 6, and 7 are located in the high plane.

[0074] In some embodiments, when the current node is offset along the first coordinate axis and the second coordinate axis, the high plane and the low plane are divided along the third coordinate axis. For example, when the current node is offset along the XY direction, the high plane and the low plane are divided along the Z axis.

[0075] It should be noted that the coordinate axis representation method, high / low plane division method, and sub-node labeling method shown in Figure 4 are only possible situations, and this application does not limit them.

[0076] Octree encoding: An octree is a tree-like data structure, currently used primarily in G-PCC and AVS-PCC to partition point clouds. For point cloud data in 3D space, the octree partitioning method evenly divides the pre-defined bounding box layer by layer, with each node having eight child nodes. By indicating the occupancy of each octree child node with a '1' or '0' value, occupancy code information is generated as the bitstream of the point cloud geometry information.

[0077] Octrees are constructed based on the Morton sequence. This involves converting the 3D coordinates of point cloud data into corresponding Morton codes by querying a Morton sequence table. The order of each Morton code is used to determine the corresponding point in each octree layer. Currently, mainstream point cloud coding techniques use octree partitioning to represent point cloud data, employing different processing procedures for geometric and attribute information.

[0078] Figure 5 illustrates an octree encoding scheme provided by one embodiment of the present application. Figure 5 (a) on the left shows a schematic diagram of the node space, and Figure 5 (b) on the right shows the corresponding octree encoding schematic. Shaded areas in the node space schematic indicate occupied areas, while black solid circles in the octree encoding schematic indicate occupied areas.

[0079] The entire cube in (a) on the left side of Figure 5 corresponds to node 21 in the first layer of the octree in (b) on the right side. The node space of this node is first divided into eight child node spaces. As shown in (a), child nodes 0 and 7 are occupied, corresponding to the 0th child node 22 and the 7th child node 23 in the second layer of the octree in (b). Each occupied child node is further divided into eight child nodes, resulting in the third layer of the octree. As shown in (b), the 4th child node 24 and the 5th child node 25 of the 0th child node 22 in the second layer are occupied, and the 0th child node 26 and the 5th child node 27 of the 7th child node 23 in the second layer are occupied, and so on.

[0080] By partitioning the octree, each occupied node can be encoded. For example, through binary encoding, 1 indicates that the child node is occupied, and 0 indicates that the child node is unoccupied. Therefore, the code of node 21 in the first layer is 10000001, the code of the 0th child node 22 in the second layer is 00011000, the code of the 7th child node 23 in the second layer is 10001000, and so on.

[0081] In addition, similar to octree coding are quadtree coding, binary tree coding, etc. This application does not impose any restrictions on this.

[0082] Block structure coding: It is used to encode the tree data structure after the point cloud is spatially divided by the tree data structure. The block structure coding method introduces a concept similar to the coding block in video coding, which divides the three-dimensional space into several The size of each node is non-overlapping, and each macroblock is used as the basic coding unit. The user can set the octree partition depth d or control the size of the 3D macroblock through the parameter nodeSizeLog2. Each node is encoded as a macroblock (Largest Coding Unit, LCU) when the following conditions are met: nodeSizeLog2>max(d x ,d y ,d z )

[0083] Figure 6, using a 2D quadtree as an example, illustrates a block-structured encoding method according to one embodiment of the present application. As shown in Figure 6, encoding begins at the second level of the 2D quadtree partitioning, following the macroblock order. Each macroblock can be considered a separate tree partitioning structure; that is, encoding is performed separately for the left macroblock 31 and the right macroblock 32.

[0084] In one possible implementation, a breadth-first traversal is used within each macroblock, encoding the data from top to bottom in layer order. This block-structured encoding approach offers significant flexibility. Different geometric encoding methods can be used for each macroblock based on its characteristics, and attribute encoding can also be performed after the geometry encoding of a macroblock is complete. This eliminates the need to wait for the entire point cloud to be geometrically encoded before performing attribute encoding.

[0085] Parent and Child Nodes: A parent node is located in the previous layer of the current node, and the node space of the current node is all or part of the node space of the parent node. A child node is located in the next layer of the current node, and the node space of the child node is all or part of the node space of the current node. For example, in Figure 5, node 21 is the parent node of node 22, and node 26 is the child node of node 23. For another example, node 26 and node 27 are child nodes (also called sibling nodes, nodes on the same layer, nodes at the same level, etc.) of the same parent node.

[0086] Neighbor nodes: These are nodes adjacent to a node. For example, the node's parent node, its children, or nodes that intersect with the node. Neighbor nodes are used in many octree algorithms, such as determining a node's spatial location and querying for adjacent data elements.

[0087] As shown in FIG7 , a simplified block diagram of a communication system provided in accordance with one embodiment of the present application is shown. Communication system 200 includes multiple devices that can communicate with each other via, for example, a network 250, which can be a wired or wireless network. For example, communication system 200 includes a first device 210 and a second device 220 interconnected via network 250. In the embodiment of FIG7 , first device 210 and second device 220 perform unidirectional data transmission. For example, first device 210 can encode point cloud data to obtain encoded point cloud data. For example, the point cloud data can be a point cloud frame stream captured by first device 210. First device 210 transmits the encoded point cloud data to second device 220 via network 250. The encoded point cloud data is transmitted in the form of one or more encoded point cloud code streams (or point cloud bitstreams). Second device 220 can receive the encoded point cloud data from network 250, decode the encoded point cloud data to recover the point cloud data, and present a point cloud based on the recovered point cloud data. One-way data transmission is more common in applications such as media services.

[0088] In another embodiment, the communication system 200 includes a third device 230 and a fourth device 240 that perform bidirectional transmission of encoded point cloud data. For bidirectional data transmission, each of the third device 230 and the fourth device 240 may encode point cloud data for transmission to the other of the third device 230 and the fourth device 240 via the network 250. Each of the third device 230 and the fourth device 240 may also receive the encoded point cloud data transmitted by the other of the third device 230 and the fourth device 240, decode the encoded point cloud data to restore the point cloud data, and display the point cloud on an accessible display device based on the restored point cloud data.

[0089] In the embodiment of FIG7 , the first device 210 , the second device 220 , the third device 230 , and the fourth device 240 may be computer devices such as servers, personal computers, and smart terminals, but the principles disclosed in this application may not be limited thereto. The embodiments of this application are applicable to personal computers (PCs), mobile phones, tablet computers, virtual reality / augmented reality devices, media players, and / or dedicated video conferencing devices. Network 250 represents any number of networks that transmit encoded point cloud data between the first device 210 , the second device 220 , the third device 230 , and the fourth device 240 , including, for example, wired and / or wireless communication networks. The communication network 250 may exchange data in circuit switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network, and / or the Internet. For the purposes of this application, unless otherwise explained below, the architecture and topology of the network 250 may be irrelevant to the operations disclosed in this application.

[0090] As an example, FIG8 illustrates the placement of a video encoder and a video decoder in a streaming environment. The subject matter disclosed herein is equally applicable to other point cloud-enabled applications, including, for example, virtual 3D conferencing, digital TV, and storing compressed point clouds on digital media such as CDs (Compact Discs), DVDs (Digital Versatile Discs), and memory sticks.

[0091] Streaming system 300 may include an acquisition subsystem 313, which may include a point cloud source 301, such as a 3D camera. Point cloud source 301 creates an uncompressed point cloud data stream 302. Point cloud data stream 302 is depicted as a thicker line to emphasize the higher data volume of the point cloud data stream compared to encoded point cloud data 304 (or an encoded point cloud code stream). Point cloud data stream 302 may be processed by an electronic device 320, which includes a point cloud encoder 303 coupled to point cloud source 301. Point cloud encoder 303 may include hardware, software, or a combination of hardware and software to implement or embody various aspects of the disclosed subject matter, as described in greater detail below. Encoded point cloud data 304 (or an encoded point cloud code stream) is depicted as a thinner line to emphasize the lower data volume of the encoded point cloud data 304, which may be stored on a streaming server 305 for future use. One or more streaming client subsystems, such as client subsystem 306 and client subsystem 308 in FIG3 , can access streaming server 305 to retrieve copies 307 and 309 of encoded point cloud data 304. Client subsystem 306 can include, for example, a point cloud decoder 310 in electronic device 330. Point cloud decoder 310 decodes incoming copy 307 of encoded point cloud data 304 and generates an output point cloud data stream 311 that can be presented on a display 312 (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, encoded point cloud data 304, point cloud data 307, and point cloud data 309 (e.g., a point cloud code stream) can be encoded according to certain point cloud encoding / compression standards.

[0092] It should be noted that electronic device 320 and electronic device 330 may include other components (not shown). For example, electronic device 320 may include a point cloud decoder (not shown), and electronic device 330 may further include a point cloud encoder (not shown). The point cloud decoder is used to decode the received encoded point cloud data 304, and the point cloud encoder is used to encode the point cloud data.

[0093] It should be noted that the technical solution provided in the embodiment of the present application can be applied to the source coding standard (Audio Video Coding Standard, AVS), such as AVS3 or the next generation video coding and decoding standard and other standards that support point cloud coding, and the embodiment of the present application is not limited to this.

[0094] It should also be noted that the execution entity of each step of the method provided in the embodiment of the present application can be an encoding end device or a decoding end device. In the process of point cloud encoding and point cloud decoding, the technical solution provided in the embodiment of the present application can be used to perform attribute prediction. Both the encoding end device and the decoding end device can be computer devices, which refer to electronic devices with data calculation, processing and storage capabilities, such as PCs, mobile phones, tablets, media players, virtual reality / augmented reality devices, dedicated video conferencing equipment, servers, etc.

[0095] In addition, the method provided in this application can be used alone or in combination with other methods in any order. The encoding end device and the decoding end device based on the method provided in this application can be implemented by one or more processors or one or more integrated circuits respectively.

[0096] Please refer to Figure 9, which shows a flow chart of a method for determining a geometric pattern according to one embodiment of the present application. For ease of explanation, only a computer device is used as the subject for executing each step. The method is executed by a decoding end / decoding end device / computer device and may include all or part of the following steps 420 and 440:

[0097] Step 420: Obtain geometric information of the first node;

[0098] The current node is the node currently being decoded.

[0099] A first node is a node that provides information for determining the geometry of the current node. The first node is geometrically associated with the current node and contains historical node decoding information and / or neighborhood information about the current node. For example, the first node may be a neighbor node of the current node; another example may be the previous decoding node of the current node; another example may be the parent node of the current node, and so on.

[0100] In some embodiments, the first node is at least one of the following nodes:

[0101] ● Reference nodes;

[0102] ●Child nodes of the reference node;

[0103] ●The decoded children of the current node;

[0104] ●The child nodes to be decoded of the current node.

[0105] In some embodiments, the reference node is selected from at least one of the following nodes:

[0106] ●Decoded nodes;

[0107] ●Non-empty decoded nodes;

[0108] ●Decoded nodes at the same level as the current node;

[0109] ●A decoded node at the same level as the current node that is not empty;

[0110] ●Decoded nodes at fixed positions;

[0111] ● A decoded node that is fixed in position and not empty;

[0112] ●The parent node of the current node;

[0113] ●Neighbor nodes that share the same parent node as the current node;

[0114] ●Child nodes of neighbor nodes that have the same parent node as the current node.

[0115] Among them, a decoded node refers to a node that has been decoded in the previous order, including the parent node of the current node; a non-empty decoded node refers to a node that has been decoded in the previous order and has at least one occupied child node; a decoded node at the same level as the current node refers to a decoded node that is located at the same level as the current node in the octree partition, that is, excluding the parent node of the current node; a decoded node at the same level as the current node and that is non-empty refers to a decoded node that is located at the same level as the current node in the octree partition and has at least one occupied child node; a decoded node at a fixed position refers to a decoded node at a fixed position relative to the current node; a decoded node at a fixed position and that is non-empty refers to a decoded node that is at a fixed position relative to the current node and has at least one occupied child node. The fixed position can be understood as a fixed offset position, a specified position, or similar meanings.

[0116] In some embodiments, a decoded node at a fixed position is obtained by setting a preset offset. The decoded node at a fixed position includes at least one of the following (taking the current node coordinates as (x, y, z) as an example):

[0117] The current node is offset along the first coordinate axis by the decoded node corresponding to the first preset amount, where the first preset amount is a preset offset along the first coordinate axis. For example, if the first coordinate axis is the X-axis and the first preset amount is set to -1 and -2, the reference nodes are (x-1, y, z) and (x-2, y, z).

[0118] The current node is offset along the second coordinate axis by the corresponding decoded node, where the second preset amount is a preset offset along the second coordinate axis. For example, if the second coordinate axis is the Y axis and the second preset amount is set to -1 and -2, the reference nodes are (x, y-1, z) and (x, y-2, z).

[0119] The decoded node corresponding to the current node is offset by a third preset amount along the first coordinate axis and a fourth preset amount along the second coordinate axis. The third preset amount is a preset offset along the first coordinate axis, and the fourth preset amount is a preset offset along the second coordinate axis. For example, if the first coordinate axis is the X-axis and the second coordinate axis is the Y-axis, and the third preset amount is set to -1 and the fourth preset amount is set to -1, then the reference node is (x-1, y-1, z).

[0120] The first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system.

[0121] In some embodiments, at least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount is:

[0122] ●Default value or value group;

[0123] ●The corresponding value or value group when the second condition is met;

[0124] ●determined based on the second condition being met;

[0125] ●Determined based on at least one type of information.

[0126] The default value or value group may be pre-set. The second condition and the at least one information will be described in detail in the following embodiments.

[0127] In some embodiments, at least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount is changed based on a corresponding offset value change, where the offset value change is:

[0128] ●Default value or value group;

[0129] ●The corresponding value or value group when the second condition is met;

[0130] ●determined based on the second condition being met;

[0131] ●Determined based on at least one type of information.

[0132] For example, when the number of non-empty nodes in the decoded nodes is large, a larger offset value variation is selected so that the offset range can be expanded to obtain more non-empty nodes.

[0133] For another example, determine the offset threshold xoffset along the X-axis and the offset value change addXoffset along the X-axis. Select three fixed-position nodes. If two of the selected fixed-position nodes are empty, addXoffset = 2; if one of the selected fixed-position nodes is empty, addXoffset = 1; if there are no empty nodes, addXoffset = 0. The preset value is the sum of the offset threshold xoffset and the offset value change addXoffset. That is, when there are more empty nodes, the preset value based on the change in the offset value is larger; when there are fewer empty nodes, the preset value based on the change in the offset value is smaller.

[0134] In some embodiments, at least one of the first coordinate axis direction and the second coordinate axis direction is:

[0135] ●Default coordinate axis direction;

[0136] The corresponding coordinate axis direction when the second condition is met;

[0137] ●determined based on the second condition being met;

[0138] ●Determined based on at least one type of information.

[0139] The default coordinate axis direction may be preset. The second condition and the at least one information will be described in detail in the following embodiments.

[0140] The second condition is related to at least one of the following information:

[0141] Patch information (e.g., patch density or point cloud bounding box size);

[0142] The relative position of the current node;

[0143] ●Placeholder information of the parent node of the current node;

[0144] ●The occupancy information of the neighbor nodes of the current node;

[0145] ●Placeholder information of the first k reference nodes.

[0146] Among them, geometric pieces refer to different geometric shapes, such as squares, rectangles, circles, etc. k can be a preset value. The relative position of the current node refers to the information of the position of the current node relative to other nodes / parent nodes / neighbor nodes / reference nodes. The relative position of the current node can be described by at least one of the coordinates, layer, and encoding of the current node. Placeholder information refers to the information of the occupied position. For example, the placeholder information of the parent node of the current node refers to the information of the position occupied by the parent node of the current node, which can specifically include at least one of the coordinates, layer, and encoding of the parent node of the current node.

[0147] The at least one information includes at least one of the following information:

[0148] Quantization parameters;

[0149] ●Data geometric accuracy;

[0150] ●Geometric patch density;

[0151] ●Geometric piece size;

[0152] ●Placeholder information for reference nodes;

[0153] The relative position of the current node;

[0154] ●The parent node of the current node and its neighbor nodes.

[0155] The geometric accuracy of the data can be described by the geometric accuracy of the data's plane position, height, shape, scale, etc.

[0156] The aforementioned preset values ​​and coordinate axis directions can all be default values ​​or preset values; or some can be default values ​​and some can be determined based on the second condition or related information; or all can be determined based on related information, etc. That is, any of the above methods for selecting preset values ​​and coordinate axes can be used, or a combination thereof.

[0157] For example, a default value group is used as the preset amount; for another example, the second condition is used to indicate parameter Q1 of the tile density. If the current tile density is greater than Q1, the corresponding value k1 is selected; otherwise, the value k2 is selected; for another example, there are multiple candidate values / groups that meet the second condition, and one / group is selected as the preset amount; for another example, the preset amount is determined based on the tile information, and if the tile density is small, the preset amount is increased; for another example, if the current node is the only child node of the parent node, the preset amount is increased; for another example, if the neighbor nodes of the parent node of the current node are empty, the preset amount is increased, etc. This application does not limit the method of selecting the preset amount and the coordinate axis.

[0158] In some embodiments, a decoded node at a fixed position is obtained by setting a preset offset and a fixed multiple. Exemplarily, the product of the preset offset and the fixed multiple is the actual offset used. The decoded node at a fixed position includes at least one of the following (taking the current node coordinates as (x, y, z) as an example):

[0159] The current node is offset along the first coordinate axis by the decoded node corresponding to the first multiple offset. The first multiple offset is the offset obtained by multiplying the first preset amount by the first multiple. The first preset amount is a preset offset along the first coordinate axis. For example, if the first coordinate axis is the X-axis, and the first preset amount is set to -1 or -2, and the first multiple is set to 2, then the reference nodes are (x-2, y, z) and (x-4, y, z).

[0160] The current node is offset along the second coordinate axis by the decoded node corresponding to the second multiple offset. The second multiple offset is the offset obtained by multiplying the second preset amount by the second multiple. The second preset amount is a preset offset along the second coordinate axis. For example, if the second coordinate axis is the Y axis, and the second preset amount is set to -1 or -2, and the second multiple is set to 4, then the reference nodes are (x, y - 4, z) and (x, y - 8, z).

[0161] ●The decoded node corresponding to the current node is offset by the third multiple offset along the first coordinate axis and by the fourth multiple offset along the second coordinate axis. The third multiple offset is the offset obtained by multiplying the third preset amount and the third multiple. The fourth multiple offset is the offset obtained by multiplying the fourth preset amount and the fourth multiple. The third preset amount is a preset offset along the first coordinate axis, and the fourth preset amount is a preset offset along the second coordinate axis. Taking the first coordinate axis as the X-axis and the second coordinate axis as the Y-axis as an example, set the first preset amount to m3, the second preset amount to m4, set the third multiple and the fourth multiple to 1, then the reference node is (x-m3, y-m4, z).

[0162] Among them, the first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system; the first multiple, the second multiple, the third multiple and the fourth multiple are pre-set fixed multiples, which can be selected according to actual conditions, for example, the fixed multiples are selected based on the quantitative parameters of the point cloud.

[0163] In some embodiments, at least one of the first preset amount, the second preset amount, the third preset amount, the fourth preset amount, the first multiple, the second multiple, the third multiple, and the fourth multiple is:

[0164] ●Default value or value group;

[0165] ●The corresponding value or value group when the second condition is met;

[0166] ● selected from a plurality of candidate values ​​based on a second condition being met;

[0167] ●Determined based on at least one type of information.

[0168] The default value or value group may be pre-set. The second condition and the at least one information will be described in detail in the following embodiments.

[0169] In some embodiments, at least one of the first coordinate axis direction and the second coordinate axis direction is:

[0170] ●Default value or value group;

[0171] ●The corresponding value or value group when the second condition is met;

[0172] ●determined based on the second condition being met;

[0173] ●Determined based on at least one type of information.

[0174] The second condition is related to at least one of the following information:

[0175] Geometry information;

[0176] The relative position of the current node;

[0177] ●Placeholder information of the parent node of the current node;

[0178] ●The occupancy information of the neighbor nodes of the current node;

[0179] ●Placeholder information of the first k reference nodes.

[0180] The at least one information includes at least one of the following information:

[0181] Quantization parameters;

[0182] ●Data geometric accuracy;

[0183] ●Geometric patch density;

[0184] ●Geometric piece size;

[0185] ●Placeholder information for reference nodes;

[0186] The relative position of the current node;

[0187] ●The parent node of the current node and its neighbor nodes.

[0188] In some embodiments, a decoded node at a fixed position is obtained by setting an offset threshold. The decoded node at a fixed position includes at least one of the following (taking the current node coordinates as (x, y, z) as an example):

[0189] The current node's offset along the first coordinate axis is less than the decoded node corresponding to the first offset threshold. The first offset threshold is the maximum value of the offset along the first coordinate axis. Taking the first coordinate axis as the X axis, for example, the first offset threshold is set to M1, then the reference node is (x-m1, y, z), where m1 <M1。

[0190] The current node's offset along the second coordinate axis is less than the decoded node corresponding to the second offset threshold. The second offset threshold is the maximum value of the offset along the second coordinate axis. Taking the second coordinate axis as the Y axis as an example, setting the second offset threshold to M2, the reference node is (x, y - m2, z), where m2 <M2。

[0191] The sum of the offset of the current node along the first coordinate axis and the offset along the second coordinate system is less than the decoded node corresponding to the third offset threshold. The third offset threshold is the maximum value of the sum of the offsets along the first coordinate axis and the second coordinate axis. For example, if the first coordinate axis is the X axis and the second coordinate axis is the Y axis, and the third offset threshold is set to M3, then the reference node is (x-m1, y-m2, z), where m1+m2 <M3。

[0192] The first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system.

[0193] Among them, the aforementioned first offset threshold, second offset threshold, third offset threshold, fourth offset threshold, first coordinate axis direction and second coordinate axis direction are determined based on at least one of the following information: quantization parameter; data geometric accuracy; geometric patch density; geometric patch size; relative position of the current node; the parent node of the current node and its neighbor nodes.

[0194] In some embodiments, at least one of the first offset threshold, the second offset threshold, the third offset threshold, and the fourth offset threshold is:

[0195] ●Default value or value group;

[0196] ●The corresponding value or value group when the second condition is met;

[0197] ●determined based on the second condition being met;

[0198] ●Determined based on at least one type of information.

[0199] In some embodiments, at least one of the first coordinate axis direction and the second coordinate axis direction is:

[0200] ●Default coordinate axis direction;

[0201] The corresponding coordinate axis direction when the second condition is met;

[0202] ●determined based on the second condition being met;

[0203] ●Determined based on at least one type of information.

[0204] The second condition is related to at least one of the following information:

[0205] Geometry information;

[0206] The relative position of the current node;

[0207] ●Placeholder information of the parent node of the current node;

[0208] ●The occupancy information of the neighbor nodes of the current node;

[0209] ●Placeholder information of the first k reference nodes.

[0210] Among them, geometric pieces refer to different geometric shapes, such as squares, rectangles, circles, etc. k can be a preset value. The relative position of the current node refers to the information of the position of the current node relative to other nodes / parent nodes / neighbor nodes / reference nodes. The relative position of the current node can be described by at least one of the coordinates, layer, and encoding of the current node. Placeholder information refers to the information of the occupied position. For example, the placeholder information of the parent node of the current node refers to the information of the position occupied by the parent node of the current node, which can specifically include at least one of the coordinates, layer, and encoding of the parent node of the current node.

[0211] The at least one information includes at least one of the following information:

[0212] Quantization parameters;

[0213] ●Data geometric accuracy;

[0214] ●Geometric patch density;

[0215] ●Geometric piece size;

[0216] ●Placeholder information for reference nodes;

[0217] The relative position of the current node;

[0218] ●The parent node of the current node and its neighbor nodes.

[0219] The geometric accuracy of the data can be described by the geometric accuracy of the data's plane position, height, shape, scale, etc.

[0220] In some embodiments, decoded nodes at fixed positions are obtained by setting an offset threshold, and a number threshold is set for the number of decoded nodes to be selected, which may be a fixed number. Decoded nodes are selected in a predetermined order until the fixed number of decoded nodes is reached.

[0221] In some embodiments, the decoded nodes at fixed positions are selected as follows: a fixed number of decoded nodes that meet a first condition are selected in a first order, where the first order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order. The first condition is a pre-set condition, for example, the node is a non-empty node.

[0222] In some embodiments, among decoded nodes whose offset along the first coordinate axis of the current node is less than the first offset, a fixed number of decoded nodes that meet the selection criteria are selected according to a first order; among decoded nodes whose offset along the second coordinate axis of the current node is less than the second offset, a fixed number of decoded nodes that meet the selection criteria are selected according to a second order; among decoded nodes whose sum of the offset along the first coordinate axis and the offset along the second coordinate system of the current node is less than the third offset, a fixed number of decoded nodes that meet the selection criteria are selected according to a third order; wherein the first order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; the second order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; the third order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order, the first offset is at least one offset less than a first offset threshold, the second offset is at least one offset less than the second offset threshold, and the third offset is at least one offset less than the third offset threshold.

[0223] In other embodiments, among the decoded nodes corresponding to the current node whose offset along the first coordinate axis is less than the first offset threshold, a fixed number of decoded nodes that meet the selection criteria are selected according to a first order; among the decoded nodes corresponding to the current node whose offset along the second coordinate axis is less than the second offset threshold, a fixed number of decoded nodes that meet the selection criteria are selected according to a second order; among the decoded nodes corresponding to the current node whose sum of the offset along the first coordinate axis and the offset along the second coordinate system is less than a third offset threshold, a fixed number of decoded nodes that meet the selection criteria are selected according to a third order; wherein the first order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; the second order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; and the third order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order.

[0224] The preset order is the order in which nodes at fixed positions are selected; the default order is the order determined by the decoder or parsed from the parameter set or code stream corresponding to the current node; the coordinate axis order is the order selected sequentially or alternately according to the coordinate axis; for linear order, Hilbert order, or Morton order, please refer to Figure 10. Figure 10 shows a schematic diagram of the order for selecting decoded nodes at fixed positions provided by an exemplary embodiment of the present application.

[0225] Part (a) of Figure 10 shows a schematic diagram of the Hilbert order along the X-axis. Figure (a) shows that when the offset threshold along the X-axis and the offset threshold along the Y-axis are both 4, there are 16 decoded nodes that can be selected in fixed positions. They are: (x, y), (x-1, y), (x-1, y-1), (x, y-1), (x, y-2), (x-1, y-2), (x-2, y-2), (x-2, y-1), (x-2, y), (x-3, y), (x-3, y-1), (x-3, y-2), (x-3, y-3), (x-2, y-3), (x-1, y-3), (x, y-3). If the number threshold is a value less than 16, the selection is carried out in sequence according to the direction of the arrow in Figure (a) until the fixed number of decoded nodes is full. For example, when the number threshold is 3, the fixed number of selected nodes is also 3, and (x, y), (x-1, y), and (x-1, y-1) are selected in sequence as decoded nodes at fixed positions.

[0226] Part (b) of Figure 10 shows a schematic diagram of the Morton / zigzag sequence along the X-axis. Figure (b) shows that when the offset threshold along the X-axis and the offset threshold along the Y-axis are both 4, there are 16 decoded nodes with optional fixed positions. They are (x, y), (x-1, y), (x, y-1), (x-1, y-1), (x, y-2), (x-1, y-2), (x, y-3), (x-1, y-3), (x-2, y), (x-3, y), (x-2, y-1), (x-3, y-1), (x-2, y-2), (x-3, y-2), (x-2, y-3), (x-3, y-3). If the number threshold is less than 16, nodes are selected in the direction of the arrows in Figure (b) until the fixed number of decoded nodes is reached. For example, if the number threshold is 4, the fixed number of nodes selected is also 4, and (x, y), (x-1, y), (x, y-1), and (x-1, y-1) are selected in sequence as decoded nodes at fixed positions.

[0227] Part (c) of Figure 10 shows a schematic diagram of the linear sequence along the X-axis. Figure (c) shows that when the offset threshold along the X-axis and the offset threshold along the Y-axis are both 4, there are 16 decoded nodes that can be selected in fixed positions. They are: (x, y), (x-1, y), (x-2, y), (x-3, y), (x, y-1), (x-1, y-1), (x-2, y-1), (x-3, y-1), (x, y-2), (x-1, y-2), (x-2, y-2), (x-3, y-2), (x, y-3), (x-1, y-3), (x-2, y-3), (x-3, y-3). If the number threshold is a value less than 16, the selection is carried out in sequence according to the direction of the arrow in Figure (c) until the fixed number of decoded nodes is full. For example, when the number threshold is 5, the fixed number of selected nodes is also 5, then (x, y), (x-1, y), (x-2, y), (x-3, y), (x, y-1) are selected in sequence as the decoded nodes at fixed positions.

[0228] It should be noted that the method of selecting decoded nodes at fixed positions is not limited to the above method, and this application does not impose any restrictions on this.

[0229] A decoded node that is fixed in position and non-empty is a node among the decoded nodes at a fixed position that satisfies at least one occupied child node. A decoded node that is fixed in position and non-empty can be obtained by at least one of the following methods (taking the current node coordinates as (x, y, z) as an example):

[0230] ● After obtaining the decoded nodes at fixed positions through the foregoing method, select the non-empty decoded nodes among them. For example, within the range of the offset threshold, obtain all the decoded nodes at fixed positions and select all the non-empty nodes among them.

[0231] ● Select the decoded nodes at fixed positions based on the foregoing method of setting the offset threshold. When the decoded node at this fixed position is an empty node, increment its offset along the coordinate axis by one. For example, set the offset threshold along the X-axis direction to M1, then the node is (x - m1, y, z), where m1 < M1; if (x - m1, y, z) is an empty node, then m1 = m1 + 1; for another example, set the offset threshold along the Y-axis direction to M2, then the reference node is (x, y - m2, z), where m2 < M2; if (x, y - m2, z) is an empty node, then m2 = m2 + 1.

[0232] ● Set a count threshold. Select the decoded nodes at fixed positions based on the foregoing method of setting the offset threshold. When the decoded node at this fixed position is an empty node, increment its offset along the coordinate axis by one until the number of non-empty decoded nodes at fixed positions reaches the count threshold.

[0233] In some embodiments, select a fixed number of decoded nodes that meet the first condition in the first order until the fixed number (count threshold) of decoded nodes is selected; the first order can be any one of the default order, preset order, Hilbert order, Morton order, linear order, and coordinate axis order, and the first condition is that the node is non-empty.

[0234] In some embodiments, before step 420, determine whether the current node uses geometric mode encoding. When the current node uses geometric mode encoding, execute step 420 and step 440.

[0235] Step 440: Determine the geometric mode of the current node according to the geometric information of the first node.

[0236] The geometric mode is the mode information corresponding to the entropy decoding method. The geometric modes of point cloud data include the isolated point mode, plane mode, etc. Among them, the isolated point mode is used for the encoding and / or decoding of nodes determined to be isolated points; the plane mode is used for the encoding and / or decoding of nodes determined to be plane mode nodes. Schematically, the plane mode means that the reference node of the current node is on the same plane, or the decoded child nodes of the current node are on the same plane, etc.

[0237] Exemplarily, based on the geometric information of the first node, determine that the geometric mode of the current node is the target decoding mode. Among them, the target decoding mode is the decoding mode corresponding to the plane mode node.

[0238] In the case where the first node includes child nodes of the reference node, the geometric mode of the current node is determined based on the occupancy of the first node; in the case where the first node includes decoded child nodes of the current node, the geometric mode of the current node is determined based on the planar position of the first node, and so on.

[0239] Based on the geometric information of the first node, the geometric mode of the current node is determined; or, based on at least one threshold value and the geometric information of the first node, the geometric mode of the current node is determined. That is, the geometric mode of the current node can be determined only by the geometric information of the first node; or, the geometric mode of the current node can be determined by comparing the geometric information of the first node with at least one threshold value in combination with the acquired threshold value and the geometric information of the first node (for example, the child node of the reference node). Taking the example that the first node includes the child nodes of the reference node and the child nodes to be decoded of the current node, the geometric mode of the current node can be determined based on at least one threshold value, the child nodes of the reference node and the geometric information of the child nodes to be decoded of the current node. Specifically, the number of low-plane placeholder child nodes and the number of high-plane placeholder child nodes are counted; based on at least one threshold value, the geometric information of the child nodes to be decoded, the number of low-plane placeholder child nodes and the number of high-plane placeholder child nodes, the geometric mode of the current node is determined.

[0240] In some embodiments, the aforementioned at least one threshold includes a first threshold, a second threshold, a third threshold, and a fourth threshold.

[0241] In some embodiments, when the number of low-plane placeholder subnodes is less than a first threshold and the number of high-plane placeholder subnodes is greater than a second threshold, the current node is determined to be in the first decoding mode; or, when the number of low-plane placeholder subnodes is greater than a third threshold and the number of high-plane placeholder subnodes is less than a fourth threshold, the current node is determined to be in the second decoding mode. A low-plane placeholder subnode refers to an occupied subnode of a reference node located in the low plane, and a high-plane placeholder subnode refers to an occupied subnode of a reference node located in the high plane; or, a low-plane placeholder subnode refers to an occupied subnode of a reference node that meets a preset condition and is located in the low plane, and a high-plane placeholder subnode refers to an occupied subnode of a reference node that meets a preset condition and is located in the high plane, where the preset condition indicates whether the reference node is a high-plane node or a low-plane node.

[0242] It should be noted that a high-plane node refers to a node where all occupied child nodes are located in the high plane, and a low-plane node refers to a node where all occupied child nodes are located in the low plane; or, a high-plane node refers to a node that satisfies the condition that the number of occupied child nodes in the low plane is less than the number of the first child nodes and the number of occupied child nodes in the high plane is greater than the number of the second child nodes, and a low-plane node refers to a node that satisfies the condition that the number of occupied child nodes in the low plane is greater than the number of the third child nodes and the number of occupied child nodes in the high plane is less than the number of the fourth child nodes; where the number of the first child nodes, the number of the second child nodes, the number of the third child nodes, and the number of the fourth child nodes are preset values.

[0243] For example, set the first threshold k1, the second threshold k2, the third threshold k3, and the fourth threshold k4. Count the number of occupied child nodes in the low plane LowOccNum and the number of occupied child nodes in the high plane HighOccNum. When LowOccNum < k1 and HighOccNum > k2, determine that the current node is in the first decoding mode; when LowOccNum > k3 and HighOccNum < k4, determine that the current node is in the second decoding mode.

[0244] In some embodiments, when the number of occupied child nodes in the low plane is less than the first threshold, determine that the current node is in the first decoding mode; or, when the number of occupied child nodes in the high plane is less than the second threshold, determine that the current node is in the second decoding mode. Here, the occupied child nodes in the low plane refer to the occupied child nodes of the reference node that are located in the low plane, and the occupied child nodes in the high plane refer to the occupied child nodes of the reference node that are located in the high plane; or, the occupied child nodes in the low plane refer to the occupied child nodes of the reference node that meets the preset conditions and are located in the low plane, and the occupied child nodes in the high plane refer to the occupied child nodes of the reference node that meets the preset conditions and are located in the high plane, and the preset conditions are used to indicate that the reference node is a high-plane node or a low-plane node.

[0245] For example, set the first threshold k1 and the second threshold k2. Count the number of occupied child nodes in the low plane LowOccNum and the number of occupied child nodes in the high plane HighOccNum. When LowOccNum < k1, determine that the geometric mode of the current node is in the first decoding mode; when HighOccNum < k2, determine that the geometric mode of the current node is in the second decoding mode.

[0246] In some embodiments, when the to-be-decoded child node is located in the high plane, the number of occupied child nodes in the low plane is less than the first threshold, and the number of occupied child nodes in the high plane is greater than the second threshold, the current node is determined to be in the first decoding mode; or, when the to-be-decoded child node is located in the low plane, the number of occupied child nodes in the low plane is greater than the third threshold, and the number of occupied child nodes in the high plane is less than the fourth threshold, the current node is determined to be in the second decoding mode. Herein, an occupied child node in the low plane refers to an occupied child node of a reference node that is located in the low plane, and an occupied child node in the high plane refers to an occupied child node of a reference node that is located in the high plane; or, an occupied child node in the low plane refers to an occupied child node of a reference node that meets a preset condition and is located in the low plane, and an occupied child node in the high plane refers to an occupied child node of a reference node that meets a preset condition and is located in the high plane, and the preset condition is used to indicate that the reference node is a high-plane node or a low-plane node; the to-be-decoded child node refers to the currently to-be-decoded child node in the current node.

[0247] For example, set the first threshold k1, the second threshold k2, the third threshold k3, and the fourth threshold k4. Count the number of occupied child nodes in the low plane LowOccNum and the number of occupied child nodes in the high plane HighOccNum. When the to-be-decoded child node is located in the high plane and LowOccNum < k1 and HighOccNum > k2, the current node is determined to be in the first decoding mode; when the to-be-decoded child node is located in the low plane and LowOccNum > k3 and HighOccNum < k4, the current node is determined to be in the second decoding mode.

[0248] It should be noted that the above method shows a method for determining the geometric mode of the current node based on the occupancy of the to-be-decoded child node and the child nodes of the reference node; in addition, the geometric mode of the current node can also be determined based on the to-be-decoded child node and at least one first node. For example, the geometric mode of the current node is determined based on the occupancy of the to-be-decoded child node, the child nodes of the reference node, and the decoded child nodes of the current node. The present application does not limit the use of the first node alone or in combination.

[0249] In some embodiments, occupancy code decoding is performed to count the number of occupied child nodes in the low plane and the number of occupied child nodes in the high plane. A possible implementation manner can refer to the following steps 1 to step 3:

[0250] 1. Define the initial number of reference nodes that meet the preset conditions, and the offset values that meet the conditions; wherein, the initial number of reference nodes that meet the preset conditions is set to 0, and the offset values that meet the conditions are set to {-1, 0, 0}, {-2, 0, 0}, {0, -1, 0}, {0, -2, 0}, {-1, -1, 0}.

[0251] 2. Based on the geometric placeholder mapping table and the offset values ​​that meet the conditions, determine the placeholders located in the low plane of the reference node and the placeholders located in the high plane of the reference node; according to the placeholders located in the low plane of the reference node and the placeholders located in the high plane of the reference node, increase the initialization number of reference nodes that meet the preset conditions to obtain the number of reference nodes that meet the preset conditions; and, check each bit of the placeholders located in the low plane of the reference node and the placeholders located in the high plane of the reference node to obtain the intermediate number of low plane placeholder sub-nodes and the intermediate number of high plane placeholder sub-nodes respectively; wherein, the initialization number of reference nodes that meet the preset conditions is increased, and each operation can increase by 1; the aforementioned intermediate number refers to the number during the operation process, and the intermediate number can also be used as the final number.

[0252] 3. Based on the relationship between the number of reference nodes that meet the preset conditions and a preset value, assign values ​​to the median number of low-plane placeholder subnodes and the median number of high-plane placeholder subnodes, respectively, to obtain the number of low-plane placeholder subnodes and the number of high-plane placeholder subnodes; wherein the preset value can be set to 2. When the number of reference nodes that meet the preset conditions is greater than 2, the values ​​of the median number of low-plane placeholder subnodes and the median number of high-plane placeholder subnodes remain unchanged; when the number of reference nodes that meet the preset conditions is less than 2, the values ​​of the median number of low-plane placeholder subnodes and the median number of high-plane placeholder subnodes are directly set to 0.

[0253] In some embodiments, the above placeholder code decoding step refers to the following code. Wherein, LowOccNum represents the number of occupied subnodes in the low plane among the child nodes of the neighboring nodes of the current node; HighOccNum represents the number of occupied subnodes in the high plane among the child nodes of the neighboring nodes of the current node.

[0254] Initialize two variables, LowOccNum and HighOccNum, to 0. LowOccNum represents the number of occupied child nodes in the lower plane of the current node's neighboring nodes; HighOccNum represents the number of occupied child nodes in the higher plane of the current node's neighboring nodes. When the geometry slice planar mode flag gsh_planar_mode is 1, for the child node labeled childIdx, perform the following operations; otherwise, LowOccNum and HighOccNum are directly 0:

[0255] Among them, preNodePlanarNum represents the number of reference nodes that meet the preset conditions, neighborOccupancyCode represents the reference node placeholder code, GeometryNodeOccupancyCode represents the geometry placeholder code mapping table, planarNodeOffset represents the offset value that meets the conditions, neighborOccupancyLowCode represents the placeholder code located in the low plane of the reference node, and neighborOccupancyHighCode represents the placeholder code located in the high plane of the reference node.

[0256] In some embodiments, the geometry mode of the current node is determined based on geometry information of decoded child nodes of the current node.

[0257] In some embodiments, the geometric mode of the current node is determined based on the geometric information of the reference node and the geometric information of the decoded child nodes of the current node. For example, if the decoded child nodes of the current node are not in the same plane as the reference node, and the child nodes to be decoded of the current node are not in the same plane as the decoded child nodes, the geometric mode of the current node is determined to be the first decoding mode; or, if the decoded child nodes of the current node are not in the same plane as the reference node, and the child nodes to be decoded of the current node are in the same plane as the decoded child nodes, the geometric mode of the current node is determined to be the second decoding mode; or, if the decoded child nodes of the current node are in the same plane as the reference node, and the child nodes to be decoded of the current node are in the same plane as the decoded child nodes, the geometric mode of the current node is determined to be the third decoding mode; or, if the decoded child nodes of the current node are in the same plane as the reference node, and the child nodes to be decoded of the current node are not in the same plane as the decoded child nodes, the geometric mode of the current node is determined to be the fourth decoding mode.

[0258] In some embodiments, the reference node does not satisfy the plane mode. When the decoded subnodes of the current node are in the same plane, and the subnode to be decoded of the current node and the decoded subnode are also in the same plane, the geometric mode of the subnode to be decoded is determined to be the fifth decoding mode.

[0259] In some embodiments, the geometric mode of the current node is determined based on the geometric information of the parent node of the current node; or, the geometric mode of the current node is determined based on the geometric information of the child nodes of the reference node that has the same parent node as the current node; or, the geometric mode of the current node is determined based on the geometric information of the child nodes of the neighboring nodes that has the same parent node as the current node; or, the geometric mode of the current node is determined based on the geometric information of the neighboring nodes that has the same parent node as the current node.

[0260] In some embodiments, the at least one threshold is determined based on at least one of the following values:

[0261] A first value determined from a decoding end;

[0262] A second value parsed from the parameter set or code stream corresponding to the current node;

[0263] A third value determined based on the first information and / or the second information;

[0264] A fourth value adaptively determined based on the first information and / or the second information;

[0265] The first information is used to indicate the statistical characteristics or spatial information of the current node, and the second information is used to indicate the statistical characteristics of the decoded node.

[0266] That is, the first value may be a default value or a preset value of the decoding end. The second value is a value obtained from the parameter set or code stream corresponding to the current node. For example, the parameter set includes a sequence parameter set (SPS), a geometry parameter set (GPS), an attribute parameter set (APS), a geometry header brick (GHB), and an attribute header brick (AHB); for example, the value planarOccNumTh is obtained from the parameter set or code stream to determine the second value.

[0267] In some embodiments, the first information includes at least one of the following information:

[0268] ●The number of reference nodes that meet the preset conditions;

[0269] ●The number of child nodes of the reference node that meet the preset conditions;

[0270] ●The distribution of the number of child nodes of the reference node that meets the preset conditions;

[0271] ● The positional relationship between the subnodes of the reference node that meet the preset conditions and the subnodes to be decoded of the current node;

[0272] The preset condition is used to indicate whether the reference node is a high-plane node or a low-plane node.

[0273] Among them, a high-plane node refers to a node whose occupied sub-nodes are all located in the high plane, and a low-plane node refers to a node whose occupied sub-nodes are all located in the low plane; or, a high-plane node refers to a node that satisfies the condition that the number of occupied sub-nodes located in the low plane is less than the number of first sub-nodes and the number of occupied sub-nodes located in the high plane is greater than the number of second sub-nodes, and a low-plane node refers to a node that satisfies the condition that the number of occupied sub-nodes located in the low plane is greater than the number of third sub-nodes and the number of occupied sub-nodes located in the high plane is less than the number of fourth sub-nodes; wherein the number of first sub-nodes, the number of second sub-nodes, the number of third sub-nodes, and the number of fourth sub-nodes are pre-set values.

[0274] In some embodiments, the second information includes at least one of the following information:

[0275] The number of decoded nodes that satisfy the planar pattern;

[0276] ●The number of reference nodes that satisfy the planar pattern among the decoded nodes;

[0277] The number of children of the reference node that satisfy the planar pattern in the decoded node;

[0278] The ratio of the number of reference nodes that satisfy the planar pattern to the number of non-null reference nodes in the decoded nodes;

[0279] ●The ratio of the number of child nodes of the reference node that satisfy the planar mode to the number of reference nodes in the decoded nodes.

[0280] In some embodiments, the second information includes at least one of the following information:

[0281] ●The number of reference nodes corresponding to the nodes that satisfy the planar pattern among the decoded nodes;

[0282] ●The number of children of the reference node corresponding to the nodes that satisfy the planar pattern in the decoded nodes;

[0283] The ratio of the number of reference nodes corresponding to the nodes that satisfy the planar pattern among the decoded nodes to the number of non-null reference nodes corresponding to the nodes that satisfy the planar pattern;

[0284] ●The ratio of the number of child nodes of the reference node corresponding to the node that meets the planar mode among the decoded nodes to the number of reference nodes.

[0285] The third value is determined based on the first information and / or the second information; alternatively, the third value may be determined based on other information. For example, the third value may be determined using the point cloud slice density (the ratio of the point cloud slice volume or area to the number of points): the point cloud slice density Q1 is determined from the decoding end, parameter set, or bitstream. If the point cloud slice density is less than Q1, the third value is determined to be k1; otherwise, the third value is k2.

[0286] The fourth value is determined based on the first information and / or the second information in an adaptive manner. The adaptive manner means that the fourth value itself is adjusted according to the acquired first information and / or second information.

[0287] In some embodiments, the fourth value itself is adjusted according to the first information. For example, when the number of reference nodes that meet the preset conditions is greater than N1, the fourth value a is adjusted to a=a+1; for another example, when the number of child nodes of the reference node that meets the preset conditions is less than N2, the fourth value a is adjusted to a=a-1.

[0288] In some embodiments, an interval D1 for counting the second information is set, and the second information is counted for every D1 decoded nodes; in other embodiments, an interval D2 for counting the second information is set, and the second information of non-empty nodes is counted for every D2 decoded nodes.

[0289] In some embodiments, before step 440 , the plane mode eligibility of the current node is determined, for example, based on the second node. After determining that the current node is plane mode eligible, the determination of the geometry mode in step 440 is performed.

[0290] Exemplarily, based on the geometric information of the second node, the plane mode qualification of the current node is determined, and the plane mode qualification is used to indicate whether the current node is applicable to the plane mode; wherein the second node is the same as or different from the first node, and the second node is at least one of the following nodes: a reference node; a child node of the reference node; a decoded child node of the current node; a child node to be decoded of the current node.

[0291] Exemplarily, the plane mode qualification of the current node is determined based on the number of non-empty nodes in the reference node; or, the plane mode qualification of the current node is determined based on the occupancy of the child nodes of the reference node; or, the plane mode qualification of the current node is determined based on the occupancy of the decoded child nodes of the reference node.

[0292] To sum up, the method provided in the embodiment of the present application determines the geometric mode of the current node by obtaining the geometric information provided by the first node corresponding to the current node, and optimizes the judgment of the geometric mode of the current node by combining the information in the octree partitioning process, so that decoding can be performed according to the entropy decoding method corresponding to the geometric mode, thereby improving the efficiency of encoding and decoding of point cloud data.

[0293] Please refer to Figure 11, which shows a flow chart of a method for determining a geometric pattern provided by one embodiment of the present application. For ease of explanation, only the computer device performing each step is described. The method is executed by a decoding end / decoding end device / computer device, and may include all or part of the following steps 510, 520, 530, and 540:

[0294] Step 510: Determine whether the current node uses geometric mode decoding;

[0295] The current node is the node currently being decoded.

[0296] The geometry mode decoding is used to indicate the decoding mode for entropy decoding based on the geometry information of the node. In the geometry mode decoding, different geometry modes use different entropy decoding methods.

[0297] In some embodiments, determining whether the current node uses geometric mode decoding includes any one of the following steps: determining whether the current node uses geometric mode decoding at the point cloud or point cloud slice level; determining whether the current node uses geometric mode decoding at the macroblock level; determining whether the current node uses geometric mode decoding at the depth level of the octree.

[0298] In some embodiments, determining whether the current node uses geometric mode decoding includes at least one of the following steps: determining whether the current node uses geometric mode decoding based on the decoding mode adopted by the decoding end; determining whether the current node uses geometric mode decoding based on the parameter set or code stream corresponding to the current node; determining whether the current node uses geometric mode decoding based on the geometric mode threshold parameter, wherein the geometric mode threshold parameter is a threshold parameter obtained based on the decoding end or the parameter set or the code stream.

[0299] Exemplarily, determining whether the current node uses geometric mode decoding includes at least one of the following methods:

[0300] a) At the point cloud or point cloud slice level, determine whether the current node uses geometry mode decoding:

[0301] ●The decoding end uses the default decoding mode: determines whether the current node uses geometric mode decoding based on the decoding mode used by the decoding end.

[0302] ● Parse the corresponding mode information from the parameter set or code stream: for example, the parameter gsh_planar_mode in the geometry slice header information parameter set is used to indicate the enablement of the planar coding mode.

[0303] ●Determine the corresponding pattern information based on the geometric pattern threshold parameter adopted by the decoding end: For example, the geometric pattern threshold parameter is the default point cloud slice density threshold parameter adopted by the decoding end, and the corresponding pattern information is determined based on the geometric pattern threshold parameter.

[0304] ● Parse the corresponding geometric pattern threshold parameters from the parameter set or code stream and determine the corresponding pattern information: for example, parse the threshold parameters of the point cloud slice surface density from the parameter set or code stream as the geometric pattern threshold parameters, and determine the pattern information corresponding to the current node based on the geometric pattern threshold parameters.

[0305] b) Determine at the macroblock (LCU) level whether the current node uses geometric mode decoding:

[0306] ●The decoding end uses the default decoding mode: determines whether the current node uses geometric mode decoding based on the decoding mode used by the decoding end.

[0307] ● Parse the corresponding mode information from the parameter set or code stream: parse the parameter set or code stream corresponding to the macroblock to determine whether the current node uses geometric mode decoding.

[0308] ●Determine the corresponding mode information based on the geometric mode threshold parameters used by the decoding end (or parse the corresponding threshold parameters from the parameter set or the code stream): for example, determine the corresponding mode information based on whether there are prediction tree neighbor nodes when the LCU is divided; for another example, determine the corresponding mode information based on the density when the LCU is divided.

[0309] c) At the depth level of the octree, determine whether the current node uses geometry mode decoding:

[0310] ●The decoding end uses the default decoding mode: determines whether the current node uses geometric mode decoding based on the decoding mode used by the decoding end.

[0311] ● Parse the corresponding mode information from the parameter set or code stream: parse the parameter set or code stream corresponding to the depth level of the octree to determine whether the current node uses geometric mode decoding.

[0312] ● Determine the corresponding mode information according to the geometric mode threshold parameter adopted by the decoding end (or parse the corresponding threshold parameter from the parameter set or the code stream). For example, if the geometric mode threshold parameter is the point cloud bounding box information, determine the corresponding mode information according to the point cloud bounding box information (such as side length information) of the current layer node. For another example, if the geometric mode threshold parameter is the hierarchical threshold range, determine the corresponding mode information. When the current depth depth < d1 and / or depth > d2, do not enter the plane mode determination, where d1 and d2 are values in the hierarchical threshold range.

[0313] It should be noted that the present application does not limit the range and selection method of the geometric mode threshold parameter used to determine whether the current node uses geometric mode decoding.

[0314] It should be noted that the above methods for determining whether the current node uses geometric mode decoding can be used alternatively or in combination, and the present application does not limit this. In some embodiments, step 510 is also an optional step and can be omitted.

[0315] Step 520: Obtain the geometric information of the first node;

[0316] The current node is the node currently being decoded.

[0317] The first node refers to the node that provides information for determining the geometric mode of the current node. The first node has a geometric association with the current node, and the first node includes historical node decoding information and / or neighborhood information of the current node. For example, the first node is a neighbor node of the current node; for another example, the target node is the previous decoded node of the current node; for another example, the first node is the parent node of the current node, etc.

[0318] In some embodiments, the first node is at least one of the following nodes:

[0319] ● Reference node;

[0320] ● The child node of the reference node;

[0321] ● The decoded child node of the current node;

[0322] ● The undecoded child node of the current node. <000​​​​​​a) The previous stage has decoded K1 nodes as reference nodes, including the parent node, where K1 is a positive integer.

[0326] b) The previous stage has decoded K2 nodes at the same level as reference points (the same level refers to the octree division level, i.e., excluding the parent node), where K2 is a positive integer.

[0327] c) Select K3 reference nodes at fixed positions among the decoded nodes: The fixed position means that the reference node is at a fixed relative position with respect to the current node. K3 is a positive integer.

[0328] In some embodiments, an offset value offset along the coordinate axis direction is set to obtain reference nodes at fixed positions. For example, taking the xy direction as an example, select the decoded nodes corresponding to (x - 1, y, z), (x - 2, y, z), (x, y - 1, z), (x, y - 2, z), (x - 1, y - 1, z) as reference nodes. The selection of fixed positions in this application is not restricted.

[0329] In some embodiments, one or more groups of offset values along the coordinate axis direction and possible corresponding fixed multiples are set, where the fixed multiples can be selected according to information such as quantization parameters. For example, taking the XY direction as an example, the offset values along the X axis and Y axis are m3 and m4 respectively, and the corresponding fixed multiples are a and b respectively, that is, select the nodes corresponding to (x - a * m3, y, z), (x, y - b * m4, z) as reference nodes.

[0330] d) Select K4 non-empty reference nodes at fixed positions among the decoded nodes: The fixed position means that the reference node is at a fixed relative position with respect to the current node, and non-empty means that at least one child node of the node is occupied, where K4 is a positive integer.

[0331] In some embodiments, an offset threshold is set. For example, taking the XY direction as an example, set the offset thresholds along the X axis and Y axis to be M1 and M2 respectively. When the offset value m1 along the X axis direction is less than M1, select (x - m1, y, z) as the reference node. If this reference node is empty, set m1 = m1 + 1; when the offset value m2 along the Y axis direction is less than M2, select (x, y - m2, z) as the reference node. If this reference node is empty, set m2 = m2 + 1; for another example, set the offset threshold for the sum of the offset amounts along the X axis and Y axis to be M3. When the sum of the offset values m1 + m2 is less than M3, select (x - m1, y, z) and (x, y - mz) as reference nodes; if (x - m1, y, z) is empty, set m1 = m1 + 1; if (x, y - m2, z) is empty, set m2 = m2 + 1. Repeat the above steps to obtain K4 reference nodes, but not necessarily all non-empty nodes; or select all the obtained non-empty reference nodes.

[0332] In some embodiments, a number threshold is set. For example, if the number threshold is set to K4, then as described above in the method for setting the offset threshold, when the reference node selected by moving along the coordinate axis is empty, the offset value along the coordinate axis is increased by 1, and then the reference node is selected again; the above steps are repeated until K4 fixed-position non-empty reference nodes are obtained. This will not be repeated here.

[0333] e) Selecting a reference node based on the parent node of the current node and / or the neighbor nodes of the parent node: For example, when the current node is the only child node of its parent node, the range of selecting the reference node is expanded.

[0334] It should be noted that the above methods of determining the reference node corresponding to the current node can be used individually or in combination, and this application does not impose any restrictions on this.

[0335] Step 530: Determine the plane mode eligibility of the current node based on the geometric information of the second node;

[0336] Plannar-eligible is used to indicate whether the current node is applicable to the planar mode, that is, whether the current node can be decoded using the planar mode.

[0337] The second node is the same as or different from the first node, and the second node is at least one of the following nodes:

[0338] ● Reference nodes;

[0339] ●Child nodes of the reference node;

[0340] ●The decoded children of the current node;

[0341] ●The child nodes to be decoded of the current node.

[0342] That is, the same second node and first node may be used; or different first nodes and second nodes may be obtained using the same method; or different first nodes and second nodes may be obtained using different methods. This application does not impose any restrictions on this.

[0343] Exemplarily, the plane mode qualification of the current node is determined based on the number of non-empty nodes in the reference node; or, the plane mode qualification of the current node is determined based on the occupancy of the child nodes of the reference node; or, the plane mode qualification of the current node is determined based on the occupancy of the decoded child nodes of the reference node.

[0344] The manner of determining the plane mode eligibility of the current node includes at least one of the following:

[0345] a) The decoding end adopts the default decoding mode: the current node plane mode qualification is determined according to the decoding mode adopted by the decoding end.

[0346] b) Parsing the corresponding mode information from the parameter set or code stream: For example, the parameter set includes parameters for indicating the plane mode eligibility of the current node.

[0347] c) Determine the plane mode qualification of the current node based on a threshold parameter, wherein the threshold parameter is a default threshold parameter used by the decoding end, or a threshold parameter corresponding to the current node is parsed from a parameter set or a bitstream.

[0348] Determining the plane mode qualification of the current node according to the threshold parameter includes at least one of the following methods:

[0349] Determine the plane mode eligibility of the current node based on the number of non-empty nodes in the reference node:

[0350] The plane mode qualification of the current node is determined by comparing the number of non-empty nodes in the reference node with the threshold parameter.

[0351] Determine the plane mode eligibility of the current node based on the occupancy of the reference node's child nodes:

[0352] In some embodiments, the plane mode qualification of the current node is determined based on the number LowNode of reference nodes whose occupied child nodes are all located in the low plane, and / or the number HighNode of reference nodes whose occupied child nodes are all located in the high plane, compared with a threshold parameter.

[0353] In other embodiments, the plane mode qualification of the current node is determined by comparing the number of reference nodes LowNode that satisfy the requirement that the number of occupied child nodes located in the low plane is greater than p1 and the number of occupied child nodes located in the high plane is less than p2, and / or the number of reference nodes HighNode that satisfy the requirement that the number of occupied child nodes located in the low plane is less than p3 and the number of occupied child nodes located in the high plane is greater than p4 with threshold parameters. Here, p1, p2, p3, and p4 are used to indicate the thresholds for child node occupancy, and are all positive integers.

[0354] Determine the plane mode eligibility of the current node based on the occupancy of the decoded children of the reference node:

[0355] In some embodiments, the plane mode qualification of the current node is determined based on the number LowOccNum of occupied child nodes located in the low plane in the aforementioned LowNode, and / or the number HighOccNum of occupied child nodes located in the high plane in the aforementioned HighNode, compared with a threshold parameter.

[0356] In other embodiments, the plane mode qualification of the current node is determined based on the ratio of the aforementioned LowOccNum to LowNode; or, the plane mode qualification of the current node is determined based on the ratio of the aforementioned LowOccNum to the number of non-empty reference nodes; or, the plane mode qualification of the current node is determined based on the ratio of the aforementioned HighOccNum to HighNode; or, the plane mode qualification of the current node is determined based on the ratio of the aforementioned HighOccNum to the number of non-empty reference nodes.

[0357] It should be noted that the above methods for determining the plane mode qualification of the current node can be used alone or in combination, and this application does not impose any restrictions on this. In some embodiments, step 530 is an optional step and can be omitted.

[0358] Step 540: Determine the geometric mode of the current node based on the geometric information of the first node.

[0359] The geometric mode is mode information corresponding to the entropy decoding method. After determining the plane mode qualification of the current node in step 530, the plane mode of the current node is determined in this step. Different plane modes use different entropy decoding methods.

[0360] (a) Determining information about the decoded node, including at least one of the following:

[0361] ●The occupancy of the child nodes of the reference node;

[0362] ●The occupancy of decoded child nodes of the current node;

[0363] ●The placeholder of the parent node of the current node;

[0364] ●Child node information of the reference node that has the same parent node as the current node.

[0365] The child node occupancy includes the number of child nodes located in the lower plane, the number of child nodes located in the upper plane, etc.; the parent node occupancy includes the number of child nodes owned by the parent node, etc.

[0366] (b) Obtaining a determination threshold k. There may be one or more determination thresholds, and the methods for obtaining different thresholds may be the same or different. Methods for obtaining the determination threshold include at least one of the following:

[0367] ●Use the default threshold of the decoding end as the first value.

[0368] ● Parse the corresponding second value from the parameter set or code stream.

[0369] For example, determine the second value based on the parameter planarOccNumTh in the parameter set;

[0370] ● Parse the corresponding threshold according to the default threshold at the decoding end or from the parameter set or the bitstream, and determine the third value according to the first parameter and / or the second parameter.

[0371] For example, obtain the threshold parameter Q1 of the ratio (volume density) of the volume or area of the point cloud slice to the number of points through the decoding end or the parameter set or the bitstream. When the volume density of the point cloud slice is less than Q1, determine the third value as k1; otherwise, adopt the third value k2.

[0372] ● Parse the corresponding threshold according to the default threshold at the decoding end or from the parameter set or the bitstream, and determine the fourth value in an adaptive manner according to the first parameter and / or the second parameter.

[0373] The adaptive manner means adjusting the fourth value itself according to the information of the current node and / or the decoded nodes. That is, when the current node and / or the decoded nodes meet the preset conditions, adjust the fourth value itself.

[0374] For example, obtain the threshold parameter k1, count the number of reference nodes of the current node as N1, the threshold of the reference nodes for the preset condition is thresN1. When N1 > thresN1 is satisfied, determine the fourth value as k1 = k1 + 1; for another example, obtain the threshold parameter as k2, count the number of child nodes of the reference node as N2, the threshold of the child nodes of the reference node for the preset condition is thresN2. When N2 < thresN2 is satisfied, determine the fourth value as k2 = k2 - 1.

[0375] In some embodiments, obtain the fourth value in an adaptive manner according to the current node information. The current node information includes at least one of the following:

[0376] ● The number of reference nodes that meet the preset conditions;

[0377] ● The number of child nodes of the reference nodes that meet the preset conditions;

[0378] ● The distribution of the number of child nodes of the reference nodes that meet the preset conditions;

[0379] ● The positional relationship between the child nodes of the reference nodes that meet the preset conditions and the current child node.

[0380] Among them, the preset condition means that the reference node meets the high-plane child node or the low-plane child node.

[0381] The distribution of the number of child nodes refers to the position of the child node distribution. For example, if there are 3 reference nodes that meet the preset conditions, the distribution of the number of child nodes is 4:1:1 or 2:2:2, and so on.

[0382] In other embodiments, the fourth value is obtained in an adaptive manner based on the statistical characteristics of the previously decoded nodes. For example, an interval M1 is set, and the number of conditions that meet the conditions is counted for every M1 decoded nodes, and the conditions that meet the conditions include at least one of the following:

[0383] ●The number of decoded nodes that satisfy the planar pattern;

[0384] ●The number of reference nodes of the decoded node that satisfies the planar pattern;

[0385] ●The number of children of the reference node of the decoded node that satisfies the planar pattern;

[0386] The ratio of the number of reference nodes of the decoded node that satisfies the planar pattern to the number of non-null reference nodes;

[0387] ●The ratio of the number of child nodes of the reference node of the decoded node that meets the planar mode to the number of reference nodes.

[0388] In other embodiments, the fourth value is obtained in an adaptive manner based on the statistical characteristics of the previously decoded nodes. An interval M2 is set, and for every M2 decoded nodes, a non-empty node that meets the condition is counted, where the condition includes at least one of the following:

[0389] ●The number of reference nodes corresponding to the nodes that satisfy the planar pattern;

[0390] ●The number of child nodes of the reference node corresponding to the node that satisfies the plane pattern;

[0391] The ratio of the number of reference nodes corresponding to the nodes that satisfy the planar pattern to the number of non-null reference nodes corresponding to the nodes that satisfy the planar pattern;

[0392] ●The ratio of the number of child nodes of the reference node corresponding to the node that satisfies the planar pattern to the number of reference nodes.

[0393] (c) Determine the geometric mode of the current node based on the reference node information obtained in (a) and the decision threshold obtained in (b). The geometric mode of the current node is determined by any one or a combination of the following methods:

[0394] Determine the geometry mode of the current node based on the child node statistics of the reference node:

[0395] In some embodiments, when the number of low-plane occupied child nodes is less than a first threshold and the number of high-plane occupied child nodes is greater than a second threshold, the geometric mode of the current node is determined as the first decoding mode; or, when the number of low-plane occupied child nodes is greater than a third threshold and the number of high-plane occupied child nodes is less than a fourth threshold, the geometric mode of the current node is determined as the second decoding mode.

[0396] For example, set a first threshold k1, a second threshold k2, a third threshold k3, and a fourth threshold k4. When the number of low-plane occupied child nodes LowOccNum < k1 and the number of high-plane occupied child nodes HighOccNum > k2, enter mode A1; when the number of low-plane occupied child nodes LowOccNum > k3 and the number of high-plane occupied child nodes HighOccNum < k4, enter mode B1.

[0397] ● Determine the geometric mode of the current node according to the position of the current child node to be decoded:

[0398] · Child nodes in the same plane enter the same mode: For example, as shown in FIG. 4, the 0th, 2nd, 4th, and 6th child nodes in the low plane enter the same mode B2;

[0399] · Some child nodes in the same plane enter the same mode: For example, as shown in FIG. 4, the 0th and 2nd child nodes in the low plane enter mode B21, and the 4th and 6th child nodes enter mode B22;

[0400] · Child nodes in the same plane enter different modes;

[0401] · Child nodes in different positions enter different modes;

[0402] · Child nodes in specific positions enter different modes: For example, if the current child node to be decoded is the first child node (the 0th child node), enter mode A21; if the current child node to be decoded is the last child node (the 7th child node), enter mode B21; if the current child node to be decoded is other child nodes, adopt mode C21.

[0403] ● Determine the geometric mode of the current node according to the position of the already decoded child nodes of the current node:

[0404] Please refer to FIG. 12. FIG. 12 shows a schematic diagram for determining the geometric mode of the current node according to the position of the already decoded child nodes of the current node, where the dashed line represents the plane where the reference node is located, P represents the already decoded node of the current node, and Q represents the child node to be decoded of the current node.

[0405] · When there is no already decoded child node in the same plane as the current child node to be decoded, do not enter the plane mode;

[0406] When the decoded child node P is a transition point (the decoded child node P is not in the same plane as the reference node) and the child node to be decoded Q is not in the same plane as the decoded node P, enter mode C1, as shown in Figure 12(a);

[0407] When the decoded child node P is a transition point (the decoded child node P and the reference node are not on the same plane) and the child node to be decoded Q and the decoded node P are on the same plane, enter mode C2, as shown in Figure 12(b);

[0408] When the decoded child node P and the reference node are on the same plane and the child node to be decoded Q and the decoded node P are on the same plane, enter mode C3, as shown in Figure 12(c);

[0409] When the decoded sub-node P and the reference node are in the same plane and the sub-node to be decoded Q is a transition point (the sub-node to be decoded Q and the decoded node P are not in the same plane), enter mode C4, as shown in Figure 12(d).

[0410] ●Determine the geometric mode of the current node based on the judgment threshold:

[0411] In some embodiments, when the threshold is determined to be K1, mode A4 is entered; when the threshold is determined to be K2, mode B4 is entered.

[0412] ●When the reference node does not satisfy the plane mode and the N2 decoded child nodes of the current node are in the same plane, the child nodes also in the same plane are in mode E.

[0413] It should be noted that the above conditions can be used alone or in combination. For example, if the decision threshold K1 is selected, when LowOccNum < 1 and HighOccNum > K1, mode A41 is entered; if the current subnode to be decoded is in the low plane and LowOccNum > K1 and HighOccNum < 1, mode A42 is entered. For another example, if the decision threshold K2 is selected, when LowOccNum < 1 and HighOccNum > K2, mode B41 is entered; if the current subnode to be decoded is in the low plane and LowOccNum > K2 and HighOccNum < 1, mode B42 is entered.

[0414] (d) After determining the geometric mode of the current node, different decoding methods are used based on the results of the mode determination.

[0415] In some embodiments, when the current child node to be decoded is the last child node and all the previously decoded child nodes are empty, the placeholder code of the current child node is 1 and no parsing is required.

[0416] To sum up, the method provided in the embodiment of the present application determines the geometric pattern of the current node by obtaining the geometric information of the first node related to the current node; by combining the geometric information in the octree partitioning process, the judgment of the geometric pattern of the current node is optimized, and the historical node information and the neighborhood information of the current node are utilized, so that decoding can be performed according to the entropy decoding method corresponding to the geometric pattern, thereby improving the efficiency of encoding and decoding of point cloud data.

[0417] Please refer to Figure 13, which shows a flow chart of a method for determining a geometric pattern according to one embodiment of the present application. For ease of explanation, only a computer device is used as the subject for executing each step. The method is executed by a decoding end / decoding end device / computer device and may include all or part of the following steps 901, 902, 903, 904, and 905:

[0418] Step 901: Determine whether the current node uses geometric mode decoding;

[0419] The geometric mode includes at least one of the following: an isolated point mode and a plane mode.

[0420] Exemplarily, at the point cloud or point cloud slice level, or the macroblock level, or the depth level of the octree, it is determined whether the current node uses geometry mode decoding. Exemplarily, it is determined that the planar mode is enabled for the point cloud geometry slice where the current slice is located, that is, the parameter planarSlice=true for indicating the enablement of the planar mode.

[0421] Step 902: Select a reference node from the previous decoded nodes;

[0422] The steps to select a reference node are as follows:

[0423] 1) Taking the XY axis direction as an example, select the fixed position nodes (x-1, y, z), (x, y-1, z), (x-1, y-1, z) in the XY axis direction.

[0424] 2) Count the number of non-empty nodes k. If the number of non-empty nodes among the above three nodes is less than the threshold K1, the reference node is determined in a preset order within the range of the X-axis offset threshold xoffset and the Y-axis offset threshold yoffset; for example, the preset order is represented by the array form of xoffset and yoffset as xOffset[] = {1, 1, 0, 0, 1, 2, 2, 2, 3, 3, 3, 3, 2, 1, 0}, and yOffset[] = {0, 1, 1, 2, 2, 2, 1, 0, 0, 1, 2, 3, 3, 3, 3}.

[0425] K1, xoffset, and yoffset are preset parameters, or parameters determined from the decoding end, or obtained by parsing from a parameter set or a bitstream.

[0426] 3) When the corresponding decoded node after the offset (x-xoffset[i], y-yoffset[j], z) is a non-empty node, then k=k+1; where i is a positive integer less than the X-axis offset threshold xoffset, and j is a positive integer less than the Y-axis offset threshold yoffset.

[0427] 4) When the selected reference node k=M1, stop; M1 is the number threshold of reference nodes. That is, when the number of selected reference nodes reaches the number threshold, no further reference nodes will be selected.

[0428] Step 903: Obtain the occupancy status of the child nodes of the reference node;

[0429] Count the number of occupied child nodes in the reference node located on the low plane (LowOccNum) and the number of occupied child nodes in the reference node located on the high plane (HighOccNum).

[0430] Step 904: Determine the geometric mode of the current node based on the geometric information of the current node and the occupancy of the child nodes of the reference node;

[0431] For the i-th child node to be decoded of the current node, the encoded placeholder code of the current node is codedOccupancy.

[0432] When the sub-node to be decoded of the current node is located in the low plane, and there are no sub-nodes located in the low plane among the reference node and the decoded sub-nodes, enter mode A; when the sub-node to be decoded of the current node is located in the high plane, and there are no sub-nodes located in the high plane among the reference node and the decoded sub-nodes, enter mode B.

[0433] Step 905: Decode based on the geometric mode of the current node.

[0434] Different context models are designed for Mode A and Mode B. The existing context model is retained for other cases. The context model corresponds to the entropy decoding method, and the current node is decoded based on the context model.

[0435] In some embodiments, a context model index value ctxIdxInk for the placeholder code occupancy is determined. The context model index value is the sum of the context model offset address ctxIdxInc and the offset value ctx_offset. After determining the context model index value for the placeholder code, a context model is assigned to the current node. The context model corresponds to an entropy decoding method, and the current node is decoded based on the context model.

[0436] According to the geometric information of the decoded node, first determine the offset value ctx_offset of ctxIdxInc. The offset value has three values: 0, 257, and 258. When the geometry slice plane mode identifier gsh_planar_mode is 1, perform the following operations, otherwise ctx_offset defaults to 0.

[0437] Where codedOccupancyCode represents the decoded child nodes of the current node. LowOccNum represents the number of occupied child nodes in the lower plane of the current node's neighbor nodes. HighOccNum represents the number of occupied child nodes in the higher plane of the current node's neighbor nodes. These two variables are decoded from the placeholder code in the next section.

[0438] In some embodiments, placeholder decoding is performed to determine LowOccNum and HighOccNum, where LowOccNum represents the number of occupied child nodes of neighboring nodes of the current node that are located in the low plane, and HighOccNum represents the number of occupied child nodes of neighboring nodes of the current node that are located in the high plane.

[0439] Initialize two variables, LowOccNum and HighOccNum, to 0. LowOccNum represents the number of occupied child nodes in the lower plane of the current node's neighboring nodes; HighOccNum represents the number of occupied child nodes in the higher plane of the current node's neighboring nodes. When the geometry slice planar mode flag gsh_planar_mode is 1, for the child node labeled childIdx, perform the following operations; otherwise, LowOccNum and HighOccNum are directly 0:

[0440] Among them, preNodePlanarNum represents the number of reference nodes that meet the preset conditions, xOffset is the offset along the X-axis, yOffset is the offset along the Y-axis, neighborOccupancyCode represents the reference node placeholder code, GeometryNodeOccupancyCode represents the geometry placeholder code mapping table, planarNodeOffset represents the offset value that meets the conditions, neighborOccupancyLowCode represents the placeholder code located in the low plane of the reference node, and neighborOccupancyHighCode represents the placeholder code located in the high plane of the reference node.

[0441] PartitionSkip is a 3-bit unsigned integer that indicates the geometric partition type of the current node, whether it is an octree, quadtree, or binary tree. The three bits, from high to low, indicate whether to skip partitions in the x, y, and z directions, respectively. A '0' bit indicates not to skip partitions, and a '1' bit indicates to skip partitions.

[0442] Please refer to Figure 14, which shows a flowchart of a reference node selection method provided by one embodiment of the present application. For ease of explanation, only the computer device is used as the subject of each step for description. The method is executed by a decoding end / decoding end device / computer device, and may include all or part of the following steps 1001, 1002, 1003, and 1004:

[0443] Step 1001: Select a fixed position node;

[0444] For example, taking the XY axis direction as an example, fixed position nodes (x-1, y, z), (x, y-1, z), (x-1, y-1, z) are selected.

[0445] Step 1002: Determine an offset threshold and a supplementary threshold;

[0446] The offset threshold refers to a value offset along the coordinate axis direction, and the supplementary threshold refers to a value supplementing the aforementioned offset threshold.

[0447] Exemplarily, the offset threshold xoffset along the X-axis and the offset threshold yoffset along the Y-axis are determined; the supplementary threshold addXoffset along the X-axis and the supplementary threshold addYoffset along the Y-axis are determined. The offset threshold is used to indicate the maximum offset threshold along the coordinate axis; the supplementary threshold is used to expand the selection range of the reference node when there are many empty nodes (for example, the number of empty nodes is greater than the set empty node number threshold). For example, the offset threshold xoffset, yoffset, and the initial values ​​of the supplementary threshold addXOffset = k1, addYOffset = k2 are determined; wherein the values ​​of k1 and k2 can be default values, or can be determined based on the size of the current geometric piece or the XY value of the current node.

[0448] Step 1003: Determine a supplementary threshold based on fixed-position nodes;

[0449] For example, if the node (x-1, y, z) is not empty, the supplementary threshold is determined to be addXOffset = k3; if the node (x, y-1, z) is not empty, the supplementary threshold is determined to be addYOffset = k4; if (x-1, y-1, z) is not empty, the supplementary thresholds are determined to be addXOffset = k5 and addYOffset = k6. In one possible implementation, k1 = 2, k2 = 2, k3 = 0, k4 = 0, k5 = 0, and k6 = 0.

[0450] Step 1004: Select reference nodes within the offset threshold range until the number of reference nodes reaches the number threshold.

[0451] Illustratively, the reference node is determined within the range of the offset thresholds xoffset, yoffset in a certain order, for example, according to Hilbert order, linear order, Morton order, preset order, default order, etc.

[0452] When the selected node (x-xoffset[i]-addXOffset, y-yoffset[j]-addYOffset, z) is non-empty, the number of selected reference nodes k=k+1.

[0453] A number threshold M2 is set. When the number of selected reference nodes k=M2, the reference node selection is finished.

[0454] Please refer to Figure 15, which shows a flowchart of a reference node selection method provided by one embodiment of the present application. For ease of explanation, only the computer device is used as the subject of each step. The method is executed by a decoding end / decoding end device / computer device, and may include all or part of the following steps 1101, 1102, 1103, and 1104:

[0455] Step 1101: Select a fixed position node;

[0456] For example, taking the XY axis direction as an example, fixed position nodes (x-1, y, z), (x, y-1, z), (x-1, y-1, z) are selected.

[0457] Step 1102: Determine an offset value set or an offset threshold;

[0458] For example, an offset value group xoffset along the X-axis and an offset value group yoffset along the Y-axis are determined; or an offset threshold xoffset along the X-axis and an offset threshold yoffset along the Y-axis are determined. The offset value group indicates the order in which reference nodes are selected by offsetting; the offset threshold indicates the maximum offset range along the coordinate axis.

[0459] The values ​​of xoffset and yoffset can be default values; or, they can be determined by the size values ​​of the current geometry slice in the XY axis direction.

[0460] Step 1103: Determine a method for selecting subsequent reference nodes based on the number of non-empty nodes in the selected reference nodes;

[0461] Based on the number of non-empty nodes in the selected reference nodes, determine the method for selecting subsequent reference nodes; or, based on the number interval in which the number of non-empty nodes in the selected reference nodes is located, determine the method for selecting subsequent reference nodes; or, based on at least one threshold and the number of non-empty nodes in the selected reference nodes, determine the method for selecting subsequent reference nodes.

[0462] For example, count the number k of non-empty nodes in the selected reference nodes. When k=0, do not continue searching for subsequent reference nodes. When k<3, determine the reference nodes in the offset value group or offset threshold xoffset, yoffset in the default order. When k=3, use reference nodes with other fixed positions, such as (x-2, y, z).

[0463] Step 1104: Select reference nodes until the number of reference nodes reaches a threshold.

[0464] A reference node is selected according to the subsequent reference node selection method determined in step 1103 .

[0465] When the selected node (x-xoffset[i]-addXOffset, y-yoffset[j]-addYOffset, z) is non-empty, the number of selected reference nodes k=k+1.

[0466] A number threshold M2 is set. When the number of selected reference nodes k=M2, the reference node selection is finished.

[0467] Please refer to Figure 16, which shows a flow chart of a method for determining a geometric pattern provided by one embodiment of the present application. For ease of explanation, only the computer device is used as the subject for executing each step. The method is executed by an encoding end / encoding end device / computer device, and may include all or part of the following steps 820 and 840:

[0468] Step 820: Obtain geometric information of the first node;

[0469] The current node is the node currently being encoded.

[0470] A first node is a node that provides information for determining the geometry of the current node. The first node is geometrically associated with the current node and contains historical node encoding information and / or neighborhood information about the current node. For example, the first node may be a neighbor node of the current node; another example may be a preceding encoding node of the current node; another example may be a parent node of the current node, and so on.

[0471] In some embodiments, the first node is at least one of the following nodes:

[0472] ● Reference nodes;

[0473] ●Child nodes of the reference node;

[0474] ●The encoded child nodes of the current node;

[0475] ●The child nodes to be encoded of the current node.

[0476] In some embodiments, the reference node is selected from at least one of the following nodes:

[0477] ●Encoded nodes;

[0478] ●Non-empty encoded nodes;

[0479] ●Encoded nodes at the same level as the current node;

[0480] ●An encoded node at the same level as the current node and not empty;

[0481] ●Encoded nodes at fixed positions;

[0482] ● Fixed-position and non-empty encoded nodes;

[0483] ●The parent node of the current node;

[0484] ●Neighbor nodes that share the same parent node as the current node;

[0485] ●Child nodes of neighbor nodes that have the same parent node as the current node.

[0486] Among them, a coded node refers to a node that has been coded in the previous order, including the parent node of the current node; a non-empty coded node refers to a node that has been coded in the previous order and has at least one occupied child node; a coded node at the same level as the current node refers to a coded node that is located at the same level as the current node in the octree partition, that is, excluding the parent node of the current node; a coded node at the same level as the current node and non-empty refers to a coded node that is located at the same level as the current node in the octree partition and has at least one occupied child node; a coded node at a fixed position refers to a coded node at a fixed position relative to the current node; a coded node at a fixed position and non-empty refers to a coded node that is at a fixed position relative to the current node and has at least one occupied child node. The fixed position can be understood as a fixed offset position, a specified position, or similar meanings.

[0487] In some embodiments, a coded node at a fixed position is obtained by setting a preset offset. The coded node at a fixed position includes at least one of the following (taking the current node coordinates as (x, y, z) as an example):

[0488] The current node is offset along the first coordinate axis by the corresponding encoded node by a first preset amount, where the first preset amount is a preset offset along the first coordinate axis. For example, if the first coordinate axis is the X-axis and the first preset amount is set to -1 and -2, the reference nodes are (x-1, y, z) and (x-2, y, z).

[0489] The current node is offset along the second coordinate axis by the corresponding encoded node, where the second preset amount is a preset offset along the second coordinate axis. For example, if the second coordinate axis is the Y axis and the second preset amount is set to -1 and -2, the reference nodes are (x, y-1, z) and (x, y-2, z).

[0490] The current node is offset by a third preset amount along the first coordinate axis and a fourth preset amount along the second coordinate axis, corresponding to the corresponding encoded node. The third preset amount is a preset offset along the first coordinate axis, and the fourth preset amount is a preset offset along the second coordinate axis. For example, if the first coordinate axis is the X-axis and the second coordinate axis is the Y-axis, and the third preset amount is set to -1 and the fourth preset amount is set to -1, then the reference node is (x-1, y-1, z).

[0491] The first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system.

[0492] In some embodiments, at least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount is:

[0493] ●Default value or value group;

[0494] ●The corresponding value or value group when the second condition is met;

[0495] ●determined based on the second condition being met;

[0496] ●Determined based on at least one type of information.

[0497] The default value or value group may be pre-set. The second condition and the at least one information will be described in detail in the following embodiments.

[0498] In some embodiments, at least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount is changed based on a corresponding offset value change, where the offset value change is:

[0499] ●Default value or value group;

[0500] ●The corresponding value or value group when the second condition is met;

[0501] ●determined based on the second condition being met;

[0502] ●Determined based on at least one type of information.

[0503] For example, when the number of non-empty nodes in the decoded nodes is large, a larger offset value variation is selected so that the offset range can be expanded to obtain more non-empty nodes.

[0504] For another example, determine the offset threshold xoffset along the X-axis and the offset value change addXoffset along the X-axis. Select three fixed-position nodes. If two of the selected fixed-position nodes are empty, addXoffset = 2; if one of the selected fixed-position nodes is empty, addXoffset = 1; if there are no empty nodes, addXoffset = 0. The preset value is the sum of the offset threshold xoffset and the offset value change addXoffset. That is, when there are more empty nodes, the preset value based on the change in the offset value is larger; when there are fewer empty nodes, the preset value based on the change in the offset value is smaller.

[0505] In some embodiments, at least one of the first coordinate axis direction and the second coordinate axis direction is:

[0506] ●Default coordinate axis direction;

[0507] The corresponding coordinate axis direction when the second condition is met;

[0508] ●determined based on the second condition being met;

[0509] ●Determined based on at least one type of information.

[0510] The default coordinate axis direction may be preset. The second condition and the at least one information will be described in detail in the following embodiments.

[0511] The second condition is related to at least one of the following information:

[0512] Patch information (e.g., patch density or point cloud bounding box size);

[0513] The relative position of the current node;

[0514] ●Placeholder information of the parent node of the current node;

[0515] ●The occupancy information of the neighbor nodes of the current node;

[0516] ●Placeholder information of the first k reference nodes.

[0517] Among them, geometric pieces refer to different geometric shapes, such as squares, rectangles, circles, etc. k can be a preset value. The relative position of the current node refers to the information of the position of the current node relative to other nodes / parent nodes / neighbor nodes / reference nodes. The relative position of the current node can be described by at least one of the coordinates, layer, and encoding of the current node. Placeholder information refers to the information of the occupied position. For example, the placeholder information of the parent node of the current node refers to the information of the position occupied by the parent node of the current node, which can specifically include at least one of the coordinates, layer, and encoding of the parent node of the current node.

[0518] The at least one information includes at least one of the following information:

[0519] Quantization parameters;

[0520] ●Data geometric accuracy;

[0521] ●Geometric patch density;

[0522] ●Geometric piece size;

[0523] ●Placeholder information for reference nodes;

[0524] The relative position of the current node;

[0525] ●The parent node of the current node and its neighbor nodes.

[0526] The geometric accuracy of the data can be described by the geometric accuracy of the data's plane position, height, shape, scale, etc.

[0527] The aforementioned preset values ​​and coordinate axis directions can all be default values ​​or preset values; or some can be default values ​​and some can be determined based on the second condition or related information; or all can be determined based on related information, etc. That is, any of the above methods for selecting preset values ​​and coordinate axes can be used, or a combination thereof.

[0528] For example, a default value group is used as the preset amount; for another example, the second condition is used to indicate parameter Q1 of the tile density. If the current tile density is greater than Q1, the corresponding value k1 is selected; otherwise, the value k2 is selected; for another example, there are multiple candidate values / groups that meet the second condition, and one / group is selected as the preset amount; for another example, the preset amount is determined based on the tile information, and if the tile density is small, the preset amount is increased; for another example, if the current node is the only child node of the parent node, the preset amount is increased; for another example, if the neighbor nodes of the parent node of the current node are empty, the preset amount is increased, etc. This application does not limit the method of selecting the preset amount and the coordinate axis.

[0529] In some embodiments, a coded node at a fixed position is obtained by setting a preset offset and a fixed multiple. For example, the product of the preset offset and the fixed multiple is the actual offset used. The coded node at a fixed position includes at least one of the following (taking the current node coordinates as (x, y, z) as an example):

[0530] The current node is offset along the first coordinate axis by the encoded node corresponding to the first multiple offset. The first multiple offset is the offset obtained by multiplying the first preset amount by the first multiple. The first preset amount is a preset offset along the first coordinate axis. For example, if the first coordinate axis is the X-axis, the first preset amount is set to -1 or -2, and the first multiple is set to 2, then the reference nodes are (x-2, y, z) and (x-4, y, z).

[0531] The current node is offset along the second coordinate axis by the corresponding encoded node by the second multiple offset. The second multiple offset is the offset obtained by multiplying the second preset amount by the second multiple. The second preset amount is a preset offset along the second coordinate axis. For example, if the second coordinate axis is the Y axis, and the second preset amount is set to -1 or -2, and the second multiple is set to 4, then the reference nodes are (x, y-4, z) and (x, y-8, z).

[0532] ●The current node is offset by the third multiple offset along the first coordinate axis and the fourth multiple offset along the second coordinate axis, and the corresponding encoded node. The third multiple offset is the offset obtained by multiplying the third preset amount and the third multiple. The fourth multiple offset is the offset obtained by multiplying the fourth preset amount and the fourth multiple. The third preset amount is a preset offset along the first coordinate axis, and the fourth preset amount is a preset offset along the second coordinate axis. Taking the first coordinate axis as the X axis and the second coordinate axis as the Y axis as an example, set the first preset amount to m3, the second preset amount to m4, set the third multiple and the fourth multiple to 1, then the reference node is (x-m3, y-m4, z).

[0533] Among them, the first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system; the first multiple, the second multiple, the third multiple and the fourth multiple are pre-set fixed multiples, which can be selected according to actual conditions, for example, the fixed multiples are selected based on the quantitative parameters of the point cloud.

[0534] In some embodiments, at least one of the first preset amount, the second preset amount, the third preset amount, the fourth preset amount, the first multiple, the second multiple, the third multiple, and the fourth multiple is:

[0535] ●Default value or value group;

[0536] ●The corresponding value or value group when the second condition is met;

[0537] ● selected from a plurality of candidate values ​​based on a second condition being met;

[0538] ●Determined based on at least one type of information.

[0539] The default value or value group may be pre-set. The second condition and the at least one information will be described in detail in the following embodiments.

[0540] In some embodiments, at least one of the first coordinate axis direction and the second coordinate axis direction is:

[0541] ●Default value or value group;

[0542] ●The corresponding value or value group when the second condition is met;

[0543] ●determined based on the second condition being met;

[0544] ●Determined based on at least one type of information.

[0545] The second condition is related to at least one of the following information:

[0546] Geometry information;

[0547] The relative position of the current node;

[0548] ●Placeholder information of the parent node of the current node;

[0549] ●The occupancy information of the neighbor nodes of the current node;

[0550] ●Placeholder information of the first k reference nodes.

[0551] The at least one information includes at least one of the following information:

[0552] Quantization parameters;

[0553] ●Data geometric accuracy;

[0554] ●Geometric patch density;

[0555] ●Geometric piece size;

[0556] ●Placeholder information for reference nodes;

[0557] The relative position of the current node;

[0558] ●The parent node of the current node and its neighbor nodes.

[0559] In some embodiments, the encoded node at a fixed position is obtained by setting an offset threshold. The encoded node at a fixed position includes at least one of the following (taking the current node coordinates as (x, y, z) as an example):

[0560] The offset of the current node along the first coordinate axis is less than the encoded node corresponding to the first offset threshold. The first offset threshold is the maximum value of the offset along the first coordinate axis. Taking the first coordinate axis as the X axis, for example, the first offset threshold is set to M1, then the reference node is (x-m1, y, z), where m1 <M1。

[0561] The current node's offset along the second coordinate axis is less than the encoded node corresponding to the second offset threshold. The second offset threshold is the maximum value of the offset along the second coordinate axis. Taking the second coordinate axis as the Y axis as an example, setting the second offset threshold to M2, the reference node is (x, y - m2, z), where m2 <M2。

[0562] The sum of the offset of the current node along the first coordinate axis and the offset along the second coordinate system is less than the encoded node corresponding to the third offset threshold. The third offset threshold is the maximum value of the sum of the offsets along the first coordinate axis and the second coordinate axis. Taking the first coordinate axis as the X axis and the second coordinate axis as the Y axis as an example, setting the third offset threshold to M3, the reference node is (x-m1, y-m2, z), where m1+m2 <M3。

[0563] The first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system.

[0564] Among them, the aforementioned first offset threshold, second offset threshold, third offset threshold, fourth offset threshold, first coordinate axis direction and second coordinate axis direction are determined based on at least one of the following information: quantization parameter; data geometric accuracy; geometric patch density; geometric patch size; relative position of the current node; the parent node of the current node and its neighbor nodes.

[0565] In some embodiments, at least one of the first offset threshold, the second offset threshold, the third offset threshold, and the fourth offset threshold is:

[0566] ●Default value or value group;

[0567] ●The corresponding value or value group when the second condition is met;

[0568] ●determined based on the second condition being met;

[0569] ●Determined based on at least one type of information.

[0570] In some embodiments, at least one of the first coordinate axis direction and the second coordinate axis direction is:

[0571] ●Default coordinate axis direction;

[0572] The corresponding coordinate axis direction when the second condition is met;

[0573] ●determined based on the second condition being met;

[0574] ●Determined based on at least one type of information.

[0575] The second condition is related to at least one of the following information:

[0576] Geometry information;

[0577] The relative position of the current node;

[0578] ●Placeholder information of the parent node of the current node;

[0579] ●The occupancy information of the neighbor nodes of the current node;

[0580] ●Placeholder information of the first k reference nodes.

[0581] Among them, geometric pieces refer to different geometric shapes, such as squares, rectangles, circles, etc. k can be a preset value. The relative position of the current node refers to the information of the position of the current node relative to other nodes / parent nodes / neighbor nodes / reference nodes. The relative position of the current node can be described by at least one of the coordinates, layer, and encoding of the current node. Placeholder information refers to the information of the occupied position. For example, the placeholder information of the parent node of the current node refers to the information of the position occupied by the parent node of the current node, which can specifically include at least one of the coordinates, layer, and encoding of the parent node of the current node.

[0582] The at least one information includes at least one of the following information:

[0583] Quantization parameters;

[0584] ●Data geometric accuracy;

[0585] ●Geometric patch density;

[0586] ●Geometric piece size;

[0587] ●Placeholder information for reference nodes;

[0588] The relative position of the current node;

[0589] ●The parent node of the current node and its neighbor nodes.

[0590] The geometric accuracy of the data can be described by the geometric accuracy of the data's plane position, height, shape, scale, etc.

[0591] In some embodiments, an offset threshold is set to obtain coded nodes at a fixed position, and a number threshold is set for the number of selected coded nodes, which may be a fixed number. The coded nodes are selected in a predetermined order until the fixed number of coded nodes is fully selected.

[0592] In some embodiments, the encoded nodes at fixed positions are selected as follows: a fixed number of encoded nodes that meet a first condition are selected in a first order, where the first order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order. The first condition is a pre-set condition, for example, the node is a non-empty node.

[0593] In some embodiments, among the encoded nodes corresponding to the current node whose offset along the first coordinate axis is less than the first offset, a fixed number of encoded nodes that meet the selection criteria are selected according to a first order; among the encoded nodes corresponding to the current node whose offset along the second coordinate axis is less than the second offset, a fixed number of encoded nodes that meet the selection criteria are selected according to a second order; among the encoded nodes corresponding to the sum of the offset of the current node along the first coordinate axis and the offset along the second coordinate system is less than the third offset, a fixed number of encoded nodes that meet the selection criteria are selected according to a third order; wherein the first order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; the second order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; the third order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order, the first offset is at least one offset less than a first offset threshold, the second offset is at least one offset less than the second offset threshold, and the third offset is at least one offset less than the third offset threshold.

[0594] In other embodiments, among the encoded nodes corresponding to the current node whose offset along the first coordinate axis is less than the first offset threshold, a fixed number of encoded nodes that meet the selection criteria are selected according to a first order; among the encoded nodes corresponding to the current node whose offset along the second coordinate axis is less than the second offset threshold, a fixed number of encoded nodes that meet the selection criteria are selected according to a second order; among the encoded nodes corresponding to the sum of the current node's offset along the first coordinate axis and the offset along the second coordinate system is less than a third offset threshold, a fixed number of encoded nodes that meet the selection criteria are selected according to a third order; wherein the first order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; the second order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order; and the third order is one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order.

[0595] The preset order is the order in which nodes at fixed positions are selected; the default order is the order determined by the encoder or parsed from the parameter set or bitstream corresponding to the current node; the coordinate axis order is the order selected sequentially or alternately according to the coordinate axis; for linear order, Hilbert order, or Morton order, please refer to Figure 10. Figure 10 shows a schematic diagram of the order for selecting encoded nodes at fixed positions provided by an exemplary embodiment of the present application.

[0596] Part (a) of Figure 10 shows a schematic diagram of the Hilbert order along the X-axis. Figure (a) shows that when the offset threshold along the X-axis and the offset threshold along the Y-axis are both 4, there are 16 optional fixed-position coded nodes. They are: (x, y), (x-1, y), (x-1, y-1), (x, y-1), (x, y-2), (x-1, y-2), (x-2, y-2), (x-2, y-1), (x-2, y), (x-3, y), (x-3, y-1), (x-3, y-2), (x-3, y-3), (x-2, y-3), (x-1, y-3), (x, y-3). If the number threshold is a value less than 16, select in sequence according to the direction of the arrow in Figure (a) until the fixed number of coded nodes is selected. For example, when the number threshold is 3, the fixed number of selected nodes is also 3, and (x, y), (x-1, y), and (x-1, y-1) are selected in sequence as the encoded nodes at fixed positions.

[0597] Part (b) of Figure 10 shows a schematic diagram of the Morton / zigzag sequence along the X-axis. Figure (b) shows that when the offset threshold along the X-axis and the offset threshold along the Y-axis are both 4, there are 16 optional fixed-position encoded nodes. They are (x, y), (x-1, y), (x, y-1), (x-1, y-1), (x, y-2), (x-1, y-2), (x, y-3), (x-1, y-3), (x-2, y), (x-3, y), (x-2, y-1), (x-3, y-1), (x-2, y-2), (x-3, y-2), (x-2, y-3), (x-3, y-3). If the number threshold is less than 16, nodes are selected in the direction of the arrows in Figure (b) until the fixed number of coded nodes is reached. For example, if the number threshold is 4, the fixed number of selected nodes is also 4, and (x, y), (x-1, y), (x, y-1), and (x-1, y-1) are selected in sequence as the coded nodes at fixed positions.

[0598] Part (c) of Figure 10 shows a schematic diagram of the linear sequence along the X-axis. Figure (c) shows that when the offset threshold along the X-axis and the offset threshold along the Y-axis are both 4, there are 16 optional fixed-position coded nodes. They are: (x, y), (x-1, y), (x-2, y), (x-3, y), (x, y-1), (x-1, y-1), (x-2, y-1), (x-3, y-1), (x, y-2), (x-1, y-2), (x-2, y-2), (x-3, y-2), (x, y-3), (x-1, y-3), (x-2, y-3), (x-3, y-3). If the number threshold is a value less than 16, select in sequence according to the direction of the arrow in Figure (c) until the fixed number of coded nodes is selected. For example, when the number threshold is 5, the fixed number of selected nodes is also 5, then (x, y), (x-1, y), (x-2, y), (x-3, y), (x, y-1) are selected in sequence as the encoded nodes at fixed positions.

[0599] It should be noted that the method of selecting the encoded node at a fixed position is not limited to the above method, and this application does not impose any restrictions on this.

[0600] A fixed-position, non-empty coded node is a node in the aforementioned fixed-position coded node that satisfies at least one occupied child node. A fixed-position, non-empty coded node can be obtained by at least one of the following methods (taking the current node coordinates as (x, y, z) as an example):

[0601] ● After obtaining the encoded nodes at fixed positions through the foregoing method, select the non-empty encoded nodes among them. For example, all the encoded nodes at fixed positions within the offset threshold range are obtained, and all the non-empty nodes among them are selected.

[0602] ● Based on the foregoing method of setting the offset threshold, select the encoded nodes at fixed positions. In the case where the encoded node at this fixed position is an empty node, increment its offset along the coordinate axis by one. For example, if the offset threshold along the X-axis direction is set to M1, then the node is (x - m1, y, z), where m1 < M1; if (x - m1, y, z) is an empty node, then m1 = m1 + 1; for another example, if the offset threshold along the Y-axis direction is set to M2, then the reference node is (x, y - m2, z), where m2 < M2; if (x, y - m2, z) is an empty node, then m2 = m2 + 1.

[0603] ● Set a count threshold. Based on the foregoing method of setting the offset threshold, select the encoded nodes at fixed positions. In the case where the encoded node at this fixed position is an empty node, increment its offset along the coordinate axis by one until the number of non-empty encoded nodes at the fixed position reaches the count threshold.

[0604] In some embodiments, select a fixed number of encoded nodes that meet the first condition in the first order until the fixed number (count threshold) of encoded nodes is selected; the first order can be any one of the default order, preset order, Hilbert order, Morton order, linear order, and coordinate axis order, and the first condition is that the node is non-empty.

[0605] In some embodiments, before step 820, determine whether the current node uses geometric mode encoding. In the case where the current node uses geometric mode encoding, execute step 820 and step 840.

[0606] Step 840: Determine the geometric mode of the current node according to the geometric information of the first node.

[0607] The geometric mode is the mode information corresponding to the entropy encoding mode. The geometric modes of the point cloud data include the isolated point mode, the plane mode, etc. Among them, the isolated point mode is used for the encoding and / or coding of the nodes determined to be isolated points; the plane mode is used for the encoding and / or coding of the nodes determined to be in the plane mode. Schematically, the plane mode means that the reference node of the current node is in the same plane, or the encoded child nodes of the current node are in the same plane, etc.

[0608] Exemplarily, based on the geometric information of the first node, determine that the geometric mode of the current node is the target encoding mode. Among them, the target encoding mode is the encoding mode corresponding to the plane mode nodes.

[0609] In the case where the first node includes a child node of the reference node, the geometric mode of the current node is determined based on the occupancy of the first node; in the case where the first node includes an encoded child node of the current node, the geometric mode of the current node is determined based on the planar position of the first node, and so on.

[0610] The geometric mode of the current node is determined based on the geometric information of the first node; or the geometric mode of the current node is determined based on at least one threshold and the geometric information of the first node. That is, the geometric mode of the current node may be determined only by the geometric information of the first node; or the geometric mode of the current node may be determined by comparing the geometric information of the first node with the at least one threshold in combination with the obtained threshold and the geometric information of the first node (e.g., a child node of the reference node).

[0611] In some embodiments, when the number of low-plane placeholder subnodes is less than a first threshold and the number of high-plane placeholder subnodes is greater than a second threshold, the current node is determined to be in the first coding mode; or, when the number of low-plane placeholder subnodes is greater than a third threshold and the number of high-plane placeholder subnodes is less than a fourth threshold, the current node is determined to be in the second coding mode. A low-plane placeholder subnode refers to an occupied subnode of a reference node located in the low plane, and a high-plane placeholder subnode refers to an occupied subnode of a reference node located in the high plane; or, a low-plane placeholder subnode refers to an occupied subnode of a reference node that meets a preset condition and is located in the low plane, and a high-plane placeholder subnode refers to an occupied subnode of a reference node that meets a preset condition and is located in the high plane, where the preset condition indicates whether the reference node is a high-plane node or a low-plane node.

[0612] It should be noted that a high-plane node refers to a node whose occupied sub-nodes are all located in the high plane, and a low-plane node refers to a node whose occupied sub-nodes are all located in the low plane; or, a high-plane node refers to a node that satisfies the condition that the number of occupied sub-nodes located in the low plane is less than the number of first sub-nodes and the number of occupied sub-nodes located in the high plane is greater than the number of second sub-nodes, and a low-plane node refers to a node that satisfies the condition that the number of occupied sub-nodes located in the low plane is greater than the number of third sub-nodes and the number of occupied sub-nodes located in the high plane is less than the number of fourth sub-nodes; wherein the number of first sub-nodes, the number of second sub-nodes, the number of third sub-nodes, and the number of fourth sub-nodes are pre-set values.

[0613] For example, set a first threshold k1, a second threshold k2, a third threshold k3, and a fourth threshold k4. Count the number of occupied sub-nodes in the low plane LowOccNum and the number of occupied sub-nodes in the high plane HighOccNum. When LowOccNum < k1 and HighOccNum > k2, determine that the current node is in the first coding mode; when LowOccNum > k3 and HighOccNum < k4, determine that the current node is in the second coding mode.

[0614] In some embodiments, when the number of occupied sub-nodes in the low plane is less than the first threshold, determine that the current node is in the first coding mode; or, when the number of occupied sub-nodes in the high plane is less than the second threshold, determine that the current node is in the second coding mode. Here, an occupied sub-node in the low plane refers to a sub-node of a reference node that is located in the low plane and is occupied, and an occupied sub-node in the high plane refers to a sub-node of a reference node that is located in the high plane and is occupied; or, an occupied sub-node in the low plane refers to a sub-node of a reference node that meets a preset condition and is located in the low plane and is occupied, and an occupied sub-node in the high plane refers to a sub-node of a reference node that meets a preset condition and is located in the high plane and is occupied, and the preset condition is used to indicate that the reference node is a high-plane node or a low-plane node.

[0615] For example, set a first threshold k1 and a second threshold k2. Count the number of occupied sub-nodes in the low plane LowOccNum and the number of occupied sub-nodes in the high plane HighOccNum. When LowOccNum < k1, determine that the geometric mode of the current node is in the first coding mode; when HighOccNum < k2, determine that the geometric mode of the current node is in the second coding mode.

[0616] In some embodiments, when the sub-node to be coded is located in the high plane, the number of occupied sub-nodes in the low plane is less than the first threshold, and the number of occupied sub-nodes in the high plane is greater than the second threshold, determine that the current node is in the first coding mode; or, when the sub-node to be coded is located in the low plane, the number of occupied sub-nodes in the low plane is greater than the third threshold, and the number of occupied sub-nodes in the high plane is less than the fourth threshold, determine that the current node is in the second coding mode. Here, an occupied sub-node in the low plane refers to a sub-node of a reference node that is located in the low plane and is occupied, and an occupied sub-node in the high plane refers to a sub-node of a reference node that is located in the high plane and is occupied; or, an occupied sub-node in the low plane refers to a sub-node of a reference node that meets a preset condition and is located in the low plane and is occupied, and an occupied sub-node in the high plane refers to a sub-node of a reference node that meets a preset condition and is located in the high plane and is occupied, and the preset condition is used to indicate that the reference node is a high-plane node or a low-plane node; the sub-node to be coded refers to the current sub-node to be coded in the current node.

[0617] For example, set a first threshold k1, a second threshold k2, a third threshold k3, and a fourth threshold k4. Count the number of occupied sub-nodes in the low plane LowOccNum and the number of occupied sub-nodes in the high plane HighOccNum. When the sub-node to be encoded is in the high plane and LowOccNum < k1 and HighOccNum > k2, determine that the current node is in the first encoding mode; when the sub-node to be encoded is in the low plane and LowOccNum > k3 and HighOccNum < k4, determine that the current node is in the second encoding mode.

[0618] It should be noted that the above method shows a method for determining the geometric mode of the current node based on the occupancy of the sub-node to be encoded and the sub-node of the reference node; in addition, the geometric mode of the current node can also be determined based on the sub-node to be encoded and at least one first node. For example, the geometric mode of the current node can be determined based on the occupancy of the sub-node to be encoded, the sub-node of the reference node, and the encoded sub-node of the current node. The present application does not limit the individual or combined use of the first node.

[0619] In some embodiments, the geometric mode of the current node is determined based on the geometric information of the encoded sub-node of the current node.

[0620] In some embodiments, the geometric mode of the current node is determined based on the geometric information of the reference node and the geometric information of the encoded sub-node of the current node. For example, when the encoded sub-node of the current node and the reference node are not in the same plane, and the sub-node to be encoded of the current node and the encoded sub-node are not in the same plane, determine that the geometric mode of the current node is the first encoding mode; or, when the encoded sub-node of the current node and the reference node are not in the same plane, and the sub-node to be encoded of the current node and the encoded sub-node are in the same plane, determine that the geometric mode of the current node is the second encoding mode; or, when the encoded sub-node of the current node and the reference node are in the same plane, and the sub-node to be encoded of the current node and the encoded sub-node are in the same plane, determine that the geometric mode of the current node is the third encoding mode; or, when the encoded sub-node of the current node and the reference node are in the same plane, and the sub-node to be encoded of the current node and the encoded sub-node are not in the same plane, determine that the geometric mode of the current node is the fourth encoding mode.

[0621] In some embodiments, the reference node does not satisfy the plane mode. When the encoded sub-nodes of the current node are in the same plane, and the sub-node to be encoded of the current node and the encoded sub-nodes are also in the same plane, determine that the geometric mode of the sub-node to be encoded is the fifth encoding mode.

[0622] In some embodiments, the geometric mode of the current node is determined based on the geometric information of the parent node of the current node; or, the geometric mode of the current node is determined based on the geometric information of the child nodes of the reference node that has the same parent node as the current node; or, the geometric mode of the current node is determined based on the geometric information of the child nodes of the neighboring nodes that has the same parent node as the current node; or, the geometric mode of the current node is determined based on the geometric information of the neighboring nodes that has the same parent node as the current node.

[0623] In some embodiments, the at least one threshold is determined based on at least one of the following values:

[0624] A first value determined from the encoding end;

[0625] A second value parsed from the parameter set or code stream corresponding to the current node;

[0626] A third value determined based on the first information and / or the second information;

[0627] A fourth value adaptively determined based on the first information and / or the second information;

[0628] The first information is used to indicate the statistical characteristics or spatial information of the current node, and the second information is used to indicate the statistical characteristics of the encoded node.

[0629] That is, the first value may be a default value or a preset value of the encoding end. The second value is a value obtained from the parameter set or code stream corresponding to the current node. For example, the parameter set includes a sequence parameter set (SPS), a geometry parameter set (GPS), an attribute parameter set (APS), a geometry header brick (GHB), and an attribute header brick (AHB); for example, the value planarOccNumTh is obtained from the parameter set or code stream to determine the second value.

[0630] In some embodiments, the first information includes at least one of the following information:

[0631] ●The number of reference nodes that meet the preset conditions;

[0632] ●The number of child nodes of the reference node that meet the preset conditions;

[0633] ●The distribution of the number of child nodes of the reference node that meets the preset conditions;

[0634] ●The positional relationship between the subnodes of the reference node that meet the preset conditions and the subnodes to be encoded of the current node;

[0635] The preset condition is used to indicate whether the reference node is a high-plane node or a low-plane node.

[0636] Among them, a high-plane node refers to a node whose occupied sub-nodes are all located in the high plane, and a low-plane node refers to a node whose occupied sub-nodes are all located in the low plane; or, a high-plane node refers to a node that satisfies the condition that the number of occupied sub-nodes located in the low plane is less than the number of first sub-nodes and the number of occupied sub-nodes located in the high plane is greater than the number of second sub-nodes, and a low-plane node refers to a node that satisfies the condition that the number of occupied sub-nodes located in the low plane is greater than the number of third sub-nodes and the number of occupied sub-nodes located in the high plane is less than the number of fourth sub-nodes; wherein the number of first sub-nodes, the number of second sub-nodes, the number of third sub-nodes, and the number of fourth sub-nodes are pre-set values.

[0637] In some embodiments, the second information includes at least one of the following information:

[0638] The number of encoded nodes that satisfy the planar pattern;

[0639] ●The number of reference nodes in the encoded nodes that satisfy the planar pattern;

[0640] ●The number of children of the reference node in the encoded node that satisfy the planar pattern;

[0641] The ratio of the number of reference nodes that satisfy the planar pattern to the number of non-empty reference nodes in the encoded nodes;

[0642] ●The ratio of the number of child nodes of the reference node that meet the planar mode to the number of reference nodes in the encoded node.

[0643] In some embodiments, the second information includes at least one of the following information:

[0644] ●The number of reference nodes corresponding to the nodes that satisfy the planar pattern in the encoded nodes;

[0645] ●The number of child nodes of the reference node corresponding to the nodes that satisfy the plane pattern in the encoded nodes;

[0646] The ratio of the number of reference nodes corresponding to the nodes that satisfy the planar pattern in the encoded nodes to the number of non-empty reference nodes corresponding to the nodes that satisfy the planar pattern;

[0647] ●The ratio of the number of child nodes of the reference node corresponding to the node that meets the planar mode in the encoded node to the number of reference nodes.

[0648] The third value is determined based on the first information and / or the second information; alternatively, the third value may be determined based on other information. For example, the third value may be determined using the point cloud slice density (the ratio of the point cloud slice volume or area to the number of points): the point cloud slice density Q1 is determined from the encoder, parameter set, or bitstream. If the point cloud slice density is less than Q1, the third value is determined to be k1; otherwise, the third value is k2.

[0649] The fourth value is determined based on the first information and / or the second information in an adaptive manner. The adaptive manner means that the fourth value itself is adjusted according to the acquired first information and / or second information.

[0650] In some embodiments, the fourth value itself is adjusted according to the first information. For example, when the number of reference nodes that meet the preset conditions is greater than N1, the fourth value a is adjusted to a=a+1; for another example, when the number of child nodes of the reference node that meets the preset conditions is less than N2, the fourth value a is adjusted to a=a-1.

[0651] In some embodiments, an interval D1 for counting the second information is set, and the second information is counted for every D1 encoded nodes; in other embodiments, an interval D2 for counting the second information is set, and the second information of non-empty nodes is counted for every D2 encoded nodes.

[0652] In some embodiments, before step 840 , the plane mode eligibility of the current node is determined, for example, based on the second node. After determining that the current node is plane mode eligible, the determination of the geometry mode in step 840 is performed.

[0653] Exemplarily, based on the geometric information of the second node, the plane mode qualification of the current node is determined, and the plane mode qualification is used to indicate whether the current node is applicable to the plane mode; wherein the second node is the same as or different from the first node, and the second node is at least one of the following nodes: a reference node; a child node of the reference node; an encoded child node of the current node; or a child node to be encoded of the current node.

[0654] Exemplarily, the plane mode qualification of the current node is determined based on the number of non-empty nodes in the reference node; or, the plane mode qualification of the current node is determined based on the occupancy of the child nodes of the reference node; or, the plane mode qualification of the current node is determined based on the occupancy of the encoded child nodes of the reference node.

[0655] To sum up, the method provided in the embodiment of the present application determines the geometric mode of the current node by obtaining the geometric information provided by the first node corresponding to the current node, and optimizes the judgment of the geometric mode of the current node by combining the information in the octree partitioning process, so that it can be encoded according to the entropy coding method corresponding to the geometric mode, thereby improving the efficiency of encoding and decoding of point cloud data.

[0656] It should be noted that point cloud data decoding and point cloud data encoding correspond to each other, that is, the method for determining the geometric pattern executed by the encoding end device corresponds to the method for determining the geometric pattern executed by the decoding end device. The detailed description of the execution steps of the encoding end device can also refer to the description of the execution steps of the decoding end device, and will not be repeated in detail.

[0657] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0658] Please refer to Figure 17, which shows a block diagram of a device for determining a geometric pattern provided by one embodiment of the present application. The device has the function of implementing the above-mentioned method example, and the function can be implemented by hardware or by hardware executing corresponding software. The device can be the computer device described above, or it can be set on a computer device. The computer device can be implemented as a decoding end device. The device can include: an acquisition module 620 and a determination module 630.

[0659] The acquisition module 620 is used to acquire geometric information of the first node;

[0660] The determination module 630 is used to determine the geometric mode of the current node based on the geometric information of the first node, where the current node is the node to be decoded; wherein the first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0661] In a possible implementation, the determination module 630 is configured to determine the geometric mode of the current node based on at least one threshold and the geometric information of the first node.

[0662] In one possible embodiment, the first node includes the child nodes of the reference node and the child nodes to be decoded of the current node; the determination module 630 is used to determine the geometric pattern of the current node based on at least one threshold, the child nodes of the reference node and the geometric information of the child nodes to be decoded of the current node.

[0663] In one possible embodiment, the child nodes of the reference node include low-plane placeholder child nodes and high-plane placeholder child nodes; the determination module 630 is used to count the number of the low-plane placeholder child nodes and the number of the high-plane placeholder child nodes; and determine the geometric pattern of the current node based on the at least one threshold, the geometric information of the child node to be decoded, the number of the low-plane placeholder child nodes, and the number of the high-plane placeholder child nodes.

[0664] In a possible implementation, the at least one threshold includes a first threshold, a second threshold, a third threshold, and a fourth threshold.

[0665] In one possible embodiment, the determination module 630 is used to determine that the current node is in the first decoding mode when the number of low-plane placeholder sub-nodes is less than a first threshold and the number of high-plane placeholder sub-nodes is greater than a second threshold; or to determine that the current node is in the second decoding mode when the number of low-plane placeholder sub-nodes is greater than a third threshold and the number of high-plane placeholder sub-nodes is less than a fourth threshold; wherein the low-plane placeholder sub-node refers to a sub-node of the reference node or a reference node that meets the preset conditions that is located in the low plane and occupied, and the high-plane placeholder sub-node refers to a sub-node of the reference node or a reference node that meets the preset conditions that is located in the high plane and occupied, and the preset condition is used to indicate that the reference node is a high-plane node or a low-plane node.

[0666] In one possible embodiment, the determination module 630 is used to determine that the current node is in the first decoding mode when the number of low-plane placeholder sub-nodes is less than a first threshold; or, to determine that the current node is in the second decoding mode when the number of high-plane placeholder sub-nodes is less than a second threshold; wherein the low-plane placeholder sub-node refers to the reference node or a reference node that meets the preset conditions and is located in the low plane and is occupied, and the high-plane placeholder sub-node refers to the reference node or a reference node that meets the preset conditions and is located in the high plane and is occupied, and the preset condition is used to indicate that the reference node is a high-plane node or a low-plane node.

[0667] In one possible embodiment, the determination module 630 is used to determine that the current node is in the first decoding mode when the sub-node to be decoded is located in the high plane and the number of low-plane placeholder sub-nodes is less than the first threshold and the number of high-plane placeholder sub-nodes is greater than the second threshold; or, when the sub-node to be decoded is located in the low plane and the number of low-plane placeholder sub-nodes is greater than the third threshold and the number of high-plane placeholder sub-nodes is less than the fourth threshold, determine that the current node is in the second decoding mode; wherein the low-plane placeholder sub-node refers to the reference node or a reference node that meets the preset conditions and is located in the low plane and is occupied, the high-plane placeholder sub-node refers to the reference node or a reference node that meets the preset conditions and is located in the high plane and is occupied, the sub-node to be decoded refers to the current sub-node to be decoded in the current node, and the preset condition is used to indicate that the reference node is a high-plane node or a low-plane node.

[0668] In one possible implementation, the determination module 630 is configured to define an initialization number of reference nodes that meet preset conditions and an offset value that meets the conditions; determine the placeholders located in the lower plane of the reference node and the placeholders located in the upper plane of the reference node based on a geometric placeholder mapping table and the offset value that meets the conditions; increase the initialization number of reference nodes that meet the preset conditions according to the placeholders located in the lower plane of the reference node and the placeholders located in the upper plane of the reference node to obtain the number of reference nodes that meet the preset conditions; and check each bit of the placeholders located in the lower plane of the reference node and the placeholders located in the upper plane of the reference node to obtain the median number of the lower plane placeholder sub-nodes and the median number of the upper plane placeholder sub-nodes, respectively; and assign values ​​to the median number of the lower plane placeholder sub-nodes and the median number of the upper plane placeholder sub-nodes based on a size relationship between the number of reference nodes that meet the preset conditions and a preset value to obtain the number of the lower plane placeholder sub-nodes and the number of the upper plane placeholder sub-nodes.

[0669] In a possible implementation, the determination module 630 is configured to determine the geometric mode of the current node based on geometric information of decoded child nodes of the current node.

[0670] In one possible embodiment, the determination module 630 is used to determine that the sub-node to be decoded is in the first decoding mode when the decoded sub-node of the current node and the reference node are not in the same plane, and the sub-node to be decoded of the current node and the decoded sub-node are not in the same plane; or, when the decoded sub-node of the current node and the reference node are not in the same plane, and the sub-node to be decoded of the current node and the decoded sub-node are in the same plane, determine that the sub-node to be decoded is in the second decoding mode; or, when the decoded sub-node of the current node and the reference node are in the same plane, and the sub-node to be decoded of the current node and the decoded sub-node are in the same plane, determine that the sub-node to be decoded is in the third decoding mode; or, when the decoded sub-node of the current node and the reference node are in the same plane, and the sub-node to be decoded of the current node and the decoded sub-node are not in the same plane, determine that the sub-node to be decoded is in the fourth decoding mode.

[0671] In one possible implementation, the reference node does not satisfy the plane mode; the determination module 630 is used to determine that the sub-node to be decoded is the fifth decoding mode when the decoded sub-node of the current node is in the same plane and the sub-node to be decoded of the current node is also in the same plane as the decoded sub-node.

[0672] In one possible embodiment, the at least one threshold is determined based on at least one of the following values: a first value determined from the decoding end; a second value parsed from the parameter set or code stream corresponding to the current node; a third value determined based on the first information and / or the second information; a fourth value adaptively determined based on the first information and / or the second information; wherein the first information is used to indicate the statistical characteristics or spatial information of the current node, and the second information is used to indicate the statistical characteristics of the decoded node.

[0673] In one possible embodiment, the first information includes at least one of the following information: the number of reference nodes that meet preset conditions; the number of child nodes of the reference node that meet the preset conditions; the distribution of the number of child nodes of the reference node that meet the preset conditions; the positional relationship between the child nodes of the reference node that meet the preset conditions and the child nodes to be decoded of the current node; wherein the preset conditions are used to indicate that the reference node is a high plane node or a low plane node.

[0674] In one possible embodiment, the high-plane node refers to a node whose occupied sub-nodes are all located in the high plane, and the low-plane node refers to a node whose occupied sub-nodes are all located in the low plane; or, the high-plane node refers to a node that satisfies the requirement that the number of occupied sub-nodes located in the low plane is less than the number of first sub-nodes and the number of occupied sub-nodes located in the high plane is greater than the number of second sub-nodes, and the low-plane node refers to a node that satisfies the requirement that the number of occupied sub-nodes located in the low plane is greater than the number of third sub-nodes and the number of occupied sub-nodes located in the high plane is less than the number of fourth sub-nodes; wherein the first number of sub-nodes, the second number of sub-nodes, the third number of sub-nodes, and the fourth number of sub-nodes are pre-set values.

[0675] In one possible embodiment, the second information includes at least one of the following information: the number of nodes that satisfy the plane mode in the decoded node; the number of reference nodes that satisfy the plane mode in the decoded node; the number of child nodes of the reference node that satisfy the plane mode in the decoded node; the ratio of the number of reference nodes that satisfy the plane mode in the decoded node to the number of non-empty reference nodes; the ratio of the number of child nodes of the reference node that satisfy the plane mode in the decoded node to the number of reference nodes.

[0676] In one possible embodiment, the second information includes at least one of the following information: the number of reference nodes corresponding to the nodes in the decoded nodes that satisfy the plane mode; the number of child nodes of the reference nodes corresponding to the nodes in the decoded nodes that satisfy the plane mode; the ratio of the number of reference nodes corresponding to the nodes in the decoded nodes that satisfy the plane mode to the number of non-empty reference nodes corresponding to the nodes that satisfy the plane mode; the ratio of the number of child nodes of the reference nodes corresponding to the nodes in the decoded nodes that satisfy the plane mode to the number of reference nodes.

[0677] In one possible embodiment, the determination module 630 is used to determine the reference node based on the geometric information of the parent node of the current node; or, to determine the reference node based on the geometric information of the child node of the neighboring node that is located at the same parent node as the current node; or, to determine the reference node based on the geometric information of the neighboring node that is located at the same parent node as the current node.

[0678] In one possible embodiment, the selection range of the reference node is at least one of the following nodes: a decoded node; a non-empty decoded node; a decoded node at the same layer as the current node; a decoded node at the same layer as the current node and non-empty; a decoded node at a fixed position; a decoded node at a fixed position and non-empty; the parent node of the current node; a neighbor node at the same parent node as the current node; and a child node of a neighbor node at the same parent node as the current node.

[0679] In a possible embodiment, the decoded nodes at the fixed position include at least one of the following: a decoded node corresponding to a first preset amount offset of the current node along the first coordinate axis, the first preset amount being a preset offset along the first coordinate axis; a decoded node corresponding to a second preset amount offset of the current node along the second coordinate axis, the second preset amount being a preset offset along the second coordinate axis; a decoded node corresponding to a third preset amount offset of the current node along the first coordinate axis and a fourth preset amount offset along the second coordinate axis, the third preset amount being a preset offset along the first coordinate axis, and the fourth preset amount being a preset offset along the second coordinate axis; wherein the first coordinate axis and the second coordinate axis are coordinate axes in two different directions in a three-dimensional coordinate system.

[0680] In one possible embodiment, at least one of the first preset quantity, the second preset quantity, the third preset quantity, and the fourth preset quantity is: a default value or value group; or a corresponding value or value group when the second condition is met; or determined based on the second condition being met; or determined based on at least one information.

[0681] In one possible embodiment, at least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount changes based on a corresponding offset value change, and the offset value change is: a default value or value group; or a corresponding value or value group when the second condition is met; or determined based on the second condition being met; or determined based on at least one information.

[0682] In a possible embodiment, the selection range of the decoded nodes at the fixed position includes at least one of the following: the decoded nodes corresponding to the current node whose offset along the first coordinate axis is less than a first offset threshold, and the first offset threshold is a preset maximum offset along the first coordinate axis; the decoded nodes corresponding to the current node whose offset along the second coordinate axis is less than a second offset threshold, and the second offset threshold is a preset maximum offset along the second coordinate axis; the decoded nodes corresponding to the sum of the offset of the current node along the first coordinate axis and the offset along the second coordinate system is less than a third offset threshold, and the third offset threshold is a preset maximum sum of the offsets along the first coordinate axis and the second coordinate axis; wherein the first coordinate axis and the second coordinate axis are coordinate axes in two different directions in the three-dimensional coordinate system.

[0683] In one possible embodiment, the decoded nodes at the fixed positions are selected as follows: a fixed number of decoded nodes that meet the first condition are selected in a first order, where the first order is at least one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order.

[0684] In one possible implementation, at least one of the first offset threshold, the second offset threshold, the third offset threshold, and the fourth offset threshold is: a default value or value group; or a corresponding value or value group when the second condition is met; or determined based on the second condition being met; or determined based on at least one information.

[0685] In one possible implementation, at least one of the first coordinate axis direction and the second coordinate axis direction is: a default coordinate axis direction; or a coordinate axis direction corresponding to when the second condition is met; or determined based on the second condition being met; or determined based on at least one information.

[0686] In one possible embodiment, the second condition is related to at least one of the following information: geometric information; the relative position of the current node; the placeholder information of the parent node of the current node; the placeholder information of the neighbor nodes of the current node; and the placeholder information of the first k reference nodes.

[0687] In one possible embodiment, the at least one information includes at least one of the following information: quantization parameters; data geometric accuracy; geometric patch density; geometric patch size; placeholder information of the reference node; the relative position of the current node; the parent node of the current node and its neighbor nodes.

[0688] In one possible implementation, the determination module 630 is further used to determine a method for selecting subsequent reference nodes based on the number of non-empty nodes in the selected reference nodes; or, to determine a method for selecting subsequent reference nodes based on a number interval in which the number of non-empty nodes in the selected reference nodes is located; or, to determine a method for selecting subsequent reference nodes based on at least one threshold and the number of non-empty nodes in the selected reference nodes.

[0689] In one possible embodiment, the determination module 630 is used to determine the plane mode qualification of the current node based on the geometric information of the second node, and the plane mode qualification is used to indicate whether the current node is applicable to the plane mode; wherein the second node is the same as or different from the first node, and the second node is at least one of the following nodes: a reference node; a child node of the reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0690] In one possible embodiment, the determination module 630 is used to determine the plane mode qualification of the current node based on the number of non-empty nodes in the reference node; or, to determine the plane mode qualification of the current node based on the occupancy of the child nodes of the reference node; or, to determine the plane mode qualification of the current node based on the occupancy of the decoded child nodes of the reference node.

[0691] In a possible implementation, the determination module 630 is configured to determine whether the current node uses geometric mode decoding.

[0692] In one possible embodiment, the determination module 630 is used to perform any one of the following steps: determining whether the current node uses geometric mode decoding at the point cloud or point cloud slice level; determining whether the current node uses geometric mode decoding at the macroblock level; determining whether the current node uses geometric mode decoding at the depth level of the octree.

[0693] In one possible embodiment, the determination module 630 is used to perform any one of the following steps: determining whether the current node uses geometric mode decoding based on the decoding mode adopted by the decoding end; determining whether the current node uses geometric mode decoding based on the parameter set or code stream corresponding to the current node; determining whether the current node uses geometric mode decoding based on a geometric mode threshold parameter, where the geometric mode threshold parameter is a threshold parameter obtained based on the decoding end or the parameter set or the code stream.

[0694] Please refer to Figure 18, which shows a block diagram of a device for determining a geometric pattern provided by an embodiment of the present application. The device has the function of implementing the above-mentioned method example, and the function can be implemented by hardware or by hardware executing corresponding software. The device can be the computer device described above, or it can be set on a computer device. The computer device can be implemented as an encoding end device. The device can include: an acquisition module 720 and a determination module 730.

[0695] The acquisition module 720 is used to acquire geometric information of the first node;

[0696] The determination module 730 is used to determine the geometric mode of the current node based on the geometric information of the first node, where the current node is the node to be encoded; wherein the first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

[0697] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0698] Please refer to Figure 19, which shows a block diagram of the structure of a computer device provided by one embodiment of the present application. The computer device can be the encoding end device described above, or it can be the encoding end device described above. The computer device 150 may include: a processor 151, a memory 152, a communication interface 153, an encoder / encoder 154, and a bus 155. Specifically, when the computer device is implemented as an encoding end device, the computer device includes an encoder 154; when the computer device is implemented as a decoding end device, the computer device includes a decoder 154.

[0699] The processor 151 includes one or more processing cores, and the processor 151 executes various functional applications and information processing by running software programs and modules. The memory 152 can be used to store computer programs, and the processor 151 is used to execute the computer programs to implement the above-mentioned method for determining the geometric pattern. The communication interface 153 can be used to communicate with other devices, such as receiving and transmitting audio and video data. The encoder / encoder 154 can be used to implement encoding and coding functions, such as encoding and coding audio and video data. Among them, the encoder 154 is used to implement the encoding function and / or the various encoding steps in the aforementioned method embodiments, and the decoder 154 is used to implement the decoding function and / or the various decoding steps in the aforementioned method embodiments. The memory 152 is connected to the processor 151 via a bus 155.

[0700] In addition, the memory 152 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. Volatile or non-volatile storage devices include but are not limited to: magnetic disks or optical disks, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), SRAM (Static Random-Access Memory), ROM (Read-Only Memory), magnetic memory, flash memory, PROM (Programmable Read-Only Memory).

[0701] Those skilled in the art will appreciate that the structure shown in FIG. 19 does not limit the computer device 150 , and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.

[0702] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. When the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the method for determining the above-mentioned geometric pattern is implemented.

[0703] In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described method for determining a geometric pattern.

[0704] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application do not limit this.

[0705] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for determining a geometric pattern, characterized in that: The method is applied to a decoding end, and is executed by a decoding end device, and includes: Get the geometric information of the first node; Determine a geometric mode of a current node according to the geometric information of the first node, the current node being a node to be decoded; The first node is at least one of the following nodes: a reference node; a child node of the reference node; a decoded child node of the current node; or a to-be-decoded child node of the current node.

2. The method according to claim 1, characterized in that The first node includes a child node of the reference node and a child node to be decoded of the current node; The step of determining the geometric mode of the current node according to the geometric information of the first node includes: The geometric mode of the current node is determined based on at least one threshold, the child nodes of the reference node, and the geometric information of the child nodes to be decoded of the current node.

3. The method according to claim 2, characterized in that The subnodes of the reference node include a low plane placeholder subnode and a high plane placeholder subnode; The determining the geometric mode of the current node based on at least one threshold, the child nodes of the reference node, and the geometric information of the child nodes to be decoded of the current node includes: Counting the number of the lower plane placeholder sub-nodes and the number of the higher plane placeholder sub-nodes; The geometric mode of the current node is determined based on the at least one threshold, the geometric information of the to-be-decoded child node, the number of the lower plane placeholder child nodes, and the number of the upper plane placeholder child nodes.

4. The method according to claim 2, characterized in that: The at least one threshold comprises a first threshold, a second threshold, a third threshold and a fourth threshold; The determining the geometric mode of the current node based on at least one threshold, the geometric information of the to-be-decoded subnode, the number of the low plane placeholder subnodes, and the number of the high plane placeholder subnodes comprises: When the to-be-decoded subnode is located in the high plane and the number of the low plane placeholder subnodes is less than the first threshold and the number of the high plane placeholder subnodes is greater than the second threshold, determining that the current node is in the first decoding mode; or, When the to-be-decoded subnode is located in the low plane and the number of the low plane placeholder subnodes is greater than the third threshold and the number of the high plane placeholder subnodes is less than the fourth threshold, it is determined that the current node is in the second decoding mode.

5. The method according to claim 3, characterized in that: The counting of the number of the low plane placeholder sub-nodes and the number of the high plane placeholder sub-nodes includes: Define the initialization number of reference nodes that meet the preset conditions, and the offset values ​​that meet the conditions; Based on the geometric placeholder code mapping table and the offset value that meets the condition, determine the placeholder code located in the low plane of the reference node and the placeholder code located in the high plane of the reference node; According to the placeholder code located in the low plane of the reference node and the placeholder code located in the high plane of the reference node, the initialization number of the reference nodes meeting the preset condition is increased to obtain the number of the reference nodes meeting the preset condition; and, checking each bit of the placeholder code located in the low plane of the reference node and the placeholder code located in the high plane of the reference node to obtain the middle number of the low plane placeholder subnodes and the middle number of the high plane placeholder subnodes respectively; Based on the number of reference nodes that meet the preset conditions and the size relationship between them and the preset value, the middle number of the low plane placeholder sub-nodes and the middle number of the high plane placeholder sub-nodes are assigned values ​​respectively to obtain the number of the low plane placeholder sub-nodes and the number of the high plane placeholder sub-nodes.

6. The method according to claim 1, characterized in that The step of determining the geometric mode of the current node according to the geometric information of the first node includes: Based on the geometric information of the decoded child nodes of the current node, a geometric mode of the current node is determined.

7. The method according to claim 6, characterized in that The step of determining the geometric mode of the current node based on the geometric information of the decoded child nodes of the current node comprises: When the decoded subnode of the current node is not in the same plane as the reference node, and the subnode to be decoded of the current node is not in the same plane as the decoded subnode, determining that the subnode to be decoded is in the first decoding mode; or, The decoded subnode of the current node is not in the same plane as the reference node, and the subnode to be decoded of the current node is When the decoded sub-nodes are in the same plane, determining that the sub-node to be decoded is in the second decoding mode; or, When the decoded subnode of the current node and the reference node are in the same plane, and the subnode to be decoded of the current node and the decoded subnode are in the same plane, determining that the subnode to be decoded is in the third decoding mode; or, When the decoded subnode of the current node and the reference node are in the same plane, and the subnode to be decoded of the current node and the decoded subnode are not in the same plane, it is determined that the subnode to be decoded is in the fourth decoding mode.

8. The method according to claim 6, characterized in that The reference node does not satisfy the planar mode; The step of determining the geometric mode of the current node based on the geometric information of the decoded child nodes of the current node comprises: When the decoded subnodes of the current node are on the same plane, and the subnode to be decoded of the current node and the decoded subnode are also on the same plane, it is determined that the subnode to be decoded is in the fifth decoding mode.

9. The method according to any one of claims 2 to 5, characterized in that: The at least one threshold is determined based on at least one of the following values: A first value determined from the decoding end; a second value parsed from the parameter set or code stream corresponding to the current node; a third value determined based on the first information and / or the second information; a fourth value adaptively determined based on the first information and / or the second information; The first information is used to indicate the statistical characteristics or spatial information of the current node, and the second information is used to indicate the statistical characteristics of the decoded node.

10. The method according to claim 9, characterized in that The first information includes at least one of the following information: The number of reference nodes that meet the preset conditions; the number of child nodes of the reference nodes that meet the preset conditions; the distribution of the number of child nodes of the reference nodes that meet the preset conditions; the positional relationship between the child nodes of the reference nodes that meet the preset conditions and the child nodes to be decoded of the current node; The preset condition is used to indicate that the reference node is a high plane node or a low plane node.

11. The method according to any one of claims 3 to 5 or claim 10, characterized in that: The high plane node refers to a node whose occupied child nodes are all located in the high plane, and the low plane node refers to a node whose occupied child nodes are all located in the low plane; or, The high plane node refers to a node that satisfies the conditions that the number of occupied subnodes located in the low plane is less than the number of first subnodes and the number of occupied subnodes located in the high plane is greater than the number of second subnodes, and the low plane node refers to a node that satisfies the conditions that the number of occupied subnodes located in the low plane is greater than the number of third subnodes and the number of occupied subnodes located in the high plane is less than the number of fourth subnodes; Among them, the first number of sub-nodes, the second number of sub-nodes, the third number of sub-nodes, and the fourth number of sub-nodes are preset values.

12. The method according to claim 9, characterized in that The second information includes at least one of the following information: The number of nodes that meet the planar mode in the decoded nodes; the number of reference nodes that meet the planar mode in the decoded nodes; the number of child nodes of the reference nodes that meet the planar mode in the decoded nodes; the ratio of the number of reference nodes that meet the planar mode in the decoded nodes to the number of non-empty reference nodes; The ratio of the number of child nodes of the reference node that meets the planar mode in the decoded nodes to the number of the reference nodes.

13. The method according to claim 9, characterized in that The second information includes at least one of the following information: The number of reference nodes corresponding to the nodes satisfying the planar mode among the decoded nodes; the number of child nodes of the reference nodes corresponding to the nodes satisfying the planar mode among the decoded nodes; the ratio of the number of reference nodes corresponding to the nodes satisfying the planar mode among the decoded nodes to the number of non-empty reference nodes corresponding to the nodes satisfying the planar mode; The ratio of the number of child nodes of the reference node corresponding to the node satisfying the plane mode among the decoded nodes to the number of the reference nodes.

14. The method according to claim 1, characterized in that The method further comprises: Determine the reference node based on the geometric information of the parent node of the current node; or, Determine the reference node based on geometric information of child nodes of neighbor nodes located at the same parent node as the current node; or, The reference node is determined based on geometric information of neighboring nodes located at the same parent node as the current node.

15. The method according to any one of claims 1 to 14, characterized in that: The reference node is selected from at least one of the following nodes: Decoded nodes; non-empty decoded nodes; decoded nodes at the same level as the current node; decoded nodes at the same level as the current node and non-empty; decoded nodes at fixed positions; decoded nodes at fixed positions and non-empty; parent node of the current node; Neighbor nodes that are located at the same parent node as the current node; The child nodes of the neighbor nodes that are located at the same parent node as the current node.

16. The method according to claim 15, characterized in that The decoded nodes at the fixed positions include at least one of the following: The current node is offset along the first coordinate axis by a decoded node corresponding to a first preset amount, where the first preset amount is a preset offset along the first coordinate axis; The current node is offset along the second coordinate axis by a decoded node corresponding to a second preset amount, where the second preset amount is a preset offset along the second coordinate axis; The decoded node corresponding to the current node is offset by a third preset amount along the first coordinate axis and by a fourth preset amount along the second coordinate axis, wherein the third preset amount is a preset offset along the first coordinate axis, and the fourth preset amount is a preset offset along the second coordinate axis; The first coordinate axis and the second coordinate axis are coordinate axes in two different directions in a three-dimensional coordinate system.

17. The method according to claim 16, characterized in that At least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount is: A default value or value group; or a corresponding value or value group when the second condition is met; or determined based on the met second condition; or determined based on at least one information.

18. The method according to claim 16, characterized in that At least one of the first preset amount, the second preset amount, the third preset amount, and the fourth preset amount is changed based on a corresponding offset value change amount, and the offset value change amount is: A default value or value group; or a corresponding value or value group when the second condition is met; or determined based on the met second condition; or determined based on at least one information.

19. The method according to claim 15, characterized in that The selection range of the decoded nodes at the fixed position includes at least one of the following: The current node is offset along the first coordinate axis and is smaller than a decoded node corresponding to a first offset threshold, where the first offset threshold is a preset maximum value of an offset along the first coordinate axis; The current node is offset along the second coordinate axis direction less than the decoded node corresponding to the second offset threshold, where the second offset threshold is a preset maximum offset along the second coordinate axis direction; The sum of the offset of the current node along the first coordinate axis and the offset along the second coordinate axis is less than the decoded node corresponding to the third offset threshold, and the third offset threshold is the maximum value of the sum of the offsets along the first coordinate axis and the second coordinate axis that is preset; The first coordinate axis and the second coordinate axis are coordinate axes in two different directions in a three-dimensional coordinate system.

20. The method according to claim 19, characterized in that The decoded nodes at the fixed positions are selected as follows: A fixed number of decoded nodes meeting a first condition are selected in a first order, wherein the first order is at least one of a preset order, a default order, a linear order, a Hilbert order, a Morton order, or a coordinate axis order.

21. The method according to claim 19 or 20, characterized in that At least one of the first offset threshold, the second offset threshold, the third offset threshold, and the fourth offset threshold is: A default value or value group; or a corresponding value or value group when the second condition is met; or determined based on the met second condition; or determined based on at least one information.

22. The method according to claim 16, 19 or 20, characterized in that: At least one of the first coordinate axis direction and the second coordinate axis direction is: The default coordinate axis direction; or, the coordinate axis direction corresponding to the second condition; or, determined based on the second condition being met; or, determined based on at least one information.

23. The method according to claim 17 or 18 or 21 or 22, characterized in that: The second condition is related to at least one of the following information: Geometric piece information; relative position of the current node; placeholder information of the parent node of the current node; placeholder information of the neighboring nodes of the current node; placeholder information of the first k reference nodes.

24. The method according to claim 17 or 18 or 21 or 22, characterized in that: The at least one information includes at least one of the following information: Quantization parameters; data geometry accuracy; geometry patch density; geometry patch size; placeholder information of the reference node; relative position of the current node; parent node of the current node and its neighboring nodes.

25. The method according to claim 1, characterized in that The method further comprises: Determine a method for selecting subsequent reference nodes based on the number of non-empty nodes in the selected reference nodes; or, Determining a selection method of the subsequent reference node based on the number interval of the number of non-empty nodes in the selected reference nodes; or, The method for selecting the subsequent reference node is determined based on at least one threshold and the number of non-empty nodes in the selected reference nodes.

26. The method according to claim 1, characterized in that The method further comprises: Determine, based on the geometric information of the second node, a plane mode qualification of the current node, wherein the plane mode qualification is used to indicate whether the current node is applicable to a plane mode; The second node is the same as or different from the first node, and the second node is at least one of the following nodes: a reference node; a child node of the reference node; a decoded child node of the current node; or a child node to be decoded of the current node.

27. The method according to claim 26, characterized in that The determining, based on the geometric information of the second node, the plane mode qualification of the current node comprises: Determining the plane mode qualification of the current node based on the number of non-empty nodes in the reference node; or, Determining the plane mode qualification of the current node based on the occupancy of the child nodes of the reference node; or, Based on the occupancy of the decoded child nodes of the reference node, the plane mode qualification of the current node is determined.

28. The method according to claim 1, characterized in that The method further comprises: Determines whether the current node is decoded using geometry mode.

29. The method according to claim 28, characterized in that The step of determining whether the current node is decoded using a geometric mode comprises any one of the following steps: Determining at a point cloud or point cloud slice level whether the current node uses geometry mode decoding; Determining at a macroblock level whether the current node uses geometry mode decoding; A determination is made at a depth level of the octree whether the current node is decoded using geometry mode.

30. The method according to claim 28, characterized in that The determining whether the current node uses geometric mode decoding includes at least one of the following steps: Determining whether the current node uses geometric mode decoding according to the decoding mode adopted by the decoding end; Determine whether the current node uses geometric mode decoding according to a parameter set or a code stream corresponding to the current node; Whether the current node uses geometric mode decoding is determined according to a geometric mode threshold parameter, where the geometric mode threshold parameter is a threshold parameter obtained according to the decoding end or the parameter set or the code stream.

31. A method for determining a geometric pattern, characterized in that: The method is applied to an encoding end, and the method is performed by an encoding end device, and the method includes: Get the geometric information of the first node; Determining a geometric mode of a current node according to the geometric information of the first node, the current node being a node to be encoded; The first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a to-be-decoded child node of the current node.

32. A device for determining a geometric pattern, characterized in that: The device can be implemented as a decoding end, and the device includes: An acquisition module, used for acquiring geometric information of the first node; A determination module, configured to determine a geometric mode of a current node according to the geometric information of the first node, wherein the current node is a node to be decoded; The first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a to-be-decoded child node of the current node.

33. A device for determining a geometric pattern, characterized in that: The device can be implemented as an encoding end, and the device includes: An acquisition module, used for acquiring geometric information of the first node; A determination module, configured to determine a geometric mode of a current node according to the geometric information of the first node, wherein the current node is a node to be encoded; The first node is at least one of the following nodes: a reference node; a child node of a reference node; a decoded child node of the current node; or a to-be-decoded child node of the current node.

34. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for determining a geometric pattern as described in any one of claims 1 to 30 or the method for determining a geometric pattern as described in claim 31.

35. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, which is loaded and executed by a processor to implement the method for determining a geometric pattern as described in any one of claims 1 to 30 or the method for determining a geometric pattern as described in claim 31.

36. A computer program product, characterized in that The computer program product stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for determining a geometric pattern as described in any one of claims 1 to 30 or the method for determining a geometric pattern as described in claim 31.

Citation Information

Patent Citations

  • Methods and devices for entropy coding point clouds

    CN111615792A

  • Planar mode in octree-based point cloud coding

    CN114073095A

  • Geometric mode determination method and device, equipment and storage medium

    CN116320503A

  • Method and apparatus for processing a point cloud

    WO2021207947A1

  • Method of encoding and decoding, encoder, decoder and software

    WO2022073156A1