X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fsample-ctsim.sh.in;fp=src%2Fsample-ctsim.sh.in;h=0000000000000000000000000000000000000000;hb=1fd4f7cc977b9f1499716de10d15656bd50f4816;hp=1277641c8fbb350878bf02a6e40c915ca982dd11;hpb=52107baf438f31ce8930b062e7fdebf95d3fd9ee;p=ctsim.git diff --git a/src/sample-ctsim.sh.in b/src/sample-ctsim.sh.in deleted file mode 100755 index 1277641..0000000 --- a/src/sample-ctsim.sh.in +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -if test "$1" != "" ; then - bin=$1 -else - bin="@prefix@/bin/" -fi - -if test "$1" = "clean" ; then - rm -f sample-phm.png sample-phm16.png sample-phm.if sample-pj.pj sample-pj.if sample-pj.png sample-pj16.png sample-rec.if sample-rec.png sample-rec16.png - exit -fi - -# Generate phantom image - -${bin}phm2if sample-phm.if 256 256 --nsample 2 --phantom herman -if [ -f sample-phm.if ] ; then - ${bin}if2img sample-phm.if sample-phm.png --format png - ${bin}if2img sample-phm.if sample-phm16.png --format png16 -fi - -# Simulate CT data collection and generate raysum sinugram for display -${bin}phm2pj sample-pj.pj 367 320 --nray 2 --phantom herman -if [ -f sample-pj.pj ]; then - ${bin}pj2if sample-pj.pj sample-pj.if -fi -if [ -f sample-pj.if ]; then - ${bin}if2img sample-pj.if sample-pj.png --format png - ${bin}if2img sample-pj.if sample-pj16.png --format png16 -fi - -# Reconstruct raysums and generate image for display -${bin}pjrec sample-pj.pj sample-rec.if 256 256 -if [ -f sample-rec.if ]; then - ${bin}if2img sample-rec.if sample-rec.png --format png - ${bin}if2img sample-rec.if sample-rec16.png --format png16 - - ${bin}if-2 sample-phm.if sample-rec.if --comp -fi - -# Files sample-phm.png, sample-pj.png, and sample-rec.png are ready for display