Filter 2
Filter 2
Filter 2
+
dxdy vy ux y x f i dxdy vy ux y x f
dxdy e y x f v u F
vy ux i
often described by magnitude ( )
and phase ( )
) (
1
0
1
0
N
n l
M
m k
i
M
k
N
l
kl mn
e f F
+
=
t
In the discrete case with values f
kl
of f(x,y) at points (kw,lh) for
k= 1..M-1, l= 0..N-1
) ( ) (
2 2
F F + 9
)
) (
) (
arctan(
F
F
9
Remember Convolution
1/9.(10x1 + 11x1 + 10x1 + 9x1 + 10x1 + 11x1 + 10x1 + 9x1 + 10x1) =
1/9.( 90) = 10
10
11 10
9
10
11
10 9
10
1
10
10
2
9
0
9
0
9
9
9
9
0
1
99
10
10 11
1 0
1
11
11
11
11
10 10
I
1
1
1
1
1
1
1
1
1
F
X
X X
X
10
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X X
1/9
O
Examples
Transform of
box filter is
sinc.
Transform of
Gaussian is
Gaussian.
(Trucco and Verri)
Implications
Smoothing means removing high
frequencies. This is one definition of scale.
Sinc function explains artifacts.
Need smoothing before subsampling to
avoid aliasing.
Example: Smoothing by
Averaging
Smoothing with a Gaussian
Sampling
Sampling and the Nyquist rate
Aliasing can arise when you sample a continuous
signal or image
Demo applet
http://www.cs.brown.edu/exploratories/freeSoftware/repository/edu/brown/cs/explo
ratories/applets/nyquist/nyquist_limit_java_plugin.html
occurs when your sampling rate is not high enough to
capture the amount of detail in your image
formally, the image contains structure at different scales
called frequencies in the Fourier domain
the sampling rate must be high enough to capture the
highest frequency in the image
To avoid aliasing:
sampling rate > 2 * max frequency in the image
i.e., need more than two samples per period
This minimum sampling rate is called the Nyquist rate