Professional Documents
Culture Documents
A DISSERTATION
Submitted In partial fulfillment of the
requirements for the award of the degree
of
MASTER OF TECHNOLOGY
in
SOLID STATE ELECTRONIC MATERIALS
By
DEPARTMENT OF PHYSICS
INDIAN INSTITUTE OF TECHNOLOGY ROORKEE
ROORKEE- 247 667 (INDIA)
JUNE, 2005
CANDIDATE'S DECLARATION
I hereby declare that the work which is being presented in this dissertation entitled
fulfillment of the requirements for the award of the degree of "Master of Technology" in
out from August 2004 to May 2005 under the supervision and guidance of Dr. Tanuja
I have not submitted the matter embodied in this dissertation work for the award
CERTIFICATE
This is to certify that the above statement made by the candidate is correct to the best of
my knowledge.
With great pleasure, I express my sincere and profound gratitude to my supervisor, Dr.
Roorkee, for his erudite and invaluable guidance throughout my dissertation work. His
gratitude, analytical and methodical way of working has inspired me and under his
Technology, Roorkee, for providing me all the necessary facilities, continuing support,
and encouragement.
I am also thankful to all my friends and classmates for their help, co-operation
Date: 29 e 2 oa /
Satish Raj Goyal)
Abstract
two-dimensional cross-sectional images of an object from their projections with the use
of X-rays. The technique is developed based on the Fourier Slice Theorem and is
implemented with the filtered backprojection algorithm. We have used two algorithms for
carrying out tomographic imaging - the parallel beam and the fan beam reconstruction
algorithm. Some sinograms are created for a Shepp-Logan Head Phantom image and then
backprojection. Some filters were used for both filtered versions of the reconstruction
techniques. The application of these algorithms has been simulated by the development
In this work, different projection methods for image reconstruction from fan
projections were carried out. To this goal, a geometrical relation between parallel and fan
beam projections was first formulated. This geometrical relation provided the basis for
the reconstruction of an image from its fan projection using conventional reconstruction
iv
CONTENTS
Certificate................................................................................................ i i
Acknowledgements ...........................................
Abstract...................................................................................................................... iv
Contents.................................................................................................................... v
...
List of Figures ..............................
Listof Tables ............................................................................................................ Xii
Table of Contents
1.Introduction ................................................................................. P. 1
V
4. Mathematical Theory of Tomography ................................................... P. 21
vi
6.1.2 Back Projection ......................................................... P. 55
6.2.3 Filtered Back Projection For 128* 128 Image Size ................. P. 66
vii
LIST OF FIGURES
pair of cylinders
system
object
one location
viii
Figure 3.6: Filtered Backprojection results for 1, 4, 12 and 180 projections) 19
Figure4.4 : The ideal filter response. This is sometimes called the ramp filter, 38
2=Shepp-Logan,3=Cosine,and4=Hamming
Figure4.6: A equiangle fan configuration 41
Figure4.7: L is the distance of the pixel at location (x,y) from the source 43
S. [from 4]
Figure5.2: The columns are summed to obtain the projection at each angle 50
Figure5.3: The fan projections are formed by summing the values in the 53
rotation
Figure 6.1: (a) original phantom image (b) radon transform for fanbeam 56
projection
ix
Figure 6.2: (a) originalphantom with image size 128* 128. Backprojection 57
of image with sensor spacing (b) = 2.0 (c) = 1.0 (d) = 0.1.
Figure 6.3: (a) original phantom with image size 128* 128. Filtered back 58
and sensor spacing = 0,1(b) Ram-Lak filter (c) Shepp filter (d)
Figure 6.4: (a) original phantom with image size 128* 128. Filtered back 59
and sensor spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter (d)
Figure 6.5: (a) original phantom with image size 128* 128. Filtered back 60
Figure 6.6: (a) original phantom with image size 256*256. Filtered back 62
and sensor spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter
Figure 6.7: (a) original phantom with image size 256*256. Filtered back 63
and sensor spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter
Figure 6.8: (a) original phantom with image size 256*256. Filtered back 64
x
and sensor spacing = 0.1(b) Ram-Lak filter (c) Shepp filter
Figure 6.9: (a) original phantom with image size512*512. Filtered back 65
Figure 6.10: (a) original phantom with image size 128* 128. Radon transform 67
Figure 6.11: (a) original phantom with image size 128* 128. Backprojection 68
Figure 6.15: (a) original phantom with image size 128* 128. Filtered back 69
using (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter
Figure 6.13: (a) original phantom with image size 256*256. Filtered back 71
using (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter
Figure 6.14: (a) original phantom with image size 512*512. Filtered back 72
using (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter
xi
LIST OF TABLE
Table 6.1: Root of sum of squares of differences for the five filters for image 73
Table 6.2: Root of sum of squares of differences for the five filters for image 73
Table 6.3: Root of sum of squares of differences for the five filters for image 73
Table 6.3: Root of sum of squares of differences for the five filters for different 74
image sizes
xii
CHAPTER 1
INTRODUCTION
directions [4].This technique has a significant impact on areas, which involve image
image from its projection through the process of computed tomography (CT) [5].CT is a
technique, which finds its utilization mostly in medical imaging applications.The aim is
2D-information from a lot of 1D-projections (and the rotation and translation data for
from its projections. In the strict sense of the word, a projection at a given angle is the
integral of the image in the direction specified by that angle, as illustrated in Figure 1.1.
However, projection means the information derived from the transmitted energies, when
an object is illuminated from a particular angle. The term "diffracted projection" may be
used when energy sources are diffracting, as is the case with ultrasound and microwaves.
Figurel.l: Two projections are shown of an object consisting of a pair of cylinders
[131.
Tomography has found widespread application in many scientific fields, including
may be the most familiar application of tomography, tomography can be performed, even
how to reconstruct a function from its projections dates back to the paper by Radon in
invention of the x-ray computed Tomographic scanner for which he received a Nobel
prize in 1972. He shared the prize with Allan Cormack who independently discovered
some ofthe algorithms. His invention showed that it is possible to compute high-quality
cross-sectional images with an accuracy now reaching one part in a thousand in spite of
the fact that the projection data do not strictly satisfy the theoretical models underlying
the efficiently implementable reconstruction algorithms. His invention also showed that it
for the case of x-ray tomography) with fairly complex mathematical operations, and still
It is perhaps fair to say that the breakneck pace at which x-ray computed
tomography images improved after Hounsfield's invention was in large measure owing to
the developments that were made in reconstruction algorithms. Hounsfield used algebraic
techniques, which was able to reconstruct noisy looking 80 x 80 images with an accuracy
later popularized by Shepp and Logan [171, to this type of imaging. These later
algorithms considerably reduced the processing time for reconstruction, and the image
3
produced was numerically more accurate. As a result, commercial manufacturers of x-ray
tomographic scanners started building systems capable of reconstructing 256 x 256 and
512 x 512 images that were almost photographically perfect (in the sense that the
morphological detail produced was unambiguous and in perfect agreement with the
is not surprising that in recent years much attention has been focused on extending this
image formation technique to nuclear medicine and magnetic resonance on the one hand
and ultrasound and microwaves on the other. In nuclear medicine, the works are being
within the human body; and in imaging with magnetic resonance for reconstructing the
magnetic properties of the object. In both these areas, the problem can be set up as
reconstructing an image from its projections of the type. This is not the case when
ultrasound and microwaves are used as energy sources. Although the aim is the same as
with x-rays, viz., to reconstruct the cross-sectional image of, say, the attenuation
coefficient. X-rays are non-diffracting, i.e., they travel in straight lines, whereas
diffracting source, the wave field is scattered in practically all directions, although under
certain conditions one might be able to get away with the assumption of straight line
propagation; these conditions being satisfied when the inhomogeneities are much larger
than the wavelength and when the imaging parameter is the refractive index. For
situations when one must take diffraction effects (inhomogeneity caused scattering of the
wave field) into account, tomographic imaging can in principle be accomplished with the
algorithms [13].
4
CHAPTER 2
CONCEPTUAL BACKGROUND
2.1 Introduction
objects that cannot be easily seen by human eyes. The technique is widely utilized in
different fields and its impact in diagnostic medicine has been revolutionary [13].The
digital tomographic technique has also been used in the construction industry for
Figure 2.1 has to be built. It includes the use of an X-ray source and an X-ray detector.
Upon collecting the intensity of the attenuated X-rays at an X-ray detector, the
tomographic imaging technique can then be applied to the system for reconstructing the
three-dimensional image.
Tomography is a technique used for reconstructing the image of some objects. However,
the technique ' does not generate the three-dimensional images directly. In fact,
images of an object from the projection data acquired by illuminating the object with
some energy source from many different directions. By stacking up these cross-sectional
. ---------
,*` la.m..._.___._
Attenuated -ray from source
X-ray
liquid
0
In practice, X-rays have been widely used as the energy source for tomographic
imaging. X-rays are non-diffracting. They suffer from attenuation as they propagate in a
straight line through an object. The level of this attenuation is dependent on how much of
the energy is absorbed by the object particles that it passes through. Therefore, by
measuring the intensity of photons remaining in the X-rays after propagating through an
object, the density of the object particles can be determined. If an object is illuminated
with a beam of X-rays in one direction and the intensity of the X-rays is measured on the
other side of the object, one can obtain the projection of a cross-section of the object.
Figure 2.2 shows how this can be done with a parallel beam of X-rays.
The figure demonstrates how some X-rays are passed through a cross-section
f(x,y) of the object in a parallel manner from an angle. The parallel beam projection
obtained for the cross-section f(x,y) is shown in Figure 2.3. Later in the report, it will be
shown that this projection is in fact the Radon transform of the cross-section f(x,y) by
If the X-ray source is now rotated around the object, at a fixed degree increment
at a time, a new projection of the cross-section can be obtained at each angle. In this way,
a number of projections can be obtained for the same cross-section. Figure 2.4 shows
how the projections of the cross-section f(x,y) in Figure 2.2 can be acquired at three
different angles. Having a sufficient number of projections taken, one can then perform a
series of Fourier transform, filtering and inverse Fourier transform on the projections.
These are then inserted into the image plane using an algorithm called backprojection in
7
X-ray detector
Attenuated
X-rays
Projection Pe
f (x, y)
8
Another type of projection is known as fan beam projection. The projection is
formed by a single source placed in a fixed position according to the detectors. Figure 2.5
The reconstruction algorithm used is dependent on how the projection data are
measured. In Section 4, the reconstruction algorithms for the two projection types,
parallel beam and fan beam projections, will be discussed. The details of Fourier
transform, inverse Fourier transform and filtered backprojection algorithm will also be
explained.
design such a system, different technical issues that affect the system's performance have
• The number of pixels used for representing the cross-sectional images (the image
size)
A couple of additional parameters have been considered for the fan beam reconstruction
• How far the X-ray source should be placed away from the object [20].
7
P02(t)
Figure2.4: Parallel projections are taken by measuring a set of parallel rays for a
10
P02(t)
Poi (t)
Figure2.5: A fan beam projection is collected if all the rays meet at one location[17].
When determining the appropriate parameters used for a system, there are
tradeoffs between various aspects concerning the system's performance. Increasing the
number of projections improves the quality and the accuracy of the reconstructed images
but it significantly increases the memory usage of the system as well as the time for data-
processing; increasing the size of the image gives better resolution, but this again
increases the memory usage and processing time; increasing the size of the particles also
helps reducing the errors of the reconstructed image. Hence, balancing between the
various factors is necessary for achieving an efficient system. To investigate the effects
on the reconstruction process caused by varying the values of the parameters listed above,
various experiments have been performed on the software models developed. The
• Processing time
The performance of the reconstruction models have been analyzed based on the
experimental results. The analysis has evaluated the relationship between the various
parameters and the performance of the system. Thus, given some requirements by the
client or some physical constraints in a real situation, such as the limitation in the size of
the lead particles and the number of detectors, suggestions can be made for designing an
optimal combination of parameters that provides the system with the greatest efficiency.
12
CHAPTER 3
RECONSTRUCTION TECHNIQUES
3.1 Introduction
image is simulated in MATLAB (6.5.0 & 7.1.0). The Shepp and Logan head phantom is
used as an example image for our analysis of the reconstruction techniques. This image is
a standard for the comparison of algorithms and is shown in Figure 3.1. [17]
3.2 Projection
the phantom. The resulting image contains the same data as if the phantom is measured
with a CT setup. This results in the graph depicted in Figure 3.2. The horizontal axis is
the angle 0 at which the image is projected. The vertical axis is the radius, with the centre
of rotation at zero.
3.3 Backprojection
angles. This is basically the reverse of the procedure depicted in Figure 3.1. Each column
of projection data is back projected in the reconstructed image at the appropriate angle.
13
Figure3.1: The Shepp and Logan Head Phantom
14
picture of Figure 3.3. Total reconstruction is done by adding all the columns of the radon
transform for every angle. In the sequence in Figure 3.3 can be seen that for every added
projection at a different angle the reconstructed image becomes more detailed. For a total
of 180 angles the image certainly looks like the original, but unfortunately has some kind
of blur or glow around it. To get a better reconstruction we shall look at some other
algorithms and see that this blur is due to an overabundance of low frequencies in the
image.
Fourier transform. For an explanation of this method we need the result of a theorem
original image equals a slice of the 2-dimensional Fourier transform of the image at that
same angle[3].
The procedure for the reconstruction is now clear. First the Fourier transform of every
projection is taken and the 2-dimensional transform is built with these slices. This is done
by placing the transformed projections at the right angle and interpolating to get the full
image. This step is depicted in Figure 3.4. Finally, to get the original image back, a 2
dimensional inverse Fourier transform is applied to this image. The resulting image is
15
v
Frequency domain
16
displayed in Figure 3.5 for an increasing number of projections used. As can be seen,
there are, especially with fewer projections used, still some artefacts remaining. The last
The main source of error in this method comes from the interpolation to build the 2-
dimensional Fourier transform. As can be seen in Figure 3.4 the data points at a large
radius are widely spaced apart, while at the centre they crowd together. Since the points
become sparser further away from the centre, there will be a greater error in the high
frequency components of the resulting image. This makes a good reconstruction difficult
to implement.
While the Fourier Slice theorem gives a basis for the reconstruction of the image
data, the algorithm above has some disadvantages. The most widely used method for
reconstructing the projected data is filtered backprojection. The idea behind this
algorithm is that when we consider just a single projection, the theorem says that the
Fourier transform of that projection is a line in the 2-dimensional Fourier transform of the
original image. When all the lines from the projections at different angles are added in the
pattern of lines, which can be interpolated to result in the complete Fourier transform.) So
far, this is only the summary of the Fourier reconstruction technique. But considering the
linearity of the Fourier transform, the summing over all the projections can also be done
in the space domain, instead of the Fourier domain. This is what is done in
backprojection, however, we have seen that this results in a blur. By using a filter this
17
Figure 3.6: Filtered Backprojection results for 1, 4,12 and 180 projections
Figure 3.7: Backprojection results after filtering for 1, 4,12 and 180 projections
18
blur can be removed. The filtering part of the backprojection algorithm is done before the
backprojection. A simple ramp filter that weighs the frequency with f (w) = Iwl , for
w E [-w, w] is sufficient to get good results. Often this filter is supplemented with another
filter that filters out some of the higher frequencies, in order to suppress the noise in the
measurements.
Filter specifies the filter to use for frequency domain filtering. Filter is a string
projections, one of the filters listed below may be preferable. These filters
function.
• 'Cosine' - The cosine filter multiplies the Ram-Lak filter by a cosine function.
window.
• 'Hann' - The Hann filter multiplies the Ram-Lak filter by a Hann window [22].
process that takes place before projecting. As can be seen in Figure 3.3 this reconstructed
image is very blurred. Instead of filtering each projection line, the filtering step can also
19
be performed afterwards, when the image already is reconstructed. The filter now has to
be a 2-dimensional frequency filter and is just a deblurring filter. The result of filtering
the images after the backprojection can be seen in Figure 3.7. Note that there still is a
20
CHAPTER 4
MATHEMATICAL THEORY
OF
r
TOMOGRAPHY
projection is possible:
reconstructed from projections obtained by the rotational scanning shown in the previous
section.
The Radon transformation shows the relationship between the 2-D object and the
projections. Let us consider a coordinate system shown in Figure 4.1. The function P0 (t)
is a projection of f(x, y) on the axis t of 0 direction. The function PB (t) is obtained by the
integration along the line whose normal vector is in 0 direction. The value PB (0) is
defined that it is obtained by the integration along the line passing the origin of (x, y)
coordinate.
21
I +ysin 0
22
Since the points on the line whose normal vector is in 0 direction and passing the
We get
xcos0+ysin0=0 (4.1)
The integration along the line whose normal vector is in 9 direction and that
passes the origin of f(x, y) coordinate means the integration of f(x, y) only at the points
(4.2)
Similarly, it follows from equation (4.1) that the lines whose normal vector is in 9
direction and whose distance from the origin is t satisfy the following equation:
i, e.
Since this line is obtained by moving the line passing the origin by t cos 0 in x
where ds are some differential path length and f (x, y) is the function describing the 2-D
23
PB (t) is called a projection, and for the sake of generality our imaged property is
represented by the two-dimensional function f (x, y). The Dirac delta function (8 (x))
"picks" out rectilinear paths that are parallel to the set of projections [9].
Line-Integral
an integral of one variable since it is a line integral. Let us consider rewriting equation
t 1cos0 sin B x
(4.7)
sJ—sin
= 8cos B y
Thus we get the following relationship between (t, s) and (x, y):
t=xcos0+ysin0 1 (48)
s=-xsin0+ycos0
x=tcos0- ssin0
(4.9)
y=tsine+scose
Substituting equation (4.9) into equation (4.6), it follows that the argument of the
6 function is
24
=o ' (4.10)
expansion or shrinkage, we get dx dy = di' ds. Thus we get from equation (4.6)
00
f 5(0)dt=1 (4.12)
-00
It follows from the above that the Radon transformation PB (t) in equation (4.6) is
This equation expresses the sum of f(x, y) along the X-ray pass whose distance
from the origin is t and whose normal vector is in 0 direction. This sum, PB (t) is called
ray-sum
In this session we will first derive the Fourier Slice Theorem and then proceed
with the application of this theorem to result in a reconstruction algorithm called filtered
backprojection.
First, we derive the Fourier Slice Theorem by taking the one-dimensional Fourier
transform of a parallel projection and noting that it is equal to a slice of the two-
dimensional Fourier transform of the original object. It follows that given the projection
25
data; it should then be possible to estimate the object by simply performing a two-
as
WI
Se (w) = f Pe (t) e2 dt (4.15)
The simplest example of the Fourier Slice Theorem is given for a projection at 0
= 0. First, consider the Fourier transform of the object along the line in the frequency
but because the phase factor is no longer dependent on y we can split the integral into two
parts,
From the definition of a parallel projection, the reader will recognize the term in
26
-f e' z Ir ux
M
transform of the projection PO=o; thus we have the following relationship between the
This is the simplest form of the Fourier Slice Theorem. Clearly this result is
independent of the orientation between the object and the coordinate system. If for
example the coordinate system is rotated by an angle 0, the Fourier transform of the
projection is equal to the two dimensional Fourier transform of the object along a line
rotated by 0. This leads to the Fourier Slice Theorem which is stated as [12]:
gives a slice of the two-dimensional transform, F (u, v), subtending an angle 0 with the u-
axis.
The derivation of the Fourier Slice Theorem can be placed on a more solid
t=xcosO+ysin9
(4.21)
s=-xsinO+ycose
x=tcos0- ssin0
(4.22)
y=tsin0+scosO
27
This result can be transformed into the (x, y) coordinate system by using the
The Fourier Slice Theorem states that the one-dimensional Fourier transform of a
parallel projection of an image f(x ,y) taken at angle 0 is equal to a slice of the two-
dimensional Fourier transform of the original image f(x ,y). As illustrated in Figure 4.2, if
the projection of the image taken at angle 0 is Fourier transformed, it is equal to the
The right-hand side of this equation now represents the two-dimensional Fourier
28
Projection
ouriei
ru
Figure4.2: Fourier Slice Theorem defines the relation between the 1-D Fourier
transform of a projection and the 2-D Fourier transform of an object along a radial
line [15].
29
This equation is the essence of straight ray tomography and proves the Fourier
Slice Theorem.
The above result indicates that by taking the projections of an object function at
angles B1, 02_. .......... Ok and Fourier transforming each of these, we can determine the values
of F(u, v). If an infinite number of projections are taken, then F (u, v) would be known at
all points in the uv-plane. Knowing F (u, v), the object function f (x, y) can be recovered
Now based on the Fourier Slice Theorem, we can use this result to establish the
filtered backprojection algorithm. Instead of the Fourier Slice Theorem, the filtered
The algorithm is about generating the reconstruction of a single projection by two main
steps: filtering and backprojecting. The projection is Fourier transformed, filtered and
inverse Fourier transformed. The values are then inserted into their proper places in the
single projection leads to the final reconstruction of the cross-sectional image [3].
Let us consider equation (4.6) the formula for the inverse Fourier transform, the
Exchanging the rectangular coordinate system in the frequency domain, (u, v), for
30
u = w cos 0
(4,29)
v=wsin9
dudv=wdwd8 (4.30)
2,r *o
f(X,y)= J J F.(w, 0)e'2irw(x cos 0+ysin 0) wdwd8. (4.31)
0 0
This integral can be split into two by considering 0 from 00 to 180° and then from
0 -~
t=xcos8+ysin0
where,
d a 1T WI dw.
Q9 (t) = j~ Se (w) w~ (4.34)
-a,
This estimate off (x, y), given the projection data transform SB (w), has a simple
form. The equation (4.34) represents a filtering operation, where the frequency response
of the filter is given by Jwi; therefore Qa (w) is called a "filtered projection". The resulting
projections for different angles 0 are then added to form the estimate off (x, y).
31
The equation (4.34) for f (x, y) calls for each filtered projection, QB, to be
"backprojected". This can be explained as follows. To every point (x, y) in the image
plane there corresponds a value of t = x cos 0 + y sin 0 for a given value of 0, and the
filtered projection QB, contributes to the reconstruction its value at t = x cos 0 + y sin 0. It
is easily shown that for a projection at angle 0, the value oft is the same for all (x, y) on a
line with angle 0. Therefore, the filtered projection, QB, will make the same contribution
Therefore, one could say that in the reconstruction process each filtered
For a given value of angle Oi, every point (x,y) on the image plane corresponds to
a value of t on the projection plane which is defined by equation (4.4). Thus, the values
corresponding locations on the image plane. As shown in Figure 4.3, for the angle Or, the
value of the filtered projection at t is backprojected onto all the (x,y) values along the line
AB. In the same way, the values at all t on the filtered projection plane are smeared back
onto the image plane to reconstruct the projection taken at angle Oi. By backprojecting
the values of Qe(t) taken at different angles Oi and summing them up, the original image
If we substitute the Fourier transform of the projection at angle 0, Se (w), for the
32
Figure4.3: The filtered projection is backprojected on the image plane[17]
33
Tomographic filter
00
Qe (t) = JSo (w) Iwl h(w)e2"""` .dw (4.37)
function.
becomes
00
Qe (t) = f Pe (t).p(t —a).da (4.38)
where, p(t) is nominally the inverse Fourier Transform of w h(w) function in frequency
Different window functions h(w) are used in literature proposed by different authors.
Such as:
WE [—W, W ]
h(w) = 1 Ram-Lak (4.39)
0 e.w
34
I sin(w I W )
h(w)= w/W (4.40)
0 e.w
W2 t=0
1. Ram-Lak q(t) = 2 (4.42)
[us(2,r(—W)—lj t ~ 0
(27a )
8W2
t=0
2. Shepp-Logan q(() _ (4.43)
1(. r 2 2
t 0
1-16W 2 t2
i
aW2—(1—a) 2W t=0
(4.44)
9(t)= 2a 2(1 a)WZ(1+4W2t2)
t~0
(2,rt)2 c2 (1-4W2 t2 )
These equations must be implemented digitally. Let's assume that the projection
data are sampled with a sampling interval of T cm. If there is no aliasing, then the
transform domain of the projections does not contain energy outside the frequency
interval (- W, W) where
35
With this assumption, equation (4.34) can be written as
W
2W
Q6 (t) = J S0 (w) H(w) e' dw (4.46)
where
and
if Iwl(W
otherwise
H(co) is shown in Figure 4.4 and has a discrete impulse response given by
(zxT) n=0
4
h(nz)= 0 n even
nodd
(nxnx7txrxrxT)
which is shown in Figure 4.5.This filter is known as the Ram-Lak filter named after
36
_ 1 Frequency (w) —> 1
2T P92(t) 2z
Figure4.4 The ideal filter response. This is sometimes called the ramp filter, or the
Shepp-Logan
Ram-Lak (ramp)
Cosine
Hamming
37
Shows the effect of the filtering.
To sum up this section, the following outline is usually implemented in the filtered
backprojection algorithm:
is the total number of projections (number of angles measured). N is the length of the
dataset, which is the number of rays in each projection (number of detectors sampled at
each angle).
2. Perform FFT (Pe, (nr), i=1, 2, 3. ........., K) (Note: zero pad is necessary to make N,
3. Multiply FFT {PB (nr)) by FFT {h (ntr)) (Note: modify the Ram-Lak filter with
smoothing filter of choice, such as the Hamming, Hanning, or other smoothing filter)
K
f(x,y) _— QB,(xcosO1 +ysine)de (4.50)
Collection of parallel ray CT projection data usually results in times that are as
long as a few minutes. A much faster way to generate the line integrals is by using fan
beams such as those shown in Figure 4.6. In this configuration, the X-ray emanates from
a point source in the shape of a fan. A bank of detectors is then used to collect all data
38
from the fan beam simultaneously. The goal is to develop an algorithm that uses the
simplicity of the parallel beam backprojection notion, at least to the extent possible.
Let Rf(y) denote a fan projection as shown in Figure 4.6.Consider ray SA. If the
projection data were generated along a set of parallel rays, then ray SA would belong to a
where D is the distance of the source S from the origin 0. From parallel beam analysis,
r tm
where t ,,, is the value of t for which PB(t) = 0 with t > t , in all projections. If the
projections are collected over 3600 (as in Generation 4 machines), then equation (4.52)
becomes
l 2,f in,
Derivation becomes easier when the point (x, y) is expressed in polar coordinates (r, rp),
that is
x=rcosrpandy=rsincp (4.54)
1 Lr till
39
Figure4.6: A equiangle fan configuration
40
1 Z" ,n
f(r,cp)= 2 ff Rf(y)h(rcos(Q+y-co)-Dsiny)Dcosydydfl (4.56)
where we have dt dB=D cosy dy dQ. The function R p(y) is the ray in the fan projection at
angle y. This looks formidable, even intimidatig. However, taking advantage of certain
"identities" and using the notation in Figure 4.7, equation (4.56) can be written as
z1r rn
f(r, o) =2 J J Rp(y)h(Lsiny'-y)Dcosydydf (4.57)
o -yam
which can be written in more familiar parts as the following three equations.
2n
(4.58)
f (r, ) = J L x L Q (y) df
Where
and where
This result calls for a celebration because finally we have a step-by-step procedure for
reconstructing an image using the following three steps (with reference to Figure 4.7):
1. Assume that each projection R p(y) is sampled with sampling interval a . The known
data then are Rp;(na) where n takes integer values. f.3! are the angles at which projections
are taken. The first step is to generate for each fan projection Rp,(na) the corresponding
R f;(na) by
41
Figure4.7: L is the distance of the pixel at location (xty) from the source S. [13]
42
2. Convolve each modified projection R ,q;(na) with g(na) to generate the
To perform this discrete convolution using the FFT, the function R'A;(na) must be
(4.63).
1 n=0
8(axa)
g(na) = 0 n even (4.63)
axa
nodd
(r x r x ax ax sin(na)x sin(na)
3. Perform a weighted backprojection of each filtered projection along the fan. Note that
the backprojection here is very different from the backprojection in the parallel case [7].
The backprojection is performed as a fan, not a straight line as in the parallel case. This
means that
M
f (x, Y) AQ~ (L x L)(x, nfll(Y') (4.65)
Y,QI)
43
where y' is the angle of the fan beam ray that passes through the point (x,y) and
d(3=27r/M.If the computed y' does not correspond to one of the na for which Q,; (na) is
fanbeam CT images. The algorithm quickly resorts into equivalent parallel projection
data. After resorting, standard filtered backprojection can be applied. Referring to figure
4.6, the relationship between the fan beam and parallel projections are given by equation
If R,(y) represents a fan beam projection taken at angle /1, and PB (t) represents a parallel
Let dQ denote the angular increment interval used for sampling the fan beam projections.
Clearly then $ and y in equation (4.67) are equal to ma and na, respectively, for some
integer values of the indices m and n. Thus equation (4.67) may be rewritten as
equation (4.69) serves as the basis of a fast re-sorting algorithm. This is the algorithm
44
CHAPTER 5
5.1 Introduction
As mentioned in.the earlier chapter, two software models have been developed for
projections respectively. The models consist of several major components and the
MATLAB has been chosen as the software platform for the models in this
project. The software provides various tools that facilitate the construction of prototype
numerical data, the elements of which contain the intensity information of each pixel of
the image. MATLAB provides extensive functions for matrix manipulations which can
easily handle matrices. This allows a whole set of data to be processed at a time and
functions for image transform, such as Fourier transform, inverse Fourier transform, and
high-quality image display. All of the above make MATLAB an ideal development
45
5.3 Computer Implementation of the Parallel Beam Reconstruction Model
two-dimensional images that simulate the cross-sectional images. It then takes several
algorithm. The developed model is designed to have several components that carry out
Figure 5.1 shows how a cross-sectional image of the object may look like in a real
system. As different portions of a lead particle can be sliced by the cross-section, the
cross-sectional images of the particles will appear as circles of different sizes. The
MATLAB function has been designed to simulate the generation of a cross-section of the
object.
Though it is more realistic to have the size of the circular particles different on the
cross-sectional images, later in the report it will be shown that in order to facilitate
analysis, the images have been generated with particles of the same size randomly
distributed on them.
obtained by passing the generated image to the function. The function accepts a two-
Figure5.1: One cross-section of the object from different portions of the lead
particles [201.
47
generates a number of parallel projections of the image.
Instead of rotating the parallel beam of X-ray around the cylinder as in a real
system, the function rotates the two-dimensional matrix of the image from 00 to 1790 .
The degree increment 0 for the rotation is dependent on the number of projections, N,
required in the 180-degree range, i.e. 0 = 180° / N. As shown in Figure 5.2, the columns
of the matrix are summed up at each rotation to form the projection Po(t) at a particular
angle. A projection is stored as a row vector and the elements in the vector represent the
samples of that particular projection. All the N projections are stored in a two-
obtained. The input argument of this function is a two-dimensional array that stores the
parallel projections of an image which can be obtained from the projection. The filter
projection function computes the Fourier transform of each of the projections in the array
and applies a filter H(w) = lwi to each of them. The projections are then transformed back
to the spatial domain by inverse Fourier transform. This returns a matrix containing the
48
Matrix of the original image
I I I I \ I I I I
P01 (t)
Figure5.2: The columns are summed to obtain the projection at each angle.
49
5.3.4 Image Reconstruction by Backprojection Algorithm
Applying the technique that has been described earlier in Section 4.3, the filtered
projections taken at different angles is inserted back into their proper positions on the
The general steps of the fan beam reconstruction model are similar to those of the
The fan projections of the cross-sectional images can then be generated. These
projections are filtered and the image can be reconstructed by using the backprojection
algorithm. The details for implementing these steps, however, are different from those of
The MATLAB function used for generating the cross-sectional images in the fan
beam reconstruction model is the same as the one used in the parallel beam
/Ac. 2L3
50 4
ROOW
5.4.2 Generation of Fan Projections
The MATLAB function file fan projection has been designed to generate the fan
projections of a given image. Having the number of projections, the number of detectors
and the source distance, the program generates the fan projections of the cross-sectional
image Figure 5.3 illustrates how fan projections are generated. Having a cross-sectional
image and a point source from a given source distance, a fan-shaped beam can be
matrix along the rays and is stored as a row vector. The elements in the row vector
represent the samples of that projection. The number of samples in the projection is
dependent on the number of detectors available in a real system and this determines the
number of rays in the fan. Instead of rotating the point source around the cylinder as what
would be done when implementing a real system, the function rotates the two-
dimensional image from 0° to 359°. The degree increment 13 for each rotation is
dependent on the number of projections (N) required in the 360-degree range i.e. 13= 360°
/ N. At each rotation, the projection is formed by adding up the values in the cross-
The fan projections obtained from the image have to be filtered before they can be
backprojected onto the image plane. This is done by fan Projected Filter. This function
accepts some fan projections R, filters them and produces the filtered projections Q. The
filtering algorithm used in the function implements the process described previously in
51
Matrix of the original Matrix of the original
image image rotated by [ii
1111, ,1X11
II
:i
! , 1 I, I I 1
I1 1 11
111,1
/ 1 1 , I /, I, 1
I\- \, ,
1
Sourc Distance
t'/
(
L)1 1/
I 1
~ 1 , /
/
~ I1 r1
\_'\
1 I I 1
I I
\ C 1 ` I I
/ I 1 `1
1 1 1 I 1 II..
4 \ 1 \
1 1 , I I I 1 1
1 I I 1 1 1
\ I I 1 1
I
, 1 I 1 1 1
1 1
1 / I 1
/ I 1 I \ / 1 1
l 1 I 1 1
1 1 I 1
1 1
~ I I 1
I 1 I 1 I 1
1 / I 1 1
/ 1 I 1 I 1 1
1
1 1 f 1 I I
! 1 1 4 `1
I I 1 \ ! 1 I 1 \
/ 1 I I 1 / 1 I I ,
I I I
! /
1 1 1 I \ 1 I 1 1 1
1 I 1 1 \ / 1 1
/ I 1 1 1 1 \
I I 1 1 ! 1 I 1 1
1 / I 1 1
1 1 1 t 1 1 \
I 1
1 1 1 \
R(r)
Ii) i ~r
1 I I I 1 1 I I
1 1 I I 1 I 1 I I 1
i
i i ii i i
i i
[ 131 11
ZN
Row vectors representing fan projection at each angle of rotation
Figure5.3: The fan projections are formed by summing the values in the cross-
sectional matrix along the rays in the fan at each angle of rotation [201.
52
projection R. Each R' is then filtered by g(na) given by Equation (4.52) and a smoothing
filter k(na) which is simply a Hamming window in the frequency domain. Instead of
performing convolution in the spatial domain, multiplication in the frequency domain has
been chosen to perform the operations. During multiplication, a number of padding zeros
The filtered projections Q can be extracted from the padded sequence after
multiplication [20]
The backprojection is the final step of the image reconstruction process for fan
projections. The fan Projection function is the MATLAB function designed to implement
The function first computes the distance L from the source and the angles cp and y'
for each point on the image plane using Equation (4.59) and Equation (4.61).
Reconstructing an image using Equation (4.57) requires the filtered projection samples
Qp;(y') taken by a ray with angle y' away from the ray at the centre. As shown in Figure
4.6 the samples in a projection are measured by the rays at angle 'y away from the ray at
the centre. However, the computed value of y' may not always match up with any of the
original angles y (which is just equal to na) at which the rays generated the samples in the
projection. This is illustrated in Figure 4.7 where the computed value of y' corresponds to
point (x, y) does not match with any of the original rays that generated the projection
samples. In such case, interpolation is required to compute the values of the points that
53
CHAPTER 6
beam projection and parallel beam projection. For both the reconstruction
1. Ram-Lak filter
2. Shepp filter
3. Hamming filter
4. Hann filter
5. Cosine filter
The reconstructed images are compared to find the best among the worked out
strategies. For the sake of comparison the difference of the constructed images form its
original is calculated by the sum of squared differences. In the calculation of the sum of
squared differences, each pixel of the reconstructed image is subtracted from the original
image, squares each of these values and then sums the squared values for the entire
54
6.1 Image Reconstruction Using Fanbeam Projection
A phantom of image size of 128*128 is taken and its fan beam projection is
developed using radon transform. The images can be seen in figure 6.1. This figure gives
different sensor spacing of 2.0, 1.0 and 0.1. The images thus obtained can be seen in
figure 6.2. It is easily seen that sensor spacing of 0.1 is giving best results and hence the
sensor spacing of 0.1 would be used every where for image reconstruction.
The projected image of phantom is now reconstructed using five filters namely:
(a) Ram-Lak filter (b) Shepp filter (c) Hamming filter (d) Hann filter (e) Cosine filter. For
all the five filters three different values of distance D is taken and the results are
generated. It is worth mentioning here that projection angle of 90 and sensor spacing of
0.1 is taken for the different values of D. Figure 6.3 shows the images thus obtained with
distance D = 200. Figure 6.4 shows the images thus obtained with distance D = 300.
Figure 6.5 shows the images thus obtained with distance D = 500.
55
projection of the Phantom
•25
•20
Original Phantom 12B*128
•15
(a) (b)
Figure 6.1 (a) original phantom image (b) radon transform for fanbeam projection
56
Original Phantom 128'°128 D = 200,sensor spacing = 2.00
jill
120.
120 100120
20.
40
100
120
20`40 60 80 100120 20 40 60 80 100120
Figure 6.2 (a) original phantom with image size 128*128. Backprojection of
image with sensor spacing (b) = 2.0 (c) =1.0 (d) = 0.1.
57
Original Phantom 128'128 Ram-Lak filter,D = 200,Fan sensor spacing = 0.10.
Figure 6.3 (a) original phantom with image size 128*128. Filtered back
spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter (e)
58
Figure 6.4 (a) original phantom with image size 128*128. Filtered back
spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter (e)
59
Original Phantom 128*128 Ram-Lak filter,D = 500,Fan sensor spacing = 0.1?
Figure 6.5 (a) original phantom with image size 128*128. Filtered back
spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter (e)
Image size of phantom is increased from 128* 128 to 256*256. With this new size
images of phantom is reconstructed using the same five filters. For all the five filters
three different values of distance D is taken and the images are generated. It is worth
mentioning here that projection angle of 90 and sensor spacing of 0.1 is taken in this case
also for the different values of D. Figure 6.6 shows the images thus obtained with
distance D = 200. Figure 6.7 shows the images thus obtained with distance D = 300.
Figure 6.8 shows the images thus obtained with distance D = 500.
Image size of phantom is again increased. This time the image size is 512*512.
With this new size images of phantom is reconstructed using the same five filters. For all
the five filters three different values of distance D were taken in this case also but results
could only be generated for D = 500. This is because with the value of D less than 374
the images were not completely visible for the beam. Projection angle of 90 and sensor
spacing of 0.1 is again taken in this case.. Figure 6.9 shows the images thus obtained with
distance D = 500.
Figure 6.6 (a) original phantom with image size 256*256. Filtered back
62
Original Phantom 256*256 Ram=Lak filter,D = 300,Fan sensor spacing = 0.10
Figure 6.7 (a) original phantom with image size 256*256. Filtered back
63
Original Phantom 256*256 Ram-Lak tilter,D = 500,Fan sensor spacing = 0.1
Figure 6.8 (a) original phantom with image size 256*256. Filtered back
JJ
Ji projection of reconstructed image with projection 90, D = 500 and sensor
spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter (e)
64
Original Phantom 512*512 Ram-Lak filter,D = 500,Fan sensor spacing = 0. 10
Shepp filter Hamming filter
Hann filter Cosine filter
Figure 6.9 (a) original phantom with image size512*512. Filtered back
spacing = 0.1 (b) Ram-Lak filter (c) Shepp filter (d) Hamming filter (e)
65
6.2 Image Construction Using Parallel Beam Projection
A phantom of image size of 128*128 is taken and its parallel beam projection is
developed using radon transform. Three projections are generated taking different
projection angles of 18, 36 and 90. The images can be seen in figure 6.10. This figure
gives an idea of how a parallel beam projection of any image would look like.
Phantom image so projected using radon transform is now reconstructed for all
the three angles i.e. 18, 36 and 90. The images thus obtained can be seen in figure 6.11. It
is easily seen that as we increase projection angle images obtained keep on improving for
betterment, so from now onwards maximum value of projection angle i.e. 180 would be
The projected image of phantom of image size 128* 129 is now reconstructed using five
filters namely: (a) Ram-Lak filter (b) Shepp filter (c) Hamming filter (d) Hann filter (e)
Cosine filter. It is worth mentioning here that projection angle of 180 is taken. Figure
20
-50
40
60. < 0
eo:
1.00. $0
120
20 40 60 80 100120. 0 50 100 150
0
36,projection 90 projection
-50 P
X 0
50 E
0 50 100 150 0 50' 100 150
e e
Figure 6.10 (a) original phantom with image size 128*128. Radon
67
Original Phantom Reconstructed Phantom Using 18 Projections
2040 60 80 100120
36 Projections 90 Projections
20
40 40
60 60.
100
120
.20; 40 60 80 100 '20 40 6080 100120
jj Figure 6.11 (a) original phantom with image size 128*128. Backprojection
Figure 6.12 (a) original phantom with image size 128*128. Filtered back
projection of reconstructed image with projection angle 180 using (b) Ram-
Lak filter (c) Shepp filter (d) Hamming filter (e) Hann filter (f) Cosine filter
6.2.4 Filtered Back Projection for 216*216 Image Size
five filters namely: (a) Ram-Lak filter (b) Shepp filter (c) Hamming filter (d) Hann filter
(e) Cosine filter. It is worth mentioning here that projection angle of 180 is taken. Figure
five filters namely: (a) Ram-Lak filter (b) Shepp filter (c) Hamming filter (d) Hann filter
(e) Cosine filter. It is worth mentioning here that projection angle of 180 is taken. Figure
The superiority of the two methods can only be justified by having a numerical
comparison for the images generated. For the purpose of comparison the difference of the
constructed images form its original is calculated by the sum of squared differences for
both the methods using five filters. Table 6.1 to 6.4 shows the square-root of sum of
squared differences for all the images generated. Table 6.1 gives the values for fan beam
projection with image size of 128* 128 for all the filters with varying values of D. Table
6.2 gives the values for fan beam projection with image size of 256*256 for all the filters
with varying values of D. Table 6.3 gives the values for the fan beam projection with
image size of 512*512 for all the filters with D = 500. Table 6.4 gives the values for the
70
Original Phantom 256*256 Using 180 Proj. with the help of Ram-Lak filter
Figure 6.13 (a) original phantom with image size 256*256. Filtered back
projection of reconstructed image with projection angle 180 using (b) Ram-
Lak filter (c) Shepp filter (d) Hamming filter (e) Hann filter (f) Cosine filter
71
Original' Phantom 512*512 Using 180 Proj. with the help of Ram-Lak filter
Figure 6.14 (a) original phantom with image size 512*512. Filtered back
projection of reconstructed image with projection angle 180 using (b) Ram-
Lak filter (c) Shepp filter (d) Hamming filter (e) Hann filter (f) Cosine filter
72
parallel beam projection for all the three different size of images 128* 128, 256*256 and
Table 6.1 Root of sum of squares of differences for the five filters for image size
Table 6.2 Root of sum of squares of differences for the five filters for image size
Filters D = 500
Ram-Lak 114.9130
Shepp Logan 115.0130
Hamming 115.3690
Hann 115.4729
Cosine 115.1564
Table 6.3 Root of sum of squares of differences for the five filters for image
73
Image Size
Filters 128*128 256*256 512*512
Ram-Lak 23.9165 33.8526 47.7807
Shepp Logan 23.9165 33.7935 47.8539
Hamming 24.0208 33.7194 47.9270
Hann 23.9583 33.8526 48.0208
Cosine 24.0416 33.6452 47.9479
Table 6.3 Root of sum of squares of differences for the five filters for
After analyzing the values of the root of sum of squares of differences it was very
easy to conclude that parallel beam projection performs better for all the image sizes.
Among the filters, no filter has out performed any of the existing one in all the situations
but even then by analyzing data one may say that Ram-Lak filter performs better in most
74
CHAPTER 7
The results of our analysis towards the reconstructions of image look good and
give a good idea of how the original phantoms were arranged. Judging by the pictures
obtained from our experiment, preference goes to filtered backprojection, but to have
some kind of objective measure we wrote a program in MATLAB. This program uses the
simulated phantom to calculate how far are construction differs from its original by the
Root of Sum of Squared Differences. This means that it subtracts for each pixel the
reconstructed image from the original phantom, squares these values, sums all the values
and then takes the root of the sum. This is a fair measure of the accuracy of the
reconstruction algorithms.
The main advantages of the present work are the consistency of the reconstruction
with the input data, and the optimality of the reconstruction. It performs well even for a
small number of measures, and can be applied to computer tomography problems with
arbitrary and even irregular geometry. The problem is solved exactly as presented and no
decrease the angle between sinograms and thus increase the total amount of projections
created. This would require more complex sinogram generation algorithms and would
have simply made this term project too large. Considering the limited amount of
75
REFERENCES
[1] Acoust. Speech Sinnal Processinn, vol. ASSP-31, DD. 1262-1275. Oct. 1983.
[2] Bill Amini, Magnus Bjorklund, Ron Dror, Anders Nygren," Tomographic
(http://www.owlnet.rice.edu/—elec539/Projects97/cult/report.html, .last
accessed on 31/8/2003).
[4] Bushberg, J.T., J.A. Seibert, E.M. Leidholt, and J.M. Boone. "The Essential
[5] Cooley, J. W. and Tukey, 0. W. "An Algorithm for the Machine Calculation
[8] http://dukemil.egr.duke.edu
[11] Kak A.C., `Computerized tomography with x-ray emission and ultrasound
76
Prentice-Hall, 1985.
Rep. 92, Dept. of Computer Science, State Univ. of New York at Buffalo,
1975.
[ 15] Pan S. X. and Kak A.C., "A computational study of reconstruction algorithms
Trans.
convolution in stead of Fourier transforms," Proc. Nat. Acad. Sci., vol. 68, pp.
2236-2240, 1971.
[17] Rosenfeld A. and .Kak A.C., Dig*%l Picture processing, 2nd ed. New York,
[ 19] Shepp L. A. and Logan B. F., "The Fourier reconstruction of a head section,"
77
[20] Serena Mmak,"Tomographic Reconstruction of Dense Point Particles",
[21] Shepp, L.A. and B.F. Logan, "The Fourier reconstruction of a head section,"
[22] Smith P. R.. et al 1973 J. Phys. A: Math, Nucl, Gen" Image reconstruction
78