Method and apparatus for decoding point cloud data, method and apparatus for encoding point cloud data, and storage medium and device
Through the adaptive encoding and decoding method, the target decoding parameters are determined based on the signal characteristics of point cloud data blocks, which solves the problem of low decoding efficiency of point cloud data and achieves more efficient data transmission and decoding.
Patent Information
- Application Number
- PCT/CN2023/106256
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-19
- Filing Date
- 2023-07-07
- Publication Date
- 2024-09-12
AI Technical Summary
The decoding efficiency of point cloud data is low, which causes the decoding device to take a long time to receive and decode the code stream of the data block, affecting the transmission efficiency.
A method for decoding point cloud data is provided. By obtaining the encoded data of the data block to be processed, the target decoding parameters are determined based on its signal characteristics, adaptive encoding and decoding are performed, the redundancy of the encoded data is reduced, and the decoding efficiency is improved.
Through adaptive encoding and decoding, the encoded data length of point cloud data blocks is reduced, the transmission and decoding efficiency is improved, and the reception pressure on network transmission and decoding equipment is reduced.
Smart Images

Figure CN2023106256_12092024_PF_FP_ABST
Abstract
Description
Point cloud data decoding method, encoding method, device, storage medium and equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 19, 2022, application number 202211003838.7, and application name “Decoding method, encoding method, device, storage medium and equipment for point cloud data”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of data processing technology, and in particular to a point cloud data encoding and decoding technology. Background Art
[0003] Point cloud data refers to a massive collection of points obtained by scanning the surface properties of an object. A point or group of points in a point cloud is called a data block. Typically, each data block in a point cloud includes multiple attributes, such as the object's geometry, color, and reflectivity. Furthermore, the number of data blocks in a point cloud is relatively large, so the amount of data contained in point cloud data is enormous. Therefore, it is necessary to encode the multiple attributes of the data blocks in the point cloud data into a bitstream. Transmitting this bitstream can improve the transmission efficiency of point cloud data.
[0004] However, in the process of decoding the code stream of the data block in the point cloud data at the decoding end, there is a problem that the data volume of the code stream of the data block is large. The decoding device needs to spend a long time to receive and decode the code stream of the data block, resulting in low decoding efficiency.
[0005] Summary of the Invention
[0006] The technical problem to be solved by the embodiments of the present application is to provide a decoding method, encoding method, device, storage medium and equipment for point cloud data, which can improve the decoding efficiency of data blocks of point cloud data.
[0007] In one aspect, an embodiment of the present application provides a method for decoding point cloud data, the method being executed by a computer device and comprising:
[0008] Obtaining encoded data of a data block to be processed in the point cloud data; the encoded data of the data block to be processed is obtained by encoding a signal to be encoded in the data block to be processed according to a target encoding parameter, wherein the target encoding parameter is an encoding parameter of the data block to be processed under a non-equal-length encoding mode, and the target encoding parameter is determined based on a signal characteristic of the signal to be encoded;
[0009] Determining target decoding parameters of the data block to be processed according to the target encoding parameters;
[0010] The coded data of the data block to be processed is decoded according to the target decoding parameter to obtain a decoded signal of the data block to be processed; the decoded signal is used to reflect the media attribute of the data block to be processed.
[0011] In one aspect, an embodiment of the present application provides a method for encoding point cloud data, the method being executed by a computer device and comprising:
[0012] Acquire a signal to be encoded in a data block to be processed in the point cloud data, and a signal characteristic of the signal to be encoded; the encoding method of the point cloud data is a non-equal-length encoding method, and the signal to be encoded is used to reflect the media attribute of the data block to be processed;
[0013] determining target coding parameters of the data block to be processed under the coding mode according to signal characteristics of the signal to be coded;
[0014] The signal to be encoded is encoded according to the target encoding parameter to obtain encoded data of the data block to be processed.
[0015] In one aspect, an embodiment of the present application provides a point cloud data decoding device, which is deployed on a computer device and includes:
[0016] a first acquisition module, configured to acquire encoded data of a data block to be processed in the point cloud data; the encoded data of the data block to be processed is obtained by encoding a signal to be encoded in the data block to be processed according to a target encoding parameter, wherein the target encoding parameter is an encoding parameter of the data block to be processed under a non-equal-length encoding mode, and the target encoding parameter is determined based on a signal characteristic of the signal to be encoded;
[0017] A first determining module, configured to determine a target decoding parameter of the data block to be processed according to the target encoding parameter;
[0018] A decoding module is used to decode the coded data of the data block to be processed according to the target decoding parameters to obtain a decoded signal of the data block to be processed; the decoded signal is used to reflect the media attributes of the data block to be processed.
[0019] In one aspect, an embodiment of the present application provides a point cloud data encoding device, which is deployed on a computer device and includes:
[0020] a third acquisition module, configured to acquire a signal to be encoded in a data block to be processed in the point cloud data, and a signal characteristic of the signal to be encoded; the encoding method of the point cloud data is a non-equal-length encoding method, and the signal to be encoded is used to reflect the media attributes of the data block to be processed;
[0021] A first determining module is configured to determine target coding parameters of the data block to be processed under the coding mode according to signal characteristics of the signal to be coded;
[0022] The encoding module is used to encode the signal to be encoded according to the target encoding parameter to obtain the encoded data of the data block to be processed.
[0023] In one aspect, an embodiment of the present application provides a computer device, including: a processor and a memory;
[0024] The processor is connected to a memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.
[0025] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.
[0026] In one aspect, an embodiment of the present application provides a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method provided in the embodiment of the present application.
[0027] In an embodiment of the present application, a data block in point cloud data can be used as a data block to be processed, and the coded data of the data block to be processed is obtained by encoding the signal to be coded in the data block to be processed according to a target coding parameter. The target coding parameter is the coding parameter of the data block to be processed under the coding mode of non-equal length coding, and the target coding parameter is determined based on the signal characteristics of the signal to be coded. The coded data of the data block to be processed here refers to the number of bits used to describe the coded data of the data block to be processed, that is, the coded data of the data block to be processed refers to the length of the coded data of the data block to be processed. In other words, by adaptively determining how many codes (i.e., bits) are needed to describe the coded data of the data block to be processed based on the signal characteristics of the signal to be coded in the data block to be processed, that is, data blocks with different signal characteristics have different codes (i.e., different bits), which can effectively reduce the redundancy of the coded data of the data block to be processed, that is, it can reduce the length of the coded data of the data block to be processed, and at the same time, it can improve the transmission efficiency of the coded data of the data block to be processed. Furthermore, after the decoding device receives the encoded data of the data block to be processed, it can decode the encoded data of the data block to be processed according to the target decoding parameters to obtain the decoded signal of the data block to be processed. The target decoding parameters are determined by the above-mentioned target encoding parameters. Since the redundancy of the encoded data of the data block to be processed is relatively low, the decoded signal of the data block to be processed can be quickly decoded, thereby improving the decoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0029] FIG1 is a schematic diagram of a point cloud data processing process provided by an embodiment of the present application;
[0030] FIG2 is a flow chart of a method for encoding point cloud data provided in an embodiment of the present application;
[0031] FIG3 is a schematic diagram of a data block provided in an embodiment of the present application;
[0032] FIG4 is a schematic diagram of a data group division provided in an embodiment of the present application;
[0033] FIG5 is a schematic diagram of a method for decoding point cloud data provided in an embodiment of the present application;
[0034] FIG6 is a schematic structural diagram of a point cloud data decoding device provided in an embodiment of the present application;
[0035] FIG7 is a schematic structural diagram of a point cloud data encoding device provided in an embodiment of the present application;
[0036] FIG8 is a schematic structural diagram of a computer device provided in an embodiment of the present application;
[0037] FIG9 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0039] The present application relates to the field of cloud technology. Specifically, the present application relates to cloud computing in the field of cloud technology. Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" appear to be infinitely expandable to users, and can be obtained at any time, used on demand, and expanded at any time. The present application can encode and decode the data blocks to be processed in multiple point cloud data through cloud computing.
[0040] The embodiments of the present application relate to point cloud data processing technology. The embodiments of the present application mainly relate to point cloud data encoding and point cloud data decoding. As shown in Figure 1, Figure 1 is a schematic diagram of point cloud data processing provided by an embodiment of the present application. The point cloud data processing process can be shown in Figure 1, and can specifically include: acquisition of point cloud data 10a, preprocessing of point cloud data 10b, encoding of point cloud data 10c, quantization of point cloud data 10d, entropy encoding of point cloud data 10e, and decoding of point cloud data.
[0041] Point cloud data: Point cloud data is a set of irregularly distributed discrete points in space that express the spatial structure and surface properties of a three-dimensional object or scene. Each data block in the point cloud data has at least geometric position information (i.e., three-dimensional position information) and, depending on the application scenario, may also have color, material, or other media attribute information. Typically, each data point in the point cloud data has the same amount of media attribute information. In this application, a data point or a group of data points in the point cloud data can be referred to as a data block.
[0042] Point cloud data acquisition 10a: This refers to the acquisition of point cloud data. Methods for acquiring point cloud data include, but are not limited to, computer generation, 3D laser scanning, and 3D photogrammetry. Computers can generate point cloud data for virtual three-dimensional objects and scenes. 3D scanning can obtain point cloud data for static real-world three-dimensional objects or scenes, acquiring millions of points per second. 3D photography can obtain point cloud data for dynamic real-world three-dimensional objects or scenes, acquiring tens of millions of points per second. With the continuous accumulation of large-scale point cloud data, the efficient storage, transmission, publication, sharing, and standardization of point cloud data have become key to point cloud applications.
[0043] Preprocessing of point cloud data 10b: Preprocessing of point cloud data in 3D space, including coordinate system transformation (Transform coordinates) and voxelization (VoxeL1ze). Coordinate system transformation refers to converting the coordinate system of the points in the point cloud data into another different coordinate system (such as the world coordinate system) by scaling and translation. Voxelization refers to quantizing the coordinates of the points in the point cloud data, deleting duplicate points, and assigning attributes. All points in the same voxel are quantized to the voxel center, and the attribute combination of all points in the voxel is assigned to the voxel center, and the voxel center is determined as a new point. In this way, through scaling and translation operations, the point cloud data in 3D space is converted into integer form, and its minimum geometric position is moved to the coordinate origin.
[0044] Point cloud data encoding 10c: This refers to encoding the data blocks within the point cloud data, including both geometric and attribute encoding (as shown in Figure 1). Geometric encoding encodes the geometric position information of the points, resulting in a point geometry stream. Geometric encoding can include the following two modes: (a) Octree-based geometric encoding (Octree): An octree is a tree-like data structure that evenly divides the point cloud bounding box (i.e., the smallest cube containing all the point clouds) in 3D space, with each node having eight children. By indicating the occupancy of each child node in the octree as "1" or "0," occupancy codes are obtained, which are used as the point cloud geometry stream. (b) Triangle-based geometric encoding (Trisoup): The point cloud is divided into blocks of a certain size, and the intersection points of the point cloud surfaces at the edges of the blocks are located and triangles are constructed. The intersection points are encoded to obtain the point cloud geometry stream. Attribute encoding encodes the media attribute information of the points, resulting in a point attribute stream.
[0045] Quantization of point cloud data 10d: A lossy quantization operation is performed on the geometric and attribute bitstreams of the points, discarding some information to make the quantized bitstreams more suitable for compression. Quantization of point cloud data can include both geometric and attribute quantization. For example, geometric quantization involves quantizing the bitstream of the point cloud's geometric information, quantizing the code values within a certain range to the same code value. The degree of quantization is typically determined by the quantization parameter (QP). A larger QP value means that coefficients within a larger value range are quantized to the same output, which generally results in greater distortion and a lower bitrate. Conversely, a smaller QP value means that coefficients within a smaller value range are quantized to the same output, which generally results in less distortion and a corresponding higher bitrate. In point cloud coding, quantization is performed directly on the point coordinate information. Attribute information quantization (e.g., attribute information quantization 10d in Figure 1) involves quantizing the attribute bitstream, quantizing the code values within a certain value range to the same code value. The degree of quantization is typically determined by the quantization parameter (QP). In predictive coding, the attribute residual is quantized; in transform coding, the transform coefficients are quantized.
[0046] Entropy coding (10e) or statistical coding of point cloud data: The quantized bitstream is statistically compressed based on the frequency of occurrence of each value in the bitstream, ultimately outputting a binary (0 or 1) compressed bitstream. Entropy coding includes geometric entropy coding (e.g., geometric entropy coding 10e in Figure 1) and attribute entropy coding (e.g., attribute entropy coding 10e in Figure 1). Geometric entropy coding involves statistically compressing the bitstream of point cloud geometric information, ultimately outputting a binary (0 or 1) compressed bitstream, such as a geometric bitstream. For example, statistical compression coding is performed on the occupancy code information of an octree. Statistical coding is a lossless coding method that can effectively reduce the bitrate required to express the same signal. A commonly used statistical coding method is context-based binary arithmetic coding. Attribute entropy coding involves statistically compressing the quantized attribute residuals or transform coefficients, ultimately outputting a binary (0 or 1) compressed bitstream, such as an attribute bitstream. Run-length coding and arithmetic coding are generally used to achieve the final compression of quantized attribute residuals or transform coefficients. The corresponding coding mode, quantization parameters and other information are also encoded using entropy encoders.
[0047] Decoding of point cloud data: On the decoding end, after receiving the compressed bitstream of the point cloud data, the decoder first performs entropy decoding on the compressed code to obtain quantized geometric information and quantized attribute information. First, the geometric information is dequantized to obtain the position information of the reconstructed points. Secondly, the quantized attribute information is dequantized to obtain the attribute residual. The reference signal is then confirmed based on the adopted coding mode to obtain the reconstructed attribute information. This information is then sequentially mapped to the geometric information to produce the reconstructed point cloud data.
[0048] In the embodiment of the present application, a data block can be a data point in the above-mentioned point cloud data, or a group of data points consisting of at least two data points in the point cloud data. As shown in FIG2 , FIG2 is a flow chart of a method for encoding point cloud data provided in an embodiment of the present application. The method can be executed by a computer device, which can be an encoding device. As shown in FIG2 , the method can specifically include but is not limited to the following steps:
[0049] S101, obtaining a signal to be encoded in a data block to be processed in point cloud data, and a signal feature of the signal to be encoded.
[0050] Point cloud data is widely used in the construction of digital city maps and provides technical support for numerous popular research areas, such as smart cities, autonomous driving, and cultural heritage preservation. A computer device can use a 3D scanning device to collect data from the surface of an object to obtain point cloud data. This point cloud data includes multiple data points, where a data point can refer to a very small area on the surface of an object. The data block to be processed can be any data point in the point cloud data or a group of data points consisting of at least two data points. For example, the data block to be processed can refer to point cloud data, a macroblock in the point cloud data, or a prediction tree in the point cloud data (a tree consisting of multiple data points in the point cloud data). The point cloud data can include one or more data blocks, and the data block to be processed belongs to any one of the one or more data blocks. The computer device can obtain the signal to be encoded within the data block to be processed in the point cloud data. The number of signals to be encoded within the data block to be processed can be one or more. The signal to be encoded within the data block to be processed can be used to reflect the media attributes of the data block to be processed. The media attributes can include geometric position information, color, reflectivity, classification value, intensity value, time, material properties, and texture information. The signal to be coded may refer to a signal obtained by performing attribute prediction, attribute transformation, attribute prediction transformation, or attribute transformation prediction on a media attribute of a data block to be processed, such as a geometric prediction residual, an attribute prediction residual, or an attribute transformation coefficient. The computer device may obtain a signal characteristic of the signal to be coded, which may include a signal threshold range of the signal to be coded, a distribution characteristic of the signal to be coded, a signal value of the signal to be coded, or a signal characteristic of an associated signal associated with the signal to be coded of the data block to be processed.
[0051] Among them, the encoding method of the point cloud data can be a non-equal-length encoding method, which can include an unsigned exponential Columbus encoding method, a signed exponential Columbus encoding method, a truncated exponential Columbus encoding method, and a mapped exponential Columbus encoding method. Since the machine can only recognize 0 and 1, it is necessary to encode the signal to be encoded of the data block to be processed into a character consisting of 0 and 1. When using binary to encode the signal to be encoded of the data block to be processed, since binary encoding is an equal-length encoding, that is, different values to be encoded are recorded with the same code (i.e., bit position), a large amount of redundant information will be generated. For example, when the signal value of the signal to be encoded is 2, the encoded data obtained by using binary encoding is 00000010. The data that originally only requires 2 bits to represent now requires 8 bits to represent, so the remaining 6 bits are redundant data. When transmitted over the network, a large amount of redundancy will appear, which increases the network burden. Using a non-equal-length encoding method to encode the signal to be encoded in the data block to be processed can reduce the amount of encoded data in the data block to be processed, thereby reducing the network burden and improving the transmission efficiency of point cloud data. It can also reduce the amount of code stream data that needs to be decoded at the decoding end, thereby improving the encoding and decoding efficiency of point cloud data. For example, when the signal value of the signal to be encoded is 0, the encoded data obtained by encoding it using the 0th-order Exponential Golomb coding method is 1, which is only one bit. This can greatly reduce the number of bits and the amount of encoded data.
[0052] In one possible implementation, the signal to be encoded of the data block to be processed may refer to the one obtained by performing attribute prediction on the media attributes of the data block to be processed. The signal to be encoded of the data block to be processed includes attribute prediction residuals corresponding to M types of media attributes of the data block to be processed, that is, one type of media attribute corresponds to one attribute prediction residual. For example, when one type of media attribute of the data block to be processed is a color attribute, the signal to be encoded of the data block to be processed may refer to the attribute prediction residual corresponding to the color attribute. For example, when another type of media attribute of the data block to be processed is a reflectivity attribute, the signal to be encoded of the data block to be processed may refer to the attribute prediction residual corresponding to the reflectivity attribute. The attribute prediction residual is obtained by taking the difference between the media attributes of the data block to be processed and the predicted attributes of the data block to be processed. The predicted attributes of the data block to be processed may refer to the ones predicted based on the media attributes of the reference data block of the data block to be processed. The attribute prediction residual is the signal to be encoded of the data block to be processed. For example, when the media attribute of the data block to be processed is a color attribute, the color attribute prediction residual of the data block to be processed is obtained by taking the difference between the color attribute of a reference data block for the data block to be processed and the color attribute of the data block to be processed. The reference data block for the data block to be processed may be a data block in the point cloud data whose positional distance from the data block to be processed is less than or equal to a distance threshold.
[0053] In one possible implementation, the signal to be encoded of the data block to be processed may refer to a signal obtained by performing attribute transformation on the media attributes of the data block to be processed. The signal to be encoded of the data block to be processed may be obtained by performing attribute transformation on the media attributes of the data block to be processed using a transformation matrix. The transformation matrix is determined according to the number of data points in the data block to be processed. The computer device may obtain the corresponding transformation matrix from the transformation matrix set according to the number of data points in the data block to be processed. The computer device transforms the media attributes of the data block to be processed using the transformation matrix to obtain a first attribute transformation coefficient (i.e., a DC component coefficient) and one or more second attribute transformation coefficients (i.e., an AC component coefficient). The first attribute transformation coefficient (i.e., a DC component coefficient) and the one or more second attribute transformation coefficients (i.e., an AC component coefficient) are the signal to be encoded of the data block to be processed.
[0054] In one possible implementation, the signal to be encoded of the data block to be processed may be obtained by performing attribute prediction transformation on the media attributes of the data block to be processed. Attribute prediction transformation involves performing attribute prediction processing on the media attributes of the data block to obtain attribute prediction residuals, and then performing attribute transformation processing on the attribute prediction residuals to obtain attribute transformation coefficients for the data block to be processed. The attribute transformation coefficients for the data block to be processed serve as the signal to be encoded for the data block to be processed.
[0055] In one possible implementation, the signal to be encoded of the data block to be processed may be obtained by performing attribute transformation prediction on the media attributes of the data block to be processed. Attribute transformation prediction involves performing attribute transformation on the media attributes of the data block to obtain attribute transformation coefficients for the data block to be processed, and then performing attribute prediction on the attribute transformation coefficients to obtain an attribute prediction residual for the data block to be processed. The attribute prediction residual for the data block to be processed serves as the signal to be encoded for the data block to be processed.
[0056] The formula for attribute prediction transformation can be shown as the following formula (1): Y = AX (1)
[0057] Where X is the attribute prediction residual of the media attribute of the data block to be processed, Y is the first transform coefficient and the second transform coefficient corresponding to the media attribute of the data block to be processed, A is the K_i-element discrete cosine transform (DCT) transform matrix, and i is the number of data points contained in the data block to be processed. For example, when the number of data points in the data block to be processed is 4, the four-element DCT transform matrix is A = {{256,256,256,256}, {256,256,-256,-256}, {256,-256,-256,256}, {256,-256,256,-256}}, and when X = {-2,-3,-17,-16}, then Y = {-9728,7168,512,0}. Among them, Y(0) = -9728 is the first transform coefficient, and the other three are the second transform coefficients.
[0058] As shown in FIG3 , FIG3 is a schematic diagram of a data block provided by an embodiment of the present application. As shown in FIG3 , a computer device can use an octree partitioning method to divide the three-dimensional space formed by the point cloud data to obtain data blocks in the point cloud data. The octree partitioning method is to evenly divide the bounding box of the point cloud data (i.e., the three-dimensional space formed by the point cloud data) layer by layer to obtain an octree of the point cloud data, and each node in the octree has eight child nodes. Among them, the data block in the point cloud data can be any node in the octree, that is, the data block in the point cloud data can be a node in any layer of the octree. As shown in FIG3 , the computer device can use "1" and "0" to indicate whether each child node in the octree is occupied or not, and obtain the code stream of the geometric information corresponding to the point cloud data. That is, if a point in the point cloud data exists in the child node, it is represented by "1"; if a point in the point cloud data does not exist in the child node, it is represented by "0". As shown in Figure 3, the computer device performs a first division on the bounding box of the point cloud data, obtaining 8 first child nodes of the first layer, which are coded as 10000001. The data blocks in the point cloud data can be the 8 first child nodes of the first layer. Among them, if the first first child node contains a data point in the point cloud data, the occupancy information of the first first child node is "1", and if the second to seventh first child nodes do not contain a data point in the point cloud data, the occupancy information of the first first child node is "0", and if the eighth first child node contains a data point in the point cloud data, the occupancy information of the first first child node is "1". Similarly, the first first child node of the second layer includes 8 second child nodes, the code of the first first child node is 00011000, and the code of the eighth first child node is 10001000. Similarly, the data blocks in the point cloud data can also be the second child nodes of the second layer.
[0059] S102: Determine target coding parameters of the data block to be processed in the coding mode according to signal characteristics of the signal to be coded.
[0060] The computer device can determine the target coding parameters of the data block to be processed under the coding method based on the signal characteristics of the signal to be encoded. The target coding parameters include parameters used to indicate the length of the encoded data of the data block to be processed. For example, when the coding method is the exponential Golomb coding method, the target coding parameter can refer to an order based on the exponential Golomb coding method, such as one of order 0, order 1, order 2, etc. For example, taking the signal value of the signal to be encoded as 3 as an example, if the target coding parameter is order 0, then the target coding parameter is used to indicate that the first coding length of the encoded data of the data block to be processed is 5 bits (i.e., the encoded data of 3 is 00100); if the target coding parameter is order 1, then the target coding parameter is used to indicate that the first coding length of the encoded data of the data block to be processed is 4 bits (i.e., the encoded data of 3 is 0101); if the target coding parameter is order 2, then the target coding parameter is used to indicate that the first coding length of the encoded data of the data block to be processed is 3 bits (i.e., the encoded data of 3 is 111). Among them, the computer device can determine the target coding parameters of the data block to be processed under the coding method based on the signal characteristics of the signal to be encoded, so as to represent the coded data of the data block to be processed with the least number of codes (i.e., bits). The coded data of the data block to be processed here refers to the number of bits used to describe the coded data of the data block to be processed, that is, the coded data of the data block to be processed refers to the length of the coded data of the data block to be processed. In other words, by adaptively determining how many codes are needed to describe the coded data of the data block to be processed based on the signal characteristics of the signal to be encoded in the data block to be processed, that is, data blocks with different signal characteristics have different codes, which can effectively reduce the redundancy of the coded data of the data block to be processed, that is, can reduce the length of the coded data of the data block to be processed, and at the same time, can improve the transmission efficiency of the coded data of the data block to be processed.
[0061] In one possible implementation, a computer device can determine a target coding parameter corresponding to a data block to be processed based on the signal value of the signal to be encoded. Specifically, the computer device obtains the signal range to which the signal to be encoded belongs and, based on the signal range to which the signal to be encoded belongs, determines the target coding parameter corresponding to the data block to be processed from a signal range parameter table. The signal range parameter table includes one or more signal ranges and the coding parameters corresponding to each of the one or more signal ranges. For example, when the coding scheme is Exponential Golomb coding, a larger target coding parameter (i.e., order) can be used if the signal value of the signal to be encoded in the data block to be processed is "0," and a smaller target coding parameter can be used if the signal value of the signal to be encoded in the data block to be processed is smaller. For example, when the signal value of the signal to be encoded in the data block to be processed is "0," order 0 can be used as the target coding parameter corresponding to the data block to be processed, i.e., the signal to be encoded within the target block to be processed is encoded using the 0-order Exponential Golomb coding scheme. When the signal value of the signal to be encoded in the data block to be processed is "7," order 3 can be used as the target coding parameter for the data block to be processed. Of course, the target coding parameters corresponding to the data block to be processed can also be determined based on other signal characteristics of the signal to be encoded and the coding characteristics of the coding method. Specifically, the computer device can preset a signal range parameter table based on the signal value of the signal to be encoded and the number of codes obtained by encoding different signal values using different coding parameters of the Exponential Golomb coding method. For example, when the signal value is 0, the target coding parameter is 0, which can represent the signal value 0 with the minimum code, that is, the encoded data of the signal value 0 is 1; when the signal value is 1, the target coding parameter is 1, which can represent the signal value 1 with the minimum code, that is, the encoded data of the signal value 1 is 11; when the signal value is 2, the target coding parameter is 0 or 2, which can represent the signal value 2 with the minimum code, and when the target coding parameter is 0, the encoded data of the signal value 0 is 011; when the target coding parameter is 2, the encoded data of the signal value 0 is 110. Among them, when there are multiple target coding parameters, a parameter for encoding the data block to be processed can be randomly selected from the multiple target coding parameters, or a parameter for encoding the data block to be processed can be determined from the multiple target coding parameters based on other screening conditions (such as the coding parameters of the adjacent data blocks corresponding to the data block to be processed, or the group to which the data block to be processed belongs).
[0062] In one possible implementation, the signal characteristics of the signal to be encoded include a signal range value of the signal to be encoded; the signal range value is determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed; or, the signal range value is determined based on the sampling accuracy of the signal to be encoded in the data block to be processed.
[0063] If the signal range value is determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed, in one possible implementation, the signal range value may refer to the difference between the signal value of the maximum signal to be encoded and the signal value of the minimum signal to be encoded in the data block to be processed. For example, when the signal to be encoded of the data block to be processed is a geometric prediction residual, the signal range value may refer to the difference between the maximum geometric prediction residual and the minimum geometric prediction residual. For example, if the signal value of the maximum signal to be encoded in the data block to be processed is 6 and the signal value of the minimum signal to be encoded is 0, then the signal range value of the signal to be encoded in the data block to be processed is 6. Alternatively, the signal range value may be determined based on the sampling accuracy of the signal to be encoded in the data block to be processed. For example, if the geometric accuracy of the point cloud data is 10 bits, then the adopted accuracy of the signal to be encoded in the data block to be processed in the point cloud data may be 10 bits, and the signal range value of the signal to be encoded in the data block to be processed may be 210.
[0064] In one possible implementation, a specific method for a computer device to determine the target encoding parameters of a data block to be processed under an encoding method may include: generating an index value to be processed corresponding to the data block to be processed based on a signal range value included in a signal characteristic. Querying the encoding parameters associated with the index value to be processed from a second parameter table, the second parameter table including at least one index value and an encoding parameter associated with each of the at least one index value, i.e., one index value corresponds to one encoding parameter. The computer device may determine the encoding parameters obtained from the query as the target encoding parameters of the data block to be processed under the encoding method. The computer device may preset the second parameter table based on the signal range value, such as the computer device may preset the second parameter table based on the difference between the maximum signal to be encoded and the minimum signal to be encoded. The computer device may also preset the second parameter table based on the maximum value of the sampling accuracy of the point cloud data, such as determining the range of the index values of the second parameter table (i.e., determining the length of the second parameter table) based on the maximum sampling accuracy of the point cloud data, and determining the encoding parameters corresponding to each index value.
[0065] In one possible implementation, a specific method for a computer device to generate a to-be-processed index value corresponding to a to-be-processed data block may include: quantizing a signal range value included in a signal feature to obtain a quantized signal range value; obtaining a logarithm of the quantized signal range value; and performing a difference operation on the obtained logarithm to obtain the to-be-processed index value corresponding to the to-be-processed data block.
[0066] In one possible implementation, a computer device may obtain a quantization step size, which may be pre-set by a manager or determined based on the signal range of the signal to be encoded. Based on the quantization step size, the computer device may quantize the signal range values included in the signal characteristics of the signal to be encoded to obtain a quantized signal range value. By quantizing the signal range values, signal range values within a target range may be used to replace a target signal range value, thereby compressing the data and facilitating subsequent rapid querying of the index value to be processed corresponding to the data block to be processed. Furthermore, the computer device may obtain a logarithm of the quantized signal range value and perform a difference operation on the logarithm to obtain the index value to be processed corresponding to the data block to be processed.
[0067] The index value to be processed corresponding to the data block to be processed generated by the computer device can be obtained by the following formula (2): Index = log2B′-1 (2)
[0068] Wherein, Index is the index value to be processed corresponding to the data block to be processed, and B′ is the quantized signal range value.
[0069] After the computer device obtains the index value to be processed corresponding to the data block to be processed, it can be based on the formula GolombNum=LUT kthIndex [Index], queries the target encoding parameters corresponding to the data block to be processed from the second parameter table. Where Index is the index value to be processed corresponding to the data block to be processed, GolombNum is the target encoding parameters corresponding to the data block to be processed, and LUT indicates that the encoding parameters corresponding to the index value to be processed are queried from the second parameter table.
[0070] In one possible implementation, the point cloud data includes at least two data groups, the data block to be processed belongs to the first of the at least two data groups, and the number of index values contained in the second parameter table is the same as the number of data blocks included in the first data group. For example, if the number of data blocks in the first data group is 8, the second parameter table can be a parameter table in the parameter table set containing 8 index values. This facilitates querying the encoding parameters corresponding to each data block in the first data group from the second parameter table. The index value to be processed belongs to a range of index values to be processed, and the range of index values to be processed is determined based on at least one index value in the second parameter table. It is understood that when the number of index values is large, the multiple index values can be divided into different index value ranges, with each index value range corresponding to a parameter table. In this way, the computer device can determine the range of index values to be processed to which the index value to be processed belongs, and query the encoding parameters corresponding to the index value to be processed from the second parameter table corresponding to the range of index values to be processed. This avoids a one-to-one comparison of all index values and reduces the amount of query data. The computer device may adjust the coding parameters according to the grouping, such as adaptively adjusting the coding parameters of the data blocks in the same group, or may not adjust the coding parameters of the data blocks in the same group.
[0071] In one possible implementation, when the number of signals to be encoded is one, the computer device may determine the target coding parameters corresponding to the data block to be processed based on the signal value of the signal to be encoded. Alternatively, the computer device may determine the target coding parameters for the data block to be processed based on data blocks associated with the data block to be processed (such as adjacent data blocks or other data blocks in the data group containing the data block to be processed). In one possible implementation, when the number of signals to be encoded in the data block to be processed is multiple, the computer device may determine the target coding parameters corresponding to the data block to be processed based on the difference between the maximum and minimum signals to be encoded in the data block to be processed. Alternatively, the computer device may determine the target coding parameters corresponding to the data block to be processed based on the signal value of the maximum signal to be encoded in the data block to be processed. Alternatively, the computer device may determine the target coding parameters corresponding to the data block to be processed based on the signal mean of all signals to be encoded in the data block to be processed. Of course, the computer device may also determine the target coding parameters corresponding to the data block to be processed based on data blocks associated with the data block to be processed. Of course, the target encoding parameters corresponding to the target encoding data block can be defaulted by the encoding device that encodes the point cloud data and the decoding device that decodes the encoded data corresponding to the point cloud data, such as determined by the encoding device and the decoding device based on the historical encoding and decoding records of the point cloud data.
[0072] In one possible implementation, the computer device may determine target coding parameters corresponding to the data block to be processed by: determining initial coding parameters for the data block to be processed under a coding method based on signal characteristics of the signal to be encoded; obtaining an encoded data block adjacent to the data block to be processed in the point cloud data; and adjusting the initial coding parameters based on the encoded data of the encoded data block to obtain the target coding parameters.
[0073] Among them, the specific way in which the computer device determines the initial coding parameters can refer to the above-mentioned way of determining the coding parameters based on the signal characteristics of the signal to be encoded in the data block to be processed, and the embodiments of the present application will not be repeated here. Furthermore, the computer device can obtain an encoded data block in the point cloud data that has an adjacent relationship with the data block to be processed. Among them, the encoded data block that has an adjacent relationship with the data block to be processed can refer to an encoded data block whose position in the point cloud data is adjacent to the position of the data block to be processed. Alternatively, the encoded data block can refer to an encoded data block whose encoding order is adjacent to the encoding order of the data block to be processed. Alternatively, the encoded data block can refer to a data block in the second data group adjacent to the first data group where the data block to be processed is located, among at least two data groups included in the point cloud data. The computer device can adjust the initial coding parameters according to the encoded data of the encoded data block to obtain the target coding parameters. In this way, when the computer device determines the coding parameters based on the signal characteristics of the signal to be encoded, as the initial coding parameters corresponding to the data block to be processed, and then adjusts the initial coding parameters corresponding to the data block to be processed based on the encoded data of the encoded data block, the target coding parameters of the data block to be processed are obtained, the accuracy of the target coding parameters can be improved, so as to better achieve the representation of the encoded data of the data block to be processed with fewer codes, so as to reduce the amount of encoded data.
[0074] In one possible implementation, the encoding method may be an exponential Golomb encoding method, and the initial encoding parameter of the data block to be processed may be an initial order. A specific method for the computer device to adjust the initial encoding parameter may include: determining a final encoding value of the encoded data of the encoded data block; determining a first limiting order and a second limiting order based on the initial order, where the first limiting order is smaller than the second limiting order; obtaining a magnitude relationship between the final encoding value and the first limiting order and the second limiting order; adjusting the initial order based on the magnitude relationship to obtain a target order associated with the data block to be processed; and determining the target order as the target encoding parameter.
[0075] Specifically, the number of encoded data blocks may be one or n1. When the number of encoded data blocks is one and the number of signals to be encoded within the encoded data block is one, the final encoded value of the encoded data of the encoded data block may be the signal value corresponding to the signal to be encoded within the encoded data block. When the number of encoded data blocks is one and the number of signals to be encoded within the encoded data block is n1, the final encoded value of the encoded data of the encoded data block may be the average of the signal values corresponding to the n1 signals to be encoded within the encoded data block. When the number of encoded data blocks is n1, the final encoded value of the encoded data of the encoded data block may be the average of the encoded data of the n1 encoded data blocks. The computer device may determine a first limiting order and a second limiting order based on the initial order, wherein the first limiting order is smaller than the second limiting order. The computer device may be configured to store an encoded value buffer (buffer) having a buffer size of n1, and the final encoded value of the encoded data block is counted every n2 points. The encoded data block may be a data point in the point cloud data, and the initial order may be adjusted every n1 data points.
[0076] Typically, the first limiting order refers to the lower limit order, and the second limiting order may refer to the upper limit order. The initial order is represented by golombNum, the first limiting order is represented by golombNumLow, and the second limiting order is represented by golombNumUP. In one possible implementation, the computer device may determine the first limiting order and the second limiting order based on the initial order in the following ways, including but not limited to: Way 1: golombNumLow = 2^golombNum, golombNumUp = 2^(golombNum+1). Way 2: golombNumLow = 2^(golombNum-1), golombNumUp = 2^golombNum. Way 3: golombNumUp = 2^((golombNum-1)) + 2^((golombNum-2)); golombNumLow = 2^((golombNum-1)) - 2^((golombNum-2)). It should be noted that, in addition to the above-mentioned methods, other methods may be used to determine the first restriction order and the second restriction order according to specific circumstances, which will not be described in detail in the application examples.
[0077] The computer device can obtain the size relationship between the final coding value and the first restriction order and the second restriction order. The size relationship may include that the final coding value is less than the first restriction order, or that the final coding value is greater than the second order, or that the final coding value is greater than or equal to the first restriction order and less than or equal to the second restriction order. The computer device can adjust the initial order according to the size relationship to obtain the target order associated with the data block to be processed. The computer device can determine the target order as the target coding parameter. In this way, by adjusting the initial order, a more accurate target order can be obtained. The target order is used to encode the signal to be encoded in the data block to be processed, so that the signal to be encoded can be represented by less code, so as to reduce the amount of encoded data corresponding to the data block to be processed, thereby improving the encoding and decoding efficiency.
[0078] In one possible implementation, the specific manner in which the computer device adjusts the initial order may include, but is not limited to, the following manner: if the magnitude relationship indicates that the final code value is less than a first limiting order, the sum of the initial order and the first adjustment step is determined as the target order. If the magnitude relationship indicates that the final code value is greater than a second limiting order, the difference between the initial order and the first adjustment step is determined as the target order. If the magnitude relationship indicates that the final code value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
[0079] If the computer device determines that the size relationship indicates that the final coding value is less than the first restricted order, the computer device can determine the sum of the initial order and the first adjustment step as the target order. The first adjustment step can be determined by historical coding record information, or the first adjustment step can be determined by management personnel, etc. The first adjustment step can be a value of 1, 2, 3, etc. If the size relationship indicates that the final coding value is greater than the second restricted order, the computer device can determine the difference between the initial order and the first adjustment step as the target order. If the size relationship indicates that the final coding value is greater than or equal to the first restricted order and less than or equal to the second restricted order, the initial order is not adjusted and the initial order is determined as the target order. In this way, the target order associated with the data block to be processed can be limited to a reasonable order range, and the accuracy of the target order can be improved, so as to achieve encoded data that represents the data block to be processed with fewer codes.
[0080] In one possible implementation, the computer device may adjust the initial order in a manner that includes, but is not limited to, the following manner: obtaining the encoding parameters corresponding to the encoded data block, the encoding parameters of the encoded data block including the historical order of the encoded data block. If the size relationship indicates that the final encoding value is less than the first limiting order, the sum of the historical order and the second adjustment step is determined as the target order. If the size relationship indicates that the final encoding value is greater than the second limiting order, the difference between the historical order and the second adjustment step is determined as the target order. If the size relationship indicates that the final encoding value is greater than or equal to the first limiting order, and less than or equal to the second limiting order, the initial order is determined as the target order.
[0081] The computer device can obtain the encoding parameters corresponding to the encoded data block. If the size relationship indicates that the final encoding value is less than the first limiting order, the sum of the historical order and the second adjustment step is determined as the target order. The second adjustment step can be the same as or different from the first adjustment step. Similarly, the second adjustment step can also be determined by historical encoding record information, or the second adjustment step can be determined by a manager, and the second adjustment step can be a value such as 1, 2, or 3. If the size relationship indicates that the final encoding value is greater than the second limiting order, the difference between the historical order and the second adjustment step is determined as the target order. If the size relationship indicates that the final encoding value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order. In this way, the target order associated with the data block to be processed can be limited to a reasonable order range, while also improving the accuracy of the target order, thereby achieving encoded data representing the data block to be processed using fewer codes.
[0082] In one possible implementation, the specific manner in which the computer device adjusts the initial order may include, but is not limited to, the following manner: adjusting the initial order based on a size relationship to obtain a candidate order associated with the data block to be processed. If the candidate order is less than or equal to a third restricted order, the sum of the candidate order and the third adjustment step is determined as the target order. If the candidate order is greater than or equal to a fourth restricted order, the difference between the candidate order and the third adjustment step is determined as the target order; the third restricted order is less than the fourth restricted order. If the candidate order is greater than the third restricted order and less than the fourth restricted order, the candidate order is determined as the target order associated with the data block to be processed.
[0083] Specifically, the computer device can adjust the initial order based on the size relationship to obtain a candidate order associated with the data block to be processed. The specific process for adjusting the initial order can be found in the process for adjusting the initial order described above. The computer device can detect the relationship between the candidate order associated with the data block to be processed and the third and fourth limiting orders, and adjust the candidate order based on the relationship to obtain a target order associated with the data block to be processed. The third and fourth limiting orders are used to constrain the target order to within a reasonable order range, with the third limiting order being less than the fourth limiting order. Specifically, if the candidate order is less than or equal to the third limiting order, it can be determined that the candidate order is too small, and the sum of the candidate order and the third adjustment step size can be determined as the target order. Alternatively, if the candidate order is less than or equal to the third limiting order, a first preset order can be used as the target order. The first preset order is greater than the third limiting order and less than the fourth limiting order, meaning that the first preset order is within a reasonable order range. If the candidate order is greater than or equal to the fourth limiting order, the difference between the candidate order and the third adjustment step size can be determined as the target order. Alternatively, if the candidate order is greater than or equal to the fourth limiting order, the second preset order can be determined as the target order. If the second preset order is greater than the third limiting order and less than the fourth limiting order, the second preset order is within a reasonable order range. If the candidate order is greater than the third limiting order and less than the fourth order, it indicates that the candidate order is within a reasonable order range, and no adjustment is made to the candidate order, and the candidate order is determined as the target order.
[0084] In one possible implementation, the final coded value may be the average of all coded values in the coded data of the coded data block, or the average of non-zero coded values in the coded data of the coded data block.
[0085] In one possible implementation, a computer device may obtain a signal to be encoded within an encoded data block and coding parameters of the encoded data block. The coding parameters of the encoded data block may be determined based on signal characteristics of the signal to be encoded within the encoded data block, or may be determined based on a data block associated with the encoded data block. The computer device may detect a signal magnitude relationship between the signal to be encoded within the data block to be processed and the signal to be encoded within the encoded data block, and determine the coding parameters of the data block to be processed based on this signal magnitude relationship and the coding parameters of the encoded data block. Specifically, if the signal to be encoded within the data block to be processed is equal to the signal to be encoded within the encoded data block, the coding parameters of the encoded data block may be determined as target coding parameters. If the signal to be encoded within the data block to be processed is less than the signal to be encoded within the encoded data block, the difference between the coding parameters of the encoded data block and a fourth adjustment step size may be determined as the target coding parameters. If the signal to be encoded within the data block to be processed is greater than the signal to be encoded within the encoded data block, the sum of the coding parameters of the encoded data block and the fourth adjustment step size may be determined as the target coding parameters. Similarly, the fourth adjustment step may be determined by historical coding record information, or the fourth adjustment step may be determined by management personnel, etc. The fourth adjustment step may be a value of 1, 2, 3, etc.
[0086] In one possible implementation, the point cloud data includes at least two data groups, and the data blocks to be processed belong to a first data group of the at least two data groups. The encoding parameters corresponding to the data blocks in the first data group are the same, that is, the encoding parameters corresponding to the data blocks in the first data group are all target encoding parameters. The encoded data blocks belong to a second data group of the at least two data groups that is adjacent to the first data group. Since the media attributes of the data blocks in the same data group are highly similar, the data blocks in the same data group can use the same encoding parameters. Of course, the data blocks in the same data group can also use different encoding parameters.
[0087] In one possible implementation, the computer device may group data blocks in the point cloud data to obtain at least two data groups. Specific methods for grouping the point cloud data by the computer device may include, but are not limited to, the following: Method 1: The at least two data groups are obtained by grouping the data blocks based on their positions in the point cloud data. The computer device may group adjacent data blocks into one data group based on their positions in the point cloud data, thereby obtaining at least two data groups in the point cloud data.
[0088] Method 2: At least two data groups are obtained by grouping data blocks in the point cloud data based on the Hilbert transform codes corresponding to the data blocks in the point cloud data; the Hilbert transform codes corresponding to the data blocks in the point cloud data are obtained by performing a Hilbert transform on the position of each data block in the point cloud data. The computer device can perform a Hilbert transform on the position of each data block in the point cloud data to obtain a Hilbert code for each data block pair. The data blocks in the point cloud data can then be sorted based on the Hilbert codes corresponding to each data block to obtain sorted data blocks. Furthermore, the computer device can sequentially group the sorted data blocks based on the order of the space-filling curve, grouping data blocks with the same first L bits of the Hilbert code into a single data group. Specifically, the computer device can group data blocks with the same first L bits of the Hilbert code into a single data group to obtain candidate data groups. If the number of data blocks in a candidate data group exceeds a limited number, the candidate data group can be subdivided to limit the number of data blocks in the candidate data group to within a limited number. Alternatively, the candidate data group can be adjusted based on the number of data blocks included in the preceding group to obtain the data groups.
[0089] Method 3: At least two data groups are obtained by dividing the point cloud data according to the division size. The computer device can divide the three-dimensional space formed by the point cloud data into Each coded macroblock is a basic coding unit and can be a data group. x, y, and z are coordinate information, and d is the octree partition depth. Computer devices can set the partition size (such as the octree partition depth d or through parameters) to control the size of the data block.
[0090] Method 4: At least two data groups are obtained by dividing the point cloud data according to a specific limit number and the encoding order of the data blocks. The computer device can group the data blocks in the point cloud data in sequence according to the specific limit number and the encoding order of the data blocks in the point cloud data to obtain at least two data groups. For example, the encoding order of the 5 data blocks in the point cloud data is: data block s1, data block s2, data block s3, data block s4 and data block s5. If the specific limit number is 2, then one data group is: data block s1 and data block s2; another data group is: data block s3 and data block s4; and another data group is: data block s5. Alternatively, at least two data groups may refer to prediction tree units in a prediction tree generated based on the point cloud data, and the prediction tree unit may refer to a unit composed of multiple prediction tree nodes in the prediction tree.
[0091] As shown in FIG4 , FIG4 is a schematic diagram of a data group division provided by an embodiment of the present application. As shown in FIG4 , the computer device can divide the three-dimensional space formed by the point cloud data into Non-overlapping coding macroblocks of different sizes. As shown in Figure 4, the computer device can evenly divide the three-dimensional space composed of point cloud data into 4 non-overlapping coding macroblocks, and divide a data group in a coding macroblock into 4 data blocks. As shown in Figure 4, data group 40a includes four data blocks, each data block includes four data points, and data group 40a contains data points in the point cloud data. The second data block 2 in the data group includes a data point 4, and the third data block 3 includes a data point 5. Data group 40b also includes four data blocks, each data block includes four data points, and data group 40b contains data points in the point cloud data. The first data block 7 in the data group includes data point 9 and data point A, and the fourth data block 8 includes data point B.
[0092] In one possible implementation, the signal to be encoded of the data block to be processed may include one or more of geometric prediction residuals, attribute prediction residuals, and attribute transformation coefficients. The geometric prediction residual of the data block ranked first in the coding order in the point cloud data may be the difference between a preset geometric position and the geometric position of the data block ranked first, or the geometric position of the data block ranked first. The geometric prediction residuals of other data blocks in the point cloud data may be the difference between the geometric position of the data block that precedes the current data block in the coding order and the geometric position of the current data block. The other data blocks are data blocks other than the first data block in the point cloud data. The attribute prediction residual of the first data block may be the difference between a preset attribute and the media attribute of the first data block, or the media attribute of the first data block. The attribute prediction residual of other data blocks in the point cloud data may be the difference between the media attribute of the data block that precedes the current data block in the coding order and the media attribute of the current data block. The attribute transformation coefficient refers to the value obtained by transforming the media attribute of the data block using a transformation matrix.
[0093] In one possible implementation, the signal to be encoded includes a first signal to be encoded and a second signal to be encoded, and the first signal to be encoded and the second signal to be encoded respectively correspond to different attribute types. For example, the attribute type of the first signal to be encoded may refer to a geometric position, and the attribute type of the second signal to be encoded may refer to a color attribute. The target coding parameters of the data block to be processed include a first coding parameter and a second coding parameter, the first coding parameter is used to encode the first signal to be encoded, and the second coding parameter is used to encode the second signal to be encoded, and the first coding parameter is different from the second coding parameter. It can be understood that different coding parameters are used to encode different attribute types of the signals to be encoded in the data block to be processed. In this way, different coding parameters can be determined according to the signals to be encoded of different attribute types, so as to determine more accurate coding parameters and achieve the goal of using fewer codes to represent the encoded data of the data block to be processed.
[0094] In one possible implementation, the first signal to be encoded includes a first sub-coding signal, a second sub-coding signal, and a third sub-coding signal, and the first coding parameter can be determined based on the sub-signal characteristics corresponding to the first sub-coding signal, the second sub-coding signal, and the third sub-coding signal, respectively. For example, the first coding parameter can be determined based on the maximum sub-coding signal among the first sub-coding signal, the second sub-coding signal, and the third sub-coding signal. Of course, the first coding parameter can be determined based on the average signal value among the first sub-coding signal, the second sub-coding signal, and the third sub-coding signal. In one possible implementation, the first coding parameter can be determined based on any one of the first sub-coding signal, the second sub-coding signal, and the third sub-coding signal. The coding parameters corresponding to the first sub-coding signal, the second sub-coding signal, and the third sub-coding signal, respectively, can be determined as the first coding parameter. In one possible implementation, sub-coded signals under the same attribute type may all use the same coding parameter. In this case, the coding parameter corresponding to the associated information associated with the first signal to be coded may be determined as the first coding parameter. For example, the run length of the zero value and the non-zero signal value obtained by run encoding the first signal to be coded using run encoding may be encoded using the same first coding parameter (i.e., the first coding parameter corresponding to the first signal to be coded). Run encoding refers to replacing a continuous string of identical values with a representative value and string length. For example, when the first signal to be coded is aaaabaaaa, run encoding may be used to obtain 4b4. When encoding the first signal to be coded, the run length "4" and the non-zero signal value "b" may be exponentially encoded using the first coding parameter corresponding to the first signal to be coded.
[0095] In one possible implementation, the first signal to be encoded includes a first sub-coding signal, a second sub-coding signal, and a third sub-coding signal. The first coding parameters include a first sub-coding parameter corresponding to the first sub-coding signal, a second sub-coding parameter corresponding to the second sub-coding signal, and a third sub-coding parameter corresponding to the third sub-coding signal. It is understood that different sub-coding signals in the first signal to be encoded use different coding parameters. Thus, the coding parameters corresponding to the different sub-coding signals can be determined based on their signal characteristics, thereby determining more accurate coding parameters and achieving the goal of using fewer codes to represent the encoded data of the data block to be processed. The computer device can use an offset function to adjust the coding parameters of the sub-coding signals in the first signal to be encoded. The offset function is a function that uses a specified reference as a reference system and obtains a new reference by a given offset. The first sub-coding parameter can be determined based on the sub-signal characteristics corresponding to the first sub-coding signal, the second sub-coding parameter can be determined based on the first sub-coding parameter and a parameter offset, and the third sub-coding parameter can be determined based on the second sub-coding parameter and a parameter offset. The parameter offset can be set by a manager, determined based on historical encoding and decoding records, or set based on specific circumstances, and is not limited in this embodiment of the present application. Of course, the offset function can also be used to adjust the coding parameters within to-be-coded signals of different attribute types. For example, the first coding parameter of the first to-be-coded signal is determined based on the signal characteristics of the first to-be-coded signal, and the coding parameter of the second to-be-coded signal is determined based on a given offset and the coding parameter of the first to-be-coded signal. Alternatively, the coding parameters corresponding to the first sub-coded signal, the second sub-coded signal, and the third sub-coded signal are respectively determined based on the sub-signal characteristics corresponding to the first sub-coded signal, the second sub-coded signal, and the third sub-coded signal.
[0096] S103 , encoding the signal to be encoded according to the target encoding parameters to obtain encoded data of the data block to be processed.
[0097] A computer device can encode the signal to be encoded within the data block to be processed based on target coding parameters to obtain encoded data for the data block to be processed. The signal to be encoded within the data block to be processed can be encoded using an exponential Golomb coding scheme based on the target coding parameters. When different coding parameters are used to encode the signal to be encoded within the data block to be processed, the encoded data of the data block to be processed falls within the code length corresponding to the different coding parameters. For example, when encoding the signal to be encoded within the data block to be processed using coding parameter r1, the encoded data of the data block to be processed falls within the code description range corresponding to coding parameter r1; when encoding the signal to be encoded within the data block to be processed using coding parameter r2, the encoded data of the data block to be processed falls within the code description range corresponding to coding parameter r2. Thus, encoding the signal to be encoded within the data block to be processed using the target coding parameters can achieve the goal of using fewer codes to represent the signal to be encoded within the data block to be processed, thereby reducing the amount of encoded data. It is understood that the encoded data obtained by encoding the signal to be encoded within the data block to be processed using the target coding parameters is smaller than the encoded data obtained by encoding the signal to be encoded within the data block to be processed using other coding parameters. Since the redundancy of the coded data of the data block to be processed is relatively low, the decoded signal of the data block to be processed can be quickly decoded, thereby improving the decoding efficiency.
[0098] In a possible implementation, after obtaining the target coding parameters corresponding to the data block to be processed, the computer device can directly encode the signal to be encoded in the data block to be processed according to the target coding parameters to obtain the encoded data of the data block to be processed.
[0099] In one possible implementation, a computer device may encode a signal to be encoded within a data block to be processed by generating a first encoding tag if the signal to be encoded within the data block to be processed differs from a signal threshold. The first encoding tag indicates that the signal to be encoded within the data block to be processed differs from the signal threshold. Subtracting the signal to be encoded within the data block to be processed based on the signal threshold to obtain a signal difference value. Encoding the signal difference value based on a target encoding parameter to obtain a signal encoding value of the signal to be encoded. The signal encoding value and the first encoding tag are determined as encoded data for the data block to be processed.
[0100] The computer device can detect whether the signal to be encoded in the data block to be processed is the same as the signal threshold. When the signal to be encoded in the data block to be processed is the same as the signal threshold, the second encoding tag is used as the encoding data of the data block to be processed; when the signal to be encoded in the data block to be processed is different from the signal threshold, the signal to be encoded in the data block to be processed is encoded according to the first encoding tag and the target encoding parameter. Among them, the signal threshold can refer to the signal value of the signal to be encoded that appears the most times in the signals to be encoded in the data block to be processed, or the signal threshold can also be the signal value of the signal to be encoded that appears the most times in the point cloud data, or it can be set according to other specific circumstances. Among them, the first encoding tag is used to indicate that the signal to be encoded in the data block to be processed is different from the signal threshold. When the decoding device decodes, it can decode the encoded data of the data block to be processed according to the first encoding tag and the target decoding parameter (i.e., the target encoding parameter) to obtain the decoded signal of the data block to be processed (the signal value of the decoded signal is the same as the signal value of the signal to be encoded).
[0101] Specifically, when the computer device determines that the signal to be encoded in the data block to be processed is the same as the signal threshold, the second coding label can be determined as the coding data of the signal to be encoded. The second coding label is used to indicate that the signal to be encoded in the data block to be processed is the same as the signal threshold. In this way, when the signal to be encoded in the data block to be processed is the same as the signal threshold, the second coding label is used as the coding data of the signal to be encoded. Only when the signal to be encoded in the data block to be processed is different from the signal threshold, the data block to be processed is encoded according to the first coding label and the target coding parameter. In this way, when there are a large number of signals to be encoded that are adjacent to the signal threshold in the signal to be encoded in the data block to be processed, the second coding label can be directly used as the coding data of the signal to be encoded that is the same as the signal threshold, which can reduce the number of codes required to improve coding efficiency. For example, if the data block to be processed includes five signals to be encoded, and the signal value of the first signal to be encoded is 1, the signal value of the second signal to be encoded is 0, the signal value of the third signal to be encoded is 1, the signal value of the fourth signal to be encoded is 1, and the signal value of the fifth signal to be encoded is 2, the signal threshold can be 1, the first encoding tag can be flag≠1, and the second encoding tag can be flag=1. In this way, if the first signal to be encoded is equal to the signal threshold, the second encoding tag flag=1 can be used as the encoding data corresponding to the first signal to be encoded. During decoding, the signal value of the first signal to be encoded can be directly determined to be 1 based on the second encoding tag flag=1. If the second signal to be encoded is different from the signal threshold, the second signal to be encoded can be encoded based on the first encoding tag flag≠1 and the target encoding parameters. If the third signal to be encoded is equal to the signal threshold, the encoding data for the third signal to be encoded is the second encoding tag. If the fourth signal to be encoded is equal to the signal threshold, the encoding data for the fourth signal to be encoded is the second encoding tag. If the fifth signal to be encoded is different from the signal threshold, the second signal to be encoded may be encoded according to the first encoding tag flag≠1 and the target encoding parameter.
[0102] In one possible implementation, when the signal to be encoded within the data block to be processed differs from the signal threshold, the computer device may directly encode the signal to be encoded within the data block to be processed based on the target encoding parameters corresponding to the data block to be processed, thereby obtaining encoded data corresponding to the data block to be processed. During decoding, the decoding device may directly decode the encoded data corresponding to the data block to be processed based on the target decoding parameters (i.e., target encoding parameters) to obtain a decoded signal for the data block to be processed.
[0103] When the computer device determines that the signal to be encoded in the data block to be processed is different from the signal threshold, it can generate a first coding tag indicating that the signal to be encoded in the data block to be processed is different from the signal threshold. Based on the signal threshold, the signal to be encoded in the data block to be processed is subjected to difference processing to obtain a signal difference value. The computer device can obtain the difference between the signal to be encoded in the data block to be processed and the signal threshold value and determine it as the signal difference value. The computer device can also obtain the difference between the signal to be encoded in the data block to be processed and the signal threshold value and the first threshold value as the signal difference value. Specifically, the computer device can obtain a candidate difference value between the signal to be encoded in the data block to be processed and the signal threshold value, and then obtain the difference between the candidate difference value and the first threshold value as the signal difference value. The first threshold value can be set according to actual conditions. For example, the first threshold value can be 1 or other threshold values. When the first threshold value is 1, the signal difference value = the signal value of the signal to be encoded - (m+1), where m is the signal threshold value.
[0104] The computer device can encode the signal difference according to the target coding parameters to obtain a signal coding value of the signal to be encoded, and determine the signal coding value of the signal to be encoded and the first coding label as the encoded data of the signal to be encoded. For example, taking the signal to be encoded in the data block to be processed as 3, the signal threshold as 2, and the first threshold as 1, the computer device obtains the difference between the signal value of the signal to be encoded and the signal threshold and the first threshold as the signal difference, i.e., the signal difference is 3-2-1=0. The computer device can directly encode the signal difference of 0, thereby reducing the amount of encoded data. Thus, when the computer device determines that the signal to be encoded in the data block to be processed is different from the signal threshold, it can perform a difference process on the signal to be encoded in the data block to be processed and encode the signal difference obtained by the difference process, thereby reducing the signal value of the signal to be encoded that needs to be encoded. In this way, since the amount of encoded data obtained when encoding smaller signal values is smaller, encoding the signal difference corresponding to the signal to be encoded can reduce the amount of encoded data, thereby improving encoding and decoding efficiency. When the decoding device decodes the encoded data of the signal to be encoded, the encoded data of the signal to be encoded can be decoded according to the target decoding parameter (the target decoding parameter is the same as the target encoding parameter) to obtain the signal encoding value of the signal to be encoded, and the signal encoding value of the signal to be encoded is summed according to the signal threshold to obtain the decoded signal of the signal to be encoded.
[0105] In one possible implementation, the computer device may sequentially detect whether the signal to be encoded in the data block to be processed is the same as the signal threshold, and detect whether the signal to be encoded is the same as a positive integer less than the signal threshold, and generate a corresponding coding tag to indicate the signal value of the signal to be encoded in the data block to be processed. For example, when the signal threshold is 2, the computer device may detect whether the signal to be encoded in the data block to be processed is the same as the threshold 2. If so, the coding tag of the signal to be encoded is flag=2; if not, flag≠2. When the signal to be encoded is not the same as the threshold 2, the computer device may continue to detect whether the signal to be encoded in the data block to be processed is the same as the threshold 1 (a positive integer less than the threshold 2). If the signal to be encoded is the same as the threshold 1, the coding tag of the signal to be encoded is flag=1; if not, flag≠1. When the computer device determines that the signal to be encoded is different from threshold 1, the computer device can continue to detect whether the signal to be encoded in the data block to be processed is the same as threshold 0 (a positive integer less than threshold 2). If the signal to be encoded is the same as threshold 0, the encoding tag of the signal to be encoded is flag = 0; if not, flag ≠ 0. If the computer device determines that the signal to be encoded is different from threshold 2, threshold 1, and threshold 0, it can be determined that the signal to be encoded in the data block to be processed is greater than 2. The signal to be encoded in the data block to be processed can then be subjected to difference processing based on the signal threshold to obtain a signal difference value, and the signal difference value can be encoded. In this way, since the amount of encoded data obtained when encoding smaller signal values is small, encoding the signal difference value corresponding to the signal to be encoded can reduce the amount of encoded data, thereby improving encoding and decoding efficiency.
[0106] In which, after the computer device encodes the data block to be processed and obtains the encoded data of the data block to be processed, it can associate and store the encoded data of the data block to be processed with the target encoded data of the data block to be processed, generate a code stream of point cloud data based on the encoded data corresponding to one or more data blocks, and send the code stream of point cloud data to the decoding device so that the decoding device reconstructs the point cloud data based on the code stream of point cloud data. Specifically, the computer device can store the encoding parameters corresponding to each data block in the point cloud data in one or more parameter sets, and the parameter sets include the correspondence between the data blocks in the point cloud data and the corresponding encoding parameters. In this way, the computer device can send the one or more parameter sets and the code stream of point cloud data to the decoding device, and the decoding device can determine the encoding parameters of the corresponding data block from the parameter sets as decoding parameters. Alternatively, the computer device can generate a code stream of point cloud data based on the target encoding parameters corresponding to the data block to be processed and the encoded data of the data block to be processed, with the encoded data of each data block to be processed corresponding to one target encoding parameter.
[0107] In one embodiment in a possible implementation manner, a computer device can construct a geometric prediction tree for point cloud data, obtain the geometric prediction residual of each node in the geometric prediction tree, and obtain geometric prediction tree residual information. Wherein, when the computer device obtains the geometric prediction residual of each node in the geometric prediction tree, the geometric prediction residual of each node can be predicted by the signal value of its previous point, or the geometric prediction residual of each node can be predicted by the signal values of its previous two points, or the geometric prediction residual of each node can be predicted by the signal values of its previous a1 points. Furthermore, based on the distribution of the residual information of the geometric prediction tree, the computer device can take different exponential Golomb orders for the starting residual information and other residual information in the geometric prediction tree, denoted as k1 and k2 respectively, and use the exponential Golomb of adaptive order to encode the starting residual information and other residual information to obtain encoded data of the point cloud data. The initial order k1 is set based on the range of geometric information values of the geometric prediction tree as the order of the starting residual information; the corresponding order k2 is set to be k1+offset, where offset can be any integer; or the initial order k2 is set to be k1;
[0108] k1 and k2 are adaptively adjusted based on the residual information of the previous decoded points of the same type, where k1 is based on the average value of the residual information of n1 previous starting points, and k2 is based on the average value of the other residual information of n1 previous points; or the starting point order k1 is fixed and k2 is adaptively adjusted.
[0109] In one possible implementation, a computer device may obtain the attribute prediction residual of a data point in point cloud data, and determine the initial coding parameter of the data point based on the signal characteristics of the attribute prediction residual of the data point. An upper limit parameter and a lower limit parameter are determined based on the initial coding parameter. Furthermore, the computer device may adjust the initial coding parameter based on the signal characteristics of the attribute prediction residual of the data point to obtain a target coding parameter of the data point. Specifically, if the attribute prediction residual of the data point is less than the lower limit parameter, the target coding parameter of the data point is the initial coding parameter plus one; if the attribute prediction residual of the data point is greater than the lower limit parameter, the target coding parameter of the data point is the initial coding parameter minus one. Furthermore, if the target coding parameter is less than 0, the target coding parameter is determined to be equal to 0, or, if the target coding parameter is less than 0, the target coding parameter is determined to be equal to the initial coding parameter.
[0110] In one possible implementation, a computer device may obtain the attribute transformation coefficients of the data points in the point cloud data, and determine the initial coding parameters of the data points based on the signal characteristics of the attribute transformation coefficients of the data points. An upper limit parameter and a lower limit parameter are determined based on the initial coding parameters. Furthermore, the computer device may adjust the initial coding parameters based on the signal characteristics of the attribute transformation coefficients of the data points to obtain target coding parameters of the data points. Specifically, if the attribute transformation coefficient of the data point is less than the lower limit parameter, the target coding parameter of the data point is the initial coding parameter plus one; if the attribute transformation coefficient of the data point is greater than the lower limit parameter, the target coding parameter of the data point is the initial coding parameter minus one. Furthermore, if the target coding parameter is less than 0, the target coding parameter is determined to be equal to 0, or, if the target coding parameter is less than 0, the target coding parameter is determined to be equal to the initial coding parameter.
[0111] In an embodiment of the present application, by obtaining the signal to be encoded within a data block to be processed in the point cloud data and the signal characteristics of the signal to be encoded, the point cloud data is encoded using a non-equal-length encoding method. The signal to be encoded is used to reflect the media attributes of the data block to be processed. Thus, using a non-equal-length encoding method can reduce the amount of encoded data in the data block to be processed. Based on the signal characteristics of the signal to be encoded, the target encoding parameters for the data block to be processed are determined under the encoding method. The encoded data of the data block to be processed here describes the number of bits of the encoded data of the data block to be processed, that is, the encoded data of the data block to be processed refers to the length of the encoded data of the data block to be processed. The signal to be encoded within the data block to be processed is encoded according to the target encoding parameters to obtain the encoded data of the data block to be processed. Thus, using accurate target encoding parameters to encode the signal to be encoded in the data block to be processed can achieve the goal of representing the signal to be encoded with fewer codes, thereby reducing the amount of encoded data corresponding to the data block to be processed, reducing network transmission pressure, and also reducing the pressure on the decoding device receiving the encoded data, while also improving the decoding efficiency of the encoded data. In other words, by adaptively determining how many codes are needed to describe the coded data of the data block to be processed based on the signal characteristics of the signal to be coded in the data block to be processed, that is, data blocks with different signal characteristics have different codes, this can effectively reduce the redundancy of the coded data of the data block to be processed, that is, it can reduce the length of the coded data of the data block to be processed, and at the same time, it can improve the transmission efficiency of the coded data of the data block to be processed.
[0112] As shown in FIG5 , FIG5 is a method for decoding point cloud data provided by an embodiment of the present application. The method for decoding point cloud data provided by an embodiment of the present application is described in detail below in conjunction with FIG5 . The method can be executed by a computer device, which can be referred to as a decoding device. As shown in FIG5 , the method can specifically include but is not limited to the following steps:
[0113] S201, obtaining the encoded data of the data block to be processed in the point cloud data.
[0114] Specifically, point cloud data is widely used in the construction of digital city maps and plays a technical supporting role in many popular research areas such as smart cities, unmanned driving, and cultural heritage protection. A computer device can use a three-dimensional scanning device to collect the surface of a target object to obtain point cloud data. An encoding device can encode the point cloud data to obtain encoded data corresponding to the point cloud data, and then send the encoded data corresponding to the point cloud data to a decoding device. The decoding device decodes the encoded data of the point cloud data to obtain point cloud data and restores the point cloud data. The point cloud data includes one or more data blocks, and the data block to be processed belongs to any one of the one or more data blocks in the point cloud data. The data block to be processed can be any data point in the point cloud data or a group of data points consisting of at least two data points. For example, the data block to be processed can refer to point cloud data, a macroblock in the point cloud data, a prediction tree in the point cloud data (a tree consisting of multiple data points in the point cloud data), etc. The encoded data of the data block to be processed is obtained by encoding the signal to be encoded in the data block to be processed by the encoding device according to target encoding parameters. The target coding parameters are coding parameters for the data block to be processed under the non-equal-length coding scheme. The target coding parameters are determined based on the signal characteristics of the signal to be encoded. The encoding device may send the encoded data of the data block to be processed to the decoding device. Upon receiving the encoded data of the data block to be processed, the decoding device may determine a decoding scheme for decoding the encoded data. The decoding scheme may be a decoding scheme corresponding to the non-equal-length coding scheme.
[0115] The encoding scheme of the non-equal-length encoding may include an unsigned exponential Golomb encoding scheme, a signed exponential Golomb encoding scheme, a truncated exponential Golomb encoding scheme, and a mapped exponential Golomb encoding scheme. The decoding scheme for the data block to be processed is the decoding scheme corresponding to the encoding scheme of the data block to be processed. For example, if the encoding scheme of the data block to be processed is the unsigned exponential Golomb encoding scheme, the decoding scheme for the data block to be processed is the unsigned exponential Golomb decoding scheme.
[0116] S202: Determine target decoding parameters of the data block to be processed according to the target encoding parameters.
[0117] The computer device can determine target decoding parameters for the data block to be processed based on the target coding parameters. The target decoding parameters can be the same as the target coding parameters for the data block to be processed under the encoding scheme. For example, when the target coding parameters for the data block to be processed under the Exponential Golomb coding scheme are "order 0," the target decoding parameters are "order 0." The target coding parameters for the data block to be processed under the encoding scheme can be determined based on signal characteristics of a signal to be encoded within the data block to be processed. The signal to be encoded of the data block to be processed is used to reflect media attributes of the data block to be processed. The media attributes can include geometric position information, color, reflectivity, classification value, intensity value, time, material properties, and texture information. The number of signals to be encoded within the data block to be processed can be one or more. The signal to be encoded can be obtained by performing attribute prediction, attribute transformation, attribute prediction transformation, or attribute transformation prediction on the media attributes of the data block to be processed by the encoding device, such as geometric prediction residuals, attribute prediction residuals, or attribute transformation coefficients. The signal characteristics of the signal to be encoded may refer to the signal threshold range of the signal to be encoded, the distribution characteristics of the signal to be encoded, the signal value size of the signal to be encoded, or the signal characteristics of an associated signal associated with the signal to be encoded of the data block to be processed.
[0118] In one possible implementation, the signal threshold range of the signal to be encoded can be determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed; or, the signal range value is determined based on the sampling accuracy of the data block to be processed. The target encoding parameter corresponding to the data block to be processed can be obtained by querying from the second parameter table based on the index value to be processed. The second parameter table includes at least one index value and the encoding parameter associated with each index value in the at least one index value. The index value to be processed is obtained by quantizing and performing difference processing on the signal threshold range of the signal to be encoded. In one possible implementation, the target encoding parameter can be determined based on the encoding data of the encoded data block in the point cloud data that has an adjacent relationship with the data block to be processed. The process of determining the target encoding parameter corresponding to the data block to be processed can refer to the process of determining the target encoding parameter corresponding to the data block to be processed by the encoding device in Figure 2 above. The embodiment of the present application will not be repeated here.
[0119] In one possible implementation, the point cloud data includes at least two data groups, the data blocks to be processed belong to a first data group of the at least two data groups, the data blocks in the first data group have the same encoding parameters, and the encoded data blocks belong to a second data group of the at least two data groups that is adjacent to the first data group. The at least two data groups are grouped according to the positions of the data blocks in the point cloud data; or the at least two data groups are grouped according to the Hilbert transform codes corresponding to the data blocks in the point cloud data; the Hilbert transform codes corresponding to the data blocks in the point cloud data are obtained by performing a Hilbert transform on the position of each data block in the point cloud data; or the at least two data groups are divided into the point cloud data according to a division size; or the at least two data groups are divided into the point cloud data according to a specific limited number and the encoding order of the data blocks. Different encoding parameters can be used between multiple to-be-encoded signals of different attribute types within the to-be-encoded data block, i.e., one to-be-encoded signal corresponds to one encoding parameter. Different sub-coded signals within different to-be-coded signals may use the same coding parameters or different coding parameters. For details, please refer to the description in FIG. 2 above, which will not be described in detail in the embodiment of the present application.
[0120] In one possible implementation, before determining the target decoding parameters, the computer device may obtain a parameter set corresponding to the point cloud data; the parameter set includes encoding parameters corresponding to each data block in the point cloud data. From the parameter set corresponding to the point cloud data, the target encoding parameters corresponding to the data block to be processed are obtained. Thus, the computer device may determine the target decoding parameters by using the target encoding parameters corresponding to the data block to be processed as the target decoding parameters for the data block to be processed.
[0121] In one possible implementation, after encoding a data block to be processed to obtain the encoded data of the data block to be processed, the encoding device may associate and store the encoded data of the data block to be processed with the encoded data of the data block to be processed, and generate a code stream of point cloud data based on the encoded data corresponding to one or more data blocks. Specifically, the encoding device may store the encoding parameters corresponding to each data block in the point cloud data in a parameter set, which includes the correspondence between the data blocks and the encoding parameters, and send the parameter set to a decoding device. After the decoding device obtains the parameter set and the code stream of the point cloud data, it may decode the encoded data corresponding to each data block in the point cloud data to obtain a decoded signal corresponding to each data block. The data block to be processed belongs to a data block in the point cloud data. Specifically, the parameter set includes the encoding parameters corresponding to each data block in the point cloud data. The computer device may obtain the target encoding parameters corresponding to the data block to be processed from the parameter set corresponding to the point cloud data and determine the target encoding parameters corresponding to the data block to be processed as the target decoding parameters for the data block to be processed.
[0122] The encoding device may also associate and store the encoding parameters corresponding to each data block in the point cloud data with the point cloud data code stream and transmit the point cloud data code stream to the decoding device. After receiving the point cloud data code stream, the decoding device may obtain the encoding data corresponding to each data block in the point cloud data and the encoding parameters corresponding to each data block from the point cloud data code stream. The computer device may obtain the target encoding parameters corresponding to the data block to be processed from the encoding parameters corresponding to each data block in the point cloud data and determine the target encoding parameters corresponding to the data block to be processed as the target decoding parameters for the data block to be processed.
[0123] The computer device can determine the target decoding parameters corresponding to the encoded data of the data block to be processed based on the parameter determination method of the target encoding parameters. The parameter determination method can be the default encoding parameter and decoding parameter determination method of the encoding device and decoding device of the point cloud data. It can be understood that the encoding device uses the parameter determination method to determine the target encoding parameters, and uses the target encoding parameters to encode the point cloud data to obtain the encoded data of the point cloud data. The decoding device can use the same parameter determination method as the encoding device to determine the target encoding parameters to determine the target decoding parameters, and use the target decoding parameters to decode the encoded data of the point cloud data to obtain the point cloud data. In other words, the method by which the encoding device determines the target encoding parameters of the data block to be processed is the same as the method by which the decoding device determines the target decoding parameters. Among them, the parameter determination method of the target encoding parameters can be the default method of the encoding device and the decoding device.
[0124] In one possible implementation, a method for determining target coding parameters includes a method based on querying a parameter table, i.e., the target coding device determines a to-be-processed index value based on signal characteristics of the to-be-processed signal within the to-be-processed data block, and queries the target coding parameters corresponding to the to-be-processed data block from a second parameter table. For details, reference may be made to the description of FIG. 2 above, and the embodiments of the present application are not further described herein. A specific method for a computer device to determine target decoding parameters may include: obtaining a signal range value of the to-be-processed signal within the to-be-processed data block; quantizing the signal range value to obtain a quantized signal range value; obtaining a logarithm of the quantized signal range value; performing a difference operation on the logarithm to obtain a to-be-processed index value corresponding to the to-be-processed data block; and querying a decoding parameter associated with the to-be-processed index value from a first parameter table, the first parameter table including at least one index value and a decoding parameter associated with each of the at least one index value. The decoding parameter obtained from the query is determined as the target decoding parameter for the to-be-processed data block.
[0125] Specifically, the computer device can obtain a signal range value corresponding to the signal to be encoded within the data block to be processed. This signal range value can be sent by the encoding device to the decoding device. The computer device can generate a processing index value corresponding to the data block to be processed based on the signal range value corresponding to the signal to be encoded within the data block to be processed. Specifically, the computer device can obtain a quantization step size (which can be obtained from a quantization parameter). This quantization step size can be pre-set by a manager or determined based on the signal range of the signal to be encoded. Furthermore, the computer device can quantize the signal range value of the signal to be encoded based on the quantization step size to obtain a quantized signal range value. By quantizing the signal range value, signal range values within a range can be replaced with another signal range value to compress data and facilitate subsequent rapid query of the processing index value. Furthermore, the computer device can obtain the logarithm of the quantized signal range value and perform a difference operation on the logarithm to obtain the processing index value corresponding to the data block to be processed.
[0126] The encoding parameter associated with the index value to be processed is retrieved from a first parameter table. The first parameter table includes at least one index value and a decoding parameter associated with each of the at least one index value, i.e., one decoding parameter is associated with each index value. The computer device may determine the decoding parameter obtained from the query as the target decoding parameter of the data block to be processed. The first parameter table is identical to the first parameter table in the encoding device and can be sent from the encoding device to the decoding device. The decoding device may generate the first parameter table in the same manner as the encoding device generates the second parameter table.
[0127] In one possible implementation, the parameter determination method of the target coding parameter includes a method based on data blocks with adjacent relationships, that is, the encoding device is based on the encoding data of the encoded data block in the point cloud data that has an adjacent relationship with the data block to be processed, and adjusts the initial order to obtain the content of the target coding parameter. For details, please refer to the content in Figure 2 above, and the embodiment of the present application will not be repeated here. The specific method for the computer device to determine the target decoding parameter may include: obtaining the signal range value corresponding to the signal to be encoded in the data block to be processed. Determine the initial decoding parameters of the target data block based on the signal range value corresponding to the data block to be processed. Obtain the decoded signal of the decoded data block in the point cloud data that has an adjacent relationship with the data block to be processed. Adjust the initial decoding parameters based on the decoded signal of the decoded data to obtain the target decoding parameters corresponding to the encoded data of the data block to be processed.
[0128] Specifically, the computer device obtains the signal range value corresponding to the signal to be encoded in the data block to be processed, and determines the initial decoding parameters of the target data block according to the signal range value corresponding to the data block to be processed. The specific determination process can refer to the above-mentioned process of determining the index value to be processed according to the signal range value corresponding to the data block to be processed, and determining the target decoding parameters from the first parameter table according to the index value to be processed. Furthermore, the computer device can obtain a decoded data block in the point cloud data that has an adjacent relationship with the data block to be processed, and adjust the initial decoding parameters according to the decoded signal of the decoded data to obtain the target decoding parameters. The specific content can refer to the process of the encoding device determining the target encoding parameters according to the encoded data of the encoded data block in Figure 2 above, that is, the way the decoding device determines the target decoding parameters is the same as the way the encoding device determines the target encoding, and the embodiments of the present application will not be repeated here.
[0129] In one possible implementation, the signal range value of the signal to be encoded in the data block to be processed is determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed; or, the signal range value is determined based on the sampling accuracy of the signal to be encoded in the data block to be processed.
[0130] Specifically, the signal feature may refer to a signal range value of a signal to be encoded within a data block to be processed, and the signal range value is determined based on the maximum signal to be encoded and the minimum signal to be encoded within the data block to be processed. The maximum signal to be encoded and the minimum signal to be encoded within the data block to be processed may be determined by the encoding device. Specifically, the signal range value may refer to the difference between the signal value of the maximum signal to be encoded and the signal value of the minimum signal to be encoded within the data block to be processed. For example, when the signal to be encoded of the data block to be processed is a geometric prediction residual, the signal range value may refer to the difference between the maximum geometric prediction residual and the minimum geometric prediction residual. For example, if the signal value of the maximum signal to be encoded within the data block to be processed is 6 and the signal value of the minimum signal to be encoded is 0, then the signal range value of the signal to be encoded of the data block to be processed is 6. Alternatively, the signal range value may be determined based on the sampling accuracy of the signal to be encoded within the data block to be processed, and the sampling accuracy of the signal to be encoded within the data block to be processed is sent by the encoding device to the decoding device. For example, if the geometric accuracy of the point cloud data is 10 bits, the adopted accuracy of the signal to be encoded in the data block to be processed in the point cloud data can be 10 bits, and the signal range value of the signal to be encoded in the data block to be processed can be 210.
[0131] In one possible implementation, if the encoding method of the encoding device can be an exponential Columbus encoding method, the decoding method of the decoding device can be an exponential Columbus encoding method, and the initial decoding parameter of the data block to be processed is an initial order (the same as the initial encoding parameter of the data block to be processed in the encoding device). The specific method for the computer device to adjust the initial decoding parameter may include: determining the final signal value of the decoded signal of the decoded data block. According to the initial order, determining a first limiting order and a second limiting order, the first limiting order is less than the second limiting order. Obtaining the size relationship between the final signal value and the first limiting order and the second limiting order. Adjusting the initial order according to the size relationship to obtain a target order associated with the data block to be processed, and determining the target order as the target decoding parameter.
[0132] Specifically, the number of decoded data blocks can be one or n1. If the encoding device adjusts the initial order based on one encoded data block, the number of decoded data blocks is one; if the encoding device adjusts the initial order based on n1 encoded data blocks, the number of decoded data blocks is n1. When the number of decoded data blocks is one and the number of decoded signals within the encoded data block is one, the final signal value of the decoded signal of the decoded data block may be the signal value corresponding to the decoded signal within the decoded data block. When the number of decoded data blocks is one and the number of decoded signals within the decoded data block is n1, the final signal value of the decoded signal of the decoded data block may be the average of the signal values corresponding to the n1 decoded signals. When the number of decoded data blocks is n1, the final signal value may be the average of the decoded signals of the n1 decoded data blocks. The computer device may determine a first limiting order and a second limiting order based on the initial order, with the first limiting order being smaller than the second limiting order. The computer device may set a buffer size of n1 for storing decoded data blocks, and calculate the final signal value of the decoded data block every n2 points. The decoded data block may be a data point in the point cloud data, and the initial order may be adjusted every n1 data points.
[0133] Specifically, the first limiting order refers to the lower limit order, the second limiting order may refer to the upper limit order, the initial order is represented by golombNum, the first limiting order is represented by golombNumLow, and the second limiting order is represented by golombNumUP. In one possible implementation, the computer device may determine the first limiting order and the second limiting order based on the initial order in the following ways, including but not limited to: Way 1: golombNumLow = 2^golombNum, golombNumUp = 2^(golombNum+1). Way 2: golombNumLow = 2^(golombNum-1), golombNumUp = 2^golombNum. Way 3: golombNumUp = 2^((golombNum-1)) + 2^((golombNum-2)); golombNumLow = 2^((golombNum-1)) - 2^((golombNum-2)). It should be noted that, in addition to the above-mentioned methods, other methods may be used to determine the first restriction order and the second restriction order according to specific circumstances, which will not be described in detail in the application examples.
[0134] The computer device may obtain a magnitude relationship between a final signal value of a decoded signal of a decoded data block and a first limiting order and a second limiting order. This magnitude relationship may include the final signal value being less than the first limiting order, or the final signal value being greater than the second limiting order, or the final signal value being greater than or equal to the first limiting order and less than or equal to the second limiting order. The computer device may adjust the initial order based on this magnitude relationship to obtain a target order associated with the data block to be processed. The computer device may determine the target order as a target decoding parameter.
[0135] In one possible implementation, the computer device may adjust the initial order in a specific manner including, but not limited to, the following manner: if the magnitude relationship indicates that the final signal value is less than a first limiting order, the sum of the initial order and the first adjustment step is determined as the target order. If the magnitude relationship indicates that the final signal value is greater than a second limiting order, the difference between the initial order and the first adjustment step is determined as the target order. If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
[0136] If the computer device determines that the magnitude relationship indicates that the target signal value is less than the first limiting order, the computer device may determine the sum of the initial order and the first adjustment step as the target order associated with the target data block. The first adjustment step may be determined by historical encoding record information, or may be determined by a manager, and the first adjustment step may be a value such as 1, 2, or 3. If the magnitude relationship indicates that the final signal value is greater than the second limiting order, the computer device may determine the difference between the initial order and the first adjustment step as the target order. If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is not adjusted and is determined as the target order.
[0137] In one possible implementation, decoding parameters corresponding to a decoded data block are obtained, where the decoding parameters of the decoded data block include a historical order of the decoded data block. If the magnitude relationship indicates that the final signal value is less than a first limiting order, the sum of the historical order and a second adjustment step size is determined as the target order. If the magnitude relationship indicates that the final signal value is greater than the second limiting order, the difference between the historical order and the second adjustment step size is determined as the target order. If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
[0138] The computer device can obtain the historical order corresponding to the decoded data block. If the size relationship indicates that the final signal value is less than the first limit order, the sum of the historical order and the second adjustment step is determined as the target order. The second adjustment step can be the same as the first adjustment step, or it can be different from the first adjustment step. Similarly, the second adjustment step can also be determined by historical coding record information, or the second adjustment step can be determined by a manager, etc. The second adjustment step can be a value of 1, 2, 3, etc. If the size relationship indicates that the final signal value is greater than the second limit order, the difference between the historical order and the second adjustment step is determined as the target order. If the size relationship indicates that the final signal value is greater than or equal to the first limit order and less than or equal to the second limit order, the initial order is determined as the target order. For details, please refer to the adjustment content of the initial order in Figure 2 above, and the embodiments of this application will not be repeated here.
[0139] In one possible implementation, the specific manner in which the computer device adjusts the initial order may include, but is not limited to, the following manner: adjusting the initial order based on a size relationship to obtain a candidate order associated with the data block to be processed. If the candidate order is less than or equal to a third restricted order, the sum of the candidate order and the third adjustment step is determined as the target order. If the candidate order is greater than or equal to a fourth restricted order, the difference between the candidate order and the third adjustment step is determined as the target order; the third restricted order is less than the fourth restricted order. If the candidate order is greater than the third restricted order and less than the fourth restricted order, the candidate order is determined as the target order.
[0140] The computer device can adjust the initial order based on the size relationship to obtain a candidate order associated with the data block to be processed. The specific process for adjusting the initial order can be found in the process for adjusting the initial order described above. The computer device can detect the relationship between the candidate order associated with the data block to be processed and the third and fourth limiting orders, and adjust the candidate order based on the relationship to obtain a target order associated with the data block to be processed. The third and fourth limiting orders are used to constrain the target order to be within a reasonable order range, with the third limiting order being less than the fourth limiting order. If the candidate order is less than or equal to the third limiting order, it can be determined that the candidate order is too small, and the sum of the candidate order and the third adjustment step size can be determined as the target order. Alternatively, if the candidate order is less than or equal to the third limiting order, a first preset order can be used as the target order. The first preset order is greater than the third limiting order and less than the fourth limiting order, i.e., the first preset order is within a reasonable order range. If the candidate order is greater than or equal to the fourth limiting order, the difference between the candidate order and the third adjustment step size can be determined as the target order. Alternatively, if the candidate order is greater than or equal to the fourth limiting order, the second preset order can be determined as the target order. If the second preset order is greater than the third limiting order and less than the fourth limiting order, the second preset order is within a reasonable order range. If the candidate order is greater than the third limiting order and less than the fourth order, it indicates that the candidate order is within a reasonable order range, and the candidate order is not adjusted, and the candidate order is determined as the target order.
[0141] It should be noted that the above specific content can refer to the process of determining the target coding parameters based on the encoded data blocks with adjacent relationships in Figure 2, that is, the process of the decoding device determining the target decoding parameters based on the encoded data blocks is the same as the process of the encoding device determining the target coding parameters based on the encoded data blocks.
[0142] In one possible implementation, the encoded data in the data block to be processed includes first encoded data and second encoded data, and the attribute types of the first encoded data and the second encoded data are different; the target decoding parameters of the data block to be processed include first decoding parameters and second decoding parameters, the first decoding parameters are used to decode the first encoded data, and the second decoding parameters are used to decode the second encoded data; the first decoding parameters are different from the second decoding parameters.
[0143] In one possible implementation, the first coded data includes first sub-coded data, second sub-coded data, and third sub-coded data; the first decoding parameter is determined based on the sub-signal characteristics corresponding to the first sub-coded data, the second sub-coded data, and the third sub-coded data, respectively; or, the decoding parameters corresponding to the first sub-coded data, the second sub-coded data, and the third sub-coded data, respectively, are determined as the first decoding parameter; or, the decoding parameter corresponding to the associated information associated with the first coded data is the first decoding parameter.
[0144] In one possible implementation, the first encoded data includes first sub-encoded data, second sub-encoded data, and third sub-encoded data, and the first decoding parameters include a first sub-decoding parameter corresponding to the first sub-encoded data, a second sub-decoding parameter corresponding to the second sub-encoded data, and a third sub-decoding parameter corresponding to the third sub-encoded data; the first sub-decoding parameter is determined based on the sub-signal characteristics corresponding to the first sub-encoded data; the second sub-decoding parameter is determined based on the first sub-decoding parameter and the parameter offset; and the third sub-decoding parameter is determined based on the second sub-decoding parameter and the parameter offset.
[0145] The above content can refer to the description in Figure 2 above. The way in which the encoding device determines the target encoding parameters of the data block to be processed is the same as the way in which the decoding device determines the target decoding parameters of the encoded data of the data block to be processed. The embodiments of the present application will not be repeated here.
[0146] S203: Decode the encoded data according to the target decoding parameters to obtain a decoded signal of the data block to be processed.
[0147] The computer device can decode the encoded data according to the target decoding parameters to obtain a decoded signal for the data block to be processed. The decoded signal is used to reflect the media attributes of the data block to be processed. The media attributes of the data block to be processed may include geometric position information, color, reflectivity, classification value, intensity value, time, material characteristics, and texture information. The decoded signal can be obtained by performing attribute prediction, attribute transformation, attribute prediction transformation, or attribute transformation prediction on the media attributes of the data block to be processed, such as geometric prediction residuals, attribute prediction residuals, or attribute transformation coefficients.
[0148] In one possible implementation, the coded data of the data block to be processed includes a coding tag and a signal threshold. A specific method for a computer device to decode the coded data may include: if the coded data of the data block to be processed includes a first coding tag, decoding the coded data according to a target decoding parameter to obtain an initial decoded signal, and summing the initial decoded signal according to the signal threshold to obtain a decoded signal of the data block to be processed; the first coding tag is used to indicate that the decoded signal of the data block to be processed is different from the signal threshold. If the coded data of the data block to be processed includes a second coding tag, determining the signal threshold as the decoded signal of the data block to be processed; and the second coding tag is used to indicate that the decoded signal of the data block to be processed is the same as the signal threshold.
[0149] Specifically, if the computer device detects that the coded data of the data block to be processed includes a coding tag and a signal threshold, the computer device may detect whether the coding tag in the coded data of the data block to be processed is a first coding tag. If the coding tag in the coded data is the first coding tag, the first coding tag indicates that the decoded signal of the data block to be processed is different from the signal threshold. The computer device may decode the coded data corresponding to the data block to be processed according to the target decoding parameter to obtain an initial decoded signal. Furthermore, the computer device may sum the initial decoded signal according to the signal threshold to obtain a decoded signal of the data block to be processed. For example, if the encoding device uses signal difference = signal value of the signal to be encoded - (m+1) to encode the coded signal of the data block to be processed, the decoding device may use the sum of the initial decoded signal and m+1 as the decoded signal of the data block to be processed, where m is the signal threshold. If the coding tag included in the coded data of the data block to be processed is a second coding tag, the second coding tag indicates that the decoded signal of the data block to be processed is the same as the signal threshold. The computer device may determine the signal threshold as the decoded signal of the data block to be processed.
[0150] In an embodiment of the present application, a data block in point cloud data can be used as a data block to be processed, and the coded data of the data block to be processed is obtained by encoding the signal to be coded in the data block to be processed according to a target coding parameter. The target coding parameter is the coding parameter of the data block to be processed under the coding mode of non-equal length coding, and the target coding parameter is determined based on the signal characteristics of the signal to be coded. The coded data of the data block to be processed here refers to the number of bits used to describe the coded data of the data block to be processed, that is, the coded data of the data block to be processed refers to the length of the coded data of the data block to be processed. In other words, by adaptively determining how many codes (i.e., bits) are needed to describe the coded data of the data block to be processed based on the signal characteristics of the signal to be coded in the data block to be processed, that is, data blocks with different signal characteristics have different codes (i.e., different bits), which can effectively reduce the redundancy of the coded data of the data block to be processed, that is, it can reduce the length of the coded data of the data block to be processed, and at the same time, it can improve the transmission efficiency of the coded data of the data block to be processed. Furthermore, after the decoding device receives the encoded data of the data block to be processed, it can decode the encoded data of the data block to be processed according to the target decoding parameters to obtain the decoded signal of the data block to be processed. The target decoding parameters are determined by the above-mentioned target encoding parameters. Since the redundancy of the encoded data of the data block to be processed is relatively low, the decoded signal of the data block to be processed can be quickly decoded, thereby improving the decoding efficiency.
[0151] Please refer to Figure 6, which is a schematic diagram of the structure of a point cloud data decoding device provided in an embodiment of the present application. The above-mentioned point cloud data decoding device can be a computer program (including program code) running on a computer device, for example, the point cloud data decoding device is an application software; the point cloud data decoding device can be used to execute the corresponding steps of the point cloud data decoding method provided in an embodiment of the present application. As shown in Figure 6, the point cloud data decoding device may include: a first acquisition module 11, a first determination module 12, and a decoding module 13.
[0152] A first acquisition module 11 is configured to acquire coded data of a data block to be processed in the point cloud data; the coded data of the data block to be processed is obtained by encoding a signal to be encoded in the data block to be processed according to a target coding parameter, wherein the target coding parameter is a coding parameter of the data block to be processed under a non-equal-length coding mode, and the target coding parameter is determined based on a signal characteristic of the signal to be encoded;
[0153] A first determining module 12 is configured to determine a target decoding parameter of the data block to be processed according to the target encoding parameter;
[0154] The decoding module 13 is configured to decode the coded data of the data block to be processed according to the target decoding parameters to obtain a decoded signal of the data block to be processed; the decoded signal is used to reflect the media attributes of the data block to be processed.
[0155] The first determining module 12 includes:
[0156] The first query unit 1201 is configured to obtain target encoding parameters corresponding to the data block to be processed from a parameter set corresponding to the point cloud data;
[0157] The first determining unit 1202 is configured to determine the target encoding parameter as the target decoding parameter.
[0158] It is understandable that the first determining module 12 determines the target decoding parameters of the data block to be processed according to the target encoding parameters, including:
[0159] If the parameter determination method of the target encoding parameter is based on a query parameter table, obtaining a signal range value of the signal to be encoded;
[0160] Determining, according to a signal range value of the signal to be encoded, a to-be-processed index value corresponding to the to-be-processed data block;
[0161] Querying a decoding parameter associated with the to-be-processed index value from a first parameter table, wherein the first parameter table includes at least one index value and a decoding parameter associated with each index value in the at least one index value;
[0162] The decoding parameters obtained by the query are determined as the target decoding parameters.
[0163] It is understandable that the first determining module 12 determines the target decoding parameters of the data block to be processed according to the target encoding parameters, including:
[0164] If the parameter determination method of the target coding parameter is a method based on data blocks with a neighboring relationship, obtaining a signal range value of the signal to be encoded;
[0165] determining an initial decoding parameter of the data block to be processed according to a signal range value of the signal to be encoded;
[0166] Acquire a decoded data block in the point cloud data that is adjacent to the data block to be processed;
[0167] The initial decoding parameters are adjusted according to the decoded signal of the decoded data to obtain the target decoding parameters.
[0168] It is understandable that the initial decoding parameter is an initial order; the first determination module 12 adjusts the initial decoding parameter according to the decoded signal of the decoded data to obtain the target decoding parameter, including:
[0169] determining a final signal value of a decoded signal of the decoded data block;
[0170] Determining a first limiting order and a second limiting order according to the initial order, wherein the first limiting order is smaller than the second limiting order;
[0171] Obtaining a magnitude relationship between the final signal value and the first limiting order and the second limiting order;
[0172] Adjusting the initial order according to the size relationship to obtain a target order associated with the data block to be processed;
[0173] The target order is determined as the target decoding parameter.
[0174] It is understandable that the first determining module 12 adjusts the initial order according to the size relationship to obtain the target order associated with the data block to be processed, including:
[0175] If the magnitude relationship indicates that the final signal value is smaller than the first limiting order, determining the sum of the initial order and the first adjustment step as the target order;
[0176] If the magnitude relationship indicates that the final signal value is greater than the second limiting order, determining the difference between the initial order and the first adjustment step as the target order;
[0177] If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
[0178] It is understandable that the first determining module 12 adjusts the initial order according to the size relationship to obtain the target order associated with the data block to be processed, including:
[0179] Obtaining decoding parameters corresponding to the decoded data block; the decoding parameters of the decoded data block include a historical order of the decoded data block;
[0180] If the magnitude relationship indicates that the final signal value is smaller than the first limiting order, determining the sum of the historical order and the second adjustment step as the target order;
[0181] If the magnitude relationship indicates that the final signal value is greater than the second limiting order, determining the difference between the historical order and the second adjustment step as the target order;
[0182] If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
[0183] It is understandable that the first determining module 12 adjusts the initial order according to the size relationship to obtain the target order associated with the data block to be processed, including:
[0184] Adjusting the initial order according to the size relationship to obtain a candidate order associated with the data block to be processed;
[0185] If the candidate order is less than or equal to the third restricted order, the sum of the candidate order and the third adjustment step is determined as the target order;
[0186] If the candidate order is greater than or equal to a fourth limiting order, the difference between the candidate order and the third adjustment step is determined as the target order; and the third limiting order is less than the fourth limiting order;
[0187] If the candidate order is greater than the third restricted order and less than the fourth restricted order, the candidate order is determined as the target order.
[0188] It is understandable that the signal range value of the signal to be encoded is determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed; or,
[0189] The signal range value of the signal to be encoded is determined based on the sampling accuracy of the signal to be encoded in the data block to be processed.
[0190] It is understandable that the coded data of the data block to be processed includes first coded data and second coded data, and the attribute types of the first coded data and the second coded data are different;
[0191] The target decoding parameters include a first decoding parameter and a second decoding parameter, the first decoding parameter is used to decode the first encoded data, and the second decoding parameter is used to decode the second encoded data; the first decoding parameter is different from the second decoding parameter.
[0192] It is understandable that the first coded data includes first sub-coded data, second sub-coded data and third sub-coded data;
[0193] The first decoding parameter is determined based on sub-signal features corresponding to the first sub-coded data, the second sub-coded data, and the third sub-coded data respectively;
[0194] Alternatively, decoding parameters corresponding to the first sub-coded data, the second sub-coded data, and the third sub-coded data are determined as the first decoding parameters;
[0195] Alternatively, a decoding parameter corresponding to the associated information associated with the first encoded data is determined as the first decoding parameter.
[0196] It can be understood that the first coded data includes first sub-coded data, second sub-coded data, and third sub-coded data, and the first decoding parameter includes a first sub-decoding parameter corresponding to the first sub-coded data, a second sub-decoding parameter corresponding to the second sub-coded data, and a third sub-decoding parameter corresponding to the third sub-coded data;
[0197] The first sub-decoding parameter is determined based on a sub-signal feature corresponding to the first sub-encoded data;
[0198] The second sub-decoding parameter is determined based on the first sub-decoding parameter and a parameter offset;
[0199] The third sub-decoding parameter is determined based on the second sub-decoding parameter and the parameter offset.
[0200] The coded data of the data block to be processed includes a coding label and a signal threshold; the decoding module 13 includes:
[0201] A first decoding unit 1301 is configured to, if the coding tag included in the coded data of the data block to be processed is a first coding tag, decode the coded data according to the target decoding parameter to obtain an initial decoded signal; and sum the initial decoded signals according to a signal threshold to obtain a decoded signal of the data block to be processed; the first coding tag is used to indicate that the decoded signal of the data block to be processed is different from the signal threshold;
[0202] The second decoding unit 1302 is configured to determine the signal threshold as the decoded signal of the data block to be processed if the coding tag included in the coded data of the data block to be processed is a second coding tag; the second coding tag is used to indicate that the decoded signal of the data block to be processed is the same as the signal threshold.
[0203] According to one embodiment of the present application, the various modules in the decoding device for point cloud data shown in Figure 6 can be individually or entirely combined into one or several units to constitute, or one (or some) of the units can be further divided into multiple functionally smaller sub-units to achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above modules are divided based on logical functions. In actual applications, the functions of a module can also be implemented by multiple units, or the functions of multiple modules can be implemented by one unit. In other embodiments of the present application, the decoding device for point cloud data may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0204] In the present application, the coded data of the data block to be processed in the point cloud data is obtained by encoding the signal to be coded in the data block to be processed according to the target coding parameters of the data block to be processed under the coding mode of non-equal length coding, and the target coding parameters are determined based on the signal characteristics of the signal to be coded in the data block to be processed. The coded data of the data block to be processed here refers to the number of bits used to describe the coded data of the data block to be processed, that is, the coded data of the data block to be processed refers to the length of the coded data of the data block to be processed. In other words, by adaptively determining how many codes are needed to describe the coded data of the data block to be processed based on the signal characteristics of the signal to be coded in the data block to be processed, that is, data blocks with different signal characteristics have different codes, which can effectively reduce the redundancy of the coded data of the data block to be processed, that is, can reduce the length of the coded data of the data block to be processed, and at the same time, can improve the transmission efficiency of the coded data of the data block to be processed. Furthermore, after the decoding device receives the encoded data of the data block to be processed, it can decode the encoded data of the data block to be processed according to the target decoding parameters to obtain the decoded signal of the data block to be processed. The target decoding parameters are determined by the above-mentioned target encoding parameters. Since the redundancy of the encoded data of the data block to be processed is relatively low, the decoded signal of the data block to be processed can be quickly decoded, thereby improving the decoding efficiency.
[0205] Please refer to Figure 7, which is a schematic diagram of the structure of a point cloud data encoding device provided in an embodiment of the present application. The above-mentioned point cloud data encoding device can be a computer program (including program code) running on a computer device. For example, the point cloud data encoding device is an application software; the point cloud data encoding device can be used to execute the corresponding steps of the point cloud data encoding method provided in an embodiment of the present application. As shown in Figure 7, the point cloud data encoding device may include: a second acquisition module 21 and a second determination module 22, an encoding module 23, and a third determination module 24.
[0206] The second acquisition module 21 is used to obtain the signal to be encoded in the data block to be processed in the point cloud data, as well as the signal characteristics of the signal to be encoded; the encoding method of the point cloud data is a non-equal-length encoding method, and the signal to be encoded is used to reflect the media attributes of the data block to be processed;
[0207] A second determining module 22 is configured to determine target coding parameters of the data block to be processed under the coding mode according to the signal characteristics of the signal to be coded;
[0208] The encoding module 23 is configured to encode the signal to be encoded according to target encoding parameters to obtain encoded data of the data block to be processed.
[0209] The signal characteristics of the signal to be encoded include a signal range value of the signal to be encoded; the signal range value is determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed; or,
[0210] The signal range value is determined based on the sampling accuracy of the signal to be encoded.
[0211] The second determining module 22 includes:
[0212] The generating unit 2201 is configured to quantize the signal range value included in the signal feature to obtain the quantized signal range value; obtain the logarithm of the quantized signal range value, perform difference processing on the logarithm to obtain the to-be-processed index value corresponding to the to-be-processed data block;
[0213] A second query unit 2202 is configured to query a coding parameter associated with an index value to be processed from a second parameter table; the second parameter table includes at least one index value and a coding parameter associated with each of the at least one index value; the number of index values included in the second parameter table is the same as the number of data blocks included in the first data group; the first data group is a data group including data blocks to be processed in at least two data groups; the at least two data groups are data groups included in the point cloud data; the index value to be processed belongs to a range of index values to be processed; and the range of index values to be processed is determined based on the at least one index value in the second parameter table;
[0214] The second determining unit 2203 is configured to determine the encoding parameter obtained by the query as the target encoding parameter.
[0215] The second determining module 22 includes:
[0216] The third determining unit 2204 is configured to determine initial coding parameters of the data block to be processed in the coding mode according to the signal characteristics of the signal to be coded;
[0217] An acquiring unit 2205 is configured to acquire, from the point cloud data, an encoded data block that is adjacent to the data block to be processed;
[0218] The adjusting unit 2206 is configured to adjust the initial coding parameters according to the coded data of the coded data block to obtain target coding parameters.
[0219] Among them, the initial encoding parameter is the initial order;
[0220] The adjustment unit 2206 is specifically configured to:
[0221] determining a final coded value of the coded data of the coded data block;
[0222] Determining a first limiting order and a second limiting order according to the initial order, wherein the first limiting order is smaller than the second limiting order;
[0223] Obtaining the magnitude relationship between the final encoding value and the first restriction order and the second restriction order;
[0224] Adjust the initial order according to the size relationship to obtain the target order associated with the data block to be processed;
[0225] The target order is determined as a target encoding parameter.
[0226] The adjustment unit 2206 is specifically configured to:
[0227] If the magnitude relationship indicates that the final code value is less than the first restricted order, the sum of the initial order and the first adjustment step is determined as the target order;
[0228] If the magnitude relationship indicates that the final code value is greater than the second restricted order, determining the difference between the initial order and the first adjustment step size as the target order;
[0229] If the magnitude relationship indicates that the final code value is greater than or equal to the first restricted order and less than or equal to the second restricted order, the initial order is determined as the target order.
[0230] The adjustment unit 2206 is specifically configured to:
[0231] Obtaining encoding parameters corresponding to the encoded data block; the encoding parameters of the encoded data block include a history order of the encoded data block;
[0232] If the magnitude relationship indicates that the final code value is less than the first restricted order, the sum of the historical order and the second adjustment step is determined as the target order;
[0233] If the magnitude relationship indicates that the final code value is greater than the second restricted order, the difference between the historical order and the second adjustment step is determined as the target order;
[0234] If the magnitude relationship indicates that the final code value is greater than or equal to the first restricted order and less than or equal to the second restricted order, the initial order is determined as the target order.
[0235] The adjustment unit 2206 is specifically configured to:
[0236] Adjust the initial order according to the size relationship to obtain the candidate order associated with the data block to be processed;
[0237] If the candidate order is less than or equal to the third restricted order, the sum of the candidate order and the third adjustment step is determined as the target order;
[0238] If the candidate order is greater than or equal to the fourth restricted order, the difference between the candidate order and the third adjustment step is determined as the target order; the third restricted order is less than the fourth restricted order;
[0239] If the candidate order is greater than the third restricted order and less than the fourth restricted order, the candidate order is determined as the target order.
[0240] The final coded value is the average of all coded values in the coded data of the coded data block; or
[0241] The final coded value is the average of the non-zero coded values in the coded data of the coded data block.
[0242] The point cloud data includes at least two data groups, and the data blocks to be processed belong to the first data group of the at least two data groups; the encoding parameters corresponding to the data blocks in the first data group are all target encoding parameters;
[0243] The encoded data block belongs to a second data group among the at least two data groups, and the second data group is adjacent to the first data group.
[0244] wherein at least two data groups are obtained by grouping the data blocks according to positions of the data blocks in the point cloud data; or,
[0245] At least two data groups are obtained by grouping according to Hilbert transform codes corresponding to data blocks in the point cloud data; the Hilbert transform codes corresponding to data blocks in the point cloud data are obtained by performing Hilbert transform on the position of each data block in the point cloud data; or,
[0246] At least two data groups are obtained by dividing the point cloud data according to a division size; or,
[0247] The at least two data groups are obtained by dividing the point cloud data according to the target limit number and the encoding order of the data blocks.
[0248] The signal to be encoded in the data block to be processed includes one or more of a geometric prediction residual, an attribute prediction residual, and an attribute transformation coefficient;
[0249] The signal to be encoded includes a first signal to be encoded and a second signal to be encoded, and the first signal to be encoded and the second signal to be encoded have different attribute types;
[0250] The target coding parameters include a first coding parameter and a second coding parameter, the first coding parameter is used to encode the first signal to be encoded, and the second coding parameter is used to encode the second signal to be encoded; the first coding parameter is different from the second coding parameter.
[0251] The first signal to be encoded includes a first sub-encoded signal, a second sub-encoded signal, and a third sub-encoded signal;
[0252] The first coding parameter is determined based on sub-signal features corresponding to the first sub-coded signal, the second sub-coded signal, and the third sub-coded signal respectively;
[0253] Alternatively, the coding parameters corresponding to the first sub-coded signal, the second sub-coded signal, and the third sub-coded signal are determined as the first coding parameters;
[0254] Alternatively, the coding parameter corresponding to the associated information of the first signal to be coded is determined as the first coding parameter.
[0255] The first signal to be encoded includes a first sub-coding signal, a second sub-coding signal, and a third sub-coding signal, and the first coding parameter includes a first sub-coding parameter corresponding to the first sub-coding signal, a second sub-coding parameter corresponding to the second sub-coding signal, and a third sub-coding parameter corresponding to the third sub-coding signal;
[0256] The first sub-coding parameter is determined based on a sub-signal feature corresponding to the first sub-coding signal;
[0257] The second sub-coding parameter is determined based on the first sub-coding parameter and the parameter offset;
[0258] The third sub-coding parameter is determined based on the second sub-coding parameter and the parameter offset.
[0259] The number of signals to be encoded in the data block to be processed is M, where M is a positive integer.
[0260] The encoding module 23 includes:
[0261] The encoding unit 2301 is configured to encode the signal to be encoded according to the first encoding tag and the target encoding parameter to obtain encoded data of the signal to be encoded if the signal to be encoded is different from the signal threshold; the signal to be encoded is one of M signals to be encoded, the signal threshold is the signal to be encoded that appears the most times among the M signals to be encoded, the first encoding tag is used to indicate that the signal to be encoded is different from the signal threshold, and i is a positive integer less than or equal to M;
[0262] The fourth determining unit 2302 is configured to determine the coded data respectively corresponding to the M signals to be coded as the coded data of the data block to be processed if the coded data respectively corresponding to the M signals to be coded are acquired.
[0263] The point cloud data encoding device further includes:
[0264] The third determining module 24 is configured to determine the second coding tag as the coding data of the signal to be coded if the signal to be coded is the same as the signal threshold; the second coding tag is used to indicate that the signal to be coded is the same as the signal threshold.
[0265] The encoding unit 2301 is specifically used for:
[0266] If the signal to be encoded is different from the signal threshold, a first encoding tag is generated, where the first encoding tag is used to indicate that the signal to be encoded is different from the signal threshold;
[0267] According to the signal threshold, the signal to be coded is subjected to difference processing to obtain the signal difference value;
[0268] The signal difference is encoded according to the target encoding parameter to obtain a signal encoding value of the signal to be encoded, and the signal encoding value and the first encoding label are determined as the encoding data of the data block to be processed.
[0269] According to one embodiment of the present application, the various modules in the encoding device for point cloud data shown in Figure 7 can be individually or entirely combined into one or several units to constitute, or one (or some) of the units can be further divided into multiple functionally smaller sub-units to achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above modules are divided based on logical functions. In actual applications, the functions of a module can also be implemented by multiple units, or the functions of multiple modules can be implemented by one unit. In other embodiments of the present application, the encoding device for point cloud data may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0270] In an embodiment of the present application, a signal to be encoded within a data block to be processed in point cloud data and its signal characteristics are obtained. The point cloud data is encoded using a non-equal-length encoding method, and the signal to be encoded is used to reflect the media attributes of the data block to be processed. Thus, using a non-equal-length encoding method can reduce the amount of encoded data in the data block to be processed. Based on the signal characteristics of the signal to be encoded within the data block to be processed, target encoding parameters for the data block to be processed are determined under the encoding method. The encoded data of the data block to be processed here refers to the number of bits used to describe the encoded data of the data block to be processed, that is, the encoded data of the data block to be processed refers to the length of the encoded data of the data block to be processed. The signal to be encoded within the data block to be processed is encoded according to the target encoding parameters to obtain the encoded data of the data block to be processed. Thus, using accurate target encoding parameters to encode the signal to be encoded within the data block to be processed can achieve the goal of representing the signal to be encoded with fewer codes, thereby reducing the amount of encoded data corresponding to the data block to be processed, reducing network transmission pressure, and also reducing the pressure on the decoding device receiving the encoded data, while also improving the decoding efficiency of the encoded data. In other words, by adaptively determining how many codes are needed to describe the coded data of the data block to be processed based on the signal characteristics of the signal to be coded in the data block to be processed, that is, data blocks with different signal characteristics have different codes, this can effectively reduce the redundancy of the coded data of the data block to be processed, that is, it can reduce the length of the coded data of the data block to be processed, and at the same time, it can improve the transmission efficiency of the coded data of the data block to be processed.
[0271] Please refer to Figure 8, which is a structural diagram of a computer device provided in an embodiment of the present application. As shown in Figure 8, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. In one possible implementation, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. In one possible implementation, the memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. As shown in FIG8 , the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0272] In the computer device 1000 shown in FIG8 , the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0273] Obtaining encoded data of a data block to be processed in the point cloud data; the encoded data of the data block to be processed is obtained by encoding the signal to be encoded in the data block to be processed according to target encoding parameters, the target encoding parameters being encoding parameters of the data block to be processed under a non-equal-length encoding mode, and the target encoding parameters being determined based on signal characteristics of the signal to be encoded;
[0274] Determining target decoding parameters of the data block to be processed according to the target encoding parameters;
[0275] The coded data of the data block to be processed is decoded according to the target decoding parameters to obtain a decoded signal of the data block to be processed; the decoded signal is used to reflect the media attributes of the data block to be processed.
[0276] It should be understood that the computer device 1000 described in the embodiments of the present application can implement the method for decoding point cloud data described in the embodiment corresponding to FIG. 5 above, and can also implement the device for decoding point cloud data described in the embodiment corresponding to FIG. 7 above, and thus, these descriptions are omitted here. Furthermore, the descriptions of the beneficial effects of employing the same method are also omitted here.
[0277] Please refer to Figure 9, which is a structural diagram of a computer device provided in an embodiment of the present application. As shown in Figure 9, the computer device 2000 may include: a processor 2001, a network interface 2004 and a memory 2005. In addition, the above-mentioned computer device 2000 may also include: a user interface 2003, and at least one communication bus 2002. Among them, the communication bus 2002 is used to realize the connection and communication between these components. Among them, the user interface 2003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 2003 may also include a standard wired interface and a wireless interface. In one possible implementation, the network interface 2004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 2005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. In one possible implementation, the memory 2005 may also be at least one storage device located away from the aforementioned processor 2001. As shown in FIG9 , the memory 2005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0278] In the computer device 2000 shown in FIG9 , the network interface 2004 can provide network communication functions; the user interface 2003 is mainly used to provide an interface for user input; and the processor 2001 can be used to call the device control application stored in the memory 2005 to achieve:
[0279] Obtaining the signal to be encoded in the data block to be processed in the point cloud data, as well as the signal characteristics of the signal to be encoded; the encoding method of the point cloud data is a non-equal-length encoding method, and the signal to be encoded is used to reflect the media attributes of the data block to be processed;
[0280] Determining target encoding parameters of the data block to be processed under the encoding mode according to the signal characteristics of the signal to be encoded;
[0281] The signal to be coded is encoded according to the target coding parameters to obtain coded data of the data block to be processed.
[0282] It should be understood that the computer device 2000 described in the embodiments of the present application can implement the method for encoding point cloud data described in the embodiment corresponding to FIG. 2 above, and can also implement the device for encoding point cloud data described in the embodiment corresponding to FIG. 6 above, and thus, these descriptions are omitted here. Furthermore, the descriptions of the beneficial effects of employing the same method are also omitted here.
[0283] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the decoding device of the point cloud data mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the decoding method of point cloud data in the embodiment corresponding to Figure 5 above, or the description of the encoding method of point cloud data in the embodiment corresponding to Figure 2. Therefore, it will not be repeated here.
[0284] In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computing device for execution, or executed on multiple computing devices located at one location, or executed on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.
[0285] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor can execute the computer program, so that the computer device executes the decoding method of point cloud data in the embodiment corresponding to Figure 5 above, or the description of the encoding method of point cloud data in the embodiment corresponding to Figure 2, so they will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0286] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0287] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0288] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0289] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0290] The above disclosure is merely a preferred embodiment of the present invention and certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for decoding point cloud data, the method being executed by a computer device, comprising: Obtaining the encoded data of the data block to be processed in the point cloud data; The coded data of the data block to be processed is obtained by encoding the signal to be coded in the data block to be processed according to a target coding parameter, wherein the target coding parameter is a coding parameter of the data block to be processed in a coding mode of non-equal length coding, and the target coding parameter is determined based on a signal feature of the signal to be coded; Determining target decoding parameters of the data block to be processed according to the target encoding parameters; The encoded data of the data block to be processed is decoded according to the target decoding parameter to obtain a decoded signal of the data block to be processed; the decoded signal is used to reflect the media attribute of the data block to be processed.
2. The method according to claim 1, before determining the target decoding parameters of the data block to be processed according to the target encoding parameters, the method further comprises: Acquire the target encoding parameters from a parameter set corresponding to the point cloud data; Determining the target decoding parameters of the data block to be processed according to the target encoding parameters includes: The target encoding parameter is determined as the target decoding parameter.
3. The method according to claim 1, wherein determining the target decoding parameters of the data block to be processed according to the target encoding parameters comprises: If the parameter determination method of the target coding parameter is based on a query parameter table, obtaining a signal range value of the signal to be encoded; Determining, according to a signal range value of the signal to be encoded, an index value to be processed corresponding to the data block to be processed; Querying a decoding parameter associated with the to-be-processed index value from a first parameter table, wherein the first parameter table includes at least one index value and a decoding parameter associated with each index value in the at least one index value; The decoding parameters obtained by the query are determined as the target decoding parameters.
4. The method according to claim 1, wherein determining the target decoding parameters of the data block to be processed according to the target encoding parameters comprises: If the parameter determination method of the target coding parameter is based on data blocks having a neighboring relationship, obtaining a signal range value of the signal to be encoded; Determining an initial decoding parameter of the data block to be processed according to a signal range value of the signal to be encoded; Acquire a decoded data block in the point cloud data that is adjacent to the data block to be processed; The initial decoding parameters are adjusted according to the decoded signal of the decoded data to obtain the target decoding parameters.
5. The method according to claim 4, wherein the initial decoding parameter is an initial order; and the step of adjusting the initial decoding parameter according to the decoded signal of the decoded data to obtain the target decoding parameter comprises: determining a final signal value of a decoded signal of the decoded data block; Determine a first limiting order and a second limiting order according to the initial order, wherein the first limiting order is smaller than the second limiting order; Acquire the magnitude relationship between the final signal value and the first limiting order and the second limiting order; Adjusting the initial order according to the size relationship to obtain a target order associated with the data block to be processed; The target order is determined as the target decoding parameter.
6. The method according to claim 5, wherein the initial order is adjusted according to the size relationship to obtain a target order associated with the data block to be processed, comprising: If the magnitude relationship indicates that the final signal value is less than the first limiting order, determining the sum of the initial order and the first adjustment step as the target order; If the magnitude relationship indicates that the final signal value is greater than the second limiting order, determining the difference between the initial order and the first adjustment step as the target order; If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
7. The method according to claim 5, wherein the initial order is adjusted according to the size relationship to obtain a target order associated with the data block to be processed, comprising: Obtaining decoding parameters corresponding to the decoded data block; The decoding parameters of the decoded data block include the history order of the decoded data block; If the magnitude relationship indicates that the final signal value is less than the first limiting order, the sum of the historical order and the second adjustment step is determined as the target order; If the magnitude relationship indicates that the final signal value is greater than the second limiting order, determining the difference between the historical order and the second adjustment step as the target order; If the magnitude relationship indicates that the final signal value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
8. The method according to claim 5, wherein the initial order is adjusted according to the size relationship to obtain a target order associated with the data block to be processed, comprising: Adjusting the initial order according to the size relationship to obtain a candidate order associated with the data block to be processed; If the candidate order is less than or equal to the third restricted order, the sum of the candidate order and the third adjustment step is determined as the target order; If the candidate order is greater than or equal to the fourth restricted order, the difference between the candidate order and the third adjustment step is determined as the target order; the third restricted order is less than the fourth restricted order; If the candidate order is greater than the third restricted order and less than the fourth restricted order, the candidate order is determined as the target order.
9. The method according to any one of claims 3 to 8, wherein the signal range value of the signal to be encoded is determined based on the maximum signal to be encoded and the minimum signal to be encoded in the data block to be processed; or The signal range value of the signal to be encoded is determined based on the sampling accuracy of the signal to be encoded in the data block to be processed.
10. The method according to claim 1, wherein the coded data of the data block to be processed comprises first coded data and second coded data, and the first coded data and the second coded data have different attribute types; The target decoding parameters include a first decoding parameter and a second decoding parameter, the first decoding parameter is used to decode the first encoded data, and the second decoding parameter is used to decode the second encoded data; the first decoding parameter is different from the second decoding parameter.
11. The method according to claim 10, wherein the first coded data comprises first sub-coded data, second sub-coded data and third sub-coded data; The first decoding parameter is determined based on sub-signal features corresponding to the first sub-coded data, the second sub-coded data, and the third sub-coded data respectively; Alternatively, the decoding parameters respectively corresponding to the first sub-coded data, the second sub-coded data and the third sub-coded data are determined as the first decoding parameters; Alternatively, a decoding parameter corresponding to the associated information associated with the first encoded data is determined as the first decoding parameter.
12. The method according to claim 11, wherein the first coded data comprises first sub-coded data, second sub-coded data and third sub-coded data, and the first decoding parameter comprises a first sub-decoding parameter corresponding to the first sub-coded data, a second sub-decoding parameter corresponding to the second sub-coded data and a third sub-decoding parameter corresponding to the third sub-coded data; The first sub-decoding parameter is determined based on a sub-signal feature corresponding to the first sub-encoded data; The second sub-decoding parameter is determined based on the first sub-decoding parameter and a parameter offset; The third sub-decoding parameter is determined based on the second sub-decoding parameter and the parameter offset.
13. The method according to claim 1, wherein the coded data of the data block to be processed includes a coding label and a signal threshold; The step of decoding the encoded data of the data block to be processed according to the target decoding parameter to obtain a decoded signal of the data block to be processed includes: If the coding tag included in the coded data of the data block to be processed is the first coding tag, decoding the coded data according to the target decoding parameter to obtain an initial decoding signal; The initial decoded signal is summed according to a signal threshold to obtain a decoded signal of the data block to be processed; the first coding tag is used to indicate that the decoded signal of the data block to be processed is different from the signal threshold; If the coding tag included in the coded data of the data block to be processed is a second coding tag, the signal threshold is determined as the decoded signal of the data block to be processed; the second coding tag is used to indicate that the decoded signal of the data block to be processed is the same as the signal threshold.
14. A method for encoding point cloud data, the method being executed by a computer device, comprising: Acquire a signal to be encoded in a data block to be processed in the point cloud data, and a signal characteristic of the signal to be encoded; the encoding method of the point cloud data is a non-equal-length encoding method, and the signal to be encoded is used to reflect the media attribute of the data block to be processed; Determining target coding parameters of the data block to be processed under the coding mode according to the signal characteristics of the signal to be coded; The signal to be encoded is encoded according to the target encoding parameter to obtain encoded data of the data block to be processed.
15. The method according to claim 14, wherein the signal characteristic of the signal to be encoded comprises a signal range value of the signal to be encoded; the signal range value is determined based on a maximum signal to be encoded and a minimum signal to be encoded in the data block to be processed; or, The signal range value is determined based on the sampling accuracy of the signal to be encoded.
16. The method according to claim 15, wherein determining the target coding parameter of the data block to be processed under the coding mode according to the signal characteristics of the signal to be coded comprises: quantizing the signal range value included in the signal feature to obtain a quantized signal range value; Obtaining a logarithmic value of the quantized signal range value, performing a difference process on the logarithmic value, and obtaining a to-be-processed index value corresponding to the to-be-processed data block; Querying a coding parameter associated with the to-be-processed index value from a second parameter table; the second parameter table includes at least one index value and a coding parameter associated with each index value in the at least one index value, the number of index values included in the second parameter table is the same as the number of data blocks included in the first data group, the first data group is a data group including the to-be-processed data block in at least two data groups, the at least two data groups are data groups included in the point cloud data, the to-be-processed index value belongs to a to-be-processed index value range, and the to-be-processed index value range is determined according to at least one index value in the second parameter table; The encoding parameters obtained by the query are determined as the target encoding parameters.
17. The method according to claim 14, wherein determining the target coding parameter of the to-be-processed data block under the coding mode according to the signal characteristics of the to-be-coded signal comprises: Determining initial encoding parameters of the data block to be processed under the encoding mode according to the signal characteristics of the signal to be encoded; Acquire an encoded data block in the point cloud data that is adjacent to the data block to be processed; The initial encoding parameters are adjusted according to the encoded data of the encoded data block to obtain the target encoding parameters.
18. The method according to claim 17, wherein the initial coding parameter is an initial order; and the step of adjusting the initial coding parameter according to the coded data of the coded data block to obtain the target coding parameter comprises: determining a final coded value of the coded data of the coded data block; Determine a first limiting order and a second limiting order according to the initial order, wherein the first limiting order is smaller than the second limiting order; Obtaining a magnitude relationship between the final encoding value and the first restriction order and the second restriction order; Adjusting the initial order according to the size relationship to obtain a target order associated with the data block to be processed; The target order is determined as the target encoding parameter.
19. The method according to claim 18, wherein the initial order is adjusted according to the size relationship to obtain a target order associated with the data block to be processed, comprising: If the magnitude relationship indicates that the final encoding value is smaller than the first limiting order, determining the sum of the initial order and the first adjustment step as the target order; If the magnitude relationship indicates that the final code value is greater than the second limiting order, determining the difference between the initial order and the first adjustment step size as the target order; If the size relationship indicates that the final encoding value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
20. The method according to claim 18, wherein the initial order is adjusted according to the size relationship to obtain a target order associated with the data block to be processed, comprising: Obtaining encoding parameters corresponding to the encoded data block; The encoding parameters of the encoded data block include the history order of the encoded data block; If the magnitude relationship indicates that the final code value is smaller than the first limiting order, the sum of the historical order and the second adjustment step is determined as the target order; If the magnitude relationship indicates that the final code value is greater than the second limiting order, determining the difference between the historical order and the second adjustment step as the target order; If the size relationship indicates that the final encoding value is greater than or equal to the first limiting order and less than or equal to the second limiting order, the initial order is determined as the target order.
21. The method according to claim 18, wherein the initial order is adjusted according to the size relationship to obtain a target order associated with the data block to be processed, comprising: Adjusting the initial order according to the size relationship to obtain a candidate order associated with the data block to be processed; If the candidate order is less than or equal to the third restricted order, the sum of the candidate order and the third adjustment step is determined as the target order; If the candidate order is greater than or equal to the fourth restricted order, the difference between the candidate order and the third adjustment step is determined as the target order; the third restricted order is less than the fourth restricted order; If the candidate order is greater than the third restricted order and less than the fourth restricted order, the candidate order is determined as the target order.
22. The method according to claim 18, wherein the final coded value is an average value of all coded values in the coded data of the coded data block; or The final coded value is an average value of non-zero coded values in the coded data of the coded data block.
23. The method according to claim 17, wherein the point cloud data includes at least two data groups, the data blocks to be processed belong to a first data group of the at least two data groups; the encoding parameters corresponding to the data blocks in the first data group are all the target encoding parameters; The encoded data block belongs to a second data group among the at least two data groups, and the second data group is adjacent to the first data group.
24. The method according to claim 14, wherein the signal to be encoded in the data block to be processed comprises one or more of a geometric prediction residual, an attribute prediction residual, and an attribute transformation coefficient; The signal to be encoded includes a first signal to be encoded and a second signal to be encoded, and the first signal to be encoded and the second signal to be encoded have different attribute types; The target coding parameters include a first coding parameter and a second coding parameter, the first coding parameter is used to encode the first signal to be encoded, and the second coding parameter is used to encode the second signal to be encoded; the first coding parameter is different from the second coding parameter.
25. The method according to claim 24, wherein the first signal to be encoded comprises a first sub-encoded signal, a second sub-encoded signal and a third sub-encoded signal; The first coding parameter is determined based on sub-signal features corresponding to the first sub-coded signal, the second sub-coded signal, and the third sub-coded signal respectively; Alternatively, the coding parameters respectively corresponding to the first sub-coded signal, the second sub-coded signal, and the third sub-coded signal are determined as the first coding parameters; Alternatively, a coding parameter corresponding to the associated information of the first signal to be encoded is determined as the first coding parameter.
26. The method according to claim 24, wherein the first signal to be encoded comprises a first sub-coded signal, a second sub-coded signal and a third sub-coded signal, and the first coding parameter comprises a first sub-coded parameter corresponding to the first sub-coded signal, a second sub-coded parameter corresponding to the second sub-coded signal and a third sub-coded parameter corresponding to the third sub-coded signal; The first sub-coding parameter is determined based on a sub-signal feature corresponding to the first sub-coding signal; The second sub-coding parameter is determined based on the first sub-coding parameter and a parameter offset; The third sub-coding parameter is determined based on the second sub-coding parameter and the parameter offset.
27. The method according to claim 14, wherein encoding the signal to be encoded according to the target encoding parameter to obtain the encoded data of the data block to be processed comprises: If the signal to be encoded is different from the signal threshold, generating a first encoding tag, the first encoding tag being used to indicate that the signal to be encoded is different from the signal threshold; According to the signal threshold, performing difference processing on the signal to be encoded to obtain a signal difference value; The signal difference is encoded according to the target encoding parameter to obtain a signal encoding value of the signal to be encoded, and the signal encoding value and the first encoding label are determined as encoding data of the data block to be processed.
28. A point cloud data decoding device, the device being deployed on a computer device, comprising: A first acquisition module is used to acquire the coded data of the data block to be processed in the point cloud data; The coded data of the data block to be processed is obtained by encoding the signal to be coded in the data block to be processed according to a target coding parameter, wherein the target coding parameter is a coding parameter of the data block to be processed in a coding mode of non-equal length coding, and the target coding parameter is determined based on a signal feature of the signal to be coded; A first determination module, configured to determine a target decoding parameter of the data block to be processed according to the target encoding parameter; A decoding module is used to decode the coded data of the data block to be processed according to the target decoding parameter to obtain a decoded signal of the data block to be processed; the decoded signal is used to reflect the media attribute of the data block to be processed.
29. A point cloud data encoding device, the device being deployed on a computer device, comprising: The third acquisition module is used to obtain the signal to be encoded in the data block to be processed in the point cloud data, and the signal characteristics of the signal to be encoded; the encoding method of the point cloud data is a non-equal length encoding method, and the signal to be encoded is used to reflect the media attribute of the data block to be processed; A first determination module, configured to determine a target encoding parameter of the to-be-processed data block under the encoding mode according to a signal characteristic of the to-be-encoded signal; The encoding module is used to encode the signal to be encoded according to the target encoding parameter to obtain the encoded data of the data block to be processed.
30. A computer device comprising: Processor and memory; The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 27.
31. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 27.
32. A computer program product, comprising a computer program, which implements the method according to any one of claims 1 to 27 when executed by a computer device.
