A slice of TOAST


toasterTOAST is a software package for finite element modelling and image reconstruction in optical tomography written by Martin Schweiger and Simon Arridge. It includes some other programs for creating meshes and visualisation. For more information and versions of toast which can be downloaded, see Toast's homepage.

This tutorial assumes that you have a working version of toast installed on a PC running Linux. The instructions would be similar for a Sun. Instructions for compiling and installing toast are available.

Anything written like

this

is a command which should be typed onto the command line.


Contents


Getting Started


Forward model


Image reconstruction


Difference imaging

This tutorial so far has described modelling and reconstructing absolute data. This means that no reference data is available, so images are reconstructed from a single set of data. This method is very sensitive to errors in the measurement, modelling and image reconstruction and so, for images of test phantoms, and particularly for clinical data, we tend to use difference imaging. In this method, we have two datasets, ideally one of a homogeneous reference object and one with the perturbations in place. We then reconstruct an image of the difference between the two states. The errors then largely cancel, generally giving a more reliable image.

To generate simulated reference data, modify the forward definition file so that the mesh is set to homogeneous by modifying the options in [INIT_PARAM] like this:

[INIT_PARAM]
RESET_MUA = HOMOG 0.01
RESET_P2 = HOMOG 1 MUS
RESET_N = HOMOG 1.4
RESET_A KEIJZER

Also change the names of the log file and datafiles, so you don't overwrite the original. Run a forward simulation, as above, and you should see much more homogeneous fields.

To reconstruct difference data, add another line to the reconstruction definition file in each of the [DTYPE] sections so that a line like

FILE = datafilename

becomes

FILE = datafilename
REFFILE = referencefilename

Note the spelling - REFFILE has two Fs!

Now run the reconstruction and view the images as before. For this example, because you've created perfect simulated data, these difference images are identical to the absolute you obtained earlier. Open up the log file in a text editor and have a look at it. There should be a line saying "| Reading reference data", confirming that you did do a successful difference reconstruction.


3D modelling and reconstruction


Problems?