Fixed point implementation of grid codec
Through fixed-point implementation, the problem of high computational overhead in 3D mesh encoding and decoding is solved. Fixed-point operations and square root reciprocal functions are used to generate normalized normal vectors and achieve efficient mesh encoding and decoding, which is suitable for complex models and dynamics. grid, which reduces drift artifacts and supports real-time applications.
Patent Information
- Application Number
- CN202480001210.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-02-20
- Filing Date
- 2024-02-21
- Publication Date
- 2024-10-22
AI Technical Summary
Existing 3D mesh encoding and decoding technology has high computational overhead when processing complex models and is difficult to effectively reduce, especially in real-time applications, and existing standards cannot effectively handle the time-varying attribute graphs and connections of dynamic meshes. sexual information.
Using a fixed-point implementation method, the processor performs a series of operations, including obtaining the vertices associated with the mesh, calculating the normal vector, determining the normalized normal vector, generating midpoints, subdividing and decoding, avoiding the use of floating point operations , using the reciprocal square root function and right shift operation to achieve efficient encoding and decoding of the grid.
It reduces computational overhead, improves the efficiency of grid encoding and decoding, reduces drift artifacts, is suitable for dynamic and static grids, supports real-time communication and other applications, and achieves lossy and lossless compression.
Smart Images

Figure CN118830004A_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Application No. 63 / 447,303 filed with the U.S. Patent and Trademark Office on February 21, 2023 and U.S. Application No. 18 / 582,090 filed with the U.S. Patent and Trademark Office on February 20, 2024, the disclosures of which are incorporated herein in their entirety. Technical Field
[0002] Embodiments of the present disclosure are directed to video encoding and decoding. Specifically, embodiments of the present disclosure relate to encoding and decoding three-dimensional (3D) meshes, including fixed-point implementations for mesh encoding and decoding. Background Art
[0003] Advances in 3D capture, modeling, and rendering have facilitated the ubiquity of 3D content across multiple platforms and devices. It is possible to capture a baby's first steps in one landmass and allow grandparents in another landmass to see (and perhaps interact with) and enjoy a fully immersive experience with the child. 3D meshes are widely used to represent this immersive content. However, to achieve this realism, models are becoming increasingly complex, and large amounts of data are associated with the creation and consumption of these models. Therefore, methods and systems that reduce the computational overhead for creating and using such models are needed. Summary of the invention
[0004] According to one or more embodiments, a method for fixed-point implementation of subdivision processing for video decoding may be provided. The method performed by at least one processor may include: obtaining two vertices associated with the encoded mesh from an encoded code stream; determining a first normal vector associated with the first vertex and a second normal vector associated with the second vertex, wherein components of the first normal vector and components of the second normal vector are integers; using an inverse square root function, determining a first normalized normal vector based on the first normal vector, and determining a second normalized normal vector based on the second normal vector, wherein the normalized normal vector is determined using a combination of a fixed-point number having a first predefined number of bits, a right shift operation performed by a second predefined number, and components of the corresponding normal vectors; determining an intermediate normalized normal vector associated with a midpoint, wherein the components of the midpoint are determined based on a combination of components of the first normal vector and components of the second normal vector and a right shift operation performed by a third predefined number, and wherein the intermediate normalized normal vector is determined using a combination of a fixed-point number having a first predefined number of bits, a right shift operation performed by a second predefined number, and components of the midpoint; and decoding the encoded mesh based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector.
[0005] According to one or more embodiments, a device for fixed-point implementation of subdivision processing for video decoding may be provided, the device may include: at least one memory configured to store program code; and at least one processor configured to read the program code and operate according to the instructions of the program code. The program code may include: a first acquisition code configured to enable at least one processor to obtain two vertices associated with an encoded mesh from an encoded bitstream; a second determination code configured to enable at least one processor to determine a first normal vector associated with the first vertex and a second normal vector associated with the second vertex, wherein the components of the first normal vector and the components of the second normal vector are integers; a third determination code configured to enable at least one processor to determine a first normalized normal vector based on the first normal vector and a second normalized normal vector based on the second normal vector using an inverse square root function, wherein the fixed-point number having a first predefined number of bits and a right shift operation performed by a second predefined number are used to determine the first normal vector. and a combination of components of corresponding normal vectors to determine a normalized normal vector; a fourth determination code configured to enable at least one processor to determine an intermediate normalized normal vector associated with the midpoint, wherein the components of the midpoint are determined based on a combination of components of the first normal vector and components of the second normal vector and a right shift operation performed by a third predefined number, and wherein the intermediate normalized normal vector is determined using a fixed-point number having a first predefined number of bits, a right shift operation performed by a second predefined number, and a combination of components of the midpoint; and a decoding code configured to enable at least one processor to decode the encoded grid based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector.
[0006] According to one or more embodiments, a non-transitory computer-readable medium stores instructions, the instructions including one or more instructions, when the one or more instructions are executed by one or more processors, the one or more instructions cause the one or more processors to: obtain two vertices associated with a coded mesh from a coded bitstream; determine a first normal vector associated with the first vertex and a second normal vector associated with the second vertex, wherein the components of the first normal vector and the components of the second normal vector are integers; determine a first normalized normal vector based on the first normal vector and determine a second normalized normal vector based on the second normal vector using an inverse square root function, wherein the first normal vector is determined using an inverse square root function having a first normal vector. Determine a normalized normal vector based on a combination of a fixed-point number with a predefined number of bits, a right shift operation performed by a second predefined number, and components of the corresponding normal vector; determine an intermediate normalized normal vector associated with a midpoint, wherein the components of the midpoint are determined based on a combination of components of the first normal vector and components of the second normal vector and a right shift operation performed by a third predefined number, and wherein the intermediate normalized normal vector is determined using a combination of a fixed-point number with a first predefined number of bits, a right shift operation performed by a second predefined number, and components of the midpoint; and decode the encoded grid based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Further features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0008] Figure 1 is a schematic illustration of a simplified block diagram of a communication system according to an embodiment of the present disclosure.
[0009] Figure 2 is a schematic illustration of a simplified block diagram of a streaming system according to an embodiment of the present disclosure.
[0010] Figure 3 is a schematic illustration of a simplified block diagram of a video encoder and a video decoder according to an embodiment of the present disclosure.
[0011] Figure 4 is a schematic illustration of a simplified block diagram of an exemplary process for V-trellis decoding according to an embodiment of the present disclosure.
[0012] Figure 5A is an exemplary illustration of calculating a normal vector of a vertex according to an embodiment of the present disclosure.
[0013] Figure 5B is an exemplary illustration of the calculation of the intermediate edge subdivision scheme according to an embodiment of the present disclosure.
[0014] Figure 5Cis an exemplary illustration of calculating a normal vector of a midpoint according to an embodiment of the present disclosure.
[0015] Fig. 6A is an exemplary illustration of a displacement vector using a two-dimensional (2D) curve according to an embodiment of the present disclosure.
[0016] Figure 6B is an exemplary illustration of a prediction step and an update step in a wavelet transform function according to an embodiment of the present disclosure.
[0017] Figure 7 is an exemplary process for grid decoding according to an embodiment of the present disclosure.
[0018] Figure 8 is an exemplary diagram of a computer system suitable for implementing an embodiment. DETAILED DESCRIPTION
[0019] The proposed features discussed below may be used alone or in any order. In addition, the embodiments may be implemented by processing circuits (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer readable medium.
[0020] Figure 1 A simplified block diagram of a communication system 100 according to an embodiment of the present disclosure is shown. The communication system 100 may include at least two terminals 102 and 103, which are interconnected via a network 105. For unidirectional data transmission, a first terminal 103 may encode video data at a local location for transmission to another terminal 102 via the network 105. The second terminal 102 may receive the encoded video data of the other terminal from the network 105, decode the encoded data, and display the recovered video data. Unidirectional data transmission may be common in applications such as media services.
[0021] Figure 1 A second pair of terminals 101 and 104 are shown, which are provided to support bidirectional transmission of encoded video, which may occur, for example, during a video conference. For bidirectional data transmission, each terminal 101 and 104 may encode video data collected at a local location for transmission to another terminal via a network 105. Each terminal 101 and 104 may also receive encoded video data transmitted by another terminal, may decode the encoded data, and may display the recovered video data at a local display device.
[0022] exist Figure 1In the embodiment, terminal 101, terminal 102, terminal 103 and terminal 104 can be shown as servers, personal computers and smart phones, but the principles of the present disclosure are not limited thereto. Embodiments of the present disclosure are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network 105 represents any number of networks that transmit encoded video data between terminal 101, terminal 102, terminal 103 and terminal 104, including, for example, wired and / or wireless communication networks. Communication network 105 can exchange data in circuit switching channels and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of this discussion, unless otherwise described below, the architecture and topology of network 105 may be irrelevant to the operation of the present disclosure.
[0023] Figure 2 As an example of application of the disclosed subject matter, the placement of a video encoder and a video decoder in a streaming environment is shown. The disclosed subject matter is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.
[0024] The streaming system may include a capture subsystem 203, which may include a video source 201, such as a digital camera that creates, for example, an uncompressed video sample stream 213. The video sample stream 213 may be emphasized as a high data volume when compared to an encoded video stream, and may be processed by an encoder 202, which is coupled to the video source 201, which may be, for example, a camera as discussed above. The encoder 202 may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video stream 204, which may be emphasized as a lower data volume when compared to the sample stream, may be stored on a streaming server 205 for future use. One or more streaming clients 212 and 207 may access the streaming server 205 to retrieve a copy 208 and a copy 206 of the encoded video stream 204. Client 212 may include a video decoder 211 that decodes an incoming copy 208 of the encoded video stream and creates an output video sample stream 210 that may be presented on a display 209 or other presentation device (not depicted). In some streaming systems, video stream 204, video stream 206, and video stream 208 may be encoded according to certain video encoding / compression standards. Examples of these standards have been noted above and are also described herein.
[0025] According to an exemplary embodiment further described below, the term "mesh" refers to a combination of one or more polygons that describe the surface of a volumetric object. Each polygon is defined by its vertices in 3D space and information about how the vertices are connected (referred to as connectivity information). Optionally, vertex attributes (e.g., color, normal, etc.) may be associated with mesh vertices. Attributes may also be associated with the surface of a mesh by utilizing mapping information that parameterizes the mesh using a 2D attribute map. Such mapping may be described by a set of parameter coordinates associated with the mesh vertices, which are referred to as UV coordinates or texture coordinates. The 2D attribute map is used to store high-resolution attribute information, such as textures, normals, displacements, etc. According to an exemplary embodiment, such information may be used for various purposes, such as texture mapping and shading.
[0026] However, dynamic mesh sequences may require a large amount of data because they may include a large amount of information that changes over time. For example, in contrast to a "static mesh" or "static mesh sequence" (in which the information of the mesh may not change from one frame to another), a "dynamic mesh" or "dynamic mesh sequence" indicates the following motion: some or all of the vertices represented by the mesh change from one frame to another. Therefore, effective compression techniques are required to store and transmit these contents. The mesh compression standards IC, MESHGRID, and FAMC were previously developed by MPEG to handle dynamic meshes with constant connectivity and time-varying geometry attributes and vertex attributes. However, these standards do not take into account attribute graphs and connectivity information that change over time. DCC (digital content creation) tools typically generate such dynamic meshes. In contrast, it is challenging for volume acquisition techniques to generate dynamic meshes with constant connectivity, especially under real-time constraints. Existing standards do not support this type of content. According to exemplary embodiments herein, aspects of a new mesh compression standard are described to directly handle dynamic meshes with time-varying connectivity information and optionally time-varying property graphs, the standard targeting lossy and lossless compression for various applications (e.g., real-time communications, storage, free viewpoint video, AR and VR). Features such as random access and scalable / progressive coding are also considered.
[0027] Mesh geometry information includes vertex connectivity information, 3D coordinates, 2D texture coordinates, etc. Compression of vertex 3D coordinates (also called vertex positions) is very important because, in most cases, it occupies a large portion of the entire geometry-related data.
[0028] Figure 3An exemplary framework 300 for dynamic mesh compression, for example, for a method based on 2D atlas sampling is shown. Each frame of the input mesh 301 can be pre-processed by a series of operations (e.g., tracking, re-meshing, parameterization, voxelization). It should be noted that these operations may be used only for the encoder, which means that these operations may not be part of the decoding process. This possibility can be signaled in the metadata through a flag, such as indicating 0 for encoder only and indicating 1 for other cases. Afterwards, a mesh 302 with a 2D UV atlas can be obtained, where each vertex of the mesh has one or more associated UV coordinates on the 2D atlas. Then, by sampling on the 2D atlas, the mesh can be converted into multiple graphs, including geometry graphs and attribute graphs. These 2D graphs can then be encoded by a video / image codec (e.g., HEVC, VVC, AV1, AVS3, etc.). At the decoder 303 side, the mesh can be reconstructed from the decoded 2D graph. Any post-processing and filtering can also be applied to the reconstructed mesh 304. It should be noted that for the purpose of 3D mesh reconstruction, other metadata can be signaled to the decoder side. It should be noted that the graph boundary information (including UV coordinates and xyz coordinates) of the boundary vertices can be predicted, quantized and entropy encoded in the bitstream. The quantization step size can be configured at the encoder side to trade off between quality and bit rate.
[0029] Figure 4 An exemplary block diagram 400 is shown that may be used to evaluate a dynamic mesh encoding tool during a standardization process.
[0030] The demultiplexer divides the input code stream into three parts, namely, the basic grid code stream, the displacement code stream and the attribute code stream.
[0031] Decode the basic grid code stream
[0032] Depending on the coding mode used in the base mesh bitstream, an intra-frame decoding path or an inter-frame decoding path is selected. In the intra-frame decoding path, the base mesh is decoded by a static mesh decoder. In the inter-frame decoding path, the motion vectors are decoded by a motion decoder. The vertices in the reference mesh stored in the mesh buffer and the decoded motion vectors from the motion decoder are combined to form a reconstructed base mesh. In an embodiment, if the sub-division process is enabled in the bitstream, a midpoint subdivision process may be applied to generate middle points using vertices in the base mesh and previously generated midpoints. The subdivided mesh is Figure 4 After the dequantization process, m'(i) becomes m”(i).
[0033] Decode the bitstream
[0034] To decode the displacement code stream, image unpacking, inverse quantization, and inverse wavelet transform are performed after the video decoder to generate decoded displacements for the vertices in the base mesh and the midpoints generated during the subdivision process. The decoded displacements and m”(i) are combined to form a decoded mesh, which is denoted as M”(i).
[0035] Decode the attribute code stream
[0036] To decode the attribute codestream, color space conversion is applied after the video decoder if necessary.
[0037] In the mesh codec of the related art (such as the MPEG V-mesh test model), floating-point operations are used in various modules. As an example, in the subdivision model in the static mesh decoder, floating-point operations are used in inverse quantization, inverse wavelet transform, and when applying displacement vectors used in the displacement decoding process. Those skilled in the art know that the results of floating-point operations are highly dependent on the order of operations and the underlying hardware platform. If floating-point operations are included in the decoding process, it is generally difficult to generate the same decoded mesh data. In addition, the decoded mesh can be used in the inter-frame decoding path. If the decoded grids on the encoder side and the decoder side are different, then if these grids are used as reference grids for future encoding and / or decoding, drift artifacts can be observed.
[0038] Therefore, it is desirable to use fixed point or integer operations for trellis encoding instead of those floating point operations.Embodiments of the present disclosure relate to methods, systems, and devices for fixed point implementation of a trellis codec.
[0039] In an embodiment, it will be appreciated by those skilled in the art that a V-Mesh decoder is used as an example, and the proposed method can be extended to general mesh coding operations. The proposed method can be used alone or in combination in any order. In addition, each of the method (or embodiment), encoder, and decoder can be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.
[0040] In the present disclosure, multiple methods and systems for vertex position encoding in mesh compression are proposed. Those skilled in the art will appreciate that these methods and systems can be applied alone or in any combination. It should also be noted that the methods can be applied not only to dynamic meshes, but also to static meshes, where the mesh has only one frame or the mesh content does not change over time. In addition, the disclosed methods and systems are not limited to vertex position encoding. The disclosed methods and systems can also be applied, for example, to 2D texture coordinate encoding as a more general multi-prediction based scheme.
[0041] Fixed-point implementation of the subdivision process - basic grid decoding
[0042] Normal vector generation
[0043] Before the actual subdivision process, normal vectors are generated for each vertex in the decoded base mesh. In the MPEG V-Mesh codec, area-weighted normal vectors are used. This process is done in Figure 5A Shown in.
[0044] Point P i The coordinates can be expressed as (x i ,y i , z i ).by Figure 5A Taking the tetrahedron in as an example, the process of calculating the normal vector of vertex P0 can be as follows:
[0045] First, n0, n1, and n2 are calculated as follows, where n0, n1, and n2 are the non-normalized normal vectors of the triangle incident on vertex P0 (i.e., P0P1P2, P0P2P3, P0P3P1): where × is the cross product of two vectors. Define N′0=(x′0, y′0, z′0).
[0046] Second, the non-normalized normal vectors of the triangles incident on vertex P0 are accumulated to obtain the non-normalized normal vector of vertex P0, as shown below: N′0=n0+ n1+n2 (2)
[0047] Then, the normalized vertex normal vector is obtained as follows:
[0048] In the fixed-point implementation of the above algorithm, P i =(x i ,y i , z i ) can be expressed as integers, which are obtained after decoding the grid. Therefore, equations (1) and (2) are naturally completed in integer operations.
[0049] Equation (3) requires the calculation of the reciprocal square root of a positive integer. The Newton-Raphson method can be used to obtain an approximate value for the reciprocal square root of a positive integer x. Let but
[0050] You can define functions The solution to the equation f(y) = 0 will be the reciprocal value of the square root, i.e. Based on the Newton-Raphson method, the following iterative method can be used to obtain a good approximation to the final solution of f(y)=0, as shown below:
[0051] For a given value x and a good starting value y0, the above iteration can converge in a few iterations. In practice, one or two iterations are used. Because the inverse square root of a positive integer is a fraction, a fixed-point number is needed to represent the result. In an embodiment of the present disclosure, a fixed-point number with a predefined number of binary digits (i.e., kInverseSqrtPrecision bits) can be used to represent the fractional / decimal portion of the inverse square root value of a positive integer.
[0052] In the same embodiment or another embodiment of the present disclosure, an implementation of the inverse square root of a positive integer, i.e., the irsqrt(·) function, may be specified, for example, at the end of the present disclosure. In such an implementation, kInverseSqrtPrecision=40. In order to accommodate different precision requirements, a right shift of a predefined number of binary digits (i.e., kNormalShift) may be used to reduce the precision of the square root value, where kNormalShift is a non-negative integer less than kInverseSqrtPrecision.
[0053] Therefore, the normalized normal vector can be calculated as follows Serving size:
[0054] Among them, the Shift(x,bias,kShift) function can be defined as follows:
[0055] In Equation 5a, bias = 1<<(KNormalShift-1) and irsqrtNum may be defined as irsqrtNum = irsqrt(x'0*x'0+y'0*y'0+z'0*z'0).
[0056] In one embodiment, in Equation 5b, the bias may be set to 0 as follows:
[0057] In another embodiment, equation 5c can be further simplified as follows: Shift(x,0,kShift)=x>>kShift (5d)
[0058] therefore, It is represented as kNormalPrecision=kInverseSqrtPrecision-KNormalShift number of bits. For example, if KNormalShift=16, then kNormalPrecision=24.
[0059] Those skilled in the art will appreciate that implementations other than those disclosed herein may also be used. In an embodiment, k3timesR and kRcubed are two exemplary lookup tables. Variations of these implementations may be employed. For example, in addition to kInverseSqrtPrecision=40 bits, the lookup tables k3timesR and kRcubed may have different precisions. In addition, due to different rounding operations when converting fractions to integers, the values of the lookup tables may be different from those shown in the present disclosure.
[0060] Midpoint Generation
[0061] In mesh codecs such as the MPEG V-Mesh codec, a midpoint subdivision scheme is used to subdivide the base mesh to restore the details of the original mesh after the extraction process. In this process, an edge is split into two parts of equal length, such as Figure 5B shown.
[0062] like Figure 5B As shown, the original triangle is P0P1P2. Points P3, P4, and P5 are the midpoints of the edges P0P2, P0P1, and P1P2. In this way, the original triangle is subdivided into 4 smaller triangles, namely P0P4P3, P4P5P3, P4P1P5, and P5P2P3. It should be noted that the midpoint subdivision process can be completed in multiple iterations. For example, after one more subdivision iteration, Figure 5B The triangle in will be turned into 16 smaller triangles. In practice, 1 to 3 iterations are usually used.
[0063] Point P i The coordinates can be expressed as (x i ,y i , z i ). Without loss of generality, the midpoint P3 is used as an example. Its coordinates can be calculated in floating point arithmetic as follows:
[0064] Among them, (x i ,y i , z i ) is represented as a single-precision or double-precision number.
[0065] In the embodiment of the present disclosure, the coordinates of the vertices in the base mesh, i.e. (x i,y i , z i )(i=0, ..., N-1, where N is the number of vertices in the base mesh) are represented as n-bit binary integers obtained after decoding the base mesh. Before the subdivision process, these numbers are left-shifted by a predefined number of non-negative integer bits, such as kCoordShift, to obtain numbers with higher precision, as shown below:
[0066] For example, depending on the desired final accuracy and the number of iterations during the subdivision process, KCoordShift can be set to 4 or 8. If KCoordinateShift is set to 0, no left shift operation is required.
[0067] Use the updated coordinates (X i , Y i , Z i ), the midpoint P3 can be calculated as follows:
[0068] In the same embodiment or another embodiment, for simplicity, the bias 1 is omitted, that is, the midpoint P3 is calculated as follows:
[0069] Those skilled in the art will appreciate that the above midpoint generation process is also applicable to texture coordinate triangles to generate corresponding subdivided texture coordinate triangles. The difference is that texture coordinates have only two components, whereas vertex coordinates have three components.
[0070] Calculate the normal vector of the midpoint
[0071] As shown above, the midpoint can be generated after one or more iterations of the midpoint subdivision process. Interpolation is often used to obtain the normal vector of the midpoint. For example, in Figure 5C In the example, P3 is the midpoint, and its normal vector is calculated as the average of the normal vectors of the two endpoints (i.e., N0 and N2) on the same edge. The calculation process is as follows:
[0072] in, Pair Vector Normalize to get the normalized normal vector
[0073] In a fixed-point implementation according to an embodiment, the calculation is as follows:
[0074] In this way, KNormalPrecision number of bits are used to represent This is the same as other normalized normal vectors. In Equation 11, bias2=1<<(KNormalShift-1), and the function shift(x, bias, kShift) is defined in Equation 5b. In an embodiment, for simplicity, bias2 is set to 0, as shown in Equation 5c or Equation 5d.
[0075] In another embodiment, the bias 1 and the right shift operation may be omitted, as shown below:
[0076] In the same embodiment or another embodiment, only bias 1 is omitted in equation 11.
[0077] After calculating in Equation 11 or Equation 12 In the case of , the normalization process cannot be performed because "division by zero" will occur. Instead, it is possible to set Note that for some applications, (0, 0, 0) may not be a valid normal vector.
[0078] In another embodiment, Can be set to a predefined normal vector, for example, or or Therefore, the normal vector may be valid for all applications and can facilitate the displacement process.
[0079] In the same embodiment or another embodiment, in In the case of N3, N3 can be set to be the same as one of the normal vectors of the two endpoints, that is, N3 = N0 or N3 = N2. Some heuristic rules can be used to make the decision, for example, in the case where the average of the normal vectors of the two endpoints is an all-zero vector, the normal vector of the midpoint is set to the normal vector of the endpoint with the smaller index, that is, N3 = N0. Conversely, the normal vector of the midpoint is set to the normal vector of the endpoint with the larger index, so N3 = N2.
[0080] Fixed-point implementation of displacement encoding
[0081] Fig. 6A An exemplary diagram 600 of the calculations involved in displacement vector generation is shown. In the mesh codec, displacement vectors 640 are calculated for the vertices of a subdivided mesh 630 so that the shape of the displaced mesh closely matches the shape of the original mesh 610 before the mesh decimation and subdivision process generates decimation vectors 620.
[0082] In an embodiment, after the displacement vector is obtained, the displacement vector is transformed using the local coordinate system of the vertex, the three basis vectors of which are the normal vector of the vertex, the tangent vector of the vertex, and the bitangent vector of the vertex. The transformed displacement vector is then transformed using a wavelet transform with lifting and then a quantization process. The quantized wavelet coefficients are then encoded using a video encoder or a specially designed entropy encoder. The inverse operation is performed in the decoder, which will be described below.
[0083] Dequantization of quantized wavelet coefficients
[0084] Vertex P i The decoded and quantized wavelet coefficients can be expressed as in, They are the components in the normal direction, tangent direction and bitangent direction respectively.
[0085] In the codec, the dequantization process can be shown as follows:
[0086] in, are the dequantized wavelet coefficients, qp is the quantization parameter used in the encoder and sent in the bitstream, and bitDepthPosition is the bit depth of the vertex coordinates in the original base mesh. It should be noted that iscale is the inverse scaling factor of the displacement vector corresponding to the vertex at the base mesh (i.e., the 0th subdivision iteration).
[0087] For the displacement vector corresponding to the midpoint generated during the kth subdivision iteration, the inverse scaling factor is as follows:
[0088] According to an embodiment of the present disclosure, the fixed-point implementation of the dequantization process may be as follows:
[0089] First, the lookup table can be created as follows:
[0090] qp=0, 1, 2, 3, 4, 5, where floor(x) is a function that returns the largest integer not greater than x.
[0091] In the same or another embodiment, the lookup table may be slightly modified as follows:
[0092] Note that kDequantShift is a parameter that controls the precision of the lookup table and is therefore the dequantization coefficient. For example, given kDequantShift=10, the lookup table using equation 15 is expressed as LUT[6]=[645, 724, 813, 912, 1024, 1149].
[0093] Second, the dequantization coefficients are calculated as follows:
[0094] Where % is the modulo operation.
[0095] In the same or another embodiment, a bias is used when calculating qpScale, shown as:
[0096] It should be noted that qpShift is the shift factor of the displacement vector in the base mesh. The shift factor of the displacement vector corresponding to the midpoint generated during the k-th subdivision iteration is as follows:
[0097] Inverse wavelet transform with lifting
[0098] In the encoder, it is assumed that K subdivision iterations have been performed. Before any subdivision, the vertices in the base mesh are called vertices in LOD0; after the first subdivision, the midpoints generated in the subdivision are called vertices in LOD1; similarly, the midpoints generated in the kth subdivision are called vertices in LOD k In the encoder, from LOD K To LOD1, do a prediction / update step for each LOD level.
[0099] Figure 6B An exemplary formula for wavelet transform with lifting to transform the displacement vector in an encoder is shown.
[0100] like Figure 6B As shown, in the prediction step, v is the LOD k In the update step, v is a vertex in the LOD level less than k; on the right side of the arrow, v* is the LOD level. kThe set of midpoints adjacent to vertex v in , Signal(w) is the displacement residual, and Signal(v) is the displacement vector. On the left, Signal(v) is the updated displacement vector of vertex v.
[0101] The process is reversed in the decoder. First, the inverse wavelet transform is performed on LOD1, then on LOD2, ..., LOD K An inverse wavelet transform is performed, where K is the number of subdivision iterations. Without loss of generality, LOD1 is used as an example. At LOD1, the update process is first performed.
[0102] For a vertex v in LOD0 (i.e. in the base mesh), update the corresponding displacement vector as follows:
[0103] Among them, v* is the set of points adjacent to vertex v in LOD1.
[0104] For vertex w in LOD1, modify its displacement vector as follows:
[0105] Among them, v1, v2 are relative to the midpoint w in LOD1 and the two endpoints in LOD0.
[0106] According to an embodiment of the present disclosure, the fixed-point implementation may be as follows.
[0107] For a vertex v in LOD0 (i.e. in the base mesh), update the corresponding displacement vector as follows:
[0108] Note that the Shift(x, bias, kShift) function is defined in Equation 5b. In another embodiment, the bias is set to 0 and Equation 5c is used. In yet another embodiment, the bias is set to 0 and Equation 5d is used.
[0109] For vertex w in LOD1, modify its displacement vector as follows:
[0110] Similarly, the Shift(x, bias, kShift) function is defined in Equation 5b. In another embodiment, the bias is set to 0 and Equation 5c is used. In yet another embodiment, the bias is set to 0 and Equation 5d is used.
[0111] After inverse wavelet transform, the displacement vector is obtained Where N is the number of vertices in the subdivided mesh.
[0112] Application of displacement vector
[0113] Given the coordinates of the vertex P i =(x i ,y i, z i, ) and displacement vector The coordinates of the vertices can be obtained using the following formula:
[0114] in, It is the vertex P i It should be noted that N has been calculated in the previous section. i . T is calculated as follows i and B i :
[0115] First, define the standard Cartesian basis vector e x =(1.0,0,0),e y =(0,1.0,0),e z =(0,0,1.0). The tangent vector is calculated as follows
[0116] where |x| represents the absolute value of the scale x, and ‖T i ′‖ is the vector T i The Euclidean norm of ′.
[0117] The bitangent vector is calculated as follows B i =N i ×T i (25)
[0118] Here, × represents the cross product of two vectors.
[0119] For the fixed-point implementation of equation (23), P i The precision of D is kCoordShift, that is, it has kCoordShift fractional digits, as shown in equation (7); i The precision of is kDequantShift, as shown in equations (14) and (15); N i 、T i and B i The precision is kNoramPrecision.
[0120] Let kNumShift = kDequantShift - kCoordShift + kNoramPrecision, and assume that kNumShift is greater than 0. Define bias3 = 1 < < (kNumShift - 1). The fixed-point implementation of equation (23) is as follows:
[0121] Wherein, the function Shift(x, bias3, kNumShift) is defined in Equation 5b. In another embodiment, bias3 is set to 0 and Equation 5c is used. In yet another embodiment, bias3 is set to 0 and Equation 5d is used. In one embodiment of the present invention, a shift operation is performed after each multiplication operation, as shown below:
[0122] It should be noted that the definition of Shift(x, bias3, kNumShift) is the same as that in Equation 26.
[0123] The fixed implementation of Equation 24 is as follows: if and but Otherwise, if but otherwise,
[0124] Where Shift(x, bias4, kNormalPrecision) is defined in Equation 5b. In another embodiment, bias4 is set to 0 and Equation 5c is used. In yet another embodiment, bias4 is set to 0 and Equation 5d is used.
[0125] According to the method in Equation 5, the vector Normalize as follows:
[0126] Where bias5 = 1 < < (KNormalShift-1), and irsqrtNum2 is defined as
[0127] The function Shift(x, bias5, KNormalShift) is defined in Equation 5b. In another embodiment, bias5 is set to 0 and Equation 5c is used. In yet another embodiment, bias5 is set to 0 and Equation 5d is used.
[0128] The fixed-point implementation of Equation 25 is as follows:
[0129] Where Shift(x, bias4, kNormalPrecision) is defined in Equation 5b. In another embodiment, bias4 is set to 0 and Equation 5c is used. In yet another embodiment, bias4 is set to 0 and Equation 5d is used.
[0130] As mentioned above, the software implementation of some functions disclosed in this article can be as follows.
[0131] Software implementation of the reciprocal square root of a non-negative integer:
[0132] Figure 7 is an exemplary process 700 for trellis decoding according to an embodiment.
[0133] At operation 705, two vertices associated with the encoded mesh may be obtained from the encoded code stream. In an embodiment, at least two vertices may be obtained. As an example, P i =(x i ,y i , z i ) can be represented as integers.
[0134] At operation 710, a first normal vector associated with the first vertex and a second normal vector associated with the second vertex may be determined. In an embodiment, components of the first normal vector and components of the second normal vector are integers.
[0135] At operation 715, a first normalized normal vector may be determined based on the first normal vector using an inverse square root function, and a second normalized normal vector may be determined based on the second normal vector. In an embodiment, the normalized normal vector may be determined using a combination of a fixed point number having a first predefined number of bits, a right shift operation by a second predefined number, and components of the corresponding normal vector.
[0136] At operation 720, an intermediate normalized normal vector associated with the midpoint may be determined. In an embodiment, the intermediate normalized normal vector may be determined using a combination of a fixed point number having a first predefined number of bits, a right shift operation by a second predefined number, and components of the midpoint. In the same or other embodiments, the components of the midpoint are determined based on a combination of components of the first normal vector and components of the second normal vector and a right shift operation by a third predefined number.
[0137] At operation 725, the encoded mesh may be decoded based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector.
[0138] According to an embodiment, a fixed point number may be used to represent the decimal / fractional portion of the normalized normal vector. According to an embodiment, the two vertices may have integer components. In an embodiment, the process may further include: determining higher precision integer components of the two vertices based on a left shift operation performed by a fourth predefined number. In some embodiments, the first normalized normal vector and the second normalized normal vector may be determined based on the higher precision integer components. In an embodiment, the components of the midpoint may also be determined based on the higher precision integer components of the two vertices. In an embodiment, an intermediate normalized normal vector may be determined based on the higher precision integer components of the two vertices.
[0139] The proposed methods can be used alone or in combination in any order. In an embodiment, the encoding process and the decoding process may be opposite to each other. A person skilled in the art may change the order of operations during decoding or encoding. The proposed methods can be used for any polygonal mesh, but even if there are only triangle meshes, it can still be used to demonstrate various embodiments. As mentioned above, it will be assumed that the input mesh may contain one or more instances, a sub-mesh is a part of an input mesh having one or more instances, and multiple instances may be grouped to form a sub-mesh.
[0140] The above techniques may be implemented as computer software that uses computer-readable instructions and is physically stored in one or more computer-readable media, or implemented by one or more specially configured hardware processors. Figure 8 A computer system 800 suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0141] Computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by a computer central processing unit (CPU), graphics processing unit (GPU), etc., or through interpretation, microcode execution, etc.
[0142] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.
[0143] Figure 8 The components of the computer system 800 shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. The configuration of components should also not be interpreted as having any dependency or requirement related to any one or combination of components shown in the exemplary embodiment of the computer system 800.
[0144] Computer system 800 may include certain human interface input devices. Such human interface input devices may be responsive to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). Human interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, captured images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0145] The human interface input device may include one or more of the following (only one of each is shown): keyboard 801 , mouse 802 , touch pad 803 , touch screen 810 , joystick 805 , microphone 806 , scanner 808 , camera 807 .
[0146] The computer system 800 may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen 810 or joystick 805, but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers 809, headphones (not depicted)), visual output devices (e.g., screens 810 including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities, some of which are capable of outputting two-dimensional visual outputs or outputs exceeding three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0147] The computer system 800 may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW 820 with media such as CD / DVD 811, a thumb drive 822, a removable hard drive or solid-state drive 823, traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD-based devices such as security software dogs (not depicted), etc.
[0148] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0149] The computer system 800 may also include an interface 899 to one or more communication networks 898. The network 898 may be, for example, a wireless network, a wired network, an optical network. The network 898 may further be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of the network 898 include a local area network such as Ethernet, a wireless LAN, a cellular network including GSM, 3G, 4G, 5G, LTE, etc., a television wired or wireless wide area digital network including cable television, satellite television, and terrestrial broadcast television, a vehicle and industrial network including CANBus, etc. Some networks 898 typically require an external network interface adapter (e.g., a USB port of the computer system 800) attached to some general data ports or peripheral buses (750 and 851); as described below, other network interfaces are typically integrated into the kernel of the computer system 800 by attaching to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system 800 can communicate with other entities using any of these networks 898. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., a CANBus connected to certain CANBus devices), or two-way, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.
[0150] The above-mentioned human interface devices, human-accessible storage devices, and network interfaces may be attached to the kernel 840 of the computer system 800 .
[0151] The core 840 may include one or more central processing units (CPUs) 841, graphics processing units (GPUs) 842, graphics adapters 817, dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) 843, hardware accelerators 844 for certain tasks, and the like. These devices, as well as read-only memory (ROM) 845, random access memory 846, internal mass storage 847 such as internal non-user accessible hard disk drives, SSDs, and the like, may be connected via a system bus 848. In some computer systems, the system bus 848 may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the core's system bus 848 or to the core's system bus 848 via a peripheral bus 849. The architecture of the peripheral bus includes PCI, USB, and the like.
[0152] The CPU 841, GPU 842, FPGA 843, and accelerator 844 may execute certain instructions, which may be combined to form the above-mentioned computer code. The computer code may be stored in ROM 845 or RAM 846. Transitional data may also be stored in RAM 846, while permanent data may be stored, for example, in internal mass storage 847. Fast storage and retrieval to any storage device may be performed by using a cache memory, which may be closely associated with the following items: one or more CPUs 841, GPU 842, mass storage 847, ROM 845, RAM 846, etc.
[0153] The computer readable medium may have thereon computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.
[0154] As an example, and not by way of limitation, a computer system 800 having an architecture, particularly a kernel 840, may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be media associated with a user-accessible mass storage as described above, as well as some non-temporary kernel 840 memories, such as a kernel internal mass storage 847 or ROM 845. Software implementing various embodiments of the present disclosure may be stored in such devices and executed by the kernel 840. Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may cause the kernel 840, particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM 846 and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality due to logic hardwired or otherwise embodied in circuitry (e.g., accelerator 844) that may replace software or operate in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to portions of software may include logic and vice versa. Where appropriate, references to portions of computer-readable media may include circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.
[0155] Although the present disclosure has described multiple exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the present disclosure. Therefore, it should be appreciated that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and therefore fall within the spirit and scope of the present disclosure.
[0156] In addition, the proposed method can be implemented by a processing circuit (eg, one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium to perform one or more of the proposed methods.
[0157] The above-described techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media.
[0158] The embodiments of the present disclosure may be used alone or in any order. In addition, each embodiment (and method thereof) may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.
[0159] The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementations to the precise forms disclosed. Modifications and variations are possible in light of the foregoing disclosure or may be acquired from practice of the implementations.
[0160] As used herein, the term "component" is intended to be broadly interpreted as hardware, firmware, or a combination of hardware and software.
[0161] Even though combinations of features are recited in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of possible implementations. In fact, many of these features may be combined in ways that are not specifically recited in the claims and / or disclosed in the specification. Although each of the listed dependent claims may only be directly dependent on one claim, the disclosure of possible implementations includes the combination of each dependent claim with every other claim in the claim set.
[0162] Any element, behavior or instruction used herein should not be interpreted as critical or necessary unless explicitly described as such. In addition, as used herein, the articles "one" and "an" are intended to include one or more items and can be used interchangeably with "one or more". In addition, as used herein, the term "set" is intended to include one or more items (e.g., related items, unrelated items, combinations of related items and unrelated items, etc.), and can be used interchangeably with "one or more". If the intention is only for one item, "one" or similar language is used. In addition, as used herein, the terms "have", "have", "contain", etc. are intended to be open terms. In addition, the phrase "based on" means "based at least in part on", unless otherwise explicitly stated.
Claims
1. A method for fixed-point implementation of subdivision processing for video decoding, characterized in that: The method is executed by at least one processor, and the method includes: Obtain two vertices associated with the encoded mesh from the encoded bitstream; determining a first normal vector associated with the first vertex and a second normal vector associated with the second vertex, wherein components of the first normal vector and components of the second normal vector are integers; using an inverse square root function, determining a first normalized normal vector based on the first normal vector, and determining a second normalized normal vector based on the second normal vector, wherein a normalized normal vector is determined using a combination of a fixed point number having a first predefined number of bits, a right shift operation performed by a second predefined number, and components of a corresponding normal vector; Determine the intermediate normalized normal vector associated with the midpoint, wherein the components of the midpoint are determined based on a combination of the components of the first normal vector and the components of the second normal vector and a right shift operation performed by a third predefined number, and wherein the intermediate normalized normal vector is determined using a combination of the fixed-point number having the first predefined number of bits, the right shift operation performed by the second predefined number, and the components of the midpoint; and The encoded grid is decoded based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector.
2. The method according to claim 1, characterized in that The fixed-point number is used to represent the fractional part of the normalized normal vector.
3. The method according to claim 1, characterized in that The two vertices have integer components.
4. The method according to claim 3, characterized in that: The method further includes determining higher precision integer components of the two vertices based on a left shift operation performed by a fourth predefined number.
5. The method according to claim 4, characterized in that Based on the higher precision integer components, the first normalized normal vector and the second normalized normal vector are determined.
6. The method according to claim 1, characterized in that The components of the midpoint are determined based on the higher precision integer components of the two vertices.
7. The method according to claim 1, characterized in that The intermediate normalized normal vector is determined based on the higher precision integer components of the two vertices.
8. A device for fixed-point implementation of subdivision processing for video decoding, characterized in that: The device comprises: at least one memory configured to store program code; and At least one processor is configured to read the program code and operate according to the instructions of the program code, wherein the program code includes: a first acquisition code configured to cause the at least one processor to obtain two vertices associated with the encoded mesh from the encoded code stream; second determination code configured to cause the at least one processor to determine a first normal vector associated with the first vertex and a second normal vector associated with the second vertex, wherein components of the first normal vector and components of the second normal vector are integers; a third determination code configured to cause the at least one processor to determine a first normalized normal vector based on the first normal vector and to determine a second normalized normal vector based on the second normal vector using an inverse square root function, wherein a normalized normal vector is determined using a combination of a fixed point number having a first predefined number of bits, a right shift operation performed by a second predefined number, and components of a corresponding normal vector; fourth determining code configured to cause the at least one processor to determine an intermediate normalized normal vector associated with the midpoint, wherein the components of the midpoint are determined based on a combination of the components of the first normal vector and the components of the second normal vector and a right shift operation performed by a third predefined number, and wherein the intermediate normalized normal vector is determined using a combination of the fixed-point number having the first predefined number of bits, the right shift operation performed by the second predefined number, and the components of the midpoint; and The decoding code is configured to enable the at least one processor to decode the encoded mesh based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector.
9. The device according to claim 8, characterized in that The fixed-point number is used to represent the fractional part of the normalized normal vector.
10. The device according to claim 8, characterized in that The two vertices have integer components.
11. The device according to claim 10, characterized in that The program code also includes fifth determination code configured to cause the at least one processor to determine higher precision integer components of the two vertices based on a left shift operation performed by a fourth predefined number.
12. The device according to claim 11, characterized in that Based on the higher precision integer components, the first normalized normal vector and the second normalized normal vector are determined.
13. The device according to claim 8, characterized in that The components of the midpoint are determined based on the higher precision integer components of the two vertices.
14. The device according to claim 8, characterized in that The intermediate normalized normal vector is determined based on the higher precision integer components of the two vertices.
15. A non-transitory computer-readable medium, characterized in that Instructions are stored, the instructions comprising one or more instructions, which, when executed by one or more processors in a device for fixed-point implementation of subdivision processing for video decoding, cause the one or more processors to: Obtain two vertices associated with the encoded mesh from the encoded bitstream; determining a first normal vector associated with the first vertex and a second normal vector associated with the second vertex, wherein components of the first normal vector and components of the second normal vector are integers; using an inverse square root function, determining a first normalized normal vector based on the first normal vector, and determining a second normalized normal vector based on the second normal vector, wherein a normalized normal vector is determined using a combination of a fixed point number having a first predefined number of bits, a right shift operation performed by a second predefined number, and components of a corresponding normal vector; Determine the intermediate normalized normal vector associated with the midpoint, wherein the components of the midpoint are determined based on a combination of the components of the first normal vector and the components of the second normal vector and a right shift operation performed by a third predefined number, and wherein the intermediate normalized normal vector is determined using a combination of the fixed-point number having the first predefined number of bits, the right shift operation performed by the second predefined number, and the components of the midpoint; and The encoded grid is decoded based on the first normalized normal vector, the second normalized normal vector, and the intermediate normalized normal vector.
16. The non-transitory computer readable medium of claim 15, wherein: The fixed-point number is used to represent the fractional part of the normalized normal vector.
17. The non-transitory computer readable medium of claim 15, wherein: The two vertices have integer components.
18. The non-transitory computer readable medium of claim 17, wherein: The one or more instructions further cause the one or more processors to determine higher precision integer components of the two vertices based on a left shift operation by a fourth predefined number.
19. The non-transitory computer readable medium of claim 18, wherein: Based on the higher precision integer components, the first normalized normal vector and the second normalized normal vector are determined.
20. The non-transitory computer readable medium of claim 15, wherein: The intermediate normalized normal vector is determined based on the higher precision integer components of the two vertices.
