12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 3705|回复: 16
打印 上一主题 下一主题

[其它] Robust Adaptive Sampling For Monte-Carlo-Based Rendering

[复制链接]

797

主题

1

听众

1万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
5568
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2012-1-3 10:47:28 |只看该作者 |倒序浏览
1 Introduction

Computation times of Monte-Carlo-based rendering methods can

be lowered by correctly focusing processing power on the parts

of the image where convergence is harder to reach. This can be

done efficiently by estimating each pixel’s error, or better, using a

measure of quality of the pixel (such as entropy-based methods).

However, since these last methods do not uniformize the error over

the pixels, they are not very well suited for progressive or timeconstrained

computations.

As each pixel value is an estimation, a natural error measure is variance.

A problem is that tonemapping can make bright and dim

regions look similarly bright in the final image. Absolute variance

cannot be used directly and relative error measures should be used

instead. During Monte-Carlo rendering, error measures are often

computed from the previous xi radiance samples. Therefore, pixel

sampling depends on the error estimate, which itself depends on

pixel sampling, leading to a poor estimate of the actual error for

pixels whose initial error estimate is low.

In this work, we define a robust error estimator to obtain accurate

error estimates, additionally alternating between uniform and adaptive

sampling to consistently reduce the error estimate variance for

all pixels. We show in Figure 1 and its caption that our algorithm

is robust, and performs similarly to state-of-the-art entropy-based

methods [Xu et al. 2007], while leading naturally to uniform error

over the pixels.

2 Robust Error-Based Adaptive Sampling

Robust error estimate: A theoretical relative error measure of the

current estimate is er(Ip) = Var(Ip)=E[X]2 = Var(xi)=(Np 

E[X]2), where Var(xi) is the experimental variance of the Np xi

radiance values and E[X] is the expected value of the radiance random

variable X. As the variance decreases linearly with the number

of samples, sampling according to er(Ip) tends to uniformize

the error over the pixels. E[X] being unknown, we need to estimate

it. Ip itself is the standard estimator for E[X], giving an error

fpajot,barthe,pauling@irit.fr

estimate ea(Ip) = Var(xi)=(Np  I2

p ). However, when few samples

are much larger than the actual estimate – because of imperfect

importance sampling –, ea(Ip) largely under-estimates er(Ip).

Instead, we compute, for each pixel, an approximate medianMx of

the samples xi which are in a neighborhood of width h, and use it

to compute a robust error measure em(Ip) = Var(xi)=(NpM2

x).

h should be set to the width of the reconstruction filter, to naturally

handle visual edges, being caused by geometry, textures, shadows,

caustics, etc.. We compute Mx as the average of the medians computed

on small chunks of Nc elements of the sequence xi. We use

Nc = 10 to have a good estimate and a low memory overhead.

When Mx is 0, we resort to the standard ea(Ip) error measure.

Figure 1(a) shows that when increasing the number of outliers No

or their value during sampling, the ratio of errors ea(Ip)=er(Ip)

rapidly drops to zero, while our estimate remains a good approximation

of er(Ip) even for large outlier values.

Alternating between uniform and adaptive sampling: Instead of

using adaptive sampling and recomputing the probabilities every

Na samples, we alternate between adaptive sampling for Na samples,

and uniform pixel selection for Nu samples, with Nu larger

than the number of pixels in the image. The error estimates are then

updated once the Na + Nu samples have been computed. This ensures

that all error estimates receive samples, while still focusing

on pixels with larger errors. Note that alternation can be used with

any existing adaptive sampling algorithm to make it more robust.

Complete adaptive sampling algorithm: (1) a fixed number of

samples (for instance two) are shot per pixel. As we use a neighborhood

of pixels to evaluate the error at each pixel, only a few samples

are required to begin using adaptive sampling. (2) Compute error

estimates. Compute a maximum error such that 95% of the computed

errors are below. This avoids focusing processing power on

few pixels with very inaccurate and over-estimated errors. Set the

pixel probabilities accordingly to the clamped errors. (3) Compute

Na + Nu samples, using adaptive and uniform sampling. For each

sample, update the data required for the computation of the error

estimates. Loop back to step (2).

References

XU, Q., SBERT, M., XING, L., AND ZHANG, J. 2007. A novel

adaptive sampling by tsallis entropy. In CGIV ’07, 5–10.
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2012-1-23 23:19:20 |只看该作者
祝你新年很灿烂,牛气哄哄冲霄汉,祝你明年业务多,好运连连一火车,祝你工作小轻松,玩玩闹闹很成功,祝你身体特别好,吃嘛嘛香没烦恼。
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-2-8 23:31:29 |只看该作者
我看看就走,你们聊!
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-3-3 23:30:09 |只看该作者
长了不少见识
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-3-30 23:29:55 |只看该作者
凡系斑竹滴话要听;凡系朋友滴帖要顶!
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

6#
发表于 2012-4-26 23:24:06 |只看该作者
不错啊 经典
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

7#
发表于 2012-4-30 23:19:27 |只看该作者
我来顶个
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

8#
发表于 2012-5-8 23:19:44 |只看该作者
真是不错啊
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2012-6-6 23:20:39 |只看该作者
我看看就走,你们聊!
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

10#
发表于 2012-8-24 00:10:19 |只看该作者
顶!学习了!阅!
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-24 02:00 , Processed in 0.824306 second(s), 28 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部