Spectral simplex decomposition¶

This page describes an application for two-step spectral CT reconstruction. Please start by reading the general documentation on spectral CT.

RTK provides a command line application to decompose the measured projections into one set of projections per basis (material) function. It uses the incident spectrum, the material attenuations and the detector response. The method is described in Schlomka et al, PMB, 2008.

Dataset¶

The data used in this documentation page can be downloaded using Girder. It is a simulation through a cylinder of water with two inserts, one empty, the other filled with cortical bone.

Command line application¶

# Decompose the measured projections (photon counts on the spectral detector)
# into material projections, using the incident spectrum,
# the material attenuations and the detector response.

rtkspectralsimplexdecomposition \
  -o cl_decomposed.mha \
  -i decomposed_init.mha \
  -s counts.mha \
  -d drm.mha \
  --incident spectrum.mha \
  -a mat_basis.mha \
  -t 20,40,60,80,100

cl_decomposed.mha should be identical to decomposed.mha available on Girder.

After decomposition, you can reconstruct the two components of the image one by one with

rtkfdk -p . -r '^cl_decomposed.mha$' -o fdk0.mha --component 0 -g geometry.xml -v
rtkfdk -p . -r '^cl_decomposed.mha$' -o fdk1.mha --component 1 -g geometry.xml -v

Command line options¶

usage: __main__.py [-h] [-V] [-v] --output OUTPUT [--input INPUT] --spectral
                     SPECTRAL --detector DETECTOR --incident INCIDENT
                     --attenuations ATTENUATIONS [--niterations NITERATIONS]
                     --thresholds THRESHOLDS [THRESHOLDS ...]
                     [--weightsmap WEIGHTSMAP] [--restarts]
                     [--fischer FISCHER] [--log] [--guess]

Named Arguments¶

-V, --version

show program’s version number and exit

-v, --verbose

Verbose execution

Default: False

--output, -o

Output file name (decomposed projections)

--input, -i

Decomposed projections for initialization file name

--spectral, -s

Spectral projections to be decomposed

--detector, -d

Detector response file

--incident

Incident spectrum file

--attenuations, -a

Material attenuations file

--niterations, -n

Number of iterations

Default: 300

--thresholds, -t

Lower threshold of bins, expressed in pulse height

--weightsmap, -w

File name for the output weights map (inverse noise variance)

--restarts, -r

Allow random restarts during optimization

Default: False

--fischer, -f

File name for the Fischer information matrix

--log, -l

Log transform each bin, and concatenate the projections with the decomposed ones

Default: False

--guess, -g

Ignore values in input and initialize the simplex with a simple heuristic instead

Default: False