projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5205132
)
r371: converted to ctsimtext shell
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Tue, 9 Jan 2001 22:41:37 +0000
(22:41 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Tue, 9 Jan 2001 22:41:37 +0000
(22:41 +0000)
tools/sample-ctsim.sh.in
patch
|
blob
|
history
diff --git
a/tools/sample-ctsim.sh.in
b/tools/sample-ctsim.sh.in
index e19100f4986030f4c825b6b5d76aebd9bf057c7f..ad2c9985172b9f3656e3acb8712661b94647d395 100755
(executable)
--- a/
tools/sample-ctsim.sh.in
+++ b/
tools/sample-ctsim.sh.in
@@
-13,29
+13,30
@@
fi
# Generate phantom image
# Generate phantom image
-${bin}phm2if sample-phm.if 256 256 --nsample 2 --phantom herman
+${bin}
ctsimtext
phm2if sample-phm.if 256 256 --nsample 2 --phantom herman
if [ -f sample-phm.if ] ; then
if [ -f sample-phm.if ] ; then
- ${bin}ifexport sample-phm.if sample-phm.png --format png
- ${bin}ifexport sample-phm.if sample-phm16.png --format png16
+ ${bin}
ctsimtext
ifexport sample-phm.if sample-phm.png --format png
+ ${bin}
ctsimtext
ifexport sample-phm.if sample-phm16.png --format png16
fi
# Simulate CT data collection and generate raysum sinugram for display
fi
# Simulate CT data collection and generate raysum sinugram for display
-${bin}phm2pj sample-pj.pj 367 320 --nray 2 --phantom herman
+${bin}
ctsimtext
phm2pj sample-pj.pj 367 320 --nray 2 --phantom herman
if [ -f sample-pj.pj ]; then
if [ -f sample-pj.pj ]; then
- ${bin}pj2if sample-pj.pj sample-pj.if
+ ${bin}
ctsimtext
pj2if sample-pj.pj sample-pj.if
fi
if [ -f sample-pj.if ]; then
fi
if [ -f sample-pj.if ]; then
- ${bin}ifexport sample-pj.if sample-pj.png --format png
- ${bin}ifexport sample-pj.if sample-pj16.png --format png16
+ ${bin}
ctsimtext
ifexport sample-pj.if sample-pj.png --format png
+ ${bin}
ctsimtext
ifexport sample-pj.if sample-pj16.png --format png16
fi
# Reconstruct raysums and generate image for display
fi
# Reconstruct raysums and generate image for display
-${bin}pjrec sample-pj.pj sample-rec.if 256 256
+${bin}
ctsimtext
pjrec sample-pj.pj sample-rec.if 256 256
if [ -f sample-rec.if ]; then
if [ -f sample-rec.if ]; then
- ${bin}ifexport sample-rec.if sample-rec.png --format png
- ${bin}ifexport sample-rec.if sample-rec16.png --format png16
+ ${bin}
ctsimtext
ifexport sample-rec.if sample-rec.png --format png
+ ${bin}
ctsimtext
ifexport sample-rec.if sample-rec16.png --format png16
- ${bin}if2 sample-phm.if sample-rec.if --comp
+ # Display comparison statistics
+ ${bin}ctsimtext if2 sample-phm.if sample-rec.if --comp
fi
# Files sample-phm.png, sample-pj.png, and sample-rec.png are ready for display
fi
# Files sample-phm.png, sample-pj.png, and sample-rec.png are ready for display