Coding method and device for displacement information of three-dimensional mesh, decoding method and device for displacement information of three-dimensional mesh, and terminal
By selecting N displacement levels for encoding and recovery in the three-dimensional grid displacement information encoding method, the problem of low encoding efficiency of three-dimensional grid displacement data is solved, and the amount of data is reduced and the processing is simplified.
Patent Information
- Application Number
- PCT/CN2024/086906
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-17
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-24
AI Technical Summary
The encoding efficiency of 3D mesh displacement data is low and redundant, resulting in increased processing, storage and transmission complexity.
A three-dimensional grid displacement information encoding method is proposed. By obtaining N displacement levels out of M displacement levels at the encoding end, encoding is performed to obtain a displacement code stream, and restored to M displacement levels at the decoding end, reducing the amount of encoded data. , improve coding efficiency.
It effectively improves the coding efficiency of displacement data, reduces the amount of coded data, and simplifies the processing and transmission process.
Smart Images

Figure CN2024086906_24102024_PF_FP_ABST
Abstract
Description
Three-dimensional grid displacement information encoding method, decoding method, device and terminal
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202310408359.1 filed in China on April 17, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of video coding and decoding technology, and specifically relates to a three-dimensional grid displacement information encoding method, decoding method, device and terminal. Background Art
[0004] In recent years, with the rapid development of multimedia technology, 3D models have become a new generation of digital media, following audio, images, and video. 3D meshes are a commonly used representation method for 3D models. In nearly all applications using 3D meshes, the demand for higher visual quality is increasing, leading to increasingly complex and precise models. Consequently, the amount of data required to represent 3D meshes is also increasing, making the processing, visualization, transmission, and storage of 3D meshes increasingly complex. 3D mesh compression can reduce the size of model data, facilitating the processing, storage, and transmission of 3D meshes.
[0005] Displacement is a crucial component of the dynamic mesh encoding and decoding process. It stores the position information of the vertices of the subdivided meshes, along the normal direction, to their nearest neighbor in the original input mesh. However, the encoding bitrate of displacement data is high and contains redundancy, resulting in inefficient encoding and decoding of 3D mesh displacement data.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a three-dimensional grid displacement information encoding method, decoding method, device and terminal, which can solve the problem of low displacement data encoding effect in related technologies.
[0008] In a first aspect, a method for encoding three-dimensional grid displacement information is provided, which is applied to an encoding end and includes:
[0009] The encoding end obtains displacement data of the three-dimensional grid to be encoded, wherein the displacement data includes displacement vectors of M displacement levels;
[0010] The encoding end obtains N displacement levels among the M displacement levels;
[0011] The encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream;
[0012] Wherein, M and N are both positive integers, and N is smaller than M.
[0013] In a second aspect, a method for decoding three-dimensional grid displacement information is provided, which is applied to a decoding end and includes:
[0014] The decoding end obtains the displacement code stream;
[0015] The decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels;
[0016] The decoding end restores the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data;
[0017] Wherein, M and N are both positive integers, and N is smaller than M.
[0018] In a third aspect, a three-dimensional grid displacement information encoding device is provided, comprising:
[0019] A first acquisition module is configured to acquire displacement data of a three-dimensional grid to be encoded, wherein the displacement data includes displacement vectors of M displacement levels;
[0020] A second acquisition module is used to acquire N displacement levels among the M displacement levels;
[0021] an encoding module, configured to encode the displacement vectors of the N displacement levels to obtain a displacement code stream;
[0022] Wherein, M and N are both positive integers, and N is smaller than M.
[0023] In a fourth aspect, a three-dimensional grid displacement information decoding device is provided, comprising:
[0024] A third acquisition module is used to obtain a displacement code stream;
[0025] A decoding module, configured to decode the displacement code stream to obtain displacement vectors of N displacement levels;
[0026] a restoration module, configured to restore the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data;
[0027] Wherein, M and N are both positive integers, and N is smaller than M.
[0028] In a fifth aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0029] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0030] In the seventh aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect, or to implement the method described in the second aspect.
[0031] In an eighth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the method described in the first aspect or the second aspect.
[0032] In an embodiment of the present application, an encoder obtains displacement data of a 3D mesh to be encoded, the displacement data including displacement vectors of M displacement levels, obtains N displacement levels of the M displacement levels, and encodes the displacement vectors of the N displacement levels to obtain a displacement code stream. Where N is less than M, meaning that the displacement vectors of the N displacement levels are a portion of the displacement data of the 3D mesh to be encoded, only a portion of the displacement data needs to be encoded, i.e., some of the displacement data is discarded, eliminating the need to encode all of the displacement data of the 3D mesh to be encoded. This effectively reduces the amount of displacement data encoded and improves the encoding efficiency of the displacement data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG1a is a flowchart of encoding by a VDMC method at an encoding end in the related art;
[0034] FIG1b is a flowchart of decoding by a decoding end in a VDMC manner in the related art;
[0035] FIG2 is a flowchart of a method for encoding three-dimensional grid displacement information according to an embodiment of the present application;
[0036] FIG3 is a flowchart of a method for decoding three-dimensional grid displacement information according to an embodiment of the present application;
[0037] FIG4a is a second flowchart of a method for encoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0038] FIG4 b is a second flowchart of a method for decoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0039] FIG4c is a third flowchart of a method for decoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0040] FIG5a is a third flowchart of a method for encoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0041] FIG5 b is a fourth flowchart of a method for decoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0042] FIG6a is a fourth flowchart of a method for encoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0043] FIG6 b is a schematic diagram of grid merging in a three-dimensional grid displacement information encoding method provided by an embodiment of the present application;
[0044] FIG6 c is a fifth flowchart of a method for decoding three-dimensional grid displacement information provided by an embodiment of the present application;
[0045] FIG7 is a structural diagram of a three-dimensional grid displacement information encoding device provided in an embodiment of the present application;
[0046] FIG8 is a structural diagram of a three-dimensional grid displacement information decoding device provided in an embodiment of the present application;
[0047] FIG9 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0048] FIG10 is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0050] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0051] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.
[0052] For better understanding, the following explains relevant concepts that may be involved in the embodiments of this application.
[0053] With the rapid development of multimedia technology, related research results have been rapidly industrialized and have become an indispensable part of people's lives. Three-dimensional models have become the next generation of digital media, following audio, images, and video. Three-dimensional meshes are a commonly used representation method for 3D models. Compared to traditional multimedia such as images and videos, 3D mesh models offer greater interactivity and realism, leading to their increasing application in various fields, including commerce, manufacturing, construction, education, medicine, entertainment, art, and the military.
[0054] While there are many ways to represent 3D meshes, triangular meshes remain the most common. A 3D mesh can be considered to be composed of three basic elements: vertices, edges, and faces. Vertices are the most basic elements in a mesh, defining a position in 3D space. Edges are line segments connecting two vertices in the mesh. Faces can be considered polygons formed by closed paths of edges. For a triangular mesh, each face is a triangle.
[0055] The information contained in the mesh is usually divided into three categories: geometric information, connection information, and attribute information. Geometric information refers to the position of each vertex of the mesh in three-dimensional space. Connection information describes the association between the elements in the mesh, that is, the connection relationship between vertices. Attribute information is optional, and it can associate attributes with corresponding mesh elements (such as vertex color, normal vector, etc. can be associated with mesh vertices). Mesh parameterization can also be used to map the mesh from three-dimensional space to a two-dimensional plane area. This mapping relationship is usually described by a set of parameter coordinates, called UV coordinates or texture coordinates, which are associated with mesh vertices. This two-dimensional mapping can be used to represent high-resolution attribute information, such as textures, normal vectors, etc.
[0056] In nearly all application fields using 3D meshes (such as computational simulation, entertainment, medical imaging, digitized artifacts, computer design, and e-commerce), the demand for visually appealing 3D mesh models is increasing, leading to increasingly complex models and higher precision. Consequently, the amount of data required to represent the 3D mesh is also increasing. These issues have led to increasing complexity in the processing, visualization, transmission, and storage of 3D meshes. 3D mesh compression can be considered a solution to these problems. It reduces the size of model data and facilitates the processing, storage, and transmission of 3D meshes. Therefore, it is necessary to propose an efficient and universal 3D mesh compression algorithm.
[0057] Recently, the Moving Pictures Experts Group (MPEG), an international organization for standardization specializing in audio and video coding and compression, has begun developing a compression standard for 3D meshes called Video-based Dynamic Mesh Coding (VDMC). This standard is based on the existing Visual Volumetric Video-based Coding (V3C) standard, which provides a general method for compressing 3D models, which can be represented by point clouds, meshes, or panoramic videos. Compatibility of 3D mesh compression methods with this standard will facilitate the method's widespread adoption and applicability. Therefore, optimizing the 3D mesh encoding and decoding methods in VDMC and integrating these optimizations with the V3C standard is of great significance. One possible optimization approach is to optimize displacement coding. In related art, displacements in a framework are calculated by calculating the distances between the vertices of a reconstructed mesh and the original mesh, aiming to improve mesh quality. In related art, displacements in a framework are encoded using a video encoder. Providing multiple options for displacement encoding methods can help improve coding performance.
[0058] V3C standard:
[0059] The V3C standard provides a method for encoding and decoding various 3D media using video or image coding techniques. Specifically, prior to encoding, 3D media content is converted from a 3D representation into multiple 2D representations (called V3C components) through methods such as projection. These 2D representations are then encoded using existing video or image coding techniques. V3C components primarily include occupancy, geometry, and attribute components. The occupancy component indicates which areas of the 2D representation are associated with the 3D data; the geometry component indicates information related to the spatial position of the 3D data; and the attribute component provides vertex attribute information, such as material and texture. Furthermore, the components contain information on how to reconstruct a 3D model from these components, known as atlas information. Atlas information is used to link all components, and additional information for 3D reconstruction from 2D is also included in the atlas components. An atlas consists of multiple basic units, called patches. Each patch represents an area within the available 2D components and contains the information needed to project that area back into 3D space.
[0060] VDMC:
[0061] VDMC is a standard developed by MPEG for compressing three-dimensional meshes. Its main idea is to compress three-dimensional meshes by leveraging the existing V3C standard. Since three-dimensional meshes contain connection information that needs to be encoded, its specific encoding process is slightly different from V3C. The syntax, semantics, and decoding operations of the V3C standard decoding end need to be expanded to support the decoding and reconstruction of three-dimensional meshes.
[0062] The overall encoding framework is shown in Figure 1a. The input mesh is first simplified by the simplification module. Mesh parameterization is then used to generate new texture coordinates for the mesh. The parameterized mesh is then subdivided and deformed. This involves inserting new vertices according to a specific subdivision method and calculating the distances between the subdivided mesh vertices and their nearest neighbors on the input mesh, known as displacement information. The pre-subdivided mesh, known as the base mesh, is then fed into the base mesh encoding module, where it is compressed using an existing mesh encoder. In inter-frame mode, motion vectors are also generated for each vertex of the base mesh based on a reference frame. The base mesh module only compresses the motion vectors. After encoding, the base mesh is reconstructed, and the displacement order is adjusted based on the vertex order of the reconstructed base mesh. The reordered vertex displacement information is then first subjected to a wavelet transform, and the transformed coefficients are quantized. These quantized coefficients are then arranged into a two-dimensional image according to a specific scan order. This 2D image is then encoded using a video encoder. The reconstructed displacement information is then applied to the subdivided base mesh to produce a reconstructed, subdivided, deformed mesh. This mesh, along with the original input mesh and its corresponding texture map, is fed into the corresponding texture map conversion module to produce a texture map corresponding to the reconstructed mesh. This texture map is also encoded using the video encoder. Parameters used in the encoding process, such as the type of video encoder used, the type of grid encoder, transform parameters, quantization parameters, etc., are passed to the decoding end through auxiliary information.
[0063] The overall framework of the decoding end is shown in Figure 1b. For the received code stream, the decoding end first demultiplexes the various code streams to obtain the basic grid code stream, displacement video code stream, texture map video code stream and auxiliary information code stream respectively. For the basic grid code stream, the grid decoder indicated by the auxiliary information is used to decode the basic grid. The displacement video code stream and the texture map video code stream are decoded by the video decoder. For the displacement part, after the video is decoded, the displacement needs to be extracted from the image through the displacement decoding module, and dequantization, inverse transformation and other steps are performed. It is then applied to the subdivided basic grid to obtain the deformed grid reconstructed by the decoding end. After decoding, the texture map is the texture map corresponding to the reconstructed deformed grid. The subsequent application or rendering module processes the reconstructed deformed grid and the decoded texture map as input.
[0064] Displacement is a crucial component of the dynamic mesh encoding and decoding process, storing the distances from the vertices of the subdivided meshes to their nearest neighbors along the normal direction of the original input mesh. Displacement data encoding has a high bitrate and is subject to redundancy, resulting in inefficient three-dimensional mesh encoding. To address these issues, embodiments of the present application propose a method for encoding and decoding three-dimensional mesh displacement information.
[0065] The following, in conjunction with the accompanying drawings, describes in detail the three-dimensional grid displacement information encoding method, decoding method and related equipment provided by the embodiments of the present application through some embodiments and their application scenarios.
[0066] Please refer to Figure 2, which is a flow chart of a method for encoding three-dimensional grid displacement information provided by an embodiment of the present application, and the method is applied to the encoding end. As shown in Figure 2, the method includes the following steps:
[0067] Step 201: The encoding end obtains displacement data of a three-dimensional grid to be encoded, where the displacement data includes displacement vectors of M displacement levels.
[0068] It should be noted that the encoding end and decoding end in the embodiments of the present application include but are not limited to electronic devices such as mobile phones, tablet computers, and computers, and will not be repeated in subsequent embodiments.
[0069] It is understandable that displacement is an important component of the dynamic mesh encoding and decoding process. After the encoder obtains the 3D mesh to be encoded, it further obtains the displacement data (or displacement information) of the 3D mesh to be encoded. The displacement data includes displacement vectors of M displacement levels.
[0070] It should be noted that due to the existence of the subdivision operation, the displacement has multiple subdivision levels and a base level, with the base level first and the subdivision levels second. The more times the base grid is subdivided, the more subdivision levels there are for the displacement. In the embodiment of the present application, the M displacement levels include a base level and M-1 subdivision levels. Each displacement level includes a certain number of displacement vectors. In other words, the displacement data can be represented by the displacement vectors of the M displacement levels.
[0071] Optionally, after obtaining the displacement data of the three-dimensional grid to be encoded, the encoding end may perform a series of pre-processing operations on the displacement data, such as transformation and quantization.
[0072] Step 202: The encoding end obtains N displacement levels among the M displacement levels.
[0073] Wherein, M and N are both positive integers, and N is smaller than M.
[0074] In an embodiment of the present application, after the encoding end obtains the displacement data of the three-dimensional grid to be encoded, that is, obtains the displacement vectors of M displacement levels, the encoding end can select N displacement levels from the M displacement levels, and thus obtain the displacement vectors of N displacement levels.
[0075] It should be noted that the encoding end may also perform pre-processing operations such as transformation and quantization on the displacement data of the three-dimensional grid to be encoded, obtain the displacement vectors of N displacement levels out of the pre-processed M displacement levels, and then obtain the displacement data to be encoded composed of the displacement vectors of the N displacement levels.
[0076] Optionally, the encoding end may obtain N displacement levels out of M displacement levels based on certain rules, for example, it may obtain N displacement levels at a specific position, or randomly obtain N displacement levels, or obtain the first N displacement levels, or obtain N displacement levels before a certain position, and so on.
[0077] Optionally, the N displacement levels are the first N displacement levels of the M displacement levels. It is understood that the earlier the displacement level, the greater the amount of displacement information it contains. Therefore, obtaining the first N displacement levels of the M displacement levels can more effectively ensure that a larger amount of displacement information is obtained, thereby ensuring encoding accuracy. It should be noted that N can be an integer greater than 1, which ensures that the base level and at least one subdivision level are obtained, thereby ensuring displacement encoding accuracy.
[0078] Step 203: The encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream.
[0079] It is understood that after obtaining the N displacement levels, the encoder encodes the displacement vectors of the N displacement levels to obtain a displacement code stream, and can transmit the displacement code stream to the decoder. Optionally, the encoding method used by the encoder may include, but is not limited to, entropy coding, video coding, etc. After obtaining the displacement code stream, the decoder may decode the displacement code stream using a decoding method corresponding to the encoding method.
[0080] In an embodiment of the present application, an encoder obtains displacement data of a 3D mesh to be encoded, the displacement data including displacement vectors of M displacement levels, obtains N displacement levels of the M displacement levels, and encodes the displacement vectors of the N displacement levels to obtain a displacement code stream. Where N is less than M, meaning that the displacement vectors of the N displacement levels are a portion of the displacement data of the 3D mesh to be encoded, and thus, only a portion of the displacement data needs to be encoded, i.e., part of the displacement data is discarded, eliminating the need to encode all of the displacement data of the 3D mesh to be encoded. This effectively reduces the amount of displacement data encoded and can effectively improve the encoding efficiency of the displacement data.
[0081] Optionally, in step 202, the encoder obtains N displacement levels from the M displacement levels, including:
[0082] The encoding end obtains N displacement levels among the M displacement levels according to a preset threshold.
[0083] It should be noted that the preset threshold may refer to the value of N. For example, if the preset threshold is 5, then 5 displacement levels out of the M displacement levels are obtained, for example, the first 5 displacement levels. Alternatively, the preset threshold may be a percentage used to represent the number of non-zero displacement vector moduli in a displacement level. For example, if the preset threshold is 70%, then the encoder may obtain a displacement level for which the number of non-zero displacement vector moduli in the M displacement levels is greater than 70%, and use the obtained displacement level as the N displacement levels.
[0084] Optionally, the number of non-zero displacement vector modulus values in the N+1th displacement level is the preset threshold value in the displacement level. That is, the encoding end may select the displacement level by judging whether the proportion of the non-zero number of displacement vector modulus values in the displacement level is less than or equal to the preset threshold value. Exemplarily, the encoding end may count the proportion of the non-zero number of displacement vector modulus values in each displacement level in the displacement level from front to back according to the order of the displacement levels, until a displacement level is obtained in which the proportion of the non-zero number of displacement vector modulus values in the displacement level is less than or equal to the preset threshold value, and the displacement level before the displacement level is intercepted to obtain the N displacement levels. In this way, the N displacement levels can be selected based on certain rules, which is more helpful for the encoding end to clearly understand which displacement data to obtain.
[0085] Optionally, the encoding end obtains N displacement levels among the M displacement levels according to a preset threshold, including any one of the following:
[0086] The encoder calculates, in order from front to back according to the order of the displacement levels, a proportion of the number of non-zero displacement vector modulus values in each displacement level, and if it is determined that the proportion corresponding to the (N+1)th displacement level is less than or equal to the preset threshold, obtains first N displacement levels of the M displacement levels;
[0087] The encoding end calculates the proportion of the number of non-zero displacement vector modulus values in each level in the displacement level from back to front according to the order of the displacement levels, and obtains the first N displacement levels of the M displacement levels when it is determined that the proportion corresponding to the Nth displacement level is greater than the preset threshold.
[0088] For example, in one embodiment, the encoding end may start from the second displacement level of the displacement data (the first level is the basic level, which is retained by default), count the number k of non-zero displacement vector modulus values in the displacement level, and calculate the proportion of k in the displacement level; if the proportion is less than or equal to the preset threshold, the displacement data (displacement vectors) of the displacement level and all displacement levels after the displacement level are removed, and only the displacement data before the displacement level is obtained. If the proportion does not meet the preset threshold requirement, the same statistical calculation is performed on the next displacement level until a qualified displacement level is found or all displacement levels are traversed. In this way, the first N displacement levels of the M displacement levels can be selected. In this case, N may be equal to M.
[0089] Alternatively, in another embodiment, the encoding end may also continuously perform statistics from the last displacement level. If the proportion of the last displacement level does not meet the requirements, that is, if the proportion of the number of non-zero displacement vector modulus values in the last displacement level in the displacement level is greater than a preset threshold, then the forward traversal is stopped, and the displacement level is also the Nth displacement level. If the proportion of the last displacement level meets the requirements, that is, the proportion of the number of non-zero displacement vector modulus values in the last displacement level in the displacement level is less than or equal to the preset threshold, then the same statistical calculation and proportion judgment are continued for the previous displacement level until a displacement level that does not meet the requirements is obtained or all subdivided levels are traversed.
[0090] In the embodiment of the present application, by setting a preset threshold, the encoding end can select the displacement level based on certain rules to obtain N displacement levels, which is more helpful for the encoding end to clearly understand which displacement data to obtain.
[0091] Optionally, the method further includes:
[0092] The encoding end marks the selected N displacement levels and sends the marks to the decoding end.
[0093] Exemplarily, the encoding end may mark the selected number of layers and send the mark to the decoding end, thereby enabling the decoding end to clarify, based on the mark, which displacement layers the displacement data encoded by the encoding end are, thereby ensuring that after the decoding end obtains the displacement code stream, it can purposefully extract the displacement data from the decoded displacement code stream based on the received mark, and supplement the decoded displacement data to restore the displacement data of full length.
[0094] It should be noted that the encoding end may transmit the marker and the displacement code stream together to the decoding end when sending the displacement code stream, or may transmit them separately.
[0095] Optionally, the encoding end may not mark the selected number of levels, and the decoding end only needs to fill in the displacement information according to the number of decoded mesh vertices.
[0096] In the embodiment of the present application, the encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream, including any one of the following:
[0097] The encoding end arranges the displacement vectors of the N displacement levels into a YUV image, performs a padding operation on the YUV image arranged with the displacement vectors based on a preset padding value, and encodes the padded YUV image through a video encoder to obtain a displacement code stream;
[0098] The encoding end performs entropy encoding on the displacement vectors of the N displacement levels to obtain a displacement code stream.
[0099] In the embodiment of the present application, the encoding end may perform displacement encoding by using a video encoding method or an entropy encoding method.
[0100] For example, the encoding end may be displacement encoding using video encoding. In this case, after obtaining the displacement vectors including N displacement levels (for example, the first N displacement levels), the encoding end arranges the displacement vectors of the N displacement levels into the YUV image according to a preset rule, for example, they may be arranged in Morton order. During the video arrangement process, in order to ensure that the resolution of each frame in the YUV image is the same and the pixel data can be arranged into a rectangle, it is necessary to perform a filling operation on the YUV image. The filling operation may be performed on the YUV image with the displacement vectors of N displacement levels arranged based on the preset filling value agreed upon by the codec end. For example, a certain number of preset filling values may be filled into the YUV image so that the filled YUV image meets its numerical quantity requirements. Furthermore, the padded YUV image is encoded by the video encoder to obtain a displacement code stream, and the displacement code stream is sent to the decoding end.
[0101] Alternatively, the encoder may also employ entropy coding to entropy encode the displacement vectors comprising the first N displacement levels to obtain a displacement bitstream, and transmit the displacement bitstream to the decoder. The video encoding method and entropy encoding method in the embodiments of the present application will be described in detail through specific embodiments later, and will not be elaborated on here.
[0102] In the embodiment of the present application, the encoding end may also perform displacement coding based on a VDMC method. Optionally, when the encoding end performs encoding using VDMC, the displacement vectors in the displacement level are represented by quantized wavelet transform coefficients.
[0103] It should be noted that when encoding is performed using the VDMC method at the encoder, after obtaining the 3D mesh to be encoded, the encoder performs a mesh simplification operation on the 3D mesh to obtain a base mesh with a relatively small number of points and faces, while maintaining the shape of the original mesh as much as possible. After the mesh simplification operation, the encoder sequentially performs mesh parameterization, subdivision deformation, base mesh compression, and base mesh reconstruction operations. The order of vertex displacements of the reconstructed base mesh is adjusted, and the displacements are then subjected to wavelet transform and quantized to obtain quantized wavelet transform coefficients. In the VDMC encoding method, the quantized wavelet transform coefficients are also the displacement vectors in the aforementioned displacement data, and the displacement data also includes quantized wavelet transform coefficients of M displacement levels. In this encoding method, after obtaining the quantized wavelet transform coefficients of the M displacement levels, the encoder may select the first N displacement levels to obtain the quantized wavelet transform coefficients including the first N displacement levels. The encoder then encodes the quantized wavelet transform coefficients of these N displacement levels to obtain a displacement code stream. Furthermore, when encoding is performed based on the VDMC method at the encoding end, it is only necessary to encode the quantized wavelet transform coefficients of the first N displacement levels to obtain the displacement code stream, so there is no need to encode all the displacement levels, which can effectively reduce the encoding bit rate at the encoding end and improve the encoding efficiency of the encoding end.
[0104] The selection of the N displacement levels can be determined using the aforementioned method. For example, before encoding the quantized wavelet transform coefficients into a two-dimensional image, a level selection operation is performed. This operation determines whether the proportion of non-zero vector modulus values in a level of the quantized wavelet transform coefficients is less than or equal to a preset threshold. For example, starting from the second displacement level of the quantized wavelet transform coefficients (the first level is the base level, which is retained by default), the number k of non-zero vector modulus values in that level is counted, and the proportion of k in that level is calculated. If the proportion is less than or equal to the preset threshold, the quantized wavelet transform coefficients for that level and all subsequent levels are removed, and only the quantized wavelet transform coefficients before the level are encoded. If the proportion does not meet the requirement, the same statistical calculation is performed on the next level until a level that meets the requirements is found or all subdivision levels are exhausted. Alternatively, the statistical calculation can be performed starting from the last displacement level and continuing forward. If the proportion of the last displacement level does not meet the requirement, the forward traversal is stopped. If the proportion of the last displacement level meets the requirements, the quantized wavelet transform coefficients of the displacement level are removed, and the same statistical calculation and proportion judgment are continued for the previous displacement level until a displacement level that does not meet the requirements is encountered or all subdivision levels are traversed.
[0105] Optionally, the method further includes:
[0106] The encoding end marks the selected N displacement levels and stores the marks in auxiliary information;
[0107] The encoding end sends the auxiliary information storing the mark to the decoding end.
[0108] For example, the encoding end may mark the selected number of levels, such as the mark, which is also the value of N, and store the mark in auxiliary information, and then send the auxiliary information storing the mark to the decoding end. Furthermore, the decoding end can clarify, based on the mark, which displacement levels the quantized wavelet transform coefficients encoded by the encoding end are the wavelet transform coefficients of, thereby ensuring that after obtaining the displacement code stream, the decoding end can purposefully extract the quantized wavelet transform coefficients from the decoded displacement code stream based on the received mark, and supplement the decoded quantized wavelet transform coefficients to restore the full length of the quantized wavelet transform coefficients, that is, restore the full length of the displacement data.
[0109] It should be noted that in the VDMC encoding method, auxiliary information includes the static grid encoder type, video encoder type, grid subdivision scheme, grid iteration number, geometric displacement vector transformation scheme, coefficient permutation scheme, displacement selection related flags (such as the selected number of displacement levels N), and color conversion scheme, etc. For grid parts encoded using inter-frame coding mode, the corresponding reference frame list is also included. By transmitting auxiliary information to the decoder, the decoder can accurately guide the decoding process.
[0110] In some scenarios, the encoder can also choose not to mark the number of selected levels, and only need to fill in the displacement information according to the number of decoded mesh vertices at the decoder.
[0111] Optionally, the encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream, including:
[0112] The encoding end arranges the quantized wavelet transform coefficients of the N displacement levels on a two-dimensional image, fills the two-dimensional image on which the quantized wavelet transform coefficients are arranged based on a preset filling value, and encodes the filled two-dimensional image through a video encoder to obtain a displacement code stream.
[0113] In the embodiment of the present application, after obtaining the quantized wavelet transform coefficients including the first N displacement levels, the encoder arranges the quantized wavelet transform coefficients of the N displacement levels into a two-dimensional image, and fills the two-dimensional image with the arranged quantized wavelet transform coefficients based on the preset padding value agreed upon by the codec, ultimately forming a YUV video. The video encoder encodes the YUV video to obtain a displacement bitstream. In this way, the encoder only needs to encode the quantized wavelet transform coefficients of the first N displacement levels, thereby improving the encoding efficiency of the encoder.
[0114] It should be noted that the specific implementation process of encoding based on the VDMC method by the encoding end in the embodiment of the present application will be specifically described in subsequent embodiments and will not be elaborated here.
[0115] When the encoding end performs encoding based on the VDMC method, the encoding end encodes the displacement vectors of the N displacement levels to obtain the displacement code stream, and the method further includes:
[0116] The encoding end extracts pixel point data from the padded two-dimensional image to obtain pixel point data, and obtains quantized wavelet transform coefficients of the N displacement levels based on the pixel point data;
[0117] The encoder performs a zero-padding operation on the quantized wavelet transform coefficients of the N displacement levels according to the number of mesh vertices after the reconstructed base mesh is subdivided, so as to obtain quantized wavelet transform coefficients of M displacement levels, wherein the total number of the quantized wavelet transform coefficients of the M displacement levels is the same as the number of mesh vertices after the reconstructed base mesh is subdivided;
[0118] The encoding end obtains a reconstructed subdivided and deformed grid based on the grid subdivided from the reconstructed basic grid and the quantized wavelet transform coefficients of the M displacement levels, and performs attribute map conversion and compression based on the reconstructed subdivided and deformed grid, the three-dimensional grid to be encoded, and the original attribute map to obtain an attribute map code stream.
[0119] It should be noted that in the VDMC encoding method, the encoding end needs to obtain the reconstructed displacement vector value during encoding, and obtain the reconstructed subdivided and deformed grid based on the reconstructed displacement vector and the grid after subdividing the reconstructed basic grid, and then implement attribute map encoding based on the reconstructed subdivided and deformed grid, the original three-dimensional grid to be encoded, and the original attribute map to obtain the attribute map code stream.
[0120] Optionally, when the encoding end obtains the quantized wavelet transform coefficients, it first takes out all the pixel point data in the padded two-dimensional image in an arranged manner. It can be considered that one pixel point corresponds to one quantized wavelet transform coefficient; the extracted pixel point data contains two parts of values, one is the quantized wavelet transform coefficients of the N displacement levels selected previously, and the other is the preset filling value in the two-dimensional arrangement process, which is pre-agreed by the codec end.
[0121] Optionally, when the encoding end does not mark the selected N displacement levels, obtaining quantized wavelet transform coefficients of the N displacement levels according to the pixel point data includes:
[0122] The encoding end performs a removal operation on the retrieved pixel data according to a preset padding value to obtain quantized wavelet transform coefficients of the N displacement levels.
[0123] Exemplarily, after obtaining the extracted pixel data, the encoding end can remove the preset filling value in the pixel data according to a pre-determined preset filling, thereby obtaining the quantized wavelet transform coefficients including N displacement levels. Thereafter, the selected quantized wavelet transform coefficients are padded with zeros according to the number of mesh vertices after the reconstructed base mesh is subdivided, until the number of quantized wavelet transform coefficients is the same as the number of mesh vertices after the reconstructed base mesh is subdivided, thereby obtaining the quantized wavelet transform coefficients of M displacement levels, i.e., the displacement data. Furthermore, the encoding end obtains a reconstructed subdivided and deformed mesh based on the mesh after the reconstructed base mesh is subdivided and the quantized wavelet transform coefficients of the M displacement levels, and performs attribute map conversion and compression based on the reconstructed subdivided and deformed mesh, the three-dimensional mesh to be encoded, and the original attribute map to obtain an attribute map code stream.
[0124] Optionally, when the encoding end marks the selected N displacement levels, the encoding end extracts pixel point data from the padded two-dimensional image to obtain pixel point data, and obtains quantized wavelet transform coefficients of the N displacement levels based on the pixel point data, including:
[0125] The encoding end determines the number of quantized wavelet transform coefficients of the N displacement levels in the grid after the reconstructed basic grid is subdivided according to the mark, and selects pixel point data of the same number from the filled two-dimensional image to obtain the quantized wavelet transform coefficients of the N displacement levels.
[0126] In an embodiment of the present application, if the encoder labels the N displacement levels when obtaining the quantized wavelet transform coefficients and sends the labels to the decoder, then when obtaining the quantized wavelet transform coefficients, since the number of levels of the quantized wavelet transform coefficients and the number of data in each level are exactly the same as the mesh after the reconstructed base mesh is subdivided, the encoder can determine the number of quantized wavelet transform coefficients for the N displacement levels previously selected by the encoder based on the labels in the mesh after the reconstructed base mesh is subdivided. Based on this number, pixel data equal to this number is selected from the padded two-dimensional image, thereby obtaining the quantized wavelet transform coefficients for the N displacement levels. Then, zero padding is performed at the ends of the retrieved quantized wavelet transform coefficients for the N displacement levels based on the number of mesh vertices after the reconstructed base mesh is subdivided, until the number of quantized wavelet transform coefficients is equal to the number of mesh vertices after the reconstructed base mesh is subdivided, thereby obtaining the quantized wavelet transform coefficients for the M displacement levels, i.e., the displacement data.
[0127] Furthermore, the quantized wavelet transform coefficients of the M displacement levels (i.e., displacement data) are inversely quantized and inversely transformed to obtain a displacement vector consistent with the decoding end, i.e., a reconstructed geometric displacement vector. The grid after the reconstructed basic grid is subdivided is used to obtain a reconstructed subdivided and deformed grid according to the reconstructed geometric displacement vector (i.e., the quantized wavelet transform coefficients of the M displacement levels). The encoding end performs attribute graph conversion and compression based on the reconstructed subdivided and deformed grid, the original three-dimensional grid to be encoded, and the original attribute graph, so as to obtain an attribute graph code stream, and the attribute graph code stream is sent to the decoding end, so that the decoding end can decode the attribute graph code stream.
[0128] It should be noted that in the VDMC encoding method, the encoding end sends a mixed stream obtained by mixing the displacement code stream, the attribute map code stream, the basic grid code stream and the auxiliary information to the decoding end, so that the decoding end decodes these code streams to obtain three-dimensional grid information. The specific implementation method can be referred to the description in the subsequent embodiments.
[0129] Please refer to Figure 3, which is a flow chart of a method for decoding three-dimensional grid displacement information provided by an embodiment of the present application. The method is applied to a decoding end. As shown in Figure 3, the method includes the following steps:
[0130] Step 301: The decoding end obtains the bit-shifted code stream.
[0131] It can be understood that after encoding to obtain the bit-shifted code stream, the encoding end sends the bit-shifted code stream to the decoding end.
[0132] Step 302: The decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels.
[0133] It should be noted that after obtaining the displacement bitstream, the decoding end decodes the displacement bitstream according to the decoding method corresponding to the encoding end to obtain displacement vectors of N displacement levels. For example, if the encoding end encodes the displacement bitstream using a video encoding method, the decoding end decodes the displacement bitstream using a video decoding method; if the encoding end encodes the displacement bitstream using an entropy encoding method, the decoding end decodes the displacement bitstream using an entropy decoding method; if the encoding end encodes the displacement bitstream using a VDMC method, the decoding end decodes the displacement bitstream using a VDMC method.
[0134] Step 303: The decoding end restores the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data.
[0135] Wherein, M and N are both positive integers, and N is smaller than M.
[0136] It should be noted that after the decoding end decodes the displacement code stream to obtain displacement vectors including N displacement levels, the decoding end recovers the displacement vectors of M displacement levels based on the displacement vectors of the N displacement levels, and then recovers the displacement data. For example, the displacement vectors of the N displacement levels may be padded with zeros so that the number of displacement vectors included in the displacement data obtained after zero padding is the same as the number of vertices of the mesh after the decoding mesh is subdivided. After the encoding end subdivides the encoding mesh, it sends the number of subdivisions and the number of vertices of the mesh after subdivision to the decoding end, and the decoding end needs to keep the number of vertices of the mesh after the decoding mesh is subdivided the same as the number of vertices of the mesh after the encoding end is subdivided. Then, the decoding end can determine the number of vertices of the mesh after the decoding mesh is subdivided, and thus can determine the number of displacement vectors in the displacement data. Optionally, the number of vertices of the mesh after the decoding mesh is subdivided can be obtained in other modules of the dynamic mesh decoding framework. For example, the VDMC framework can obtain it by performing a subdivision operation on the decoded basic mesh.
[0137] In an embodiment of the present application, after obtaining the displacement code stream, the decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels. The decoding end can perform a zero-padding operation on the displacement vectors of the N displacement levels to restore the displacement vectors of M displacement levels. N is less than M, that is, the decoding end can restore the complete displacement data, and the encoding end only needs to encode the displacement vectors of some levels in the displacement data of the original three-dimensional grid to be encoded, which effectively reduces the amount of encoded data, improves encoding efficiency, and reduces the transmission pressure between the encoding end and the decoding end.
[0138] It should be noted that after the decoding end recovers the displacement vectors of M displacement levels based on the displacement vectors of N displacement levels, it can perform inverse quantization, inverse transformation and other operations on the displacement vectors of the M displacement levels to obtain the original displacement data, for example, the same displacement data as the three-dimensional grid displacement data to be encoded by the encoding end.
[0139] Optionally, the decoding end restores the displacement vectors of the N displacement levels into displacement vectors of M displacement levels, including:
[0140] The decoding end performs a zero-padding operation on the displacement vectors of the N displacement levels according to the number of vertices of the mesh after the decoded mesh is subdivided, so as to restore the displacement vectors of the M displacement levels;
[0141] The total number of displacement vectors of the M displacement levels is the same as the number of vertices of the mesh after the decoded mesh is subdivided.
[0142] For example, the displacement vectors of the N displacement levels may be padded with zeros according to the number of vertices of the mesh after the decoded mesh is subdivided, until the number of displacement vectors is the same as the number of vertices of the mesh after the decoded mesh is subdivided, and then the encoding end can recover the displacement vectors including M displacement levels.
[0143] In the above manner, the decoding end may decode the displacement code stream by using a video decoding method, an entropy decoding method or a VDMC method.
[0144] Optionally, the decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels, including any one of the following:
[0145] The decoding end decodes the displacement code stream by video decoding to obtain a YUV image, extracts pixel data from the YUV image, and removes the pixel data based on a preset padding value to obtain pixel data of N displacement levels, wherein the pixel data is used to represent the displacement vectors in the displacement levels;
[0146] The decoding end decodes the displacement code stream using a VDMC method to obtain a two-dimensional image, extracts pixel data from the two-dimensional image, and removes the pixel data based on a preset padding value to obtain quantized wavelet transform coefficients of N displacement levels, wherein the quantized wavelet transform coefficients are used to represent displacement vectors in the displacement levels;
[0147] The decoding end decodes the displacement code stream by entropy decoding to obtain displacement vectors of N displacement levels.
[0148] For example, when the decoding end decodes the displacement code stream by video decoding, the decoding end decodes and obtains a YUV image. First, all pixel data are extracted in the order in which the displacement data is arranged into the YUV image by the encoding end. The extracted pixel data contains two parts of data, one is the displacement vector of the N displacement levels selected by the encoding end, and the other is the preset filling value when the encoding end performs the filling operation. The preset filling value is a value agreed upon between the encoding end and the decoding end. After extracting the pixel data, the decoding end can remove the filling part of the pixel data according to the preset filling value agreed upon with the encoding end, thereby obtaining the pixel data of the N displacement levels selected by the encoding end, that is, obtaining the displacement vector of the N displacement levels.
[0149] Alternatively, when the decoding end decodes the displacement code stream using the VDMC method, the decoding end decodes to obtain a two-dimensional image and extracts all pixels in the two-dimensional image. The pixel data also includes two parts of data: one is the quantized wavelet transform coefficients of the N displacement levels selected by the encoding end, and the other is the preset filling value when the encoding end performs the filling operation. The preset filling value is a value agreed upon between the encoding end and the decoding end. Based on the preset filling value, the decoding end can remove the filling part in the pixel data, thereby obtaining the quantized wavelet transform coefficients of the N displacement levels selected by the encoding end, that is, obtaining the displacement vectors of the N displacement levels.
[0150] Alternatively, after receiving the displacement code stream, the decoding end performs entropy decoding on the displacement code stream to obtain displacement vectors of N displacement levels.
[0151] Optionally, the method further includes:
[0152] The decoding end obtains a flag sent by the encoding end, where the flag is related to the N displacement levels.
[0153] For example, the tag may be the number of the N displacement levels, that is, the tag may be the value of N. Based on the tag, the decoder can determine the displacement vectors of the displacement levels encoded by the encoder, which further facilitates the decoder in decoding and obtaining the displacement vectors of the N displacement levels. For example, the decoder can specifically extract pixel data from the pixel data based on the tag to obtain pixel data of the N displacement levels.
[0154] Optionally, when the decoding end decodes the displacement code stream by video decoding, the decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels, including:
[0155] The decoding end decodes the displacement code stream to obtain a YUV image;
[0156] The decoding end determines the number of displacement vectors of the N displacement levels in the subdivided decoding basic grid according to the mark;
[0157] The decoding end extracts pixel point data of the same number as the number from the YUV image, and obtains the displacement vectors of the N displacement levels based on the extracted pixel point data, and the pixel point data is used to represent the displacement vectors in the displacement level.
[0158] It can be understood that if the decoding end performs decoding based on the video decoding method, since the number of displacement levels and the number of displacement vectors in each level are exactly the same as the subdivided decoding basic grid, the number of displacement vectors selected by the encoding end can be obtained according to the marked number of levels in the subdivided decoding basic grid. Then, based on this number, the pixel point data of the same number as the said number is extracted from the decoded YUV image. The extracted pixel point data is also the displacement vector of the N displacement levels encoded by the encoding end.
[0159] Furthermore, after obtaining the displacement vectors of N displacement levels, the decoding end performs zero-padding operation according to the number of vertices of the subdivided decoded grid until the number of displacement vectors is the same as the number of vertices, that is, the displacement vectors of M displacement levels are restored; then the complete zero-padding displacement data is input into the post-processing module to obtain the original displacement data, thereby completing the decoding of the displacement.
[0160] Optionally, when the decoding end decodes the displacement code stream in a VDMC manner, the decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels, including:
[0161] The decoding end decodes the displacement code stream to obtain a two-dimensional image;
[0162] The decoding end determines the number of displacement vectors of the N displacement levels in the subdivided decoding basic grid according to the mark;
[0163] The decoding end extracts quantized wavelet transform coefficients of the same number from the two-dimensional image, obtains the displacement vectors of the N displacement levels based on the extracted quantized wavelet transform coefficients, and the quantized wavelet transform coefficients are used to characterize the displacement vectors in the displacement levels.
[0164] It can be understood that when the decoder obtains the quantized wavelet transform coefficients, since the number of levels of the quantized wavelet transform coefficients and the number of data in each level are exactly the same as those in the subdivided decoding basic grid, the number of quantized wavelet transform coefficients for the N displacement levels selected by the encoder can be obtained based on the marked number of levels in the subdivided decoding basic grid. Then, based on this number, the quantized wavelet transform coefficients of the same number are selected in the two-dimensional image according to the arrangement scheme, thus obtaining the quantized wavelet transform coefficients for the N displacement levels.
[0165] Furthermore, the selected quantized wavelet transform coefficients are padded with zeros according to the number of vertices of the subdivided decoded basic grid until the number of quantized wavelet transform coefficients matches the number of vertices. This restores the quantized wavelet transform coefficients of M displacement levels. Dequantization and inverse transformation are then performed on the quantized wavelet transform coefficients to restore the original displacement data.
[0166] For better understanding, the encoding method and decoding method provided in the embodiments of the present application are described in detail below through video encoding and decoding, entropy encoding and decoding, and VDMC encoding and decoding.
[0167] Implementation method 1: video codec-based
[0168] Encoding side:
[0169] When displacement coding is selected as the video encoding method, the displacement coding process is shown in Figure 4a. First, the displacement data is input into the pre-processing module, which performs a series of preprocessing operations on the raw displacement data, such as transformation and quantization. The pre-processed displacement data is then input into the level selection module, which selects the level by determining whether the percentage of non-zero displacement vector moduli in the displacement level is less than or equal to a set threshold. The specific process is as follows: Starting from the second level of displacement data (the first level is the base level, which is retained by default), the number k of non-zero displacement vector moduli in that level is counted, and the percentage of k in that level is calculated. If the percentage is less than or equal to the set threshold, the displacement data for that level and all subsequent levels is removed, and only the displacement data before the level is encoded. If the percentage does not meet the requirements, the same statistical calculation is performed on the next level until a qualified level is found or all sub-level levels are exhausted. Alternatively, the statistical calculation can be performed starting from the last level and continuing forward. If the percentage of the last level does not meet the requirements, the forward traversal is stopped. If the proportion of the last level meets the requirements, the displacement data of the level will be removed, and the same statistical calculation and proportion judgment will be performed on the previous level until a level that does not meet the requirements is encountered or all subdivided levels are traversed. At the same time, you can choose to mark the selected level number and pass it to the decoding end. You can also choose not to mark the selected level number, and only fill the displacement information according to the number of decoded mesh vertices at the decoding end. After the level selection, the selected displacement data can be arranged into the YUV image according to a predetermined rule (such as the Morton order). During the video arrangement process, in order to ensure that the resolution of each frame in the YUV video is the same and the pixel data can be arranged into a rectangle, the YUV video needs to be filled. The video filling value is an agreed value known to the codec end. Use the video encoder to encode to obtain the displacement code stream.
[0170] Decoding end:
[0171] Depending on whether the encoder marks the number of selected layers, there are different implementation methods for the displacement decoding solution based on video decoding. The following will describe two possible solutions in detail.
[0172] (1) Decoding method without marking the number of selected levels:
[0173] The displacement decoding flow chart for the unmarked number of selected levels is shown in Figure 4b. For the YUV video obtained through video decoding, all pixel values are first extracted in the order in which the encoder arranged the displacement data. These extracted pixel values contain two components: the displacement data for the n levels selected by the encoder; and the video padding value, which is a value agreed upon between the encoder and decoder. After obtaining the pixel data, the video padding is removed from the pixel data based on the agreed-upon video padding value, resulting in the displacement data for the n levels selected by the encoder. The displacement data is then padded with zeros based on the number of vertices in the decoded mesh after subdivision, until the number of displacement data matches the number of vertices in the decoded mesh after subdivision. This results in the recovered complete displacement data. The number of vertices in the decoded mesh after subdivision can be obtained from other modules within the dynamic mesh decoding framework, such as the VDMC framework, by subdividing the decoded base mesh. The recovered complete displacement data is then input into the post-processing module to obtain the original displacement data, completing the displacement decoding. The operations of the post-processing module are the reverse implementation of the operations of the pre-processing module at the encoding end, such as inverse quantization and inverse transformation.
[0174] (2) Decoding method for marking the number of selected levels:
[0175] The displacement decoding flow chart, with the number of selected levels marked, is shown in Figure 4c. Since the number of displacement levels and the amount of data in each level are identical to the subdivided decoding base grid, the number of displacement data selected by the encoder can be obtained based on the marked number of selected levels in the subdivided decoding base grid. Based on the number of displacement data, the selected displacement data (i.e., the displacement data for n displacement levels) is extracted from the YUV video obtained by video decoding, in the order in which the displacement data was arranged in the video by the encoder. After obtaining the selected displacement data, the data is padded with zeros based on the number of mesh vertices after subdividing the decoding grid until the number of data and vertices matches. The padded complete displacement data is then input into the post-processing module to obtain the original displacement data, completing the displacement decoding. The operations of the post-processing module are the inverse implementation of the operations performed by the encoder's pre-processing module, such as inverse quantization and inverse transform.
[0176] Implementation method 2: Entropy-based encoding and decoding
[0177] Encoding side:
[0178] When displacement coding is selected as the entropy coding method, the displacement coding process is shown in Figure 5a. First, the displacement data is input into the pre-processing module, which performs a series of preprocessing operations on the raw displacement data, such as transformation and quantization. The pre-processed displacement data is then input into the level selection module, which selects the level by determining whether the percentage of non-zero displacement vector moduli in the displacement level is less than or equal to a set threshold. The specific process begins with the second level of displacement data (the first level is the base level, which is retained by default). The number k of non-zero displacement vector moduli in that level is counted, and the percentage of k in that level is calculated. If the percentage is less than or equal to the set threshold, the displacement data for that level and all subsequent levels is removed, and only the displacement data before the level is encoded. If the percentage does not meet the requirements, the same statistical calculation is performed on the next level until a qualified level is found or all sub-level levels are traversed. Alternatively, the statistical calculation can be performed from the last level forward. If the percentage of the last level does not meet the requirements, the forward traversal is stopped. If the proportion of the last level meets the requirements, the displacement data of the level is removed, and the same statistical calculation and proportion judgment are performed on the previous level until a level that does not meet the requirements is encountered or all subdivided levels are traversed. After the level selection, the selected displacement data can be directly entropy coded. The specific entropy coding method is not limited here. For example, context-adaptive variable-length coding (CAVLC) and context-adaptive binary arithmatic coding (CABAC) can be used.
[0179] Decoding end:
[0180] Figure 5b is a flow chart of displacement decoding based on entropy decoding. For the received displacement code stream, the displacement code stream is first entropy decoded to obtain the displacement data of the selected n displacement levels, and then the end of the data is padded with zeros according to the number of vertices of the mesh after the decoded mesh is subdivided until the number of data is the same as the number of vertices, and the displacement data before selection is restored. Among them, the number of vertices of the mesh after the decoded mesh is subdivided can be obtained in other modules of the dynamic mesh decoding framework. For example, the V-DMC framework can obtain it by subdividing the decoded basic mesh. After that, the restored complete displacement data is input into the post-processing module to obtain the original displacement data, completing the decoding of the displacement. The operation of the post-processing module is the inverse implementation of the operation of the pre-processing module on the encoding end, such as inverse quantization and inverse transformation.
[0181] Implementation method 3: VDMC-based encoding and decoding method
[0182] Encoding side:
[0183] The application of the three-dimensional grid displacement information encoding method proposed in this application at the encoding end is shown in FIG6a . The entire application process is described in detail below:
[0184] (1) Mesh simplification
[0185] Mesh simplification involves reducing the input mesh to a base mesh with relatively few points and faces, while preserving the original mesh's shape as much as possible. The key to mesh simplification lies in the simplification operation and the corresponding error metric. A possible mesh simplification operation, shown in Figure 6b, merges the vertices at both ends of an edge into a single vertex and deletes the connection between them. This process is repeated throughout the mesh according to a specific rule to reduce the number of faces and vertices to the target value.
[0186] During the simplification process, a specific error metric can be selected to optimize the simplified result. For example, the error metric for a vertex can be the sum of the coefficients of the equations of all adjacent faces. The error metric for an edge can be the sum of the error metrics of the two vertices on the edge. In other words, the error resulting from merging an edge is the sum of the distances from the merged vertex to all adjacent faces of the original two vertices on the edge.
[0187] After determining the simplification operation and the corresponding error metric, the mesh simplification process begins iteratively. First, the vertex errors of the initial mesh are calculated to obtain the error for each edge. Edges are then sorted from smallest to largest error, and the edge with the smallest error is merged each time. Simultaneously, the positions of the merged vertices are calculated, and the errors of all edges associated with the merged vertices are updated. This means that the order of edge arrangement is updated to ensure that each iteration is based on a global error metric. Through iteration, the mesh faces are simplified to the number required for lossy encoding.
[0188] (2) Mesh parameterization
[0189] Texture coordinates may be regenerated based on the reconstructed base mesh of the current frame. This step requires generating texture coordinates for each attribute map of the input mesh. If multiple attribute maps have similar characteristics, they can share the same texture coordinates. Texture coordinate generation can be done by mesh parameterization, among other methods. Numerous algorithms exist for mesh parameterization, such as the Isocharts algorithm, which uses spectral analysis to implement stretch-driven 3D mesh parameterization. The 3D mesh is then UV-unwrapped, tiled, and packed into a 2D texture domain.
[0190] (3) Subdivision deformation
[0191] The subdivision deformation module is an optional module that can improve the quality of the mesh reconstructed by the decoder. It can be omitted when the base mesh quality can meet the application requirements.
[0192] The subdivision deformation module is applied to the input three-dimensional (3D) mesh to generate displacement vector information. Specifically, the input two-dimensional (2D) curve (represented by a 2D polyline), called the "original" curve, is first downsampled to generate a basic curve / polyline, called the "simplified" curve. The subdivision scheme is then applied to the simplified polyline to generate the "subdivision" curve. The subdivided polyline is then deformed to obtain a better approximation of the original curve. That is, a geometric displacement vector is calculated for each vertex of the subdivided mesh so that the shape of the subdivided curve is as close as possible to the shape of the original curve. These geometric displacement vectors are the geometric displacement vector information (vertex displacement) output by the module. The same deformation process is also applied to the attribute information corresponding to the vertex to obtain the corresponding attribute displacement vector.
[0193] (4) Basic mesh compression
[0194] The base mesh compression module is used to compress the base mesh information output by the subdivision deformation module. There are two main modes for base mesh compression: intra-frame mode and inter-frame mode. In intra-frame mode, the input of the base mesh compression module is a three-dimensional mesh containing geometric coordinates, connection relationships, and attribute information associated with vertices. In inter-frame mode, the input of the base mesh compression module is motion vectors and their identifiers, as well as possible intra-frame sub-meshes. After encoding, the encoded mesh needs to be reconstructed and provided to subsequent modules for processing. The following is a brief introduction to the encoding of the two modes:
[0195] ①Intra-frame mode
[0196] In the intra-frame mode, the grid coding can use the grid encoder in the related art to encode the input basic grid, such as Draco, etc. The grid encoder type is encoded with auxiliary information and transmitted to the decoding end.
[0197] ②Interframe mode
[0198] In inter-frame mode, motion vectors and identifiers must be encoded. The motion vector identifier is an array of numbers greater than or equal to 0. The array size is equal to the number of vertices in the base mesh of the reference frame corresponding to the temporal motion vector identifier. This array can be directly encoded using existing entropy coding algorithms, such as CABAC.
[0199] (5) Reconstruct the base mesh
[0200] After the base grid is encoded, it is necessary to reconstruct the base grid. For grids encoded in intra-frame mode, the reconstructed grid can be obtained by decoding the encoded grid.
[0201] For the basic grid information encoded in the inter-frame mode, it is necessary to reconstruct the inter-frame sub-grid based on the motion vector and the identifier. If there is an intra-frame sub-grid in the inter-frame mode, it is also necessary to merge the reconstructed inter-frame sub-grid with the intra-frame sub-grid to obtain the reconstructed basic grid.
[0202] (6) Encoding of vertex displacement
[0203] To encode vertex displacements, the order of vertex displacements must first be adjusted based on the reconstructed base mesh. Wavelet transform and quantization are then performed on the displacements to obtain quantized wavelet transform coefficients. The quantized wavelet transform coefficients are then input into the data truncation module. Finally, the wavelet transform coefficients of the current frame are arranged into a two-dimensional image, ultimately forming a YUV video that is then encoded using a video encoder to obtain a bitstream of the displacements. Each process will be described in detail below:
[0204] ①Adjust the displacement order
[0205] This process primarily adjusts the order of vertex displacements based on the reconstructed base mesh. The detailed process involves first subdividing the reconstructed base mesh, then adjusting the displacement order to match the subdivided base mesh's vertex order. This process also optionally converts the vertex displacement coordinates from a Cartesian coordinate system to a local coordinate system.
[0206] ② Wavelet transform
[0207] A transformation can be applied to the displacement vector to reduce the correlation between its data. An optional transformation is linear wavelet transform, and its prediction process is defined as shown in formula (1):
[0208] Where v is the newly inserted midpoint on the edge (v1, v2), Signal(v), Signal(v1), and Signal(v2) are the displacement vectors corresponding to vertices v, v1, and v2, respectively. The displacement vector of vertex v is predicted and then updated. The update process is defined as shown in Equation (2):
[0209] Among them, v * is the set of all adjacent vertices of vertex v. The transformed displacement vector is called wavelet coefficient.
[0210] ③ Coefficient quantization
[0211] The transformed displacement vector, i.e., the wavelet coefficient, can be quantized. There are many ways to quantize it. One method is shown in equations (3) and (4): disp[v].d[k] = floor(disp[v].d[k] * scale[k])#(3)
[0212] Where disp[v] represents the transformed value of the displacement vector at the vth vertex, d[k] represents the kth value of the displacement vector, and floor indicates rounding down. bitDepthPosition represents the bit depth of the current mesh vertex's geometric position, and qp[k] represents the quantization parameter for the kth coefficient. As mentioned earlier, after transforming the coordinate system of the displacement vector, its normal component has a more significant impact on quality than its tangential component, so a larger quantization parameter can be used for the tangential component.
[0213] At the same time, according to the characteristics of wavelet transform, different quantization parameters can be used for the newly generated vertices and the original vertices. That is, for the subdivided vertices, the quantization parameter update is shown in formula (5): scale[k] = scale[k] * lodScale[k] # (5)
[0214] Among them, lodScale[k] represents the coefficient of the quantization parameter of the current subdivision level.
[0215] ④Level selection
[0216] Before quantizing the wavelet transform coefficients into a two-dimensional image, a level selection operation is performed. This operation selects the level by determining whether the proportion of non-zero vector modulus values in the quantized wavelet transform coefficient level is less than or equal to a set threshold. The specific process is to start from the second level of the quantized wavelet transform coefficients (the first level is the base level and is retained by default), count the number k of non-zero vector modulus values in this level, and calculate the proportion of k in this level. If the proportion is less than or equal to the set threshold, the wavelet transform coefficients of this level and all levels after it are removed, and only the wavelet transform coefficients before this level are encoded. If the proportion does not meet the requirements, the same statistical calculation is performed on the next level until a qualified level is found or all subdivided levels are traversed. Alternatively, the statistical calculation can be performed continuously from the last level forward. If the proportion of the last level does not meet the requirements, the forward traversal is stopped. If the last level's percentage meets the requirements, the wavelet transform coefficients for that level are removed, and the same statistical calculation and percentage determination are performed on the previous level until a level that does not meet the requirements is encountered or all subdivision levels are traversed. Alternatively, the number of selected levels can be marked and stored in auxiliary information for transmission to the decoder. Alternatively, the number of selected levels can be left unmarked, and the decoder can simply fill in the displacement information based on the number of vertices in the decoded mesh.
[0217] ⑤ Two-dimensional arrangement
[0218] After data truncation, the data can be arranged on a two-dimensional image as follows:
[0219] (a) Traverse the wavelet coefficients in order from low frequency to high frequency;
[0220] (b) For each coefficient, determine the index of the NxM pixel block (e.g., N=M=16) where it should be stored in the raster scan order of the block;
[0221] (c) Calculate the position of the corresponding NxM pixel block on the image according to the Morton order.
[0222] The arrangement method is not limited here; other arrangements can also be used, such as zigzag order and raster order. The encoder can explicitly specify the corresponding arrangement in the bitstream. This process requires video padding to ensure that the resolution of each frame of the generated YUV video is consistent and the number of pixels can be arranged in a rectangular shape. The preset padding value of the video is a known agreed value between the codec.
[0223] ⑥Video compression
[0224] After arranging the wavelet coefficients on a two-dimensional image, they can be directly encoded using a video encoder to obtain a shifted code stream.
[0225] (7) Reconstruction of deformed mesh
[0226] The displacement vector encoding module needs to obtain the reconstructed displacement vector value during encoding. There are two ways to obtain the quantized wavelet transform coefficients from the reconstructed two-dimensional image, depending on whether the selected position is marked when the data is selected:
[0227] ① For the case where the number of selected levels is not marked: When obtaining the quantized wavelet transform coefficients, first extract all the pixel data in the two-dimensional image according to the arrangement scheme; the extracted pixel data contains two values: one is the quantized wavelet transform coefficient selected by the level selection module, and the other is the video padding value during the two-dimensional arrangement process. After obtaining the pixel data, the video padding portion of the pixel data can be removed according to the video padding value to obtain the quantized wavelet transform coefficients selected by the level selection module. Then, the selected quantized wavelet transform coefficients are padded with zeros according to the number of mesh vertices after the reconstructed base mesh is subdivided until the number of selected quantized wavelet transform coefficients is the same as the number of mesh vertices after the reconstructed base mesh is subdivided, and the quantized wavelet transform coefficients are obtained.
[0228] ② For the case where the number of selected levels is marked: When obtaining the quantized wavelet transform coefficients, the number of levels of the quantized wavelet transform coefficients and the number of data in each level are exactly the same as the grid after the reconstruction of the base grid. Therefore, in the grid after the reconstruction of the base grid, the number of quantized wavelet transform coefficients selected by the level selection module can be obtained according to the marked number of selected levels. Then, according to the number of wavelet transform coefficients, the selected data is extracted from the two-dimensional image according to the arrangement scheme. Then, according to the number of vertices of the grid after the reconstruction of the base grid, zero padding is performed at the end of the extracted data until the number of data is the same as the number of vertices, and the quantized wavelet transform coefficients can be obtained.
[0229] The quantized wavelet transform coefficients are dequantized and inversely transformed to obtain the displacement vector consistent with the decoding end. After obtaining the reconstructed geometric displacement vector, the mesh after the reconstruction of the base mesh is subdivided according to the corresponding geometric displacement vector to obtain the reconstructed subdivided and deformed mesh, which is passed to the attribute graph conversion module.
[0230] (8) Attribute Graph Conversion
[0231] The attribute map conversion module performs attribute map conversion based on the input original mesh, the input original attribute map, and the reconstructed subdivision deformed mesh.
[0232] The steps for attribute graph conversion are as follows:
[0233] 1. Calculate the texture coordinates of each pixel on the attribute map to be generated. For example, the texture coordinates corresponding to pixel A(i,j) are P(u,v);
[0234] 2. Determine whether the texture coordinates are within a certain triangle face after the parameterization of the subdivided deformed mesh;
[0235] 3. If the texture coordinate does not belong to any triangle, mark the pixel as an empty pixel and then fill it with a filling algorithm;
[0236] 4. If the texture coordinate belongs to a triangle, then
[0237] a. Mark the pixel as filled;
[0238] b. Calculate the center of gravity coordinates of the texture in the current triangle according to the texture coordinates;
[0239] c. Based on the barycentric coordinates and the corresponding triangular face, the two-dimensional texture coordinates are mapped to three-dimensional geometric coordinates, that is, mapped to the points on the subdivided deformed grid corresponding to the texture coordinates.
[0240] d. Find the point closest to the 3D coordinate on the input original grid.
[0241] e. Calculate the barycentric coordinates of the three-dimensional coordinates based on the triangle surface they are on and map them to two dimensions to calculate their texture coordinates.
[0242] f. Sample the input original attribute map using the texture coordinate to obtain the value of the corresponding pixel position.
[0243] Assign this value to the corresponding pixel on the attribute map to be generated.
[0244] (9) Attribute Graph Compression
[0245] After obtaining the converted attribute map, the empty pixels therein can be filled using existing filling algorithms (such as the Push-Pull algorithm). Then, existing video encoders such as H.264 / AVC, H.265 / HEVC, and H.266 / VVC can be used to encode the empty pixels to obtain the bitstream of the output attribute map. In addition, operations such as color space conversion and chroma subsampling can be selectively applied to achieve better rate-distortion performance in video encoding, such as color space conversion from RGB 444 to YUV420. In the case of multiple attribute maps, the texture coordinates corresponding to each attribute map need to be identified through auxiliary information during encoding.
[0246] (10) Auxiliary information
[0247] During the encoding process, various modules can employ alternative schemes, such as the type of grid encoder, the type of video encoder, the grid subdivision scheme, and the spatial displacement vector transform scheme. The proposed framework allows for the use of different schemes. Therefore, the selected scheme needs to be communicated to the decoder to guide correct decoding.
[0248] Auxiliary information includes the type of static grid encoder, the type of video encoder, the grid subdivision scheme, the number of grid iterations, the geometric displacement vector transformation scheme, the coefficient arrangement scheme, relevant marks for displacement selection (such as the selected number of displacement levels N), and the color conversion scheme, etc. For the grid part encoded using the inter-frame coding mode, it also includes the corresponding reference frame list, etc.
[0249] After all modules are encoded, the basic grid part stream, texture coordinate part stream, displacement vector video stream, attribute map video stream and auxiliary information stream are mixed to obtain the final encoded stream output by the encoding end.
[0250] Decoding end:
[0251] The application of the three-dimensional grid displacement information decoding method proposed in this application at the decoding end is shown in FIG6c . The entire application process is described in detail below:
[0252] (1) Auxiliary information decoding
[0253] Auxiliary information includes the static grid encoder type, video encoder type, grid subdivision scheme, grid iteration count, geometric displacement vector transformation scheme, coefficient permutation scheme, displacement truncation flag, and color conversion scheme. For grids encoded using inter-frame coding mode, the corresponding reference frame list is also included. This information guides the decoder to perform correct decoding. After decoding, this information is represented by corresponding syntax parameters.
[0254] (2) Basic grid decoding
[0255] Decoding of the base mesh can be categorized into intra and inter modes. This module is solely responsible for decoding information representing the base mesh. For intra mode, the module's decoded output is a 3D mesh containing geometric information, connectivity, and possible attribute information, including texture coordinates. For inter mode, the module decodes motion vectors and identifiers, as well as any intra sub-meshes. The output is a motion vector, identifier, and intra sub-meshes.
[0256] ①Intra-frame mode
[0257] The decoding of the basic grid information in the intra-frame mode is also the decoding of the basic grid. This module uses the corresponding grid decoder to decode the basic grid through the static grid decoder type indicated by the auxiliary information.
[0258] ②Interframe mode
[0259] In inter-frame mode, the motion vector, identifier, and any intra-frame sub-grids need to be decoded. For intra-frame sub-grids, decoding is performed using the grid decoder indicated by the auxiliary information. The motion vector identifier is obtained through entropy decoding, and the motion vector is obtained through inverse prediction and inverse quantization after entropy decoding.
[0260] (3) Segmentation
[0261] The subdivision module operates in the same way as the encoding end subdivision operation, and uses auxiliary information to indicate the number of subdivision iterations in different areas of the current basic grid.
[0262] (4) Displacement vector video decoding
[0263] The displacement vector video code stream is decoded according to the video decoder type indicated in the auxiliary information. Note that this includes geometric displacement vector video and displacement vector video with different attributes.
[0264] (5) Displacement vector decoding
[0265] Depending on whether the data selection position is marked, there are two ways to decode the displacement vector:
[0266] ①Unmarked selection level number
[0267] For the case where the number of selected levels is not marked: when obtaining the quantized wavelet transform coefficients, all pixel data in the two-dimensional image is first extracted according to the arrangement scheme. The extracted pixel data contains two values: one is the quantized wavelet transform coefficient selected by the encoder's level selection module; the other is the video padding value during the encoder's two-dimensional arrangement process, which is a value agreed upon between the encoder and decoder. After obtaining the pixel data, the video padding portion of the pixel data is removed according to the video padding value agreed upon with the encoder, obtaining the quantized wavelet transform coefficient selected by the encoder's level selection module. The selected quantized wavelet transform coefficients are then padded with zeros based on the number of vertices in the subdivided decoded base mesh until the number of selected quantized wavelet transform coefficients matches the number of vertices in the subdivided decoded base mesh. The quantized wavelet transform coefficients are then obtained. Dequantization and inverse transformation operations are then performed on the quantized wavelet transform coefficients to recover the corresponding displacement vector.
[0268] ②Marks the number of selected levels
[0269] For the case where the number of selected levels is marked: when obtaining the quantized wavelet transform coefficients, the number of levels of the quantized wavelet transform coefficients and the number of data in each level are exactly the same as the subdivided decoding basic grid. Therefore, in the subdivided decoding basic grid, the number of quantized wavelet transform coefficients selected by the level selection module can be obtained based on the marked number of selected levels. Then, based on the number of wavelet transform coefficients, the selected data is extracted from the two-dimensional image according to the arrangement scheme. Then, based on the number of vertices of the subdivided decoding basic grid, zero padding is performed at the end of the extracted data until the number of data and the number of vertices are the same, and the quantized wavelet transform coefficients can be obtained. Then, dequantization, inverse transformation, and other operations are performed on the quantized wavelet transform coefficients to restore the corresponding displacement vector.
[0270] (6) Reconstruct the deformed mesh
[0271] After the base mesh and displacement vectors are decoded and reconstructed, the deformed mesh is reconstructed based on these two parts. The corresponding displacement vector is added to each vertex of the subdivided mesh, as shown in formula (6): deformedmesh[i].v[k] = subdivmesh[i].v[k] + displacement[k]#(6)
[0272] Among them, subdivmesh[i].v[k] is the geometric coordinates of the k-th vertex after the base mesh of the current frame (index is i) is subdivided, displacement[k] is the spatial displacement vector corresponding to the k-th vertex, and deformedmesh[i].v[k] is the geometric coordinates of the k-th vertex after subdivision and deformation in the current frame.
[0273] The attribute displacement vector is applied to the corresponding attribute value in the same way, taking texture coordinates as an example, as shown in formula (7). deformedmesh[i].vt[k] = subdivmesh[i].vt[k] + attdisplacement[k] # (7)
[0274] Among them, subdivmesh[i].vt[k] represents the k-th texture coordinate after the base mesh of the current frame is subdivided, attdisplacement[k] represents the k-th value of the attribute displacement vector, and deformedmesh[i].vt[k] represents the value of the k-th texture coordinate after the subdivision and deformation of the current frame.
[0275] (7) Attribute Graph Decoding
[0276] The attribute map decoder is responsible for decoding the attribute map bitstream using the video decoder indicated in the auxiliary information. An optional color space conversion is performed to obtain an image format consistent with the input attribute map from the encoder, resulting in the final decoded attribute map output. For multiple attribute map bitstreams, each attribute map is mapped to its corresponding texture coordinates according to its identifier after decoding.
[0277] After each module is processed, the decoder finally obtains the reconstructed deformed mesh and the corresponding attribute map. Subsequent applications use the reconstructed deformed mesh and attribute map as input for processing.
[0278] The 3D mesh displacement information encoding method provided in the embodiments of the present application can be executed by a 3D mesh displacement information encoding device. In the embodiments of the present application, the 3D mesh displacement information encoding method performed by the 3D mesh displacement information encoding device is used as an example to illustrate the 3D mesh displacement information encoding device provided in the embodiments of the present application.
[0279] Referring to FIG7 , an embodiment of the present application further provides a three-dimensional grid displacement information encoding device, which is applied to an encoding end, or the device is the encoding end. As shown in FIG7 , the three-dimensional grid displacement information encoding device 700 includes:
[0280] A first acquisition module 701 is configured to acquire displacement data of a 3D grid to be encoded, wherein the displacement data includes displacement vectors of M displacement levels;
[0281] A second acquisition module 702 is configured to acquire N displacement levels among the M displacement levels;
[0282] The encoding module 703 is configured to encode the displacement vectors of the N displacement levels to obtain a displacement code stream;
[0283] Wherein, M and N are both positive integers, and N is smaller than M.
[0284] Optionally, the second obtaining module 702 is further configured to:
[0285] N displacement levels among the M displacement levels are obtained according to a preset threshold.
[0286] Optionally, the proportion of the number of non-zero displacement vector modulus values in the N+1th displacement level in the displacement level is less than or equal to the preset threshold.
[0287] Optionally, the second obtaining module 702 is further configured to perform any one of the following:
[0288] Calculating the proportion of the number of non-zero displacement vector modulus values in each displacement level in the displacement level from the front to the back according to the order of the displacement levels, and if it is determined that the proportion corresponding to the N+1th displacement level is less than or equal to the preset threshold, obtaining the first N displacement levels of the M displacement levels;
[0289] According to the order of the displacement levels, the proportion of the number of non-zero displacement vector modulus values in each level in the displacement level is calculated from back to front. When it is determined that the proportion corresponding to the Nth displacement level is greater than the preset threshold, the first N displacement levels of the M displacement levels are obtained.
[0290] Optionally, the device further comprises:
[0291] The sending module is used to mark the selected N displacement levels and send the marks to the decoding end.
[0292] Optionally, the encoding module 703 is further configured to perform any one of the following:
[0293] Arranging the displacement vectors of the N displacement levels into a YUV image, performing a padding operation on the YUV image with the displacement vectors arranged therein based on a preset padding value, and encoding the padded YUV image through a video encoder to obtain a displacement code stream;
[0294] Entropy coding is performed on the displacement vectors of the N displacement levels to obtain a displacement code stream.
[0295] Optionally, in the case where the apparatus is encoded by video-based dynamic mesh compression (VDMC), the displacement vectors in the displacement level are represented by quantized wavelet transform coefficients.
[0296] Optionally, the device further comprises:
[0297] a storage module, configured to mark the selected N displacement levels and store the marks in auxiliary information;
[0298] The sending module is used to send the auxiliary information storing the mark to the decoding end.
[0299] Optionally, the encoding module 703 is further configured to:
[0300] The quantized wavelet transform coefficients of the N displacement levels are arranged on a two-dimensional image, the two-dimensional image on which the quantized wavelet transform coefficients are arranged is filled based on a preset filling value, and the filled two-dimensional image is encoded by a video encoder to obtain a displacement code stream.
[0301] Optionally, the device further includes a processing module, configured to:
[0302] Extracting pixel data from the padded two-dimensional image to obtain pixel data, and obtaining quantized wavelet transform coefficients of the N displacement levels based on the pixel data;
[0303] performing zero padding on the quantized wavelet transform coefficients of the N displacement levels according to the number of mesh vertices after subdivision of the reconstructed base mesh to obtain quantized wavelet transform coefficients of M displacement levels, wherein the total number of the quantized wavelet transform coefficients of the M displacement levels is the same as the number of mesh vertices after subdivision of the reconstructed base mesh;
[0304] A reconstructed subdivided and deformed grid is obtained based on the subdivided grid of the reconstructed basic grid and the quantized wavelet transform coefficients of the M displacement levels, and attribute map conversion and compression are performed based on the reconstructed subdivided and deformed grid, the three-dimensional grid to be encoded and the original attribute map to obtain an attribute map code stream.
[0305] Optionally, the processing module is further configured to:
[0306] A removal operation is performed on the retrieved pixel point data according to a preset filling value to obtain quantized wavelet transform coefficients of the N displacement levels.
[0307] Optionally, when the apparatus marks the selected N displacement levels, the processing module is further configured to:
[0308] The number of quantized wavelet transform coefficients of the N displacement levels is determined in the grid after the reconstructed basic grid is subdivided according to the mark, and pixel point data of the same number as the mark are selected from the filled two-dimensional image to obtain the quantized wavelet transform coefficients of the N displacement levels.
[0309] In an embodiment of the present application, the displacement vectors of the N displacement levels are part of the displacement data of the three-dimensional grid to be encoded, and therefore, only part of the displacement data needs to be encoded, that is, part of the displacement data is discarded, and there is no need to encode all the displacement data of the three-dimensional grid to be encoded, thereby effectively reducing the amount of encoded data of the displacement data and effectively improving the encoding efficiency of the displacement data.
[0310] The three-dimensional grid displacement information encoding device in the embodiments of the present application can be an electronic device, such as an electronic device with an operating system, or a component of an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other device other than a terminal.
[0311] The three-dimensional grid displacement information encoding device provided in the embodiment of the present application can implement each process implemented in the above-mentioned three-dimensional grid displacement information encoding method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0312] Referring to FIG8 , an embodiment of the present application further provides a 3D grid displacement information decoding device, which is applied to a decoding end, or is the decoding end. As shown in FIG8 , the 3D grid displacement information decoding device 800 includes:
[0313] The third acquisition module 801 is used to obtain a displacement code stream;
[0314] A decoding module 802 is configured to decode the displacement code stream to obtain displacement vectors of N displacement levels;
[0315] A restoration module 803 is configured to restore the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data;
[0316] Wherein, M and N are both positive integers, and N is smaller than M.
[0317] Optionally, the recovery module 803 is further configured to:
[0318] Performing a zero-padding operation on the displacement vectors of the N displacement levels according to the number of vertices of the mesh after the decoded mesh is subdivided, so as to restore the displacement vectors of the M displacement levels;
[0319] The total number of displacement vectors of the M displacement levels is the same as the number of vertices of the mesh after the decoded mesh is subdivided.
[0320] Optionally, the decoding module 802 is further configured to perform any one of the following:
[0321] Decoding the displacement code stream to obtain a YUV image by video decoding, extracting pixel data from the YUV image, and performing a removal operation on the pixel data based on a preset padding value to obtain pixel data of N displacement levels, wherein the pixel data is used to represent a displacement vector in the displacement level;
[0322] Decoding the displacement code stream using a VDMC method to obtain a two-dimensional image, extracting pixel data from the two-dimensional image, and performing a removal operation on the pixel data based on a preset padding value to obtain quantized wavelet transform coefficients of N displacement levels, wherein the quantized wavelet transform coefficients are used to represent displacement vectors in the displacement levels;
[0323] The displacement code stream is decoded by entropy decoding to obtain displacement vectors of N displacement levels.
[0324] Optionally, the device further comprises:
[0325] The fourth acquisition module is used to acquire a mark sent by the encoding end, where the mark is related to the N displacement levels.
[0326] Optionally, when the apparatus decodes the displacement code stream by video decoding, the decoding module 802 is further configured to:
[0327] Decoding the bitstream to obtain a YUV image;
[0328] Determining the number of displacement vectors of the N displacement levels in the subdivided decoding base grid according to the marking;
[0329] Pixel point data of the same number as the number are extracted from the YUV image, and displacement vectors of the N displacement levels are obtained based on the extracted pixel point data, wherein the pixel point data are used to represent the displacement vectors in the displacement levels.
[0330] Optionally, when the device decodes the bit-shifted code stream in a VDMC manner, the decoding module 802 is further configured to:
[0331] Decoding the displacement code stream to obtain a two-dimensional image;
[0332] Determining the number of displacement vectors of the N displacement levels in the subdivided decoding base grid according to the marking;
[0333] Quantized wavelet transform coefficients of the same number as the number are extracted from the two-dimensional image, and displacement vectors of the N displacement levels are obtained based on the extracted quantized wavelet transform coefficients. The quantized wavelet transform coefficients are used to characterize the displacement vectors in the displacement levels.
[0334] In an embodiment of the present application, after obtaining the displacement code stream, the device decodes the displacement code stream to obtain displacement vectors of N displacement levels. The decoding end can perform a zero-padding operation on the displacement vectors of the N displacement levels to restore the displacement vectors of M displacement levels. N is less than M, that is, the device can restore the complete displacement data, and the encoding end only needs to encode the displacement vectors of some levels in the displacement data of the original three-dimensional grid to be encoded, which effectively reduces the amount of encoded data, improves encoding efficiency, and reduces the transmission pressure between the encoding end and the decoding end.
[0335] The three-dimensional grid displacement information decoding device provided in the embodiment of the present application can implement each process implemented in the above-mentioned three-dimensional grid displacement information decoding method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.
[0336] As shown in Figure 9, an embodiment of the present application further provides an electronic device 900, comprising a processor 901 and a memory 902. The memory 902 stores a program or instruction that can be executed on the processor 901. For example, when the electronic device 900 is an encoding end, the program or instruction, when executed by the processor 901, implements the various steps of the above-mentioned embodiment of the three-dimensional mesh displacement information encoding method and can achieve the same technical effect. When the electronic device 900 is a decoding end, the program or instruction, when executed by the processor 901, implements the various steps of the above-mentioned embodiment of the three-dimensional mesh displacement information decoding method and can achieve the same technical effect. To avoid repetition, they are not further described here.
[0337] The present application also provides a terminal comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to execute a program or instruction to implement the steps of the method embodiment shown in Figures 2 or 3. This terminal embodiment corresponds to the above-described method embodiment, and each implementation process and implementation method of the above-described method embodiment can be applied to this terminal embodiment and achieve the same technical effect. Specifically, Figure 10 is a schematic diagram of the hardware structure of a terminal implementing an embodiment of the present application.
[0338] The terminal 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009 and at least some of the components of the processor 1010.
[0339] Those skilled in the art will appreciate that the terminal 1000 may also include a power supply (such as a battery) to power various components. The power supply may be logically connected to the processor 1010 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The terminal structure shown in FIG10 does not limit the terminal. The terminal may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.
[0340] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0341] In the embodiment of the present application, after receiving downlink data from a network-side device, the RF unit 1001 may transmit the data to the processor 1010 for processing. Furthermore, the RF unit 1001 may send uplink data to the network-side device. Typically, the RF unit 1001 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.
[0342] The memory 1009 can be used to store software programs or instructions and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0343] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.
[0344] In which case, when the terminal 1000 is an encoding end, the processor 1010 is configured to:
[0345] Obtaining displacement data of a three-dimensional grid to be encoded, wherein the displacement data includes displacement vectors of M displacement levels;
[0346] Obtaining N displacement levels among the M displacement levels;
[0347] Encoding the displacement vectors of the N displacement levels to obtain a displacement code stream;
[0348] Wherein, M and N are both positive integers, and N is smaller than M.
[0349] Alternatively, when the terminal 1000 is a decoding end, the processor 1010 is configured to:
[0350] Get the displacement code stream;
[0351] Decoding the displacement code stream to obtain displacement vectors of N displacement levels;
[0352] Restoring the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data;
[0353] Wherein, M and N are both positive integers, and N is smaller than M.
[0354] In an embodiment of the present application, the displacement vectors of the N displacement levels are part of the displacement data of the three-dimensional grid to be encoded, and thus the terminal only needs to encode part of the displacement data, that is, part of the displacement data is discarded, and there is no need to encode all the displacement data of the three-dimensional grid to be encoded, thereby effectively reducing the amount of encoded data of the displacement data and effectively improving the encoding efficiency of the displacement data.
[0355] It can be understood that the implementation process of each implementation method mentioned in this embodiment can refer to the relevant description of the above-mentioned method embodiment and achieve the same or corresponding technical effects. To avoid repetition, it will not be repeated here.
[0356] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned three-dimensional grid displacement information encoding method or decoding method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0357] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. In some examples, the readable storage medium may be a non-transitory readable storage medium.
[0358] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned three-dimensional grid displacement information encoding method or decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0359] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0360] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned three-dimensional grid displacement information encoding method or decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0361] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0362] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general-purpose hardware platform, or of course, by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes a number of instructions for enabling a terminal or network-side device to execute the methods described in each embodiment of the present application.
[0363] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.
Claims
1. A method for encoding three-dimensional grid displacement information, include: The encoding end obtains displacement data of the three-dimensional grid to be encoded, wherein the displacement data includes displacement vectors of M displacement levels; The encoding end obtains N displacement levels among the M displacement levels; The encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream; Wherein, M and N are both positive integers, and N is less than M.
2. The method according to claim 1, in, The encoder obtains N displacement levels among the M displacement levels, including: The encoding end obtains N displacement levels among the M displacement levels according to a preset threshold.
3. The method according to claim 2, in, The proportion of the number of non-zero displacement vector modulus values in the N+1th displacement level in the displacement level is less than or equal to the preset threshold.
4. The method according to claim 2 or 3, in, The encoder obtains N displacement levels among the M displacement levels according to a preset threshold, including any one of the following: The encoder calculates, in order from front to back according to the order of the displacement levels, the proportion of the number of non-zero displacement vector modulus values in each displacement level in the displacement level, and when it is determined that the proportion corresponding to the N+1th displacement level is less than or equal to the preset threshold, obtains the first N displacement levels of the M displacement levels; The encoding end calculates the proportion of the number of non-zero displacement vector modulus values in each level in the displacement level from back to front according to the order of the displacement levels, and obtains the first N displacement levels of the M displacement levels when it is determined that the proportion corresponding to the Nth displacement level is greater than the preset threshold.
5. The method according to any one of claims 1 to 4, in, The method further comprises: The encoding end marks the selected N displacement levels and sends the marks to the decoding end.
6. The method according to any one of claims 1 to 4, in, The encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream, including any one of the following: The encoding end arranges the displacement vectors of the N displacement levels into a YUV image, performs a padding operation on the YUV image arranged with the displacement vectors based on a preset padding value, and encodes the padded YUV image through a video encoder to obtain a displacement code stream; The encoding end performs entropy encoding on the displacement vectors of the N displacement levels to obtain a displacement code stream.
7. The method according to any one of claims 1 to 4, in, In the case where the encoding is performed by video-based dynamic grid compression (VDMC) at the encoding end, the displacement vectors in the displacement level are represented by quantized wavelet transform coefficients.
8. The method according to claim 7, in, The method further comprises: The encoding end marks the selected N displacement levels and stores the marks in the auxiliary information; The encoding end sends the auxiliary information storing the mark to the decoding end.
9. The method according to claim 8, in, The encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream, including: The encoding end arranges the quantized wavelet transform coefficients of the N displacement levels on a two-dimensional image, fills the two-dimensional image on which the quantized wavelet transform coefficients are arranged based on a preset filling value, and encodes the filled two-dimensional image through a video encoder to obtain a displacement code stream.
10. The method according to claim 9, in, After the encoding end encodes the displacement vectors of the N displacement levels to obtain a displacement code stream, the method further includes: The encoding end extracts pixel point data from the padded two-dimensional image to obtain pixel point data, and obtains quantized wavelet transform coefficients of the N displacement levels according to the pixel point data; The encoder performs a zero padding operation on the quantized wavelet transform coefficients of the N displacement levels according to the number of mesh vertices after the reconstruction of the base mesh subdivided, so as to obtain quantized wavelet transform coefficients of M displacement levels, wherein the total number of the quantized wavelet transform coefficients of the M displacement levels is the same as the number of mesh vertices after the reconstruction of the base mesh subdivided; The encoding end obtains a reconstructed subdivided and deformed grid based on the subdivided grid of the reconstructed basic grid and the quantized wavelet transform coefficients of the M displacement levels, and performs attribute map conversion and compression based on the reconstructed subdivided and deformed grid, the three-dimensional grid to be encoded and the original attribute map to obtain an attribute map code stream.
11. The method according to claim 10, in, The step of obtaining the quantized wavelet transform coefficients of the N displacement levels according to the pixel point data includes: The encoding end performs a removal operation on the retrieved pixel point data according to a preset padding value to obtain quantized wavelet transform coefficients of the N displacement levels.
12. The method according to claim 10, in, In a case where the encoding end marks the selected N displacement levels, the encoding end takes out pixel point data in the padded two-dimensional image to obtain pixel point data, and obtains quantized wavelet transform coefficients of the N displacement levels according to the pixel point data, including: The encoding end determines the number of quantized wavelet transform coefficients of the N displacement levels in the grid after the reconstructed basic grid is subdivided according to the mark, and selects pixel point data of the same number from the filled two-dimensional image to obtain the quantized wavelet transform coefficients of the N displacement levels.
13. A method for decoding three-dimensional grid displacement information, include: The decoding end obtains the displacement code stream; The decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels; The decoding end restores the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data; Wherein, M and N are both positive integers, and N is less than M.
14. The method according to claim 13, in, The decoding end restores the displacement vectors of the N displacement levels into displacement vectors of M displacement levels, including: The decoding end performs a multiplication of the displacement vectors of the N displacement levels according to the number of vertices of the mesh after the decoded mesh is subdivided. Perform zero padding operation to restore the displacement vectors of M displacement levels; The total number of displacement vectors of the M displacement levels is the same as the number of vertices of the mesh after the decoded mesh is subdivided.
15. The method according to claim 13 or 14, in, The decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels, including any of the following: The decoding end decodes the displacement code stream by video decoding to obtain a YUV image, extracts pixel point data in the YUV image, and removes the pixel point data based on a preset padding value to obtain pixel point data of N displacement levels, wherein the pixel point data is used to represent the displacement vector in the displacement level; The decoding end decodes the displacement code stream in a VDMC manner to obtain a two-dimensional image, extracts pixel point data in the two-dimensional image, and removes the pixel point data based on a preset padding value to obtain quantized wavelet transform coefficients of N displacement levels, wherein the quantized wavelet transform coefficients are used to characterize the displacement vectors in the displacement levels; The decoding end decodes the displacement code stream by entropy decoding to obtain displacement vectors of N displacement levels.
16. The method according to claim 13 or 14, in, The method further comprises: The decoding end obtains a mark sent by the encoding end, where the mark is related to the N displacement levels.
17. The method according to claim 16, in, In the case where the decoding end decodes the displacement code stream by video decoding, the decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels, including: The decoding end decodes the displacement code stream to obtain a YUV image; The decoding end determines the number of displacement vectors of the N displacement levels in the subdivided decoding basic grid according to the mark; The decoding end extracts pixel point data of the same number as the number from the YUV image, obtains the displacement vectors of the N displacement levels according to the extracted pixel point data, and the pixel point data is used to represent the displacement vectors in the displacement level.
18. The method according to claim 16, in, In the case where the decoding end decodes the displacement code stream in a VDMC manner, the decoding end decodes the displacement code stream to obtain displacement vectors of N displacement levels, including: The decoding end decodes the displacement code stream to obtain a two-dimensional image; The decoding end determines the number of displacement vectors of the N displacement levels in the subdivided decoding basic grid according to the mark; The decoding end extracts quantized wavelet transform coefficients of the same number from the two-dimensional image, obtains the displacement vectors of the N displacement levels based on the extracted quantized wavelet transform coefficients, and the quantized wavelet transform coefficients are used to characterize the displacement vectors in the displacement levels.
19. A three-dimensional grid displacement information encoding device, include: A first acquisition module, used to acquire displacement data of a three-dimensional grid to be encoded, wherein the displacement data includes displacement vectors of M displacement levels; A second acquisition module, configured to acquire N displacement levels among the M displacement levels; An encoding module, used for encoding the displacement vectors of the N displacement levels to obtain a displacement code stream; Wherein, M and N are both positive integers, and N is less than M.
20. A three-dimensional grid displacement information decoding device, include: A third acquisition module is used to acquire a displacement code stream; A decoding module, used for decoding the displacement code stream to obtain displacement vectors of N displacement levels; A recovery module, used for recovering the displacement vectors of the N displacement levels into displacement vectors of M displacement levels to obtain displacement data; Wherein, M and N are both positive integers, and N is less than M.
21. A terminal comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, in, When the program or instruction is executed by the processor, the steps of the three-dimensional mesh displacement information encoding method as described in any one of claims 1-12 are implemented, or the steps of the three-dimensional mesh displacement information decoding method as described in any one of claims 13-18 are implemented.
22. A readable storage medium, wherein a program or an instruction is stored on the readable storage medium. in, When the program or instruction is executed by a processor, the steps of the three-dimensional mesh displacement information encoding method as described in any one of claims 1-12 are implemented, or the steps of the three-dimensional mesh displacement information decoding method as described in any one of claims 13-18 are implemented.
23. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the three-dimensional mesh displacement information encoding method as described in any one of claims 1 to 12, or to implement the steps of the three-dimensional mesh displacement information decoding method as described in any one of claims 13 to 18.
Citation Information
Patent Citations
Methods and devices for encoding and decoding three dimensional grids
CN101626509A
Embedded zerotree coding method on basis of inverse Loop subdivision
CN103077543A
Mesh compression
CN1526122A
2D mesh geometry and motion vector compression
US6047088A
Cited By
Distortion information for each iteration of vertices reconstruction
US12561845B2
