US20250308164A1
EFFICIENT ITERATION OF INCIDENT FACES IN POLYGON MESHES
Publication
Application
Classifications
IPC Classifications
CPC Classifications
Applicants
Tencent America LLC
Inventors
Chao HUANG, Shan LIU
Abstract
A polygon mesh includes a plurality of vertices that are connected into faces, a first face in the faces includes at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face. A method of mesh processing includes generating a first incident face set associated with the first vertex, the first incident face set includes a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face. Further, the method includes configuring an array according to the first incident face set associated with the first vertex, and determining an iteration order for processing the first set of faces based on the array.
Get a summary, plain-language explanation, or ask your own question.
Figures
Description
INCORPORATION BY REFERENCE
[0001]The present application claims the benefit of priority to U.S. Provisional Application No. 63/570,218 filed on Mar. 26, 2024, and U.S. Provisional Application No. 63/682,219 filed on Aug. 12, 2024. The entire disclosures of the prior applications are hereby incorporated by reference in their entirety.
TECHNICAL FIELD
[0002]The present disclosure describes aspects generally related to mesh coding.
BACKGROUND
[0003]The background description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent the work is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.
[0004]Various technologies are developed to capture and represent the world, such as objects in the world, environments in the world, and the like in 3-dimensional (3D) space. 3D representations of the world can enable more immersive forms of interaction and communication. For example, technology developments in 3D media processing, such as advances in three dimensional (3D) capture, 3D modeling, and 3D rendering, and the like have promoted the ubiquitous presence of 3D media contents across several platforms and devices. In an example, a baby's first step can be captured in one continent, media technology can allow grandparents to view (and maybe interact) and enjoy an immersive experience with the baby in another continent. According to an aspect of the disclosure, in order to improve immersive experience, 3D models are becoming ever more sophisticated, and the creation and consumption of 3D models occupy a significant amount of data resources, such as data storage, data transmission resources. In some examples, 3D meshes can be used as 3D representations of the world.
SUMMARY
[0005]Aspects of the disclosure include bitstreams, methods and apparatuses for mesh encoding/decoding. In some examples, an apparatus for mesh encoding/decoding includes processing circuitry.
[0006]Some aspects of the disclosure provide a method of mesh processing. The method includes receiving a polygon mesh for processing. The polygon mesh includes a plurality of vertices that are connected into faces, the faces respectively includes lists of incident vertices to the faces, a first face in the faces includes at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face. The method also includes generating a first incident face set associated with the first vertex, the first incident face set includes a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face. Further, the method includes configuring an array according to the first incident face set associated with the first vertex, and determining an iteration order for processing the first set of faces based on the array. The array includes one or more array elements that are configured based on the first face, the one or more array elements are indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements have values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex.
[0007]Some aspects of the disclosure provide a method of processing mesh data, the method includes processing a bitstream of mesh data according to a format rule. The polygon mesh includes a plurality of vertices that are connected into faces, the faces respectively includes lists of incident vertices to the faces, a first face in the faces includes at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face. The format rule specifies that: a first incident face set associated with the first vertex is generated, the first incident face set including a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face; an array is configured according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and an iteration order for processing the first set of faces is determined based on the array.
[0008]Aspects of the disclosure also provide an apparatus for mesh processing. The apparatus for mesh processing including processing circuitry configured to implement any of the described methods for mesh processing.
[0009]Aspects of the disclosure also provide a non-transitory computer-readable medium storing instructions which, when executed by a computer, cause the computer to perform any of the described methods for mesh processing.
[0010]According to an aspect of the disclosure, the dual-degree based connectivity coding has high coding efficiency, and further the polygon face information in obtained from the dual-degree based connectivity coding can be used to improve geometry coding efficiency.
BRIEF DESCRIPTION OF THE DRAWINGS
[0011]Further features, the nature, and various advantages of the disclosed subject matter will be more apparent from the following detailed description and the accompanying drawings in which:
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
DETAILED DESCRIPTION
[0029]Aspects of the disclosure provide techniques in the field of mesh processing.
[0030]A mesh (also referred to as mesh model) includes several polygons (also referred to as faces) that describe the surface of a volumetric object. Each polygon can be defined by vertices in three dimensional (3D) space and the information of how the vertices are connected, referred to as connectivity information. In some examples, the mesh also includes vertex attributes, such as colors, normals, displacements, and the like, that are associated with the mesh vertices. Further, in some examples, the mesh can include attributes associated with the surface of the mesh by exploiting mapping information that parameterizes the mesh with two dimensional (2D) attribute maps. Such mapping is usually described by a set of parametric coordinates, referred to as UV coordinates or texture coordinates, associated with the mesh vertices. 2D attribute maps are used to store high resolution attribute information, such as texture, normals, displacements, and the like. The 2D attribute maps can be used for various purposes such as texture mapping, shading and mesh reconstruction and the like.
[0031]
[0032]The streaming system (100) includes a capture subsystem (113), that can include a 3D source (101), for example light detection and ranging (LIDAR) systems, 3D cameras, 3D scanners, a graphics generation component and the like for creating a stream of 3D data (102) that are uncompressed. In an example, the stream of 3D data (102) includes samples that are taken by the 3D camera system. The stream of 3D data (102), depicted as a bold line to emphasize a high data volume when compared to encoded 3D data (104) (or encoded bitstreams), can be processed by an electronic device (120) that includes a 3D encoder (103) coupled to the 3D source (101). The 3D encoder (103) can include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter as described in more detail below. The encoded 3D data (104) (or encoded bitstream), depicted as a thin line to emphasize the lower data volume when compared to the stream of 3D data (102), can be stored on a streaming server (105) for future use. One or more streaming client subsystems, such as client subsystems (106) and (108) in
[0033]It is noted that the electronic devices (120) and (130) can include other components (not shown). For example, the electronic device (120) can include a 3D decoder (not shown) and the electronic device (130) can include a 3D encoder (not shown) as well.
[0034]It is also noted that, in some examples, the 3D encoders and/or the 3D decoders can use 2D encoding/decoder techniques. For example, the 3D encoder and/or the 3D decoders can include video encoders or video decoders.
[0035]
[0036]The receiver (231) may receive one or more coded video sequences, included in a bitstream for example, to be decoded by the video decoder (210). In an aspect, one coded video sequence is received at a time, where the decoding of each coded video sequence is independent from the decoding of other coded video sequences. The coded video sequence may be received from a channel (201), which may be a hardware/software link to a storage device which stores the encoded video data. The receiver (231) may receive the encoded video data with other data, for example, coded audio data and/or ancillary data streams, that may be forwarded to their respective using entities (not depicted). The receiver (231) may separate the coded video sequence from the other data. To combat network jitter, a buffer memory (215) may be coupled in between the receiver (231) and an entropy decoder/parser (220) (“parser (220)” henceforth). In certain applications, the buffer memory (215) is part of the video decoder (210). In others, it can be outside of the video decoder (210) (not depicted). In still others, there can be a buffer memory (not depicted) outside of the video decoder (210), for example to combat network jitter, and in addition another buffer memory (215) inside the video decoder (210), for example to handle playout timing. When the receiver (231) is receiving data from a store/forward device of sufficient bandwidth and controllability, or from an isosynchronous network, the buffer memory (215) may not be needed, or can be small. For use on best effort packet networks such as the Internet, the buffer memory (215) may be required, can be comparatively large and can be advantageously of adaptive size, and may at least partially be implemented in an operating system or similar elements (not depicted) outside of the video decoder (210).
[0037]The video decoder (210) may include the parser (220) to reconstruct symbols (221) from the coded video sequence. Categories of those symbols include information used to manage operation of the video decoder (210), and potentially information to control a rendering device such as a render device (212) (e.g., a display screen) that is not an integral part of the electronic device (230) but can be coupled to the electronic device (230), as shown in
[0038]The parser (220) may perform an entropy decoding/parsing operation on the video sequence received from the buffer memory (215), so as to create symbols (221).
[0039]Reconstruction of the symbols (221) can involve multiple different units depending on the type of the coded video picture or parts thereof (such as: inter and intra picture, inter and intra block), and other factors. Which units are involved, and how, can be controlled by subgroup control information parsed from the coded video sequence by the parser (220). The flow of such subgroup control information between the parser (220) and the multiple units below is not depicted for clarity.
[0040]Beyond the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into a number of functional units as described below. In a practical implementation operating under commercial constraints, many of these units interact closely with each other and can, at least partly, be integrated into each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the functional units below is appropriate.
[0041]A first unit is the scaler/inverse transform unit (251). The scaler/inverse transform unit (251) receives a quantized transform coefficient as well as control information, including which transform to use, block size, quantization factor, quantization scaling matrices, etc. as symbol(s) (221) from the parser (220). The scaler/inverse transform unit (251) can output blocks comprising sample values, that can be input into aggregator (255).
[0042]In some cases, the output samples of the scaler/inverse transform unit (251) can pertain to an intra coded block. The intra coded block is a block that is not using predictive information from previously reconstructed pictures, but can use predictive information from previously reconstructed parts of the current picture. Such predictive information can be provided by an intra picture prediction unit (252). In some cases, the intra picture prediction unit (252) generates a block of the same size and shape of the block under reconstruction, using surrounding already reconstructed information fetched from the current picture buffer (258). The current picture buffer (258) buffers, for example, partly reconstructed current picture and/or fully reconstructed current picture. The aggregator (255), in some cases, adds, on a per sample basis, the prediction information the intra prediction unit (252) has generated to the output sample information as provided by the scaler/inverse transform unit (251).
[0043]In other cases, the output samples of the scaler/inverse transform unit (251) can pertain to an inter coded, and potentially motion compensated, block. In such a case, a motion compensation prediction unit (253) can access reference picture memory (257) to fetch samples used for prediction. After motion compensating the fetched samples in accordance with the symbols (221) pertaining to the block, these samples can be added by the aggregator (255) to the output of the scaler/inverse transform unit (251) (in this case called the residual samples or residual signal) so as to generate output sample information. The addresses within the reference picture memory (257) from where the motion compensation prediction unit (253) fetches prediction samples can be controlled by motion vectors, available to the motion compensation prediction unit (253) in the form of symbols (221) that can have, for example X, Y, and reference picture components. Motion compensation also can include interpolation of sample values as fetched from the reference picture memory (257) when sub-sample exact motion vectors are in use, motion vector prediction mechanisms, and so forth.
[0044]The output samples of the aggregator (255) can be subject to various loop filtering techniques in the loop filter unit (256). Video compression technologies can include in-loop filter technologies that are controlled by parameters included in the coded video sequence (also referred to as coded video bitstream) and made available to the loop filter unit (256) as symbols (221) from the parser (220). Video compression can also be responsive to meta-information obtained during the decoding of previous (in decoding order) parts of the coded picture or coded video sequence, as well as responsive to previously reconstructed and loop-filtered sample values.
[0045]The output of the loop filter unit (256) can be a sample stream that can be output to the render device (212) as well as stored in the reference picture memory (257) for use in future inter-picture prediction.
[0046]Certain coded pictures, once fully reconstructed, can be used as reference pictures for future prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture has been identified as a reference picture (by, for example, the parser (220)), the current picture buffer (258) can become a part of the reference picture memory (257), and a fresh current picture buffer can be reallocated before commencing the reconstruction of the following coded picture.
[0047]The video decoder (210) may perform decoding operations according to a predetermined video compression technology or a standard, such as ITU-T Rec. H.265. The coded video sequence may conform to a syntax specified by the video compression technology or standard being used, in the sense that the coded video sequence adheres to both the syntax of the video compression technology or standard and the profiles as documented in the video compression technology or standard. Specifically, a profile can select certain tools as the only tools available for use under that profile from all the tools available in the video compression technology or standard. Also necessary for compliance can be that the complexity of the coded video sequence is within bounds as defined by the level of the video compression technology or standard. In some cases, levels restrict the maximum picture size, maximum frame rate, maximum reconstruction sample rate (measured in, for example megasamples per second), maximum reference picture size, and so on. Limits set by levels can, in some cases, be further restricted through Hypothetical Reference Decoder (HRD) specifications and metadata for HRD buffer management signaled in the coded video sequence.
[0048]In an aspect, the receiver (231) may receive additional (redundant) data with the encoded video. The additional data may be included as part of the coded video sequence(s). The additional data may be used by the video decoder (210) to properly decode the data and/or to more accurately reconstruct the original video data. Additional data can be in the form of, for example, temporal, spatial, or signal noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, and so on.
[0049]
[0050]The video encoder (303) may receive video samples from a video source (301) (that is not part of the electronic device (320) in the
[0051]The video source (301) may provide the source video sequence to be coded by the video encoder (303) in the form of a digital video sample stream that can be of any suitable bit depth (for example: 8 bit, 10 bit, 12 bit, . . . ), any colorspace (for example, BT.601 Y CrCB, RGB, . . . ), and any suitable sampling structure (for example Y CrCb 4:2:0, Y CrCb 4:4:4). In a media serving system, the video source (301) may be a storage device storing previously prepared video. In a videoconferencing system, the video source (301) may be a camera that captures local image information as a video sequence. Video data may be provided as a plurality of individual pictures that impart motion when viewed in sequence. The pictures themselves may be organized as a spatial array of pixels, wherein each pixel can comprise one or more samples depending on the sampling structure, color space, etc. in use. The description below focuses on samples.
[0052]According to an aspect, the video encoder (303) may code and compress the pictures of the source video sequence into a coded video sequence (343) in real time or under any other time constraints as required. Enforcing appropriate coding speed is one function of a controller (350). In some aspects, the controller (350) controls other functional units as described below and is functionally coupled to the other functional units. The coupling is not depicted for clarity. Parameters set by the controller (350) can include rate control related parameters (picture skip, quantizer, lambda value of rate-distortion optimization techniques, . . . ), picture size, group of pictures (GOP) layout, maximum motion vector search range, and so forth. The controller (350) can be configured to have other suitable functions that pertain to the video encoder (303) optimized for a certain system design.
[0053]In some aspects, the video encoder (303) is configured to operate in a coding loop. As an oversimplified description, in an example, the coding loop can include a source coder (330) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be coded, and a reference picture(s)), and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create the sample data in a similar manner as a (remote) decoder also would create. The reconstructed sample stream (sample data) is input to the reference picture memory (334). As the decoding of a symbol stream leads to bit-exact results independent of decoder location (local or remote), the content in the reference picture memory (334) is also bit exact between the local encoder and remote encoder. In other words, the prediction part of an encoder “sees” as reference picture samples exactly the same sample values as a decoder would “see” when using prediction during decoding. This fundamental principle of reference picture synchronicity (and resulting drift, if synchronicity cannot be maintained, for example because of channel errors) is used in some related arts as well.
[0054]The operation of the “local” decoder (333) can be the same as a “remote” decoder, such as the video decoder (210), which has already been described in detail above in conjunction with
[0055]In an aspect, a decoder technology except the parsing/entropy decoding that is present in a decoder is present, in an identical or a substantially identical functional form, in a corresponding encoder. Accordingly, the disclosed subject matter focuses on decoder operation. The description of encoder technologies can be abbreviated as they are the inverse of the comprehensively described decoder technologies. In certain areas a more detail description is provided below.
[0056]During operation, in some examples, the source coder (330) may perform motion compensated predictive coding, which codes an input picture predictively with reference to one or more previously coded picture from the video sequence that were designated as “reference pictures.” In this manner, the coding engine (332) codes differences between pixel blocks of an input picture and pixel blocks of reference picture(s) that may be selected as prediction reference(s) to the input picture.
[0057]The local video decoder (333) may decode coded video data of pictures that may be designated as reference pictures, based on symbols created by the source coder (330). Operations of the coding engine (332) may advantageously be lossy processes. When the coded video data may be decoded at a video decoder (not shown in
[0058]The predictor (335) may perform prediction searches for the coding engine (332). That is, for a new picture to be coded, the predictor (335) may search the reference picture memory (334) for sample data (as candidate reference pixel blocks) or certain metadata such as reference picture motion vectors, block shapes, and so on, that may serve as an appropriate prediction reference for the new pictures. The predictor (335) may operate on a sample block-by-pixel block basis to find appropriate prediction references. In some cases, as determined by search results obtained by the predictor (335), an input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (334).
[0059]The controller (350) may manage coding operations of the source coder (330), including, for example, setting of parameters and subgroup parameters used for encoding the video data.
[0060]Output of all aforementioned functional units may be subjected to entropy coding in the entropy coder (345). The entropy coder (345) translates the symbols as generated by the various functional units into a coded video sequence, by applying lossless compression to the symbols according to technologies such as Huffman coding, variable length coding, arithmetic coding, and so forth.
[0061]The transmitter (340) may buffer the coded video sequence(s) as created by the entropy coder (345) to prepare for transmission via a communication channel (360), which may be a hardware/software link to a storage device which would store the encoded video data. The transmitter (340) may merge coded video data from the video encoder (303) with other data to be transmitted, for example, coded audio data and/or ancillary data streams (sources not shown).
[0062]The controller (350) may manage operation of the video encoder (303). During coding, the controller (350) may assign to each coded picture a certain coded picture type, which may affect the coding techniques that may be applied to the respective picture. For example, pictures often may be assigned as one of the following picture types:
[0063]An Intra Picture (I picture) may be coded and decoded without using any other picture in the sequence as a source of prediction. Some video codecs allow for different types of intra pictures, including, for example Independent Decoder Refresh (“IDR”) Pictures.
[0064]A predictive picture (P picture) may be coded and decoded using intra prediction or inter prediction using a motion vector and reference index to predict the sample values of each block.
[0065]A bi-directionally predictive picture (B Picture) may be coded and decoded using intra prediction or inter prediction using two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple-predictive pictures can use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0066]Source pictures commonly may be subdivided spatially into a plurality of sample blocks (for example, blocks of 4×4, 8×8, 4×8, or 16×16 samples each) and coded on a block-by-block basis. Blocks may be coded predictively with reference to other (already coded) blocks as determined by the coding assignment applied to the blocks' respective pictures. For example, blocks of I pictures may be coded non-predictively or they may be coded predictively with reference to already coded blocks of the same picture (spatial prediction or intra prediction). Pixel blocks of P pictures may be coded predictively, via spatial prediction or via temporal prediction with reference to one previously coded reference picture. Blocks of B pictures may be coded predictively, via spatial prediction or via temporal prediction with reference to one or two previously coded reference pictures.
[0067]The video encoder (303) may perform coding operations according to a predetermined video coding technology or standard, such as ITU-T Rec. H.265. In its operation, the video encoder (303) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancies in the input video sequence. The coded video data, therefore, may conform to a syntax specified by the video coding technology or standard being used.
[0068]In an aspect, the transmitter (340) may transmit additional data with the encoded video. The source coder (330) may include such data as part of the coded video sequence. Additional data may comprise temporal/spatial/SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, and so on.
[0069]A video may be captured as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated to intra prediction) makes use of spatial correlation in a given picture, and inter-picture prediction makes uses of the (temporal or other) correlation between the pictures. In an example, a specific picture under encoding/decoding, which is referred to as a current picture, is partitioned into blocks. When a block in the current picture is similar to a reference block in a previously coded and still buffered reference picture in the video, the block in the current picture can be coded by a vector that is referred to as a motion vector. The motion vector points to the reference block in the reference picture, and can have a third dimension identifying the reference picture, in case multiple reference pictures are in use.
[0070]In some aspects, a bi-prediction technique can be used in the inter-picture prediction. According to the bi-prediction technique, two reference pictures, such as a first reference picture and a second reference picture that are both prior in decoding order to the current picture in the video (but may be in the past and future, respectively, in display order) are used. A block in the current picture can be coded by a first motion vector that points to a first reference block in the first reference picture, and a second motion vector that points to a second reference block in the second reference picture. The block can be predicted by a combination of the first reference block and the second reference block.
[0071]Further, a merge mode technique can be used in the inter-picture prediction to improve coding efficiency.
[0072]According to some aspects of the disclosure, predictions, such as inter-picture predictions and intra-picture predictions, are performed in the unit of blocks. For example, according to the HEVC standard, a picture in a sequence of video pictures is partitioned into coding tree units (CTU) for compression, the CTUs in a picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are one luma CTB and two chroma CTBs. Each CTU can be recursively quadtree split into one or multiple coding units (CUs). For example, a CTU of 64×64 pixels can be split into one CU of 64×64 pixels, or 4 CUs of 32×32 pixels, or 16 CUs of 16×16 pixels. In an example, each CU is analyzed to determine a prediction type for the CU, such as an inter prediction type or an intra prediction type. The CU is split into one or more prediction units (PUs) depending on the temporal and/or spatial predictability. Generally, each PU includes a luma prediction block (PB), and two chroma PBs. In an aspect, a prediction operation in coding (encoding/decoding) is performed in the unit of a prediction block. Using a luma prediction block as an example of a prediction block, the prediction block includes a matrix of values (e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0073]It is noted that the encoders (103) and (303), and the decoders (110) and (210) can be implemented using any suitable technique. In an aspect, the encoders (103) and (303) and the decoders (110) and (210) can be implemented using one or more integrated circuits. In another aspect, the encoders (103) and (303), and the decoders (110) and (210) can be implemented using one or more processors that execute software instructions.
[0074]In some examples, the 3D data includes mesh models, and the 3D encoder (103) can include a mesh encoder, and the 3D decoder (110) can include a mesh decoder.
[0075]According to an aspect of the disclosure, a dynamic mesh is a mesh where at least one of the components (geometry information, connectivity information, mapping information, vertex attributes and attribute maps) varies with time. A dynamic mesh can be described by a sequence of meshes (also referred to as mesh frames). In some examples, mesh frames in a dynamic mesh can be representations of a surface of an object at different time, and each mesh frame is a representation of the surface of the object at a specific time (also referred to as a time instance). The dynamic mesh may require a large amount of data since the dynamic mesh may include a significant amount of information changing over time. Compression technologies of meshes can allow efficient storage and transmission of media contents in the mesh representation.
[0076]A dynamic mesh sequence may require a large amount of data since the dynamic mesh may include a significant amount of information changing over time. Therefore, efficient compression technologies may be used to store and transmit such contents.
[0077]
[0078]Still referring to
[0079]An advantage of the subdivided mesh may include that the subdivided mesh has a subdivision structure that allows efficient compression, while offering a faithful approximation of the input mesh. An increase in compression efficiency may be obtained due to the following properties. The decimated mesh dm(i) may have a low number of vertices and may be encoded and transmitted using a lower number of bits than the input mesh M(i) or the subdivided mesh. Referring to
[0080]In the
[0081]In an aspect, referring to
[0082]
[0083]In an aspect, the base mesh sub-stream may be fed to a mesh decoder to generate a reconstructed quantized base mesh m′(i). The decoded base mesh (or reconstructed base mesh) m″(i) may be obtained by applying an inverse quantization to m′(i). The displacement field sub-stream including packed and quantized wavelet coefficients that are encoded may be decoded by a video and/or image decoder. Image unpacking and inverse quantization may be applied to the packed quantized wavelet coefficients that are reconstructed to obtain the unpacked and unquantized transformed coefficients (e.g., wavelet coefficients). An inverse wavelet transform may be applied to the unpacked and unquantized wavelet coefficients to generate the decoded displacement field (or reconstructed displacement) d″(i).
[0084]The decoded components (e.g., including metadata(i), m″(i), d″(i), A″(i), and/or the like) may be fed to a post-processing step (520). A mesh (also referred to as a decoded/reconstructed mesh) M″(i) may be generated by the post-processing step (520) based on m″(i) and d′(i). In an example, the mesh M″(i) (also referred to as a reconstructed deformed mesh DM(i)) may be obtained by subdividing m″(i) using a subdivision scheme and applying the reconstructed displacements d″(i) to vertices of a subdivided mesh. In an example, the DM(i) may include the displaced curve. In an example, when the encoding process (400), the decoding process (500), and the transmission are lossless, the mesh M″(i) may be identical to the input mesh M(i). When one of the encoding process (400), the decoding process (500), and the transmission is lossy, M″(i) is different from M(i). In various examples, the difference, if any, between M″(i) and M(i) may be relatively small. In an example, an attribute map A″(i) is also generated by the post-processing step (520).
[0085]In some examples, the mesh can also include attributes, such as color, normal, and the like, associated with the vertices. The attributes can be associated with the surface of the mesh by exploiting mapping information that parameterizes the mesh with 2D attribute maps. The mapping information is usually described by a set of parametric coordinates, referred to as UV coordinates or texture coordinates, associated with the mesh vertices. 2D attribute maps (referred to as texture maps in some examples) are used to store high resolution attribute information such as texture, normals, displacements etc. Such information could be used for various purposes such as texture mapping and shading.
[0086]According to some aspects, a polygon mesh encoder is used for base mesh coding. The polygon mesh encoder includes a geometry encoder and an attribute encoder. The geometry encoder is configured to generate a geometry compressed bitstream and the attribute encoder is configured to generate an attribute compressed bitstream. The geometry compressed bitstream and the attribute compressed bitstream are multiplexed into a final bitstream in some examples.
[0087]In some examples, the geometry encoder can use polygon-fan connectivity coding and polygon-fan geometry coding. For example, the geometry encoder can traverse the vertices of a mesh (also referred to as polygon mesh in some examples) according to an order reproducible at the decoder side. For a vertex of the mesh, the geometry encoder can decompose the faces (e.g., also referred to as polygons, polygon faces in some examples) incident to the vertex into a set of polygon-fans sharing the vertex as a pivot. A polygon fan includes one or more faces (e.g., polygons) that are incident to a same vertex (referred to as pivot vertex), and the one or more faces are consecutive faces, two neighboring faces in the one or more consecutive faces share an edge. The polygon fans that are incident to the vertex (pivot vertex) are triangulated and encoded using triangle based connectivity coding and triangle based geometry coding in some examples.
[0088]In some embodiments, a polygon mesh can include geometry information and connectivity information. In some examples, the geometry information is described by a set of 3D positions associated with the vertices of the polygon mesh. In an example, (x,y,z) coordinates can be used to describe the 3D positions of the vertices, and are also referred to as 3D coordinates. In some examples, the connectivity information includes a set of vertex indices that describes how to connect the vertices to create a 3D surface.
[0089]
[0090]In an example, connectivity and geometry of polygon-fans are encoded in an interleaved manner. For each polygon-fan, connectivity information of the respective polygon-fan is encoded. The connectivity information is then used to assist the geometry information encoding.
[0091]In some examples, the connectivity and geometry of polygon-fans are coded using triangle based connectivity coding and triangle based geometry coding. To apply the triangle based connectivity coding, a polygon fan of one or more faces (polygons) is first triangulated and the number of triangles for the polygon fan is compressed, for example using a context adaptive binary arithmetic coding. The connectivity of the triangles of the polygon fan is compressed using topological configurations.
[0092]
[0093]In some examples, a polygon fan is triangulated, and is categorized into one of the topological configurations, such as one of C0-C8 in
[0094]In some examples, to apply the triangle based geometry coding, the vertex positions are encoded by applying prediction and compressing the prediction residuals, for example using context adaptive binary arithmetic coding. The current vertex can be predicted according to already geometry coded (encoded/decoded) vertices, such as vertices of neighboring triangles with geometry coded (encoded/decoded). In some examples, according to local neighborhood configuration, a set of predictors can be considered.
[0095]
[0096]According to an aspect of the disclosure, a dual-degree based technique can be used to code connectivity of polygon meshes with arbitrary face or vertex degrees. The dual-degree based technique exploits the duality between the primal and dual mesh to encode the connectivity by generating two sequences of symbols, the vertex degree and face degree.
[0097]
[0098]
[0099]The coding performance of the dual-degree based technique depends on the mesh regularity, which measures the variance of the vertex and/or face degree. For example, the less of the vertex/face degree variance, the more regular of the mesh, and the dual-degree based technique achieves the higher of the connectivity coding efficiency. In some examples, the dual-degree based technique can achieve near-optimal for worst-case meshes, the entropy of the two sequences of symbols can be proven to achieve Tutte entropy bound for planar graphs of 2 bits per edge.
[0100]In some examples, vertex and face data structures may be maintained explicitly. For a vertex, a vertex degree (VD) and references to all incident faces in an order (e.g., a counterclockwise order) may be stored in a data structure associated with the vertex. For a face, a face degree (FD) and references to all incident vertices in an order (e.g., a counterclockwise order) may be stored. Vertices and faces may go through a sequence of states such as an empty state, an active state, and a complete state. In an example, at a given time at most one face is active, and multiple vertices may be active. In an example, the multiple active vertices may be held in an active vertex queue. When a face is processed, for example, moved from an empty state (e.g., when the face is not processed), to an active state (e.g., when the face is being processed), and then to a complete state (e.g., when the face is processed), all vertices of the face that are not yet active may be activated through insertion into the active vertex queue. Consequently, each active vertex has at least one complete incident face. When none of faces incident to a vertex is processed, the vertex is not an active vertex and is in an empty state. The vertex is not visited. When all the faces incident to a vertex have become complete (e.g., all the faces are processed), the vertex changes its state to complete (e.g., the vertex is processed) and may be removed from the active vertex queue.
[0101]In some examples, the active vertex queue is an active vertex priority queue where an active vertex having the highest priority is traversed prior to other active vertices in the active vertex queue. For example, the active vertex having the highest priority is made the current vertex such as the pivot vertex, and is processed and then removed from the active vertex queue. In an example, the active vertex queue represents a boundary between a part of the polygon mesh which has already been traversed and a part of the polygon mesh as yet to be visited.
[0102]
[0103]At the step (1171), a first vertex (e.g., V1) of the seed face (1101) becomes active and a next face (1102) may be traversed, for example, in a counterclockwise order, resulting in one face degree and two vertex valences output, such as FD4, VD4, and VD4.
[0104]The traversal keeps going until all the faces and vertices in the polygon mesh (1150) have been visited.
[0105]In an example, the seed face (1101) is chosen and all neighbors of the seed face (1101) are traversed recursively until all faces of the corresponding connected component are visited. Referring to
[0106]In an aspect, the mesh traversal such as the traversal sequence (1100) may be started by selecting the seed face (1101). The encoder outputs the face degree of the seed face (1101), followed by the vertex degrees of all the vertices V1-V6 incident to the seed face (1101), e.g., in a counterclockwise order such as FD6-VD4-VD4-VD4-VD4-VD4-VD4 in the step (1170). The vertices (e.g., the 6 vertices V1-V6) may be added to the active vertex queue. The decoder may receive the seed face degree (e.g., FD6) and creates a corresponding face. The decoder may fill all the slots for the incident vertices, moving the incident vertices from the empty to active state, e.g., enters the incident vertices into an active vertex queue of the decoder. Thus, the encoder and the decoder may maintain matching states.
[0107]The traversal such as the traversal sequence (1100) may continue by removing the highest priority active vertex from the active vertex queue and making it the current vertex. The algorithm proceeds, for example, counterclockwise around the active vertex, skipping all faces which have already been completed. In an example, for an active vertex, at least one face is completed and at least one incident face is still empty, otherwise the vertex may not be in the active vertex queue.
[0108]When the encoder detects an empty face, such as an empty slot in the incident face data structure associated with the current vertex, the encoder may proceed through the following steps: (i) the face is activated and becomes the “current” face, and a face degree of the current face is output; (ii) the current face is added to an appropriate slot in the incident face data structures associated with the current vertex as well as any other active vertices which are incident to current face; (iii) any remaining empty vertices of the current face are activated and the respective vertex degrees output in an order, for example, in a counterclockwise order; and (iv) the current face is complete and removed from processing.
[0109]According to an aspect, the traversal sequence (1100) can process elements (e.g., vertices and faces) of the polygon mesh (1150) by alternating vertices and faces. In an aspect, referring to
[0110]The decoder may use a symmetric procedure, ensuring the same traversal as the encoder. When the decoder finds the first empty face slot in the currently active vertex, the decoder may proceed as follows: (i) read in a face degree and create the face, moving the face from state “empty” to “active,” calling the face the “current” face; (ii) add the current face to the appropriate slot in the active vertex and any other active vertices the current face is incident on; (iii) read the vertex degrees of the remaining empty vertices incident on the current face, activating the remaining empty vertices incident on the current face through insertion into the active vertex queue; (iv) move the current face to the complete state.
[0111]In an example, vertices completed during the traversal of the current face are removed from the active vertex queue. The vertices completed during the traversal of the current face no further belong to the boundary of the traversed region. After the current face is processed, the algorithm proceeds to the next face in the currently active vertex until the currently active vertex is complete. Subsequently a new active vertex is taken from the queue and the process repeats until the active vertex queue is empty. If there are some connected components remaining, a new seed face is chosen on it and another component traversal starts.
[0112]It is noted that in some examples, the connectivity of a polygon mesh can be efficiently coded by algorithms of the dual-degree based technique. The dual-degree based technique can be directly applied on polygon meshes with any face degrees without triangulation.
[0113]According to an aspect of the disclosure, the dual-degree based algorithm can be used to efficiently compress polygon meshes. The dual-degree based algorism iterates all the incident faces of a vertex (also referred to as pivot vertex) during the traversal, either in clockwise or counter-clockwise direction. In the example of
[0114]
[0115]In a half-edge data structure, each edge is stored as a pair of half edge elements respectively corresponding to the two half edges (also referred to as twins in some examples) of the edge. In some examples, a half-edge element stores a reference to its twin, a reference to a previous half edge and a reference to a next half-edge along the same face. In the half-edge data structure, a vertex element of a vertex stores the position of the vertex and a reference to a half-edge element that originates from the vertex, and a face element stores an arbitrary half-edge element belonging to the face.
[0116]According to an aspect of the disclosure, the half-edge data structure is expensive to construct. Some aspects of the present disclosure provide techniques to iterate incidents face of each vertex in a polygon mesh without using the half-edge data structure. The techniques can be applied respectively to each vertex in a polygon mesh and to iterate all incident faces of each vertex in the polygon mesh. Thus, the techniques can be used in the dual-degree based connectivity coding, the dual-degree based connectivity coding can be performed without constructing a half-edge data structure in some examples.
[0117]In some examples, a processing device can generate a first incident face set associated with a first vertex, the first incident face set includes a first set of faces that includes the first vertex as an incident vertex. The processing device configures an array according to the first incident face set associated with the first vertex. For example, the array includes one or more array elements that are configured based on a first face, the one or more array elements being indexed based on a first one of a first next vertex and a first previous vertex, the one or more array elements have values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex. The processing device can determine an iteration order for processing the first set of faces based on the array.
[0118]It is noted that, without loss of generality, the following description uses counter-clockwise orientation for the incident face iterations. The description can be suitably adjusted for clockwise orientation. The following description provides various techniques to be used in algorithms to iterate incident faces of a pivot vertex during a traversal. The various techniques can be used separately or can be used in any suitable combinations. In some examples, the process of incident faces iteration for vertices includes following four steps.
[0119]In a first step, for each vertex in a polygon mesh, all incident faces of the vertex are found. In some examples, all of the faces in the polygon mesh are looped through, and for each face, all its incident vertices of the face are looped through. For each incident vertex in a face, the index of the face is added into a vertex's incident face set. In some examples, when a face is a degenerated face (a degenerated face has duplicated incident vertices), the face index is added once into the incident face set of the duplicated vertices. For example, when a polygon mesh has a degenerate face with two vertices that have identical vertex indices, and therefore no geometric area, and no normal of the degenerated face, the index of the face is added once into the incident face set associated with the identical vertex index.
[0120]In a second step, after identifying all the incident faces of each vertex in the polygon mesh, an array (denoted by A) with size of 2×V is constructed, where V is the number of vertices in the polygon mesh. The constructed array A is then used to iterate the incident faces of a given vertex in counter-clockwise direction. It is noted that in some examples, the array A can be reused for different vertices.
[0121]In a third step, for a given vertex with index v in the polygon mesh, all the incident faces identified in the first step are looped through. For each incident face (index is denoted as f) of v, the index of v inside f is found, then the previous vertex (index is denoted as u) relative to v inside f is found. Likewise, the next vertex (index is denoted as w) relative to v inside f is found. Then, some array elements can be set. In an example, two array elements A[w] and A[V+w] can be set according to A[w]=f and A[V+w]=u. In another example, two elements A[2×w] and A[2×w+1] are set according to A[2×w]=f and A[2×w+1]=u.
[0122]In a fourth step, to iterate the incident faces of the vertex v, any incident face of the vertex v can be picked as a starting point, the picked incident face has index denoted by f. Then, similar to step 3, the index of v inside f can be found, then the next vertex (with index w) relative to v inside f is found. Further, the index u of the previous vertex relative to v inside f is u=A[V+w]. After that, the second face in counter-clockwise direction is A[u], and the third face is A[A[V+u]] and so on . . . .
[0123]It is noted that, to iterate the incident faces of another vertex, the third step and the fourth step can be executed, and the array A can be reused.
[0124]It is noted that in some examples, to iterate the incident faces in clockwise direction, the previous vertex and the next vertex in steps 3 and 4 can be swapped and the same procedure can be used.
[0125]
[0126]In the first step of the process, for each vertex in a polygon mesh, all incident faces of the vertex are found. For example, all of the faces listed in the face description portion (1410) are looped through. For each face, all its incident vertices of the face are looped through. For each incident vertex in a face, the index of the face is added into an incident face set associated with a vertex index of the incident vertex.
[0127]In the
[0128]In the second step of the process, an array (denoted by A) with size of 2×V is constructed, where V is the number of vertices in the polygon mesh (1400).
[0129]In the third step, for a given vertex (to be pivot vertex), such as a vertex with index v1 in the polygon mesh (1400), all the incident faces identified in the first step are looped through. For each incident face (e.g., f1, f2, f3 and f4) of v1, the index of v1 inside the face is found according to the face description portion (1410), then the previous vertex relative to v1 inside the face is found. Likewise, the next vertex relative to v1 inside the face is found. Then, the array A is configured to link the next vertex in each face with the face and the previous vertex in the face with respect to the pivot vertex. In some examples, some elements of the array A are set in a manner that for a face that includes the vertex v1, a next vertex of the vertex v1 (e.g., using a vertex index of the next vertex) in the face is used to indicate the face (a face index of the face) and a previous vertex of the vertex v1 in the face (a vertex index of the previous vertex). In the
[0130]In the fourth step, the array A is used to iterate the incident faces of the vertex v1. For example, when the incident face f2 is picked. In the face f2, the next vertex of v1 is v3, then the previous vertex in f2 is A[V+v3], which is v4 according to (1430). The second face is A[v4], which is f4 according to (1430). In the face f4, the previous vertex is A[v4+V], which is v5 according to (1430). The third face is A[v5], which is f1 according to (1430). In the face f1, the previous vertex is A[v5+V], which is v2 according to (1430). The fourth face is A[v2], which is f3 according to (1430). Thus, the incident faces of the vertex v1 are iterated in a sequence of f2, f4, f1 and f3.
[0131]It is noted that, in some examples, the third step and the fourth step can be executed for another vertex to iterate the incident faces of the other vertex, and the array A can be reused.
[0132]It is noted that while the array A in the above example has a size of 2×V, it is noted that in some examples, an array of a size of V can be used. For example, an array element indexed based on the next vertex in a face can store a value indicating a combination of the face and the previous vertex, and the combination can be separated into a face portion and a previous vertex portion.
[0133]
[0134]At (S1510), a polygon mesh is received for processing, the polygon mesh includes a plurality of vertices that are connected into faces, the faces respectively include lists of incident vertices to the faces. In some examples, a first face in the faces is provided with a first list of vertices that are incident to the first faces, the first list of vertices includes at least a first vertex, a first previous vertex of the first vertex, and a first next vertex of the first vertex.
[0135]At (S1520), a first incident face set associated with the first vertex is generated. The first incident face set includes a first set of faces that include the first vertex as an incident vertex, the first incident face set includes the first face.
[0136]At (S1530), an array is configured according to the first incident face set associated with the first vertex. The array includes one or more array elements that are configured based on the first face. The one or more array elements are indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements have values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex.
[0137]At (S1540), an iteration order for processing the first set of faces is determined based on the array.
[0138]According to an aspect of the disclosure, the array includes a first array element and a second array element that are configured based on the first face, the first array element and the second array element are indexed based on the first one of the first next vertex and the first previous vertex, the first array element has a first value indicating the first face, and the second array element has a second value indicating the second one of the first next vertex and the first previous vertex.
[0139]In some examples, the first array element and the second array element are indexed based on the first next vertex, and the second array element has the second value indicating the first previous vertex. In an example, to determine the iteration order, a previous vertex of the first vertex in a current face is determined according to an array element that is indexed based a next vertex of the first vertex in the current face, and a next face is determined based on an array element that is indexed based on the previous vertex. The iteration order can have a counter-clockwise orientation.
[0140]In some examples, the first array element and the second array element are indexed based on the first previous vertex, and the second array element has the second value indicating the first next vertex. In an example, to determine the iteration order, a next vertex of the first vertex in a current face is determined according to an array element that is indexed based a previous vertex of the first vertex in the current face; and a next face is determined based on an array element that is indexed based on the next vertex. The iteration order can have a clockwise orientation.
[0141]In some examples, indices of the first array element and the second array element in the array are spaced based on a number of vertices in the polygon mesh. For example, when the first array element is A[w], the second array element is A[w+V], where V is the number of vertices in the polygon mesh, w is an index of a vertex in an example.
[0142]In some examples, indices of the first array element and the second array element in the array are consecutive integers. For example, when the first array element is A[2×w], the second array element is A[2×w+1], where w is an index of a vertex in an example.
[0143]In some examples, a size of the array is configured based on a number of vertices in the polygon mesh. In an example, a size of the array is configured to be twice of a number of vertices in the polygon mesh.
[0144]In some examples, a second incident face set associated with a second vertex is generated, the second incident face set includes a second set of faces that includes the second vertex as an incident vertex. Then, the array is configured according to the second incident face set associated with the second vertex, and an iteration order for processing the second set of faces is determined based on the array.
[0145]Then, the process proceeds to (S1599) and terminates.
[0146]The process (1500) can be suitably adapted. Step(s) in the process (1500) can be modified and/or omitted. Additional step(s) can be added. Any suitable order of implementation can be used.
[0147]According to an aspect of the disclosure, a method of processing mesh is provided. In the method, a conversion between a mesh file and a bitstream of compressed mesh is performed according to a format rule. For example, the bitstream may be a bitstream that is decoded/encoded in any of the decoding and/or encoding methods described herein. The format rule may specify one or more constraints of the bitstream and/or one or more processes to be performed by the decoder and/or encoder.
[0148]In an example, the polygon mesh includes a plurality of vertices that are connected into faces, the faces respectively include lists of incident vertices to the faces, a first face in the faces includes at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face. The format rule specifies that: a first incident face set associated with the first vertex is generated, the first incident face set including a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face; an array is configured according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and an iteration order for processing the first set of faces is determined based on the array.
[0149]It is noted that, in the polygon-fan algorithm that is used to code the connectivity of a polygon mesh, a face degree for each face is coded when the face is visited. Some aspects of the present disclosure provide techniques to code the face degrees in polygon meshes to improve coding efficiency. The techniques to code the face degrees can be applied individually or can be applied by any form of combinations.
[0150]In some examples, during the polygon-fan coding algorithm, at the encoder side, the encoder can analyze the input mesh and determine a face degree mode. In an example, the face degree mode is the most frequent face degree. For example, when the most frequent face degree among the face degrees of the input mesh is 4, the face degree mode is 4.
[0151]In some examples, before traversing the input mesh, an array (e.g., named F) of size equal to the number of vertices of the input mesh can be created, and all the elements in F can be initialized according to the face degree mode. In an example, when the face degree mode is 4, all the elements in the array F are initialized to be 4.
[0152]In some examples, to encode/decode the degree of a currently visiting face around a pivot vertex p, we can use the face degree stored at F[p] to improve the coding the current face degree by the following methods. In an example, F[p] is used to as a prediction of a current face degree and then encode/decode a prediction residual that is a difference between the prediction and the current face degree. In another example, F[p] can be used to determine a context used to encode/decode the current face degree. In another example, F[p] can be used as at least one of a prediction and/or a context to encode/decode the current face degree.
[0153]In some examples, after encoding/decoding of the current face degree, the current face degree can be used to replace the previous value stored at F[p].
[0154]In some examples, the face degree mode is signaled from the encoder to the decoder, so that the decoder can also create the array F and initialize the array F with the face degree mode.
[0155]
[0156]At (S1610), a bitstream including coded information of a polygon mesh is received. The polygon mesh includes vertices that are connected into faces, the coded information indicates connectivity information of the vertices.
[0157]At (S1620), a face degree mode is determined from the coded information of the polygon mesh, the face degree mode indicates a most frequently used face degree in the polygon mesh.
[0158]At (S1630), a current face degree of a face is determined based on the face degree mode.
[0159]In some examples, a prediction of the current face degree of the face is determined based on the face degree mode. A prediction residual is determined (e.g., decoded) from the coded information of the polygon mesh. The current face degree is determined based on a combination of the prediction of the current face degree and the prediction residual.
[0160]In some examples, a syntax element is decoded from the bitstream, the syntax element indicates the face degree mode.
[0161]In some examples, an initiate value of at least a face degree of a face associated with a vertex is set according to the face degree mode.
[0162]In some examples, an array of elements respectively associated with vertices in the polygon mesh is created. The elements in the array can be initiated according to the face degree mode. For example, an element associated with a vertex provides an initial value of face degrees associated with the vertex.
[0163]In some examples, the element associated with the vertex is updated when a face degree of a face incident to the vertex is determined.
[0164]In some examples, a current face degree of a face that is incident to the vertex is determined using the element associated with the vertex as a context.
[0165]Then, the process proceeds to (S1699) and terminates.
[0166]The process (1600) can be suitably adapted. Step(s) in the process (1600) can be modified and/or omitted. Additional step(s) can be added. Any suitable order of implementation can be used.
[0167]
[0168]At (S1710), a face degree mode of a polygon mesh is determined, the polygon mesh includes vertices that are connected into faces, the face degree mode indicates a most frequent face degree in the polygon mesh.
[0169]At (S1720), face degrees of the faces are encoded into a bitstream according to the face degree mode.
[0170]At (S1730), the face degree mode is included in the bitstream.
[0171]In some examples, a prediction of a current face degree of a face is determined based on the face degree mode. A prediction residual is calculated as a difference between the current face degree and the prediction. The prediction residual for the face is encoded into the bitstream.
[0172]In some examples, a syntax element is encoded into the bitstream, the syntax element indicates the face degree mode.
[0173]In some examples, an initiate value of face degrees of faces associated with a vertex is set according to the face degree mode.
[0174]In some examples, an array of elements respectively associated with vertices in the polygon mesh is created. The elements in the array are initiated according to the face degree mode, an element associated with a vertex provides an initial value of face degrees associated with the vertex.
[0175]In some examples, the element associated with the vertex is updated when a face degree of a face incident to the vertex is determined.
[0176]In some examples, a current face degree of a face that is incident to the vertex can be encoded using the element associated with the vertex as a context.
[0177]Then, the process proceeds to (S1799) and terminates.
[0178]The process (1700) can be suitably adapted. Step(s) in the process (1700) can be modified and/or omitted. Additional step(s) can be added. Any suitable order of implementation can be used.
[0179]The techniques described above, can be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. For example,
[0180]The computer software can be coded using any suitable machine code or computer language, that may be subject to assembly, compilation, linking, or like mechanisms to create code comprising instructions that can be executed directly, or through interpretation, micro-code execution, and the like, by one or more computer central processing units (CPUs), Graphics Processing Units (GPUs), and the like.
[0181]The instructions can be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, internet of things devices, and the like.
[0182]The components shown in
[0183]Computer system (1800) may include certain human interface input devices. Such a human interface input device may be responsive to input by one or more human users through, for example, tactile input (such as: keystrokes, swipes, data glove movements), audio input (such as: voice, clapping), visual input (such as: gestures), olfactory input (not depicted). The human interface devices can also be used to capture certain media not necessarily directly related to conscious input by a human, such as audio (such as: speech, music, ambient sound), images (such as: scanned images, photographic images obtain from a still image camera), video (such as two-dimensional video, three-dimensional video including stereoscopic video).
[0184]Input human interface devices may include one or more of (only one of each depicted): keyboard (1801), mouse (1802), trackpad (1803), touch screen (1810), data-glove (not shown), joystick (1805), microphone (1806), scanner (1807), camera (1808).
[0185]Computer system (1800) may also include certain human interface output devices. Such human interface output devices may be stimulating the senses of one or more human users through, for example, tactile output, sound, light, and smell/taste. Such human interface output devices may include tactile output devices (for example tactile feedback by the touch-screen (1810), data-glove (not shown), or joystick (1805), but there can also be tactile feedback devices that do not serve as input devices), audio output devices (such as: speakers (1809), headphones (not depicted)), visual output devices (such as screens (1810) to include CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch-screen input capability, each with or without tactile feedback capability-some of which may be capable to output two dimensional visual output or more than three dimensional output through means such as stereographic output; virtual-reality glasses (not depicted), holographic displays and smoke tanks (not depicted)), and printers (not depicted).
[0186]Computer system (1800) can also include human accessible storage devices and their associated media such as optical media including CD/DVD ROM/RW (1820) with CD/DVD or the like media (1821), thumb-drive (1822), removable hard drive or solid state drive (1823), legacy magnetic media such as tape and floppy disc (not depicted), specialized ROM/ASIC/PLD based devices such as security dongles (not depicted), and the like.
[0187]Those skilled in the art should also understand that term “computer readable media” as used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0188]Computer system (1800) can also include an interface (1854) to one or more communication networks (1855). Networks can for example be wireless, wireline, optical. Networks can further be local, wide-area, metropolitan, vehicular and industrial, real-time, delay-tolerant, and so on. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks to include GSM, 3G, 4G, 5G, LTE and the like, TV wireline or wireless wide area digital networks to include cable TV, satellite TV, and terrestrial broadcast TV, vehicular and industrial to include CANBus, and so forth. Certain networks commonly require external network interface adapters that attached to certain general purpose data ports or peripheral buses (1849) (such as, for example USB ports of the computer system (1800)); others are commonly integrated into the core of the computer system (1800) by attachment to a system bus as described below (for example Ethernet interface into a PC computer system or cellular network interface into a smartphone computer system). Using any of these networks, computer system (1800) can communicate with other entities. Such communication can be uni-directional, receive only (for example, broadcast TV), uni-directional send-only (for example CANbus to certain CANbus devices), or bi-directional, for example to other computer systems using local or wide area digital networks. Certain protocols and protocol stacks can be used on each of those networks and network interfaces as described above.
[0189]Aforementioned human interface devices, human-accessible storage devices, and network interfaces can be attached to a core (1840) of the computer system (1800).
[0190]The core (1840) can include one or more Central Processing Units (CPU) (1841), Graphics Processing Units (GPU) (1842), specialized programmable processing units in the form of Field Programmable Gate Areas (FPGA) (1843), hardware accelerators for certain tasks (1844), graphics adapters (1850), and so forth. These devices, along with Read-only memory (ROM) (1845), Random-access memory (1846), internal mass storage such as internal non-user accessible hard drives, SSDs, and the like (1847), may be connected through a system bus (1848). In some computer systems, the system bus (1848) can be accessible in the form of one or more physical plugs to enable extensions by additional CPUs, GPU, and the like. The peripheral devices can be attached either directly to the core's system bus (1848), or through a peripheral bus (1849). In an example, the screen (1810) can be connected to the graphics adapter (1850). Architectures for a peripheral bus include PCI, USB, and the like.
[0191]CPUs (1841), GPUs (1842), FPGAs (1843), and accelerators (1844) can execute certain instructions that, in combination, can make up the aforementioned computer code. That computer code can be stored in ROM (1845) or RAM (1846). Transitional data can also be stored in RAM (1846), whereas permanent data can be stored for example, in the internal mass storage (1847). Fast storage and retrieve to any of the memory devices can be enabled through the use of cache memory, that can be closely associated with one or more CPU (1841), GPU (1842), mass storage (1847), ROM (1845), RAM (1846), and the like.
[0192]The computer readable media can have computer code thereon for performing various computer-implemented operations. The media and computer code can be those specially designed and constructed for the purposes of the present disclosure, or they can be of the kind well known and available to those having skill in the computer software arts.
[0193]As an example and not by way of limitation, the computer system having architecture (1800), and specifically the core (1840) can provide functionality as a result of processor(s) (including CPUs, GPUs, FPGA, accelerators, and the like) executing software embodied in one or more tangible, computer-readable media. Such computer-readable media can be media associated with user-accessible mass storage as introduced above, as well as certain storage of the core (1840) that are of non-transitory nature, such as core-internal mass storage (1847) or ROM (1845). The software implementing various aspects of the present disclosure can be stored in such devices and executed by core (1840). A computer-readable medium can include one or more memory devices or chips, according to particular needs. The software can cause the core (1840) and specifically the processors therein (including CPU, GPU, FPGA, and the like) to execute particular processes or particular parts of particular processes described herein, including defining data structures stored in RAM (1846) and modifying such data structures according to the processes defined by the software. In addition or as an alternative, the computer system can provide functionality as a result of logic hardwired or otherwise embodied in a circuit (for example: accelerator (1844)), which can operate in place of or together with software to execute particular processes or particular parts of particular processes described herein. Reference to software can encompass logic, and vice versa, where appropriate. Reference to a computer-readable media can encompass a circuit (such as an integrated circuit (IC)) storing software for execution, a circuit embodying logic for execution, or both, where appropriate. The present disclosure encompasses any suitable combination of hardware and software.
[0194]The use of “at least one of” or “one of” in the disclosure is intended to include any one or a combination of the recited elements. For example, references to at least one of A, B, or C; at least one of A, B, and C; at least one of A, B, and/or C; and at least one of A to C are intended to include only A, only B, only C or any combination thereof. References to one of A or B and one of A and B are intended to include A or B or (A and B). The use of “one of” does not preclude any combination of the recited elements when applicable, such as when the elements are not mutually exclusive.
[0195]While this disclosure has described several examples of aspects, there are alterations, permutations, and various substitute equivalents, which fall within the scope of the disclosure. It will thus be appreciated that those skilled in the art will be able to devise numerous systems and methods which, although not explicitly shown or described herein, embody the principles of the disclosure and are thus within the spirit and scope thereof.
[0196]The above disclosure also encompasses the features noted below. The features may be combined in various manners and are not limited to the combinations noted below.
[0197](1). A method of mesh processing, including: receiving a polygon mesh for processing, the polygon mesh including a plurality of vertices that are connected into faces, the faces respectively including lists of incident vertices to the faces, a first face in the faces including at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face; generating a first incident face set associated with the first vertex, the first incident face set including a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face; configuring an array according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and determining an iteration order for processing the first set of faces based on the array.
[0198](2). The method of feature (1), in which the array includes a first array element and a second array element that are configured based on the first face, the first array element and the second array element are indexed based on the first one of the first next vertex and the first previous vertex, the first array element has a first value indicating the first face, and the second array element has a second value indicating the second one of the first next vertex and the first previous vertex.
[0199](3). The method of any of features (1) to (2), in which the first array element and the second array element are indexed based on the first next vertex, and the second array element has the second value indicating the first previous vertex.
[0200](4). The method of any of features (1) to (3), in which the determining the iteration order includes: determining a previous vertex of the first vertex in a current face according to an array element that is indexed based a next vertex of the first vertex in the current face; and determining a next face based on an array element that is indexed based on the previous vertex.
[0201](5). The method of any of features (1) to (4), in which the first array element and the second array element are indexed based on the first previous vertex, and the second array element has the second value indicating the first next vertex.
[0202](6). The method of any of features (1) to (5), in which the determining the iteration order includes: determining a next vertex of the first vertex in a current face according to an array element that is indexed based a previous vertex of the first vertex in the current face; and determining a next face based on an array element that is indexed based on the next vertex.
[0203](7). The method of any of features (1) to (6), in which indices of the first array element and the second array element in the array are spaced based on a number of vertices in the polygon mesh.
[0204](8). The method of any of features (1) to (7), in which indices of the first array element and the second array element in the array are consecutive integers.
[0205](9). The method of any of features (1) to (8), in which the configuring the array includes: configuring a size of the array based on a number of vertices in the polygon mesh.
[0206](10). The method of any of features (1) to (9), in which the configuring the array includes: configuring a size of the array to be twice of a number of vertices in the polygon mesh.
[0207](11). The method of any of features (1) to (10), further including: generating a second incident face set associated with a second vertex, the second incident face set including a second set of faces that includes the second vertex as an incident vertex; configuring the array according to the second incident face set associated with the second vertex; and determining an iteration order for processing the second set of faces based on the array.
[0208](12). A method of processing mesh data, the method including: processing a bitstream of a polygon mesh according to a format rule: the polygon mesh includes a plurality of vertices that are connected into faces, the faces respectively including lists of incident vertices to the faces, a first face in the faces including at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face; the format rule specifies that: a first incident face set associated with the first vertex is generated, the first incident face set including a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face; an array is configured according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and an iteration order for processing the first set of faces is determined based on the array.
[0209](13). A method of mesh decoding, including: receiving a bitstream including coded information of a polygon mesh, the polygon mesh including vertices that are connected into faces, the coded information indicating connectivity information of the vertices; determining a face degree mode from the coded information of the polygon mesh, the face degree mode indicting a most frequent used face degree in the polygon mesh; and determining a current face degree of a face based on the face degree mode.
[0210](14). The method of feature (13), including: determining a prediction of the current face degree of the face based on the face degree mode; determining a prediction residual from the coded information of the polygon mesh; and determining the current face degree based on a combination of the prediction of the current face degree and the prediction residual.
[0211](15). The method of any of features (13) to (14), including: decoding a syntax element from the bitstream, the syntax element indicating the face degree mode.
[0212](16). The method of any of features (13) to (15), including: setting an initiate value of face degrees of faces associated with a vertex according to the face degree mode.
[0213](17). The method of any of features (13) to (16), including: creating an array of elements respectively associated with vertices in the polygon mesh; and initiating the elements in the array according to the face degree mode, an element associated with a vertex being an initial value of face degrees associated with the vertex.
[0214](18). The method of any of features (13) to (17), including: updating the element associated with the vertex when a face degree of a face incident to the vertex is determined.
[0215](19). The method of any of features (13) to (18), including: determining a current face degree of a face that is incident to the vertex using the element associated with the vertex as a context.
[0216](20). A method of mesh encoding, including: determining a face degree mode of a polygon mesh, the polygon mesh including vertices that are connected into faces, the face degree mode indicating a most frequent face degree in the polygon mesh; encoding face degrees of the faces into a bitstream according to the face degree mode; and including the face degree mode in the bitstream.
[0217](21). The method of feature (20), including: determining a prediction of a current face degree of a face based on the face degree mode; determining a prediction residual as a difference between the current face degree and the prediction; and encoding the prediction residual for the face into the bitstream.
[0218](22). The method of any of features (20) to (21), including: encoding a syntax element into the bitstream, the syntax element indicating the face degree mode.
[0219](23). The method of any of features (20) to (22), including: setting an initiate value of face degrees of faces associated with a vertex according to the face degree mode.
[0220](24). The method of any of features (20) to (23), including: creating an array of elements respectively associated with vertices in the polygon mesh; and initiating the elements in the array according to the face degree mode, an element associated with a vertex being an initial value of face degrees associated with the vertex.
[0221](25). The method of any of features (20) to (24), including: updating the element associated with the vertex when a face degree of a face incident to the vertex is determined.
[0222](26). The method of any of features (20) to (25), including: encoding a current face degree of a face that is incident to the vertex using the element associated with the vertex as a context.
[0223](27). A method of processing mesh data, the method including: processing a bitstream of a polygon mesh according to a format rule, in which: the bitstream includes coded information of a polygon mesh, the polygon mesh includes vertices that are connected into faces, the coded information indicates connectivity information of the vertices; and the format rule specifies that: a face degree mode is determined from the coded information of the polygon mesh, the face degree mode indicting a most frequent used face degree in the polygon mesh; and a current face degree of a face is determined based on the face degree mode.
[0224](28). An apparatus for mesh processing, including processing circuitry that is configured to perform the method of any of features (1) to (12).
[0225](29). An apparatus for mesh processing, including processing circuitry that is configured to perform the method of any of features (13) to (19).
[0226](30). An apparatus for mesh processing, including processing circuitry that is configured to perform the method of any of features (20) to (26).
[0227](31). A non-transitory computer-readable storage medium storing instructions which when executed by at least one processor cause the at least one processor to perform the method of any of features (1) to (27).
Claims
What is claimed is:
1. A method of mesh processing, comprising:
receiving a polygon mesh for processing, the polygon mesh including a plurality of vertices that are connected into faces, the faces respectively including lists of incident vertices to the faces, a first face in the faces including at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face;
generating a first incident face set associated with the first vertex, the first incident face set comprising a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face;
configuring an array according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and
determining an iteration order for processing the first set of faces based on the array.
2. The method of
3. The method of
4. The method of
determining a previous vertex of the first vertex in a current face according to an array element that is indexed based a next vertex of the first vertex in the current face; and
determining a next face based on an array element that is indexed based on the previous vertex.
5. The method of
6. The method of
determining a next vertex of the first vertex in a current face according to an array element that is indexed based a previous vertex of the first vertex in the current face; and
determining a next face based on an array element that is indexed based on the next vertex.
7. The method of
8. The method of
9. The method of
configuring a size of the array based on a number of vertices in the polygon mesh.
10. The method of
configuring a size of the array to be twice of a number of vertices in the polygon mesh.
11. The method of
generating a second incident face set associated with a second vertex, the second incident face set comprising a second set of faces that includes the second vertex as an incident vertex;
configuring the array according to the second incident face set associated with the second vertex; and
determining an iteration order for processing the second set of faces based on the array.
12. An apparatus of mesh processing, comprising processing circuitry configured to:
receive a polygon mesh for processing, the polygon mesh including a plurality of vertices that are connected into faces, the faces respectively including lists of incident vertices to the faces, a first face in the faces including at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face;
generate a first incident face set associated with the first vertex, the first incident face set comprising a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face;
configure an array according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and
determine an iteration order for processing the first set of faces based on the array.
13. The apparatus of
14. The apparatus of
15. The apparatus of
determine a previous vertex of the first vertex in a current face according to an array element that is indexed based a next vertex of the first vertex in the current face; and
determine a next face based on an array element that is indexed based on the previous vertex.
16. The apparatus of
17. The apparatus of
determine a next vertex of the first vertex in a current face according to an array element that is indexed based a previous vertex of the first vertex in the current face; and
determine a next face based on an array element that is indexed based on the next vertex.
18. The apparatus of
19. The apparatus of
20. A method of processing mesh data, the method comprising:
processing a bitstream of a polygon mesh according to a format rule:
the polygon mesh includes a plurality of vertices that are connected into faces, the faces respectively including lists of incident vertices to the faces, a first face in the faces including at least a first vertex, a first previous vertex of the first vertex, a first next vertex of the first vertex in a first list of vertices that are incident to the first face;
the format rule specifies that:
a first incident face set associated with the first vertex is generated, the first incident face set including a first set of faces that includes the first vertex as an incident vertex, the first incident face set including the first face;
an array is configured according to the first incident face set associated with the first vertex, the array including one or more array elements that are configured based on the first face, the one or more array elements being indexed based on a first one of the first next vertex and the first previous vertex, the one or more array elements having values indicating at least one of the first face and/or a second one of the first next vertex and the first previous vertex; and
an iteration order for processing the first set of faces is determined based on the array.