FOURIER ANALYSIS OF NUMERICAL INTEGRATION IN MONTE CARLO RENDERING
Kartic Subr Gurprit Singh Wojciech Jarosz
Heriot Watt University, Edinburgh Dartmouth College Dartmouth College
FOURIER ANALYSIS OF NUMERICAL INTEGRATION IN MONTE CARLO RENDERING - - PowerPoint PPT Presentation
FOURIER ANALYSIS OF NUMERICAL INTEGRATION IN MONTE CARLO RENDERING Kartic Subr Gurprit Singh Wojciech Jarosz Heriot Watt University, Edinburgh Dartmouth College Dartmouth College Motivation for
Kartic Subr Gurprit Singh Wojciech Jarosz
Heriot Watt University, Edinburgh Dartmouth College Dartmouth College
[Subr et al 2014]
method 1 method 2 method 3 method 4 [Subr et al 2014]
method 1 method 2 method 3 method 4 [Subr et al 2014] method 4 is best method 4 is worst
method 1 method 2 method 3 method 4 [Subr et al 2014] method 4 is worst method 4 is best
Preliminaries Sampling Formal treatment
30m 30m 20m
OpenGL
[Stachowiak 2010]
Raytracing
[Whitted 1980]
camera obscura
geometry/projection for pin-hole model known since 400BC radiometrically accurate simulation is important for photorealism
[photo credit: videomaker.com June 2015]
geometry/projection for pin-hole model known since 400BC radiometrically accurate simulation is important for photorealism
[photo credit: videomaker.com June 2015]
OpenGL
[Stachowiak 2010]
Raytracing
[Whitted 1980]
Pedro Campos
manually painted photograph
Colourbox.com
computer generated
lenses defocus materials light, media exposure time
12
Image ? virtual light emitter virtual camera virtual scene: geometry + materials exitant radiance estimate incident radiance at all pixels
W m2 Sr
13
radiance:
14
radiance:
15
radiance:
16
Image ? virtual light emitter virtual camera
17
Image ? virtual light emitter virtual camera
18
radiance integral operator emitted radiance
Light Transport Operators [Arvo 94] The Rendering equation [Kajiya 86]
19
One bounce Three bounces radiance integral operator emitted radiance
X Y X Y ground truth (high-res) image reconstruct on (low-res) pixel grid
X Y X Y reconstruct on (low-res) pixel grid ground truth (high-res) image
sampling
copy
X Y X Y ground truth (high-res) image reconstruct on (low-res) pixel grid
X Y X Y multi-sampling average
X Y X Y
X Y X Y multi-sampling
weighted average
multi-sampling for reconstruction deterministic
multi-sampling for reconstruction multi-path sampling for integration estimate per sampled pixel
path 1 path 2 path 3
estimate (probabilistic for Monte Carlo)
29
n-dimensional path space
light camera light paths
each sample represents a path and has an associated radiance value
30
n-dimensional path space pixels on sensor
31
n-dimensional path space pixels on sensor path-space integration (projection) pixels on sensor reconstruction using integrated radiance pixel value (radiance)
n-dimensional path space pixels on sensor path-space integration (projection) pixels on sensor integrated radiance pixel value (radiance) local variation/ anisotropy? use in regression/reconstruction local variation of integrand reconstruction filter [Ramamoorthi et al. 04] [Durand et al. 05] [Soler et al. 2009] [Overbeck et al. 2009] [Egan et al. 2009, 2011] [Ramamoorthi et al. 2012]
n-dimensional path space local variation/ anisotropy? pixels on sensor [Durand 2011] [Ramamoorthi et al. 12] [Subr and Kautz 2013] [Pilleboue et al. 2015]
Assessing MSE, bias, variance and convergence
Fourier spectrum of the sampling function.
n-dimensional path space [Durand 2011] [Ramamoorthi et al. 12] [Subr and Kautz 2013] [Pilleboue et al. 2015]
Assessing MSE, bias, variance and convergence
Fourier spectrum of the sampling function.
n-dimensional path space local variation/ anisotropy?
Assessing MSE, bias, variance and convergence
Fourier spectrum of the sampling function.
[Durand 2011] [Ramamoorthi et al. 12] [Subr and Kautz 2013] [Pilleboue et al. 2015]
n-dimensional path space
Assessing MSE, bias, variance and convergence
Fourier spectrum of the sampling function.
[Durand 2011] [Ramamoorthi et al. 12] [Subr and Kautz 2013] [Pilleboue et al. 2015]
n-dimensional path space local variation/ anisotropy?
Assessing MSE, bias, variance and convergence
Fourier spectrum of the sampling function.
[Durand 2011] [Ramamoorthi et al. 12] [Subr and Kautz 2013] [Pilleboue et al. 2015]
Shiny ball, out of focus Shiny ball in motion … image location multi-dim integral Domain: shutter time x aperture area x 1st bounce x 2nd bounce Integrand: radiance (W m-2 Sr-1) … …
38
39
integrand sampling function sampled integrand multiply
40
integrand sampled function multiply sampling function
41
42
analyse sampling function in Fourier domain
43
scaling
scaling projection
Image credit: Wikipedia
primal (space, time, etc.) domain Fourier domain
projection onto sin and cos frequency frequency domain
frequency amplitude = 1 phase
approximating a square wave using 4 sinusoids
frequency
amplitude (sampling spectrum) phase (sampling spectrum) 51
sampling function
+ + +
primal Fourier Dirac delta Fourier transform Frequency Real Imaginary Complex plane amplitude phase
primal Fourier Dirac delta Fourier transform Frequency Real Imaginary Complex plane Real Imaginary Complex plane
= + + + primal Fourier = + + + Fourier transform
Real Imaginary Complex plane 5 1 2 3 4 5 At a given frequency 3 2 4 1 sampling function
sampling spectrum Complex plane 5 3 2 4 1 centroid given frequency
sampling spectrum realizations expected centroid centroid variance given frequency
expected amplitude of sampling spectrum variance of sampling spectrum frequency DC
sampling function in the Fourier domain
frequency
amplitude (sampling spectrum) phase (sampling spectrum) 60
Sampler (Strategy 1)
Fourier transform
draw realizations of sampling functions realizations of sampling spectra
61
Sampler (Strategy 1) Sampler (Strategy 2)
Instances of sampling functions Instances of sampling spectra
Which strategy is better? Metric? 62
estimated value (bins) frequency reference Estimator 2 Estimator 1
Estimator 2 is unbiased but has higher variance 63
High variance High bias
predict as a function of sampling strategy and integrand 64
where
where
where
light transport & integration high-dimensional sampling sampling function & spectrum
f S
average
error prediction
light transport & integration high-dimensional sampling sampling function & spectrum
f S
average
error prediction Gurprit Wojciech
72 n-dimensional path space pixels on sensor path-space integration (projection) pixels on sensor integrated radiance pixel value (radiance) local variation/ anisotropy? use in regression/reconstruction