Page 1
CS148: Introduction to Computer Graphics and Imaging
Sampling and Aliasing
CS148 Lecture 15
Pat Hanrahan, Winter 2009
Key Concepts
Sampling
Aliasing
Nyquist frequency
Filters and convolution
Antialiasing

This
** preview**
has intentionally

**sections.**

*blurred***to view the full version.**

*Sign up*
Page 2
Sampling
CS148 Lecture 15
Pat Hanrahan, Winter 2009
Image Generation = Sampling
Rasterization is performed by testing whether a point
is inside a triangle
More generally, evaluate a function at a point
for( int x = 0; x < xmax; x++ )
for( int y = 0; y < ymax; y++ )
I[x][y] = f( float(x), float(y));
Take a continuous function f and convert to set of
samples I, a discrete representation of the func.