使用均值-方差统计的近似程序平滑及其在程序着色器带宽限制中的应用
Approximate Program Smoothing Using Mean-Variance Statistics, with Application to Procedural Shader Bandlimiting
摘要:
本文介绍了一种用高斯核函数逼近任意程序卷积的一般方法。这个过程具有使程序平滑的效果。我们的编译器框架模型的中间值在程序中作为随机变量,通过使用均值和方差统计。我们的方法打破了输入程序的部分,并涉及不同部分的统计,平滑过程。我们给出了几个可用于程序不同部分的近似值。这些包括Dorn等人的近似,一种新的自适应高斯近似,蒙特卡罗采样,和compatible支持的内核。我们的自适应高斯近似是准确的二阶的平滑内核的标准偏差,数学平滑。我们将展示如何构建一个编译器,适用于选定的近似输入程序的给定部分。由于每个表达式都有多个近似值选择,因此我们使用遗传搜索来自动选择最佳近似值。我们应用这个框架的问题,自动bandlimiting程序着色程序。我们评估我们的方法对各种复杂的着色器,包括着色器与视差映射,动画,和空间变化的统计。由此产生的平滑着色程序优于以前的方法,无论是数值上,美学上,由于我们的近似平滑属性。
英文摘要:
This paper introduces a general method to approximate the convolution of an arbitrary program with a Gaussian kernel. This process has the effect of smoothing out a program. Our compiler framework models intermediate values in the program as random variables, by using mean and variance statistics. Our approach breaks the input program into parts and relates the statistics of the different parts, under the smoothing process. We give several approximations that can be used for the different parts of the program. These include the approximation of Dorn et al., a novel adaptive Gaussian approximation, Monte Carlo sampling, and compactly supported kernels. Our adaptive Gaussian approximation is accurate up to the second order in the standard deviation of the smoothing kernel, and mathematically smooth. We show how to construct a compiler that applies chosen approximations to given parts of the input program. Because each expression can have multiple approximation choices, we use a genetic search to automatically select the best approximations. We apply this framework to the problem of automatically bandlimiting procedural shader programs. We evaluate our method on a variety of complex shaders, including shaders with parallax mapping, animation, and spatially varying statistics. The resulting smoothed shader programs outperform previous approaches both numerically, and aesthetically, due to the smoothing properties of our approximations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。