Sampling Understanding Lesson
Sampling Understanding Lesson
No Jaggies
Key Concepts
Frequency space
Filters and convolution
Sampling and the Nyquist frequency
Aliasing and Antialiasing
cos 2πx
CS148 Lecture 13
sin 2πx Pat Hanrahan, Fall 2011
Frequencies cos 2πf x
1
f= f =1
T
cos 2πx
f =2
cos 4πx
CS148 Lecture 13 Pat Hanrahan, Fall 2011
Euler’s Formula
sin(2π/32)x
sin(2π/16)y
−r 2 /162
e
Filtering
My Humble Frequencies
Filters = Convolution
Convolution
1 3 0 4 2 1
1 2
Convolution
1 3 0 4 2 1
1 2
1*1+3*2=7
1 3 0 4 2 1
1 2
3*1+0*2=3
7 3
Convolution
1 3 0 4 2 1
1 2
0*1+4*2=8
7 3 8
Box Filter
1 1
1 1
Efficiency?
http://www.michaelbach.de/ot/mot_wagonWheel/
“Aliases”
Nyquist Frequency
Antialiasing
Simple idea:
Original
Filtered
CS148 Lecture 13 Pat Hanrahan, Fall 2011
Point Area
Jaggies Prefilter
CS148 Lecture 13 Pat Hanrahan, Fall 2011
Signal processing
Frequency domain vs. spatial domain
Filters in the frequency domain
Filters in the spatial domain = convolution
Sampling and aliasing
Image generation involves sampling
May also sample geometry, motion, …
Nyquist frequency is ½ the sampling rate
Frequencies above the Nyquist frequency
appear as other frequencies – aliases
Antialiasing – Filter before sampling
CS148 Lecture 13 Pat Hanrahan, Fall 2011
Extra Slides
Supersampling
Supersampling
4 x 4 supersampling