RTK/Examples/ADMMTVReconstruction: Difference between revisions

From Openrtk
Jump to navigation Jump to search
(Created page with "<div class="floatcenter">200px 200px</div> This script uses the file [http://midas3.kitware.com/midas/download?items=27326 SheppLog...")
 
No edit summary
 
Line 1: Line 1:
<div class="floatcenter">[[File:sinogram.png|200px]] [[File:overlay.png|200px]]</div>
<div class="floatcenter">[[File:sinogram.png|200px]] [[File:overlay.png|200px]]</div>


This script uses the file [http://midas3.kitware.com/midas/download?items=27326 SheppLogan.txt] as input.
This script uses the file [https://data.kitware.com/api/v1/item/5b179c938d777f15ebe2020b/download SheppLogan.txt] as input.


<source lang="bash">
<source lang="bash">

Latest revision as of 11:11, 12 November 2018

Error creating thumbnail: File missing
Error creating thumbnail: File missing

This script uses the file SheppLogan.txt as input.

 # Create a simulated geometry
 rtksimulatedgeometry -n 180 -o geometry.xml
 # You may add "--arc 200" to make the scan short or "--proj_iso_x 200" to offset the detector

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

 # Reconstruct
 rtkadmmtotalvariation -p . -r projections.mha -o admmtv.mha -g geometry.xml --spacing 2 --dimension 256 --alpha 1 --beta 1000 -n 3

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