Filter Issues Bill Thomson City Hospital, Birmingham.

21
Filter Issues Filter Issues Bill Thomson City Hospital, Birmingham

description

Fourier analysis Represent a function by sums of ‘sin’ and ‘cos’ terms Represent a function by sums of ‘sin’ and ‘cos’ terms easier maths easier maths need to consider frequencies need to consider frequencies

Transcript of Filter Issues Bill Thomson City Hospital, Birmingham.

Page 1: Filter Issues Bill Thomson City Hospital, Birmingham.

Filter IssuesFilter IssuesBill Thomson City Hospital, Birmingham

Page 2: Filter Issues Bill Thomson City Hospital, Birmingham.

Use 1D profile dataUse 1D profile data

0 20 40 60pixels

counts

profile

Page 3: Filter Issues Bill Thomson City Hospital, Birmingham.

Fourier analysisFourier analysis

Represent a function by sums Represent a function by sums of ‘sin’ and ‘cos’ termsof ‘sin’ and ‘cos’ terms

easier mathseasier maths

need to consider frequenciesneed to consider frequencies

Page 4: Filter Issues Bill Thomson City Hospital, Birmingham.

sines and cosinessines 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 5: Filter Issues Bill Thomson City Hospital, Birmingham.

-40

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

1st harmonic

Count Profile - Fourier fitCount 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

coun

ts

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

coun

ts

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

coun

ts

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

coun

ts

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

coun

ts

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

coun

ts

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

pixelsco

unts

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

coun

ts

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

pixelsco

unts

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

coun

ts

profile data 8 harmonics

Page 6: Filter Issues Bill Thomson City Hospital, Birmingham.

Amplitude - Frequency plotAmplitude - 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

coun

ts

1st harmonic

-40

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

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

coun

ts

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

coun

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

coun

ts

profile data

Special case - if a thin line source , get Modulation Transfer Function

0

10

20

30

40

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1am

plitu

de

0

10

20

30

40

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1am

plitu

de

0

10

20

30

40

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1am

plitu

de

0

10

20

30

40

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1am

plitu

de

0

0.2

0.4

0.6

0.8

1

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1am

plitu

de

Page 7: Filter Issues Bill Thomson City Hospital, Birmingham.

What Happens to Noisy Data?What Happens to Noisy Data?

-40

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

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

coun

ts

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

coun

ts

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

coun

ts

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

pixelsco

unts

profile data 8 harmonics

Page 8: Filter Issues Bill Thomson City Hospital, Birmingham.

Power SpectrumPower Spectrum

-40

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

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

plitu

de

amp . freq

Normally plot (Amplitude)2 against frequency , on log scale

-40

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

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

plitu

de

amp . freq

Page 9: Filter Issues Bill Thomson City Hospital, Birmingham.

Maximum Frequency - Maximum Frequency - NyquistNyquist

-1

1 2 3 4 5 6 7 8 9 10 11

pixels

1 2 3 4 5 6 7 8 9 10 11pixels

Maxfrequency

Wavelength 2 pixels

Max frequency (Nyquist) 0.5 pixels-1

In practice, maximum frequency relates to resolution

Page 10: Filter Issues Bill Thomson City Hospital, Birmingham.

Frequency - PixelsFrequency - Pixels-1-1 or cm or cm-1 -1 ??

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

0

0.2

0.4

0.6

0.8

1

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1

ampl

itude

0

0.2

0.4

0.6

0.8

1

0 0.3 0.6 0.9 1.2 1.5 1.8

frequency - cm-1

ampl

itude

0

40

80

120

1 4 7 10 13 16 19 22 25 28 31

pixels

coun

ts

0

0.2

0.4

0.6

0.8

1

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1

ampl

itude

0

0.2

0.4

0.6

0.8

1

0 0.3 0.6 0.9 1.2 1.5 1.8

frequency - cm-1

ampl

itude

Page 11: Filter Issues Bill Thomson City Hospital, Birmingham.

Resolution and filter cut-offResolution and filter cut-off

-40

0

40

80

120

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

pixels

coun

ts

profile data

FWHM = 3 pixels Equivalent cut-off freq = 1/3 = 0.33pixels-1

0

0.2

0.4

0.6

0.8

1

0 0.1 0.2 0.3 0.4 0.5

frequency - pixels-1

ampl

itude

amp . freq

Literature , pixel size = FWHM / 3

Page 12: Filter Issues Bill Thomson City Hospital, Birmingham.

Butterworth SettingsButterworth Settings

Page 13: Filter Issues Bill Thomson City Hospital, Birmingham.

Automatic FilterAutomatic Filter Uses power spectrumUses power spectrum

10% noise means ‘rejects’ 90% of noise10% noise means ‘rejects’ 90% of noise

based on analysis of four images based on analysis of four images

suggest use it for most clinical imagingsuggest use it for most clinical imaging

Page 14: Filter Issues Bill Thomson City Hospital, Birmingham.

ARSAC Cardiac StudyARSAC Cardiac Study2-day protocol 2-day protocol

1000 MBq administration of Tc-99m Tetrofosmin1000 MBq administration of Tc-99m Tetrofosmin

Mean administered activity:Mean administered activity:

Stress:Stress: 935 MBq (51 patients)935 MBq (51 patients)

Rest:Rest: 979 MBq (47 patients)979 MBq (47 patients)

Page 15: Filter Issues Bill Thomson City Hospital, Birmingham.

Acquisition ProtocolAcquisition Protocol Rotation 1Rotation 1 = = 250 MBq250 MBq Rotation 2 Rotation 2 = 350 MBq= 350 MBq Rotation 3Rotation 3 = = 400 MBq400 MBq

Rotations 2 + 3Rotations 2 + 3 = = 750 MBq750 MBq Rotations 1 + 2 + 3Rotations 1 + 2 + 3 = = 1000 MBq1000 MBq

Page 16: Filter Issues Bill Thomson City Hospital, Birmingham.

Can a ‘better’ filter be used for Can a ‘better’ filter be used for 1000MBq?1000MBq?

4x counts of 250MBq4x counts of 250MBq Better statistics , lower noiseBetter statistics , lower noise Expect to use higher cut-offExpect to use higher cut-off Should give ‘better’ quality imagesShould give ‘better’ quality images

Page 17: Filter Issues Bill Thomson City Hospital, Birmingham.

250MBq v 1000MBq250MBq v 1000MBq

Show at different Butterworth cut-off Show at different Butterworth cut-off valuesvalues

Use Autoquant+ display of short Axis Use Autoquant+ display of short Axis viewsviews

See when you are sure which is whichSee when you are sure which is which

Page 18: Filter Issues Bill Thomson City Hospital, Birmingham.

250MBq v 1000MBq250MBq v 1000MBq

0.20 cycles per pixel0.24 cycles per pixel0.28 cycles per pixel0.32 cycles per pixel0.36 cycles per pixel0.4 cycles per pixel

Can you tell what it is yet?

Page 19: Filter Issues Bill Thomson City Hospital, Birmingham.

Resolution and Pixel SizeResolution and Pixel Size

SPECT resolution 15 – 18mmSPECT resolution 15 – 18mm Pixel size should be 5 – 6mmPixel size should be 5 – 6mm Maximum frequency in an object Maximum frequency in an object

is then 0.33 cycles per pixelis then 0.33 cycles per pixel

Page 20: Filter Issues Bill Thomson City Hospital, Birmingham.

Resolution issuesResolution issues

Resolution depends onResolution depends ona)a) detector resolutiondetector resolutionb)b) cut-off frequency of filtercut-off frequency of filter

if filter cutoff is low , filter determines resolutionif filter cutoff is low , filter determines resolution

Page 21: Filter Issues Bill Thomson City Hospital, Birmingham.

Cardiac Phantom - collimator Cardiac Phantom - collimator effecteffect

High res

GP

40% more counts with GP collimator