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

SCM Repository

[diderot] Diff of /examples/iso2d-spatial/run-iso3d-glk.sh
ViewVC logotype

Diff of /examples/iso2d-spatial/run-iso3d-glk.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3179, Mon Mar 30 21:07:43 2015 UTC revision 3180, Tue Mar 31 03:48:35 2015 UTC
# Line 11  Line 11 
11  }  }
12  trap cleanup err exit int term  trap cleanup err exit int term
13    
 GLK=glk3  
14    
15  DFLAGS="--disable-high-vn --disable-mid-vn --disable-low-vn"  # controls whether we re-compile
16  #DFLAGS=""  if true; then
17  # compile    ../../branches/lamont/bin/diderotc --disable-high-vn --disable-mid-vn --disable-low-vn --exec iso3d-glk3.diderot
18  ../../branches/lamont/bin/diderotc $DFLAGS --exec iso3d-$GLK.diderot    junk iso3d-glk3.{c,o}
19    fi
20  junk iso2d-$GLK.{c,o}  
21    # make things run slower by increasing res or decreasing epsilon
22  ./iso3d-$GLK -epsilon 0.001  ./iso3d-glk3 -res 25 -epsilon 0.01
23    
24  unu crop -i outPos.nrrd -min 0 0 -max 1 M \  # make a 2D picture of some of the points
25   | unu jhisto  -min -1.2 -1.2 -max 1.2 1.2 -b 700 700 \  unu dice -i pos.nrrd -a 0 -o ./ ; junk {0,1,2}.nrrd
26   | unu dist -th 0.5 \  unu 2op gt 2.nrrd 0 |
27   | unu quantize -b 8 -min 0 -max 2 -o pos3-final.png  unu jhisto -i {0,1}.nrrd -w - -b 800 800 -min -1.2 -1.2 -max 1.2 1.2 -t float |
28    unu quantize -b 8 -max 1.5 -o pos-2d.png
 unu jhisto -i outPos.nrrd -min -1.2 -1.2 -1.2 -max 1.2 1.2 1.2 -b 120 120 120 \  
  | unu dist -th 0.5 \  
  | unu 3op clamp 0 - 3 \  
  | unu dnorm -o pos-final.nrrd  

Legend:
Removed from v.3179  
changed lines
  Added in v.3180

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