The prevalence of three-dimensional (3D) scanners and depth cameras greatly simplifies geometric modelling procedures, and enables people to easily obtain a 3D shape from the real world. Different from a 3D mesh manually created by artists, noise in a scanned 3D mesh is always very significant. The “noise” here refers to random signal interference suffered by the 3D mesh when being scanned or photographed. Various factors can introduce such noises, e.g., limited device precision, material attributes of a real world object, errors in a reconstruction process, and so on. As such, removing noises from the scanned 3D mesh becomes an essential task in 3D geometric processing.
In accordance with implementations of the subject matter described herein, a data-driven solution for denoising a mesh is proposed. For a mesh including a facet, a noisy normal and a ground-truth normal of a first facet in the mesh is obtained. Then, based on the noisy normal, a first geometric feature of the first facet is determined from a plurality of neighboring facets of the first facet in the mesh. Next, based on the first geometric feature and the ground-truth normal, a mapping from the first geometric feature to the ground-truth normal of the first facet is determined for denoising the mesh.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Throughout the drawings, the same or similar reference symbols are used to indicate the same or similar elements.
The subject matter described herein will now be discussed with reference to several example implementations. It is to be understood these implementations are discussed only for enabling those skilled persons in the art to better understand and thus implement the subject matter described herein, rather than suggesting any limitations on the scope of the subject matter.
As used herein, the term “includes” and its variants are to be read as opened terms that mean “includes, but is not limited to.” The term “or” is to be read as “and/or” unless the context clearly indicates otherwise. The term “based on” is to be read as “based at least in part on.” The term “one implementation” and “an implementation” are to be read as “at least one implementation.” The term “another implementation” is to be read as “at least one other implementation.” The terms “first,” “second,” “third” and the like may refer to different or same elements. Other definitions, explicit and implicit, can be included below. A definition of a term is consistent throughout the description unless the context clearly indicates otherwise.
In addition, the term “mesh” refers to a representation of a 3D geometric model. Point sampling may be performed on an object in a 3D coordinate system. These sample points may be connected in a certain order into a series of small planes (triangle, or coplanar quadrangle or pentagon). These small planes are also referred to as facets. In this way, the sampled object may be composed of a number of facets, like a mesh, and is thus referred to as a mesh. In the context of the present disclosure, the principle and idea of implementations of the subject matter described herein are mainly illustrated in conjunction with a mesh. Besides the mesh, the 3D geometric model may also be represented by point cloud. The point cloud is a geometric model with discrete sampling points as primitives. Any currently known or future developed methods may be utilized to reconstruct the point cloud into a mesh. For example, a plurality of neighboring sampling points in the point cloud may be used to construct a small plane (like a facet in the mesh). Therefore, implementations of the subject matter described herein are also suitable for the point cloud.
As described above, it is an essential task in geometric processing to remove noises from a scanned mesh. A fundamental object of mesh denoising is to recover its ground-truth surface from a noisy surface of the object. The existing denoising algorithms are filter-based approaches. For example, a specific filter such as a bilateral filter may be designed, and “trial and error” may be applied to select parameters for the filter so as to reach a satisfactory denoising effect. However, the whole process may be cumbersome. Besides, the existing denoising algorithms usually assume statistical characteristics of the noise. For example, they may assume that the noise is Gaussian-like distributed, which maybe not necessarily true in real data. For a noise originated from many factors (such as the scanning device, the scanning environment, and material of the object, etc.), the characteristics of the noise may be complex. Therefore, the existing denoising algorithms that assume statistical characteristics of the noise cannot effectively remove the noise.
In order to solve the problems above and one or more of other potential problems, a solution of mesh denoising is provided in accordance with example implementations of the subject matter described herein. As described above, the mesh may be composed of a number of facets. Each of the facets may have a straight line (also referred to as a normal line) vertical to the facet. The direction of the straight line may be referred to as “normal.” Therefore, the procedure of mesh denoising may comprise recovering corresponding ground-truth normals from noisy normals of a series of facets in a mesh, and updating vertex positions of the mesh based on these ground-truth normals.
As illustrated in
During the model training phase, the model training system 110 may be configured to receive training data 130 and generate a model 140 based on the training data 130. The training data 130 may be a dataset including noisy normals and corresponding ground-truth normals of a series of facets in the mesh. The model 140 for mesh denoising may be generated by the model training system 110 based on the training data 130. The model 140 may represent a mapping from a noisy normal to a ground-truth normal of a facet.
During the model application phase, the model application system 120 may be configured to receive the model 140 and input data 150, and generate the output data 160 based on the model 140 and the input data 150. The input data 150 may indicate a group of noisy normals of the mesh. The model application system 120 may map, by using the model 140, the group of noisy normals to a corresponding group of ground-truth normals, i.e., the output data 160. Based on the output data 160, vertex positions of the mesh may be updated, thereby implementing the mesh denoi sing.
The method 200 starts from step 210. In step 210, the model training system 110 obtains noisy normals and ground-truth normals of one or more facets in a mesh. At the ease of depiction, the facet processed here is referred to as “a first facet.” The noisy normal and ground-truth normal of the first facet may form the training data 130 as illustrated in
Next, the method 200 proceeds to step 220. In step 220, the model training system 110 determines a first geometric feature of the first facet from a plurality of neighboring facets of the first facet in the mesh. In some implementations, the “neighboring facets” may include a facet that shares a vertex and/or edge with the first facet. In some implementations, the “neighboring facets” may include a facet with a distance from its centroid to the centroid of the first facet being less than a predetermined threshold. In addition, in some implementations, the “neighboring facets” may include all facets in the mesh. In some implementations, normal changes and position changes between the first facet and a plurality of neighboring facets may be filtered to generate a feature vector representing the first geometric feature. For example, a plurality of neighboring facets may be selected based on the impact range of the filtering parameters.
Taking a 3D triangular mesh (i.e., each facet in the mesh is a triangular facet) as an example, the mesh may be represented as M=(V, F), where V={vi} may represent a set of vertices and F={fi} may represent a set of facets. The centroid of facet fi may be represented as ci, and the normal of the facet fi may be represented as ni.
In some implementations, bilateral filtering may be performed on the normal changes and the position changes between the first facet and the plurality of neighboring facets to generate a feature vector representing the first geometric feature. For example, the (k+1)-th iteration of the bilateral filter may be defined as follows:
where nj represents an initial noisy normal of facet fi. nik represents a filtered normal of the facet fi that has been subjected to k times of iterations; when k=0, nik represents the initial noisy normal of the facet fi. Aj represents an area of the facet fi. In equation (1) (and all of the following equations), the operator “·” represents a product. Ws and Wr are monotonically decreasing weighting functions characterizing the positional similarity and the normal similarity between a pair of facets, respectively. For example, a Gaussian function W94(x)=exp(−x2/(2σ2)) may be used, then the standard deviations of Ws and Wr are σs and σr, respectively. Ki=Σf
where P={(σs
Alternatively, or in addition, in some implementations, in order to handle a higher level of noise, the normal changes and the position changes between the first facet and the plurality of neighboring facets may be guided filtered to generate a feature vector representing the first geometric feature. The guided filter is also referred to as a joint bilateral filter. Because the guide filter introduces a reliable guidance to the bilateral filter, it is more robust to a high-level noise. For example, the guided filter may be defined as below:
where g(·) represents a predefined guidance of facet normals. For example, in one implementation, a Gaussian normal filter may be used as the guidance, i.e.,
where {tilde over (K)}i=∥(Σf
The equation (3) may be represented as Gσ
Si represented by the equation (4) may also be referred to as a guided filtered normal descriptor (G-FND). For a mesh with large noises, G-FND is more robust than B-FND in distinguishing major features while B-FND is more sensitive to weak features than G-FND.
It should be understood that besides the bilateral filter and guided filter mentioned above, other robust filters may also be utilized to generate a feature vector representing the first geometric vector. The scope of the subject matter described here is not limited in this aspect.
By collecting the normal descriptors of all facets in the mesh, a feature vector set (denoted as Ω) may be obtained. A feature vector Si in Ω contains a sequence of filtered facet normal. Alternatively, or in addition, further processing may be performed on the feature vectors in Ω. For example, an individual feature vector Si in Ω may be aligned. It is supposed that that Si includes d filtered normals: m1, m2, . . . , md, a normal tensor Ti=Σj=1dmjmjT may be constructed. The three eigenvectors of the matrix Ti define a rotation matrix Ri from a local coordinate system where a filtered facet normal in Si is located to the global coordinate system (i.e., the coordinate system where the mesh is located). By multiplying each mj with Rj−1, the feature vector Si may be aligned. After all of the feature vectors in Ω are aligned, a principle component analysis (PCA) may be performed to reduce dimensions of the feature vectors. A dimension of a feature vector refers to a number (e.g., d) of the filtered normals included in the feature vector. The number of principal components may be determined by preserving at least 90% of the feature energy, e.g., may be determined to be 3. In addition, a clustering algorithm may also be used to cluster the feature vectors with or without dimensionality reduction.
Next, the method 200 proceeds to step 230. In step 230, the model training system 110 determines, based on the first geometric feature and the ground-truth normal, a mapping from the first geometrical feature to a ground-truth normal of the first facet for denoising the mesh.
In some implementations, the mapping from the first geometric feature to the ground-truth normal of the first facet may be determined by using a regression analysis. The regression analysis is a method of determining a dependency between two or more variables. For example, the regression analysis may build a regression model by specifying a cause-and-effect relationship between the geometric feature and the ground-truth normal of a facet, resolve each of parameters of the model based on training data, and then evaluate whether the regression model can fit the training data well.
As an example, in some implementations, the mapping from the first geometric feature to the ground-truth normal of the first facet may be determined by generating a regression tree representing the mapping. In this aspect,
In step 310, at each node of the regression tree, a first regression model is trained with a set of training data associated with the node. For example, at the root node of the regression tree, the set of training data may include the first geometric feature and the ground-truth normal of each of the plurality of facets in the mesh. The set of training data at the root node may be represented as X={Si,
For example, in some implementations, a single-hidden layer feed forward network (SLFN) model may be selected as a regression model, and the regression model may be trained based on an extreme learning machine (ELM) technology. An essence of ELM lies in that weights of the hidden layer may be randomly generated without tuning.
For a set of training data with N samples, the ELM with L hidden nodes may be represented by the following equation (5):
β(Si)=(Σj=1Lβj,1θ(aj, bj, Si), Σj=1Lβj,2θ(aj, bj, Si), Σj=1L↑j,3θ(aj, bj, Si)) (5)
where i=1, . . . , N. β(Si) denotes an expected facet normal from the regression, which is a three-dimensional vector. Each weight in the output weight vector {circumflex over (β)}={βj,1, βj,2, βj,3; j=1, . . . , L} is associated with one dimension of β(Si). θ(aj, bj, Si) denotes an activation function of the hidden node. For example, θ(aj, bj, Si) may be set as a sigmoid function, and represented by the following equation (6):
where aj and bj are hidden node weights randomly selected from intervals [−1, 1]M and [0, 1] respectively, M denotes the dimension of the vector Si. The output weight vector {circumflex over (β)} is unknown in ELM, which may be determined by resolving an LP regularized least square problem. {circumflex over (β)} may be represented by the following equation (7):
{circumflex over (β)}=argmin Σi=1N∥β(Si)−
A cost function of the regression may be represented by the following equation (8):
E=Σ
i=1
N∥β(Si)−
For example, the norm p in the equations (7) and (8) may be set to 1, thereby reducing a negative effect caused by outliers in the set of training data by optimizing ∥β(Si)−
β(l+1)=argmin Σi=1N(∥β
where l represents the number of iterations. Once the output weights are known, the ELM may predict the noise-free facet normal.
In some implementations, the first regression model may be trained based on the ELM technology at each node of the regression tree. The fitting error of the first regression model, for example, may be computed as E0 according to the equation (8) above.
In step 320, a plurality of subsets of training data are obtained from the set of training data. For example, as mentioned above, the set of training data may be clustered into a plurality of clusters using PCA. Of course, any other appropriate technologies or algorithms may be used in conjunction with the subject matter described here for clustering the set of training data into a plurality of clusters. For example, any currently known or future developed clustering methods may be used.
In step 330, a plurality of second regression models are trained with the plurality of subsets of training data. For example, the plurality of second regression models may be trained for the plurality of subsets of training data based on a neural network technology. The manner of training a second regression model is identical to the manner of training the first regression model as described in step 310, which will not be further detailed here.
Next, the method 300 proceeds to step 340. In step 340, in response to a sum of fitting errors of the plurality of second regression models being less than a predetermined error threshold, a plurality of child nodes of the node are generated. For example, if the sum of fitting errors of the plurality of second regression models is less than 2% of E0, the plurality of child nodes of the node may be generated. Each of the child nodes is associated with one subset of training data.
Next, in step 350, it is determined whether the number of leaf nodes (i.e., nodes without child nodes) of the regression tree reaches a predetermined threshold. For example, the predetermined threshold may be set to 8. When the number of leaf nodes of the regression tree is greater than or equal to 8, the regression tree stops growing (i.e., the method 300 ends). When the number of leaf nodes of the regression tree is less than 8, steps 310-350 are iteratively executed, till the number of leaf nodes of the regression tree reaches 8.
It should be understood that besides the SLFN model as described above, other models may also be used as the regression model. The scope of the subject matter described herein is not limited in this aspect.
In some implementations, a mapping from the first geometric feature to the ground-truth normal of the first facet may be determined by generating cascaded regression trees. Cascading of a plurality of regression trees can implement a smaller fitting error (i.e., a lower cost function value). In this aspect,
In step 410, a first regression tree representing the mapping is generated based on the first geometric feature and the ground-truth normal, the first regression tree mapping the first geometric feature to a first normal representing the ground-truth normal of the first facet. For example, the first regression tree may be generated using the method 300 as described with respect to
In step 420, a second geometric feature of the first facet is determined based on the first normal. For example, a feature vector representing the second geometric feature of the first facet may be determined in the same manner as step 220 of the method 200 as described with respect to
Next, the method 400 proceeds to step 430. In step 430, a second regression tree cascaded with the first regression tree is generated. For example, the second regression tree may be generated using the method 300 as described in conjunction with
It should be understood that in order to further reduce the fitting error, a third regression tree cascaded with the second regression tree, a fourth regression tree cascaded with the third regression tree, and the like may be further generated. The number of the generated cascaded regression trees, for example, may be determined based on a predetermined fitting error threshold, and the scope of the subject matter as described here is not limited in this aspect. In addition, in order to process a set of training data with a larger error, for example, G-FND may be used to train the first regression tree such that the output of the first regression tree has a smaller error. Then, B-FND may be extracted based on the output of the first regression tree. Because B-FND is more sensitive to sharp features of the mesh, B-FND may be used to train the second regression tree cascaded with the first regression tree.
Therefore, through the methods 200, 300 and/or 400 described above in conjunction with
In step 510, noisy normals of one or more facets in the mesh are obtained by the model application system 120. At the ease of depiction, the facet processed here is referred to as “a second facet.” The noisy normal of the second facet may form the input data 150 as shown in
Next, the method 500 proceeds to step 520. In step 520, a third geometric feature of the second facet is determined from a plurality of neighboring facets of the second facet in the mesh. For example, a feature vector representing the third geometric feature of the second facet may be determined in a same manner as the step 220 of the method 200 described with reference to
Then, in step 530, a ground-truth normal of the second facet is determined based on the third geometric feature and the mapping. The ground-truth normal of the second facet may form the output data 160 as illustrated in
In some implementations, the mapping from the geometric feature to the ground-truth normal of the facet may be represented by a plurality of cascaded regression trees. For example, suppose the mapping from the geometric feature of the facet to the ground-truth normal is represented by the cascaded first and second regression trees. In this example, the method 500 may be firstly executed as mentioned above so as to determine a third normal of the second facet based on the noisy normal of the second facet and the first regression tree. Then, the method 500 may be executed repeatedly to determine the ground-truth normal of the second facet based on the third normal of the second facet and the second regression tree. For example, the third normal of the second facet may be obtained (510). Then, a fourth geometric feature of the second facet may be determined based on the third normal of the second facet (520). Finally, the ground-truth normal of the second facet may be determined based on the fourth geometric feature and the second regression tree (530).
Alternatively, or in addition, after the ground-truth normals of facets in the mesh are obtained, vertex positions of the mesh may be updated using these ground-truth normals. For example, the updated vertex positions may be obtained by resolving a non-linear minimization problem represented by the following equation (10):
Minimizev Σf
where V denotes a set of vertices, {
Alternatively, or in addition, the apparatus 600 may also comprise an input data obtaining module configured to obtain a noisy normal of a second facet in the mesh. The apparatus 600 may also comprise a third geometric feature determining module configured to determine, based on the noisy normal of the second facet, a third geometric feature of the second facet from a plurality of neighboring facets of the second facet in the mesh. In addition, the apparatus 600 may also comprise an output data determining module configured to determine a ground-truth normal of the second facet based on the third geometric feature and the mapping.
For the sake of clarity,
As shown in
The computing system/server 700 typically includes a variety of machine readable medium. Such medium may be any available medium that is accessible by the computing system/ server 700, including volatile and non-volatile medium, removable and non-removable medium. The memory 720 may be volatile memory (e.g., registers, cache, a random-access memory (RAM)), non-volatile memory (e.g., a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a flash memory), or some combination thereof. The storage 750 may be removable or non-removable, and may include machine readable medium such as flash drives, magnetic disks or any other medium which can be used to store information and which can be accessed within the computing system/server 700.
The computing system/server 700 may further include other removable/non-removable, volatile/non-volatile computing system storage medium. Although not shown in
A program/utility tool 722 having a set (at least one) of the program modules 724 may be stored in, for example, the memory 720. Such program modules 724 include, but are not limited to, an operating system, one or more applications, other program modules, and program data. Each or a certain combination of these examples may include an implementation of a networking environment. The program modules 724 generally carry out the functions and/or methodologies of implementations of the subject matter described herein, for example, the method 200, 300, 400 and/or the method 500.
The input unit(s) 730 may be one or more of various different input devices. For example, the input unit(s) 730 may include a user device such as a mouse, keyboard, trackball, etc. The communication unit(s) 760 enables communication over communication medium to another computing entity. Additionally, functionality of the components of the computing system/server 700 may be implemented in a single computing machine or in multiple computing machines that are able to communicate over communication connections. Thus, the computing system/server 700 may operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another common network node. By way of example, and not limitation, communication media include wired or wireless networking techniques.
The computing system/server 700 may also communicate, as required, with one or more external devices (not shown) such as a storage device, a display device, and the like, one or more devices that enable a user to interact with the computing system/server 700, and/or any device (e.g., network card, a modem, etc.) that enables the computing system/server 700 to communicate with one or more other computing devices. Such communication may be performed via an input/ output (I/O) interface(s) (not shown).
Through the above descriptions, it will be understood that implementations of the subject matter described herein do not need to make any assumption to the statistical characteristics of the noise; instead, it learns how to map noisy data to its corresponding ground-truth data from training data comprising the scanned noisy data and its corresponding ground-truth data. Therefore, implementations of the subject matter described herein can be applied to any 3D scanners and can easily remove unknown noises. The feature vectors referred to as the filtered normal descriptors, as proposed in the implementations of the subject matter described herein, are robust to various noises. The process of determining the mapping from the noisy normal to the ground-truth normal by training cascaded regression trees, as proposed in the implementations of the subject matter as described herein, is fast and the generated regression models can effectively remove noises in the data.
The functionally described herein can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-Programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
Program code for carrying out methods of the subject matter described herein may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowcharts and/or block diagrams to be implemented. The program code may execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine readable medium may be any tangible medium that may contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine readable medium may be a machine readable signal medium or a machine readable storage medium. A machine readable medium may include but not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine readable storage medium would include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are described in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are contained in the above discussions, these should not be construed as limitations on the scope of the subject matter described herein, but rather as descriptions of features that may be specific to particular implementations. Certain features that are described in the context of separate implementations may also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation may also be implemented in multiple implementations separately or in any suitable sub-combination.
Some implementations of the subject matter described herein are listed below.
In a first aspect, an electronic device is provided. The device comprises at least one processing unit and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to: obtain a noisy normal and a ground-truth normal of a first facet in a mesh; determine, based on the noisy normal, a first geometric feature of the first facet from a plurality of neighboring facets of the first facet in the mesh; and determine, based on the first geometric feature and the ground-truth normal, a mapping from a first geometric feature to the ground-truth normal of the first facet for denoising the mesh.
In some implementations, determining the first geometric feature comprises: filtering, by a filter, normal changes and position changes between the first facet and the plurality of neighboring facets so as to generate a feature vector representing the first geometric feature.
In some implementations, the filter comprises a bilateral filter.
In some implementations, the filter comprises a guided filter.
In some implementations, determining the mapping comprises: determining, based on the first geometric feature and the ground-truth normal, the mapping by using regression analysis.
In some implementations, determining the mapping by using the regression analysis comprises: generating, based on the first geometric feature and the ground-truth normal, a first regression tree representing the mapping, the first regression tree mapping the first geometric feature to a first normal representing the ground-truth normal.
In some implementations, generating the first regression tree comprises iteratively executing the following operations at least once, till a number of leaf nodes of the first regression tree reaching a predetermined threshold: at each node of the first regression tree, training a first regression model with a set of training data associated with the node, the set of training data including a first geometric feature and a ground-truth normal of each of a plurality of facets in the mesh; obtaining a plurality of subsets of training data from the set of training data; training a plurality of second regression models with the plurality of subsets of training data; and in response to a sum of fitting errors of the plurality of second regression models being less than a predetermined error threshold, generating a plurality of child nodes of the node.
In some implementations, determining the mapping by using the regression analysis further comprises: determining, based on the first normal, a second geometric feature of the first facet; and generating, based on the second geometric feature and the ground-truth normal, a second regression tree cascaded with the first regression tree, the second regression tree mapping the second geometric feature to the second normal representing the ground-truth normal, and an error between the second normal and the ground-truth normal being less than an error between the first normal and the ground-truth normal.
In some implementations, the instructions, when executed by the at least one processing unit, further causing the device to: obtain a noisy normal of a second facet in the mesh; determine, based on the noisy normal of the second facet, a third geometric feature of the second facet from a plurality of neighboring facets of the second facet in the mesh; and determine, based on the third geometric feature and the mapping, a ground-truth normal of the second facet.
In a second aspect, a method for denoising a mesh including a facet is provided. The method comprises: obtaining a noisy normal and a ground-truth normal of a first facet in a mesh; determining, based on the noisy normal, a first geometric feature of the first facet from a plurality of neighboring facets of the first facet in the mesh; and determining, based on the first geometric feature and the ground-truth normal, a mapping from the first geometric feature to the ground-truth normal of the first facet for denoising the mesh.
In some implementations, determining the first geometric feature comprises: filtering normal changes and position changes between the first facet and the plurality of neighboring facets so as to generate a feature vector representing the first geometric feature.
In some implementations, the filtering comprises: performing bilateral filtering on the normal changes and the position changes between the first facet and the plurality of neighboring facets.
In some implementations, the filtering comprises: performing guided filtering on the normal changes and the position changes between the first facet and the plurality of neighboring facets.
In some implementations, determining the mapping comprises: determining, based on the first geometric feature and the ground-truth normal, the mapping by using regression analysis.
In some implementations, determining the mapping by using the regression analysis comprises: generating, based on the first geometric feature and the ground-truth normal, a first regression tree representing the mapping, the first regression tree mapping the first geometric feature to a first normal representing the ground-truth normal.
In some implementations, generating the first regression tree comprises iteratively executing the following operations at least once, till a number of leaf nodes of the first regression tree reaching a predetermined threshold: at each node of the first regression tree, training a first regression model with a set of training data associated with the node, the set of training data including a first geometric feature and a ground-truth normal of each of a plurality of facets in the mesh; obtaining a plurality of subsets of training data from the set of training data; training a plurality of second regression models with the plurality of subsets of training data; and in response to a sum of fitting errors of the plurality of second regression models being less than a predetermined error threshold, generating a plurality of child nodes of the node.
In some implementations, determining the mapping by using the regression analysis further comprises: determining, based on the first normal, a second geometric feature of the first facet; and generating, based on the second geometric feature and the ground-truth normal, a second regression tree cascaded with the first regression tree, the second regression tree mapping the second geometric feature to the second normal representing the ground-truth normal, and an error between the second normal and the ground-truth normal being less than an error between the first normal and the ground-truth normal.
In some implementations, the method further comprises: obtaining a noisy normal of a second facet in the mesh; determining, based on the noisy normal of the second facet, a third geometric feature of the second facet from a plurality of neighboring facets of the second facet in the mesh; and determining, based on the third geometric feature and the mapping, a ground-truth normal of the second facet.
In a third aspect, a computer program product is provided. The computer program product is tangibly stored on a non-transient machine-readable medium and comprises machine-executable instructions, the instructions, when executed on a device, causing the device to perform steps of the method according to the first aspect.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter specified in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Number | Date | Country | Kind |
---|---|---|---|
201610285481.4 | Apr 2016 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2017/078352 | 3/28/2017 | WO | 00 |