Encoding method, decoding method, code stream, encoder, decoder, and storage medium

By adaptively setting quantization parameters on the encoding and decoding ends, the problem of unreasonable quantization parameter settings in the existing technology is solved, and the encoding and decoding performance and reconstruction quality of point clouds are improved.

WO2024178687A1PCT designated stage expired Publication Date: 2024-09-06SHANGHAI JIAOTONG UNIV +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/079120
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In geometric encoding and decoding based on prediction trees, the setting of quantization parameters usually relies on user experience and cannot fully consider the bit rate requirements of actual application scenarios, resulting in the inability to achieve the best point cloud reconstruction quality under limited bit rate conditions.

Method used

By determining the preset identification information and feature values ​​at the encoding and decoding ends respectively, the quantization parameters are adaptively set, avoiding the cumbersome operation of empirically setting multiple sets of quantization parameters, and improving the reconstruction quality of point clouds under a limited code rate.

Benefits of technology

It improves the encoding and decoding performance of point clouds under limited bit rate conditions and ensures the reconstruction quality and coding efficiency of point clouds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023079120_06092024_PF_FP
    Figure CN2023079120_06092024_PF_FP
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are an encoding method, a decoding method, a code stream, an encoder, a decoder, and a storage medium. The decoding method comprises: decoding a code stream, and determining a value of preset identification information; when the preset identification information indicates that a first quantization parameter of the current point cloud enables a target setting mode, determining a first feature value according to the current point cloud; and determining a value of the first quantization parameter according to the first feature value. In this way, the quantization parameter is adaptively set according to the first feature value of the current point cloud, such that the reconstruction quality of the point cloud can be improved while a code rate is limited.
Need to check novelty before this filing date? Find Prior Art

Description

Coding and decoding method, code stream, encoder, decoder and storage medium Technical Field

[0001] The embodiments of the present application relate to the field of point cloud encoding and decoding technology, and in particular to an encoding and decoding method, a bit stream, an encoder, a decoder, and a storage medium. Background Art

[0002] Currently, in the geometry-based point cloud compression (G-PCC) codec framework, the geometric information of a point cloud and the attribute information corresponding to each point in the point cloud are encoded separately. Within the G-PCC codec framework, the geometry encoding and decoding can be divided into octree-based geometry encoding and decoding, prediction tree-based geometry encoding and decoding, and triangle patch fitting-based geometry encoding and decoding.

[0003] In prediction tree-based geometric codecs, the quantization parameter is typically set based on user experience. However, in real-world applications, there are often clear transmission bandwidth requirements. This lack of comprehensive consideration can lead to inappropriate quantization parameter settings, failing to achieve optimal point cloud reconstruction quality.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a coding and decoding method, a code stream, an encoder, a decoder, and a storage medium. By adaptively setting quantization parameters, the reconstruction quality of the point cloud can be improved under the condition of a limited bit rate.

[0006] The technical solution of the embodiment of the present application can be implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides a decoding method, applied to a decoder, the method comprising:

[0008] Decode the code stream and determine the value of the preset identification information;

[0009] When the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode, determining a first eigenvalue according to the current point cloud;

[0010] A value of a first quantization parameter is determined according to the first eigenvalue.

[0011] In a second aspect, an embodiment of the present application provides an encoding method, applied to an encoder, the method comprising:

[0012] When a target setting mode is enabled for a first quantization parameter of the current point cloud, determining a first eigenvalue based on the current point cloud;

[0013] A value of a first quantization parameter is determined according to the first eigenvalue.

[0014] In a third aspect, an embodiment of the present application provides a code stream, which is generated by bit encoding based on information to be encoded; wherein the information to be encoded includes at least: the value of preset identification information, the value of the first quantization parameter, the absolute value of the prediction residual, the number of groups N, and the value of the first quantization parameter corresponding to each of the N groups; wherein N is a positive integer.

[0015] In a fourth aspect, an embodiment of the present application provides an encoder, comprising a first determining unit and a first calculating unit; wherein,

[0016] a first determining unit configured to determine a first eigenvalue according to the current point cloud when a target setting mode is enabled for a first quantization parameter of the current point cloud;

[0017] The first calculation unit is configured to determine a value of a first quantization parameter according to the first eigenvalue.

[0018] In a fifth aspect, an embodiment of the present application provides an encoder, comprising a first memory and a first processor; wherein,

[0019] a first memory for storing a computer program capable of running on the first processor;

[0020] The first processor is configured to execute the method according to the second aspect when running a computer program.

[0021] In a sixth aspect, an embodiment of the present application provides a decoder, comprising a decoding unit, a second determining unit, and a second calculating unit; wherein,

[0022] A decoding unit configured to decode the code stream and determine a value of the preset identification information;

[0023] a second determining unit configured to determine a first eigenvalue according to the current point cloud when the preset identification information indicates that the first quantization parameter of the current point cloud enables a target setting mode;

[0024] The second calculation unit is configured to determine a value of the first quantization parameter according to the first eigenvalue.

[0025] In a seventh aspect, an embodiment of the present application provides a decoder, comprising a second memory and a second processor; wherein,

[0026] a second memory for storing a computer program capable of running on the second processor;

[0027] The second processor is configured to execute the method according to the first aspect when running a computer program.

[0028] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed, implements the method described in the first aspect or the method described in the second aspect.

[0029] The embodiment of the present application provides a coding and decoding method, a code stream, an encoder, a decoder, and a storage medium. At the encoding end, when the first quantization parameter of the current point cloud enables the target setting mode, the first eigenvalue is determined based on the current point cloud; and then the value of the first quantization parameter is determined based on the first eigenvalue. At the decoding end, the code stream is first decoded to determine the value of the preset identification information; then, when the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode, the first eigenvalue is determined based on the current point cloud; and then the value of the first quantization parameter is determined based on the first eigenvalue. In this way, the decoding end can determine whether the current point cloud needs to enable the target setting mode only by using a preset identification information; only when the target setting mode is enabled, the decoding end can adaptively set the quantization parameter according to the first eigenvalue of the current point cloud. This not only avoids the tedious operation of setting multiple sets of quantization parameter values ​​based on experience to search for the optimal quantization parameter, but also improves the reconstruction quality of the point cloud under the condition of limited bit rate through adaptive adjustment of the quantization parameter, thereby improving the coding and decoding performance of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a schematic diagram of a point cloud encoding and decoding network architecture;

[0031] FIG2 is a schematic diagram of the composition structure of a GPCC coding framework;

[0032] FIG3 is a schematic diagram of constructing a single-chain tree;

[0033] FIG4 is a flowchart diagram 1 of a decoding method provided in an embodiment of the present application;

[0034] FIG5 is a second flow chart of a decoding method provided in an embodiment of the present application;

[0035] FIG6 is a flowchart diagram 1 of an encoding method provided in an embodiment of the present application;

[0036] FIG7 is a second flow chart of an encoding method provided in an embodiment of the present application;

[0037] FIG8 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;

[0038] FIG9 is a schematic diagram of a specific hardware structure of an encoder provided in an embodiment of the present application;

[0039] FIG10 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application;

[0040] FIG11 is a schematic diagram of a specific hardware structure of a decoder provided in an embodiment of the present application;

[0041] FIG12 is a schematic diagram of the composition structure of a coding and decoding system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0044] In the following description, reference is made to "some embodiments," which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first, second, and third" in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first, second, and third" may be interchanged in a specific order or sequential order where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0045] Before further explaining the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained first. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:

[0046] Point Cloud Compression (PCC);

[0047] Video-based Point Cloud Compression (V-PCC or VPCC)

[0048] Geometry-based Point Cloud Compression (G-PCC or GPCC);

[0049] K Nearest Neighbor (KNN);

[0050] Region Adaptive Hierarchal Transform (RAHT);

[0051] Mean Squared Error (MSE);

[0052] Peak Signal to Noise Ration (PSNR).

[0053] Point cloud is a three-dimensional representation of the surface of an object. Point cloud (data) of the surface of an object can be collected through acquisition equipment such as photoelectric radar, lidar, laser scanner, and multi-view camera.

[0054] A point cloud refers to a collection of massive three-dimensional points. The points in the point cloud can include both their location information and their attribute information. For example, the location information of a point can be its three-dimensional coordinate information. The location information of a point can also be referred to as its geometric information. For example, the attribute information of a point can include color information and / or reflectivity, etc. For example, color information can be information in any color space. For example, color information can be RGB information, where R represents red (Red, R), G represents green (Green, G), and B represents blue (Blue, B). For another example, color information can be luminance and chrominance (YCbCr, YUV) information, where Y represents brightness, Cb (U) represents blue chrominance, and Cr (V) represents red chrominance.

[0055] For example, a point cloud obtained based on the principle of laser measurement can include the three-dimensional coordinate information of the point and the laser reflection intensity (reflectance) of the point. For another example, a point cloud obtained based on the principle of photogrammetry can include the three-dimensional coordinate information of the point and the color information of the point. For another example, a point cloud obtained by combining the principles of laser measurement and photogrammetry can include the three-dimensional coordinate information of the point, the laser reflection intensity (reflectance) of the point, and the color information of the point.

[0056] Point clouds can be divided into the following categories according to the acquisition method:

[0057] The first type of static point cloud: the object is stationary and the device used to obtain the point cloud is also stationary;

[0058] The second type of dynamic point cloud: the object is moving, but the device that obtains the point cloud is stationary;

[0059] The third type of dynamic point cloud acquisition: the device that acquires the point cloud is moving.

[0060] For example, point clouds can be divided into two categories according to their usage:

[0061] Category 1: Machine perception point cloud, which can be used in scenarios such as autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, and disaster relief robots;

[0062] Category 2: Human eye perception point cloud, which can be used in point cloud application scenarios such as digital cultural heritage, free viewpoint broadcasting, 3D immersive communication, and 3D immersive interaction.

[0063] In other words, a point cloud is a collection of massive points in three-dimensional space. The information about each point includes geometric information describing its spatial position and other attribute information. Common attribute information includes color, reflectivity, normal vector, etc. With the development of three-dimensional reconstruction and three-dimensional imaging technology, point clouds are widely used in fields such as virtual reality, immersive telepresence, and three-dimensional printing. However, because three-dimensional point clouds often have a large number of points and their distribution in space is disordered, and each point often has rich attribute information, the resulting point cloud has a huge amount of data, which poses a huge challenge to its storage and transmission. Therefore, point cloud compression coding technology is a characteristic technology for point cloud processing and application.

[0064] To date, the Moving Picture Experts Group (MPEG) of the International Organization for Standardization has proposed two point cloud compression coding technologies: VPCC and GPCC. VPCC projects a 3D point cloud onto a 2D image and uses existing 2D coding tools to encode the projected 2D image. GPCC, on the other hand, uses a hierarchical structure to divide the point cloud into multiple units, encoding the entire point cloud by recording the division process.

[0065] An embodiment of the present application provides a network architecture of a point cloud encoding and decoding system including a decoding method and an encoding method. FIG1 is a schematic diagram of a network architecture of a point cloud encoding and decoding system provided by an embodiment of the present application. As shown in FIG1 , the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01. During the implementation process, the electronic device can be various types of devices with point cloud encoding and decoding functions. For example, the electronic device can include a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., which is not limited by the embodiment of the present application. Among them, the decoder or encoder in the embodiment of the present application can be the above-mentioned electronic device.

[0066] Among them, the electronic device in the embodiment of the present application has a point cloud encoding and decoding function, generally including a point cloud encoder (ie, encoder) and a point cloud decoder (ie, decoder).

[0067] It is understood that the embodiments of the present application are mainly aimed at further improving and enhancing the encoding and decoding algorithms in GPCC. The following describes the relevant technologies using the encoding framework of GPCC as an example.

[0068] Figure 2 is a schematic diagram of the composition structure of a GPCC coding framework. As shown in Figure 2, for the point cloud data to be encoded, the point cloud data is first divided into multiple slices through slice division. In each slice, the geometric information and attribute information of the point cloud are encoded separately. Among them, in the geometric encoding process, the input voltage is first subjected to geometric out-of-loop quantization processing, and then octree, prediction tree or triangle patch fitting and other processing are performed; in this process, entropy coding is performed on each node in the point cloud to generate a binary geometric code stream. In the attribute encoding process, after the geometric encoding is completed and the geometric information is reconstructed, it is necessary to first use the reconstructed geometric information to recolor the point cloud attributes so that the unencoded attribute information corresponds to the reconstructed geometric information. Attribute coding is mainly performed on color information. During the color information coding process, there are two main transformation methods: one is the PredLift Transform (PredLift Transform), and the other is the direct Region Adaptive Hierarchal Transform (RAHT). Both transformation methods convert color information from the spatial domain to the frequency domain, and obtain high-frequency coefficients and low-frequency coefficients through transformation. Finally, the coefficients are attribute quantized and then entropy coded on the quantized coefficients to generate a binary attribute code stream.

[0069] In short, for geometric coding, GPCC has three optional coding tools: octree geometric coding, prediction tree geometric coding, and triangle patch fitting-based geometric coding. In the embodiment of the present application, the quantization parameters of the prediction tree are mainly set for prediction tree geometric coding.

[0070] In the prediction tree geometric coding algorithm, a point cloud or a point cloud fragment can be sorted in a certain order. The first point after sorting is called the root node. Starting from the root node, the point closest or approximately closest to the current point in the remaining point set is searched each time as the next node, and a single-link tree is constructed until all points are added to the single-link tree. See Figure 3 for details, which shows a schematic diagram of the construction of a single-link tree. In Figure 3, the root node is first determined. Then, the point closest or approximately closest to the root node is searched from the remaining point set as node ①. The point closest or approximately closest to node ① is searched from the remaining point set as node ②, and so on, until nodes ③, ④, and ⑤ are found, thus constructing the single-link tree shown in Figure 3. The geometric coordinates of the points are then encoded in the order in which they were added to the single-link tree. When encoding the geometric coordinates of each point, the geometric coordinates of the point to be encoded are predicted by referring to the geometric coordinates of the points that have been encoded within a certain range before the encoding order. The final encoded value is the difference between the actual geometric coordinates of the current point and the predicted geometric coordinates. It should be noted that the decoding end is the inverse of the above encoding process.

[0071] It should be noted that quantization typically involves dividing the encoded value by a number greater than 1 on the encoder side and multiplying it by a number greater than 1 on the decoder side. Quantization causes irreversible losses on the decoder side, but it can effectively reduce the data transmission load. Different levels of quantization can be adapted to different scenarios and needs.

[0072] It should also be noted that in the process of prediction tree geometry coding, quantization operations will be performed in at most two links: before the prediction tree is constructed, the input points will be quantized once, which is called geometric outer-loop quantization; after the prediction tree is constructed, quantization will be performed when encoding the difference between the true geometric coordinates and the predicted geometric coordinates of each point, which is called geometric inner-loop quantization.

[0073] Furthermore, GPCC performs attribute encoding after completing geometric encoding. There are two optional attribute methods, namely the prediction attribute encoding method and the transformation attribute encoding method. In the prediction attribute encoding method, all points are first sorted in a certain order, and then the attribute value of each point is encoded in turn according to the order. When encoding the attribute value of each point, the attribute value of the current point to be encoded is predicted with reference to the points within a certain range that have already been encoded, and then the difference between the actual attribute value of the current point and the predicted attribute value is encoded. In the transformation attribute encoding method, the original attribute value is first transformed into the frequency domain to obtain a series of low-frequency and high-frequency coefficients, and then the transformation coefficients obtained by these transformations are encoded. The quantization of both the prediction attribute coding and the transformation attribute coding occurs within the loop, that is, quantization is performed after the prediction residual is calculated or the transformation coefficients are obtained by transformation, which is called attribute quantization here.

[0074] It's also important to note that the value of the quantization parameter is typically determined empirically. However, in practical applications, there are often clear requirements for transmission bandwidth. Setting the quantization parameter based on the transmission bandwidth to optimize the quality of the reconstructed point cloud is a pressing issue. However, only a few related approaches attempt to establish mathematical models for transmission bandwidth and quantization parameters, but these methods often lack optimization for reconstruction quality.

[0075] That is to say, in the GPCC prediction tree geometric coding of the related technology, the quantization parameters are usually set by user experience, without fully considering the bit rate requirements of the actual application scenarios. As a result, under the transmission conditions of limited bit rate, there is no mature method to reasonably set the quantization parameters to achieve the best quality of the reconstructed point cloud; at the same time, the intra-loop quantization parameters of the prediction tree are usually set to a uniform value in different areas, without considering the different point densities in different areas of the point cloud. It is difficult to reduce the transmission load by setting the intra-loop quantization parameters while retaining the important local area features of the point cloud.

[0076] Based on this, an embodiment of the present application provides an encoding method, which determines a first eigenvalue based on the current point cloud when the first quantization parameter of the current point cloud enables the target setting mode; and then determines the value of the first quantization parameter based on the first eigenvalue.

[0077] An embodiment of the present application also provides a decoding method, which first decodes the code stream to determine the value of the preset identification information; then, when the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode, determines the first eigenvalue based on the current point cloud; and then determines the value of the first quantization parameter based on the first eigenvalue.

[0078] In this way, the decoding end can determine whether the current point cloud needs to enable the target setting mode only through a preset identification information; only when the target setting mode is enabled, the decoding end can adaptively set the quantization parameters according to the first eigenvalue of the current point cloud. This not only avoids the tedious operation of setting multiple sets of quantization parameter values ​​based on experience to search for the optimal quantization parameters, but also through the adaptive adjustment of the quantization parameters, it can also make the bit rate of the encoded point cloud close to the bit rate requirements of the actual application scenario, and achieve the best reconstruction quality under limited transmission bandwidth conditions, thereby improving the encoding and decoding performance of the point cloud.

[0079] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0080] In one embodiment of the present application, referring to FIG4 , a schematic flow chart of a decoding method provided by an embodiment of the present application is shown. As shown in FIG4 , the method may include:

[0081] S401: Decode the code stream and determine the value of the preset identification information.

[0082] It should be noted that the decoding method of the embodiment of the present application is applied to a decoder. In addition, the decoding method can specifically refer to a point cloud quantization decoding method, more specifically, a method for setting a quantization parameter, where adaptive value of the quantization parameter can be achieved.

[0083] It should also be noted that, in the embodiment of the present application, the preset identification information can be a predefined one-bit indicator written into the bitstream to indicate whether the target setting mode is enabled on the encoder side. The target setting mode refers to a mode in which the quantization parameter is adaptively valued, so that the value of the quantization parameter can be dynamically adjusted based on the characteristics of the current point cloud.

[0084] In some embodiments, for the value of the preset identification information, the method may further include:

[0085] If the value of the preset identification information is the first value, determining that the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode;

[0086] If the value of the preset identification information is the second value, it is determined that the preset identification information indicates that the first quantization parameter of the current point cloud does not enable the target setting mode.

[0087] In the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the preset identification information can be a parameter written in the profile or a flag value, which is not specifically limited here.

[0088] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0089] In an embodiment of the present application, taking the preset identification information as a flag written into the bitstream as an example, if the first value is set to 1 and the second value is set to 0, then when the value of the preset identification information is 1, it can be determined that the first quantization parameter of the current point cloud enables the quantization parameter adaptive value mode; when the value of the preset identification information is 0, it can be determined that the first quantization parameter of the current point cloud does not enable the quantization parameter adaptive value mode.

[0090] S402: When the preset identification information indicates that the first quantization parameter of the current point cloud enables a target setting mode, determine a first eigenvalue according to the current point cloud.

[0091] It should be noted that, in the embodiment of the present application, the current point cloud may refer to a point cloud frame in a point cloud sequence, or may refer to a point cloud fragment, which is not specifically limited here.

[0092] In some embodiments, the first quantization parameter may include at least one of the following: a geometric loop inner quantization parameter, a geometric loop outer quantization parameter, and an attribute quantization parameter.

[0093] That is to say, for the first quantization parameter, the embodiment of the present application may refer only to the quantization parameter within the geometric loop, the quantization parameter outside the geometric loop or the attribute quantization parameter, or it may refer to any two combinations of the quantization parameter within the geometric loop, the quantization parameter outside the geometric loop and the attribute quantization parameter, or even to the combination of the quantization parameter within the geometric loop, the quantization parameter outside the geometric loop and the attribute quantization parameter, and no specific limitation is made here.

[0094] It should also be noted that in the embodiments of this application, the bit rate of the current point cloud is limited by the actual transmission bandwidth requirements. The higher the bit rate, the higher the required transmission bandwidth; the lower the bit rate, the lower the required transmission bandwidth.

[0095] In addition, there is a corresponding relationship between the bit rate and the size of the first quantization parameter. Specifically, the bit rate of the current point cloud can include two parts: the geometric bit rate and the attribute bit rate, which are the bit rates required for decoding the point cloud geometry information and decoding the point cloud attribute information respectively. It should be noted that the geometric bit rate is only affected by the geometric loop outer quantization parameter and the geometric loop inner quantization parameter, but the attribute bit rate is affected by the geometric loop outer quantization parameter, the geometric loop inner quantization parameter and the attribute quantization parameter at the same time.

[0096] It is understandable that in the embodiment of the present application, if the value of the preset identification information is the second value, that is, the first quantization parameter of the current point cloud has not enabled the target setting mode, then the value of the first quantization parameter will be written into the bitstream. Therefore, in some embodiments, the method may also include: when the preset identification information indicates that the first quantization parameter of the current point cloud has not enabled the target setting mode, decoding the bitstream and determining the value of the first quantization parameter. In this case, since the value of the first quantization parameter has already been written into the bitstream, the decoding end can directly decode and obtain the value of the first quantization parameter.

[0097] It is also understandable that in the embodiment of the present application, if the first quantization parameter of the current point cloud starts the target setting mode, that is, the value of the first quantization parameter is not written into the bitstream, then it is necessary to first determine the first eigenvalue based on the current point cloud. In one possible implementation, determining the first eigenvalue based on the current point cloud may include:

[0098] Determine the prediction tree corresponding to the current point cloud;

[0099] A first eigenvalue is determined based on the distance between each node and the previous node in the prediction tree.

[0100] It should be noted that in the embodiments of the present application, the points in the current point cloud are sorted according to a preset order to construct a tree structure, which can be called a prediction tree. The preset order can be the original acquisition order of the point cloud, the Morton order, the Hilbert order, etc., which is not specifically limited here.

[0101] It should also be noted that, in an embodiment of the present application, determining the prediction tree corresponding to the current point cloud may include: determining a reference point set corresponding to the current point cloud; constructing a prediction tree based on the reference point set; wherein the reference point set may include at least one node in the current point cloud.

[0102] That is to say, the prediction tree here can be constructed by all points in the current point cloud, or it can be constructed by some points in the current point cloud, and there is no specific limitation on this here.

[0103] Furthermore, after establishing the prediction tree, in a specific embodiment, determining the first eigenvalue based on the distance between each node and the previous node in the prediction tree structure may include: traversing the prediction tree, accumulating the distance between each node and the previous node in the prediction tree to obtain a first accumulated value, and using the first accumulated value as the first eigenvalue.

[0104] That is to say, in the embodiment of the present application, the entire prediction tree can be traversed in the order of joining the prediction tree, the distance between each node and the previous node in the prediction tree can be accumulated, and the obtained first accumulated value can be used as the first eigenvalue.

[0105] For example, taking the geometric loop quantization parameter as an example, if the geometric loop quantization parameter starts the target setting mode, that is, the encoding end enables the geometric loop quantization parameter adaptive value method, then the geometric loop quantization parameter is not written into the bitstream. The decoding end can use the same geometric loop quantization parameter adaptive value method as the encoding end, and accumulate the geometric distance between each node and the previous node in the parsed prediction tree, and use it as the characteristic variable to determine the value of the geometric loop quantization parameter, that is, the first characteristic value described in the embodiment of the present application.

[0106] It can also be understood that in an embodiment of the present application, if the first quantization parameter of the current point cloud starts the target setting mode, that is, the method of adaptively taking the value of the quantization parameter, then the determination of the first eigenvalue can be determined based on the distance between each node and the previous node in the prediction tree. It can also be determined based on other features of the midpoint in the prediction tree, such as the absolute value of the prediction residual of the midpoint in the prediction tree. No specific limitation is made here.

[0107] In another possible implementation, determining the first eigenvalue according to the current point cloud may include:

[0108] Determine the prediction tree corresponding to the current point cloud;

[0109] The first eigenvalue is determined based on the absolute value of the prediction residual of each node in the prediction tree.

[0110] It should be noted that in the embodiment of the present application, after establishing the prediction tree, the first eigenvalue can also be determined based on the absolute value of the prediction residual of each node. In a specific embodiment, determining the first eigenvalue based on the absolute value of the prediction residual of each node in the prediction tree can include: traversing the prediction tree, accumulating the absolute value of the prediction residual of each node in the prediction tree to obtain a second accumulated value, and using the second accumulated value as the first eigenvalue.

[0111] It should also be noted that in the embodiments of the present application, the prediction tree can be constructed from all points in the current point cloud, or from a portion of the points in the current point cloud, without specific limitation. For example, a reference point set can be determined based on the current point cloud, and then the prediction tree can be determined based on the reference point set; wherein the reference point set can include at least one node in the current point cloud.

[0112] That is, in an embodiment of the present application, the entire prediction tree can be traversed in the order in which the prediction tree is added, the absolute value of the prediction residual of each node in the prediction tree is accumulated, and the second accumulated value obtained is used as the first eigenvalue. In addition, it should be noted that the decoding end can also construct the same reference point set as the encoding end, and then accumulate the absolute value of the prediction residual of each node in the reference point set, and use the second accumulated value obtained as the first eigenvalue. The reference point set can include at least one node of the current point cloud.

[0113] For example, still taking the geometric loop quantization parameter as an example, if the geometric loop quantization parameter starts the target setting mode, that is, the geometric loop quantization parameter is not written into the bitstream, and the encoding end determines the characteristic variable of the geometric loop quantization parameter as the absolute value of the prediction residual, then the decoding end can use the same method of adaptively taking the geometric loop quantization parameter as the encoding end, such as constructing the same reference point set as the encoding end (or even the entire prediction tree), accumulating the absolute value of the prediction residual of each node in the reference point set, and using it as the characteristic variable that determines the value of the geometric loop quantization parameter, that is, the first characteristic value described in the embodiment of the present application.

[0114] It should also be noted that, in the embodiments of the present application, the absolute value of the prediction residual for each node may be the absolute value of the difference between the true geometric coordinates and the predicted geometric coordinates of each node. At the decoding end, in some embodiments, the method may further include: decoding the bitstream and determining the absolute value of the prediction residual for each node in the prediction tree.

[0115] In this way, after the encoding end calculates the prediction residual based on the real geometric coordinates and the predicted geometric coordinates of each node, the absolute value of the prediction residual of each node will be written into the bit stream, so that the decoding end can directly obtain the absolute value of the prediction residual of each node by decoding the bit stream. Then, when the encoding end determines that the characteristic variable of the first quantization parameter is the absolute value of the prediction residual, the first characteristic value can be determined based on the absolute value of the prediction residual of each node.

[0116] S403: Determine a value of a first quantization parameter according to the first eigenvalue.

[0117] It should be noted that, in the embodiment of the present application, the value of the first quantization parameter can be adaptively determined based on the first eigenvalue corresponding to the current point cloud. The first quantization parameter can include at least one of the following: a geometric loop quantization parameter, a geometric loop quantization parameter, and an attribute quantization parameter.

[0118] It should also be noted that, in the embodiment of the present application, the value of the first quantization parameter can be determined based on the comparison between the first eigenvalue and the reference eigenvalue. In some embodiments, determining the value of the first quantization parameter based on the first eigenvalue can include:

[0119] Determine the reference eigenvalues ​​of the current point cloud;

[0120] Determining a feature comparison value based on the first feature value and the reference feature value;

[0121] The value of the first quantization parameter is determined according to the feature comparison value, the preset weight value, and the basic value of the first quantization parameter.

[0122] It is understood that in the embodiments of the present application, the reference characteristic value may be an empirical value compared with the characteristic variable. In one possible implementation, the reference characteristic value is a preset constant value. For example, the reference characteristic value may be a fixed value set based on experience.

[0123] In another possible implementation, determining the reference eigenvalue of the current point cloud may include: determining a preset reference range of the current point cloud; determining at least two second eigenvalues ​​based on the preset reference range; and calculating the mean of the at least two second eigenvalues ​​to obtain the reference eigenvalue.

[0124] Here, the reference eigenvalue can be not only a fixed value set by the user based on experience, but also an average value calculated within a certain reference range, which is not specifically limited here. In addition, it should be noted that for a certain reference range (such as a preset reference range), if a point cloud is divided into multiple segments, the reference range can be the average value of the second eigenvalue calculated for the segments within the range adjacent to the current segment; or, if it is a point cloud sequence, the reference range can be the average value of the second eigenvalue of one or more adjacent frames.

[0125] It is also understandable that in the embodiment of the present application, the base value of the first quantization parameter may be a preset constant value. In other words, the base value of the first quantization parameter may be an empirical value of the first quantization parameter, and then dynamically adjusted based on the base value to determine the value of the first quantization parameter.

[0126] In some embodiments, for the base value of the first quantization parameter, the method may further include: determining a preset calculation model; and determining the base value of the first quantization parameter according to the target parameter of the current point cloud and the preset calculation model.

[0127] In an embodiment of the present application, a preset calculation model is used to indicate a mapping relationship between a target parameter and a first quantization parameter, where the target parameter includes a bit rate and / or a reconstruction quality. Here, the preset calculation model can be a mathematical model in different forms of expression, such as a power model, a natural logarithm model, an exponential model, etc. Specifically, the preset calculation model is a mathematical model that can reflect the mapping relationship between the bit rate and the first quantization parameter, and / or a mathematical model that reflects the mapping relationship between the reconstruction quality and the first quantization parameter. Exemplarily, the first quantization parameter can be set to a base value according to the preset calculation model, and then the base value can be dynamically adjusted according to the feature comparison value and the preset weight value to obtain the value of the first quantization parameter.

[0128] Furthermore, in the embodiment of the present application, the first eigenvalue can be represented by d, and the reference eigenvalue can be represented by Indicates that the preset weight value can be represented by k, the basic value of the first quantization parameter can be represented by Q, and the value of the first quantization parameter can be represented by Q in express.

[0129] In a possible implementation, determining the value of the first quantization parameter according to the feature comparison value, the preset weight value, and the base value of the first quantization parameter may include:

[0130] Determining a first adjustment value according to the feature comparison value and a preset weight value;

[0131] An addition operation is performed according to the first adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0132] Here, the first adjustment value can be expressed as Then the value of the first quantization parameter Q in It can be calculated as follows:

[0133] In another possible implementation, determining the value of the first quantization parameter according to the feature comparison value, the preset weight value, and the base value of the first quantization parameter may include:

[0134] Determining a second adjustment value based on the feature comparison value and a preset weight value;

[0135] A multiplication calculation is performed according to the second adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0136] Here, the second adjustment value can be expressed as Then the value of the first quantization parameter Q in It can be calculated as follows:

[0137] It should also be noted that, taking the quantization parameter in the geometric loop as an example, for formula (1) or formula (2), where Q in is the value of the quantization parameter in the geometric ring, Q is the empirical value of the quantization parameter in the geometric ring (i.e., the basic value), and d is the accumulated value of the current point cloud. is the average value within the preset reference range, and k can also be called the adjustment weight.

[0138] In some embodiments, for a first quantization parameter, such as at least one of a geometric loop inner quantization parameter, a geometric loop outer quantization parameter, and an attribute quantization parameter, if the value of the first quantization parameter has been written into the bitstream, then at the decoding end, the method may further include: decoding the bitstream to determine the value of the first quantization parameter.

[0139] In some embodiments, for the first quantization parameter, since the geometric outer loop quantization parameter and the attribute quantization parameter are set in the header information of a point cloud or a point cloud fragment, each node cloud or a point cloud fragment corresponds to the same geometric outer loop quantization parameter and attribute quantization parameter. However, each node cloud or a point cloud fragment can be divided into multiple groups, and different geometric inner loop quantization parameters can be set for the local area of ​​each group.

[0140] It is understandable that when the first quantization parameter is a quantization parameter within the geometric loop, the quantization parameter within the geometric loop can also be set based on grouping. Therefore, in some embodiments, referring to FIG5 , the method may include:

[0141] S501: Divide the current point cloud into N groups, where N is a positive integer.

[0142] S502: Based on each of the N groups, when the preset identification information indicates that the first quantization parameter of each group enables the target setting mode, determine a first eigenvalue corresponding to each group.

[0143] S503: Determine the values ​​of the first quantization parameters corresponding to the N groups according to the first eigenvalue corresponding to each group.

[0144] It should be noted that in the embodiments of the present application, the number N of groups for the current point cloud is written into the bitstream. Therefore, in some embodiments, the method for the decoding end may further include: decoding the bitstream and determining the number N of groups for the current point cloud. Furthermore, regarding the specific grouping method, after determining the required number N of groups, the current point cloud can be evenly grouped by point number; however, the current point cloud can also be unevenly grouped according to other rules, which are not limited here.

[0145] It should also be noted that in the embodiment of the present application, after grouping, for each of the N groups, if the preset identification information indicates that the first quantization parameter of the first group enables the target setting mode, then the first group can use the above-mentioned quantization parameter adaptive value method; if the preset identification information indicates that the first quantization parameter of the first group does not enable the target setting mode, then the decoding end can decode the bitstream and determine the value of the first quantization parameter of the first group. The first group is any one of the N groups.

[0146] In a possible implementation, if the preset identification information indicates that the first quantization parameter of each group enables the target setting mode, determining the first characteristic value corresponding to each group may include:

[0147] Determine the sub-prediction tree corresponding to each group; perform a cumulative operation based on the distance between each node and the previous node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0148] In another possible implementation, if the preset identification information indicates that the first quantization parameter of each group enables the target setting mode, determining the first characteristic value corresponding to each group may include:

[0149] Determine the sub-prediction tree corresponding to each group; perform a cumulative operation based on the absolute value of the prediction residual of each node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0150] It should be noted that, in an embodiment of the present application, taking the first group of N groups as an example, for the first eigenvalue corresponding to the first group, it is first necessary to determine the sub-prediction tree corresponding to the first group; wherein the sub-prediction tree may include at least one node in the first group; then the distance between each node and the previous node in the sub-prediction tree can be accumulated to determine the first eigenvalue corresponding to the first group; alternatively, the absolute value of the prediction residual of each node in the sub-prediction tree can be accumulated to determine the first eigenvalue corresponding to the first group; alternatively, the decoding end can also construct the same reference point set as the encoding end, and then the absolute value of the prediction residual of each node in the reference point set can be accumulated to determine the first eigenvalue corresponding to the first group; there is no specific limitation on this here.

[0151] It should also be noted that, in the embodiment of the present application, after determining the first eigenvalue corresponding to each group, the value of the first quantization parameter corresponding to each group can be further determined based on the first eigenvalue corresponding to each group. Specifically, this can include: determining a reference eigenvalue corresponding to each group; determining a feature comparison value corresponding to each group based on the first eigenvalue corresponding to each group and the reference eigenvalue; and determining the value of the first quantization parameter corresponding to each group based on the feature comparison value, a preset weight value, and a base value of the first quantization parameter.

[0152] For example, the value of the first quantization parameter corresponding to each group can be calculated according to the aforementioned formula (1) or formula (2). In particular, for different groups, the reference eigenvalue compared with the first eigenvalue can be the average value calculated from the characteristic variables of adjacent groups.

[0153] It should also be noted that, in the embodiment of the present application, not only the number of groups N of the current point cloud can be written into the code stream, but also the values ​​of the first quantization parameters corresponding to each of the N groups can be written into the code stream. Thus, in some embodiments, for the decoding end, the method may further include: decoding the code stream, and determining the values ​​of the first quantization parameters corresponding to each of the N groups. Thus, if the encoding end adopts a group-based geometric ring quantization parameter setting method, then at the decoding end, the number of groups and the quantization parameters of different groups can be parsed first; then, according to the mapping relationship between points and groups, different values ​​of the quantization parameters will be applied to the points in different groups.

[0154] Furthermore, in the absence of grouping, in some embodiments, after determining the value of the first quantization parameter according to the first eigenvalue, the method may further include:

[0155] Decode the code stream to determine the prediction residual value of the node to be processed in the current point cloud; dequantize the prediction residual value of the node to be processed according to the value of the first quantization parameter to determine the dequantized residual value of the node to be processed; and determine the reconstructed value of the node to be processed based on the dequantized residual value of the node to be processed.

[0156] Furthermore, in the case where there are groups, in some embodiments, after determining the values ​​of the first quantization parameters corresponding to each of the N groups according to the first eigenvalue corresponding to each group, the method may further include:

[0157] Decode the code stream to determine the predicted residual value of the node to be processed in the current point cloud; determine the value of the first quantization parameter corresponding to the node to be processed based on the mapping relationship between the node to be processed and the N groups; perform inverse quantization on the predicted residual value of the node to be processed based on the value of the first quantization parameter to determine the inverse quantized residual value of the node to be processed; determine the reconstructed value of the node to be processed based on the inverse quantized residual value of the node to be processed.

[0158] It should be noted that the difference between grouping and not grouping the reconstructed values ​​of the nodes to be processed is that, if grouping exists, the group to which the node to be processed belongs must first be determined, and then different values ​​of the first quantization parameter are applied. This way, dynamically setting the value of the first quantization parameter based on different segments of the point cloud can maximize the preservation of local point cloud features under similar bitrate conditions.

[0159] In a specific embodiment, determining the reconstructed value of the node to be processed based on the inverse quantized residual value of the node to be processed may include: determining the predicted value of the node to be processed; performing an addition operation on the inverse quantized residual value of the node to be processed and the predicted value of the node to be processed to obtain the reconstructed value of the node to be processed.

[0160] It should also be noted that, in the embodiments of the present application, various prediction methods are available for the predicted value of a node to be processed. For example, a reference point set corresponding to the node to be processed is determined based on a preset traversal order; the node to be processed is predicted based on the reference point set to determine the predicted value of the node to be processed. When traversing the prediction tree, the reference point set may be a point set consisting of at most the first k points in the traversal order, where k is a positive integer.

[0161] In a possible implementation, determining the predicted value of the node to be processed may include: obtaining a reconstructed value of a previous node of the node to be processed according to a preset traversal order; and using the reconstructed value of the previous node as the predicted value of the node to be processed.

[0162] In another possible implementation, determining the predicted value of the node to be processed may include: obtaining the reconstructed value of the previous node and the reconstructed values ​​of the previous two nodes of the node to be processed according to a preset traversal order; and determining the predicted value of the node to be processed based on the reconstructed value of the previous node and the reconstructed values ​​of the previous two nodes.

[0163] That is to say, when traversing the entire prediction tree in the order of joining the prediction tree, for each traversed node, taking the prediction of the geometric position of the node to be processed as an example, the prediction method here can be a mathematical transformation of a point set consisting of at most the first k points in the traversal order. Optionally, one prediction method is to directly use the geometric coordinates of the previous node as the predicted value of the geometric coordinates of the node to be processed; optionally, one prediction method is to record the previous node of the node to be processed in the preset traversal order as p0, and the first two nodes as p1, then the predicted value of the geometric coordinates of the node to be processed is 2p0-p1; among them, there can be multiple prediction methods, which are not specifically limited here.

[0164] In this way, in the case where there are groups, assuming that the number of groups is equal to 3, then a point cloud or a point cloud fragment can be divided into 3 groups, and then the first eigenvalue of each group is calculated, and different geometric ring quantization parameters are assigned according to the size of the first eigenvalue of each group. For example, the group with a large first eigenvalue can be assigned a larger geometric ring quantization parameter; the group with a small first eigenvalue can be assigned a smaller geometric ring quantization parameter.

[0165] This embodiment provides a decoding method, which first decodes the code stream to determine the value of the preset identification information; then, when the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode, determines the first eigenvalue based on the current point cloud; and then determines the value of the first quantization parameter based on the first eigenvalue. In this way, the decoding end can determine whether the current point cloud needs to enable the target setting mode only through a preset identification information; only when the target setting mode is enabled, can the quantization parameter be adaptively set according to the first eigenvalue of the current point cloud. This not only avoids the tedious operation of searching for the optimal quantization parameter by setting multiple sets of quantization parameter values ​​based on experience, but also, due to the adaptive adjustment of the quantization parameter, it can also make the bit rate of the encoded point cloud close to the bit rate requirement of the actual application scenario, achieve the best reconstruction quality under limited transmission bandwidth conditions, and thus improve the encoding and decoding performance of the point cloud.

[0166] In one embodiment of the present application, referring to FIG6 , a schematic flow chart of an encoding method provided by an embodiment of the present application is shown. As shown in FIG6 , the method may include:

[0167] S601: When a target setting mode is enabled for a first quantization parameter of a current point cloud, a first eigenvalue is determined according to the current point cloud.

[0168] It should be noted that the encoding method of the embodiment of the present application is applied to an encoder. In addition, the encoding method can specifically refer to a point cloud quantization encoding method, more specifically, a method for setting a quantization parameter, where adaptive value of the quantization parameter can be achieved.

[0169] It should also be noted that in the embodiments of the present application, a predefined indicator bit can be written into the bitstream. This predefined indicator bit can be referred to as preset identification information and is used to indicate whether the target setting mode is enabled on the encoder side. The target setting mode refers to a mode in which the quantization parameter is adaptively valued, so that the value of the quantization parameter can be dynamically adjusted based on the characteristics of the current point cloud.

[0170] In some embodiments, for the preset identification information, the method may further include:

[0171] Determining a value of preset identification information, wherein the preset identification information is used to indicate whether a target setting mode is enabled for a first quantization parameter of the current point cloud;

[0172] The value of the preset identification information is encoded, and the obtained encoded bits are written into the code stream.

[0173] In a specific embodiment, determining the value of the preset identification information may include:

[0174] If the first quantization parameter of the current point cloud enables the target setting mode, determining that the value of the preset identification information is the first value;

[0175] If the first quantization parameter of the current point cloud does not enable the target setting mode, the value of the preset identification information is determined to be the second value.

[0176] In the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the preset identification information can be a parameter written in the profile or a flag value, which is not specifically limited here.

[0177] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0178] In an embodiment of the present application, taking the preset identification information as a flag written into the bitstream as an example, if the first value is set to 1 and the second value is set to 0, then when the value of the preset identification information is 1, it can be determined that the first quantization parameter of the current point cloud enables the quantization parameter adaptive value mode. At this time, the value of the first quantization parameter will not be written into the bitstream, and the decoding end can use the same quantization parameter adaptive value method as the encoding end to determine the value of the first quantization parameter; when the value of the preset identification information is 0, it can be determined that the first quantization parameter of the current point cloud does not enable the quantization parameter adaptive value mode. At this time, the value of the first quantization parameter will be written into the bitstream, and the decoding end can directly determine the value of the first quantization parameter by decoding the bitstream.

[0179] It can be understood that in the embodiment of the present application, the current point cloud may refer to a point cloud frame in a point cloud sequence, or may refer to a point cloud segment, which is not specifically limited here.

[0180] In some embodiments, the first quantization parameter may include at least one of the following: a geometric loop inner quantization parameter, a geometric loop outer quantization parameter, and an attribute quantization parameter.

[0181] That is to say, for the first quantization parameter, the embodiment of the present application may refer only to the quantization parameter within the geometric loop, the quantization parameter outside the geometric loop or the attribute quantization parameter, or it may refer to any two combinations of the quantization parameter within the geometric loop, the quantization parameter outside the geometric loop and the attribute quantization parameter, or even to the combination of the quantization parameter within the geometric loop, the quantization parameter outside the geometric loop and the attribute quantization parameter, and no specific limitation is made here.

[0182] It should also be noted that in the embodiments of this application, the bit rate of the current point cloud is limited by the actual transmission bandwidth requirements. The higher the bit rate, the higher the required transmission bandwidth; the lower the bit rate, the lower the required transmission bandwidth.

[0183] In addition, there is a corresponding relationship between the bit rate and the size of the first quantization parameter. Specifically, the bit rate of the current point cloud can include two parts: the geometric bit rate and the attribute bit rate, which are the bit rates required for decoding the point cloud geometry information and decoding the point cloud attribute information respectively. It should be noted that the geometric bit rate is only affected by the geometric loop outer quantization parameter and the geometric loop inner quantization parameter, but the attribute bit rate is affected by the geometric loop outer quantization parameter, the geometric loop inner quantization parameter and the attribute quantization parameter at the same time.

[0184] It is also understandable that in the embodiment of the present application, if the first quantization parameter of the current point cloud starts the target setting mode, that is, the value of the first quantization parameter does not need to be written into the bitstream, then the steps of the encoding end and the decoding end are similar, and both need to first determine the first eigenvalue based on the current point cloud. In one possible implementation, determining the first eigenvalue based on the current point cloud may include:

[0185] Determine the prediction tree corresponding to the current point cloud;

[0186] A first eigenvalue is determined based on the distance between each node and the previous node in the prediction tree.

[0187] It should be noted that in the embodiments of the present application, the points in the current point cloud are sorted according to a preset order to construct a tree structure, which can be called a prediction tree. The preset order can be the original acquisition order of the point cloud, the Morton order, the Hilbert order, etc., which is not specifically limited here.

[0188] It should also be noted that, in an embodiment of the present application, determining the prediction tree corresponding to the current point cloud may include: determining a reference point set corresponding to the current point cloud; constructing a prediction tree based on the reference point set; wherein the reference point set may include at least one node in the current point cloud.

[0189] That is to say, the prediction tree here can be constructed by all points in the current point cloud, or it can be constructed by some points in the current point cloud, and there is no specific limitation on this here.

[0190] Furthermore, after establishing the prediction tree, in a specific embodiment, determining the first eigenvalue based on the distance between each node and the previous node in the prediction tree structure may include: traversing the prediction tree, accumulating the distance between each node and the previous node in the prediction tree to obtain a first accumulated value, and using the first accumulated value as the first eigenvalue.

[0191] That is to say, in the embodiment of the present application, the entire prediction tree can be traversed in the order of joining the prediction tree, the distance between each node and the previous node in the prediction tree can be accumulated, and the obtained first accumulated value can be used as the first eigenvalue.

[0192] For example, taking the geometric loop quantization parameter as an example, if the geometric loop quantization parameter starts the target setting mode, that is, the encoding end enables the adaptive value taking method of the geometric loop quantization parameter, then the geometric distance between each node and the previous node in the parsed prediction tree can be accumulated at the encoding end, and it can be used as a characteristic variable to determine the value of the geometric loop quantization parameter, that is, the first characteristic value described in the embodiment of the present application.

[0193] It can also be understood that in an embodiment of the present application, if the first quantization parameter of the current point cloud starts the target setting mode, that is, the method of adaptively taking the value of the quantization parameter, then the determination of the first eigenvalue can be determined based on the distance between each node and the previous node in the prediction tree. It can also be determined based on other features of the midpoint in the prediction tree, such as the absolute value of the prediction residual of the midpoint in the prediction tree. No specific limitation is made here.

[0194] In another possible implementation, determining the first eigenvalue according to the current point cloud may include:

[0195] Determine the prediction tree corresponding to the current point cloud;

[0196] The first eigenvalue is determined based on the absolute value of the prediction residual of each node in the prediction tree.

[0197] It should be noted that in the embodiment of the present application, after establishing the prediction tree, the first eigenvalue can also be determined based on the absolute value of the prediction residual of each node. In a specific embodiment, determining the first eigenvalue based on the absolute value of the prediction residual of each node in the prediction tree can include: traversing the prediction tree, accumulating the absolute value of the prediction residual of each node in the prediction tree to obtain a second accumulated value, and using the second accumulated value as the first eigenvalue.

[0198] It should also be noted that in the embodiments of the present application, the prediction tree can be constructed from all points in the current point cloud, or from a portion of the points in the current point cloud, without specific limitation. For example, a reference point set can be determined based on the current point cloud, and then the prediction tree can be determined based on the reference point set; wherein the reference point set can include at least one node in the current point cloud.

[0199] That is, in an embodiment of the present application, the entire prediction tree can be traversed in the order in which the prediction tree is added, the absolute value of the prediction residual of each node in the prediction tree is accumulated, and the obtained second accumulated value is used as the first eigenvalue. In addition, it should be noted that the encoding end can also construct a reference point set, and then accumulate the absolute value of the prediction residual of each node in the reference point set, and use the obtained second accumulated value as the first eigenvalue. The reference point set can include at least one node of the current point cloud.

[0200] For example, still taking the geometric loop quantization parameter as an example, if the geometric loop quantization parameter starts the target setting mode, and the encoding end determines that the characteristic variable of the geometric loop quantization parameter is the absolute value of the prediction residual, then the encoding end can first construct a reference point set (or even the entire prediction tree), and then accumulate the absolute value of the prediction residual of each node in the reference point set, and use it as the characteristic variable to determine the value of the geometric loop quantization parameter, that is, the first characteristic value described in the embodiment of the present application.

[0201] It should also be noted that, in the embodiment of the present application, the absolute value of the prediction residual of each node can be the absolute value of the difference between the actual geometric coordinates of each node and the predicted geometric coordinates. Therefore, in some embodiments, the method may further include:

[0202] Determine the predicted value of each node in the prediction tree;

[0203] Determine a prediction residual value for each node in the prediction tree based on the true value of each node in the prediction tree and the predicted value of each node in the prediction tree;

[0204] The absolute value operation is performed on the prediction residual value of each node in the prediction tree to obtain the absolute value of the prediction residual of each node in the prediction tree.

[0205] Here, after obtaining the predicted value of each node in the prediction tree, the absolute value of the difference between the true value and the predicted value of each node can be calculated to obtain the absolute value of the prediction residual of each node. By accumulating the absolute values ​​of the prediction residuals of all nodes in the prediction tree, the characteristic variable that determines the value of the first quantization parameter can be determined.

[0206] In some embodiments, determining the predicted value of each node in the prediction tree may include: determining a reference point set corresponding to each node in the prediction tree according to a preset traversal order; predicting each node separately according to the reference point set to determine the predicted value of each node.

[0207] It should be noted that in the embodiments of the present application, the predicted value of each node can be predicted in a variety of ways. For example, a reference point set corresponding to each node in the prediction tree is determined based on a preset traversal order; the corresponding node is predicted based on the reference point set to determine the predicted value of the corresponding node. When traversing the prediction tree, the reference point set can be a point set consisting of at most the first k points in the traversal order, where k is a positive integer.

[0208] In one possible implementation, determining the predicted value of each node in the prediction tree may include: determining the reconstructed value of the previous node of each node in the prediction tree according to a preset traversal order; and using the reconstructed value of the previous node as the predicted value of each node.

[0209] In another possible implementation, determining the predicted value of each node in the prediction tree may include: determining the reconstructed value of the previous node and the reconstructed values ​​of the previous two nodes of each node in the prediction tree according to a preset traversal order; and determining the predicted value of each node based on the reconstructed value of the previous node and the reconstructed values ​​of the previous two nodes.

[0210] That is to say, when traversing the entire prediction tree in the order of joining the prediction tree, for each traversed node, taking the prediction of the geometric position of the current node as an example, the prediction method here can be a mathematical transformation of a point set consisting of at most the first k points in the traversal order. Optionally, one prediction method is to directly use the geometric coordinates of the previous node as the predicted value of the geometric coordinates of the current node; optionally, one prediction method is to record the previous node of the current node as p0 and the previous two nodes as p1 in the preset traversal order, then the predicted value of the geometric coordinates of the current node is 2p0-p1; among them, there can be multiple prediction methods, which are not specifically limited here.

[0211] Furthermore, in some embodiments, the method may further include: encoding the absolute value of the prediction residual of each node in the prediction tree, and writing the obtained coded bits into the bitstream.

[0212] In the embodiment of the present application, since the decoder cannot know the true value of each node in the prediction tree, in order to facilitate the decoder in determining the first eigenvalue corresponding to the current point cloud, the encoder can write the absolute value of the prediction residual of each node in the prediction tree into the bitstream. In this way, the decoder can then directly obtain the absolute value of the prediction residual of each node by decoding the bitstream. Furthermore, when the encoder determines that the characteristic variable of the first quantization parameter is the absolute value of the prediction residual, the decoder can also determine the first eigenvalue based on the absolute value of the prediction residual of each node.

[0213] S602: Determine a value of a first quantization parameter according to the first eigenvalue.

[0214] It should be noted that, in the embodiment of the present application, the value of the first quantization parameter can be adaptively determined based on the first eigenvalue corresponding to the current point cloud. The first quantization parameter can include at least one of the following: a geometric loop quantization parameter, a geometric loop quantization parameter, and an attribute quantization parameter.

[0215] It should also be noted that, in the embodiment of the present application, the value of the first quantization parameter can be determined based on the comparison between the first eigenvalue and the reference eigenvalue. In some embodiments, determining the value of the first quantization parameter based on the first eigenvalue can include:

[0216] Determine the reference eigenvalues ​​of the current point cloud;

[0217] Determining a feature comparison value based on the first feature value and the reference feature value;

[0218] The value of the first quantization parameter is determined according to the feature comparison value, the preset weight value, and the basic value of the first quantization parameter.

[0219] It is understood that in the embodiments of the present application, the reference characteristic value may be an empirical value compared with the characteristic variable. In one possible implementation, the reference characteristic value is a preset constant value. For example, the reference characteristic value may be a fixed value set based on experience.

[0220] In another possible implementation, determining the reference eigenvalue of the current point cloud may include: determining a preset reference range of the current point cloud; determining at least two second eigenvalues ​​based on the preset reference range; and calculating the mean of the at least two second eigenvalues ​​to obtain the reference eigenvalue.

[0221] Here, the reference eigenvalue can be not only a fixed value set by the user based on experience, but also an average value calculated within a certain reference range, which is not specifically limited here. In addition, it should be noted that for a certain reference range (such as a preset reference range), if a point cloud is divided into multiple segments, the reference range can be the average value of the second eigenvalue calculated for the segments within the range adjacent to the current segment; or, if it is a point cloud sequence, the reference range can be the average value of the second eigenvalue of one or more adjacent frames.

[0222] It is also understandable that in the embodiment of the present application, the base value of the first quantization parameter may be a preset constant value. In other words, the base value of the first quantization parameter may be an empirical value of the first quantization parameter, and then dynamically adjusted based on the base value to determine the value of the first quantization parameter.

[0223] In some embodiments, for the base value of the first quantization parameter, the method may further include: determining a preset calculation model; and determining the base value of the first quantization parameter according to the target parameter of the current point cloud and the preset calculation model.

[0224] In an embodiment of the present application, a preset calculation model is used to indicate a mapping relationship between a target parameter and a first quantization parameter, where the target parameter includes a bit rate and / or a reconstruction quality. Here, the preset calculation model can be a mathematical model in different forms of expression, such as a power model, a natural logarithm model, an exponential model, etc. Specifically, the preset calculation model is a mathematical model that can reflect the mapping relationship between the bit rate and the first quantization parameter, and / or a mathematical model that reflects the mapping relationship between the reconstruction quality and the first quantization parameter. Exemplarily, the first quantization parameter can be set to a base value according to the preset calculation model, and then the base value can be dynamically adjusted according to the feature comparison value and the preset weight value to obtain the value of the first quantization parameter.

[0225] Furthermore, in the embodiment of the present application, the first eigenvalue can be represented by d, and the reference eigenvalue can be represented by Indicates that the preset weight value can be represented by k, the basic value of the first quantization parameter can be represented by Q, and the value of the first quantization parameter can be represented by Q in express.

[0226] In a possible implementation, determining the value of the first quantization parameter according to the feature comparison value, the preset weight value, and the base value of the first quantization parameter may include:

[0227] Determining a first adjustment value according to the feature comparison value and a preset weight value;

[0228] An addition operation is performed according to the first adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0229] Here, the first adjustment value can be expressed as Then the value of the first quantization parameter Q in It can be calculated according to the above formula (1).

[0230] In another possible implementation, determining the value of the first quantization parameter according to the feature comparison value, the preset weight value, and the base value of the first quantization parameter may include:

[0231] Determining a second adjustment value based on the feature comparison value and a preset weight value;

[0232] A multiplication calculation is performed according to the second adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0233] Here, the second adjustment value can be expressed as Then the value of the first quantization parameter Q in It can be calculated according to the above formula (2).

[0234] It should also be noted that, taking the quantization parameter in the geometric loop as an example, for formula (1) or formula (2), where Q in is the value of the quantization parameter in the geometric ring, Q is the empirical value of the quantization parameter in the geometric ring (i.e., the basic value), and d is the accumulated value of the current point cloud. is the average value within the preset reference range, and k can also be called the adjustment weight.

[0235] It can also be understood that in an embodiment of the present application, for a first quantization parameter, such as at least one of a geometric loop inner quantization parameter, a geometric loop outer quantization parameter, and an attribute quantization parameter, if the decoding end does not use a method of adaptively determining the quantization parameter value, then the encoding end needs to write the value of the first quantization parameter into the bitstream after determining the value of the first quantization parameter; in this way, for the decoding end, the value of the first quantization parameter can be determined by decoding the bitstream.

[0236] In some embodiments, when the target setting mode is not enabled for the first quantization parameter of the current point cloud, referring to FIG. 7 , the method may include:

[0237] S701: Determine a value of a first quantization parameter.

[0238] S702: Encode the value of the first quantization parameter, and write the obtained coded bits into the bitstream.

[0239] That is, in this embodiment of the present application, if the value of the preset identification information is the second value, that is, the first quantization parameter of the current point cloud has not enabled the target setting mode, then the value of the first quantization parameter will be written into the bitstream. The setting of the first quantization parameter will be described in detail below in conjunction with several implementation methods.

[0240] In a possible implementation, determining the value of the first quantization parameter may include:

[0241] determining a first calculation model;

[0242] A value of the first quantization parameter is determined according to the bit rate of the current point cloud and the first calculation model.

[0243] It should be noted that, in the embodiment of the present application, the first calculation model is used to indicate the mapping relationship between the bit rate and the first quantization parameter. In this case, it is first necessary to establish a mathematical model of the encoding bit rate and the first quantization parameter, and use the established mathematical model to determine the specific value of the first quantization parameter according to the required encoding bit rate. For example, the mathematical model (i.e., the first calculation model) is expressed as: R = f(Q) (3)

[0244] Wherein, R is the encoding bit rate, Q is the first quantization parameter, and f(·) is the function expression of the first calculation model.

[0245] In a specific embodiment, determining the first computing model may include: determining model parameters of the first computing model.

[0246] It should be noted that, in an embodiment of the present application, the model parameters of the first computing model may include: determining multiple groups of sample values ​​of the first quantization parameter; pre-encoding the current point cloud according to the multiple groups of sample values ​​of the first quantization parameter to obtain multiple sample bit rate values; and determining the model parameters of the first computing model based on the multiple groups of sample values ​​of the first quantization parameter and the multiple sample bit rate values.

[0247] That is, in the embodiments of the present application, the method for determining the expression form of the first computational model can be specifically described as: setting multiple sets of quantization parameter values ​​based on empirical values, observing and recording the corresponding encoding bitrate results. This process is called pre-encoding. Generally, for a point cloud sequence, a certain number of frames before the point cloud sequence are usually pre-encoded, and after the first computational model is established, it is applied to the subsequent frames of the point cloud sequence. For a single point cloud frame, pre-encoding is usually performed on that frame.

[0248] Here, for the implementation method of precoding, the geometric loop quantization parameter and the attribute quantization parameter can be set to fixed values, and only the geometric loop quantization parameter can be changed to fit the relationship between the geometric loop quantization parameter and the bit rate; or, the geometric loop quantization parameter and the attribute quantization parameter can be set to fixed values, and only the geometric loop quantization parameter can be changed to fit the relationship between the geometric loop quantization parameter and the bit rate; or, the geometric loop quantization parameter and the geometric loop quantization parameter can be set to fixed values, and only the attribute quantization parameter can be changed to fit the relationship between the attribute quantization parameter and the bit rate. It should be noted that the encoding bit rate of the point cloud can include two parts: the geometric bit rate and the attribute bit rate, which are the bit rates required for encoding the point cloud geometric information and encoding the point cloud attribute information respectively. The geometric bit rate is only affected by the geometric quantization parameters (the geometric loop quantization parameter and the geometric loop quantization parameter), but the attribute bit rate is affected by both the geometric quantization parameters (the geometric loop quantization parameter and the geometric loop quantization parameter) and the attribute quantization parameters.

[0249] In another specific embodiment, the method may also include: determining multiple first candidate models; determining the predicted bit rate values ​​corresponding to each of the multiple first candidate models based on the sample value of the first quantization parameter; performing fitting effect calculations based on the predicted bit rate values ​​and true bit rate values ​​corresponding to each of the multiple first candidate models to obtain the effect values ​​corresponding to each of the multiple first candidate models; selecting a target model from the multiple first candidate models based on the effect values ​​corresponding to each of the multiple first candidate models; and determining the target model as the first calculation model.

[0250] It should be noted that in the embodiment of the present application, multiple common candidate model expressions can be selected for fitting based on experience, and then the mathematical model with the best fitting effect is selected as the final mathematical model expression, that is, the final first calculation model.

[0251] It should also be noted that for common candidate models, several expressions are provided below as examples. However, it should be noted that these empirical models are only used for illustration, and the mathematical model ultimately adopted is not limited to these expressions.

[0252] In some embodiments, an empirical mathematical model is a power model, specifically as follows: R = aQ b (4)

[0253] Wherein, a and b are both model parameters to be fitted, and Q is one of the geometric loop outer quantization parameter, the geometric loop inner quantization parameter, and the attribute quantization parameter.

[0254] In some embodiments, an empirical mathematical model is a natural logarithm model, specifically as follows: R = clnQ + d (5)

[0255] Among them, c and d are the model parameters to be fitted. It should be noted that the natural logarithm model is also equivalent to the e-exponential model, as follows: Q = fe gQ (6)

[0256] Among them, f and g are model parameters to be fitted, and Q is one of the geometric loop outer quantization parameter, the geometric loop inner quantization parameter, and the attribute quantization parameter.

[0257] In some embodiments, an empirical mathematical model is a composite model of the natural logarithm model, which can be expressed as follows: R = (clnQ1 + d) lnQ2 + e (7)

[0258] Among them, Q1 and Q2 are any two of the geometric loop outer quantization parameters, geometric loop inner quantization parameters, and attribute quantization parameters, and c, d, and e are model parameters to be fitted.

[0259] In some embodiments, a composite model of an empirical power model can be expressed as follows:

[0260] Among them, Q1 and Q2 are any two of the geometric loop outer quantization parameters, geometric loop inner quantization parameters, and attribute quantization parameters, and i, j, k, and h are model parameters to be fitted.

[0261] It should also be noted that, in the embodiment of the present application, the evaluation of the fitting effect can be performed using the fitting degree R 2 , or it may be the mean square error (MSE). That is, the effect value of the embodiment of the present application may at least include: a goodness of fit value or a mean square error (MSE), but is not specifically limited thereto.

[0262] In some embodiments, selecting a target model from a plurality of first candidate models according to the effect values ​​corresponding to each of the plurality of first candidate models may include:

[0263] If the effect value is a fitting value, determining the maximum effect value from the effect values ​​corresponding to the plurality of first candidate models, and taking the first candidate model corresponding to the maximum effect value as the target model;

[0264] If the effect value is a mean square error value, the minimum effect value is determined from the effect values ​​corresponding to the multiple first candidate models, and the first candidate model corresponding to the minimum effect value is used as the target model.

[0265] In one possible implementation, for the fitness R 2 , can be defined as follows:

[0266] in, is the model’s predicted bitrate, y i is the actual encoding bit rate, is the average value of the coding rate in the observation experiment. 2 The larger it is, the better the fitting effect is.

[0267] In one possible implementation, the mean square error (MSE) can be defined as follows:

[0268] Where n is the number of samples in the observation experiment, is the model’s predicted bitrate, y i is the actual encoding bit rate. In general, the smaller the MSE, the better the fitting effect.

[0269] In another possible implementation, determining the value of the first quantization parameter may include:

[0270] determining a second calculation model;

[0271] A value of the first quantization parameter is determined according to the reconstruction quality of the current point cloud and the second calculation model.

[0272] It should be noted that, in the embodiment of the present application, the second calculation model is used to indicate the mapping relationship between the reconstruction quality and the first quantization parameter. In this case, it is first necessary to establish a mathematical model of the reconstruction quality and the first quantization parameter, and use the established mathematical model to determine the specific value of the first quantization parameter according to the required reconstruction quality. Exemplarily, the mathematical model (i.e., the second calculation model) is expressed as: D = g(Q) (11)

[0273] Where D can be the reconstruction quality, and a larger D indicates a better reconstruction quality. D can also be the loss of the reconstructed point cloud relative to the original point cloud, and a smaller D indicates a better reconstruction point cloud quality. Q is the first quantization parameter, and g(·) is the function expression of the second computational model.

[0274] It should also be noted that the reconstruction quality can be expressed using the Peak Signal to Noise Ration (PSNR), which is calculated as follows:

[0275] Here, p represents the peak signal value, which is determined by the characteristics of the dataset itself; MSE represents the error between the reconstructed point cloud and the original point cloud. There are many ways to describe the error between the reconstructed point cloud and the original point cloud, and this is not specifically limited.

[0276] In addition, for reconstruction quality, not only PSNR can be used as an indicator of reconstruction quality, but also subjective scores, mathematical models for predicting user subjective scores, performance of specific application tasks, etc. can be used as indicators to describe the quality of the reconstructed point cloud. The embodiments of the present application do not make specific limitations on this.

[0277] In this way, after determining the indicator describing the reconstruction quality, a mathematical model of the first quantization parameter and the reconstruction quality, ie, the second calculation model, can be established.

[0278] In a specific embodiment, determining the second computing model may include: determining model parameters of the second computing model.

[0279] It should be noted that, in an embodiment of the present application, the model parameters of the second computing model may include: determining multiple groups of sample values ​​of the first quantization parameter; pre-encoding the current point cloud according to the multiple groups of sample values ​​of the first quantization parameter to obtain multiple sample reconstruction quality values; and determining the model parameters of the second computing model based on the multiple groups of sample values ​​of the first quantization parameter and the multiple sample reconstruction quality values.

[0280] That is, in the embodiments of the present application, the method for determining the expression form of the second computational model can be specifically described as: setting multiple sets of quantization parameter values ​​based on empirical values, observing and recording the corresponding reconstruction quality results. This process is also called precoding. Generally, for a point cloud sequence, a certain number of frames before the point cloud sequence are usually precoded, and after the second computational model is established, it is applied to the subsequent frames of the point cloud sequence. For a single point cloud frame, precoding is usually performed on that frame.

[0281] Here, for the implementation method of precoding, the quantization parameter within the geometric loop and the attribute quantization parameter can be set to fixed values, and only the quantization parameter outside the geometric loop can be changed to fit the relationship between the quantization parameter outside the geometric loop and the reconstruction quality; or, the quantization parameter outside the geometric loop and the attribute quantization parameter can be set to fixed values, and only the quantization parameter within the geometric loop can be changed to fit the relationship between the quantization parameter within the geometric loop and the reconstruction quality; or, the quantization parameter outside the geometric loop and the quantization parameter within the geometric loop can be set to fixed values, and only the attribute quantization parameter can be changed to fit the relationship between the attribute quantization parameter and the reconstruction quality.

[0282] In another specific embodiment, the method may also include: determining multiple second candidate models; determining the prediction quality values ​​corresponding to each of the multiple second candidate models based on the sample value of the first quantization parameter; performing fitting effect calculations based on the prediction quality values ​​and true reconstruction quality values ​​corresponding to each of the multiple second candidate models to obtain the effect values ​​corresponding to each of the multiple second candidate models; selecting a target model from the multiple second candidate models based on the effect values ​​corresponding to each of the multiple second candidate models; and determining the target model as the second calculation model.

[0283] It should be noted that in the embodiments of the present application, based on experience, multiple common second candidate model expressions can be selected for fitting, and then the mathematical model with the best fitting effect can be selected as the final mathematical model expression, i.e., the final second calculation model. The method for determining the bit rate mathematical model expression can also be applied to determining the reconstruction quality mathematical model expression; and the second candidate model can also be a functional expression such as a power model, a natural logarithm model, an exponential model, or a composite model of a power model / natural logarithm model, all of which are not specifically limited here.

[0284] It should also be noted that in the embodiment of the present application, the evaluation of the fitting effect can be performed using the fit value R^2 or the mean square error (MSE). In other words, the effect value of the embodiment of the present application can at least include: the fit value or the mean square error value, but is not specifically limited to this.

[0285] In some embodiments, selecting a target model from a plurality of second candidate models according to the effect values ​​corresponding to each of the plurality of second candidate models may include:

[0286] If the effect value is a goodness of fit value, then determining the maximum effect value from the effect values ​​corresponding to the plurality of second candidate models, and taking the second candidate model corresponding to the maximum effect value as the target model;

[0287] If the effect value is a mean square error value, the minimum effect value is determined from the effect values ​​corresponding to the multiple second candidate models, and the second candidate model corresponding to the minimum effect value is used as the target model.

[0288] In the embodiment of the present application, for the degree of fit R 2 , can be defined as shown in formula (9); for the mean square error MSE, it can be defined as shown in formula (10). Usually, R 2 Alternatively, a smaller MSE value indicates a better fitting effect.

[0289] In yet another possible implementation, determining the value of the first quantization parameter may include:

[0290] determining a first calculation model and a second calculation model;

[0291] An optimal solution is calculated according to the first calculation model and the second calculation model to determine a value of the first quantization parameter.

[0292] It should be noted that, in the embodiment of the present application, the first calculation model is used to indicate the mapping relationship between the bit rate and the first quantization parameter, and the second calculation model is used to indicate the mapping relationship between the reconstruction quality and the first quantization parameter.

[0293] It should also be noted that, in the embodiment of the present application, a restricted optimization problem is established based on the bit rate mathematical model and the reconstruction quality mathematical model, and the optimal value of the first quantization parameter is obtained by solving the optimization problem. The optimization problem can be expressed as follows: min Q g(Q) (13) stf(Q)≤R target (14)

[0294] Among them, Q is the first quantization parameter, g(Q) and f(Q) are the mathematical model expressions of reconstruction loss and encoding bit rate respectively, R target Indicates the target bitrate.

[0295] It is understandable that when the first quantization parameter is a quantization parameter within the geometric loop, the quantization parameter within the geometric loop can also be set based on grouping. Therefore, in some embodiments, the method may further include:

[0296] Divide the current point cloud into N groups; where N is a positive integer;

[0297] Based on each of the N groups, when a first quantization parameter of each group enables a target setting mode, determining a first eigenvalue corresponding to each group;

[0298] According to the first eigenvalue corresponding to each group, the values ​​of the first quantization parameters corresponding to each of the N groups are determined.

[0299] It should be noted that in the embodiment of the present application, the number N of groups of the current point cloud will be written into the code stream. Therefore, in some embodiments, the method may further include: encoding the number N of groups of the current point cloud, and writing the obtained coded bits into the code stream. In this way, at the decoding end, the number N of groups of the current point cloud can be determined directly by decoding the code stream. In addition, with regard to the specific grouping method, after determining the number N of groups to be grouped, the current point cloud can be evenly grouped according to the number of points; however, the current point cloud can also be unevenly grouped according to other rules, which is not limited here.

[0300] It should also be noted that in the embodiment of the present application, after grouping, for each of the N groups, if the first quantization parameter of the first group enables the target setting mode, then the first group can use the above-mentioned quantization parameter adaptive value method; if the first quantization parameter of the first group does not enable the target setting mode, then the value of the first quantization parameter can be determined according to the first calculation model and / or the second calculation model. The first group is any one of the N groups.

[0301] In a possible implementation, if the first quantization parameter of each group enables the target setting mode, determining the first eigenvalue corresponding to each group may include:

[0302] Determine the sub-prediction tree corresponding to each group; perform a cumulative operation based on the distance between each node and the previous node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0303] In another possible implementation, if the preset identification information indicates that the first quantization parameter of each group enables the target setting mode, determining the first characteristic value corresponding to each group may include:

[0304] Determine the sub-prediction tree corresponding to each group; perform a cumulative operation based on the absolute value of the prediction residual of each node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0305] It should be noted that, in an embodiment of the present application, taking the first group of N groups as an example, for the first eigenvalue corresponding to the first group, it is first necessary to determine the sub-prediction tree corresponding to the first group; wherein the sub-prediction tree may include at least one node in the first group; then the distance between each node and the previous node in the sub-prediction tree may be accumulated to determine the first eigenvalue corresponding to the first group; alternatively, the absolute value of the prediction residual of each node in the sub-prediction tree may be accumulated to determine the first eigenvalue corresponding to the first group; alternatively, the encoding end may also construct a reference point set, and then accumulate the absolute value of the prediction residual of each node in the reference point set to determine the first eigenvalue corresponding to the first group; there is no specific limitation on this here.

[0306] It should also be noted that, in the embodiment of the present application, after determining the first eigenvalue corresponding to each group, the value of the first quantization parameter corresponding to each group can be further determined based on the first eigenvalue corresponding to each group. Specifically, this can include: determining a reference eigenvalue corresponding to each group; determining a feature comparison value corresponding to each group based on the first eigenvalue corresponding to each group and the reference eigenvalue; and determining the value of the first quantization parameter corresponding to each group based on the feature comparison value, a preset weight value, and a base value of the first quantization parameter.

[0307] For example, the value of the first quantization parameter corresponding to each group can be calculated according to the aforementioned formula (1) or formula (2). In particular, for different groups, the reference eigenvalue compared with the first eigenvalue can be the average value calculated from the characteristic variables of adjacent groups.

[0308] It should also be noted that, in the embodiment of the present application, not only the number of groups N of the current point cloud can be written into the bitstream, but also the values ​​of the first quantization parameters corresponding to each of the N groups can be written into the bitstream. Thus, in some embodiments, the method may further include: encoding the values ​​of the first quantization parameters corresponding to each of the N groups, and writing the obtained coded bits into the bitstream. Thus, if the encoding end adopts a group-based geometric ring quantization parameter setting method, then at the subsequent decoding end, the number of groups and the quantization parameters of different groups can be first parsed; then, according to the mapping relationship between points and groups, different values ​​of the quantization parameters will be applied to the points in different groups.

[0309] Furthermore, in some embodiments, the method may also include: determining the predicted residual value of the node to be processed in the current point cloud; determining the value of the first quantization parameter corresponding to the node to be processed based on the mapping relationship between the node to be processed and the N groups; quantizing the predicted residual value of the node to be processed based on the value of the first quantization parameter to determine the quantized residual value of the node to be processed; encoding the quantized residual value of the node to be processed, and writing the obtained coded bits into the bit stream.

[0310] It should be noted that after determining the prediction residual value of the node to be processed, the value of the first quantization parameter corresponding to the node to be processed can be determined based on the mapping relationship between the node to be processed and the N groups. The prediction residual value of the node to be processed is then quantized using the value of the first quantization parameter. In this way, the value of the first quantization parameter is dynamically set according to different segments of the point cloud, which can maximize the preservation of local features of the point cloud under similar bitrate conditions.

[0311] In a specific embodiment, determining the predicted residual value of the node to be processed in the current point cloud may include: determining the predicted value of the node to be processed; performing a subtraction operation based on the true value of the node to be processed and the predicted value of the node to be processed to obtain the predicted residual value of the node to be processed.

[0312] It should also be noted that, in the embodiments of the present application, various prediction methods are available for the predicted value of a node to be processed. For example, a reference point set corresponding to the node to be processed is determined based on a preset traversal order; the node to be processed is predicted based on the reference point set to determine the predicted value of the node to be processed. When traversing the prediction tree, the reference point set may be a point set consisting of at most the first k points in the traversal order, where k is a positive integer.

[0313] In a possible implementation, determining the predicted value of the node to be processed may include: obtaining the geometric coordinate value of the node preceding the node to be processed according to a preset traversal order; and using the geometric coordinate value of the preceding node as the predicted value of the node to be processed.

[0314] In another possible implementation, determining the predicted value of the node to be processed may include: obtaining the geometric coordinate value of the previous node and the geometric coordinate values ​​of the previous two nodes of the node to be processed according to a preset traversal order; and determining the predicted value of the node to be processed based on the geometric coordinate value of the previous node and the geometric coordinate values ​​of the previous two nodes.

[0315] That is to say, when traversing the entire prediction tree in the order of joining the prediction tree, for each traversed node, taking the prediction of the geometric position of the node to be processed as an example, the prediction method here can be a mathematical transformation of a point set consisting of at most the first k points in the traversal order. Optionally, one prediction method is to directly use the geometric coordinates of the previous node as the predicted value of the geometric coordinates of the node to be processed; optionally, one prediction method is to record the previous node of the node to be processed in the preset traversal order as p0, and the first two nodes as p1, then the predicted value of the geometric coordinates of the node to be processed is 2p0-p1; among them, there can be multiple prediction methods, which are not specifically limited here.

[0316] In this way, in the case where grouping exists, assuming that the number of groups set by the encoding end is equal to 3, then a point cloud or a point cloud fragment can be divided into 3 groups, and then the first eigenvalue of each group is calculated, and different geometric loop quantization parameters are assigned according to the size of the first eigenvalue of each group. For example, the group with a large first eigenvalue can be assigned a larger geometric loop quantization parameter; the group with a small first eigenvalue can be assigned a smaller geometric loop quantization parameter.

[0317] In some embodiments, the present application further provides a code stream, which may be generated by bit encoding based on information to be encoded; wherein the information to be encoded includes at least one of the following:

[0318] The value of the preset identification information, the value of the first quantization parameter, the absolute value of the prediction residual, the number of groups N, and the value of the first quantization parameter corresponding to each of the N groups; wherein N is a positive integer.

[0319] It should be noted that the encoder can write this information to be encoded into the bitstream, and then the decoder can obtain this information by decoding the bitstream. For example, if the encoder writes the value of the preset identification information into the bitstream, then the decoder can determine whether the first quantization parameter of the current point cloud uses the target setting mode after obtaining the value of the preset identification information by decoding the bitstream. If the encoder uses a group-based quantization parameter value setting method, then the decoder can directly obtain the number of groups N and the value of the first quantization parameter corresponding to each of the N groups by decoding the bitstream.

[0320] This embodiment provides an encoding method that, when the first quantization parameter of the current point cloud is in target setting mode, determines a first eigenvalue based on the current point cloud; and then determines the value of the first quantization parameter based on the first eigenvalue. In this way, adaptively setting the quantization parameter based on the first eigenvalue of the current point cloud not only avoids the tedious operation of empirically setting multiple sets of quantization parameter values ​​to search for the optimal quantization parameter, but also, due to the adaptive adjustment of the quantization parameter, enables the bit rate of the encoded point cloud to approach the bit rate requirements of the actual application scenario, achieving optimal reconstruction quality within limited transmission bandwidth conditions, thereby improving the encoding and decoding performance of the point cloud.

[0321] In another embodiment of the present application, based on the encoding method and decoding method described in the aforementioned embodiments, the embodiment of the present application takes into account actual application scenarios, and designs a method for setting quantization parameters. By reasonably controlling the geometric loop outer quantization parameters, the geometric loop inner quantization and the attribute quantization parameters, the encoding bit rate is made close to the bit rate requirement of the actual application scenario, and the best reconstruction quality is achieved under limited transmission bandwidth conditions.

[0322] In one possible implementation, a method for setting point cloud quantization parameters is proposed, which is specifically described as follows:

[0323] At the encoding end, quantization parameters are set according to the transmission bandwidth requirements; wherein the quantization parameters may include a geometric outer loop quantization parameter, a geometric inner loop quantization parameter, and an attribute quantization parameter of the point cloud.

[0324] Furthermore, the method of setting the quantization parameters can be described as:

[0325] First, a mathematical model of the quantization parameter and encoding bit rate is established. The established mathematical model is used to determine the specific value of the quantization parameter based on the given transmission bandwidth requirement. The expression of the mathematical model is shown in the aforementioned formula (3). The higher the bit rate, the larger the required transmission bandwidth; the smaller the bit rate, the smaller the required transmission bandwidth.

[0326] Secondly, the method for determining the expression form of the mathematical model can be described as:

[0327] Precoding involves setting multiple sets of quantization parameters based on empirical values, observing and recording the corresponding encoding bitrates. Generally speaking, for a point cloud sequence, precoding is performed on a certain number of frames before the sequence, and a mathematical model is then built and applied to subsequent frames. For a single point cloud frame, precoding is typically performed on that frame.

[0328] It should be noted that, based on experience, multiple common mathematical model expressions can be selected for fitting, and then the mathematical model with the best fitting effect is selected as the final mathematical model expression.

[0329] In some embodiments, the index for evaluating the fitting effect can be the fitting degree R 2 , can also be the mean square error MSE. Among them, the fitting degree R 2 As shown in the above formula (9), R 2 The larger the MSE, the better the fitting effect. The mean square error (MSE) is defined as shown in the above formula (10). Generally, the smaller the MSE, the better the fitting effect.

[0330] In some embodiments, a precoding implementation method is to set the quantization parameter and the attribute quantization parameter in the geometric loop to fixed values, and only change the quantization parameter outside the geometric loop, and fit the relationship between the quantization parameter outside the geometric loop and the bit rate;

[0331] In some embodiments, a precoding implementation method is to set the quantization parameter outside the geometric loop and the attribute quantization parameter to fixed values, and only change the quantization parameter inside the geometric loop, thereby fitting the relationship between the quantization parameter inside the geometric loop and the bit rate;

[0332] In some embodiments, a precoding implementation method is to set the quantization parameter outside the geometric loop and the quantization parameter inside the geometric loop to fixed values, and only change the attribute quantization parameter, thereby fitting the relationship between the attribute quantization parameter and the bit rate.

[0333] It should be noted that the encoding bitrate of a point cloud consists of two parts: the geometric bitrate and the attribute bitrate, which are the bitrates required to encode the point cloud geometry and the attribute information, respectively. The geometric bitrate is only affected by the geometric quantization parameter, but the attribute bitrate is affected by both the geometric and attribute quantization parameters.

[0334] In some embodiments, an empirical mathematical model is a power model, which is shown in the aforementioned formula (4). Wherein, a and b are model parameters to be fitted, and Q is one of the geometric loop outer quantization parameter, the geometric loop inner quantization parameter, and the attribute quantization parameter.

[0335] In some embodiments, an empirical mathematical model is a natural logarithm model, as shown in the aforementioned formula (5). Here, c and d are both model parameters to be fitted. It should be noted that the natural logarithm model is also equivalent to the e-exponential model, as shown in the aforementioned formula (6). Here, f and g are model parameters to be fitted, and Q is one of a geometric outer loop quantization parameter, a geometric inner loop quantization parameter, and an attribute quantization parameter.

[0336] In some embodiments, an empirical mathematical model is a composite model of a power model and a natural logarithm model, which can be expressed as shown in the aforementioned formula (7). Wherein, Q1 and Q2 are any two of the geometric loop outer quantization parameters, the geometric loop inner quantization parameters, and the attribute quantization parameters, and c, d, and e are the model parameters to be fitted.

[0337] In some embodiments, an empirical mathematical model is a composite model of a power model and a natural logarithm model, which can be expressed as shown in the aforementioned formula (8). Wherein, Q1 and Q2 are any two of the geometric loop outer quantization parameters, the geometric loop inner quantization parameters, and the attribute quantization parameters, and i, j, k, and h are the model parameters to be fitted.

[0338] It should be noted that the empirical model provided above is only used for illustration, and the empirical mathematical model ultimately adopted should not be limited to the above example.

[0339] In another possible implementation, it is proposed here to set the value of the quantization parameter according to the mathematical model established by precoding, the required bit rate and reconstruction quality.

[0340] In some embodiments, a method for setting a quantization parameter value is to directly calculate the value of the quantization parameter variable according to a mathematical model when there is only one quantization parameter variable and other quantization parameters are set according to experience.

[0341] In some embodiments, a method for setting the value of a quantization parameter is, when there are two or more quantization parameter variables and include attribute quantization parameter variables, considering that the geometric priority of the three-dimensional point cloud is higher than the attribute priority, giving priority to taking a smaller value for geometric quantization to retain as much geometric information as possible.

[0342] In some embodiments, a method for setting a quantization parameter value is to establish a mathematical model of reconstruction quality, and set the quantization parameter value based on the two mathematical models of reconstruction quality and bit rate.

[0343] In some embodiments, a metric describing reconstruction quality is PSNR, calculated as shown in the aforementioned equation (12). Here, p represents the peak signal value, which is determined by the characteristics of the dataset itself, and MSE represents the error between the reconstructed point cloud and the original point cloud. There are many ways to describe the error between the reconstructed point cloud and the original point cloud, and this is not further limited.

[0344] In some embodiments, an indicator describing the reconstruction quality is a subjective score, that is, a user's subjective score on the quality of the reconstructed point cloud.

[0345] In some embodiments, an indicator describing the reconstruction quality is a mathematical model for predicting user subjective scores. That is, instead of looking for actual user scores for the reconstruction quality, a mathematical model is established by analyzing the characteristics of the human eye to predict the user's possible scores. It should be noted that there are many forms of mathematical models established for predicting user subjective scores, and no further limitation is given to this.

[0346] In some embodiments, an indicator describing the reconstruction quality is the performance of a specific application task, that is, the reconstructed point cloud is applied to a specific application task, and the performance of the reconstructed point cloud in the task is recorded as an indicator describing the quality of the reconstructed point cloud.

[0347] Thus, after determining the index describing the reconstruction quality, a mathematical model of quantization parameters and reconstruction quality is established. The expression of the mathematical model is shown in the above formula (11). Wherein, can be the reconstruction quality, the larger the D, the better the reconstruction quality, or can be the loss of the reconstructed point cloud relative to the original point cloud, the smaller the D, the better the quality of the reconstructed point cloud, Q is the quantization parameter, and g(·) is the function expression of the independent variable;

[0348] In some embodiments, the method of determining the specific mathematical model expression form of the bit rate can also be applied to determining the specific mathematical model expression form of the reconstruction quality.

[0349] Among them, a restricted optimization problem is established based on the bit rate mathematical model and the quality mathematical model. The optimal quantization parameter value is obtained by solving the optimization problem. The optimization problem can be expressed as shown in the above formula (13) and formula (14). Among them, Q is the quantization parameter, g(Q) and f(Q) are the mathematical model expressions of reconstruction loss and encoding bit rate respectively, R target Indicates the target bitrate.

[0350] In another possible implementation, a method for setting quantization parameters proposed here can be described as follows: the values ​​of the outer-loop geometric quantization parameters and attribute quantization parameters are set by one of the above methods or by empirical values, and the values ​​of the inner-loop geometric quantization parameters are dynamically adjusted according to the characteristics of the data set itself.

[0351] In some embodiments, an indicator bit is defined and written into the bitstream, indicating that adaptive value selection of the in-loop quantization parameter is enabled at the encoding end.

[0352] Specifically, a method for setting adaptive values ​​of geometric parameters within a ring can be described as follows:

[0353] First, all the points of the point cloud or point cloud fragment are sorted in a certain order. Then, a tree structure is established, called a prediction tree, and the first-ranked point is added to the prediction tree as the root node.

[0354] Starting from the root node, each new point added to the prediction tree is called the current node. Each time the remaining points are searched, the point closest or approximately closest to the current node is taken as the next node until all points in the point cloud or point cloud fragment are added to the prediction tree.

[0355] In some embodiments, a method for setting the in-loop geometric parameters is to traverse the entire prediction tree in the order of adding the prediction tree, accumulate the geometric distance between the next node and the previous node in the tree, and use it as a characteristic variable to determine the value of the in-loop geometric parameter; compare the characteristic variable with the empirical value to determine the final value of the in-loop geometric parameter.

[0356] In some embodiments, a method for setting the geometric parameters within a loop is to traverse the entire prediction tree in the order in which the prediction tree is added, and when traversing each node, predict the geometric position of the current node. The prediction method can be a mathematical transformation of a point set consisting of at most the first k points in the traversal order. Optionally, one prediction method is to directly use the geometric coordinates of the previous node as the predicted value of the geometric coordinates of the current point; optionally, one prediction method is to record the previous node of the current node as p0 and the first two nodes as p1 in the traversal order, and then the predicted value of the geometric coordinates of the current node is 2p0-p1; there can be multiple prediction methods, which are not further limited here.

[0357] After obtaining the predicted value of each point, the absolute value of the difference between the true geometric coordinates and the predicted geometric coordinates is calculated, and the absolute value of the prediction residual of all nodes in the tree is accumulated as the characteristic variable that determines the value of the geometric parameters within the ring; the characteristic variable is compared with the empirical value to determine the final value of the geometric parameters within the ring.

[0358] In some embodiments, the empirical value compared with the feature variable may be a fixed value set by the user based on experience. Alternatively, another method of taking the value is to calculate an average value within a certain reference range. For example, when a point cloud is divided into multiple segments, the reference range may be the average value of the residual accumulation values ​​calculated for the segments within the adjacent range of the current segment. When encoding a point cloud sequence, the reference range may be the average value of the residual accumulation values ​​of one or more adjacent frames.

[0359] In some embodiments, the value of the geometric parameter in the ring is determined by comparing the characteristic variable with the empirical value. One possible implementation method is shown in the above formula (2), or another possible implementation method is shown in the above formula (1). inis the quantization parameter within the geometric loop, Q is the empirical value of the quantization parameter within the geometric loop, d is the accumulated value of the current point cloud fragment or point cloud frame, is the average value within the reference range, and k is the adjustment weight.

[0360] In some embodiments, the calculated quantization parameter within the geometric loop may be written into the bitstream; or, alternatively, may not be written into the bitstream and, in this case, may be recalculated at the decoding end.

[0361] In some embodiments, the above-described method for setting the quantization parameter within the geometric loop can also be applied to other quantization parameters. One possible implementation is that, for a sequence of point clouds, the quantization parameter outside the geometric loop and the attribute quantization parameter are set to a base value based on the aforementioned mathematical model. Then, for a specific frame, the quantization parameter within the geometric loop is dynamically adjusted based on the base value, where the base value is the aforementioned empirical value.

[0362] In some embodiments, a method for setting a quantization parameter within a geometric ring is to divide a point cloud or a point cloud segment into multiple groups, and apply a different quantization parameter to each group.

[0363] In some embodiments, a grouping method is to give the number of groups required and then group them evenly according to the number of points.

[0364] In some embodiments, the quantization parameter value selection method for each group of geometric loops may be one of the above-mentioned value selection methods. In particular, the empirical value compared with the characteristic variable may be the average value calculated from the characteristic variables of adjacent groups.

[0365] In some embodiments, a group-based intra-loop quantization parameter value determination method is that the quantization parameter value within the group is related to the feature value within the group; for example, three groups of quantization parameters are set at the encoding end, a point cloud or a point cloud segment is divided into three groups, the feature value of each group is calculated, and different geometric intra-loop quantization parameters are assigned according to the size of the feature value of each group, for example, a larger quantization parameter is assigned to a larger feature value, and a smaller quantization parameter is assigned to a smaller feature value;

[0366] That is to say, in the group-based geometric quantization parameter setting method, the number of groups and the quantization parameter values ​​corresponding to each group should be written into the bitstream.

[0367] Furthermore, at the decoding end, if the quantization parameter value at the encoding end is written into the bitstream, the decoding end can decode the bitstream to obtain the value of the quantization parameter.

[0368] In particular, if the in-loop quantization parameter can be adaptively obtained from the features of the point cloud itself, one decoding method is that if the encoder defines an indicator bit to be written into the bitstream, indicating that the in-loop quantization parameter adaptive value is enabled at the encoder, then parsing the indicator symbol can determine whether the in-loop quantization method is enabled.

[0369] Then, the code stream data related to the prediction tree geometric coordinates is parsed, and the parsed geometric coordinates are the coordinate values ​​after in-loop quantization.

[0370] In some embodiments, if the quantization parameter in the geometric loop is written into the bitstream, the parameter value is directly parsed;

[0371] In some embodiments, if the geometric in-loop quantization parameter is not written into the bitstream, but the characteristic variable used by the encoder to determine the in-loop quantization parameter is the distance between each node and the previous node in the prediction tree, then at the decoder, the distance between each node and the previous node in the prediction tree after parsing is accumulated and used as the characteristic variable to determine the value of the in-loop quantization parameter. This characteristic variable is compared with the empirical value to determine the final value of the in-loop geometric quantization parameter.

[0372] In some embodiments, if the characteristic variable of the in-loop quantization parameter determined by the encoding end is the prediction residual, then at the decoding end, the same reference point set as the encoding end can be constructed, the predicted geometric coordinates of the reference point set and the absolute value of the prediction residual of each node obtained by bitstream parsing can be calculated, and these absolute values ​​are accumulated as the characteristic variable that determines the value of the in-loop quantization parameter; the characteristic variable is compared with the empirical value to determine the final value of the in-loop geometric quantization parameter.

[0373] In some embodiments, the comparison of the characteristic variable with the empirical value to determine the value of the in-loop geometric quantization parameter may be implemented as shown in the aforementioned formula (2), or another possible implementation may be implemented as shown in the aforementioned formula (1). in is the quantization parameter within the geometric loop, Q is the empirical value of the quantization parameter within the geometric loop, d is the accumulated value of the current point cloud fragment or point cloud frame, is the average value within the reference range, and k is the adjustment weight.

[0374] In some embodiments, if the encoding end adopts a group-based in-loop geometric quantization parameter setting method, then at the decoding end, first, the number of groups and the quantization parameters of different groups are parsed; then, according to the mapping relationship between points and groups, different quantization parameter values ​​are applied to the points in different groups.

[0375] It should be noted that the in-loop quantization parameter setting method selected by the encoder corresponds to the method selected by the decoder. In actual implementation, the encoder and decoder typically select a single in-loop quantization parameter setting method, but can also support multiple methods, with a flag written into the bitstream indicating the selected quantization parameter setting method.

[0376] It should also be noted that, in the embodiments of the present application, the above-mentioned quantization parameter setting method can be applied to a hardware device, such as an electronic device including an encoder and / or a decoder.

[0377] In the embodiments of the present application, the specific implementation of the aforementioned embodiments is elaborated in detail through the above embodiments. It can be seen that according to the technical solutions of the aforementioned embodiments, for the proposed quantization parameter setting method, the actual application scenarios of the geometry-based point cloud codec are considered, and the quantization parameter values ​​are set according to the actual scenario bit rate requirements, so as to achieve the best reconstruction quality under limited bit rate conditions; by analyzing the different features of different point cloud fragments, the quantization parameter values ​​are dynamically adjusted, and more local features of the point cloud are retained under similar bit rate conditions. In this way, by using the quantization parameter setting method proposed by this technical solution, the quantization parameter values ​​can be set according to the actual scenario bit rate requirements, avoiding the tedious operation of setting multiple groups of quantization parameter values ​​based on experience to search and select the optimal quantization parameter combination, and achieving the best reconstruction quality under limited bit rate conditions; at the same time, through the dynamic adjustment of the quantization parameters within the loop, the quantization parameter values ​​can also be dynamically set according to the different features of different fragments of the point cloud, so as to retain the local features of the point cloud to a greater extent under similar bit rate conditions.

[0378] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see FIG8 , which shows a schematic diagram of the composition structure of an encoder provided by an embodiment of the present application. As shown in FIG8 , the encoder 80 may include: a first determining unit 801 and a first calculating unit 802; wherein,

[0379] The first determining unit 801 is configured to determine a first eigenvalue according to the current point cloud when a target setting mode is enabled for a first quantization parameter of the current point cloud;

[0380] The first calculation unit 802 is configured to determine a value of a first quantization parameter according to the first eigenvalue.

[0381] In some embodiments, referring to FIG8 , the encoder 80 may further include an encoding unit 803 , wherein:

[0382] The first determining unit 801 is further configured to determine a value of preset identification information, wherein the preset identification information is used to indicate whether the first quantization parameter of the current point cloud enables a target setting mode;

[0383] The encoding unit 803 is configured to encode the value of the preset identification information and write the obtained encoded bits into the bit stream.

[0384] In some embodiments, the first determination unit 801 is further configured to determine that the value of the preset identification information is a first value if the first quantization parameter of the current point cloud enables the target setting mode; if the first quantization parameter of the current point cloud does not enable the target setting mode, determine that the value of the preset identification information is a second value.

[0385] In some embodiments, the first determining unit 801 is further configured to determine a prediction tree corresponding to the current point cloud; and determine a first eigenvalue based on a distance between each node and a previous node in the prediction tree.

[0386] In some embodiments, the first calculation unit 802 is further configured to traverse the prediction tree, accumulate the distance between each node and the previous node in the prediction tree, obtain a first accumulated value, and use the first accumulated value as the first eigenvalue.

[0387] In some embodiments, the first determining unit 801 is further configured to determine a prediction tree corresponding to the current point cloud; and determine a first eigenvalue based on an absolute value of a prediction residual of each node in the prediction tree.

[0388] In some embodiments, the first calculation unit 802 is further configured to traverse the prediction tree, perform accumulation operation on the absolute value of the prediction residual of each node in the prediction tree, obtain a second accumulated value, and use the second accumulated value as the first eigenvalue.

[0389] In some embodiments, the first determining unit 801 is further configured to determine a predicted value of each node in the prediction tree; and determine a prediction residual value of each node in the prediction tree based on the true value of each node in the prediction tree and the predicted value of each node in the prediction tree;

[0390] The first calculation unit 802 is further configured to perform an absolute value operation on the prediction residual value of each node in the prediction tree to obtain the absolute value of the prediction residual of each node in the prediction tree.

[0391] In some embodiments, the encoding unit 803 is further configured to encode the absolute value of the prediction residual of each node in the prediction tree, and write the obtained coded bits into the bitstream.

[0392] In some embodiments, the first determination unit 801 is further configured to determine a reference point set corresponding to each node in the prediction tree according to a preset traversal order; and predict each node separately according to the reference point set to determine a predicted value of each node.

[0393] In some embodiments, the first determination unit 801 is further configured to determine the reconstruction value of the previous node of each node in the prediction tree according to a preset traversal order; and use the reconstruction value of the previous node as the prediction value of each node; or, is further configured to determine the reconstruction value of the previous node and the reconstruction values ​​of the previous two nodes of each node in the prediction tree according to a preset traversal order; and determine the prediction value of each node based on the reconstruction value of the previous node and the reconstruction values ​​of the previous two nodes.

[0394] In some embodiments, the first determination unit 801 is further configured to determine a reference eigenvalue of the current point cloud; determine a feature comparison value based on the first eigenvalue and the reference eigenvalue; and determine a value of the first quantization parameter based on the feature comparison value, a preset weight value, and a basic value of the first quantization parameter.

[0395] In some embodiments, the reference characteristic value is a preset constant value.

[0396] In some embodiments, the first determination unit 801 is further configured to determine a preset reference range of the current point cloud; determine at least two second eigenvalues ​​based on the preset reference range; and calculate the mean of the at least two second eigenvalues ​​to obtain a reference eigenvalue.

[0397] In some embodiments, the base value of the first quantization parameter is a preset constant value.

[0398] In some embodiments, the first determination unit 801 is further configured to determine a preset calculation model; and determine a basic value of the first quantization parameter based on the target parameters of the current point cloud and the preset calculation model; wherein the preset calculation model is used to indicate a mapping relationship between the target parameters and the first quantization parameter, and the target parameters include bit rate and / or reconstruction quality.

[0399] In some embodiments, the first determining unit 801 is further configured to determine a first adjustment value according to the feature comparison value and a preset weight value;

[0400] The first calculation unit 802 is further configured to perform an addition operation according to the first adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0401] In some embodiments, the first determining unit 801 is further configured to determine a second adjustment value based on the feature comparison value and a preset weight value;

[0402] The first calculation unit 802 is further configured to perform a multiplication calculation according to the second adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0403] In some embodiments, the first quantization parameter includes at least one of the following: a geometric inner loop quantization parameter, a geometric outer loop quantization parameter, and an attribute quantization parameter.

[0404] In some embodiments, the first determining unit 801 is further configured to determine a value of the first quantization parameter when the target setting mode is not enabled for the first quantization parameter of the current point cloud;

[0405] The encoding unit 803 is further configured to encode the value of the first quantization parameter and write the obtained encoding bits into the bitstream.

[0406] In some embodiments, the first determination unit 801 is further configured to determine a first computing model; and determine a value of a first quantization parameter based on the bit rate of the current point cloud and the first computing model; wherein the first computing model is used to indicate a mapping relationship between the bit rate and the first quantization parameter.

[0407] In some embodiments, the first determination unit 801 is further configured to determine a second computing model; and determine the value of the first quantization parameter based on the reconstruction quality of the current point cloud and the second computing model; wherein the second computing model is used to indicate the mapping relationship between the reconstruction quality and the first quantization parameter.

[0408] In some embodiments, the first determination unit 801 is further configured to determine a first calculation model and a second calculation model; and to calculate an optimal solution based on the first calculation model and the second calculation model to determine the value of the first quantization parameter; wherein the first calculation model is used to indicate the mapping relationship between the bit rate and the first quantization parameter, and the second calculation model is used to indicate the mapping relationship between the reconstruction quality and the first quantization parameter.

[0409] In some embodiments, the first determination unit 801 is further configured to determine multiple first candidate models; determine the predicted bit rate values ​​corresponding to each of the multiple first candidate models based on the sample value of the first quantization parameter; perform fitting effect calculations based on the predicted bit rate values ​​and true bit rate values ​​corresponding to each of the multiple first candidate models to obtain the effect values ​​corresponding to each of the multiple first candidate models; and select a target model from the multiple first candidate models based on the effect values ​​corresponding to each of the multiple first candidate models; and determine the target model as the first calculation model.

[0410] In some embodiments, the effect value includes at least: a fit value or a mean square error value; accordingly, the first determination unit 801 is also configured to, if the effect value is a fit value, determine the maximum effect value from the effect values ​​corresponding to each of the multiple first candidate models, and use the first candidate model corresponding to the maximum effect value as the target model; if the effect value is a mean square error value, determine the minimum effect value from the effect values ​​corresponding to each of the multiple first candidate models, and use the first candidate model corresponding to the minimum effect value as the target model.

[0411] In some embodiments, the first determination unit 801 is further configured to determine multiple second candidate models; determine the prediction quality values ​​corresponding to each of the multiple second candidate models based on the sample value of the first quantization parameter; perform fitting effect calculations based on the prediction quality values ​​and true reconstruction quality values ​​corresponding to each of the multiple second candidate models to obtain the effect values ​​corresponding to each of the multiple second candidate models; and select a target model from the multiple second candidate models based on the effect values ​​corresponding to each of the multiple second candidate models; and determine the target model as the second calculation model.

[0412] In some embodiments, the first determining unit 801 is further configured to determine model parameters of the first computing model.

[0413] In some embodiments, the first determination unit 801 is further configured to determine multiple groups of sample values ​​of the first quantization parameter; pre-encode the current point cloud according to the multiple groups of sample values ​​of the first quantization parameter to obtain multiple sample bit rate values; and determine the model parameters of the first computing model based on the multiple groups of sample values ​​of the first quantization parameter and the multiple sample bit rate values.

[0414] In some embodiments, the first determining unit 801 is further configured to determine model parameters of the second computing model.

[0415] In some embodiments, the first determination unit 801 is further configured to determine multiple groups of sample values ​​of the first quantization parameter; pre-encode the current point cloud according to the multiple groups of sample values ​​of the first quantization parameter to obtain multiple sample reconstruction quality values; and determine the model parameters of the second computing model based on the multiple groups of sample values ​​of the first quantization parameter and the multiple sample reconstruction quality values.

[0416] In some embodiments, referring to FIG8 , the encoder 80 may further include a first grouping unit 804, configured to divide the current point cloud into N groups when the first quantization parameter is a quantization parameter within a geometric ring; wherein N is a positive integer; and based on each of the N groups, when the first quantization parameter of each group enables a target setting mode, determine the first eigenvalue corresponding to each group; and determine the value of the first quantization parameter corresponding to each of the N groups based on the first eigenvalue corresponding to each group.

[0417] In some embodiments, the first determination unit 801 is further configured to determine a sub-prediction tree corresponding to each group; and perform a cumulative operation based on the distance between each node and the previous node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0418] In some embodiments, the first determination unit 801 is further configured to determine a sub-prediction tree corresponding to each group; and perform accumulation operation based on the absolute value of the prediction residual of each node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0419] In some embodiments, the encoding unit 803 is further configured to encode the number N of groups of the current point cloud and write the obtained encoding bits into the bitstream.

[0420] In some embodiments, the encoding unit 803 is further configured to encode the values ​​of the first quantization parameters corresponding to each of the N groups, and write the obtained coded bits into the bitstream.

[0421] In some embodiments, the first grouping unit 804 is further configured to determine a prediction residual value of a node to be processed in the current point cloud; determine a value of a first quantization parameter corresponding to the node to be processed based on a mapping relationship between the node to be processed and the N groups; and quantize the prediction residual value of the node to be processed based on the value of the first quantization parameter to determine a quantized residual value of the node to be processed;

[0422] The encoding unit 803 is further configured to encode the quantized residual value of the node to be processed, and write the obtained coded bits into the bitstream.

[0423] In some embodiments, the first determining unit 801 is further configured to determine a predicted value of a node to be processed;

[0424] The first calculation unit 802 is further configured to perform a subtraction operation based on the true value of the node to be processed and the predicted value of the node to be processed to obtain a prediction residual value of the node to be processed.

[0425] It is understandable that in the embodiments of the present application, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the various components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional modules.

[0426] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0427] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 80. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the method described in any one of the aforementioned embodiments.

[0428] Based on the composition of the encoder 80 and the computer-readable storage medium, refer to Figure 9, which shows a specific hardware structure diagram of the encoder 80 provided in an embodiment of the present application. As shown in Figure 9, the encoder 80 may include: a first communication interface 901, a first memory 902 and a first processor 903; each component is coupled together through a first bus system 904. It can be understood that the first bus system 904 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 904 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the first bus system 904 in Figure 9. Among them,

[0429] The first communication interface 901 is used to receive and send signals during the process of sending and receiving information with other external network elements;

[0430] A first memory 902 is used to store computer programs that can be run on the first processor 903;

[0431] The first processor 903 is configured to, when running the computer program, execute:

[0432] When a target setting mode is enabled for a first quantization parameter of the current point cloud, determining a first eigenvalue based on the current point cloud;

[0433] A value of a first quantization parameter is determined according to the first eigenvalue.

[0434] It is understood that the first memory 902 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The first memory 902 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0435] The first processor 903 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the first processor 903. The above-mentioned first processor 903 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 902 , and the first processor 903 reads the information in the first memory 902 and completes the steps of the above method in combination with its hardware.

[0436] It is to be understood that these embodiments described in the present application can be implemented with hardware, software, firmware, middleware, microcode or its combination.For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing functions described in the present application or its combination.For software implementation, the technology described in the present application can be realized by the module (such as process, function etc.) that performs functions described in the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0437] Optionally, as another embodiment, the first processor 903 is further configured to execute the method described in any one of the aforementioned embodiments when running the computer program.

[0438] This embodiment provides an encoder. For this encoder, the quantization parameters are adaptively set according to the first eigenvalue of the current point cloud. This not only avoids the tedious operation of setting multiple groups of quantization parameter values ​​based on experience to search for and select the optimal quantization parameters, but also through the adaptive adjustment of the quantization parameters, it can also improve the reconstruction quality of the point cloud under the condition of a limited bit rate, thereby improving the encoding and decoding performance of the point cloud.

[0439] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see Figure 10, which shows a schematic diagram of the structure of a decoder provided by the embodiment of the present application. As shown in Figure 10, the decoder 100 may include: a decoding unit 1001, a second determining unit 1002 and a second calculating unit 1003; wherein,

[0440] The decoding unit 1001 is configured to decode the code stream and determine the value of the preset identification information;

[0441] The second determining unit 1002 is configured to determine a first eigenvalue according to the current point cloud when the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode;

[0442] The second calculation unit 1003 is configured to determine a value of the first quantization parameter according to the first eigenvalue.

[0443] In some embodiments, the decoding unit 1001 is further configured to decode the code stream and determine a value of the first quantization parameter.

[0444] In some embodiments, the second determining unit 1002 is further configured to determine a prediction tree corresponding to the current point cloud; and determine a first eigenvalue based on a distance between each node and a previous node in the prediction tree.

[0445] In some embodiments, the second calculation unit 1003 is further configured to traverse the prediction tree, accumulate the distance between each node and the previous node in the prediction tree, obtain a first accumulated value, and use the first accumulated value as the first eigenvalue.

[0446] In some embodiments, the second determining unit 1002 is further configured to determine a prediction tree corresponding to the current point cloud; and determine the first eigenvalue based on the absolute value of the prediction residual of each node in the prediction tree.

[0447] In some embodiments, the second calculation unit 1003 is further configured to traverse the prediction tree, accumulate the absolute value of the prediction residual of each node in the prediction tree, obtain a second accumulated value, and use the second accumulated value as the first eigenvalue.

[0448] In some embodiments, the decoding unit 1001 is further configured to decode the code stream and determine the absolute value of the prediction residual of each node in the prediction tree.

[0449] In some embodiments, the second determination unit 1002 is further configured to determine a reference eigenvalue of the current point cloud; determine a feature comparison value based on the first eigenvalue and the reference eigenvalue; and determine a value of the first quantization parameter based on the feature comparison value, a preset weight value, and a basic value of the first quantization parameter.

[0450] In some embodiments, the reference characteristic value is a preset constant value.

[0451] In some embodiments, the second determination unit 1002 is further configured to determine a preset reference range of the current point cloud; determine at least two second eigenvalues ​​based on the preset reference range; and calculate the mean of the at least two second eigenvalues ​​to obtain a reference eigenvalue.

[0452] In some embodiments, the base value of the first quantization parameter is a preset constant value.

[0453] In some embodiments, the second determination unit 1002 is further configured to determine a preset calculation model; and determine a base value of the first quantization parameter based on the target parameters of the current point cloud and the preset calculation model; wherein the preset calculation model is used to indicate a mapping relationship between the target parameter and the first quantization parameter, and the target parameter includes bit rate and / or reconstruction quality.

[0454] In some embodiments, the second determining unit 1002 is further configured to determine the first adjustment value according to the feature comparison value and the preset weight value;

[0455] The second calculation unit 1003 is further configured to perform an addition operation according to the first adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0456] In some embodiments, the second determining unit 1002 is further configured to determine a second adjustment value based on the feature comparison value and a preset weight value;

[0457] The second calculation unit 1003 is further configured to perform a multiplication calculation according to the second adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

[0458] In some embodiments, the first quantization parameter includes at least one of the following: a geometric inner loop quantization parameter, a geometric outer loop quantization parameter, and an attribute quantization parameter.

[0459] In some embodiments, the second determination unit 1002 is further configured to, if the value of the preset identification information is a first value, determine that the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode; if the value of the preset identification information is a second value, determine that the preset identification information indicates that the first quantization parameter of the current point cloud does not enable the target setting mode.

[0460] In some embodiments, the decoding unit 1001 is further configured to decode the code stream and determine the value of the first quantization parameter when the preset identification information indicates that the target setting mode is not enabled for the first quantization parameter of the current point cloud.

[0461] In some embodiments, referring to FIG10 , the decoder 100 may further include a second grouping unit 1004, configured to divide the current point cloud into N groups when the first quantization parameter is a quantization parameter within a geometric ring; wherein N is a positive integer; based on each of the N groups, when the preset identification information indicates that the first quantization parameter of each group enables a target setting mode, determine the first eigenvalue corresponding to each group; and determine the value of the first quantization parameter corresponding to each of the N groups based on the first eigenvalue corresponding to each group.

[0462] In some embodiments, the second determination unit 1002 is further configured to determine a sub-prediction tree corresponding to each group; and perform a cumulative operation based on the distance between each node and the previous node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0463] In some embodiments, the second determination unit 1002 is further configured to determine a sub-prediction tree corresponding to each group; and perform a cumulative operation based on the absolute value of the prediction residual of each node in the sub-prediction tree to determine the first eigenvalue corresponding to each group.

[0464] In some embodiments, the decoding unit 1001 is further configured to decode the code stream and determine the number N of groups of the current point cloud.

[0465] In some embodiments, the decoding unit 1001 is further configured to decode the code stream and determine the value of the first quantization parameter corresponding to each of the N groups.

[0466] In some embodiments, the decoding unit 1001 is further configured to decode the code stream and determine the prediction residual value of the node to be processed in the current point cloud;

[0467] The second grouping unit 1004 is further configured to determine the value of the first quantization parameter corresponding to the node to be processed based on the mapping relationship between the node to be processed and the N groups; perform inverse quantization processing on the predicted residual value of the node to be processed based on the value of the first quantization parameter to determine the inverse quantization residual value of the node to be processed; and determine the reconstructed value of the node to be processed based on the inverse quantization residual value of the node to be processed.

[0468] In some embodiments, the second determining unit 1002 is further configured to determine a predicted value of the node to be processed;

[0469] The second calculation unit 1003 is further configured to perform an addition operation according to the inverse quantized residual value of the node to be processed and the predicted value of the node to be processed to obtain a reconstructed value of the node to be processed.

[0470] In some embodiments, the second determination unit 1002 is further configured to obtain the reconstructed value of the previous node of the node to be processed according to a preset traversal order; and use the reconstructed value of the previous node as the predicted value of the node to be processed; or, is further configured to obtain the reconstructed value of the previous node of the node to be processed and the reconstructed values ​​of the previous two nodes according to a preset traversal order; and determine the predicted value of the node to be processed based on the reconstructed value of the previous node and the reconstructed values ​​of the previous two nodes.

[0471] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.

[0472] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this embodiment provides a computer-readable storage medium, which is applied to the decoder 100 and stores a computer program. When the computer program is executed by the second processor, it implements any of the methods in the aforementioned embodiments.

[0473] Based on the composition of the decoder 100 and the computer-readable storage medium, refer to Figure 11, which shows a specific hardware structure diagram of the decoder 100 provided in an embodiment of the present application. As shown in Figure 11, the decoder 220 may include: a second communication interface 1101, a second memory 1102 and a second processor 1103; each component is coupled together through a second bus system 1104. It can be understood that the second bus system 1104 is used to achieve connection and communication between these components. In addition to the data bus, the second bus system 1104 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the second bus system 1104 in Figure 11. Among them,

[0474] The second communication interface 1101 is used for sending and receiving signals during the process of sending and receiving information between other external network elements;

[0475] The second memory 1102 is used to store computer programs that can be run on the second processor 1103;

[0476] The second processor 1103 is configured to, when running the computer program, execute:

[0477] Decode the code stream and determine the value of the preset identification information;

[0478] When the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode, determining a first eigenvalue according to the current point cloud;

[0479] A value of a first quantization parameter is determined according to the first eigenvalue.

[0480] Optionally, as another embodiment, the second processor 1103 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.

[0481] It can be understood that the hardware functions of the second memory 1102 and the first memory 902 are similar, and the hardware functions of the second processor 1103 and the first processor 903 are similar; they are not described in detail here.

[0482] This embodiment provides a decoder. For this decoder, the decoding end can determine whether the current point cloud needs to enable the target setting mode only through a preset identification information; only when the target setting mode is enabled, the decoding end will adaptively set the quantization parameter according to the first eigenvalue of the current point cloud. This not only avoids the tedious operation of setting multiple sets of quantization parameter values ​​based on experience to search for and select the optimal quantization parameter, but also through the adaptive adjustment of the quantization parameter, it can also improve the reconstruction quality of the point cloud under the condition of a limited bit rate, thereby improving the decoding performance of the point cloud.

[0483] In yet another embodiment of the present application, referring to FIG12 , a schematic diagram of the structure of a coding and decoding system provided in an embodiment of the present application is shown. As shown in FIG12 , the coding and decoding system 120 may include an encoder 1201 and a decoder 1202 .

[0484] In the embodiment of the present application, the encoder 1201 may be the encoder described in any one of the aforementioned embodiments, and the decoder 1202 may be the decoder described in any one of the aforementioned embodiments.

[0485] It should be noted that, in this application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0486] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0487] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0488] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0489] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0490] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims. Industrial Applicability

[0491] In an embodiment of the present application, at the encoding end, when the target setting mode is enabled for the first quantization parameter of the current point cloud, the first eigenvalue is determined based on the current point cloud; and then, based on the first eigenvalue, the value of the first quantization parameter is determined. At the decoding end, the code stream is first decoded to determine the value of the preset identification information; then, when the preset identification information indicates that the target setting mode is enabled for the first quantization parameter of the current point cloud, the first eigenvalue is determined based on the current point cloud; and then, based on the first eigenvalue, the value of the first quantization parameter is determined. In this way, the decoding end can determine whether the current point cloud needs to enable the target setting mode only through a preset identification information; only when the target setting mode is enabled, the decoding end can adaptively set the quantization parameter based on the first eigenvalue of the current point cloud. This not only avoids the tedious operation of searching for the optimal quantization parameter by setting multiple sets of quantization parameter values ​​based on experience, but also, through the adaptive adjustment of the quantization parameter, it can improve the reconstruction quality of the point cloud under the condition of a limited bit rate, thereby improving the encoding and decoding performance of the point cloud.

Claims

1. A decoding method, applied to a decoder, the method include: Decode the code stream to determine the value of the preset identification information; When the preset identification information indicates that the first quantization parameter of the current point cloud enables the target setting mode, determining a first eigenvalue according to the current point cloud; A value of the first quantization parameter is determined according to the first eigenvalue.

2. The method according to claim 1, in, The method further comprises: Decode the bitstream and determine the value of the first quantization parameter.

3. The method according to claim 1, in, The determining a first eigenvalue according to the current point cloud comprises: Determine a prediction tree corresponding to the current point cloud; The first eigenvalue is determined based on the distance between each node and the previous node in the prediction tree.

4. The method according to claim 3, in, The determining the first feature value based on the distance between each node and the previous node in the prediction tree structure includes: The prediction tree is traversed, and a distance between each node in the prediction tree and a previous node is accumulated to obtain a first accumulated value, and the first accumulated value is used as the first characteristic value.

5. The method according to claim 1, in, The determining a first eigenvalue according to the current point cloud comprises: Determine a prediction tree corresponding to the current point cloud; The first eigenvalue is determined based on the absolute value of the prediction residual of each node in the prediction tree.

6. The method according to claim 5, in, The determining the first eigenvalue based on the absolute value of the prediction residual of each node in the prediction tree includes: The prediction tree is traversed, and the absolute value of the prediction residual of each node in the prediction tree is accumulated to obtain a second accumulated value, and the second accumulated value is used as the first eigenvalue.

7. The method according to claim 5, in, The method further comprises: The code stream is decoded to determine the absolute value of the prediction residual of each node in the prediction tree.

8. The method according to claim 1, in, The determining, according to the first characteristic value, a value of the first quantization parameter includes: Determining a reference eigenvalue of the current point cloud; Determining a feature comparison value according to the first feature value and the reference feature value; The value of the first quantization parameter is determined according to the feature comparison value, the preset weight value and the basic value of the first quantization parameter.

9. The method according to claim 8, in, The reference characteristic value is a preset constant value.

10. The method according to claim 8, in, The determining of the reference feature value of the current point cloud comprises: Determining a preset reference range of the current point cloud; Based on the preset reference range, determining at least two second characteristic values; A mean value is calculated for the at least two second eigenvalues ​​to obtain the reference eigenvalue.

11. The method according to claim 8, in, The basic value of the first quantization parameter is a preset constant value.

12. The method according to claim 8, in, The method further comprises: Determine the preset calculation model; Determine a base value of the first quantization parameter according to the target parameter of the current point cloud and the preset calculation model; wherein the preset calculation model is used to indicate a mapping relationship between the target parameter and the first quantization parameter, and the target parameter includes a bit rate and / or a reconstruction quality.

13. The method according to claim 8, in, The determining the value of the first quantization parameter according to the feature comparison value, the preset weight value and the basic value of the first quantization parameter includes: Determining a first adjustment value according to the feature comparison value and the preset weight value; An addition operation is performed according to the first adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

14. The method according to claim 8, in, The determining the value of the first quantization parameter according to the feature comparison value, the preset weight value and the basic value of the first quantization parameter includes: Determining a second adjustment value according to the feature comparison value and the preset weight value; A multiplication calculation is performed according to the second adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

15. The method according to claim 1, in, The first quantization parameter includes at least one of the following: The quantization parameters inside the geometric loop, the quantization parameters outside the geometric loop and the attribute quantization parameters.

16. The method according to any one of claims 1 to 15, in, The method further comprises: If the value of the preset identification information is the first value, determining that the preset identification information indicates that the first quantization parameter of the current point cloud enables a target setting mode; If the value of the preset identification information is the second value, it is determined that the preset identification information indicates that the first quantization parameter of the current point cloud does not enable the target setting mode.

17. The method according to claim 16, in, The method further comprises: When the preset identification information indicates that the target setting mode is not enabled for the first quantization parameter of the current point cloud, the bitstream is decoded to determine a value of the first quantization parameter.

18. The method according to any one of claims 1 to 15, in, When the first quantization parameter is a quantization parameter within a geometric loop, the method further includes: Divide the current point cloud to determine N groups, where N is a positive integer; Based on each of the N groups, when the preset identification information indicates that the first quantization parameter of each group enables the target setting mode, determining a first characteristic value corresponding to each group; According to the first characteristic value corresponding to each group, the value of the first quantization parameter corresponding to each of the N groups is determined.

19. The method according to claim 18, in, The determining the first characteristic value corresponding to each group includes: Determine the sub-prediction tree corresponding to each group; Based on the distance between each node in the sub-prediction tree and the previous node, a cumulative operation is performed to determine the first eigenvalue corresponding to each group.

20. The method according to claim 18, in, The determining the first characteristic value corresponding to each group includes: Determine the sub-prediction tree corresponding to each group; The first eigenvalue corresponding to each group is determined by performing a cumulative operation based on the absolute value of the prediction residual of each node in the sub-prediction tree.

21. The method according to claim 18, in, The method further comprises: The code stream is decoded to determine the number N of groups of the current point cloud.

22. The method according to claim 18, in, The method further comprises: Decode the code stream to determine the value of the first quantization parameter corresponding to each of the N groups.

23. The method according to claim 18, in, The method further comprises: Decoding the code stream to determine the prediction residual value of the node to be processed in the current point cloud; Determine, according to a mapping relationship between the node to be processed and the N groups, a value of the first quantization parameter corresponding to the node to be processed; De-quantizing the prediction residual value of the node to be processed according to the value of the first quantization parameter to determine the de-quantized residual value of the node to be processed; Determine a reconstruction value of the node to be processed according to the inverse quantization residual value of the node to be processed.

24. The method according to claim 23, in, Determining the reconstruction value of the node to be processed according to the inverse quantization residual value of the node to be processed includes: Determining the predicted value of the node to be processed; An addition operation is performed according to the dequantized residual value of the node to be processed and the predicted value of the node to be processed to obtain a reconstructed value of the node to be processed.

25. The method according to claim 24, in, The step of determining the predicted value of the node to be processed includes: According to a preset traversal order, obtaining a reconstruction value of a previous node of the node to be processed; Using the reconstructed value of the previous node as the predicted value of the node to be processed; or, According to a preset traversal order, obtaining the reconstruction value of the previous node and the reconstruction values ​​of the previous two nodes of the node to be processed; The predicted value of the node to be processed is determined according to the reconstructed value of the previous node and the reconstructed values ​​of the first two nodes.

26. A coding method, applied to an encoder, the method include: When a first quantization parameter of a current point cloud enables a target setting mode, determining a first eigenvalue according to the current point cloud; A value of the first quantization parameter is determined according to the first eigenvalue.

27. The method according to claim 26, in, The method further comprises: Determine a value of preset identification information, wherein the preset identification information is used to indicate whether a target setting mode is enabled for a first quantization parameter of the current point cloud; The value of the preset identification information is encoded, and the obtained encoded bits are written into the bit stream.

28. The method according to claim 27, in, The determining of the value of the preset identification information includes: If the first quantization parameter of the current point cloud enables the target setting mode, determining that the value of the preset identification information is a first value; If the first quantization parameter of the current point cloud does not enable the target setting mode, the value of the preset identification information is determined to be a second value.

29. The method according to claim 26, in, The determining a first eigenvalue according to the current point cloud comprises: Determine a prediction tree corresponding to the current point cloud; The first eigenvalue is determined based on the distance between each node and the previous node in the prediction tree.

30. The method according to claim 29, in, The determining the first feature value based on the distance between each node and the previous node in the prediction tree structure includes: The prediction tree is traversed, and a distance between each node in the prediction tree and a previous node is accumulated to obtain a first accumulated value, and the first accumulated value is used as the first characteristic value.

31. The method according to claim 26, in, The determining a first eigenvalue according to the current point cloud comprises: Determine a prediction tree corresponding to the current point cloud; The first eigenvalue is determined based on the absolute value of the prediction residual of each node in the prediction tree.

32. The method according to claim 31, in, The determining the first eigenvalue based on the absolute value of the prediction residual of each node in the prediction tree includes: The prediction tree is traversed, and the absolute value of the prediction residual of each node in the prediction tree is accumulated to obtain a second accumulated value, and the second accumulated value is used as the first eigenvalue.

33. The method according to claim 31, in, The method further comprises: Determining a predicted value for each node in the prediction tree; Determining a prediction residual value of each node in the prediction tree based on the true value of each node in the prediction tree and the predicted value of each node in the prediction tree; An absolute value operation is performed on the prediction residual value of each node in the prediction tree to obtain the prediction residual absolute value of each node in the prediction tree.

34. The method according to claim 33, in, The method further comprises: The absolute value of the prediction residual of each node in the prediction tree is encoded, and the obtained encoding bits are written into the bit stream.

35. The method according to claim 33, in, Determining the predicted value of each node in the prediction tree includes: Determine, according to a preset traversal order, a reference point set corresponding to each node in the prediction tree; Each node is predicted respectively according to the reference point set to determine the predicted value of each node.

36. The method according to claim 33, in, Determining the predicted value of each node in the prediction tree includes: Determine the reconstruction value of the previous node of each node in the prediction tree according to a preset traversal order; Using the reconstructed value of the previous node as the predicted value of each node; or, Determine, according to a preset traversal order, a reconstruction value of a previous node and reconstruction values ​​of the previous two nodes of each node in the prediction tree; The predicted value of each node is determined according to the reconstructed value of the previous node and the reconstructed values ​​of the first two nodes.

37. The method according to claim 26, in, The determining, according to the first characteristic value, a value of the first quantization parameter includes: Determining a reference eigenvalue of the current point cloud; Determining a feature comparison value according to the first feature value and the reference feature value; The value of the first quantization parameter is determined according to the feature comparison value, the preset weight value and the basic value of the first quantization parameter.

38. The method according to claim 37, in, The reference characteristic value is a preset constant value.

39. The method according to claim 37, in, The determining of the reference feature value of the current point cloud comprises: Determining a preset reference range of the current point cloud; Based on the preset reference range, determining at least two second characteristic values; A mean value is calculated for the at least two second eigenvalues ​​to obtain the reference eigenvalue.

40. The method according to claim 37, in, The basic value of the first quantization parameter is a preset constant value.

41. The method according to claim 37, in, The method further comprises: Determine the preset calculation model; Determine a base value of the first quantization parameter according to the target parameter of the current point cloud and the preset calculation model; wherein the preset calculation model is used to indicate a mapping relationship between the target parameter and the first quantization parameter, and the target parameter includes a bit rate and / or a reconstruction quality.

42. The method according to claim 37, in, The determining the value of the first quantization parameter according to the feature comparison value, the preset weight value and the basic value of the first quantization parameter includes: Determining a first adjustment value according to the feature comparison value and the preset weight value; An addition operation is performed according to the first adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

43. The method according to claim 37, in, The determining the value of the first quantization parameter according to the feature comparison value, the preset weight value and the basic value of the first quantization parameter includes: Determining a second adjustment value according to the feature comparison value and the preset weight value; A multiplication calculation is performed according to the second adjustment value and the base value of the first quantization parameter to obtain a value of the first quantization parameter.

44. The method according to claim 26, in, The first quantization parameter includes at least one of the following: The quantization parameters inside the geometric loop, the quantization parameters outside the geometric loop and the attribute quantization parameters.

45. The method according to any one of claims 26 to 44, in, When the first quantization parameter of the current point cloud does not enable the target setting mode, the method further includes: Determining a value of the first quantization parameter; The value of the first quantization parameter is encoded, and the obtained encoding bits are written into a bit stream.

46. ​​The method according to claim 45, in, The determining a value of the first quantization parameter includes: determining a first calculation model; Determining a value of the first quantization parameter according to a bit rate of the current point cloud and the first calculation model; The first calculation model is used to indicate a mapping relationship between a bit rate and a first quantization parameter.

47. The method according to claim 45, in, The determining a value of the first quantization parameter includes: determining a second calculation model; Determining a value of the first quantization parameter according to the reconstruction quality of the current point cloud and the second calculation model; The second calculation model is used to indicate a mapping relationship between the reconstruction quality and the first quantization parameter.

48. The method according to claim 45, in, The determining a value of the first quantization parameter includes: Determining a first calculation model and a second calculation model; Performing optimal solution calculation according to the first calculation model and the second calculation model to determine a value of the first quantization parameter; The first calculation model is used to indicate the mapping relationship between the bit rate and the first quantization parameter, and the second calculation model is used to indicate the mapping relationship between the reconstruction quality and the first quantization parameter.

49. The method according to claim 46 or 48, in, The method further comprises: determining a plurality of first candidate models; Determining predicted bit rate values ​​corresponding to each of the plurality of first candidate models based on the sample value of the first quantization parameter; Perform fitting effect calculation according to the predicted bit rate values ​​and the actual bit rate values ​​corresponding to the multiple first candidate models, to obtain the effect values ​​corresponding to the multiple first candidate models; Selecting a target model from the plurality of first candidate models according to the effect values ​​corresponding to the plurality of first candidate models respectively; The target model is determined as the first calculation model.

50. The method according to claim 49, in, The effect value at least includes: a goodness of fit value or a mean square error value; The step of selecting a target model from the plurality of first candidate models according to the effect values ​​corresponding to the plurality of first candidate models respectively comprises: If the effect value is a fitness value, determining a maximum effect value from the effect values ​​corresponding to the plurality of first candidate models, and using the first candidate model corresponding to the maximum effect value as the target model; If the effect value is a mean square error value, a minimum effect value is determined from the effect values ​​corresponding to the multiple first candidate models, and the first candidate model corresponding to the minimum effect value is used as the target model.

51. The method according to claim 47 or 48, in, The method further comprises: determining a plurality of second candidate models; Determining, based on the sample value of the first quantization parameter, a prediction quality value corresponding to each of the plurality of second candidate models; Perform fitting effect calculation according to the prediction quality values ​​and the true reconstruction quality values ​​corresponding to the plurality of second candidate models, to obtain the effect values ​​corresponding to the plurality of second candidate models; Selecting a target model from the plurality of second candidate models according to the effect values ​​corresponding to the plurality of second candidate models respectively; The target model is determined as the second calculation model.

52. The method according to claim 46 or 48, in, The determining of the first computing model comprises: Model parameters of the first computational model are determined.

53. The method according to claim 52, in, The determining of the model parameters of the first computing model includes: determining a plurality of groups of sample values ​​of the first quantization parameter; Pre-encoding the current point cloud according to the multiple groups of sample values ​​of the first quantization parameter to obtain multiple sample bit rate values; Model parameters of the first calculation model are determined according to the multiple groups of sample values ​​of the first quantization parameter and the multiple sample bit rate values.

54. The method according to claim 47 or 48, in, The determining of the second calculation model comprises: Model parameters of the second computational model are determined.

55. The method according to claim 54, in, The determining of the model parameters of the first computing model includes: determining a plurality of groups of sample values ​​of the first quantization parameter; Pre-encoding the current point cloud according to the multiple groups of sample values ​​of the first quantization parameter to obtain multiple sample reconstruction quality values; Model parameters of the second calculation model are determined according to the multiple groups of sample values ​​of the first quantization parameter and the multiple sample reconstruction quality values.

56. The method according to any one of claims 26 to 44, in, When the first quantization parameter is a quantization parameter within a geometric loop, the method further includes: Divide the current point cloud to determine N groups, where N is a positive integer; Based on each of the N groups, when a first quantization parameter of each group enables a target setting mode, determining a first characteristic value corresponding to each group; According to the first characteristic value corresponding to each group, the value of the first quantization parameter corresponding to each of the N groups is determined.

57. The method according to claim 56, in, The determining the first characteristic value corresponding to each group includes: Determine the sub-prediction tree corresponding to each group; Based on the distance between each node in the sub-prediction tree and the previous node, a cumulative operation is performed to determine the first eigenvalue corresponding to each group.

58. The method according to claim 56, in, The determining the first characteristic value corresponding to each group includes: Determine the sub-prediction tree corresponding to each group; The first eigenvalue corresponding to each group is determined by performing a cumulative operation based on the absolute value of the prediction residual of each node in the sub-prediction tree.

59. The method according to claim 56, in, The method further comprises: The number N of groups of the current point cloud is encoded, and the obtained encoding bits are written into a bit stream.

60. The method according to claim 56, in, The method further comprises: The values ​​of the first quantization parameters corresponding to each of the N groups are encoded, and the obtained encoding bits are written into a bit stream.

61. The method according to claim 56, in, The method further comprises: Determining a prediction residual value of a node to be processed in the current point cloud; Determine, according to a mapping relationship between the node to be processed and the N groups, a value of the first quantization parameter corresponding to the node to be processed; Quantizing the prediction residual value of the node to be processed according to the value of the first quantization parameter to determine the quantized residual value of the node to be processed; The quantized residual value of the node to be processed is encoded, and the obtained encoded bits are written into a bit stream.

62. The method according to claim 61, in, The step of determining the prediction residual value of the node to be processed in the current point cloud comprises: Determining the predicted value of the node to be processed; A subtraction operation is performed according to the true value of the node to be processed and the predicted value of the node to be processed to obtain the predicted residual value of the node to be processed.

63. A code stream, in, The code stream is generated by bit encoding according to the information to be encoded; wherein the information to be encoded includes at least one of the following: The value of the preset identification information, the value of the first quantization parameter, the absolute value of the prediction residual, the number of groups N, and the value of the first quantization parameter corresponding to each of the N groups; wherein N is a positive integer.

64. An encoder, comprising a first determination unit and a first calculation unit; in, The first determination unit is configured to determine a first eigenvalue according to the current point cloud when a first quantization parameter of the current point cloud enables a target setting mode; The first calculation unit is configured to determine a value of the first quantization parameter according to the first eigenvalue.

65. An encoder comprising a first memory and a first processor; in, The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 26 to 62 when running the computer program.

66. A decoder, the decoder comprising a decoding unit, a second determining unit and a second calculating unit; in, The decoding unit is configured to decode the code stream and determine the value of the preset identification information; The second determining unit is configured to determine a first eigenvalue according to the current point cloud when the preset identification information indicates that the first quantization parameter of the current point cloud enables a target setting mode; The second calculation unit is configured to determine a value of the first quantization parameter according to the first eigenvalue.

67. A decoder comprising a second memory and a second processor; in, The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 1 to 25 when running the computer program.

68. A computer readable storage medium, in, The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 25 is implemented, or the method according to any one of claims 26 to 62 is implemented.

Citation Information

Patent Citations

  • Feature extraction-based adaptive three-dimensional point cloud compression method

    CN111866518A

  • Coding and decoding method, device and system for lossy compression of point cloud

    CN113284248A

  • Point cloud coding method, point cloud decoding method and related equipment

    CN115102935A

  • Haar-based point cloud coding method and device

    CN115336243A

  • Method and apparatus for point cloud compression

    US20210004991A1