Encoding processing method, decoding processing method, and related device
By setting the target identification information in the target code stream and indicating the acquisition method of the target texture coordinates, the problem of insufficient flexibility of three-dimensional grid coding is solved, and the coding flexibility is improved and the code stream is optimized.
Patent Information
- Application Number
- PCT/CN2024/080892
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-03-11
- Publication Date
- 2024-09-26
AI Technical Summary
The flexibility of three-dimensional grid coding is poor, resulting in a large code stream obtained by coding, making it difficult to meet the coding requirements of different needs.
Set the target identification information in the target code stream to indicate the acquisition method of the target texture coordinates, so that the encoding end and the decoding end use different methods to perform three-dimensional grid encoding according to different needs, improving encoding flexibility.
Through the use of target identification information, the flexibility of three-dimensional grid coding is improved. Encoding and decoding can be performed according to different needs, reducing the code stream size and improving coding efficiency.
Smart Images

Figure CN2024080892_26092024_PF_FP
Abstract
Description
Coding processing method, decoding processing method and related equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202310262481.2 filed in China on March 17, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of three-dimensional grid coding technology, and specifically relates to an encoding processing method, a decoding processing method and related equipment. Background Art
[0004] During the 3D mesh encoding process, mesh encoding is typically performed using a fixed encoding method. For example, the encoding device performs mesh simplification, mesh parameterization, subdivision processing, and deformation processing on the mesh to be encoded to obtain a base mesh. This base mesh is then compressed and encoded to obtain a base mesh bitstream. This results in a relatively large bitstream. Therefore, the related art suffers from the problem of limited flexibility in 3D mesh encoding.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide an encoding processing method, a decoding processing method and related devices, which can solve the problem of poor flexibility of three-dimensional grid encoding.
[0007] In a first aspect, a coding processing method is provided, which is applied to a coding end and includes:
[0008] Determine a basic grid code stream based on the grid to be coded;
[0009] A target bitstream is generated based on the texture map to be encoded corresponding to the grid to be encoded and the basic grid bitstream, wherein the target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the acquisition method includes obtaining from the basic grid bitstream or generating by a decoding end based on grid parameterization.
[0010] In a second aspect, a decoding processing method is provided, which is applied to a decoding end and includes:
[0011] Receive a target bitstream, the target bitstream including a basic grid bitstream and target identification information, the target identification information being used to indicate a method for acquiring target texture coordinates, the method including acquiring from the basic grid bitstream or generating by a decoding end based on grid parameterization;
[0012] Decoding the basic grid code stream to obtain a third grid;
[0013] generating a target decoding grid based on the third grid and the acquisition method;
[0014] The target decoding grid includes the target texture coordinates.
[0015] In a third aspect, a coding processing device is provided, which is applied to a coding end and includes:
[0016] A processing module, configured to determine a basic grid code stream based on the grid to be coded;
[0017] A generation module is configured to generate a target bitstream based on the to-be-encoded texture map corresponding to the to-be-encoded mesh and the basic mesh bitstream, wherein the target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the method includes obtaining the target texture coordinates from the basic mesh bitstream or generating the target texture coordinates by a decoding end based on mesh parameterization.
[0018] In a fourth aspect, a decoding processing device is provided, which is applied to a decoding end and includes:
[0019] a receiving module, configured to receive a target bitstream, the target bitstream including a basic grid bitstream and target identification information, the target identification information being used to indicate a method for acquiring target texture coordinates, the method including acquiring from the basic grid bitstream or generating by a decoding end based on grid parameterization;
[0020] A decoding module, configured to decode the basic grid code stream to obtain a third grid; and generate a target decoding grid based on the third grid and the acquisition method;
[0021] The target decoding grid includes the target texture coordinates.
[0022] In a fifth aspect, an electronic device is provided, which terminal includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented, or when the program or instructions are executed by the processor, the steps of the method described in the third aspect are implemented.
[0023] In a sixth aspect, an electronic device is provided, including a processor and a communication interface, wherein:
[0024] When the electronic device is an encoding end, the processor is configured to determine a basic mesh bitstream based on a mesh to be encoded; generate a target bitstream based on a texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream, the target bitstream including target identification information, the target identification information being used to indicate a method for obtaining target texture coordinates, the method including obtaining from the basic mesh bitstream or generating by a decoding end based on mesh parameterization;
[0025] When the electronic device is a decoding end, the communication interface is used to receive a target code stream, the target code stream including a basic grid code stream and target identification information, the target identification information being used to indicate a method for acquiring target texture coordinates, the method including acquiring from the basic grid code stream or generating by the decoding end based on grid parameterization; the processor is used to decode the basic grid code stream to obtain a third grid; and generate a target decoding grid based on the third grid and the acquisition method; wherein the target decoding grid includes the target texture coordinates.
[0026] In the seventh aspect, a video encoding and decoding system is provided, including: an encoding end device and a decoding end device, the encoding end device can be used to execute the steps of the grid encoding method as described in the first aspect, and the decoding end device can be used to execute the steps of the grid decoding method as described in the third aspect.
[0027] In an eighth 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 third aspect are implemented.
[0028] In the ninth 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 steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0029] In the tenth aspect, a computer program / program product is provided, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0030] In the embodiment of the present application, since target identification information is set in the target code stream to indicate the method for obtaining target texture coordinates, three-dimensional mesh encoding can be performed in different ways according to different needs, thereby improving the flexibility of three-dimensional mesh encoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a diagram of a traditional coding framework;
[0032] FIG2 is a traditional decoding framework diagram;
[0033] FIG3 is a schematic diagram of a flow chart of an encoding processing method provided in an embodiment of the present application;
[0034] FIG4 is an example diagram of a coding framework in the coding processing method provided in an embodiment of the present application;
[0035] FIG5 is an example diagram of a grid simplification operation in the encoding processing method provided in an embodiment of the present application;
[0036] FIG6 is an example diagram of subdivision processing in the encoding processing method provided in an embodiment of the present application;
[0037] FIG7 is an example diagram of another encoding framework in the encoding processing method provided in an embodiment of the present application;
[0038] FIG8 is a schematic diagram of a decoding process method according to an embodiment of the present application;
[0039] FIG9 is an example diagram of a decoding framework in a decoding processing method provided in an embodiment of the present application;
[0040] FIG10 is an example diagram of another decoding framework in the decoding processing method provided in an embodiment of the present application;
[0041] FIG11 is a structural diagram of a coding processing device provided in an embodiment of the present application;
[0042] FIG12 is a structural diagram of a decoding processing device provided in an embodiment of the present application;
[0043] FIG13 is a structural diagram of a communication device provided in an embodiment of the present application;
[0044] FIG14 is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] 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.
[0046] The terms "first", "second", etc. in the specification and claims of 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 the specification and claims represents at least one of the connected objects, for example, "A or B" covers three options, namely, Option 1: including A and excluding B; Option 2: including B and excluding A; Option 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0047] The term "instruction" in the specification and claims of this application can be either an explicit instruction or an implicit instruction. An explicit instruction can be understood as the sender explicitly informing the recipient of the required operation or requested result in the instruction sent; an implicit instruction can be understood as the recipient making a judgment based on the instruction sent by the sender and determining the required operation or requested result based on the judgment result.
[0048] The term "instruction" in the specification and claims of this application can be either an explicit instruction or an implicit instruction. An explicit instruction can be understood as the sender explicitly informing the recipient of the required operation or requested result in the instruction sent; an implicit instruction can be understood as the recipient making a judgment based on the instruction sent by the sender and determining the required operation or requested result based on the judgment result.
[0049] The encoding and decoding end corresponding to the grid encoding and decoding method in the embodiment of the present application can be a terminal, which can also be called a terminal device or user equipment (UE). The terminal can be a mobile phone, a tablet personal computer, a laptop computer or a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile Internet device (MID), a wearable device (Wearable Device) or a vehicle user equipment (VUE), a pedestrian terminal (Pedestrian User Equipment, PUE) and other terminal-side devices. Wearable devices include: smart watches, bracelets, headphones, glasses, etc. It should be noted that the specific type of the terminal is not limited in the embodiment of the present application.
[0050] For ease of understanding, some of the contents involved in the embodiments of this application are described below:
[0051] 1. Visual Volumetric Video-based Coding (V3C) standard
[0052] The V3C standard provides a method for encoding and decoding various three-dimensional media through video or image coding technology. Specifically, it converts the three-dimensional media content from a three-dimensional representation into multiple two-dimensional representations (called V3C components) through projection and other methods before encoding, and then encodes the two-dimensional representation using existing video or image coding technology. V3C components mainly include occupancy components, geometric components, and attribute components. The occupancy component can indicate which areas in the two-dimensional representation are associated with the data of the three-dimensional representation; the geometric component represents information related to the position of the three-dimensional data in space, and the attribute component can provide attribute information corresponding to the vertex, such as material and texture. In addition, the components also contain information on how to reconstruct the three-dimensional model through these components, which is called atlas information.
[0053] Atlas information is used to link all components, and additional information for reconstructing 3D from 2D is also included in the atlas components. An atlas consists of multiple basic units, called patches. Each patch represents a region of the available 2D components and contains the information needed to project that region back into 3D space.
[0054] 2. Video-based dynamic mesh coding (VDMC).
[0055] VDMC is a standard developed by the Moving Picture Experts Group (MPEG) for compressing 3D meshes. Its main concept is to compress 3D meshes by leveraging the existing V3C standard. However, because 3D meshes require encoding of connectivity information, the specific encoding process differs slightly from V3C. The syntax, semantics, and decoding operations of the V3C standard decoder must be extended to support 3D mesh decoding and reconstruction. Figures 1 and 2 show the VDMC codec framework.
[0056] Figure 1 shows the overall encoding framework. 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 vertices of the subdivided mesh and their nearest neighbors on the input mesh. This information is then used to adjust the vertex positions of the parameterized mesh (i.e., the mesh before subdivision and deformation). This adjusted mesh, called 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 (also known as wavelet coefficients) are quantized. These quantized coefficients are then arranged into a two-dimensional image according to a specific scan order. The video encoder then encodes the 2D image. The reconstructed displacement information is then applied to the subdivided base mesh to produce a reconstructed, deformed mesh. This mesh, along with the original input mesh and its corresponding texture map, is then fed into a 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 video encoder type, mesh encoder type, transform parameters, and quantization parameters, are passed to the decoder via auxiliary information.
[0057] Figure 2 shows the overall decoding framework. For the received bitstream, the decoder first demultiplexes the various bitstreams to obtain the base mesh bitstream, displacement bitstream, texture map bitstream, and auxiliary information bitstream (atlas bitstream). The base mesh bitstream is decoded using the mesh decoder indicated by the auxiliary information to obtain the base mesh. The displacement bitstream and texture map bitstream are decoded by the video decoder. For the displacement portion, after video decoding, the displacement is extracted from the image using the displacement decoding module and dequantized and inversely transformed. This displacement is then applied to the subdivided base mesh to obtain the deformed mesh reconstructed by the decoder. After decoding, the texture map corresponds to the reconstructed deformed mesh. Subsequent application or rendering modules process the reconstructed deformed mesh and the decoded texture map as input.
[0058] The following describes in detail the encoding processing method provided in the embodiments of the present application through some embodiments and their application scenarios in combination with the accompanying drawings.
[0059] 3 , an embodiment of the present application provides a coding processing method. As shown in FIG3 , the coding processing method includes:
[0060] Step 301, determining a basic grid code stream based on the grid to be coded;
[0061] Step 302: Generate a target bitstream based on the texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream. The target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates. The acquisition method includes obtaining from the basic mesh bitstream or generating by a decoding end based on mesh parameterization.
[0062] In the embodiment of the present application, the target identification information can explicitly or implicitly indicate the method for obtaining the target texture coordinates.
[0063] Optionally, in some embodiments, determining the basic grid code stream based on the grid to be encoded may specifically include:
[0064] Simplifying the grid to be coded to obtain a first grid;
[0065] performing subdivision processing and deformation processing on the first mesh to obtain displacement information and a second mesh obtained by adjusting vertex positions of the first mesh;
[0066] The second grid is compressed and coded to obtain a basic grid code stream.
[0067] In the embodiments of the present application, the encoder can determine the encoding method based on actual circumstances. For example, if it is necessary to reduce the bitrate transmission, the encoder can avoid encoding the texture coordinates, that is, not performing mesh parameterization before subdividing and deforming the first mesh. Otherwise, the encoder can perform encoding using texture coordinate encoding.
[0068] Optionally, when the acquisition method is to obtain from the base mesh code stream, after obtaining the first mesh, the first mesh can be mesh parameterized, and the mesh parameterized first mesh is used as input for subdivision processing. The second mesh can be understood as the base mesh including the target texture coordinates. That is, before performing subdivision processing and deformation processing on the first mesh, the method further includes:
[0069] performing grid parameterization on the first grid;
[0070] The input of the subdivision process is the first mesh after mesh parameterization.
[0071] Optionally, when the acquisition method is generated by the decoding end based on mesh parameterization, the second mesh can be understood as a basic mesh that does not include the target texture coordinates.
[0072] In the embodiment of the present application, since target identification information is set in the target code stream to indicate the method for obtaining target texture coordinates, three-dimensional mesh encoding can be performed in different ways according to different needs, thereby improving the flexibility of three-dimensional mesh encoding.
[0073] It should be noted that, since texture map conversion based on texture coordinates is required before texture map encoding, if texture coordinate encoding is not performed on the encoding side, texture coordinates must be generated based on mesh parameterization before texture map conversion. In the embodiments of the present application, mesh parameterization can be performed at different locations. The corresponding encoding process is different for different locations, which is described in detail below.
[0074] Optionally, in some embodiments, generating a target bitstream based on the texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream includes:
[0075] Performing grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid;
[0076] performing grid parameterization on the first reconstructed grid to obtain a second reconstructed grid;
[0077] Mixing the basic grid code stream, the displacement code stream, the auxiliary information code stream and the texture map code stream to obtain the target code stream;
[0078] Among them, the displacement code stream is obtained based on the displacement information and the second reconstructed grid, and the displacement information is obtained based on the grid to be encoded; the auxiliary information code stream is obtained based on the auxiliary information, and the auxiliary information is used to assist the decoding end in decoding; the texture map code stream is obtained based on the first reconstructed grid, the texture map to be encoded and the displacement code stream.
[0079] Optionally, in some embodiments, the method further comprises:
[0080] adjusting the displacement order of the second reconstructed mesh according to the displacement information to obtain a first vertex displacement;
[0081] Performing displacement coding on the first vertex displacement to obtain a displacement code stream;
[0082] Reconstructing a deformed mesh based on the first reconstructed mesh and first reconstructed vertex displacements to obtain a first reconstructed deformed mesh, wherein the first reconstructed vertex displacements are obtained by performing displacement reconstruction on the displacement code stream;
[0083] The texture map code stream is determined based on the first reconstructed mesh, the texture map to be encoded, and the first reconstructed deformed mesh.
[0084] In this embodiment of the present application, the encoder does not perform texture coordinate encoding and performs mesh parameterization before displacement encoding. Specifically, the encoder performs mesh parameterization before deforming the mesh, thereby reducing the complexity of mesh parameterization. Conversely, the decoder must perform mesh parameterization before performing subdivision processing to generate target texture coordinates.
[0085] In the embodiment of the present application, the encoding framework of the encoding end is specifically shown in Figure 4, including the following processes:
[0086] 1. Mesh simplification. Mesh simplification involves simplifying the input mesh to be encoded into 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 5, 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.
[0087] 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.
[0088] 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.
[0089] Mesh parameterization primarily involves regenerating texture coordinates for the simplified mesh to obtain the primary mesh. The specific mesh parameterization algorithm can be configured based on actual needs. For example, the Isocharts algorithm uses spectral analysis to implement stretch-driven 3D mesh parameterization, performing UV unwrapping, tiling, and packing the 3D mesh into a 2D texture domain.
[0090] 2. Mesh parameterization. Mesh parameterization can be performed at different locations according to different coding frameworks. If the encoding end considers encoding texture coordinates, coding framework 1 can be used, as shown in Figure 4, where the mesh parameterization is performed after the mesh is simplified. If the encoding end considers not encoding texture coordinates, the codec end uses the same mesh parameterization steps to regenerate the texture coordinates of the mesh, and coding framework 2 can be used, as shown in Figure 4, where the mesh parameterization is performed after reconstructing the basic mesh (i.e., reconstructing the mesh based on the basic mesh code stream to obtain the first reconstructed mesh).
[0091] Mesh parameterization primarily involves regenerating texture coordinates for the simplified mesh to obtain the initial mesh. The specific mesh parameterization algorithm can be set based on actual needs. For example, the Isocharts algorithm uses spectral analysis to implement stretch-driven 3D mesh parameterization, performing UV unwrapping, tiling, and packing the 3D mesh into a 2D texture domain. A stretch threshold is set, and the algorithm is outlined as follows:
[0092] a) Compute surface spectrum analysis to provide an initial parameterization;
[0093] b) performing iterations of stretch optimization;
[0094] c) if the stretch of this derived parameterization is less than a threshold, stop;
[0095] d) performing surface spectral clustering to partition the surface into charts;
[0096] e) Use graph cut algorithm to optimize chart boundaries;
[0097] f) Iteratively split the charts until the stretching criteria are met.
[0098] Optionally, surface spectral analysis is parameterized based on the isometric feature mapping (IsoMap) dimensionality reduction method. Given a set of high-dimensional points, IsoMap calculates the geodesic distance along the manifold as a sequence of jumps between adjacent points. The multidimensional scaling (MDS) algorithm is then applied to these geodesic distances to find a set of points with similar pairwise distances embedded in a low-dimensional space. Given a surface with N points, the calculation process is as follows:
[0099] a) Calculate the symmetric matrix D of the squared geodesic distances between surface points N ;
[0100] b) For D N Perform double centering and normalization to get B N, and its calculation process is shown in Equation (1):
[0101] Where, I is an N-dimensional identity matrix, and 1 is a unit vector with a length of N;
[0102] c) Calculate the eigenvalues λ N of B i and the corresponding eigenvectors
[0103] d) For each point i on the original surface, its embedding in the new space is an N-dimensional vector The calculation process of its j-th element is shown in Equation (2):
[0104] B N 's eigenvalues λ i and the corresponding eigenvectors constitute the spectral decomposition of the surface shape. The eigenvectors corresponding to the large eigenvalues represent the global low-frequency features on the surface, and the eigenvectors corresponding to the small eigenvalues represent the high-frequency details. The high-energy and low-frequency components are used as the basis for chartification and parameterization.
[0105] Although N eigenvalues are required to completely represent a surface with N vertices, a small portion of them usually occupies most of the energy. Therefore, only n (n << N) largest eigenvalues and the corresponding eigenvectors are calculated to generate the n-dimensional embeddings of all points.
[0106] Since the mapping from a high-dimensional space to a low-dimensional space is not isometric, this parameterization will cause distortion. The distortion of this n-dimensional embedding can be calculated as the sum of the geodesic distance distortions over all vertices. For each vertex i, its geodesic distance distortion (GDD) under the embedding is defined as shown in Equation (3):
[0107] Where, are the n-dimensional embedding coordinates of vertex i, and d geo (i, j) is the geodesic distance between point i and point j.
[0108] When n = 2, the surface spectral analysis produces a surface parameterization with the minimum sum of the squares of the GDDs of all vertices.
[0109] It should be noted that although the Isomap algorithm calculates the geodesic distance along the manifold, for some non-manifold cases in the input 3D mesh, this scheme will perform corresponding preprocessing to eliminate the existence of these non-manifolds.
[0110] Optionally, for stretch optimization, parameterization can introduce distortion due to the fact that 3D space is not isometric to 2D space. Distortion can be measured in many ways, including preservation of angles or areas, or how much a parameter distance is stretched or shrunk on the surface. In this algorithm, we focus on distance distortion, specifically the definition of geometric stretch, which defines the average stretch L of local distances on the surface. 2 and the worst-case stretch L ∞ Two measures. Suppose a triangle T with 2D texture coordinates p1, p2, p3, where p i =(s i ,t i ), the corresponding three-dimensional coordinates are expressed as q1, q2, q3, and the calculation process of the affine mapping S(p) = S(s, t) = q is shown in Equation 4:
[0111] in,<p1,p2,p3> represents the area of triangle p1, p2, p3. Since the mapping is affine, its partial derivative is constant on (s, t), and its calculation process is shown in Equation 5 and Equation 6:
[0112] in,
[0113] Then calculate the Jacobian matrix [S S ,S t The calculation process of the larger and smaller singular values of ] is shown in Equations 7 and 8:
[0114] Where a = S S ·S S , b=S S ·S t , c=S t ·S t . Singular value γ max , γ min The two stretching measures on triangle T are defined as follows: L ∞ (T) = γ max
[0115] (10);
[0116] In the entire three-dimensional grid M={T i The definition of the upper stretching measure is shown in Equations 11 and 12:
[0117] Among them, A′(T i ) is a triangle T i The surface area in three-dimensional space.
[0118] Due to L ∞ Relying only on one worst-case point in the domain, L ∞ Stretching is difficult to control by any method, but after a few L 2 Iterations of stretch minimization can significantly improve the results.
[0119] Alternatively, for surface spectral clustering, if the parameterization generated by spectral analysis fails to meet the stretch threshold, it will be divided into smaller charts. Since the global features of the model correspond to larger eigenvalues, they are used for partitioning. The results of spectral analysis are used to calculate several representative vertices, and then charts are grown simultaneously around these representative points. This method is called surface spectral clustering. The specific algorithm process is as follows:
[0120] a) Sort the eigenvalues and corresponding eigenvectors from spectral analysis from large to small, i.e. λ1≥λ2≥...≥λ N .
[0121] b) Get λ n / λ n+1 Maximize the top n eigenvalues and eigenvectors (n≤10).
[0122] c) For each vertex i in the 3D mesh, calculate its n-dimensional embedding coordinates
[0123] d) For each of the n embedded coordinates, find the two points with the largest and smallest coordinates and set them as 2n representative points.
[0124] e) Remove those representative points that are too close to each other, generating m ≤ 2n representative points (using a distance threshold of 10 times the average edge length of the input grid).
[0125] f) Using the geodesic distances calculated in the surface spectrum analysis, the 3D mesh is divided into m parts by simultaneously growing charts around the representative points. Each triangle is assigned to the chart with the closest representative point to the triangle (the geodesic distance from the triangle to the representative point is calculated as the average of the geodesic distances from the three vertices of the triangle to the representative vertex).
[0126] Optionally, for boundary optimization, after splitting the charts, a graph cut algorithm is used to optimize the boundaries between them. Chart boundaries should satisfy two goals: 1) they should pass through areas of high curvature without being too jagged, and 2) they should minimize the embedding distortion of the bounding charts. This algorithm formulates the optimal boundary problem as a grap cutting problem. For simplicity, the following discusses the binary case of splitting the surface in two. When the subdivision is processed into more than two charts, each pair of adjacent charts is considered in turn.
[0127] Suppose we are looking for an optimal boundary between charts A and B. The initial partition is generated using surface spectral clustering. We then generate an intermediate region C by extending a region to both sides of the initial partition boundary. The size of the intermediate region is proportional to the total area of the unpeeled patches. We now construct an undirected flow network graph from C using an extension of the method in the graph cut algorithm. Here, we transform two adjacent triangles f in the graph cut algorithm into i and f j The definition of “capacity” between is modified as shown in Equation 13: c(f i ,f j )=αc ang (f i ,f j )+(1-α)c distort (f i ,f j ) (13);
[0128] The first term in Equation 13 corresponds to the first objective of non-ragged cutting along edges with high dihedral angles, and the calculation process is shown in Equation 14:
[0129] Among them, d ang (f i ,f j )=1-cosα ij , α ij is a triangle f i and f j The angle between normals, avg(d ang ) is the average angular distance between adjacent triangles.
[0130] The second term in Equation 13 measures the embedding distortion, which is calculated as shown in Equations 15 and 16: d distort (f i ,f j )=|GDD A (f i)-GDD B (f i )|+|GDD A (f j )-GDD B (f j )| (16);
[0131] Among them, GDD A (f j ) and GDD B (f j ) are triangles f i GDD embedded under the induction of chart A or chart B, avg(d distort ) is the d on all pairs of adjacent triangles distort (f i ,f j ) average. c distort (f i ,f j ) prefers that its neighboring triangles balance the boundary edges of the GDD between the embeddings determined by chart A and chart B. In other words, the cut should avoid placing triangles on the wrong side, which would produce unnecessary deformation.
[0132] The weight parameter α in Equation 13 is a trade-off between the above two objectives.
[0133] This stretch-driven charting and parameterization algorithm is expensive to implement in its simplest form, especially as the number of model vertices increases. Therefore, to speed up computation, the Iso-charts algorithm uses the Landmark Isomap algorithm, an extension of the Isomap algorithm. The Landmark Isomap algorithm is also used during boundary optimization to calculate the embedding coordinates of vertices in the intermediate region, further minimizing embedding distortion.
[0134] Finally, the charts generated by the above process are packed into the 2D texture domain using the chart packing algorithm used in the MCGIM algorithm. Finally, a 3D mesh with regenerated texture coordinates is obtained.
[0135] 3. Subdivision and deformation processing. Subdivision processing is applied to the input 3D mesh to generate displacement vector information. The input 2D curve (represented by a 2D polyline), called the "original" curve, is first downsampled to generate a basic curve / polyline, called a "simplified" curve. The subdivision processing scheme is then applied to the simplified polyline to generate a "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 output by this module. The same deformation processing process is also applied to the attribute information corresponding to the vertex to obtain the corresponding attribute displacement vector.
[0136] The subdivision process takes the parameterized mesh as input and first subdivides the input mesh. Any subdivision scheme can be chosen. One possible scheme is the midpoint subdivision scheme, which subdivides each triangle into four subtriangles in each subdivision iteration, as shown in Figure 6. New vertices are introduced in the middle of each edge. The subdivision of geometric information and attribute information is performed independently, as the connection between geometric information and attribute information is usually different.
[0137] Optionally, calculate the midpoint v of the newly introduced edge (v1,v2) 12 Position Pos(v 12 ) is shown in Formula 17:
[0138] Among them, Pos(v1) is the geometric coordinate of vertex v1, and Pos(v2) is the geometric coordinate of vertex v2.
[0139] For the subdivided mesh, we find the nearest neighbor of each point on the original input mesh (including points on the original mesh surface). This can be accelerated using data structures such as kdTree. We calculate the distance between each vertex on the subdivided mesh and the geometric coordinates of its nearest neighbor on the original input mesh to obtain the displacement vector of each vertex's geometric coordinates. This module passes the generated displacement vector to subsequent modules for encoding.
[0140] For the generated displacement vectors, which are in the same global coordinate system as the input mesh, one possible optimization method is to transform them into a local coordinate system, where the local coordinate system of each vertex is defined by the normal vector of the vertex on the subdivided mesh. The advantage of this method is that the normal component of the geometric displacement vector has a more significant impact on the quality of the reconstructed mesh than the two tangential components, so a larger quantization parameter can be set for the tangential component.
[0141] 4. Basic mesh compression coding. The basic mesh can be understood as the second mesh mentioned above. There are two main different modes of compression coding, namely intra-frame mode and inter-frame mode. In intra-frame mode, the basic mesh compression module encodes and reconstructs the input three-dimensional mesh using the existing static mesh encoder. In inter-frame mode, the basic mesh compression module calculates the motion vector between the input mesh vertices and the reference frame mesh vertices, and then encodes the motion vector and reconstructs the current frame basic mesh based on the reconstructed motion vector and the reference frame mesh. Among them, the basic mesh compression module outputs the compressed code stream and passes the reconstructed basic mesh as output to the displacement sequence adjustment module, which adjusts the vertex displacement of the reconstructed basic mesh based on the displacement information to obtain the first vertex displacement.
[0142] 5. Wavelet transform. A transformation can be applied to the displacement vector to reduce the correlation between its data. An optional transformation is the linear wavelet transform, and its prediction process is defined as shown in Equation 18:
[0143] Where v is the newly inserted midpoint on the edge (v1, v2), Signal(v) is the displacement vector corresponding to vertex v, Signal(v1) is the displacement vector corresponding to vertex v1, and Signal(v2) is the displacement vector corresponding to vertex v2. The displacement vector of vertex v is predicted and then updated. The update process is defined as shown in Equation 19:
[0144] where v * is the set of all adjacent vertices of vertex v. The transformed displacement vector is called wavelet coefficient.
[0145] 6. Coefficient quantization: The transformed displacement vector, i.e., the wavelet coefficient, can be quantized. There are many ways to quantize. One method is shown in Equations 20 and 21:
[0146] disp[v].d[k]=floor(disp[v].d[k]*scale[k]) (20);
[0147] 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.
[0148] 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 after subdivision processing. That is, for the vertices after subdivision processing, the quantization parameter update is shown in Formula 7:
[0149] disp[v].d[k]=floor(disp[v].d[k]*scale[k]) (22);
[0150] Among them, lodScale[k] represents the coefficient of the quantization parameter of the current subdivision level.
[0151] 7. Displacement coding. This can include video coding or quotient coding. Alternatively, taking video coding as an example, the displacement coding part uses quantized wavelet coefficients as input for video coding. These quantized wavelet coefficients need to be arranged into a two-dimensional image. One arrangement method is as follows: the wavelet coefficients are traversed in order from low frequency to high frequency.
[0152] Optionally, for each coefficient, determine the index of the NxM pixel block (e.g., N=M=16) in which it is located, and each coefficient should be stored in the pixel block in the raster scan order of the pixel block;
[0153] Optionally, the position of the corresponding NxM pixel block on the image may be calculated according to the Morton order.
[0154] It should be understood that the embodiments of the present application are not limited to the arrangement mode, and other arrangements may also be used, such as zigzag order, raster order, etc. The encoder may explicitly specify the corresponding arrangement mode in the bitstream.
[0155] It should be noted that in the embodiment of the present application, bit shifting can be performed or bit shifting encoding can be performed directly without bit shifting. Bit shifting can improve the compression efficiency of subsequent bit shifting encoding, thereby reducing the size of the target code stream.
[0156] 8. Deformed Mesh Reconstruction. The displacement encoding module obtains the reconstructed displacement, i.e., obtains the displacement vector consistent with the decoding end through inverse quantization and inverse transformation. After obtaining the reconstructed geometric displacement vector, the reconstructed base mesh is subdivided and the corresponding displacement vector is used to obtain the reconstructed subdivided deformed mesh, which is then passed to the texture map conversion module.
[0157] 9. Texture map conversion. The texture map conversion module performs texture map conversion based on the input original mesh (i.e., the mesh to be encoded), the input original texture map (i.e., the texture map to be encoded), and the reconstructed deformed mesh. Specifically, the texture map conversion may include the following steps:
[0158] Calculate the texture coordinates of each pixel on the target texture map to be generated, such as the texture coordinates corresponding to pixel A(i,j) are P(u,v).
[0159] Determine whether the texture coordinate is within a certain triangle face after the parameterization of the subdivided deformed mesh;
[0160] If the texture coordinate does not belong to any triangle, the pixel is marked as an empty pixel and can be filled with a filling algorithm later;
[0161] If the texture coordinate belongs to a triangle, perform the target operation.
[0162] The target operations may include:
[0163] Mark the pixel as filled;
[0164] Calculate the center of gravity coordinates of the texture in the current triangle according to the texture coordinates;
[0165] According to 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 point on the subdivided deformed grid corresponding to the texture coordinates, as shown by M(x, y, z) in the figure;
[0166] Find the point closest to the three-dimensional coordinate on the input original grid, as shown in the figure M'(x,y,z);
[0167] Calculate the barycentric coordinates of the three-dimensional coordinates according to the triangle face they are on and map them to two dimensions to calculate their texture coordinates, i.e. P′(u′,v′);
[0168] The texture coordinates are used to sample the original texture map input to obtain the value A′(i′, j′) of the corresponding pixel position.
[0169] Assign this value to the corresponding pixel A(i,j) on the target texture map to be generated.
[0170] 10. Texture image compression. After obtaining the converted texture image, the empty pixels in it can be filled using a related filling algorithm (such as the Push-Pull algorithm). Then, it can be encoded using existing video encoders such as H.264 / AVC, H.265 / HEVC, and H.266 / VVC to obtain the output texture image bitstream. In addition, 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.
[0171] Optionally, in some embodiments, generating a target bitstream based on the texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream includes:
[0172] A first reconstructed grid obtained by performing grid reconstruction based on the basic grid code stream;
[0173] Reconstructing a deformed mesh based on the first reconstructed mesh and the second reconstructed vertex displacement to obtain a second reconstructed deformed mesh, wherein the second reconstructed vertex displacement is obtained by performing displacement reconstruction on the displacement code stream;
[0174] performing mesh parameterization on the second reconstructed deformed mesh to obtain a third reconstructed deformed mesh;
[0175] Mixing the basic grid code stream, the displacement code stream, the auxiliary information code stream and the texture map code stream to obtain the target code stream;
[0176] Among them, the displacement code stream is obtained based on the displacement information and the first reconstructed grid, and the displacement information is obtained based on the grid to be encoded; the auxiliary information code stream is obtained based on the auxiliary information, and the auxiliary information is used to assist the decoding end in decoding; the texture map code stream is obtained based on the first reconstructed grid, the texture map to be encoded and the third reconstructed deformed grid.
[0177] Optionally, in some embodiments, the method further comprises:
[0178] adjusting a displacement order of the first reconstructed mesh according to the displacement information to obtain a second vertex displacement;
[0179] Displacement coding is performed on the second vertex displacement to obtain a displacement code stream.
[0180] In the embodiment of the present application, the coding framework of the coding end is specifically shown in Figure 7, wherein Figure 7 can be understood as two coding frameworks according to the different positions of the mesh parameterization. If the coding end considers encoding texture coordinates, coding framework 1 can be adopted, as shown in Figure 7, where the coding framework for mesh parameterization is performed after mesh simplification. If the coding end considers not encoding texture coordinates, the codec end uses the same mesh parameterization steps to regenerate the texture coordinates of the mesh, and coding framework 3 can be adopted, as shown in Figure 7, where the coding framework for mesh parameterization is performed after the deformed mesh is reconstructed (i.e., the deformed mesh is reconstructed based on the first reconstructed mesh and the second reconstructed vertex displacement to obtain the second reconstructed deformed mesh). The implementation process of coding framework 3 in the embodiment of the present application is similar to the implementation process of the above-mentioned coding framework 2, except that the position of the mesh parameterization is different. The specific implementation process can refer to the above-mentioned embodiment and will not be repeated here.
[0181] It should be noted that the location of the target identification information within the target codestream can be set based on actual needs. For example, in some embodiments, the target identification information is located within an auxiliary information codestream within the target codestream, where the auxiliary information codestream is derived based on the auxiliary information. In other words, the target codestream includes the auxiliary information, and the auxiliary information includes the target identification information.
[0182] Optionally, in some embodiments, the target identification information includes at least one of the following:
[0183] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0184] Second field information, the second field information is used to indicate whether the target texture coordinates are generated by the decoding end based on mesh parameterization;
[0185] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0186] Optionally, in some embodiments, the target identification information is information for indicating the functions and algorithms that the decoding end needs to support. In the embodiment of the present application, the target identification information can be understood as a profile identification (ID), that is, different profile IDs can implicitly indicate how to obtain texture coordinates.
[0187] In an embodiment of the present application, the V3C parameter set may be extended based on the V3C syntax structure, which is used to specify common parameters in a sequence. Parameters indicating a method for obtaining texture coordinates are defined in the parameter set, as shown in Table 1 below.
[0188] Table 1:
[0189] Among them, asps_vmc_ext_num_attribute_video represents the number of attribute maps corresponding to the mesh that references this parameter set, that is, the number of texture coordinates corresponding to the mesh;
[0190] asps_vmc_ext_derive_textcoord_flag[i] indicates whether the texture coordinates of the i-th attribute map corresponding to the mesh that references this parameter set are generated from the decoding end. If it is 0, it means that the texture coordinates corresponding to this attribute are transmitted through the bitstream. If it is 1, it means that the texture coordinates corresponding to this attribute are regenerated at the decoding end.
[0191] asps_vmc_ext_derive_textcoord_method[i] represents the method index used when regenerating the texture coordinates of the i-th attribute map corresponding to the mesh that references this parameter set. The corresponding method is obtained according to the corresponding index through the method list supported by the decoding end, and then the corresponding parameters are obtained according to the corresponding method index.
[0192] In the embodiment of the present application, asps_vmc_ext_num_attribute_video can be understood as the above-mentioned first field information; asps_vmc_ext_derive_textcoord_flag[i] can be understood as the above-mentioned second field information; asps_vmc_ext_derive_textcoord_method[i] can be understood as the above-mentioned third field information.
[0193] In addition to specifying parameters related to how texture coordinates are obtained in a parameter set, you can also create corresponding profiles to support different codec algorithms and tools. Specifically, you can specify in a profile that different profiles support different texture coordinate processing methods. An example of a profile is shown in Table 2, which defines two profiles and specifies different encoding parameters to limit the corresponding functions.
[0194] Table 2:
[0195] ptl_profile_toolset_idc is defined in profile_tier_level() in the V3C parameter set and is used to indicate the decoding tools supported by the codestream that references this V3C parameter set. Taking the above table as an example, if its value is 0, it means that for all attributes, asps_vmc_ext_derive_textcoord_flag can only be 0. If its value is 1, it means that asps_vmc_ext_derive_textcoord_flag can be 1.
[0196] Optionally, in some embodiments, the aforementioned encoding frameworks 1, 2, and 3 may be combined. In this case, in addition to indicating the aforementioned acquisition method, the target identification information may further indicate location information for grid parameterization. For example, in some embodiments, the target identification information further includes a fourth field indicating location information for performing grid parameterization on a decoding end.
[0197] In this embodiment of the present application, the target identification information is located within the auxiliary information bitstream. The fourth field information may explicitly or implicitly indicate the location information at which the decoder performs the grid parameterization. The fourth field information indicating the location information at which the decoder performs the grid parameterization may also be understood or replaced by the fourth field information indicating the location information at which the encoder performs the grid parameterization. For example, an alternative grammatical structure may be shown in Table 3.
[0198] Table 3:
[0199] Among them, when the value of asps_vmc_ext_derive_tex_from_base_flag[i] is 1, when the texture coordinates are regenerated for the attribute map with index i at the decoding end, the mesh is parameterized according to the reconstructed base mesh; when the value is 0, the mesh is parameterized according to the reconstructed deformed mesh.
[0200] In the embodiment of the present application, the above-mentioned asps_vmc_ext_derive_tex_from_base_flag[i] can be understood as the above-mentioned fourth field information.
[0201] Optionally, in some embodiments, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0202] In the embodiment of the present application, the target identification information may be a profile identifier (ID), that is, the target identification information is carried in the header field of the target bitstream. For example, three different profiles may be defined, each of which specifies different syntax parameter values to limit the functions of the decoding end. The details are shown in Table 4:
[0203] Table 4:
[0204] In the VDMC Extended profile, asps_vmc_ext_derive_tex_from_base_flag can only be 1, indicating that this profile only supports parameterization of the reconstructed base mesh at the decoder. VDMC High, on the other hand, allows parameterization of the reconstructed deformed mesh at the decoder.
[0205] Optionally, an embodiment of the present application further provides a decoding processing method, as shown in FIG8 , the decoding processing method includes:
[0206] Step 801: Receive a target bitstream, wherein the target bitstream includes a basic grid bitstream and target identification information, wherein the target identification information indicates a method for obtaining target texture coordinates, wherein the method includes obtaining the target texture coordinates from the basic grid bitstream or generating the target texture coordinates by a decoder based on grid parameterization.
[0207] Step 802: Decode the basic grid code stream to obtain a third grid;
[0208] Step 803: Generate a target decoding grid based on the third grid and the acquisition method;
[0209] The target decoding grid includes the target texture coordinates.
[0210] In the embodiment of the present application, the target identification information may indicate the acquisition method explicitly or implicitly. Since the acquisition method is indicated by the target identification information, the decoding end may use the corresponding acquisition method to perform grid decoding coordinates, thereby improving the flexibility of grid decoding.
[0211] Optionally, in some embodiments, when the acquisition method is to acquire texture coordinates from the base grid code stream, the third grid includes the target texture coordinates, and generating the target decoding grid based on the third grid and the acquisition method includes:
[0212] Subdividing the third grid to obtain a third subdivided grid;
[0213] Reconstructing the deformed mesh based on the third subdivided mesh and the third vertex displacement to obtain the target decoding mesh;
[0214] The third vertex displacement is obtained based on the displacement code stream in the target code stream.
[0215] Optionally, when the acquisition method is generated by the decoding end based on grid parameterization, generating the target decoding grid based on the third grid and the acquisition method includes:
[0216] performing mesh parameterization on the third mesh to obtain a fourth mesh, wherein the fourth mesh includes the target texture coordinates;
[0217] Subdividing the fourth grid to obtain a first subdivided grid;
[0218] Reconstructing a deformed mesh based on the first subdivided mesh and the third vertex displacement to obtain the target decoded mesh;
[0219] The third vertex displacement is obtained based on the displacement code stream in the target code stream.
[0220] Optionally, the performing grid parameterization on the third grid to obtain a fourth grid includes:
[0221] In a case where the target identification information instructs the decoding end to perform the grid parameterization before performing the subdivision process, the grid parameterization is performed on the third grid to obtain a fourth grid.
[0222] Optionally, when the acquisition method is generated by the decoding end based on grid parameterization, generating the target decoding grid based on the third grid and the acquisition method includes:
[0223] Subdividing the third grid to obtain a second subdivided grid;
[0224] Reconstructing the deformed mesh based on the second subdivided mesh and the third vertex displacement to obtain a fourth reconstructed deformed mesh;
[0225] performing grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid;
[0226] The third vertex displacement is obtained based on the displacement code stream in the target code stream.
[0227] Optionally, the performing grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid includes:
[0228] In a case where the target identification information instructs the decoding end to perform the grid parameterization after performing deformed grid reconstruction, grid parameterization is performed on the fourth reconstructed deformed grid to obtain the target decoding grid.
[0229] Optionally, the target identification information is located in an auxiliary information code stream in the target code stream, and the auxiliary information code stream is obtained based on auxiliary information.
[0230] Optionally, the target identification information includes at least one of the following:
[0231] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0232] Second field information, the second field information is used to indicate whether the target texture coordinates are generated by the decoding end based on mesh parameterization;
[0233] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0234] Optionally, the target identification information further includes: fourth field information, where the fourth field information is used to indicate location information where the decoding end performs the grid parameterization.
[0235] Optionally, the target identification information is information for indicating functions and algorithms that the decoding end needs to support.
[0236] Optionally, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0237] It should be noted that in the embodiment of the present application, the decoding framework of the decoding end is different for different positions where the grid parameterization is performed on the decoding end, for example, it may include the decoding frameworks of Figures 9 and 10. The decoding process is described in detail below using Figure 9 as an example.
[0238] 1. Auxiliary information decoding.
[0239] The decoding end first determines the decoding scheme based on the auxiliary information, which mainly includes the identification of the texture coordinate acquisition method, that is, whether the texture coordinates are regenerated at the decoding end, and may also include the optional location of generating texture coordinates; the static grid encoder type, which guides the decoding end to use the corresponding static grid decoder; the video encoder type, which guides the decoding end to use the corresponding video decoder; the subdivision processing scheme, that is, the scheme for subdivision processing of the basic grid in the reconstructed deformed grid, and the subdivision processing scheme of the encoding and decoding end should be consistent; there are also optional spatial displacement transformation schemes, coefficient arrangement schemes, etc.
[0240] 2. Base Mesh Decoding. Base mesh decoding can be divided into intra-frame mode and inter-frame mode. In intra-frame mode, this module decodes the input base mesh bitstream using the decoder corresponding to the static mesh encoder indicated by the auxiliary information. The decoded output is a 3D mesh containing geometric information, connectivity, and texture coordinate information. In inter-frame mode, this module is responsible for decoding the motion vectors corresponding to the vertices and then reconstructing the base mesh of the current frame based on the reference frame.
[0241] 3. Mesh parameterization. If the auxiliary information indicates that texture coordinates are regenerated on the decoder side, this module parameterizes the input mesh according to the corresponding parameters. The parameterization operation is consistent with the encoder side. The auxiliary information may also indicate the location of the module and whether it parameterizes the reconstructed base mesh or the reconstructed deformed mesh.
[0242] 4. Displacement decoding. During the displacement decoding process, it is necessary to determine the corresponding video encoder based on the auxiliary information identifier, and the decoding end calls the corresponding video decoder to decode the displacement code stream; for the decoded displacement information, it is also necessary to obtain the displacement vector corresponding to the reconstructed subdivision grid vertex through the displacement reconstruction module. The operation of the displacement reconstruction module is mainly to perform inverse quantization and inverse transformation on the decoded displacement information, i.e., the wavelet coefficients, through the quantization parameters and transformation parameters indicated by the auxiliary information. For the video decoded information, it must first extract the corresponding displacement information from the two-dimensional image according to the arrangement method of the encoding end.
[0243] 5. Subdivision processing: The subdivision processing operation is the same as that on the encoder side, and the subdivision processing method and number of iterations of the base grid are indicated by auxiliary information.
[0244] 6. Reconstruct the deformed mesh. After the base mesh and displacement vectors are decoded and reconstructed, reconstruct the deformed mesh based on these two parts. Add the corresponding displacement vector to each vertex of the subdivided mesh, as shown in Equation 23: deformedmesh[i].v[k] = subdivmesh[i].v[k] + displacement[k] (23);
[0245] Where subdivmesh[i].v[k] represents the geometric coordinates of the k-th vertex after subdivision of the base mesh of the current frame (index i), displacement[k] represents the spatial displacement vector corresponding to the k-th vertex, and deformedmesh[i].v[k] represents the geometric coordinates of the k-th vertex after subdivision and deformation of the current frame.
[0246] 7. Displacement map decoding. The texture map decoder is responsible for decoding the texture 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 texture map at the encoder, resulting in the final decoded output texture map.
[0247] After completing the above process, the target decoding grid reconstructed by the decoding end and the corresponding attribute map are used as input for corresponding processing.
[0248] The encoding processing method provided in the embodiment of the present application can be executed by an encoding processing device. In the embodiment of the present application, the encoding processing device provided in the embodiment of the present application is described by taking the encoding processing method executed by the encoding processing device as an example.
[0249] 11 , an embodiment of the present application further provides a coding processing device. As shown in FIG11 , the coding processing device 1100 includes:
[0250] The processing module 1101 is configured to determine a basic grid code stream based on the grid to be encoded;
[0251] A generation module 1102 generates a target bitstream based on the to-be-encoded texture map corresponding to the to-be-encoded mesh and the basic mesh bitstream, wherein the target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the acquisition method includes obtaining from the basic mesh bitstream or generating by a decoding end based on mesh parameterization.
[0252] Optionally, the processing module 1101 is specifically used to: simplify the mesh to be encoded to obtain a first mesh; subdivide and deform the first mesh to obtain displacement information and a second mesh after adjusting the vertex positions of the first mesh; and perform compression encoding on the second mesh to obtain a basic mesh code stream.
[0253] Optionally, the generating module 1104 includes:
[0254] A first reconstruction unit, configured to perform grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid;
[0255] A first processing unit is configured to perform grid parameterization on the first reconstructed grid to obtain a second reconstructed grid;
[0256] A first stream mixing unit is configured to mix the basic grid code stream, the displacement code stream, the auxiliary information code stream, and the texture map code stream to obtain the target code stream;
[0257] Among them, the displacement code stream is obtained based on the displacement information and the second reconstructed grid, and the displacement information is obtained based on the grid to be encoded; the auxiliary information code stream is obtained based on the auxiliary information, and the auxiliary information is used to assist the decoding end in decoding; the texture map code stream is obtained based on the first reconstructed grid, the texture map to be encoded and the displacement code stream.
[0258] Optionally, the generating module 1104 further includes:
[0259] a first adjusting unit, configured to adjust a displacement order of the second reconstructed mesh according to the displacement information to obtain a first vertex displacement;
[0260] an encoding unit, configured to perform displacement encoding on the first vertex displacement to obtain a displacement code stream;
[0261] a second reconstruction unit, configured to reconstruct a deformed mesh based on the first reconstructed mesh and first reconstructed vertex displacements to obtain a first reconstructed deformed mesh, wherein the first reconstructed vertex displacements are obtained by performing displacement reconstruction on the displacement code stream;
[0262] The second processing unit is configured to determine the texture map code stream based on the first reconstructed mesh, the texture map to be encoded, and the first reconstructed deformed mesh.
[0263] Optionally, the generating module 1104 includes:
[0264] A third reconstruction unit, configured to perform grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid;
[0265] a fourth reconstruction unit, configured to reconstruct a deformed mesh based on the first reconstructed mesh and second reconstructed vertex displacements to obtain a second reconstructed deformed mesh, wherein the second reconstructed vertex displacements are obtained by performing displacement reconstruction on a displacement code stream;
[0266] a third processing unit, configured to perform mesh parameterization on the second reconstructed deformed mesh to obtain a third reconstructed deformed mesh;
[0267] A second stream mixing unit is configured to mix the basic grid code stream, the displacement code stream, the auxiliary information code stream, and the texture map code stream to obtain the target code stream;
[0268] Among them, the displacement code stream is obtained based on the displacement information and the first reconstructed grid, and the displacement information is obtained based on the grid to be encoded; the auxiliary information code stream is obtained based on the auxiliary information, and the auxiliary information is used to assist the decoding end in decoding; the texture map code stream is obtained based on the first reconstructed grid, the texture map to be encoded and the third reconstructed deformed grid.
[0269] Optionally, the generating module 1104 further includes: a fourth processing unit, configured to: adjust the displacement order of the first reconstructed mesh according to the displacement information to obtain second vertex displacements; and perform displacement coding on the second vertex displacements to obtain a displacement code stream.
[0270] Optionally, the processing module 1101 is further configured to perform grid parameterization on the first grid;
[0271] The input of the subdivision process is the first mesh after mesh parameterization.
[0272] Optionally, the target identification information is located in an auxiliary information code stream in the target code stream, and the auxiliary information code stream is obtained based on auxiliary information.
[0273] Optionally, the target identification information includes at least one of the following:
[0274] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0275] Second field information, the second field information is used to indicate whether the target texture coordinates are generated by the decoding end based on mesh parameterization;
[0276] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0277] Optionally, the target identification information further includes: fourth field information, where the fourth field information is used to indicate location information where the decoding end performs the grid parameterization.
[0278] Optionally, the target identification information is information for indicating functions and algorithms that the decoding end needs to support.
[0279] Optionally, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0280] The decoding processing method provided in the embodiment of the present application can be executed by a decoding processing device. In the embodiment of the present application, the decoding processing device provided in the embodiment of the present application is described by taking the decoding processing device executing the encoding processing method as an example.
[0281] 12 , an embodiment of the present application further provides a decoding processing device. As shown in FIG12 , the decoding processing device 1200 includes:
[0282] A receiving module 1201 is configured to receive a target bitstream, wherein the target bitstream includes a basic grid bitstream and target identification information, wherein the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the method includes obtaining the target texture coordinates from the basic grid bitstream or generating the target texture coordinates by a decoder based on grid parameterization.
[0283] The decoding module 1202 is configured to decode the basic grid code stream to obtain a third grid; and generate a target decoding grid based on the third grid and the acquisition method.
[0284] The target decoding grid includes the target texture coordinates.
[0285] Optionally, when the acquisition method is to obtain texture coordinates from the basic grid code stream, the third grid includes the target texture coordinates, and the decoding module 1002 is specifically used to: subdivide the third grid to obtain a third subdivided grid; reconstruct the deformed grid based on the third subdivided grid and the third vertex displacement to obtain the target decoded grid; wherein the third vertex displacement is obtained based on the displacement code stream.
[0286] Optionally, when the acquisition method is generated by the decoding end based on mesh parameterization, the decoding module 1002 is specifically used to: perform mesh parameterization on the third mesh to obtain a fourth mesh, and the fourth mesh includes the target texture coordinates; subdivide the fourth mesh to obtain a first subdivided mesh; reconstruct the deformed mesh based on the first subdivided mesh and the third vertex displacement to obtain the target decoded mesh; wherein the third vertex displacement is obtained based on the displacement code stream.
[0287] Optionally, the decoding module 1202 is specifically configured to: when the target identification information instructs the decoding end to perform the grid parameterization before performing the subdivision process, perform grid parameterization on the third grid to obtain a fourth grid.
[0288] Optionally, when the acquisition method is generated by the decoding end based on grid parameterization, the decoding module 1002 is specifically used to: subdivide the third grid to obtain a second subdivided grid; reconstruct the deformed grid based on the second subdivided grid and the third vertex displacement to obtain a fourth reconstructed deformed grid; and perform grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid; wherein the third vertex displacement is obtained based on the displacement code stream.
[0289] Optionally, the decoding module 1202 is specifically configured to: when the target identification information instructs the decoding end to perform the grid parameterization after performing deformed grid reconstruction, perform grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid.
[0290] Optionally, the target identification information is located in an auxiliary information code stream in the target code stream, and the auxiliary information code stream is obtained based on auxiliary information.
[0291] Optionally, the target identification information includes at least one of the following:
[0292] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0293] Second field information, the second field information is used to indicate whether the target texture coordinates are generated by the decoding end based on mesh parameterization;
[0294] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0295] Optionally, the target identification information further includes: fourth field information, where the fourth field information is used to indicate location information where the decoding end performs the grid parameterization.
[0296] Optionally, the target identification information is information for indicating functions and algorithms that the decoding end needs to support.
[0297] Optionally, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0298] The encoding processing device and decoding processing device provided in the embodiments of the present application can implement the various processes implemented by the method embodiments of Figures 3 to 10 and achieve the same technical effects. To avoid repetition, they will not be described here.
[0299] Optionally, as shown in FIG13 , an embodiment of the present application further provides a communication device 1300, including a processor 1301 and a memory 1302, wherein the memory 1302 stores a program or instruction that can be run on the processor 1301. For example, when the communication device 1300 is an encoding end device, the program or instruction is executed by the processor 1301 to implement the various steps of the above-mentioned encoding processing method embodiment and can achieve the same technical effect. When the communication device 1300 is a decoding end device, the program or instruction is executed by the processor 1301 to implement the various steps of the above-mentioned decoding processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0300] An embodiment of the present application further provides an electronic device, including a processor and a communication interface, wherein:
[0301] When the electronic device is an encoding end, the processor is configured to determine a basic mesh bitstream based on a mesh to be encoded; generate a target bitstream based on a texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream, the target bitstream including target identification information, the target identification information being used to indicate a method for obtaining target texture coordinates, the method including obtaining from the basic mesh bitstream or generating by a decoding end based on mesh parameterization;
[0302] When the electronic device is a decoding end, the communication interface is used to receive a target code stream, the target code stream including a basic grid code stream and target identification information, the target identification information being used to indicate a method for acquiring target texture coordinates, the method including acquiring from the basic grid code stream or generating by the decoding end based on grid parameterization; the processor is used to decode the basic grid code stream to obtain a third grid; and generate a target decoding grid based on the third grid and the acquisition method; wherein the target decoding grid includes the target texture coordinates.
[0303] This electronic device embodiment corresponds to the above-mentioned method embodiment on the codec device side. The various implementation processes and implementation methods of the above-mentioned method embodiment are applicable to this electronic device embodiment and can achieve the same technical effects. Specifically, Figure 14 is a schematic diagram of the hardware structure of an electronic device that implements the embodiment of the present application.
[0304] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409 and at least some of the components of the processor 1410.
[0305] Those skilled in the art will appreciate that the electronic device 1400 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 1410 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG14 does not limit the electronic device. The electronic device 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.
[0306] It should be understood that in an embodiment of the present application, the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042, and the graphics processor 14041 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 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1407 includes a touch panel 14071 and at least one of other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch controller. Other input devices 14072 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.
[0307] In the embodiment of the present application, after receiving downlink data from a network-side device, the radio frequency unit 1401 may transmit the data to the processor 1410 for processing. Furthermore, the radio frequency unit 1401 may send uplink data to the network-side device. Typically, the radio frequency unit 1401 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.
[0308] The memory 1409 can be used to store software programs or instructions and various data. The memory 1409 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 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and 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. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0309] Processor 1410 may include one or more processing units. Optionally, processor 1410 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 1410.
[0310] When the electronic device is an encoding end, the processor 1410 is configured to determine a basic mesh bitstream based on a mesh to be encoded; generate a target bitstream based on a texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream, wherein the target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the method includes obtaining the target texture coordinates from the basic mesh bitstream or generating the target texture coordinates by a decoding end based on mesh parameterization.
[0311] When the electronic device is a decoding end, the radio frequency unit 1401 is used to receive a target code stream, where the target code stream includes a basic grid code stream and target identification information, where the target identification information is used to indicate a method for acquiring target texture coordinates, where the acquisition method includes acquiring from the basic grid code stream or generating by the decoding end based on grid parameterization; the processor 1410 is used to decode the basic grid code stream to obtain a third grid; and generate a target decoding grid based on the third grid and the acquisition method; wherein the target decoding grid includes the target texture coordinates.
[0312] 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 encoding processing method or decoding processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0313] The processor is the processor in the electronic device 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.
[0314] 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 encoding processing method or decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0315] 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.
[0316] 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 encoding processing method or decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0317] An embodiment of the present application also provides a video encoding and decoding system, including: an encoding end device and a decoding end device, wherein the encoding end device is used to execute the various processes of the various method embodiments of the encoding end device as shown in Figure 3 and the above-mentioned encoding end device, and the decoding end device is used to execute the various processes of the various method embodiments of the decoding end device as shown in Figure 8 and the above-mentioned decoding end device, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
[0318] 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 statement "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 noted 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.
[0319] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0320] 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 without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A coding processing method, applied to a coding end, include: Determine a basic grid code stream based on the grid to be encoded; A target bitstream is generated based on the texture map to be encoded corresponding to the grid to be encoded and the basic grid bitstream, wherein the target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the method includes obtaining from the basic grid bitstream or generating by a decoding end based on grid parameterization.
2. The method according to claim 1, in, Determining the basic grid code stream based on the grid to be encoded includes: Simplifying the grid to be encoded to obtain a first grid; Performing subdivision processing and deformation processing on the first mesh to obtain displacement information and a second mesh obtained by adjusting vertex positions of the first mesh; The second grid is compressed and encoded to obtain a basic grid code stream.
3. The method according to claim 1 or 2, in, The generating of the target bitstream based on the texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream comprises: Performing grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid; Performing mesh parameterization on the first reconstructed mesh to obtain a second reconstructed mesh; Mixing the basic grid code stream, the displacement code stream, the auxiliary information code stream and the texture map code stream to obtain the target code stream; Among them, the displacement code stream is obtained based on the displacement information and the second reconstructed grid, and the displacement information is obtained based on the grid to be encoded; the auxiliary information code stream is obtained based on the auxiliary information, and the auxiliary information is used to assist the decoding end in decoding; the texture map code stream is obtained based on the first reconstructed grid, the texture map to be encoded and the displacement code stream.
4. The method according to claim 1 or 2, in, The generating of the target bitstream based on the texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream comprises: A first reconstructed grid obtained by performing grid reconstruction based on the basic grid code stream; Reconstructing a deformed mesh based on the first reconstructed mesh and the second reconstructed vertex displacement to obtain a second reconstructed deformed mesh, wherein the second reconstructed vertex displacement is obtained by performing displacement reconstruction on a displacement code stream; performing mesh parameterization on the second reconstructed deformed mesh to obtain a third reconstructed deformed mesh; Mixing the basic grid code stream, the displacement code stream, the auxiliary information code stream and the texture map code stream to obtain the target code stream; Among them, the displacement code stream is obtained based on the displacement information and the first reconstructed grid, and the displacement information is obtained based on the grid to be encoded; the auxiliary information code stream is obtained based on the auxiliary information, and the auxiliary information is used to assist the decoding end in decoding; the texture map code stream is obtained based on the first reconstructed grid, the texture map to be encoded and the third reconstructed deformed grid.
5. The method according to any one of claims 1 to 4, in, The target identification information is located in an auxiliary information code stream in the target code stream, and the auxiliary information code stream is obtained based on auxiliary information.
6. The method according to claim 5, in, The target identification information includes at least one of the following: First field information, where the first field information is used to indicate the number of the target texture coordinates; Second field information, where the second field information is used to indicate whether the target texture coordinates are generated by the decoding end based on mesh parameterization; The third field information is used to indicate index information of a method for generating the target texture coordinates.
7. The method according to claim 6, in, The target identification information further includes: fourth field information, and the fourth field information is used to indicate the position information where the decoding end performs the grid parameterization.
8. The method according to any one of claims 1 to 4, in, The target identification information is information used to indicate the functions and algorithms that the decoding end needs to support.
9. The method according to any one of claims 1 to 5 and 8, in, The target identification information is also used to indicate the location information where the decoding end performs the grid parameterization.
10. A decoding processing method, applied to a decoding end, include: Receive a target bitstream, the target bitstream including a basic grid bitstream and target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, the method including obtaining from the basic grid bitstream or generating by a decoding end based on grid parameterization; Decoding the basic grid code stream to obtain a third grid; Generate a target decoding grid based on the third grid and the acquisition method; Wherein, the target decoding grid includes the target texture coordinates.
11. The method according to claim 10, in, In the case where the acquisition method is generated by the decoding end based on grid parameterization, generating a target decoding grid based on the third grid and the acquisition method includes: Performing mesh parameterization on the third mesh to obtain a fourth mesh, wherein the fourth mesh includes the target texture coordinates; Subdividing the fourth grid to obtain a first subdivided grid; Reconstructing a deformed mesh based on the first subdivided mesh and the third vertex displacement to obtain the target decoded mesh; The third vertex displacement is obtained based on the displacement code stream in the target code stream.
12. The method according to claim 11, in, The performing grid parameterization on the third grid to obtain a fourth grid comprises: In a case where the target identification information instructs the decoding end to perform the grid parameterization before performing the subdivision process, the third grid is grid parameterized to obtain a fourth grid.
13. The method according to claim 10, in, In the case where the acquisition method is generated by the decoding end based on grid parameterization, generating a target decoding grid based on the third grid and the acquisition method includes: Subdividing the third grid to obtain a second subdivided grid; Reconstructing a deformed mesh based on the second subdivided mesh and the third vertex displacement to obtain a fourth reconstructed deformed mesh; Performing grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid; The third vertex displacement is obtained based on the displacement code stream in the target code stream.
14. The method according to claim 13, in, The grid parameterizing the fourth reconstructed deformed grid to obtain the target decoding grid comprises: In a case where the target identification information indicates that the decoding end performs the grid parameterization after performing deformed grid reconstruction, grid parameterization is performed on the fourth reconstructed deformed grid to obtain the target decoding grid.
15. The method according to any one of claims 10 to 14, in, The target identification information is located in an auxiliary information code stream in the target code stream, and the auxiliary information code stream is obtained based on auxiliary information.
16. The method according to claim 15, in, The target identification information includes at least one of the following: First field information, where the first field information is used to indicate the number of the target texture coordinates; Second field information, where the second field information is used to indicate whether the target texture coordinates are generated by the decoding end based on mesh parameterization; The third field information is used to indicate index information of a method for generating the target texture coordinates.
17. The method according to claim 16, in, The target identification information further includes: fourth field information, and the fourth field information is used to indicate the position information where the decoding end performs the grid parameterization.
18. The method according to any one of claims 10 to 14, in, The target identification information is information used to indicate the functions and algorithms that the decoding end needs to support.
19. The method according to any one of claims 10 to 15 and 18, in, The target identification information is also used to indicate the location information where the decoding end performs the grid parameterization.
20. A coding processing device, applied to a coding end, include: A processing module, used for determining a basic grid code stream based on the grid to be encoded; A generation module is used to generate a target bitstream based on the to-be-encoded texture map corresponding to the to-be-encoded grid and the basic grid bitstream, wherein the target bitstream includes target identification information, and the target identification information is used to indicate a method for obtaining target texture coordinates, wherein the acquisition method includes obtaining from the basic grid bitstream or generating by a decoding end based on grid parameterization.
21. A decoding processing device, applied to a decoding end, include: A receiving module, used for receiving a target bitstream, wherein the target bitstream includes a basic grid bitstream and target identification information, wherein the target identification information is used for indicating a method for obtaining target texture coordinates, wherein the method for obtaining the target texture coordinates includes obtaining the target texture coordinates from the basic grid bitstream or generating the target texture coordinates by a decoding end based on grid parameterization. A decoding module, used for decoding the basic grid code stream to obtain a third grid; Generate a target decoding grid based on the third grid and the acquisition method; Wherein, the target decoding grid includes the target texture coordinates.
22. An electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, in, When the program or instruction is executed by the processor, the steps of the encoding processing method as described in any one of claims 1 to 9 are implemented, or when the program or instruction is executed by the processor, the steps of the decoding processing method as described in any one of claims 10 to 19 are implemented.
23. 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 the processor, the steps of the encoding processing method as described in any one of claims 1 to 9 are implemented, or when the program or instruction is executed by the processor, the steps of the decoding processing method as described in any one of claims 10 to 19 are implemented.
Citation Information
Patent Citations
Method and device for point cloud encoding and decoding
CN112470469A
Method and apparatus for generating three-dimensional graphic data, generating texture image, and coding and decoding multi-dimensional data, and program therefor
JP2005332028A
Encoding and decoding of texture mapping data in textured 3D mesh models
US20180253867A1
Three-Dimensional Mesh Compression Using a Video Encoder
US20210090301A1
Video encoding method, video decoding method, encoder, decoder, and ai accelerator
WO2022116165A1
