Spectral forward model¶
This page describes an application for spectral CT simulation. Please start by reading the general documentation on spectral CT.
RTK provides a command line application to simulate the measured projections in spectral CT from the decomposed projections, the incident spectrum, the material attenuations and the detector response. It is the “forward operator” in the inverse problem that RTK solves to obtain the decomposed projections from the measured projections.
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¶
# Simulate the measured projections (photon counts on the spectral detector)
# from the decomposed projections, the incident spectrum,
# the material attenuations and the detector response.
rtkspectralforwardmodel \
-o cl_counts.mha \
-i decomposed.mha \
-d drm.mha \
--incident spectrum.mha \
-a mat_basis.mha \
-t 20,40,60,80,100
cl_counts.mha should be identical to counts.mha available on Girder.
Command line options¶
usage: __main__.py [-h] [-V] [-v] --output OUTPUT --input INPUT --detector
DETECTOR --incident INCIDENT --attenuations ATTENUATIONS
--thresholds THRESHOLDS [THRESHOLDS ...]
[--cramer_rao CRAMER_RAO] [--variances VARIANCES]
Named Arguments¶
- -V, --version
show program’s version number and exit
- -v, --verbose
Verbose execution
Default:
False- --output, -o
Output file name (photon counts)
- --input, -i
Material-decomposed projections
- --detector, -d
Detector response file
- --incident
Incident spectrum file
- --attenuations, -a
Material attenuations file
- --thresholds, -t
Lower threshold of bins, expressed in pulse height
- --cramer_rao
File name for the output Cramer Rao Lower Bound (estimation of the variance in the material decomposed images)
- --variances
Output variances of photon counts, file name