Professional Documents
Culture Documents
Filtering
Filtering
Filtering
Is
used to decrease statistical noise and or enhance edges. Enhanced edges equal increased Resolution
Realms of Filtering
Spatial
corrections Background subtraction techniques Smoothing techniques (i.e. 5 point or 9 point smoothing kernels) Edge enhancement techniques
frequency domain filtering, we must convert our spatial image (in counts an location parameters) into a frequency domain image (in frequency parameters) We do this conversion with the Fourier Transform.
Fourier Transform
The
basis of FT is that any curve or function can be represented as a series of sines and cosines with different amplitudes and frequencies.
A sine wave
8 6
-2
-4
-6
-8 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
seconds
5*sin(24t)
6
Amplitude = 5
4 2
-2
-4
-6
-8 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
seconds
An undersampled signal
2
sin(28t), SR = 8.5 Hz
1.5
0.5
-0.5
-1
-1.5
-2
0.2
0.4
0.6
0.8
1.2
1.4
1.6
1.8
transform takes one function (or signal) and turns it into another function (or signal) Continuous Fourier Transform:
close your eyes if you dont like integrals
Sine wave
0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
-1
-2 0
Delta function
Fourier series
Periodic
functions and signals may be expanded into a series of sine and cosine functions
Note
High
frequency components Responsible for simulating the ripid changes in intensity Edges and noise
Note
Low
frequency components Responsible for simulating amplitude of waveform Contrast and intensity
Remember
An activity profile along a row of an image looks like a smooth curve or function. This smooth curve can then be transformed or converted by a FT into a frequency domain signal. This can be done for every row in the image. What we end up is a data set (or matrix of data) that is now in cycles/pixel. Cycles/pixel is a unit of spatial frequency Relating the rate of change in intensity (or counts) with distance.
distance 1 cycle per 4 pixels= .25 cycles/pixel 3 cycles per 4 pixels= .75 cycles/pixel 9 cycles per 4 pixels= 2.25 cycles/pixel So: X=Distance (pixels): Y= Counts
The Nyquist frequency is equal to one-half of the sampling frequency. The Nyquist frequency is the highest frequency that can be measured in a signal. According to our discrete sampling theory, the maximum usable frequency is 0.5 cycles/pixel because at least two pixels are required to define the one cycle of the wave. This frequency is called the NF (.5 cycles/pixel) It is the highest frequency of intensity variation that can be accurately reproduced in our data. If our source has more variations than this, then the information will be lost and the image will not be faithfully reproduced.the effect of this is called ALAISING
Recap
We take a spatial domain image set We make an activity profile for each row of data in the image matrix. We apply Fourier Transformation to that Activity profile to give us our image data in the frequency domain (becomes: spatial-frequency domain) Now. We have an image in the frequency domain. Now we can apply various filters to remove or alter the magnitude of the selected frequencies in our frequency domain data set.
Filters
Filters
are mathematical functions that are multiplied into the frequency domain set to change the frequency distribution of the power spectrum. A filter is a magnitude vs. frequency function.
Ramp Filters
A Ramp Filter emphasizes the high frequency components in our data sets. Therefore, a ramp filter enhances or emphasizes noise in our data sets. Since we use the ramp filter for filtered back projection reconstruction, we must somehow get rid of this additional noise in our image data sets. (smoothing filters)
3 Types of filters
Low
to allow low frequencies through the filter and to reduce high frequencies (to attenuate)
to allow high frequencies through the filter and to reduce or attenuate low frequencies. Used to enhance edges or small objects Example: Ramp Filter
Filter Characteristics
Note: Different facilities and manufacturers use different definitions and/or units to describe similar filters. When using filters, make sure to know which set of definitions and units you are working with.
where filter magnitude drops to zero. Frequency where filter magnitude drops below a given value
Ramp Filters
High
pass filter Used for edge enhancement Drawback: Propagate high frequency noise in the images Remember: high frequency noise is associated with low counting statistics. Remember, we always have a ramp filter applied to our data. FBP
pass filter Used to remove high frequency noise This filter: Multiplies the lowest frequency by 1.0 This removes high frequency noise This causes some loss of contrast The only parameter used to describe a Hann and Hamming filter is its cutoff frequency.
the Hann and Hamming filters are very similar except that the Hamming filter goes to a nonzero value at the Nyquist Frequency (0.5 cycles/pixel) These filters are used for studies where higher statistical accuracy is needed at the expense of a loss in spatial resolution.
Buttersworth Filter
Low pass filter Used to remove high frequency noise Better suited for studies where higher resolution needed to be preserved at the expense of higher statistical count fluctuations. A BF needs 2 parameters to describe the filter. Cutoff frequency Order of the filter The order of the filter is related to how fast the filter is cutoff. The higher the order, the sharper the cutoff.
Cutoff Frequency
Allows us to retain contrast at higher frequencies while still eliminating noise. The CF determines the size of the objects that will be removed from the image. Remember, frequency and size are related by the Fourier transform (larger objects are represented by lower frequencies of sine and cosines)
Order
Determines
how quickly the transition is made between frequencies that are kept and frequencies that are eliminated from the image.
Cutoff Frequency is probably the most important parameter in filtering work. The CF is chosen based on a. The object being imaged. b. Count density in the image. c. Camera system and its spatial resolution d. Pixel size
Overall
The
CF should be chosen based on the Frequency space distribution of the data and the associated noise level in the images.
Noise level is our images will depend on the count density of the image. The higher the count density in our images the lower the noise level in relation to the images power spectrum
quickly the transition is made between frequencies that are kept and frequencies that are eliminated. The only real rule of thumb is that if the order is set too high, then oscillations in the image intensity will be introduced.
Basic principles to think about when choosing a filter for a given task:
All images reconstructed with backprojection require filtering with a ramp filter. A cutoff window is required to remove image noise that was enhanced by the ramp filter. A smooth cutoff is required to prevent the creation of rippling artifacts. The cutoff frequency should never be higher than the Nyquist Frequency.
Continued
The
choice of cutoff frequency is a compromise between smoothness of the image and spatial resolution. Images with higher count densities should use higher cutoff frequencies.
Helpful hints.
Begin
with the filter and parameters suggested by the manufacturer. Try filters suggested by respected collegues that use the same camera, computer and protocols. Try filter values given in the literature.
Helpful hintscontinued
Try changing the filter parameters on your system and carefully determine the effects of the changes on the resultant clinical image. Do not be afraid to try new filtering parameters. However, the final decision will be made by the physicians that read the scans. Perform phantom studies that closely approximate the organs of interest, and different count densities. When doing studies which will be compared to a normal database, make sure you use same filter as the normal data.
Remember that the units of cutoff frequency are not consistent between vendors. a. Cycles/cm b. Cycles/pixel c. Fraction of Nyquist Frequency d. Harmonic number
Note: Cycles/cm is thought to be the best one because it is independent of camera size and pixel matrix size.