filters all will be made clear bill thomson, city hospital birmingham
TRANSCRIPT
![Page 1: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/1.jpg)
Filters
All will be made clear
Bill Thomson , City hospital Birmingham
![Page 2: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/2.jpg)
Familiar Fourier Facts
a n1
LL
L
xf x( ) cosn xL
d
a 0
21
n
a n cosn x
Lb n sin
n xL
=
b n1
LL
L
xf x( ) sinn xL
d
F [g(s)*h(s)] = F [g(s)] x F [h(s)]
Fundamental convolution theorem
![Page 3: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/3.jpg)
Question?
What is Butterworth?
80p a pound !!? ? ? ?
![Page 4: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/4.jpg)
Filters
• Simple overview only
• No Maths
• What is Butterworth?
• Why Frequency? - Fourier
(Well , only a little!)
![Page 5: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/5.jpg)
Use 1D profile data
0 20 40 60
pixels
counts
profile
![Page 6: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/6.jpg)
Who to blame? Fourier
Jean Baptiste Joseph Fourier Auxerre , 1768 - 1830 nearly became a priest studied with Lagrange , Laplace arrested twice, nearly guillotined scientific adviser to Napoleon in Egypt theory of heat transfer used series of
sines , cosines 15 years before accepted and published
![Page 7: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/7.jpg)
Fourier analysis
Represent a function by sums of sin and cos terms
easier maths
need to consider frequencies
![Page 8: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/8.jpg)
sines and cosines
A
wavelength
A = size (amplitude)
Wavelength = distance (cm , pixels etc)
frequency = 1 / wavelength (cm-1 , pixels-1)
Amplitude = same
wavelength = 1/2
frequency = double
A
wavelength
![Page 9: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/9.jpg)
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
1st harmonic
Count Profile - Fourier fit
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 1 harmonic
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
2nd harmonic
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 2 harmonics
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
3rd harmonic
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 3 harmonics
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
4th harmonic
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 4 harmonics
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
co
un
ts
8th harmonic
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 8 harmonics
![Page 10: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/10.jpg)
Amplitude - Frequency plot
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
1st harmonic
0
0.2
0.4
0.6
0.8
1
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1
amp
litu
de
amp . freq
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
2nd harmonic
0
0.2
0.4
0.6
0.8
1
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1
amp
litu
de
amp . freq
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
3rd harmonic
0
0.2
0.4
0.6
0.8
1
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1
amp
litu
de
amp . freq
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
co
un
ts
8th harmonic
0
0.2
0.4
0.6
0.8
1
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1
amp
litu
de
amp . freq
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data
![Page 11: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/11.jpg)
What Happens to Noisy Data?
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data
0
40
80
120
160
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 3 harmonics
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data 8 harmonics
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixelsc
ou
nts
8th harmonic
![Page 12: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/12.jpg)
-40
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data
-4
-3
-2
-1
0
1
2
3
4
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1am
plit
ud
e
amp . freq
Power Spectrum
Normally plot (Amplitude)2 against frequency , on log scale
-4
-3
-2
-1
0
1
2
3
4
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1am
plit
ud
e
amp . freq
0
40
80
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pixels
cou
nts
profile data
![Page 13: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/13.jpg)
Tomography back projection
![Page 14: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/14.jpg)
Blurring of back projection
Each true count is ‘blurred’ by 1/r function
X Y Z( )
![Page 15: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/15.jpg)
How can we remove the 1/r blurring?
True data ‘blurred’ by 1/r = Back projection data
taking Fourier transform, F
‘blurring’ becomes simple multiplication
F (1/r) becomes 1/
so converting to Fourier , F i.e. in frequency terms
F(true data) x 1/ = F(back projection data)
F(true data) = F(back projection data) x
![Page 16: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/16.jpg)
Ramp Function
F(true data) = F(back projection data) x
0
0.2
0.4
0 0.1 0.2 0.3 0.4 0.5
frequency - pixels-1
am
pli
tud
e
Problem !Amplifies higher frequencies
Noise at higher frequencies
Need to stop at a frequency which contains most signaland little noise
In theory , all done!
![Page 17: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/17.jpg)
Butterworth Filter
Used to ‘cut-off’ the ramp effect
has two components -
order
cut-off
![Page 18: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/18.jpg)
Butterworth Settings
![Page 19: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/19.jpg)
Butterworth Filter
Butterworth cut-off 0.3
0
0.2
0.4
0.6
0.8
1
1.2
0 0.2 0.4 0.6
Frequency
order 3 order 6 order 9 order 12
Butterworth order 6
0
0.2
0.4
0.6
0.8
1
1.2
0 0.2 0.4 0.6
Frequency
0.25 0.3 0.35 0.4
![Page 20: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/20.jpg)
Wiener Filter
Restorative filter amplifies mid range
frequencies depends on resolution (MTF)
and noise must have MTF file for
isotope and collimator factor ‘tweaks’ noise
component trust computer selection!
MTF()
MTF() 2 + 1/SNR()
SNR()=Object power
Noise power x multiplier
![Page 21: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/21.jpg)
Maximum cut-off ?
data sample at 2x highest freq in the data pixel is smallest sample so, freqmax = 0.5 pixel-1
highest freq in patient data 1 cm-1
sample at 2cm-1 , pixel size 5mm
64x64 = 8mm 128 x128 = 3.6mm
• Sample = FWHM / 3 • resolution 15 - 18mm• sample at 5 - 6 mm
![Page 22: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/22.jpg)
Automatic Filter
Uses power spectrum
10% noise means ‘rejects’ 90% of noise
based on analysis of four images
suggest use it for most clinical imaging
![Page 23: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/23.jpg)
Software Revision
128 x 128 Butterworth , power spectrum changed
Spatial Frequency (cycles/ pixel) Spatial Frequency (cycles/ 2pixels)
![Page 24: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/24.jpg)
Resolution effects
Resolution depends on
detector resolution
cut-off frequency of filter
if filter cutoff is low , filter determines resolution
![Page 25: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/25.jpg)
Tomographic Noise
Cannot ignore noise in samplingNot simple ‘Poisson’ - complexproportional to
square root of cts per pixel (N) 1/2
fourth root of total pixels (P) 1/4
for the same ‘signal to noise’improve spatial resolution by 2counts must increase by 8
![Page 26: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/26.jpg)
Bone images
Wiener Butterworth
![Page 27: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/27.jpg)
Heart Images
Butterworth filter Wiener filter
![Page 28: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/28.jpg)
2D Fourier
![Page 29: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/29.jpg)
2D Filter of a Duck
2D Fouriertransform
Inverse Fourier
![Page 30: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/30.jpg)
Partial Volume Effect
=FWHM x2x0.5
![Page 31: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/31.jpg)
Cylinder phantom
low pass Wiener
![Page 32: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/32.jpg)
Phantom Study
Two holes separated by diameter
‘building blocks’ join together
fill with Tc99m , tomo scan in water8mm 9mm 10mm 11mm 12mm 13mm
![Page 33: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/33.jpg)
Twin hole phantom
Wiener Best ButterworthCut –off 0.45 pixel-1
Poor ButterworthCut off 0.26 pixel-1
![Page 34: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/34.jpg)
Multi Hole Phantom
Hi-res coll
Butterworth
Gen purpose
Butterworth
Hi-res
Wiener
![Page 35: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/35.jpg)
Heart phantom Study
![Page 36: Filters All will be made clear Bill Thomson, City hospital Birmingham](https://reader030.vdocuments.us/reader030/viewer/2022032517/56649cbb5503460f94982e14/html5/thumbnails/36.jpg)
Conclusions
Filter choice still very user dependent
essentially a balance of noise / detail
frequency needed for the maths behind the scenes
check if cycles/cm , cycles/pixel , cycles/(2 pixels)
higher frequencies needed for detail / resolution
Remember partial volume effect