Three-dimensional grid coding method and device, three-dimensional grid decoding method and device and electronic equipment

By adjusting the texture coordinates of the three-dimensional grid, the parameterized distortion problem caused by geometric position changes during subdivision deformation is solved, and the grid quality and coding efficiency are improved.

CN119232952APending Publication Date: 2024-12-31VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310795769.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

During the subdivision deformation of the three-dimensional grid, the parameterization distortion caused by changes in geometric positions, which reduces the quality of the reconstruction grid.

Method used

By adjusting the texture coordinates of the reconstructed subdivided deformation grid at the encoding end, the reconstructed subdivided deformation grid after adjusting the texture coordinates is obtained, so that the corresponding two-dimensional to three-dimensional transformation error is smaller than before adjustment, thereby reducing the reason. Parameterized distortion caused by geometric position changes during subdividing the deformation process and improve coding quality.

Benefits of technology

The quality of the reconstructed subdivided deformation grid is effectively improved, the parameterized distortion caused by changes in geometric position during subdivided deformation is reduced, and the encoding quality of the encoding end is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232952A_ABST
    Figure CN119232952A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional grid coding method and device, a three-dimensional grid decoding method and device and electronic equipment, and belongs to the technical field of video coding and decoding, and the three-dimensional grid coding method comprises the steps that a coding end obtains a reconstructed subdivision deformation grid obtained after first processing is carried out on a to-be-coded three-dimensional grid; the coding end adjusts the texture coordinates of the reconstructed subdivision deformation grid to obtain the reconstructed subdivision deformation grid after the texture coordinates are adjusted; the two-dimensional-to-three-dimensional conversion error corresponding to the reconstructed subdivision deformation grid after the texture coordinates are adjusted is smaller than the two-dimensional-to-three-dimensional conversion error corresponding to the reconstructed subdivision deformation grid before the texture coordinates are adjusted; the coding end carries out texture map conversion on the reconstructed subdivision deformation grid after the texture coordinates are adjusted, and a converted texture map is obtained; and the encoding end encodes the converted texture image to obtain a texture image code stream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of video coding and decoding technology, and specifically relates to a three-dimensional grid coding method, decoding method, device and electronic equipment. Background Art

[0002] In recent years, with the rapid development of multimedia technology, three-dimensional models have become a new generation of digital media after audio, images, and videos. Three-dimensional meshes are a commonly used way to represent three-dimensional models. Taking the encoding end as an example, the encoding end first simplifies and parameterizes the three-dimensional mesh, and then subdivides and deforms the parameterized mesh, that is, inserts new vertices on the mesh according to a specific subdivision method and calculates the distance from the subdivided mesh vertex to the nearest neighbor of the input mesh, which is called displacement information. Subsequently, the parameterized mesh is adjusted according to the displacement information, that is, the vertex position of the mesh before subdivision deformation. During the subdivision deformation process, the change in geometric position will cause parameterization distortion, resulting in reduced quality of the reconstructed mesh. Summary of the invention

[0003] The embodiments of the present application provide a three-dimensional mesh encoding method, decoding method, device and electronic device, which can solve the problem of parametric distortion caused by changes in geometric position during subdivision deformation, resulting in reduced quality of reconstructed mesh.

[0004] In a first aspect, a three-dimensional grid encoding method is provided, which is performed by an encoding end and includes:

[0005] The encoding end obtains a reconstructed subdivided deformed mesh obtained after performing a first processing on the three-dimensional mesh to be encoded;

[0006] The encoder adjusts the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted;

[0007] The encoder performs texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates to obtain a converted texture map;

[0008] The encoding end encodes the converted texture image to obtain a texture image bit stream.

[0009] In a second aspect, a three-dimensional mesh decoding method is provided, which is executed by a decoding end and includes:

[0010] The decoding end obtains the basic grid code stream and the displacement video code stream;

[0011] The decoding end performs basic grid decoding and subdivision on the basic grid code stream to obtain a subdivided basic grid;

[0012] The decoding end performs displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid;

[0013] The decoding end obtains a reconstructed subdivided deformed grid based on the subdivided basic grid and the reconstructed deformed grid;

[0014] The decoding end adjusts the texture coordinates of the reconstructed subdivision deformed mesh to obtain a reconstructed subdivision deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh before the texture coordinates are adjusted.

[0015] In a third aspect, a three-dimensional grid encoding device is provided, comprising:

[0016] A first acquisition module, used to acquire a reconstructed subdivided deformed grid obtained after performing a first processing on the coded three-dimensional grid;

[0017] A first adjustment module is used to adjust the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted;

[0018] A conversion module, used for performing texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates, to obtain a converted texture map;

[0019] The encoding module is used to encode the converted texture image to obtain a texture image code stream.

[0020] In a fourth aspect, a three-dimensional grid decoding device is provided, comprising:

[0021] The second acquisition module is used to acquire the basic grid code stream and the displacement video code stream;

[0022] A first decoding module, configured to perform basic grid decoding and subdividing the basic grid code stream to obtain a subdivided basic grid;

[0023] A second decoding module is used to perform displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid;

[0024] A reconstruction module, used for obtaining a reconstructed subdivided deformed mesh based on the subdivided basic mesh and the reconstructed deformed mesh;

[0025] The second adjustment module is used to adjust the texture coordinates of the reconstructed subdivision deformed mesh to obtain a reconstructed subdivision deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh before the texture coordinates are adjusted.

[0026] In a fifth aspect, an electronic device is provided, the terminal comprising a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions implementing the steps of the method described in the first aspect or the second aspect when executed by the processor.

[0027] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.

[0028] In the seventh aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect, or to implement the method described in the second aspect.

[0029] In an eighth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.

[0030] In an embodiment of the present application, the encoding end needs to first adjust the texture coordinates of the reconstructed subdivided deformed mesh, and then perform texture map conversion on the reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the mesh is used as a measurement parameter of parameterized distortion, and the smaller the value, the smaller the parameterized distortion. Compared with the related art of directly performing texture map conversion on the reconstructed subdivided deformed mesh, the present application adjusts the texture coordinates of the reconstructed subdivided deformed mesh so that the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted, which can effectively reduce the parameterized distortion caused by the change of the geometric position during the subdivided deformation process, and can effectively improve the quality of the reconstructed subdivided deformed mesh, thereby improving the encoding quality of the encoding end. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1a It is a flow chart of the encoding end performing three-dimensional mesh encoding in VDMC mode;

[0032] Figure 1b It is a flowchart of a decoding end performing three-dimensional mesh decoding in a VDMC manner;

[0033] Figure 2 This is one of the flow charts of a three-dimensional grid encoding method provided in an embodiment of the present application;

[0034] Figure 3 This is one of the flow charts of a three-dimensional grid decoding method provided in an embodiment of the present application;

[0035] Figure 4a This is the second flowchart of a three-dimensional grid encoding method provided in an embodiment of the present application;

[0036] Figure 4b is a schematic diagram of grid simplification in a three-dimensional grid encoding method provided in an embodiment of the present application;

[0037] Figure 4c It is a schematic diagram of orthogonal projection parameterization in a three-dimensional grid encoding method provided in an embodiment of the present application;

[0038] Figure 4d is a schematic diagram of subdivision deformation in a three-dimensional grid encoding method provided in an embodiment of the present application;

[0039] Figure 4e This is a flowchart of basic grid compression in a three-dimensional grid coding method provided in an embodiment of the present application;

[0040] Figure 5a This is the second flowchart of a three-dimensional grid decoding method provided in an embodiment of the present application;

[0041] Figure 5b is a flowchart of basic grid decoding in a three-dimensional grid decoding method provided in an embodiment of the present application;

[0042] Figure 6 is a structural diagram of a three-dimensional grid encoding device provided in an embodiment of the present application;

[0043] Figure 7 is a structural diagram of a three-dimensional grid decoding device provided in an embodiment of the present application;

[0044] Figure 8 It is one of the structural diagrams of an electronic device provided in an embodiment of the present application;

[0045] Fig. 9 This is the second structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] 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.

[0047] The terms "first", "second", etc. 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 one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application 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.

[0048] For better understanding, the relevant concepts and principles that may be involved in the embodiments of the present application are explained below.

[0049] With the rapid development of multimedia technology, related research results have been rapidly industrialized and have become an indispensable part of people's lives. Three-dimensional models have become a new generation of digital media after audio, images, and videos. Three-dimensional grids are a commonly used way to represent three-dimensional models. Compared with traditional multimedia such as images and videos, three-dimensional grid models have stronger interactivity and realism, making them more and more widely used in various fields such as commerce, manufacturing, construction, education, medicine, entertainment, art, and military.

[0050] Although there are many ways to represent 3D meshes, 3D meshes are still the most common representation method. 3D meshes can be considered as composed of three basic elements: vertices, edges, and faces. Vertices are the most basic elements in a mesh, and they define a position in a 3D space. Edges are line segments connecting two vertices in a mesh. Faces can be considered as polygons formed by closed paths of edges. For a triangular mesh, each face is a triangle.

[0051] The information contained in the mesh is usually divided into three categories: geometric information, connection information, and attribute information. Geometric information refers to the position of each vertex of the mesh in three-dimensional space. Connection information describes the association between elements in the mesh, that is, the connection relationship between vertices. Attribute information is optional, and it can associate attributes to corresponding mesh elements (such as vertex color, normal vector, etc. can be associated with mesh vertices). Mesh parameterization can also be used to map the mesh from three-dimensional space to a two-dimensional plane area. This mapping relationship is usually described by a set of parameter coordinates, called UV coordinates or texture coordinates, which are associated with mesh vertices. This two-dimensional mapping can be used to represent high-resolution attribute information, such as textures, normal vectors, etc.

[0052] In almost all application fields that use 3D meshes (such as computational simulation, entertainment, medical imaging, digital cultural relics, computer design, e-commerce, etc.), as people's demand for higher visual effects of 3D mesh models increases, the models are becoming more and more complex, and the accuracy of the models is also increasing. Therefore, the amount of data required to represent the 3D mesh is also increasing accordingly. The above problems have led to the increasing complexity of the processing, visualization, transmission and storage of 3D meshes. 3D mesh compression can be regarded as a way to solve the above problems. It reduces the size of model data and is conducive to the processing, storage and transmission of 3D meshes. Therefore, it is necessary to propose an efficient and general 3D mesh compression algorithm.

[0053] Recently, the Moving Pictures Experts Group (MPEG) of the International Organization for Standardization in the field of audio and video coding compression has begun to develop a compression standard for three-dimensional meshes, Video-based dynamic mesh coding (VDMC). This standard is specified based on the existing Visual Volumetric Video-based Coding (V3C) standard. The V3C standard provides a general method for compressing three-dimensional models, which can be presented in the form of point clouds, meshes, or panoramic videos. Making the compression method of three-dimensional mesh models compatible with this standard will help the promotion and applicability of the method. Therefore, it is of great significance to optimize the three-dimensional mesh encoding and decoding method in VDMC.

[0054] VDMC:

[0055] VDMC is a standard developed by MPEG for compressing three-dimensional meshes. Its main idea is to compress three-dimensional meshes by using the existing V3C standard. Since three-dimensional 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 three-dimensional meshes.

[0056] The overall framework of the encoding end is as follows Figure 1a As shown in the figure, for the input mesh, it is first simplified by the simplification module, and then the new texture coordinates are generated for the mesh by mesh parameterization. Then, the parameterized mesh is subdivided and deformed, that is, new vertices are inserted on the mesh according to a specific subdivision method and the distance from the vertex of the subdivided mesh to the nearest neighbor of the input mesh is calculated, which is called displacement information. Then, the parameterized mesh, that is, the vertex position of the mesh before subdivision and deformation is adjusted according to the displacement information, and the adjusted mesh is called the base mesh, which is sent to the base mesh encoding module and compressed using the existing mesh encoder. In the inter-frame mode, a motion vector can also be generated for each vertex of the base mesh according to the reference frame, and the base mesh module only needs to compress the motion vector. The base mesh is reconstructed after encoding, and then the order of displacement is adjusted according to the vertex order of the reconstructed base mesh. Then, the vertex displacement information after the order is adjusted is first subjected to wavelet transformation, and the transformed coefficients are quantized, and 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.

[0057] The overall framework of the decoding end is as follows Figure 1b As shown, for the received code stream, the decoding end first demultiplexes each part of the code stream to obtain the basic grid code stream, the displacement video code stream, the texture map video code stream and the auxiliary information code stream respectively. For the basic grid code stream, the grid decoder indicated by the auxiliary information is used to decode the basic grid. The displacement video code stream and the texture map video code stream are decoded by the video decoder. For the displacement part, after the video is decoded, the displacement needs to be taken out from 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 basic grid to obtain the deformed grid reconstructed by the decoding end. After decoding, the texture map is the texture map corresponding to the reconstructed deformed grid. The subsequent application or rendering module processes the reconstructed deformed grid and the decoded texture map as input.

[0058] The following, in combination with the accompanying drawings, describes in detail the three-dimensional grid encoding method, decoding method and related equipment provided by the embodiments of the present application through some embodiments and their application scenarios.

[0059] Please refer to Figure 2 , Figure 21 is a flow chart of a three-dimensional grid encoding method provided in an embodiment of the present application, and the method is applied to the encoding end. Figure 2 As shown, the method comprises the following steps:

[0060] Step 201: The encoder obtains a reconstructed subdivided deformed mesh obtained by performing a first processing on the three-dimensional mesh to be encoded.

[0061] In an embodiment of the present application, after obtaining the input three-dimensional mesh to be encoded, the encoding end may perform mesh simplification and subdivision and deformation processing on the three-dimensional mesh to be encoded to obtain a basic mesh, and then mesh parameterize the basic mesh to obtain a basic mesh containing texture coordinates, and further compress the basic mesh to obtain a basic mesh code stream, and at the same time reconstruct the basic mesh to obtain a reconstructed basic mesh, and subdivide and deform the reconstructed basic mesh to obtain a corresponding geometric displacement, encode and reconstruct the displacement, and use the reconstructed displacement to obtain the subdivided deformed mesh reconstructed by the encoding end.

[0062] It should be noted that the first processing in the embodiment of the present application may include all processing flows before obtaining the reconstructed subdivided deformed mesh, that is, the first processing includes mesh simplification, subdivided deformation, mesh parameterization, reconstruction, subdivided deformation of the reconstructed basic mesh, etc. The specific implementation process of each of the above processing flows may refer to the relevant technology, and this application does not describe it in detail.

[0063] Step 202: The encoder adjusts the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh with the adjusted texture coordinates.

[0064] It is understandable that since the displacement is lost to a certain extent due to the quantization process in the displacement coding stage, it is necessary to reconstruct the displacement at the encoding end so as to keep it consistent with the decoding end. After the encoding end obtains the reconstructed displacement, the reconstructed basic mesh is subdivided and the reconstructed subdivided deformed mesh is obtained according to the corresponding displacement. For the reconstructed subdivided deformed mesh, its texture coordinates can be obtained by midpoint interpolation during the subdivision deformation process, and the texture coordinates of the reconstructed subdivided deformed mesh can be adjusted according to the geometric positions of the vertices of the reconstructed subdivided deformed mesh, so as to obtain the reconstructed subdivided deformed mesh after adjusting the texture coordinates.

[0065] The 2D to 3D transformation error corresponding to the reconstructed subdivided deformed mesh after adjusting the texture coordinates is less than the 2D to 3D transformation error corresponding to the reconstructed subdivided deformed mesh before adjusting the texture coordinates. It should be noted that the 2D to 3D transformation error corresponding to the mesh can be expressed as L 2 To indicate that L 2As a metric parameter of parametric distortion, the smaller its value is, the smaller the parametric distortion is. In the embodiment of the present application, the texture coordinates of the reconstructed subdivided deformed mesh are adjusted so that the L corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is 2 Less than L corresponding to the reconstructed subdivision deformed mesh before adjusting the texture coordinates 2 In this way, the parametric distortion caused by the change of geometric position during the subdivision deformation process can be reduced, thereby effectively improving the quality of the reconstructed subdivision deformation mesh.

[0066] Step 203: the encoder performs texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates to obtain a converted texture map;

[0067] Step 204: The encoding end encodes the converted texture image to obtain a texture image bit stream.

[0068] It can be understood that after adjusting the texture coordinates of the reconstructed subdivided deformed mesh, the reconstructed subdivided deformed mesh after adjusting the texture coordinates is subjected to texture map conversion to obtain a converted texture map, which is further encoded to obtain a texture map bitstream.

[0069] Optionally, the encoding end may mix the texture image bitstream with other bitstreams to obtain a mixed bitstream and send the mixed bitstream to the decoding end, wherein the other bitstreams may include a basic grid bitstream, a displacement bitstream, an auxiliary information bitstream, etc.

[0070] In an embodiment of the present application, after the encoding end performs a first processing on the three-dimensional mesh to be encoded to obtain a reconstructed subdivided deformed mesh, the texture coordinates of the reconstructed subdivided deformed mesh are adjusted, and the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is converted into a texture map, and the converted texture map is encoded to obtain a texture map code stream.

[0071] It can be understood that texture coordinates are derived and generated based on geometric coordinates. The geometric coordinates of the mesh vertices will be adjusted during the mesh subdivision deformation process, so the geometric coordinates will also change, and the corresponding texture coordinates will actually change. In the related art, the texture coordinates of the reconstructed subdivision deformed mesh will not be adjusted, which also causes the problem of parametric distortion. Compared with the related art that directly converts the reconstructed subdivision deformed mesh into a texture map, in the embodiment of the present application, it is necessary to first adjust the texture coordinates of the reconstructed subdivision deformed mesh, and then convert the texture map of the reconstructed subdivision deformed mesh after the texture coordinates are adjusted. The present application adjusts the texture coordinates of the reconstructed subdivision deformed mesh so that the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh after the texture coordinates are adjusted is less than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh before the texture coordinates are adjusted. This can effectively reduce the parametric distortion caused by the change of the geometric position during the subdivision deformation process, and can effectively improve the quality of the reconstructed subdivision deformed mesh, thereby improving the encoding quality of the encoding end.

[0072] It should be noted that the encoder can adjust the texture coordinates of the reconstructed subdivided deformed mesh in a variety of ways.

[0073] Optionally, the first processing includes subdivision deformation processing, that is, before obtaining the reconstructed subdivision deformed mesh, the encoding end performs subdivision deformation processing on the mesh obtained after mesh simplification and mesh parameterization of the three-dimensional mesh to be encoded, and the subdivision deformation processing is used to obtain the subdivision deformed mesh. Specifically, the subdivision deformation processing includes two processing processes, subdivision and deformation. First, the mesh is subdivided. For the subdivided mesh, the nearest neighbor point of each point on the original input mesh (including the point on the original mesh surface) is found. The search can be accelerated by data structures such as kdTree. The displacement 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 the geometric coordinates of its nearest neighbor on the original input mesh.

[0074] In the embodiment of the present application, the encoder adjusts the texture coordinates of the reconstructed subdivided deformed mesh by:

[0075] The encoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

[0076] It should be noted that for a three-dimensional mesh, each mesh vertex includes corresponding geometric coordinates and texture coordinates. In the process of subdividing and deforming the three-dimensional mesh, the texture coordinates are subdivided along with the geometric coordinates, and the geometric coordinates further include deformation processing.

[0077] In an embodiment of the present application, for a reconstructed subdivided deformed mesh, the encoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh according to the geometric positions (i.e., geometric coordinates) and connection relationships of the mesh vertices of the reconstructed subdivided deformed mesh, thereby improving the quality of the parameterization of the reconstructed subdivided deformed mesh.

[0078] Optionally, the encoder adjusting the texture coordinates of the reconstructed subdivided deformed mesh may further include:

[0079] The encoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh to adjust the texture coordinates of the reconstructed subdivided deformed mesh.

[0080] It can be understood that mesh parameterization is used to generate corresponding texture coordinates for the mesh. In the embodiment of the present application, the mesh parameterization processing can be performed on the reconstructed subdivided deformed mesh, and the texture coordinates of the reconstructed subdivided deformed mesh can be adjusted through the mesh parameterization processing. The specific implementation process of the mesh parameterization can refer to the specific description in the subsequent embodiments.

[0081] Optionally, the encoder performs mesh parameterization processing on the reconstructed subdivided deformed mesh, including any one of the following:

[0082] The encoding end performs orthogonal projection parameterization processing on the reconstructed subdivided deformed grid;

[0083] The encoding end performs International Organization for Standardization chart (isochart) parameterization processing on the reconstructed subdivided deformed grid.

[0084] For example, the encoding end may adjust the texture coordinates of the reconstructed subdivided deformed mesh by orthogonal projection parameterization processing. Exemplarily, the orthogonal projection parameterization processing may include the following process:

[0085] a) Calculate mesh properties, including the neighboring faces of each face and the area and normal vector of each face;

[0086] b) Determine the projection plane of each face based on the normal vector;

[0087] c) Cluster all faces according to the projection plane to form a connected region, and first select the starting face of the cluster;

[0088] d) Iterating from the starting face, determining whether the adjacent faces of the face added to the connected region can be added to the connected region;

[0089] e) After each connected region is iterated, multiple connected regions are obtained;

[0090] f) determining whether to merge adjacent connected regions based on the error metric;

[0091] g) Detect whether there are overlapping areas during projection, remove the overlapping surfaces and regenerate the connected areas;

[0092] h) Arrange all the projected regions into a two-dimensional image.

[0093] The specific implementation of the above process can be referred to the description in the subsequent embodiments, which will not be repeated here.

[0094] It can be understood that the encoder generates texture coordinates for the reconstructed subdivided deformed mesh by performing orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh, thereby adjusting the texture coordinates of the reconstructed subdivided deformed mesh.

[0095] Alternatively, the encoder may also perform isochart parameterization on the reconstructed subdivided deformed mesh. Isochart parameterization uses spectral analysis to implement stretch-driven three-dimensional mesh parameterization, and expands, slices, and packs the three-dimensional mesh into a two-dimensional texture domain using texture coordinates (UV coordinates). In this method, a stretch threshold is set, and the specific implementation process is as follows:

[0096] a) Compute surface spectral analysis to provide an initial parameterization

[0097] b) Perform stretch optimization iterations

[0098] c) If the stretch of this derived parameterization is less than a threshold, stop

[0099] d) Perform surface spectral clustering to divide the surface into charts

[0100] e) Use graph cut algorithm to optimize chart boundaries

[0101] f) Iterate the splitting of charts until the stretching criteria are met

[0102] The specific implementation of the above process can be referred to the description in the subsequent embodiments, which will not be repeated here.

[0103] In the embodiment of the present application, the encoding end can generate texture coordinates (UV coordinates) for the reconstructed subdivided deformed mesh by performing isochart parameterization processing on the reconstructed subdivided deformed mesh, thereby adjusting the texture coordinates of the reconstructed subdivided deformed mesh.

[0104] Optionally, the encoder performs orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh, including:

[0105] The encoding end obtains a projection plane corresponding to each face in the reconstructed subdivided deformed mesh;

[0106] The encoding end obtains an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed grid;

[0107] The encoder end obtains, according to an orthogonal basis corresponding to the projection plane, a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, where the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point;

[0108] The encoding end arranges the first coordinates corresponding to all points in the reconstructed subdivided deformed grid into a same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed grid.

[0109] Specifically, for a mesh generated by orthogonal projection parameterization, each face of the mesh corresponds to a projection plane. After subdivision deformation, the face generated by the subdivision maintains the same projection plane as the original face. The encoder traverses all faces of the reconstructed subdivision deformed mesh to obtain the projection plane corresponding to each face. For a certain face, the vertices of the face are projected according to the projection plane corresponding to the face to obtain the coordinates of the vertices on the face after projection. The projection method is to determine a set of orthogonal bases on the current projection plane.

[0110] For example, for a certain face of the reconstructed subdivided deformed mesh, the projection plane corresponding to the face is obtained, and a set of orthogonal bases on the projection plane can be determined according to the projection, and the coordinates of the face on the corresponding projection plane (that is, the first coordinates) can be obtained according to the orthogonal bases. For example, taking the projection plane corresponding to the normal vector (0,0,1) as an example, a set of orthogonal bases on the projection plane is Then the coordinates of a point v=(x,y,z) in three-dimensional space projected onto the plane are

[0111] Based on the above method, the first coordinates of each point on the surface of the reconstructed subdivided deformed mesh on the corresponding projection plane can be obtained, that is, the first coordinates of all points in the reconstructed subdivided deformed mesh can be obtained, and the first coordinates of all points can be arranged in the same two-dimensional image. The above process generates texture coordinates for the reconstructed subdivided deformed mesh through orthogonal projection parameterization, thereby adjusting the texture coordinates of the reconstructed subdivided deformed mesh.

[0112] In an embodiment of the present application, the encoding end adjusts the texture coordinates of the reconstructed subdivision deformed mesh, and then performs texture map conversion on the reconstructed subdivision deformed mesh after the adjusted texture coordinates. This can effectively reduce the parametric distortion caused by the change of geometric position during the subdivision deformation process, and can effectively improve the quality of the reconstructed subdivision deformed mesh, thereby improving the encoding quality of the encoding end.

[0113] Please refer to Figure 3 , Figure 3 is a flow chart of a three-dimensional grid decoding method provided in an embodiment of the present application, and the method is applied to a decoding end. Figure 3 As shown, the method comprises the following steps:

[0114] Step 301: The decoding end obtains the basic grid code stream and the displacement video code stream;

[0115] Step 302: The decoding end performs basic grid decoding and subdivision on the basic grid code stream to obtain a subdivided basic grid;

[0116] Step 303: the decoding end performs displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid;

[0117] Step 304: The decoding end obtains a reconstructed subdivided deformed grid based on the subdivided basic grid and the reconstructed deformed grid;

[0118] Step 305: The decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted.

[0119] It can be understood that the decoding end can obtain the code stream to be decoded from the encoding end. The code stream may include a basic grid code stream, a displacement video code stream, a texture map code stream, an auxiliary information code stream, etc.

[0120] The decoding end performs basic grid decoding on the basic grid code stream to obtain a basic grid, and subdivides the basic grid to obtain a subdivided basic grid. For the displacement video code stream, the decoding end first performs displacement decoding on it to obtain a displacement image, and then reconstructs the displacement image to obtain a reconstructed deformed grid.

[0121] After the basic grid is subdivided and the displacement decoding reconstruction is completed, the subdivided deformed grid is reconstructed based on these two parts. That is, the encoder obtains the reconstructed subdivided deformed grid based on the subdivided basic grid and the reconstructed deformed grid. The specific process can be referred to the description in the subsequent embodiments, which will not be repeated here.

[0122] Furthermore, the decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh, so as to obtain the reconstructed subdivided deformed mesh after the texture coordinates are adjusted. It should be noted that the adjustment process of the texture coordinates of the reconstructed subdivided deformed mesh by the decoding end can be the same as that of the encoding end. According to the way the encoding end adjusts the texture coordinates, the decoding end adjusts in the same way, so as to ensure that the reconstructed subdivided deformed mesh with the same texture coordinates adjusted as the encoding end is obtained.

[0123] In the embodiment of the present application, the decoding end decodes and performs related processing on the basic grid code stream and the displacement video code stream respectively to obtain a reconstructed subdivided deformed grid, adjusts the texture coordinates of the reconstructed subdivided deformed grid, and then applies the reconstructed subdivided deformed grid after adjusting the texture coordinates. Compared with the direct application of the reconstructed subdivided deformed grid in the related art, the embodiment of the present application needs to adjust the texture coordinates of the reconstructed subdivided deformed grid before application, so that the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed grid after adjusting the texture coordinates is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed grid before adjusting the texture coordinates, which can effectively reduce the parametric distortion caused by the change of the geometric position of the grid vertices during the subdivided deformation process, so as to improve the quality of the reconstructed grid, thereby helping to improve the decoding quality of the decoding end.

[0124] Optionally, the decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh, including:

[0125] The decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

[0126] Optionally, the decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh, including:

[0127] The decoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh to adjust the texture coordinates of the reconstructed subdivided deformed mesh.

[0128] Optionally, the decoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh, including any one of the following:

[0129] The decoding end performs orthogonal projection parameterization processing on the reconstructed subdivided deformed grid;

[0130] The decoding end performs isochart parameterization processing on the reconstructed subdivided deformed grid.

[0131] Optionally, the decoding end performs orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh, including:

[0132] The decoding end obtains a projection plane corresponding to each face in the reconstructed subdivided deformed mesh;

[0133] The decoding end obtains an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed grid;

[0134] The decoding end obtains, according to the orthogonal basis corresponding to the projection plane, a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, wherein the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point;

[0135] The decoding end arranges the first coordinates corresponding to all points in the reconstructed subdivided deformed grid into the same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed grid.

[0136] It should be noted that the adjustment process of the texture coordinates of the reconstructed subdivided deformed mesh at the decoding end can be the same as that at the encoding end. The specific implementation process can refer to the description in the above-mentioned encoding end method embodiment. To avoid repetition, it will not be repeated here.

[0137] For better understanding, the methods involved in the embodiments of the present application are explained below with respect to the encoding method of the encoding end and the decoding method of the decoding end respectively.

[0138] Please refer to Figure 4a The three-dimensional grid encoding method of the encoding end specifically includes the following process:

[0139] (1) Mesh simplification

[0140] Mesh simplification is to simplify the current input mesh to a basic mesh with relatively few points and faces, and keep the shape of the original mesh as much as possible. The key of mesh simplification is the simplification operation and the corresponding error measurement. A feasible mesh simplification operation is Figure 4b 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.

[0141] 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.

[0142] 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.

[0143] (2) Mesh parameterization

[0144] Mesh parameterization is used to generate corresponding texture coordinates for meshes. Currently, there are many algorithms for parameterizing meshes, such as Isochart algorithm, orthogonal projection algorithm, etc. In this encoding framework, mesh parameterization can be applied before or after the subdivision deformation module. If applied after the subdivision deformation module, the parameterization quality of the basic mesh sent to the basic mesh encoding module can be improved.

[0145] ①Isochart algorithm

[0146] The algorithm uses spectral analysis to achieve stretch-driven 3D mesh parameterization, UV-unwrapping, slicing and packing the 3D mesh into a 2D texture domain. A stretch threshold is set, and the algorithm is outlined as follows:

[0147] a) Compute the surface spectrum analysis to provide an initial parameterization;

[0148] b) performing iterations of stretch optimization;

[0149] c) if the stretch of this derived parameterization is less than a threshold, stop;

[0150] d) performing surface spectral clustering to divide the surface into charts;

[0151] e) Use graph cut algorithm to optimize chart boundaries;

[0152] f) Iterate the splitting of charts until the stretching criteria are met.

[0153] The specific process of each process is explained below.

[0154] Surface spectrum analysis:

[0155] Surface spectral analysis is parameterized based on the isometric feature mapping (IsoMap) dimensionality reduction method. Specifically, given a set of high-dimensional points, IsoMap calculates the geodesic distance along the manifold as the jump sequence between adjacent points. Then, the multidimensional scaling (MDS) algorithm is applied to these geodesic distances to find a set of points embedded in a low-dimensional space with similar pairwise distances. For a surface with N points, the calculation process is as follows:

[0156] a) Calculate the symmetric matrix D of the squared geodesic distances between surface points N ;

[0157] b) Perform double centering and normalization on D N to obtain B N , and its calculation process is shown in Equation (1):

[0158]

[0159] where I is the N-dimensional identity matrix, and 1 is the unit vector of length N.

[0160] c) Calculate the eigenvalues λ N of B i and the corresponding eigenvectors

[0161] d) For each point i of the original surface, its embedding in the new space is the N-dimensional vector and the calculation process of its j-th element is shown in Equation (2):

[0162]

[0163] The eigenvalues λ N of B i and the corresponding eigenvectors constitute the spectral decomposition of the surface shape. The eigenvectors corresponding to large eigenvalues represent the global low-frequency features on the surface, and the eigenvectors corresponding to small eigenvalues represent high-frequency details. The high-energy and low-frequency components are used as the basis for chartification and parameterization.

[0164] 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 of the largest eigenvalues and the corresponding eigenvectors are calculated to generate the n-dimensional embedding of all points.

[0165] Since the mapping from high-dimensional space to 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 on all vertices. For each vertex i, its geodesic distance distortion (GDD) under embedding is defined as shown in formula (3):

[0166]

[0167] in, is the n-dimensional embedding coordinate of vertex i, d geo (i,j) is the geodesic distance between points i and j.

[0168] When n = 2, surface spectral analysis produces a surface parameterization that minimizes the sum of the squared GDDs of all vertices.

[0169] 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.

[0170] Stretch Optimization:

[0171] Since 3D space is not isometric to 2D space, parameterization introduces distortion. Distortion can be measured in many ways, including preservation of angles or areas, or how much a parameter distance is stretched or shrunk on the surface. In this algorithm, we focus on distance distortion, specifically the definition of geometric stretch, which defines the average stretch L of local distances on the surface. 2 and the worst case stretch L ∞ Two measures. Assume a triangle T with two-dimensional texture coordinates p1, p2, p3, where pi = (si, ti), and the corresponding three-dimensional coordinates are q1, q2, q3. The calculation process of the affine mapping S(p) = S(s, t) = q is shown in equation (4):

[0172] S(p)=( <p,p 2 ,p 3 >q 1 + <p,p 3 ,p 1 >q 2 + <p,p 1 ,p 2 >q 3 ) / <p 1 ,p 2 ,p 3 >#(4)

[0173] in,<a,b,c> represents the area of ​​triangle abc. Since the mapping is affine, its partial derivative is a constant on (s, t), and its calculation process is shown in equations (5) and (6):

[0174]

[0175]

[0176] Where A= <p 1 ,p 2 ,p 3 >=((s 2 -s 1 )(t 3 -t 1 )-(s 3 -s 1 )(t 2 -t 1 )) / 2

[0177] Then the Jacobian matrix [S S ,S t The calculation process is shown in equations (7) and (8):

[0178]

[0179]

[0180] Where a = S s ·S s ,b=S s ·S t ,c=S t ·S t . Singular value γ max , γ min It 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):

[0181]

[0182] L ∞ (T) = γ max #(10)

[0183] In the entire three-dimensional grid M={T i The definition of the stretching measure on} is shown in equations (11) and (12):

[0184]

[0185]

[0186] Among them, A′(T i ) is a triangle T i The surface area in three dimensions.

[0187] 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.

[0188] Surface Spectral Clustering:

[0189] 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. The results of spectral analysis are used to calculate several representative vertices, and then charts are grown around these representative points at the same time. This method is called surface spectral clustering. The specific algorithm process is as follows:

[0190] a) Sort the eigenvalues ​​and corresponding eigenvectors from spectral analysis from large to small, i.e., λ 1 ≥λ 2 ≥...≥λ N .

[0191] b) Get λ n / λ n+1 Maximize the first n eigenvalues ​​and eigenvectors (n ≤ 10).

[0192] c) For each vertex i in the 3D mesh, calculate its n-dimensional embedding coordinates

[0193] 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.

[0194] 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).

[0195] 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).

[0196] Boundary Optimization:

[0197] After splitting the charts, a 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 grap cutting problem. For simplicity, the binary case of splitting the surface in two is discussed below. When subdividing into more than two charts, each pair of adjacent charts is considered in turn.

[0198] 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, the definition of "capacity" between two adjacent triangles fi and fj in the graph cut algorithm is modified as shown in equation (13):

[0199] c(f i ,f j )=αc ang (f i ,f j )+(1-α)c distort (f i ,f j )#(13)

[0200] 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):

[0201]

[0202] Among them, d ang (f I ,f j )=1-cosα ij , α ij is the angle between the normals of triangles fi and fj, avg(d ang ) is the average angular distance between adjacent triangles.

[0203] The second term in equation (13) measures the embedding distortion, and the calculation process is shown in equations (15) and (16):

[0204]

[0205] ddistort (f i ,f j )=|GDD A (f i )-GDD B (f i )|+|GDD A (f j )-GDD B (f j )|#(16)

[0206] Among them, GDD A (f i ) and GDD B (f i ) 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.

[0207] The weight parameter α in formula (13) is a trade-off between the above two objectives.

[0208] 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.

[0209] Finally, the charts generated by the above process are packed into the two-dimensional texture domain using the chart packing algorithm used in the Multi-chart geometry images (MCGIM) algorithm. Finally, a three-dimensional mesh with regenerated UV coordinates can be obtained.

[0210] ②Orthogonal projection algorithm

[0211] OrthoAtlas is a projection-based mesh parameterization method that generates texture coordinates for a mesh through orthogonal projection. Its main process is as follows Figure 4c As shown, the following process is included:

[0212] a) Calculate mesh properties, including the neighboring faces of each face and the area and normal vector of each face;

[0213] b) Determine the projection plane of each face based on the normal vector;

[0214] c) Start clustering all faces according to the projection plane to form a connected region, and first select the starting face of the cluster;

[0215] d) Iterating from the starting face, determining whether the adjacent faces of the face added to the connected region can be added to the connected region;

[0216] e) After each connected region is iterated, multiple connected regions are obtained;

[0217] f) determining whether to merge adjacent connected regions based on the error metric;

[0218] g) Detect whether there are overlapping areas during projection, remove the overlapping surfaces and regenerate the connected areas;

[0219] h) Arrange all the projected regions into a two-dimensional image.

[0220] The following is a description of the main process above:

[0221] Compute mesh properties:

[0222] This stage first calculates some properties of the mesh, including the adjacency list of the triangles and the normal vectors and areas of the triangles; triangle adjacency can be defined as sharing a single vertex or sharing an edge; the normal vector and area of ​​a triangle can be derived from the projected triangle (later used to calculate the distortion after projection).

[0223] Clustering:

[0224] The triangles are then clustered, and the area formed by the same type of triangles is called a connected area. There are two methods for selecting the starting point of the clustering algorithm:

[0225] (1) The projection direction is obtained based on the statistical results of the normal vectors of all faces. The triangular face whose normal vector is closest to the projection direction can be selected as the starting point of the clustering algorithm and it has not yet been added to the connected area;

[0226] (2) Select the first available face as the starting point of the clustering algorithm (i.e., the face has not yet been added to the connected region), and determine whether to add the adjacent face to the connected region according to the criteria; the criteria include:

[0227] a. Has the same projection direction as the connected area;

[0228] b. The angle between the normal vector of the last face added to the connected area is less than the threshold;

[0229] c. The area is less than a threshold of the total area;

[0230] d. The number of triangles is less than the threshold.

[0231] merge:

[0232] After clustering is completed, there may be many small area partitions that need to be merged. When merging, a cost function is needed to determine whether two partitions can be merged. The function is defined by the perimeter and stretching degree of the connected area. The detailed steps are as follows:

[0233] First, the connected regions are sorted in a specific order. The sorting criteria can be based on the number of triangles contained and the proximity between the average normal vector of the connected region and the corresponding projection direction. The cost function of each connected region is COST (M i )=L 2 (M i )+λPERIMETER(M i ), where M i represents the i-th connected region, L 2 Represents the parameterized distortion of the current region, λ is a coefficient ranging from 0 to 1, PERIMETER represents the perimeter of the boundary of the current connected region, and COST represents the cost of the current connected region.

[0234] Then, take the first connected region after sorting each time, obtain the connected regions adjacent to the connected region to form a candidate list, and then for each candidate region, first calculate the cost function after the two regions are merged: COST(M i +M j )=L 2 (M i +M j )+λPERIMETER(M i +M j ), where M j represents the jth connected area. The meanings of other parameters refer to the above description and will not be repeated here. Further, for all (COST(M i +M j ) <COST(M i )+COST(M j )), select the area that minimizes the cost function, merge the taken out area into this area and update the sorting of connected areas.

[0235] The stretching function in the cost function measures the degree of distortion after projection, which is obtained by calculating the area of ​​the triangle after projection in each direction.

[0236] Detect overlapping areas:

[0237] Finally, it is necessary to check whether there are overlapping vertices or faces in each connected area, and split the overlapping area from the connected area to form a new connected area. Detecting overlapping areas means determining whether the currently projected surface overlaps with the projected area. If an overlap occurs, the current surface is removed from the connected area, and the surface and other removed surfaces form a new connected area. Finally, in the removed connected area, check whether there is a disconnected area, and split the disconnected area into multiple connected areas.

[0238] (3) Subdivision deformation

[0239] Subdivision deformation is used to input a 3D mesh to generate displacements. Exemplarily, 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 scheme is then applied to the simplified polyline to generate the "subdivided" curve. The subdivided polyline is then deformed to obtain a better approximation of the original curve. That is, a displacement vector is calculated for each vertex of the subdivided mesh so that the shape of the displaced curve is as close as possible to the shape of the original curve. These displacement vectors are the displacement information output by this module.

[0240] This step takes the parameterized mesh as input. This step first subdivides the input mesh. The subdivision scheme can be arbitrarily selected. One possible scheme is the midpoint subdivision scheme, which subdivides each triangle into four subtriangles in each subdivision iteration, such as Figure 4d As shown in Figure 2, a new vertex is introduced in the middle of each edge, and the subdivision of geometric information and attribute information is performed independently because the connection relationship between geometric information and attribute information is usually different.

[0241] This scheme calculates the newly introduced edge (v 1 ,v 2 ) midpoint v 12 The position Pos(v 12 ) is shown in formula (17):

[0242]

[0243] Among them, Pos(v 1 ) and Pos(v 2 ) are vertices v 1 and v 2 The same calculation steps are used for texture coordinates.

[0244] 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 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 can obtain the base mesh and the corresponding subdivided deformed mesh.

[0245] (4) Basic mesh compression

[0246] There are three different compression modes for basic grid compression, namely intra-frame mode, inter-frame mode and skip mode, such as Figure 4e As shown. In intra-frame mode, the input of the basic mesh compression module is a three-dimensional mesh, which contains geometric coordinates, connection relationships, and attribute information associated with vertices, and is encoded through an existing static mesh encoder. In inter-frame mode, the basic mesh first determines whether to use skip mode through rate-distortion trade-off. If skip mode is used, the reference mesh in the mesh buffer is directly selected as the basic mesh of the current frame. If skip mode is not used, the motion vector of the vertex is calculated based on the reference frame in the mesh buffer and the current frame, and the corresponding motion vector is encoded. After encoding, the encoded mesh needs to be reconstructed so that it can be provided to subsequent modules for processing.

[0247] (5) Displacement processing and encoding

[0248] The basic mesh compression module compresses and reconstructs the basic mesh, and calculates the corresponding vertex displacement using the reconstructed basic mesh and the subdivided deformed mesh obtained in the subdivided deformation step.

[0249] There are many ways to encode displacement: one way is to consider converting the coordinate system of the displacement, that is, converting the coordinate system of the displacement of each vertex into a coordinate system constructed by the normal vector of the vertex corresponding to the displacement and the two components tangent to the normal vector. Then transform the displacement, such as wavelet transform. Quantize the transformed coefficients and arrange them in the image in the order of scanning, and apply video encoding to the image. In addition, the generated or processed displacement can also be directly encoded using entropy coding.

[0250] ①Video encoding method

[0251] Coordinate system conversion:

[0252] The generated displacement is in the same global coordinate system as the input mesh. A possible optimization approach is to transform it into a local coordinate system, where the local coordinate system of each vertex is defined by the vertex normal vector on the subdivided mesh. The advantage of this approach is that the normal component of the displacement 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.

[0253] Wavelet Transform:

[0254] For the quantized displacement, a wavelet transform can be applied to it. A possible wavelet transform such as a linear wavelet transform is shown below:

[0255] The prediction process is defined as shown in formula (18):

[0256]

[0257] Among them, v is the edge (v 1 ,v 2 ) on the newly inserted midpoint, Signal(v), Signalla(v 1 ) and Signal(v 2 ) are vertices v,v 1 and v 2 The corresponding displacement.

[0258] The update process is defined as shown in formula (19):

[0259]

[0260] Where v* is the set of all adjacent vertices of vertex v.

[0261] Wavelet coefficient quantization:

[0262] The transformed displacement vector, i.e., the wavelet coefficient, can be quantized. There are many ways to quantize it. One method is shown in equations (20) and (21):

[0263] disp[v].d[k]=floor(disp[v].d[k]*scale[k])#(20)

[0264]

[0265] Where disp[v] represents the wavelet coefficient of the displacement 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.

[0266] At the same time, according to the characteristics of wavelet transform, different quantization parameters can be used for the newly generated vertices and the original vertices. That is, for the subdivided vertices, the quantization parameter update is shown in formula (22):

[0267] scale[k]=scale[k]*lodScale[k]#(22)

[0268] Among them, lodScale[k] represents the coefficient of the quantization parameter of the current subdivision level.

[0269] Wavelet coefficients arrangement:

[0270] For the wavelet coefficients generated after wavelet transform, arrange them on a two-dimensional image as follows:

[0271] (1) Traverse the wavelet coefficients in order from low frequency to high frequency;

[0272] (2) For each coefficient, determine the index of the NxM pixel block where it is located (e.g., N=M=16), where it should be stored in the raster scan order of the block;

[0273] (3) Calculate the position of the corresponding NxM pixel block on the image according to the Morton order.

[0274] The arrangement is not limited here, and other arrangement schemes may also be used, such as zigzag order, raster order, etc. The encoder may explicitly specify the corresponding arrangement scheme in the bitstream.

[0275] Video Encoding:

[0276] After arranging the wavelet coefficients on a two-dimensional image, they can be directly encoded using a video encoder. The proposed scheme is independent of which video encoding technology is used, and the type of video encoder can be explicitly specified in the bitstream. At the same time, if quantization is applied before video encoding, the video encoding here can use a lossless method, and there is no need to reconstruct the displacement at the encoding end.

[0277] ② Entropy coding method

[0278] The generated displacement can be directly compressed using an existing entropy coding algorithm, such as CABAC. Entropy coding can also be directly applied to the coefficients after wavelet transformation. Corresponding quantization can be performed before entropy coding.

[0279] (6) Reconstruct the deformed mesh texture coordinates and adjust

[0280] Since the displacement encoding stage quantization and other processes cause a certain loss of displacement, it is necessary to reconstruct the displacement at the encoding end to keep it consistent with the decoding end. After obtaining the reconstructed displacement, the reconstructed basic grid is subdivided and the reconstructed subdivided deformed grid is obtained according to the corresponding displacement.

[0281] For the reconstructed subdivision deformed mesh, its texture coordinates are obtained by midpoint interpolation during the subdivision deformation process. The corresponding texture coordinates are adjusted according to the geometric positions of the subdivision deformed mesh vertices, which can improve the quality of the subdivision deformed mesh parameterization.

[0282] There are many ways to adjust texture coordinates. The reconstructed subdivision deformed mesh can be re-parameterized to obtain adjusted texture coordinates. In addition, the corresponding displacement of texture coordinates can be calculated by displacement according to the parameterization method. Here, orthogonal projection parameterization is taken as an example to illustrate the process of adjusting texture coordinates.

[0283] For the basic mesh generated by orthogonal projection parameterization, each face will correspond to a projection plane. After subdivision deformation, the face generated by subdivision maintains the same projection plane as the original face. This process traverses all faces of the subdivided deformed mesh. For each traversed face, the vertices of the face are projected according to the projection plane corresponding to the face to obtain the coordinates of the vertices on the face after projection. The projection method is to determine a set of orthogonal bases on the current projection plane. Taking the projection plane corresponding to the normal vector (0,0,1) as an example, a set of orthogonal bases on the projection plane is Then the coordinates of a point v=(x,y,z) in three-dimensional space projected onto the plane are

[0284] After projecting all faces, we get the re-parameterized subdivision deformed mesh, which is passed as input to the texture map conversion module.

[0285] (7) Texture image conversion and encoding

[0286] The texture map encoding module first performs texture map conversion based on the input original mesh, the input original texture map and the subdivided and deformed mesh.

[0287] The steps for texture conversion are as follows:

[0288] The steps for texture conversion are as follows:

[0289] Calculate the texture coordinates of each pixel on the texture map to be generated, such as the texture coordinates corresponding to pixel A(i,j) is P(u,v);

[0290] Determine whether the texture coordinate is within a certain triangle face after the parameterization of the subdivided deformed mesh;

[0291] 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;

[0292] If the texture coordinate belongs to a triangle, then:

[0293] Mark the pixel as filled;

[0294] Calculate the center of gravity coordinates of the texture in the current triangle surface according to the texture coordinates;

[0295] 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 deformed grid corresponding to the texture coordinates;

[0296] Find the point closest to the three-dimensional coordinate on the input original grid;

[0297] The barycentric coordinates of the three-dimensional coordinates are calculated according to the triangular face on which they are located and mapped to two dimensions to calculate their texture coordinates;

[0298] The texture coordinates are used to sample the input original texture map to obtain the value A^'(i^',j^') of the corresponding pixel position;

[0299] Assign this value to the corresponding pixel A(i,j) on the texture map to be generated.

[0300] For empty pixels, existing filling algorithms (such as Push-Pull algorithm) may be used to fill these empty pixels.

[0301] (8) Auxiliary information

[0302] During the encoding process, there are some alternative schemes in each module, such as the type of grid encoder, the type of video encoder, the grid subdivision scheme, the displacement transformation scheme, etc. The proposed framework allows the use of different schemes. Therefore, the selected scheme needs to be passed to the decoding end to guide the correct decoding. The auxiliary information includes an optional reference frame list, which identifies the index list of reference frames used by the current frame; the subdivision flag indicates whether the current frame base grid needs to be subdivided and deformed, that is, whether it contains displacement information. The auxiliary information can also include the type of static grid encoder, the type of video encoder, the grid subdivision scheme, the displacement transformation scheme, the coefficient arrangement scheme, and the color conversion scheme, etc.

[0303] Please refer to Figure 5a The three-dimensional grid decoding method at the decoding end specifically includes the following process:

[0304] (1) Auxiliary Information Decoding

[0305] The decoding end first determines the decoding scheme based on the auxiliary information, which mainly includes the intra-frame coding flag, which indicates whether the current frame needs to be constructed according to the reference frame grid; the reference frame list, which indicates the index of the reference frame required for the current frame, and the reference frame list is used for the subsequent basic grid reconstruction step; the subdivision flag, which indicates whether the reconstructed basic grid needs to be subjected to subsequent subdivision deformation operations; the static grid encoder type, which instructs the decoding end to use the corresponding static grid decoder; the video encoder type, which instructs the decoding end to use the corresponding video decoder; the subdivision scheme, that is, the scheme for subdividing the basic grid in the reconstructed deformed grid, and the subdivision scheme of the codec end should be consistent; there are also optional displacement transformation schemes, coefficient arrangement schemes, etc. Note that the auxiliary information described here includes independently transmitted auxiliary information and header information that may be included in other code stream parts.

[0306] (2) Basic grid decoding

[0307] The basic grid decoding framework is as follows Figure 5b As shown, according to the grid coding format of the input code stream, the corresponding decoding is performed. If it is an intra-frame mode, the corresponding static grid decoder indicated by the auxiliary information is used for decoding; if it is an inter-frame mode, the corresponding motion vector is decoded, and the corresponding basic grid is reconstructed according to the reference frame in the grid buffer; if it is a skip mode, the corresponding reference frame in the grid buffer is directly used as the basic grid of the current frame.

[0308] (3) Displacement decoding and reconstruction

[0309] The displacement code stream is decoded by the displacement decoder. If the encoder compresses the displacement by video encoding, the decoder decodes it by the corresponding video decoder and restores it from the two-dimensional image in the corresponding order according to the arrangement scheme. Then perform inverse transformation, inverse quantization and other operations to restore the displacement consistent with the encoder. If entropy encoding is used, it can be directly entropy decoded.

[0310] (4) Deformed Mesh Reconstruction

[0311] After the basic mesh and displacement decoding and reconstruction are completed, the subdivided deformed mesh is reconstructed based on the two parts. If the auxiliary information indicates that the displacement encoding process uses the reference frame as a reference, that is, the displacement of the vertices in the area matching the reference frame in the decoded displacement is the residual of the displacement of the current frame vertex relative to the reference frame vertex, then firstly restore the displacement of the vertices in the current frame matching area through the vertices and residuals of the subdivided deformed mesh reconstructed by the reference frame, and then perform subsequent reconstruction steps. That is, the reconstructed basic mesh is subdivided, which is consistent with the subdivision method of the encoding end. The corresponding displacement is added to each vertex of the subdivided mesh, as shown in formula (23):

[0312] deformedmesh[i].v[k]=subdivmesh[i].v[k]+displacement[k]#(23)

[0313] Among them, subdivmesh[i].v[k] is the geometric coordinates of the kth vertex after the base mesh is subdivided in the current frame (index is i), displacement[k] is the displacement corresponding to the kth vertex, and deformedmesh[i].v[k] is the geometric coordinates of the kth vertex after subdivision and deformation in the current frame.

[0314] (5) Texture coordinate adjustment

[0315] The texture coordinate adjustment process at the decoding end is the same as that at the encoding end. The decoding end adjusts the texture coordinates in the same way as the decoding end. Taking orthogonal projection parameterization as an example, the decoding end projects the vertices on all faces according to the projection plane of each face of the reconstructed subdivided deformed mesh to obtain the corresponding parameterized coordinates. After all faces are projected, the final reconstructed subdivided deformed mesh can be obtained.

[0316] (6) Texture map decoding

[0317] The texture decoder is responsible for decoding the texture code stream, and the texture is decoded by the video decoder. The texture is converted into an image format consistent with the input texture of the encoder, and the texture is finally decoded and output.

[0318] The 3D mesh coding method provided in the embodiment of the present application can be executed by a 3D mesh coding device. In the embodiment of the present application, a 3D mesh coding device executing the 3D mesh coding method is used as an example to illustrate the 3D mesh coding device provided in the embodiment of the present application.

[0319] Please refer to Figure 6 , Figure 6 is a structural diagram of a three-dimensional grid encoding device provided in an embodiment of the present application, such as Figure 6 As shown, the three-dimensional grid encoding device 600 includes:

[0320] A first acquisition module 601 is used to acquire a reconstructed subdivided deformed grid obtained after performing a first processing on the 3D grid to be encoded;

[0321] A first adjustment module 602 is used to adjust the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein a 2D to 3D transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than a 2D to 3D transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted;

[0322] A conversion module 603 is used to perform texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates to obtain a converted texture map;

[0323] The encoding module 604 is used to encode the converted texture image to obtain a texture image bit stream.

[0324] Optionally, the first adjustment module 602 is further configured to:

[0325] The texture coordinates of the reconstructed subdivided deformed mesh are adjusted according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

[0326] Optionally, the first adjustment module 602 is further configured to:

[0327] The encoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh to adjust the texture coordinates of the reconstructed subdivided deformed mesh.

[0328] Optionally, the first adjustment module 602 is further used for any of the following:

[0329] Performing orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh;

[0330] The reconstructed subdivided deformed mesh is subjected to isochart parameterization processing.

[0331] Optionally, the first adjustment module 602 is further configured to:

[0332] Obtaining a projection plane corresponding to each face in the reconstructed subdivided deformed mesh;

[0333] Obtain an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed mesh;

[0334] According to the orthogonal basis corresponding to the projection plane, obtaining a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, wherein the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point;

[0335] The first coordinates corresponding to all points in the reconstructed subdivided deformed mesh are arranged in the same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed mesh.

[0336] In an embodiment of the present application, by adjusting the texture coordinates of the reconstructed subdivision deformed mesh, and then performing texture map conversion on the reconstructed subdivision deformed mesh after the adjusted texture coordinates, compared with directly performing texture map conversion on the reconstructed subdivision deformed mesh in the related art, the present application can effectively reduce the parametric distortion caused by the change of geometric position during the subdivision deformation process, and can effectively improve the quality of the reconstructed subdivision deformed mesh.

[0337] The three-dimensional grid encoding device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the terminal can include but is not limited to the types of terminals listed above, and other devices can be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of the present application.

[0338] The three-dimensional grid coding device provided in the embodiment of the present application can implement each process implemented by the above-mentioned coding end method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0339] The 3D mesh decoding method provided in the embodiment of the present application can be executed by a 3D mesh decoding device. In the embodiment of the present application, a 3D mesh decoding device executing the 3D mesh decoding method is used as an example to illustrate the 3D mesh decoding device provided in the embodiment of the present application.

[0340] Please refer to Figure 7 , Figure 7 is a structural diagram of a three-dimensional grid decoding device provided in an embodiment of the present application, such as Figure 7 As shown, the three-dimensional grid decoding device 700 includes:

[0341] The second acquisition module 701 is used to acquire the basic grid code stream and the displacement video code stream;

[0342] A first decoding module 702 is used to perform basic grid decoding and subdividing the basic grid code stream to obtain a subdivided basic grid;

[0343] The second decoding module 703 is used to perform displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid;

[0344] A reconstruction module 704, configured to obtain a reconstructed subdivided deformed mesh based on the subdivided basic mesh and the reconstructed deformed mesh;

[0345] The second adjustment module 705 is used to adjust the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted.

[0346] Optionally, the second adjustment module 705 is further configured to:

[0347] The texture coordinates of the reconstructed subdivided deformed mesh are adjusted according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

[0348] Optionally, the second adjustment module 705 is further configured to:

[0349] Mesh parameterization is performed on the reconstructed subdivision deformed mesh to adjust texture coordinates of the reconstructed subdivision deformed mesh.

[0350] Optionally, the second adjustment module 705 is further used for any of the following:

[0351] Performing orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh;

[0352] The reconstructed subdivided deformed mesh is subjected to isochart parameterization processing.

[0353] Optionally, the second adjustment module 705 is further configured to:

[0354] Obtaining a projection plane corresponding to each face in the reconstructed subdivided deformed mesh;

[0355] Obtain an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed mesh;

[0356] According to the orthogonal basis corresponding to the projection plane, obtaining a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, wherein the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point;

[0357] The first coordinates corresponding to all points in the reconstructed subdivided deformed mesh are arranged in the same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed mesh.

[0358] The device provided in the embodiment of the present application needs to adjust the texture coordinates of the reconstructed subdivision deformed mesh before application, which can effectively reduce the parametric distortion caused by the change of the geometric position of the mesh vertices during the subdivision deformation process, thereby improving the quality of the reconstructed mesh.

[0359] The three-dimensional grid decoding device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the terminal can include but is not limited to the types of terminals listed above, and other devices can be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of the present application.

[0360] The three-dimensional grid decoding device provided in the embodiment of the present application can implement each process implemented by the above-mentioned decoding end method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.

[0361] like Figure 8 As shown, the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores a program or instruction that can be run on the processor 801. For example, when the electronic device 800 is an encoding end, the program or instruction is executed by the processor 801 to implement the above Figure 2 When the electronic device 800 is a decoding end, the program or instruction is executed by the processor 801 to implement the above Figure 3 The various steps of the method embodiment can achieve the same technical effect, and will not be described again here to avoid repetition.

[0362] The embodiment of the present application also provides an electronic device, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 2 or Figure 3 The steps in the method embodiment shown, the various implementation processes and implementation methods of the above method embodiment can be applied to the electronic device embodiment, and can achieve the same technical effect. Specifically, Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0363] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909 and at least some of the components of a processor 910.

[0364] Those skilled in the art will appreciate that the electronic device 900 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 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 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.

[0365] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 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 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0366] In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 901 can transmit the data to the processor 910 for processing; in addition, the RF unit 901 can send uplink data to the network side device. Generally, the RF unit 901 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

[0367] The memory 909 can be used to store software programs or instructions and various data. The memory 909 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 909 may include a volatile memory or a non-volatile memory 90. 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 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0368] The processor 910 may include one or more processing units; optionally, the processor 910 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 910.

[0369] Wherein, when the electronic device 900 is a coding end, the processor 910 is configured to:

[0370] Acquire a reconstructed subdivided deformed grid obtained after performing a first processing on the three-dimensional grid to be encoded;

[0371] Adjusting the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted;

[0372] Performing texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates to obtain a converted texture map;

[0373] The converted texture map is encoded to obtain a texture map bit stream.

[0374] Optionally, the electronic device 900 can implement all the technical processes in the above-mentioned encoding end method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0375] Wherein, when the electronic device 900 is a decoding end, the processor 910 is configured to:

[0376] Get the basic grid code stream and displacement video code stream;

[0377] Performing basic grid decoding and subdividing the basic grid code stream to obtain a subdivided basic grid;

[0378] Performing displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid;

[0379] Based on the subdivided basic mesh and the reconstructed deformed mesh, a reconstructed subdivided deformed mesh is obtained;

[0380] The texture coordinates of the reconstructed subdivision deformed mesh are adjusted to obtain a reconstructed subdivision deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh before the texture coordinates are adjusted.

[0381] Optionally, the electronic device 900 can implement all the technical processes in the above-mentioned decoding end method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0382] 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 end or decoding end method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0383] The processor is a 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. In some examples, the readable storage medium may be a non-transient readable storage medium.

[0384] 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 or decoding method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0385] 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.

[0386] The embodiments of the present application further provide a computer program / program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned encoding or decoding method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0387] It should be noted that, in this article, the terms "comprise", "include" or any other variant 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 pointed out 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.

[0388] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, it can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable an electronic device or a network side device to execute the method described in each embodiment of the present application.

[0389] 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 of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.

Claims

1. A three-dimensional grid coding method, characterized in that: include: The encoding end obtains a reconstructed subdivided deformed mesh obtained after performing a first processing on the three-dimensional mesh to be encoded; The encoder adjusts the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted; The encoder performs texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates to obtain a converted texture map; The encoding end encodes the converted texture image to obtain a texture image bit stream.

2. The method according to claim 1, characterized in that The encoder adjusts the texture coordinates of the reconstructed subdivided deformed mesh, including: The encoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

3. The method according to claim 1, characterized in that The encoder adjusts the texture coordinates of the reconstructed subdivided deformed mesh, including: The encoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh to adjust the texture coordinates of the reconstructed subdivided deformed mesh.

4. The method according to claim 3, characterized in that: The encoder performs mesh parameterization processing on the reconstructed subdivided deformed mesh, including any one of the following: The encoding end performs orthogonal projection parameterization processing on the reconstructed subdivided deformed grid; The encoding end performs isochart parameterization processing on the reconstructed subdivided deformed grid.

5. The method according to claim 4, characterized in that The encoder performs orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh, including: The encoding end obtains a projection plane corresponding to each face in the reconstructed subdivided deformed mesh; The encoding end obtains an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed grid; The encoder end obtains, according to an orthogonal basis corresponding to the projection plane, a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, where the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point; The encoding end arranges the first coordinates corresponding to all points in the reconstructed subdivided deformed grid into a same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed grid.

6. A three-dimensional grid decoding method, characterized in that: include: The decoding end obtains the basic grid code stream and the displacement video code stream; The decoding end performs basic grid decoding and subdivision on the basic grid code stream to obtain a subdivided basic grid; The decoding end performs displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid; The decoding end obtains a reconstructed subdivided deformed grid based on the subdivided basic grid and the reconstructed deformed grid; The decoding end adjusts the texture coordinates of the reconstructed subdivision deformed mesh to obtain a reconstructed subdivision deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh before the texture coordinates are adjusted.

7. The method according to claim 6, characterized in that The decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh, including: The decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

8. The method according to claim 6, characterized in that The decoding end adjusts the texture coordinates of the reconstructed subdivided deformed mesh, including: The decoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh to adjust the texture coordinates of the reconstructed subdivided deformed mesh.

9. The method according to claim 8, characterized in that The decoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh, including any one of the following: The decoding end performs orthogonal projection parameterization processing on the reconstructed subdivided deformed grid; The decoding end performs isochart parameterization processing on the reconstructed subdivided deformed grid.

10. The method according to claim 9, characterized in that The decoding end performs orthogonal projection parameterization processing on the reconstructed subdivided deformed grid, including: The decoding end obtains a projection plane corresponding to each face in the reconstructed subdivided deformed mesh; The decoding end obtains an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed grid; The decoding end obtains, according to the orthogonal basis corresponding to the projection plane, a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, wherein the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point; The decoding end arranges the first coordinates corresponding to all points in the reconstructed subdivided deformed grid into the same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed grid.

11. A three-dimensional grid encoding device, characterized in that: include: A first acquisition module, used to acquire a reconstructed subdivided deformed grid obtained after performing a first processing on the coded three-dimensional grid; A first adjustment module is used to adjust the texture coordinates of the reconstructed subdivided deformed mesh to obtain a reconstructed subdivided deformed mesh after the texture coordinates are adjusted, wherein a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh after the texture coordinates are adjusted is smaller than a two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivided deformed mesh before the texture coordinates are adjusted; A conversion module, used for performing texture map conversion on the reconstructed subdivided deformed mesh after adjusting the texture coordinates, to obtain a converted texture map; The encoding module is used to encode the converted texture image to obtain a texture image code stream.

12. The device according to claim 11, characterized in that The first adjustment module is also used for: The texture coordinates of the reconstructed subdivided deformed mesh are adjusted according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

13. The device according to claim 12, characterized in that The first adjustment module is also used for: The encoding end performs mesh parameterization processing on the reconstructed subdivided deformed mesh to adjust the texture coordinates of the reconstructed subdivided deformed mesh.

14. The device according to claim 13, characterized in that The first adjustment module is also used for any of the following: Performing orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh; The reconstructed subdivided deformed mesh is subjected to isochart parameterization processing.

15. The device according to claim 14, characterized in that The first adjustment module is also used for: Obtaining a projection plane corresponding to each face in the reconstructed subdivided deformed mesh; Obtain an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed mesh; According to the orthogonal basis corresponding to the projection plane, obtaining a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, wherein the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point; The first coordinates corresponding to all points in the reconstructed subdivided deformed mesh are arranged in the same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed mesh.

16. A three-dimensional grid decoding device, characterized in that: include: The second acquisition module is used to acquire the basic grid code stream and the displacement video code stream; A first decoding module, configured to perform basic grid decoding and subdividing the basic grid code stream to obtain a subdivided basic grid; A second decoding module is used to perform displacement decoding and displacement reconstruction on the displacement video code stream to obtain a reconstructed deformed grid; A reconstruction module, used for obtaining a reconstructed subdivided deformed mesh based on the subdivided basic mesh and the reconstructed deformed mesh; The second adjustment module is used to adjust the texture coordinates of the reconstructed subdivision deformed mesh to obtain a reconstructed subdivision deformed mesh after the texture coordinates are adjusted, and the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh after the texture coordinates are adjusted is smaller than the two-dimensional to three-dimensional transformation error corresponding to the reconstructed subdivision deformed mesh before the texture coordinates are adjusted.

17. The device according to claim 16, characterized in that The second adjustment module is also used for: The texture coordinates of the reconstructed subdivided deformed mesh are adjusted according to the geometric positions and connection relationships of the vertices of the reconstructed subdivided deformed mesh.

18. The device according to claim 16, characterized in that The second adjustment module is also used for: Mesh parameterization is performed on the reconstructed subdivision deformed mesh to adjust texture coordinates of the reconstructed subdivision deformed mesh.

19. The device according to claim 18, characterized in that The second adjustment module is also used for any of the following: Performing orthogonal projection parameterization processing on the reconstructed subdivided deformed mesh; The reconstructed subdivided deformed mesh is subjected to isochart parameterization processing.

20. The device according to claim 19, characterized in that The second adjustment module is also used for: Obtaining a projection plane corresponding to each face in the reconstructed subdivided deformed mesh; Obtain an orthogonal basis corresponding to each projection plane of the reconstructed subdivided deformed mesh; According to the orthogonal basis corresponding to the projection plane, obtaining a first coordinate of a target point in the reconstructed subdivided deformed mesh on a corresponding target projection plane, wherein the target projection plane is one of the projection planes corresponding to the reconstructed subdivided deformed mesh, and the reconstructed subdivided deformed mesh includes the target point; The first coordinates corresponding to all points in the reconstructed subdivided deformed mesh are arranged in the same two-dimensional image to obtain the adjusted texture coordinates of the reconstructed subdivided deformed mesh.

21. An electronic device, characterized in that: The method comprises 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 according to any one of claims 1 to 10 are implemented.

22. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

23. A chip, characterized in that: The method comprises 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 an instruction to implement the method according to any one of claims 1 to 10.