{"id":868,"date":"2022-09-16T13:48:10","date_gmt":"2022-09-16T13:48:10","guid":{"rendered":"http:\/\/summergeometry.org\/sgi2022\/?p=868"},"modified":"2022-09-16T13:48:10","modified_gmt":"2022-09-16T13:48:10","slug":"mesh-denoising-in-flatland","status":"publish","type":"post","link":"https:\/\/summergeometry.org\/sgi2022\/mesh-denoising-in-flatland\/","title":{"rendered":"Mesh denoising in flatland"},"content":{"rendered":"\n<p class=\"has-text-align-center wp-block-paragraph\">by Hector Chahuara, Anna Krokhine and Elshadai Tegegn<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Controlling caustics is a difficult task as any change to specular surface can have large effects on the caustic image. In this post, we address a building block of the optimization framework for computing the shape of refractive objects presented in Schwartzburg et al (2014) and propose to improve a building block on its formulation that performs a mesh reconstruction. The proposed improvement was tested on flatland meshes and performs reasonably well in the presence of noise.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Theory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Regularization is a technique often needed in optimization for enforcing certain characteristics such as sparsity or stability in the solution. In this particular case, Schwartzburg et al (2014) apply a&nbsp; generalized Tikhonov regularization to achieve a stable solution. Given the optimization-based formulation of Schwartzburg et al (2014), it is possible to isolate this problem and to see that this is in fact mesh denoising. In addition, it is important to mention that Tikhonov regularization is usually outperformed by other methods, among which total variation (TV) denoising distinguishes itself by its reasonable computational cost and good results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the following, we apply the framework described in Zhang et al (2015) that applies TV to the noisy normalized normals N<sub>0<\/sub> of a mesh, then the optimization problem to solve becomes<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">min<sub>N<\/sub> ||N-N<sub>0<\/sub>||<sup>2<\/sup> + \u03bb.WVTV(N),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">where WVTV&nbsp;is a weighted vectorial TV version, adapted from the one described in Zhang et al (2015) for flatland, defined as<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">WVTV(N) = \u03a3<sub>e<\/sub>\u03c9<sub>e<\/sub> (l<sub>e<\/sub>(D<sub>x<\/sub>N)<sup>2<\/sup>+(D<sub>y<\/sub>N)<sup>2<\/sup>)<sup>0.5<\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">l<sub>e<\/sub> is the length of the edge \u201ce\u201d, &nbsp;and the weights \u03c9<sub>e<\/sub> , dependent on the difference of two consecutive normals N<sub>i<\/sub> and N<sub>i+1<\/sub>&nbsp;i.e. normals that correspond to adjacent edges are defined as<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">\u03c9<sub>e<\/sub>=exp(-||N<sub>i<\/sub>-N<sub>i+1<\/sub>||<sup>4<\/sup>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to penalize less sharp features (high difference between consecutive normals) than the smooth ones (similar consecutive normals). It is important to mention that TV denoising is a non-smooth optimization problem, so a solver that rely solely on gradient or Hessian information could not reach the optimum. By using the iteratively reweighted least squares (IRLS) Wolke et al (1988), a well-known method for optimization, it is straightforward to build an algorithmto solve this problem .<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Results<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The described approach was implemented in MATLAB R2021b. Visual results can be observed in the following animations that show the denoising process of two figures corrupted by noise: a square and a circle.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"344\" style=\"aspect-ratio: 434 \/ 344;\" width=\"434\" controls src=\"http:\/\/summergeometry.org\/sgi2022\/wp-content\/uploads\/2022\/08\/out5-1.mp4\"><\/video><figcaption>Denosing procedure of a square mesh<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"344\" style=\"aspect-ratio: 434 \/ 344;\" width=\"434\" controls src=\"http:\/\/summergeometry.org\/sgi2022\/wp-content\/uploads\/2022\/08\/out4-2.mp4\"><\/video><figcaption>Denoising procesdure of a circle mesh<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The implemented method yields reasonable results for the presented cases. While this exploratory experiments indicate that the method has the potential to improve results if embedded in the general caustics framework. Nonetheless, more experiments are needed to confirm this and to assess the impact on the quality of the result.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Y. Schwartzburg, R. Testuz, A. Tagliasacchi, and M. Pauly, \u201cHigh-contrast computational caustic design, \u201c ACM Trans. Graph. 33, 4, 2014<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">H. Zhang, C. Wu, J. Zhang and J. Deng, &#8220;Variational Mesh Denoising Using Total Variation and Piecewise Constant Function Space,&#8221; in&nbsp;<em>IEEE Transactions on Visualization and Computer Graphics<\/em>, vol. 21, no. 7, pp. 873-886, 1 July 2015<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wolke, R., Schwetlick, H., \u201cIteratively Reweighted Least Squares: Algorithms, Convergence Analysis, \u201c and Numerical Comparisons.&nbsp;<em>SIAM Journal on Scientific and Statistical Computing, 9<\/em>, 907-921, 1988<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">L. Condat, \u201cDiscrete total variation: New definition and minimization,\u201d&nbsp;<em>SIAM Journal on Imaging Sciences<\/em>, vol. 10, no. 3, pp. 1258-1290, 2017<\/p>\n","protected":false},"excerpt":{"rendered":"<p>by Hector Chahuara, Anna Krokhine and Elshadai Tegegn Introduction Controlling caustics is a difficult task as any change to specular surface can have large effects on the caustic image. In this post, we address a building block of the optimization framework for computing the shape of refractive objects presented in Schwartzburg et al (2014) and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-868","post","type-post","status-publish","format-standard","hentry","category-research"],"_links":{"self":[{"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/posts\/868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":2,"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":987,"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/posts\/868\/revisions\/987"}],"wp:attachment":[{"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summergeometry.org\/sgi2022\/wp-json\/wp\/v2\/tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}