RTK/Scripts/FDK: Difference between revisions

From Openrtk
Jump to navigation Jump to search
(Created page with "<div class="floatcenter">File:sinogram.pngFile:overlay.png</div> <source lang="bash"> # Create a simulated geometry rtksimulatedgeometry.exe -n 180 -o geometry.xml ...")
 
No edit summary
Line 1: Line 1:
<div class="floatcenter">[[File:sinogram.png]][[File:overlay.png]]</div>
<div class="floatcenter">[[File:sinogram.png]][[File:overlay.png]]</div>
This script uses the file [[File:SheppLogan.txt]] as input.


<source lang="bash">
<source lang="bash">
Line 6: Line 8:


  # Create projections of the phantom file
  # Create projections of the phantom file
  rtkprojectgeometricphantom -g geometry.xml -o projections.mha --spacing 2 --dimension 128 --phantomfile [[File:SheppLogan.txt]]
  rtkprojectgeometricphantom -g geometry.xml -o projections.mha --spacing 2 --dimension 256 --phantomfile SheppLogan.txt


  # Reconstruct
  # Reconstruct
  rtkfdk -p . -r projections.mha -o fdk.mha -g geometry.xml --spacing 2 --dimension 128
  rtkfdk -p . -r projections.mha -o fdk.mha -g geometry.xml --spacing 2 --dimension 256


  # Create a reference volume for comparison
  # Create a reference volume for comparison
  rtkdrawgeometricphantom --spacing 2 --dimension 128 --phantomfile [[File:SheppLogan.txt]] -o ref.mha
  rtkdrawgeometricphantom --spacing 2 --dimension 256 --phantomfile SheppLogan.txt -o ref.mha
</source>
</source>

Revision as of 12:06, 7 October 2012

Sinogram.pngOverlay.png

This script uses the file File:SheppLogan.txt as input.

 # Create a simulated geometry
 rtksimulatedgeometry.exe -n 180 -o geometry.xml

 # Create projections of the phantom file
 rtkprojectgeometricphantom -g geometry.xml -o projections.mha --spacing 2 --dimension 256 --phantomfile SheppLogan.txt

 # Reconstruct
 rtkfdk -p . -r projections.mha -o fdk.mha -g geometry.xml --spacing 2 --dimension 256

 # Create a reference volume for comparison
 rtkdrawgeometricphantom --spacing 2 --dimension 256 --phantomfile SheppLogan.txt -o ref.mha