Coding processing method, decoding processing method and related equipment
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 a more flexible and efficient coding process is achieved.
Patent Information
- Application Number
- CN202310262481.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-20
AI Technical Summary
The flexibility of three-dimensional grid coding is poor, resulting in a large code stream obtained by coding, and it is difficult to meet the coding methods for 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 the flexibility of encoding.
Through the use of target identification information, the flexibility of three-dimensional grid coding is improved, the code stream size is reduced, and the code stream size is adapted to different coding needs.
Smart Images

Figure CN118678092A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of three-dimensional grid coding technology, and specifically relates to a coding processing method, a decoding processing method and related equipment. Background Art
[0002] In the process of three-dimensional mesh coding, mesh coding is usually performed in a fixed coding method. For example, the coding end device performs mesh simplification, mesh parameterization, subdivision processing and deformation processing on the mesh to be coded to obtain a basic mesh, and then compresses and codes the basic mesh to obtain a basic mesh code stream, which results in a larger code stream obtained by coding. Therefore, the prior art has the problem of poor flexibility of three-dimensional mesh coding. Summary of the invention
[0003] The embodiments of the present application provide a coding processing method, a decoding processing method and related devices, which can solve the problem of poor flexibility of three-dimensional grid coding.
[0004] In a first aspect, a coding processing method is provided, which is applied to a coding end, and includes:
[0005] Determine a basic grid code stream based on the grid to be encoded;
[0006] 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.
[0007] In a second aspect, a decoding processing method is provided, which is applied to a decoding end, and includes:
[0008] 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;
[0009] Decoding the basic grid code stream to obtain a third grid;
[0010] Generate a target decoding grid based on the third grid and the acquisition method;
[0011] Wherein, the target decoding grid includes the target texture coordinates.
[0012] In a third aspect, a coding processing device is provided, which is applied to a coding end, and includes:
[0013] A processing module, used for determining a basic grid code stream based on the grid to be encoded;
[0014] 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.
[0015] In a fourth aspect, a decoding processing device is provided, which is applied to a decoding end, including:
[0016] 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.
[0017] 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;
[0018] Wherein, the target decoding grid includes the target texture coordinates.
[0019] In a fifth aspect, an electronic device is provided, which terminal includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented, or when the program or instruction is executed by the processor, the steps of the method described in the third aspect are implemented.
[0020] In a sixth aspect, an electronic device is provided, including a processor and a communication interface, wherein:
[0021] When the electronic device is an encoding end, the processor is used to determine a basic grid code stream based on the grid to be encoded; generate a target code stream based on a texture map to be encoded corresponding to the grid to be encoded and the basic grid code stream, the target code stream includes target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, and the acquisition method includes obtaining from the basic grid code stream or generating by a decoding end based on grid parameterization;
[0022] When the electronic device is a decoding end, the communication interface is used to receive a target code stream, the target code stream includes a basic grid code stream and target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, and the acquisition method includes obtaining 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; generate a target decoding grid based on the third grid and the acquisition method; wherein the target decoding grid includes the target texture coordinates.
[0023] In the seventh aspect, a video encoding and decoding system is provided, including: an encoding end device and a decoding end device, wherein 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.
[0024] 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.
[0025] 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 a program 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.
[0026] In the tenth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the computer program / program product 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.
[0027] In the embodiment of the present application, since target identification information is set in the target code stream to indicate the method for obtaining the target texture coordinates, different methods can be used for three-dimensional mesh encoding according to different requirements, thereby improving the flexibility of three-dimensional mesh encoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a traditional coding framework diagram;
[0029] Figure 2 It is a traditional decoding framework diagram;
[0030] Figure 3 It is a flowchart of the encoding processing method provided in the embodiment of the present application;
[0031] Figure 4It is an example diagram of a coding framework in the coding processing method provided in an embodiment of the present application;
[0032] Figure 5 is an example diagram of a grid simplification operation in the encoding processing method provided in an embodiment of the present application;
[0033] Figure 6 is an example diagram of subdivision processing in the encoding processing method provided in an embodiment of the present application;
[0034] Figure 7 This is another example diagram of a coding framework in the coding processing method provided in an embodiment of the present application;
[0035] Figure 8 It is a flowchart of a decoding processing method provided in an embodiment of the present application;
[0036] Fig. 9 This is an example diagram of a decoding framework in the decoding processing method provided in an embodiment of the present application;
[0037] Fig.10 This is another example diagram of a decoding framework in the decoding processing method provided in an embodiment of the present application;
[0038] Fig.11 is a structural diagram of a coding processing device provided in an embodiment of the present application;
[0039] Fig.12 is a structural diagram of a decoding processing device provided in an embodiment of the present application;
[0040] Fig.13 is a structural diagram of a communication device provided in an embodiment of the present application;
[0041] Fig.14 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0043] The terms "first", "second", etc. in the specification and claims of the present 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 the number of objects is not limited, 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 schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0044] 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 receiver of the operation to be performed or the request result in the instruction sent; an implicit instruction can be understood as the receiver making a judgment based on the instruction sent by the sender and determining the operation to be performed or the request result based on the judgment result.
[0045] 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 receiver of the operation to be performed or the request result in the instruction sent; an implicit instruction can be understood as the receiver making a judgment based on the instruction sent by the sender and determining the operation to be performed or the request result based on the judgment result.
[0046] The codec end corresponding to the mesh coding and decoding method in the embodiment of the present application may be a terminal, which may also be referred to as a terminal device or a user terminal (User Equipment, UE). The terminal may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), a wearable device (Wearable Device) or a vehicle-mounted device (VUE), a pedestrian terminal (PUE) and other terminal side devices, and the wearable device includes: a smart watch, a bracelet, a headset, glasses, etc. It should be noted that the specific type of the terminal is not limited in the embodiment of the present application.
[0047] For ease of understanding, some contents involved in the embodiments of the present application are described below:
[0048] 1. Visual Volumetric Video-based Coding (V3C) standard.
[0049] 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.
[0050] The atlas information is used to associate all components, and additional information for reconstructing from 2D back to 3D is also included in the atlas components. The atlas consists of multiple basic units, called patches. Each patch represents an area in the available 2D components and contains the information needed to project the area back to 3D space.
[0051] 2. Video-based dynamic mesh coding (VDMC).
[0052] VDMC is a standard for compressing 3D meshes developed by the Moving Picture Experts Group (MPEG). Its main idea is to compress 3D meshes by using the existing V3C standard. Since 3D meshes have connection information that needs to be encoded, its specific encoding process is slightly different from V3C. It is necessary to expand the syntax and semantics of the V3C standard decoding end and the decoding operation to support the decoding and reconstruction of 3D meshes. VDMC-related encoding and decoding frameworks are as follows: Figure 1 and Figure 2 shown.
[0053] The overall framework of the encoding end is as follows Figure 1As shown, for the input mesh, it is first simplified by the simplification module, and then the mesh is parameterized to generate new texture coordinates for the mesh. Then, the parameterized mesh is subdivided and deformed, that is, new vertices are inserted into the mesh according to a specific subdivision method and the distance from the vertex of the mesh to the nearest neighbor of the input mesh after the subdivision is calculated, which is called displacement information. Then, the parameterized mesh, that is, the vertex position of the mesh before the subdivision and deformation is adjusted according to the displacement information, and the adjusted mesh is called the basic mesh and sent to the basic mesh encoding module. The existing basic mesh encoding module and the existing mesh encoder are used to compress it. In the inter-frame mode, a motion vector can also be generated for each vertex of the basic mesh according to the reference frame. The basic mesh module only compresses the motion vector. The basic mesh is reconstructed after encoding, and then the displacement order is adjusted according to the vertex order of the reconstructed basic mesh. Then, the vertex displacement information after the order is adjusted is first subjected to wavelet transformation, and the transformed coefficients (or wavelet coefficients) are quantized. Then, the quantized coefficients are arranged in a two-dimensional image according to a specific scanning order, and the two-dimensional image is encoded using a video encoder. Then, the reconstructed displacement information is applied to the subdivided base grid to obtain a reconstructed subdivided deformed grid, and the grid, the original input grid and its corresponding texture map are input into the corresponding texture map conversion module to obtain the texture map corresponding to the reconstructed grid, and the texture map is also encoded using the video encoder. The parameters used in the encoding process, such as the type of video encoder used, the type of grid encoder, the transformation parameters, the quantization parameters, etc., are transmitted to the decoding end through auxiliary information.
[0054] The overall framework of the decoding end is as follows Figure 2 As shown, for the received bitstream, the decoding end first demultiplexes each part of the bitstream to obtain the base mesh bitstream, displacement bitstream, texture map bitstream and auxiliary information bitstream. For the base mesh bitstream, the mesh decoder indicated by the auxiliary information is used to decode the base mesh. The displacement bitstream and the texture map bitstream are decoded by the video decoder. For the displacement part, after the video is decoded, the displacement needs to be taken out of the image through the displacement decoding module, and the steps such as inverse quantization and inverse transformation are performed, and then it is applied to the subdivided base mesh to obtain the deformed mesh reconstructed by the decoding end. After decoding, the texture map is the texture map corresponding to the reconstructed deformed mesh. The subsequent application or rendering module processes the reconstructed deformed mesh and the decoded texture map as input.
[0055] The following is a detailed description of the encoding processing method provided in the embodiment of the present application through some embodiments and their application scenarios in combination with the accompanying drawings.
[0056] Reference Figure 3 , the embodiment of the present application provides a coding processing method, such as Figure 3 As shown, the encoding processing method includes:
[0057] Step 301, determining a basic grid code stream based on the grid to be encoded;
[0058] Step 302, generating 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 from the basic mesh bitstream or generating by a decoding end based on mesh parameterization.
[0059] In the embodiment of the present application, the target identification information may explicitly or implicitly indicate the method of obtaining the target texture coordinates. Since the target identification information is carried in the target bitstream.
[0060] Optionally, in some embodiments, determining the basic grid code stream based on the grid to be encoded may specifically include:
[0061] Simplifying the grid to be encoded to obtain a first grid;
[0062] 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;
[0063] The second grid is compressed and encoded to obtain a basic grid code stream.
[0064] In the embodiment of the present application, the encoding end may determine the encoding method according to the actual situation. For example, in the case where it is necessary to reduce the code stream transmission, the encoding of the texture coordinates may not be performed at the encoding end, that is, the mesh parameterization operation is not performed before the first mesh is subdivided and deformed. Otherwise, the encoding may be performed by encoding the texture coordinates at the encoding end.
[0065] Optionally, when the acquisition method is to acquire from the basic mesh code stream, after obtaining the first mesh, the first mesh can be mesh parameterized, and the first mesh after mesh parameterization is used as an input for subdivision processing, and the second mesh can be understood as a basic mesh including target texture coordinates. That is, before performing subdivision processing and deformation processing on the first mesh, the method further includes:
[0066] Performing grid parameterization on the first grid;
[0067] The input of the subdivision process is the first mesh after mesh parameterization.
[0068] 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.
[0069] In the embodiment of the present application, since target identification information is set in the target code stream to indicate the method for obtaining the target texture coordinates, different methods can be used for three-dimensional mesh encoding according to different requirements, thereby improving the flexibility of three-dimensional mesh encoding.
[0070] It should be noted that, since texture map conversion based on texture coordinates is required before texture map encoding, when texture coordinate encoding is not performed on the encoding end, texture coordinates need to be generated based on mesh parameterization before texture map conversion. In the embodiment of the present application, mesh parameterization can be performed at different locations, and the corresponding encoding process is different for different locations, which is described in detail below.
[0071] 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 comprises:
[0072] Performing grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid;
[0073] Performing mesh parameterization on the first reconstructed mesh to obtain a second reconstructed mesh;
[0074] 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;
[0075] 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.
[0076] Optionally, in some embodiments, the method further comprises:
[0077] Adjusting the displacement order of the second reconstructed mesh according to the displacement information to obtain a first vertex displacement;
[0078] Performing displacement coding on the first vertex displacement to obtain a displacement code stream;
[0079] Reconstructing a deformed mesh based on the first reconstructed mesh and the first reconstructed vertex displacement to obtain a first reconstructed deformed mesh, wherein the first reconstructed vertex displacement is obtained by performing displacement reconstruction on the displacement code stream;
[0080] The texture map bitstream is determined based on the first reconstructed mesh, the texture map to be encoded, and the first reconstructed deformed mesh.
[0081] In the embodiment of the present application, the encoding end does not perform texture coordinate encoding, and performs mesh parameterization before performing displacement encoding, that is, the encoding end performs mesh parameterization before performing deformed mesh reconstruction, thereby reducing the complexity of mesh parameterization. Correspondingly, the decoding end needs to perform mesh parameterization before performing subdivision processing to generate target texture coordinates.
[0082] In the embodiment of the present application, the encoding framework of the encoding end is specifically as follows Figure 4 As shown, it includes the following processes:
[0083] 1. Mesh simplification. Mesh simplification is to simplify the current input mesh to be encoded into a basic mesh with relatively few points and faces, and to keep the shape of the original mesh as much as possible. The focus of mesh simplification is the simplification operation and the corresponding error measurement. A feasible mesh simplification operation is Figure 5 As shown in the figure, the vertices at both ends of the edge are merged into one vertex and the connection between the two vertices is deleted. This process is repeated in the entire mesh according to certain rules to reduce the number of faces and vertices of the mesh to the target value.
[0084] During the simplification process, you can select an error metric to optimize the simplified result. For example, you can select the sum of the coefficients of the equations of all adjacent faces of a vertex as the error metric of the vertex, and the error metric of the corresponding edge is the sum of the error metrics of the two vertices on the edge. In other words, the error generated by merging an edge is the sum of the distances of all adjacent planes from the merged vertex to the original two vertices of the edge.
[0085] After determining the simplification operation and the corresponding error metric, the mesh simplification process begins iteratively. First, the vertex error of the initial mesh is calculated to obtain the error of each edge. Then each edge is arranged from small to large error, and the edge with the smallest error is selected for merging each time. At the same time, the position of the merged vertex is calculated, and the error of all edges related to the merged vertex is updated. That is, the order of edge arrangement is updated to ensure that each iteration is based on the global error metric. Through iteration, the mesh faces are simplified to the number required to meet lossy coding.
[0086] The main purpose of mesh parameterization is to regenerate texture coordinates for the simplified mesh to obtain the first mesh. The specific algorithm for mesh parameterization can be set according to actual needs, such as the Isocharts algorithm, which uses spectral analysis to achieve stretch-driven 3D mesh parameterization, UV unfolds the 3D mesh, slices it, and packs it into a 2D texture domain.
[0087] 2. Mesh parameterization. Mesh parameterization can be performed at different locations according to different coding frameworks. If the coding end considers coding texture coordinates, coding framework 1 can be used, such as Figure 4 In the coding framework, mesh parameterization is performed after mesh simplification. If the encoder considers not encoding texture coordinates, the encoder and decoder use the same mesh parameterization steps to regenerate the texture coordinates of the mesh, and the coding framework 2 can be used, such as Figure 4 In the coding framework, a grid parameterization is performed after reconstructing the basic grid (ie, performing grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid).
[0088] The main purpose of mesh parameterization is to regenerate texture coordinates for the simplified mesh and obtain the first mesh. The specific algorithm for mesh parameterization can be set according to actual needs, such as the Isocharts algorithm, which uses spectral analysis to achieve stretch-driven 3D mesh parameterization, UV unfolding, slicing and packing the 3D mesh into a 2D texture domain. Set a stretch threshold, and the algorithm is outlined as follows:
[0089] a) Compute the surface spectrum analysis to provide an initial parameterization;
[0090] b) performing iterations of stretch optimization;
[0091] c) if the stretch of this derived parameterization is less than a threshold, stop;
[0092] d) performing surface spectral clustering to divide the surface into charts;
[0093] e) Use graph cut algorithm to optimize chart boundaries;
[0094] f) Iterate the splitting of charts until the stretching criteria are met.
[0095] Optionally, the surface spectral analysis is parameterized based on the isometric feature mapping (IsoMap) dimensionality reduction method. Given a set of high-dimensional points, IsoMap computes the geodesic distance along the manifold as a sequence of hops 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 computation is as follows:
[0096] a) Calculate the symmetric matrix D of the squared geodesic distances between surface points N ;
[0097] b) For D N Double centering and normalization are performed to obtain BN , and its calculation process is shown in Equation 1:
[0098]
[0099] where, I is an N-dimensional identity matrix, and 1 is a unit vector of length N;
[0100] c) Calculate the eigenvalues λ N of B i and the corresponding eigenvectors
[0101] 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:
[0102]
[0103] B N The eigenvalues λ i of 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.
[0104] Although N eigenvalues are required to fully 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 an n-dimensional embedding of all points.
[0105] 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:
[0106]
[0107] where, is the n-dimensional embedding coordinate 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, if there are some non-manifolds in the input 3D grid, this solution will perform corresponding preprocessing to eliminate the existence of these non-manifolds.
[0110] Optionally, for stretch optimization, the parameterization introduces distortion since 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 across 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 Formula 4:
[0111]
[0112] in,<p1,p2,p3> represents the area of triangle p1, p2, p3. Since the mapping is affine, its partial derivative is a constant on (s, t), and its calculation process is shown in Equation 5 and Equation 6:
[0113]
[0114]
[0115] in,
[0116] Then the Jacobian matrix [S S ,S t The calculation process of the larger and smaller singular values of ] is shown in Equation 7 and Equation 8:
[0117]
[0118]
[0119] Where a = S S ·S S , b=S S ·S t , c=S t ·S t . Singular values γ max , γ minIt represents the maximum and minimum lengths obtained when a unit length vector is mapped from a two-dimensional texture domain to a three-dimensional surface, that is, the maximum and minimum local "stretching". The two stretching measures on triangle T are defined as shown in Equations 9 and 10:
[0120]
[0121] L ∞ (T) = γ max (10);
[0123] In the entire three-dimensional grid M={T i The definition of the stretching measure on} is shown in Equation 11 and Equation 12:
[0124]
[0125]
[0126] Among them, A′(T i ) is a triangle T i The surface area in three dimensions.
[0127] 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.
[0128] Optionally, for surface spectral clustering, if the parameterization generated by spectral analysis fails to meet the stretching threshold, it will be divided into smaller charts. Since the global features of the model correspond to larger eigenvalues, they are used for division. Using the results of spectral analysis to calculate several representative vertices, and then grow charts around these representative points at the same time, this method is called surface spectral clustering. The specific algorithm process is as follows:
[0129] a) Sort the eigenvalues and corresponding eigenvectors from spectral analysis from large to small, i.e. λ1≥λ2≥...≥λ N .
[0130] b) Get λ n / λ n+1 Maximize the first n eigenvalues and eigenvectors (n ≤ 10).
[0131] c) For each vertex i in the 3D mesh, calculate its n-dimensional embedding coordinates
[0132] 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.
[0133] 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).
[0134] 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).
[0135] Optionally, for boundary optimization, after splitting the charts, the graph cut algorithm is used to optimize the boundaries between them. Chart boundaries should meet two goals: 1) they should pass through high curvature areas without being too jagged, and 2) they should minimize the embedding distortion of their boundary charts. This algorithm formulates the optimal boundary problem as a grapcutting problem. For simplicity, the binary case of splitting the surface in two is discussed below. When the subdivision is processed into more than two charts, each pair of adjacent charts is considered in turn.
[0136] Assume that we are looking for an optimal boundary between chart A and chart B. The initial partition is generated using surface spectral clustering. Then an intermediate region C is generated 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. Now we use the extension of the method in the graph cut algorithm to construct an undirected flow network graph from C. Here, two adjacent triangles f in the graph cut algorithm are i and f j The definition of "capacity" between is modified as shown in formula 13:
[0137] c(f i ,f j )=αc ang (f i ,f j )+(1-α)c distort (f i ,f j ) (13);
[0138] The first term in Equation 13 corresponds to the first goal of non-ragged cutting along edges with high dihedral angles, and the calculation process is shown in Equation 14:
[0139]
[0140] Among them, d ang (fi ,f j )=1-cosα ij , α ij is a triangle f i and f j The angle between the normals, avg(d ang ) is the average angular distance between adjacent triangles.
[0141] The second term in Equation 13 measures the embedding distortion, which is calculated as shown in Equations 15 and 16:
[0142]
[0143] d distort (f i ,f j )=|GDD A (f i )-GDD B (f i )|+|GDD A (f j )-GDD B (f j )| (16);
[0144] Among them, GDD A (f j ) and GDD B (f j ) are triangles f i Embedded GDD induced by chart A or chart B, avg(d distort ) is the d on all pairs of adjacent triangles distort (f i ,f j ) average. distort (f i ,f j ) prefers that its neighboring triangles balance the border 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.
[0145] The weight parameter α in Equation 13 is a trade-off between the above two objectives.
[0146] The simple implementation of this stretch-driven chartification and parameterization algorithm is very expensive, especially as the number of model vertices increases. Therefore, in order to speed up the calculation, in practical applications, the Iso-charts algorithm uses the extension algorithm of Isomap, landmark Isomap. At the same time, the landmark Isomap algorithm is also used to calculate the embedding coordinates of the vertices in the middle area during boundary optimization to further reduce the embedding distortion.
[0147] Finally, the chart packing algorithm used in the MCGIM algorithm is used to pack the charts generated by the above process into the two-dimensional texture domain. Finally, a three-dimensional grid with regenerated texture coordinates can be obtained.
[0148] 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 the "simplified" curve. The subdivision processing scheme is then applied to the simplified polyline to generate a "subdivided" 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 to the shape of the original curve as possible. These geometric displacement vectors are the geometric displacement vector information output by this module. The same deformation process is also applied to the attribute information corresponding to the vertex to obtain the corresponding attribute displacement vector.
[0149] The subdivision process takes the parameterized mesh as input. This step first subdivides the input mesh. The subdivision scheme can be selected arbitrarily. One possible scheme is the midpoint subdivision scheme, which subdivides each triangle into four sub-triangles in each subdivision iteration, such as Figure 6 As shown in Figure 2, a new vertex is introduced in the middle of each edge, and the subdivision processing of geometric information and attribute information is performed independently because the connection relationship between geometric information and attribute information is usually different.
[0150] Optionally, calculate the midpoint v of the newly introduced edge (v1,v2) 12 The position Pos(v 12 ) is shown in Formula 17:
[0151]
[0152] Among them, Pos(v1) is the geometric coordinate of vertex v1, and Pos(v2) is the geometric coordinate of vertex v2.
[0153] For the subdivided mesh, find the nearest neighbor of each point on the original input mesh (including the points on the original mesh surface), which can be accelerated by data structures such as kdTree. The displacement vector of the geometric coordinates of each vertex of the subdivided mesh is obtained by calculating the distance between each vertex on the subdivided mesh and its nearest neighbor on the original input mesh. This module passes the generated displacement vector to the subsequent module for encoding.
[0154] For the generated displacement vector, which is in the same global coordinate system as the input mesh, a possible optimization method is to transform it 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.
[0155] 4. Basic mesh compression encoding. The basic mesh can be understood as the second mesh mentioned above. There are two main different modes of compression encoding, namely intra-frame mode and inter-frame mode. In the intra-frame mode, the basic mesh compression module encodes and reconstructs the input three-dimensional mesh using the existing static mesh encoder. In the 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 an output to the displacement order adjustment module, which adjusts the vertex displacement of the reconstructed basic mesh based on the displacement information to obtain the first vertex displacement.
[0156] 5. Wavelet transform. A transformation can be applied to the displacement vector to reduce the correlation between its data. An optional transformation is a linear wavelet transform, and its prediction process is defined as shown in Equation 18:
[0157]
[0158] Among them, 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 Formula 19:
[0159]
[0160] where v * is the set of all adjacent vertices of vertex v. The transformed displacement vector is called wavelet coefficient.
[0161] 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:
[0162] disp[v].d[k]=floor(disp[v].d[k]*scale[k]) (20);
[0163]
[0164] Where disp[v] represents the transformed value of the displacement vector of the vth vertex, d[k] represents the kth value of the displacement vector, and floor represents rounding down. bitDepthPosition represents the bit depth of the current mesh vertex geometry, and qp[k] represents the quantization parameter of the kth coefficient. As mentioned above, after the displacement vector is converted to a coordinate system, its normal component has a more significant effect on the quality than the tangential component, so a larger quantization parameter can be used for the tangential component.
[0165] 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:
[0166] disp[v].d[k]=floor(disp[v].d[k]*scale[k]) (22);
[0167] Among them, lodScale[k] represents the coefficient of the quantization parameter of the current subdivision level.
[0168] 7. Displacement coding. It can include video coding or quotient coding. Optionally, taking video coding as an example: the displacement coding part is to use the quantized wavelet coefficients as input for video coding. The quantized wavelet coefficients need to be arranged into a two-dimensional image. One arrangement method is as follows: traverse the wavelet coefficients in order from low frequency to high frequency.
[0169] Optionally, for each coefficient, determine the index of the NxM pixel block where it is located (e.g., N=M=16), and each coefficient should be stored in the pixel block according to the raster scan order of the pixel block;
[0170] Optionally, the position of the corresponding NxM pixel block on the image may be calculated according to the Morton order.
[0171] 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 bit stream.
[0172] It should be noted that in the embodiment of the present application, the bit shift processing may be performed, or the bit shift coding may be performed directly without the bit shift processing. The bit shift processing may improve the compression efficiency of the subsequent bit shift coding, thereby reducing the size of the target code stream.
[0173] 8. Reconstruction of deformed mesh. The displacement encoding module obtains the reconstructed displacement, that is, obtains the displacement vector consistent with the decoding end through inverse quantization and inverse transformation. After obtaining the reconstructed geometric displacement vector, the reconstructed basic mesh is subdivided and the reconstructed subdivided deformed mesh is obtained according to the corresponding displacement vector, which is then passed to the texture map conversion module.
[0174] 9. Texture map conversion. The texture map conversion module performs texture map conversion according to the input original grid (i.e., the grid to be encoded), the input original texture map (i.e., the texture map to be encoded), and the reconstructed deformed grid. Specifically, the texture map conversion may include the following steps:
[0175] 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) is P(u,v).
[0176] Determine whether the texture coordinate is within a certain triangle face after the parameterization of the subdivided deformed mesh;
[0177] If the texture coordinate does not belong to any triangle, the pixel is marked as an empty pixel, which can be filled with a filling algorithm later;
[0178] If the texture coordinate belongs to a triangle, the target operation is performed.
[0179] The above target operations may include:
[0180] Mark the pixel as filled;
[0181] Calculate the center of gravity coordinates of the texture in the current triangle surface according to the texture coordinates;
[0182] 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 points on the subdivided deformation grid corresponding to the texture coordinates, as shown by M(x, y, z) in the figure;
[0183] Find the point closest to the three-dimensional coordinate on the input original grid, as shown in the figure M'(x,y,z);
[0184] 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′);
[0185] The texture coordinates are used to sample the input original texture map to obtain the value A′(i′,j′) of the corresponding pixel position;
[0186] Assign this value to the corresponding pixel A(i,j) on the target texture map to be generated.
[0187] 10. Texture map compression. After obtaining the converted texture map, the empty pixels in it can be filled with relevant filling algorithms (such as Push-Pull algorithm). Then, it can be encoded using existing video encoders such as H.264 / AVC, H.265 / HEVC, H.266 / VVC, etc. to obtain the output texture map bitstream. In addition, color space conversion and chroma subsampling operations can be selectively applied to enable video encoding to obtain better rate-distortion performance, such as color space conversion from RGB 444 to YUV420.
[0188] Optionally, in some embodiments, the generating a target bitstream based on the texture map to be encoded corresponding to the mesh to be encoded and the basic mesh bitstream comprises:
[0189] A first reconstructed grid obtained by performing grid reconstruction based on the basic grid code stream;
[0190] 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;
[0191] performing mesh parameterization on the second reconstructed deformed mesh to obtain a third reconstructed deformed mesh;
[0192] 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;
[0193] 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.
[0194] Optionally, in some embodiments, the method further comprises:
[0195] Adjusting the displacement order of the first reconstructed mesh according to the displacement information to obtain a second vertex displacement;
[0196] The second vertex displacement is subjected to displacement encoding to obtain a displacement code stream.
[0197] In the embodiment of the present application, the encoding framework of the encoding end is specifically as follows Figure 7 As shown, the different positions of the grid parameterization Figure 7 It can be understood as two coding frameworks. If the coding end considers coding texture coordinates, coding framework 1 can be used, such as Figure 7 In the coding framework, mesh parameterization is performed after mesh simplification. If the encoder considers not encoding texture coordinates, the encoder and decoder use the same mesh parameterization steps to regenerate the texture coordinates of the mesh, and the coding framework 3 can be used, such as Figure 7 In the coding framework, mesh parameterization is performed after deformed mesh reconstruction (i.e., deformed mesh reconstruction is performed based on the first reconstructed mesh and the second reconstructed vertex displacement to obtain a second reconstructed deformed mesh). The implementation process of the coding framework 3 in the embodiment of the present application is similar to the implementation process of the above coding framework 2, except that the location of the mesh parameterization is different. The specific implementation process can refer to the above embodiment and will not be repeated here.
[0198] It should be noted that the position of the target identification information in the target code stream can be set according to actual needs. For example, in some embodiments, the target identification information is located in the auxiliary information code stream in the target code stream, and the auxiliary information code stream is obtained based on the auxiliary information. That is, the target code stream includes the auxiliary information, and the auxiliary information includes the target identification information.
[0199] Optionally, in some embodiments, the target identification information includes at least one of the following:
[0200] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0201] 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;
[0202] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0203] 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 the acquisition method of texture coordinates.
[0204] 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.
[0205] Table 1:
[0206]
[0207]
[0208] Among them, asps_vmc_ext_num_attribute_video represents the number of attribute maps corresponding to the mesh that references the parameter set, that is, the number of texture coordinates corresponding to the mesh;
[0209] asps_vmc_ext_derive_textcoord_flag[i] indicates whether the texture coordinates of the i-th attribute map corresponding to the grid 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.
[0210] asps_vmc_ext_derive_textcoord_method[i] represents the method index used to regenerate the texture coordinates of the i-th attribute map corresponding to the mesh that references the 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.
[0211] 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.
[0212] In addition to specifying parameters related to the way texture coordinates are obtained in the parameter set, corresponding profiles can also be formulated to support different encoding and decoding algorithms and tools. Specifically, different profiles can be specified in the profile to support different texture coordinate processing methods. An example of a profile is shown in Table 2, in which two profiles are defined and different encoding parameters are specified for the two profiles to limit the corresponding functions.
[0213] Table 2:
[0214]
[0215] Among them, 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 bitstream that references the 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, and if its value is 1, it means that asps_vmc_ext_derive_textcoord_flag can be 1.
[0216] Optionally, in some embodiments, the above coding framework 1, coding framework 2 and coding framework 3 may be combined, wherein, in addition to indicating the above acquisition method, the location information of the grid parameterization may be further indicated. For example, in some embodiments, the target identification information further includes: fourth field information, and the fourth field information is used to indicate the location information of the grid parameterization executed by the decoding end.
[0217] In an embodiment of the present application, the target identification information is located in the auxiliary information code stream. The fourth field information may display or implicitly indicate the location information of the grid parameterization performed by the decoding end. Among them, the fourth field information is used to indicate the location information of the grid parameterization performed by the decoding end, and it can also be understood or replaced by the fourth field information is used to indicate the location information of the grid parameterization performed by the encoding end. For example, an optional grammatical structure can be shown in Table 3.
[0218] Table 3:
[0219]
[0220] 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.
[0221] 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.
[0222] Optionally, in some embodiments, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0223] In the embodiment of the present application, the target identification information may be a profile identification (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 function of the decoding end. The details are shown in Table 4:
[0224] Table 4:
[0225]
[0226]
[0227] In the profile corresponding to the extended VDMC (VDMC Extended), it is indicated that asps_vmc_ext_derive_tex_from_base_flag can only be 1, and the corresponding function is that this profile only supports parameterization of the reconstructed base mesh at the decoding end. The function corresponding to the advanced VDMC (VDMC High) indicates that the reconstructed deformed mesh can be parameterized at the decoding end.
[0228] Optionally, the embodiment of the present application further provides a decoding processing method, such as Figure 8 The decoding processing method includes:
[0229] Step 801, receiving 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 from the basic grid bitstream or generating by a decoding end based on grid parameterization;
[0230] Step 802, decoding the basic grid code stream to obtain a third grid;
[0231] Step 803, generating a target decoding grid based on the third grid and the acquisition method;
[0232] Wherein, the target decoding grid includes the target texture coordinates.
[0233] 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 adopt the corresponding acquisition method to perform grid decoding coordinates, thus improving the flexibility of grid decoding.
[0234] 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 a target decoding grid based on the third grid and the acquisition method includes:
[0235] Subdividing the third grid to obtain a third subdivided grid;
[0236] Reconstruct the deformed mesh based on the third subdivided mesh and the third vertex displacement to obtain the target decoded mesh;
[0237] The third vertex displacement is obtained based on the displacement code stream in the target code stream.
[0238] Optionally, in a 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:
[0239] Performing mesh parameterization on the third mesh to obtain a fourth mesh, wherein the fourth mesh includes the target texture coordinates;
[0240] Subdividing the fourth grid to obtain a first subdivided grid;
[0241] Reconstructing a deformed mesh based on the first subdivided mesh and the third vertex displacement to obtain the target decoded mesh;
[0242] The third vertex displacement is obtained based on the displacement code stream in the target code stream.
[0243] Optionally, the performing grid parameterization on the third grid to obtain a fourth grid comprises:
[0244] 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.
[0245] Optionally, in a 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:
[0246] Subdividing the third grid to obtain a second subdivided grid;
[0247] Reconstructing a deformed mesh based on the second subdivided mesh and the third vertex displacement to obtain a fourth reconstructed deformed mesh;
[0248] Performing grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid;
[0249] The third vertex displacement is obtained based on the displacement code stream in the target code stream.
[0250] Optionally, the performing grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid comprises:
[0251] 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.
[0252] 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.
[0253] Optionally, the target identification information includes at least one of the following:
[0254] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0255] 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;
[0256] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0257] Optionally, the target identification information further includes: fourth field information, and the fourth field information is used to indicate location information where the decoding end performs the grid parameterization.
[0258] Optionally, the target identification information is information used to indicate functions and algorithms that the decoding end needs to support.
[0259] Optionally, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0260] It should be noted that, in the embodiment of the present application, for different positions where the decoding end performs grid parameterization, the decoding end decoding framework is different, for example, it may include Fig. 9 and Fig.10 The decoding framework is as follows: Fig. 9 Take the decoding process as an example to explain in detail.
[0261] 1. Auxiliary information decoding.
[0262] 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 mesh encoder type, which guides the decoding end to use the corresponding static mesh 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 mesh in the reconstructed deformed mesh, and the subdivision processing scheme of the encoder and decoder should be consistent; there are also optional spatial displacement transformation schemes, coefficient arrangement schemes, etc.
[0263] 2. Basic mesh decoding. The decoding of the basic mesh can be divided into intra-frame mode and inter-frame mode. For the intra-frame mode, the module decodes the input basic mesh code stream through the decoder corresponding to the static mesh encoder indicated by the auxiliary information. The decoded output is a three-dimensional mesh, which contains geometric information, connection relationship, texture coordinate information, etc. For the inter-frame mode, the module is responsible for decoding the motion vector corresponding to the vertex, and then reconstructing the basic mesh of the current frame based on the reference frame.
[0264] 3. Mesh parameterization. If the auxiliary information indicates that the texture coordinates are regenerated at the decoding end, the module parameterizes the input mesh according to the corresponding parameters. The parameterization operation is consistent with the encoding end. The auxiliary information may also indicate the location of the module, indicating whether the module parameterizes the reconstructed base mesh or the reconstructed deformed mesh.
[0265] 4. Displacement decoding. In the process of displacement decoding, 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 mesh vertex through the displacement reconstruction module. The operation of the displacement reconstruction module is mainly to dequantize and inversely transform the decoded displacement information, i.e., the wavelet coefficients, through the quantization parameters and transformation parameters indicated by the auxiliary information, and 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.
[0266] 5. Subdivision processing: The subdivision processing operation is the same as that of the encoding end, and the subdivision processing method and the number of iterations of the basic grid are indicated by auxiliary information.
[0267] 6. Reconstruct the deformed mesh. After the base mesh and the displacement vector are decoded and reconstructed, the deformed mesh is reconstructed based on the two parts. Add the corresponding displacement vector to each vertex of the subdivided mesh, as shown in Equation 23:
[0268] deformedmesh[i].v[k]=subdivmesh[i].v[k]+displacement[k] (23);
[0269] Among them, subdivmesh[i].v[k] represents the geometric coordinates of the kth vertex after the basic mesh subdivision processing of the current frame (index is i), displacement[k] represents the spatial displacement vector corresponding to the kth vertex, and deformedmesh[i].v[k] represents the geometric coordinates of the kth vertex after subdivision and deformation processing of the current frame.
[0270] 7. Displacement map decoding. The texture map decoder is responsible for decoding the texture map bitstream, which is decoded by the video decoder indicated in the auxiliary information. An optional color space conversion is performed on it to obtain the same color space as the input texture at the encoder. Figure 1 The consistent image format is obtained to obtain the final decoded output texture map.
[0271] After completing the above process, the target decoding grid reconstructed by the decoding end and the corresponding attribute map are finally obtained as input for corresponding processing.
[0272] The coding processing method provided in the embodiment of the present application can be executed by a coding processing device. In the embodiment of the present application, the coding processing device provided in the embodiment of the present application is described by taking the coding processing device executing the coding processing method as an example.
[0273] Reference Fig.11 , the embodiment of the present application also provides a coding processing device, such as Fig.11 As shown, the encoding processing device 1100 includes:
[0274] The processing module 1101 is used to determine a basic grid code stream based on the grid to be encoded;
[0275] The generation module 1102 generates 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.
[0276] 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 compress and encode the second mesh to obtain a basic mesh code stream.
[0277] Optionally, the generating module 1104 includes:
[0278] A first reconstruction unit, configured to perform grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid;
[0279] A first processing unit, configured to perform mesh parameterization on the first reconstructed mesh to obtain a second reconstructed mesh;
[0280] A first stream mixing unit, 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;
[0281] 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.
[0282] Optionally, the generating module 1104 further includes:
[0283] A first adjustment unit, configured to adjust a displacement order of the second reconstructed mesh according to the displacement information to obtain a first vertex displacement;
[0284] A coding unit, configured to perform displacement coding on the first vertex displacement to obtain a displacement code stream;
[0285] A second reconstruction unit is configured to reconstruct a deformed mesh based on the first reconstructed mesh and a first reconstructed vertex displacement to obtain a first reconstructed deformed mesh, wherein the first reconstructed vertex displacement is obtained by performing displacement reconstruction on the displacement code stream;
[0286] The second processing unit is used to determine the texture map bit stream based on the first reconstructed grid, the texture map to be encoded and the first reconstructed deformed grid.
[0287] Optionally, the generating module 1104 includes:
[0288] A third reconstruction unit, configured to perform grid reconstruction based on the basic grid code stream to obtain a first reconstructed grid;
[0289] A fourth reconstruction unit is configured to reconstruct 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;
[0290] A third processing unit, configured to perform mesh parameterization on the second reconstructed deformed mesh to obtain a third reconstructed deformed mesh;
[0291] A second stream mixing unit, 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;
[0292] 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.
[0293] 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 a second vertex displacement; and perform displacement encoding on the second vertex displacement to obtain a displacement code stream.
[0294] Optionally, the processing module 1101 is further used to perform grid parameterization on the first grid;
[0295] The input of the subdivision process is the first mesh after mesh parameterization.
[0296] 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.
[0297] Optionally, the target identification information includes at least one of the following:
[0298] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0299] 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;
[0300] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0301] Optionally, the target identification information further includes: fourth field information, and the fourth field information is used to indicate location information where the decoding end performs the grid parameterization.
[0302] Optionally, the target identification information is information used to indicate functions and algorithms that the decoding end needs to support.
[0303] Optionally, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0304] 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.
[0305] Reference Fig.12 The present application also provides a decoding processing device, such as Fig.12 As shown, the decoding processing device 1200 includes:
[0306] The receiving module 1201 is used 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 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.
[0307] The decoding module 1202 is used to decode the basic grid code stream to obtain a third grid; generate a target decoding grid based on the third grid and the acquisition method;
[0308] Wherein, the target decoding grid includes the target texture coordinates.
[0309] Optionally, in the case where the acquisition method is to obtain texture coordinates from the basic mesh code stream, the third mesh includes the target texture coordinates, and the decoding module 1002 is specifically used to: subdivide the third mesh to obtain a third subdivided mesh; reconstruct the deformed mesh based on the third 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.
[0310] Optionally, in the case where 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, the fourth mesh including 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.
[0311] 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.
[0312] Optionally, in the case where the acquisition method is generated by the decoding end based on mesh parameterization, the decoding module 1002 is specifically used to: subdivide the third mesh to obtain a second subdivided mesh; reconstruct the deformed mesh based on the second subdivided mesh and the third vertex displacement to obtain a fourth reconstructed deformed mesh; mesh parameterize the fourth reconstructed deformed mesh to obtain the target decoding mesh; wherein the third vertex displacement is obtained based on the displacement code stream.
[0313] Optionally, the decoding module 1202 is specifically configured to: when the target identification information indicates that the decoding end performs the grid parameterization after performing the deformed grid reconstruction, perform grid parameterization on the fourth reconstructed deformed grid to obtain the target decoding grid.
[0314] 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.
[0315] Optionally, the target identification information includes at least one of the following:
[0316] First field information, where the first field information is used to indicate the number of the target texture coordinates;
[0317] 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;
[0318] The third field information is used to indicate index information of a method for generating the target texture coordinates.
[0319] Optionally, the target identification information further includes: fourth field information, and the fourth field information is used to indicate location information where the decoding end performs the grid parameterization.
[0320] Optionally, the target identification information is information used to indicate functions and algorithms that the decoding end needs to support.
[0321] Optionally, the target identification information is also used to indicate location information where the decoding end performs the grid parameterization.
[0322] The encoding processing device and the decoding processing device provided in the embodiments of the present application can achieve Figures 3 to 10 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0323] Optional, such as Fig.13 As shown, the embodiment of the present application further provides a communication device 1300, including a processor 1301 and a memory 1302, and 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.
[0324] The embodiment of the present application also provides an electronic device, including a processor and a communication interface, wherein:
[0325] When the electronic device is an encoding end, the processor is used to determine a basic grid code stream based on the grid to be encoded; generate a target code stream based on a texture map to be encoded corresponding to the grid to be encoded and the basic grid code stream, the target code stream includes target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, and the acquisition method includes obtaining from the basic grid code stream or generating by a decoding end based on grid parameterization;
[0326] When the electronic device is a decoding end, the communication interface is used to receive a target code stream, the target code stream includes a basic grid code stream and target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, and the acquisition method includes obtaining 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; generate a target decoding grid based on the third grid and the acquisition method; wherein the target decoding grid includes the target texture coordinates.
[0327] The electronic device embodiment corresponds to the above-mentioned method embodiment on the codec end device side, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to the electronic device embodiment and can achieve the same technical effect. Specifically, Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0328] 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.
[0329] Those skilled in the art will appreciate that the electronic device 1400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0330] It should be understood that in the 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 a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0331] In the embodiment of the present application, after receiving downlink data from the network side device, the radio frequency unit 1401 can transmit the data to the processor 1410 for processing; in addition, the radio frequency unit 1401 can send uplink data to the network side device. Generally, 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, etc.
[0332] 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, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), 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 memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0333] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.
[0334] Wherein, when the electronic device is an encoding end, the processor 1410 is used to determine a basic grid bitstream based on the grid to be encoded; generate a target bitstream based on a texture map to be encoded corresponding to the grid to be encoded and the basic grid bitstream, the target bitstream includes target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, the acquisition method includes obtaining from the basic grid bitstream or generating by a decoding end based on grid parameterization;
[0335] When the electronic device is a decoding end, the radio frequency unit 1401 is used to receive a target code stream, the target code stream includes a basic grid code stream and target identification information, the target identification information is used to indicate a method for obtaining target texture coordinates, and the acquisition method includes obtaining 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; generate a target decoding grid based on the third grid and the acquisition method; wherein the target decoding grid includes the target texture coordinates.
[0336] 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.
[0337] 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.
[0338] 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.
[0339] 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.
[0340] The embodiments of the present application further provide 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.
[0341] The 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 perform the following Figure 3 And each process of each method embodiment of the above encoding end device, the decoding end device is used to perform the following Figure 8 And the various processes of the various method embodiments of the above-mentioned decoding end device can achieve the same technical effect. To avoid repetition, they will not be described here.
[0342] 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 including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiment 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 reverse 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.
[0343] 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0344] 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A coding processing method, applied to a coding end, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that 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, It is characterized in that It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the 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, It is characterized in that The readable storage medium stores a program or instruction, and 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
Cited By
Encoding processing method, decoding processing method, and related device
EP4683323A1
