Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /examples/iso2d-spatial/go-iso3d-glk3.sh
ViewVC logotype

Annotation of /examples/iso2d-spatial/go-iso3d-glk3.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3021 - (view) (download) (as text)

1 : glk 3005 #!/usr/bin/env bash
2 :     set -o errexit
3 :     set -o nounset
4 :    
5 :     JUNK=""
6 :     function junk {
7 :     JUNK="$JUNK $@"
8 :     }
9 :     function cleanup {
10 :     rm -rf $JUNK
11 :     }
12 :     trap cleanup err exit int term
13 :    
14 :     GLK=glk3
15 :    
16 :     DFLAGS="--disable-high-vn --disable-mid-vn --disable-low-vn"
17 :     #DFLAGS=""
18 :     # compile
19 :     ../../branches/lamont/bin/diderotc $DFLAGS --exec iso3d-$GLK.diderot
20 :    
21 :     junk iso2d-$GLK.{c,o}
22 :    
23 :     ./iso3d-$GLK -epsilon 0.001
24 :    
25 : glk 3021 unu crop -i outPos.nrrd -min 0 0 -max 1 M \
26 :     | unu jhisto -min -1.2 -1.2 -max 1.2 1.2 -b 700 700 \
27 :     | unu dist -th 0.5 \
28 :     | unu quantize -b 8 -min 0 -max 2 -o pos3-final.png
29 :    
30 : glk 3005 unu jhisto -i outPos.nrrd -min -1.2 -1.2 -1.2 -max 1.2 1.2 1.2 -b 120 120 120 \
31 :     | unu dist -th 0.5 \
32 :     | unu 3op clamp 0 - 3 \
33 :     | unu dnorm -o pos-final.nrrd

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0