Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Project: Realtime Robotic Radiation Oncology Name: Brian Murphy Student ID: 03054128 Course: 4ECE Supervisor: Martin Glavin
Brian Murphy
29/05/2012
Table of Contents
Table of Contents...............................................................................................................2 Chapter 1 - Introduction.....................................................................................................2 Chapter 2 Technology.....................................................................................................4 2.1 - Hardware................................................................................................................4 2.1.1 - Image Acquisition Device..............................................................................4 2.1.2 - Laser Pointer...................................................................................................5 2.1.3 - Lego Mindstorms............................................................................................5 ....................................................................................................................................5 2.1.4 - PC running the Software.................................................................................6 2.2 - Software.................................................................................................................6 2.2.1 - Matlab.............................................................................................................6 2.2.2 - Image Acquisition Toolbox............................................................................6 2.2.3 - Image Processing Toolbox.............................................................................6 2.2.4 - Labview...........................................................................................................6 Chapter 3 Design and Operation.....................................................................................7 3.1 - Image Acquisition In Matlab.................................................................................7 3.2 - Image Acquisition In Labview..............................................................................7 3.3 - Buffer Management In Labview............................................................................8 3.4 - Camera Operation in Labview...............................................................................9 3.5 Robotic Control...................................................................................................11 3.6 - Lego Mindstorms Kit...........................................................................................11 Chapter 4 Progress & Remaining Work.......................................................................12 4.1 - Progress To Date..................................................................................................12 4.2 - Remaining Work..................................................................................................12 Table Of Figures...............................................................................................................13
Chapter 1 - Introduction
Oncology is the study of tumors in a body and aims to understand their development, diagnosis treatment and prevention. There are many different treatments for oncology,
Brian Murphy
29/05/2012
one if which is radiation therapy also known as radiotherapy. In radiotherapy high energy rays are used to damage the cancerous cells and stop them growing and dividing. There are different types of radiotherapy, external radiotherapy and internal radiotherapy. Internal radiotherapy is when the radiation source is placed inside the body very close to or inside the tumor. It is divided into two, sealed source radiotherapy is where the source is placed into small sealed vials called the implants and unsealed source radiotherapy is where the radiation source is injected directly into the vein. External radioherapy is where beams of ionizing radiation are applied from outside the body. While large doses of radiation would be very harmful to the human body, the body can tolerate small doses over long periods of time. To maximise the energy focused on the tumor, and to protect other organs of the body, radiation is usually delivered in narrow beams from a number of sources that converge on the location of the tumor within the patient. At the moment, the alignment of the radiation beams is performed by technicians who calculate the position of the tumor from various scans of the body, and using their knowledge of geometry, training and experience, set up the radiation beams to converge as accurately as possible on the target tumor. One such problem with this method is that areas surronding the tumor and sensitive to the radiation have to be avoided which in turn leads to a lower dosage of radiation and thus cannot effectively treat the cancer. A solution to this problem is described by a treatment known as 3-Dimensional Conformal Radiotherapy (3DCRT) Conformal Radiotherapy is where the the profile of each radiation beam is shaped to fit the profile of the target from a beams eye view. When the treatment volumes conform to the shape of the tumor, the radiation to the surrounding tissue is reduced which allows a higher dosage of radiation to be delivered to the tumor than ordinary techniques would allow. Intensity-Modulated Radiation Therapy (IMRT) is an advancement on 3DCRT in which the intensity of the radiation beam can also be controlled. This maximises the radiation dose to the gross tumor area while radiaiton among surrounding tissue is decreased or completely avoided. IMRT is most effective for concave tumors and is therefore efficient in treating tumors wrapped around a vulnerable structure for example the spinal chord or a blood vessel. The aim of this project will be to optically track a tumor in a body and follow it with ionising radiation. To represent a tumor a small spherical object such as a ball Brian Murphy 29/05/2012 3
should be used as well as laser beams to represent the radiation beams. This system should also be capable of monitoring any movement of the target and compensate for that movement by re-focusing the beams accordingly. The system will be further developed to operate in real time.
Chapter 2 Technology
2.1 - Hardware
2.1.1 - Image Acquisition Device
The image acquisition device used for this project is a standard web cam (Logitech QuickCam 5.6.1). It uses a standard USB interface with the PC. The device
Brian Murphy
29/05/2012
drivers are supplied with the camera, which will control the acquisition of frames, which will be used in to locate the position of the ball.
Brian Murphy
29/05/2012
2.2 - Software
2.2.1 - Matlab
Matlab is a high-level scientific and engineering program, which provides many useful capabilities for plotting and visualizing data. To further enhance Matlab capabilities, it provides the user with additional software packages known as toolboxes. Two such toolboxes required for this project are the Image Acquisition toolbox and the Image Processing Toolbox.
2.2.4 - Labview
Labview will be the central programming language for this project. It is a platform and development environment for a visual programming language from National Instruments (NI). Like Matlab, Labview also provides the user with extra software packages. One which is central to this project is the Image Acquisition (IMAQ) toolbox.
1 2
T he MATLAB product page at Mathworks - http://www.mathworks.com/products/imaq/ The MATLAB product page at Mathworks - http://www.mathworks.com/products/image/
Brian Murphy
29/05/2012
Brian Murphy
29/05/2012
Vision Assistant
New Image contains pointer information to the buffer, which is initially empty. If the image is going to be processed it may be necessary to wire a value to Border Size.
Brian Murphy
29/05/2012
This is the width, in pixels, of a border created around an image. Some image processing functions, such as labelling or morphology, require a border. IMAQ dispose shown in Figure frees up the memory allocated for the image buffer. Call this VI only after the image is no longer required for processing.
Grab - A grab is a continuous, high-speed acquisition of data to a single buffer in host memory. This function performs an acquisition that loops continually on one buffer. It is possible to get a copy of the acquisition buffer by grabbing a copy to a Labview image buffer. For this to happen two VIs must be used IMAQ USB Grab Setup and IMAQ USB Grab Acquire. Call IMAQ USB Grab Setup once to initialise the acquisition and start capturing the image to an internal software buffer. The IMAQ USB Grab Acquire can be called multiple times to copy the image currently stored in the buffer to a Labview image buffer. Once the program is finished copying images,
Brian Murphy
29/05/2012
call IMAQ USB Close once to shut down the acquisition. Figure shows a simplified block diagram for using IMAQ USB Grab Setup and IMAQ USB Grab Acquire.
The following is an image captured in Labview. The ball will represent the tumor. Some image processing techniques must be performed on this to eliminate any unwanted background material and clearly detect the ball.
Brian Murphy
29/05/2012
10
Brian Murphy
29/05/2012
11
Brian Murphy
29/05/2012
12
Table Of Figures
Figure 1: Image of Tumour in a body receiving Radiotherapy ........................................4 Figure 2: Lego Mindstorms NXT......................................................................................5 Figure 3: NI-IMAQ for USB Cameras Architecture.........................................................8 Figure 4: IMAQ Create......................................................................................................8 Figure 5: IMAQ Dispose....................................................................................................9 Figure 6: Acquiring an Image Using IMAQ USB Snap....................................................9 Figure 7: Acquiring an Image Using IMAQ USB Grab..................................................10 Figure 8: Image capture in Labview................................................................................10 Figure 9: LEGO Mindstorms Tribot............................................................................11
Brian Murphy
29/05/2012
13