projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3873067
)
r85: *** empty log message ***
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 7 Jun 2000 07:52:35 +0000
(07:52 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 7 Jun 2000 07:52:35 +0000
(07:52 +0000)
src/sample-ctrec.sh.in
patch
|
blob
|
history
diff --git
a/src/sample-ctrec.sh.in
b/src/sample-ctrec.sh.in
index f1485da8a6c6d9be53b843a6fa387e8426e8916c..3d2568cfff639c23171083cc5a583ea5ea4a9b00 100755
(executable)
--- a/
src/sample-ctrec.sh.in
+++ b/
src/sample-ctrec.sh.in
@@
-8,27
+8,27
@@
fi
# Generate phantom image
# Generate phantom image
-${bin}phm2
sdf sample-phm.sd
f 256 256 --nsample 2 --phantom herman
-if [ -f sample-phm.
sd
f ] ; then
- ${bin}
sdf2img sample-phm.sd
f sample-phm.png --format png
- ${bin}
sdf2img sample-phm.sd
f sample-phm16.png --format png16
+${bin}phm2
if sample-phm.i
f 256 256 --nsample 2 --phantom herman
+if [ -f sample-phm.
i
f ] ; then
+ ${bin}
if2img sample-phm.i
f sample-phm.png --format png
+ ${bin}
if2img sample-phm.i
f sample-phm16.png --format png16
fi
# Simulate CT data collection and generate raysum sinugram for display
${bin}phm2rs sample-rs.rs 367 320 --nray 2 --phantom herman
if [ -f sample-rs.rs ]; then
fi
# Simulate CT data collection and generate raysum sinugram for display
${bin}phm2rs sample-rs.rs 367 320 --nray 2 --phantom herman
if [ -f sample-rs.rs ]; then
- ${bin}rs2
sdf sample-rs.rs sample-rs.sd
f
+ ${bin}rs2
if sample-rs.rs sample-rs.i
f
fi
fi
-if [ -f sample-rs.
sd
f ]; then
- ${bin}
sdf2img sample-rs.sd
f sample-rs.png --format png
- ${bin}
sdf2img sample-rs.sd
f sample-rs16.png --format png16
+if [ -f sample-rs.
i
f ]; then
+ ${bin}
if2img sample-rs.i
f sample-rs.png --format png
+ ${bin}
if2img sample-rs.i
f sample-rs16.png --format png16
fi
# Reconstruct raysums and generate image for display
fi
# Reconstruct raysums and generate image for display
-${bin}ctrec sample-rs.rs sample-rec.
sd
f 256 256
-if [ -f sample-rec.
sd
f ]; then
- ${bin}
sdf2img sample-rec.sd
f sample-rec.png --format png
- ${bin}
sdf2img sample-rec.sd
f sample-rec16.png --format png16
+${bin}ctrec sample-rs.rs sample-rec.
i
f 256 256
+if [ -f sample-rec.
i
f ]; then
+ ${bin}
if2img sample-rec.i
f sample-rec.png --format png
+ ${bin}
if2img sample-rec.i
f sample-rec16.png --format png16
fi
# Files sample-phm.png, sample-rs.png, and sample-rec.png are ready for display
fi
# Files sample-phm.png, sample-rs.png, and sample-rec.png are ready for display