RTK/Scripts/ForwardProjection: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="floatcenter">[[File:POPISinogram.png]][[File:POPIReconstruction.png]]</div> | <div class="floatcenter">[[File:POPISinogram.png|250px]][[File:POPIReconstruction.png|250px]]</div> | ||
This script uses the files [[http://www.creatis.insa-lyon.fr/~ | This script uses the files [[http://www.creatis.insa-lyon.fr/~srit/POPI/MedPhys11/bl/mhd/00.mhd 00.mhd]] and [[http://www.creatis.insa-lyon.fr/~srit/POPI/MedPhys11/bl/mhd/00.raw 00.raw]] of the [[http://www.creatis.insa-lyon.fr/rio/popi-model/ POPI]] as input. | ||
<source lang="bash"> | <source lang="bash"> | ||
# Create a simulated geometry | # Create a simulated geometry | ||
rtksimulatedgeometry | rtksimulatedgeometry -n 180 -o geometry.xml | ||
# Forward project | # Forward project | ||
Line 16: | Line 16: | ||
Note that the original file is in Hounsfield units which explains the negative values in the projection images since, e.g., the attenuation of air is -1000 HU. | Note that the original file is in Hounsfield units which explains the negative values in the projection images since, e.g., the attenuation of air is -1000 HU. | ||
It is also worth of note that the file is oriented in the DICOM coordinate system although RTK uses the 61217 which results in a rotation around the antero-posterior axis of the patient. This can be easily changed by modifying the TransformMatrix in the 00.mhd file. | It is also worth of note that the file is oriented in the DICOM coordinate system although RTK uses the IEC 61217 which results in a rotation around the antero-posterior axis of the patient. This can be easily changed by modifying the TransformMatrix in the 00.mhd file. |
Latest revision as of 06:19, 16 July 2015
Error creating thumbnail: File missing
Error creating thumbnail: File missing
This script uses the files [00.mhd] and [00.raw] of the [POPI] as input.
# Create a simulated geometry
rtksimulatedgeometry -n 180 -o geometry.xml
# Forward project
rtkforwardprojections -g geometry.xml -o projections.mha -i 00.mhd --spacing 2 --dimension 512
# Reconstruct in the same resolution as the original
rtkfdk -p . -r projections.mha -o fdk.mha -g geometry.xml --spacing=0.976562,0.976562,2 --origin=-250,-250,-164.5 --dimension=512,512,141
Note that the original file is in Hounsfield units which explains the negative values in the projection images since, e.g., the attenuation of air is -1000 HU.
It is also worth of note that the file is oriented in the DICOM coordinate system although RTK uses the IEC 61217 which results in a rotation around the antero-posterior axis of the patient. This can be easily changed by modifying the TransformMatrix in the 00.mhd file.