Professional Documents
Culture Documents
Sampling (Section 4.3) : CS474/674 - Prof. Bebis
Sampling (Section 4.3) : CS474/674 - Prof. Bebis
Sampling (Section 4.3) : CS474/674 - Prof. Bebis
3)
CS474/674 Prof. Bebis
Sampling
Example
Sampling a 1D function
Multiply f(x) with s(x) (i.e., train of impulses)
sampled f(x)
F(u)
1
x
1
x
So:
1
x
1
x
x
y
f(x,y)s(x,y)
F(u,v)*S(u,v)
Effect of x (contd)
But, if the periods overlap, we cannot anymore isolate
a single period aliasing!
u
vmax
umax
v
Example
Suppose that we have an imaging system where the
number of samples it can take is fixed at 96 x 96
pixels.
Suppose we use this system to digitize checkerboard
patterns.
Such a system can resolve patterns that are up to 96 x
96 squares (i.e., 1 x 1 pixel squares).
What happens when squares are less than 1 x 1 pixels?
Example (contd)
Example (contd)
square size:
16 x 16
6x6
(same as
12 x 12
squares)
square size:
0.9174 x 0.9174
0.4798 x 0.4798
Practical Issues
Band-limited functions have infinite duration in the
time domain.
But, we can only sample a function over a finite
interval!
*
instead of this!
Anti-aliasing
In practice, aliasing in almost inevitable!
The effect of aliasing can be reduced by smoothing
the input signal to attenuate its higher frequencies.
This has to be done before the function is sampled.
Many commercial cameras have true anti-aliasing filtering
built in the lens of the sensor itself.
Most commercial software have a feature called antialiasing which is related to blurring the image to reduce
aliasing artifacts (i.e., not true anti-aliasing)
Example
50% less samples
3 x 3 blurring and
50% less samples