H (X) F " G F (# X) G (X $ # X) D# X: Convolution 1D Convolution Theorem Example
H (X) F " G F (# X) G (X $ # X) D# X: Convolution 1D Convolution Theorem Example
Definition
f " g # F $G
Symmetric Theorem: Multiplication in the space
domain is equivalent to convolution in the frequency
domain.
!
f "g # F $G
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
g(x,y)
F(sx,sy)
h(x,y)
"
"
!
"
"
G(sx,sy)
H(sx,sy)
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
frequency domain
,
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Sampling
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Reconstruction
band limited
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
In math forms
Reconstruction filters
!
!
!
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Aliasing
increase sample
spacing in
spatial domain
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Aliasing
decrease sample
spacing in
frequency domain
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
high-frequency
details leak into
lower-frequency
regions
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Sampling theorem
Sampling theorem
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Sampling theorem
For band limited functions, we can just
increase the sampling rate
However, few interesting functions in computer
graphics are band limited, in particular,
functions with discontinuities.
It is primarily because the discontinuity always
falls between two samples and the samples
provides no information about this
discontinuity.
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Aliasing
Antialiasing
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Antialiasing (Prefiltering)
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Antialiasing (Prefiltering)
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Antialiasing (Prefiltering)
Uniform supersampling
Increasing the sampling rate moves each copy
of the spectra further apart, potentially
reducing the overlap and thus aliasing
Resulting samples must be resampled (filtered)
to image sampling rate
Samples
Pixel
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Point
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
4x4 Supersampled
Exact Area
4x4 Supersampled
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Non-uniform sampling
Uniform sampling
Non-uniform sampling
Samples at non-uniform locations have a different spectrum; a
single spike plus noise
Sampling a signal in this way converts aliases into broadband
noise
Noise is incoherent (structureless), and much less
objectionable
i=#+
&
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Jittered sampling
4x4 Uniform
Add uniform random jitter to each sample
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Example
Blue noise
Spectrum should be noisy and lack any
concentrated spikes of energy (to avoid
coherent aliasing)
Spectrum should have deficiency of lowfrequency energy (to hide aliasing in less
noticeable high frequency)
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Aliasing
frequency
domain
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Stochastic sampling
function (a)
function (b)
alias=false
frequency
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Stochastic sampling
function (a)
Replace structure
alias by structureless
(high-freq) noise
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
An ineffective sampler
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Random sampling
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Stratified sampling
a pixel
Subdivide the sampling domain into nonoverlapping regions (strata) and take a single
sample from each one so that it is less likely to
miss important features.
completely
random
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Stratified sampling
stratified
uniform
stratified
jittered
turns aliasing
into noise
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Stratified sampling
random
stratified
jittered
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
High dimension
Stratified sampling
image
time
lens
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless
Stratified sampling
slide credits: Yung-Yu Chuang, Pat Hanrahan, Torsten Moller and Brian Curless