Lecture 4
Lecture 4
Fourier Convolution
Outline
Review linear imaging model
Instrument response function vs Point spread function
Convolution integrals
• Fourier Convolution
• Reciprocal space and the Modulation transfer function
Optical transfer function
Examples of convolutions
Fourier filtering
Deconvolution
Example from imaging lab
• Optimal inverse filters and noise
IRF(x, y | x0 , y0 ) S (x x0 ) (y y0 )
Of course we want the entire output from the whole object function,
E(x, y) I(x, y)S (x x0 ) (y y0 )dxdydx0dy0
E(x, y) I(x, y)IRF(x, y | x0 , y0 )dxdydx0 dy0
and so we need to know the IRF at all points.
Now in addition to every point being mapped independently onto the detector,
imaging that the form of the mapping does not vary over space (is independent of
r0). Such a mapping is called isoplantic. For this case the instrument response
function is not conditional.
IRF(x, y | x0 , y0 ) PSF(x x0 , y y0 )
The Point Spread Function (PSF) is a spatially invariant approximation of the IRF.
E(x, y) I (x0 , y0 )PSF(x x0 , y y0 )dx0 dy0
or,
f gg f
associative:
f (g h) ( f g) h
f (g h) f g f h
f g F(k) G(k)
where,
f (x) F(k)
g(x) G(k)
f g F(k) G(k)
?
15 15
10 10
5 5
-3 -2 -1 1 2 3 -3 -2 -1 1 2 3
f g f (x)g(x'x)dx
The inverse FT of f(x) is,
1
f (x) F(k)eikx dk
2
1
g(x'x) G(k' )eik'(x'x )dk'
2
1
ik'x' 1
f g dkF(k) dk'G(k')e eix(k k')dx
2 2
(kk')
or,
1
f g dkF(k) dk'G(k')eik'x' (k k')
2
Integration over the delta function selects out the k’=k value.
1
f g dkF(k)G(k)eikx'
2
1
f g dkF(k)G(k)eikx'
2
f g F(k) G(k)
E(x, y) I(x, y)S (x x0 ) (y y0 )dxdydx0 dy0
E(x, y) I(x, y)IRF(x, y | x0 , y0 )dxdydx0 dy0
22.058 - lecture 4, Convolution and Fourier Convolution
Optics with lens
‡ Input bit mapped image
sharp = Import @" sharp . bmp" D;
Dimensions @s D
80 120
100
60
80
40 60
40
20
20 40 60 80 100 120
0
0 20 40 60 80 100 120 Ö Graphics Ö
100 15
80 12.5
10
60
7.5
40
5
1000
800
600
400
200
20 40 60 80 100 120
Ö Graphics Ö
22.058 - lecture 4, Convolution and Fourier Convolution
Optics with lens
2D FT
ftcrop = Fourier @crop D;
120
120
100
100
80
80
60
60
40
40
20
20
0
0
0 20 40 60 80 100 120
0 20 40 60 80 100 120
800
120 600
400
100
200
80
20 40 60 80 100 120
60
40 1000
800
20
600
0
400
0 20 40 60 80 100 120
200
20 40 60 80 100 120
300
120
250
200
100
150
80
100
50
60
20 40 60 80 100 120
40
200
20
150
0
100
0 20 40 60 80 100 120
50
20 40 60 80 100 120
100 100
80 80
60 60
40 40
20 20
0 0
0 20 40 60 80 100 120 0 20 40 60 80 100 120
120
120
100
100
80
80
60
60
40
40
20
20
0
0
0 20 40 60 80 100 120
0 20 40 60 80 100 120
1000
800
120
600
100 400
200
80
20 40 60 80 100 120
60
1400
40
1200
1000
20
800
600
0
0 20 40 60 80 100 120 400
200
20 40 60 80 100 120
300
250 250
200
200
150
150
100
100
50
20 40 60 80 100 120
20 40 60 80 100 120
200
150 200
150
100
100
50
20 40 60 80 100 120
20 40 60 80 100 120
1200
1000
200
8
20 40 60 80 100 120
6
1000
4
800
2
600
20 40 60 80 100 120
400
Ö Graphics Ö
200
20 40 60 80 100 120
20 40 60 80 100 120
20 40 60 80 100 120
22.058 - lecture 4, Convolution
Ö Graphics Öand Fourier Convolution
Filtered FT to determine PSF of Pinhole
MTF = Abs @pinhole Dê Abs @image D;
6 1
0.75
4
0.5
2 0.25
Filter
Ö Graphics= Table
Ö @Exp @- Abs @x - 64 Dê 15 D, 8x , 0 , 128 <D êê N;
0.8
0.6
0.4
0.2
20 40 60 80 100 120
22.058 - lectureÖ4, Convolution and Fourier Convolution
Ö Graphics