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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3022 - (download) (as text) (annotate)
Mon Mar 9 21:56:06 2015 UTC (4 years, 4 months ago) by glk
File size: 711 byte(s)
rename
#!/usr/bin/env bash
set -o errexit
set -o nounset

JUNK=""
function junk {
  JUNK="$JUNK $@"
}
function cleanup {
  rm -rf $JUNK
}
trap cleanup err exit int term

GLK=glk3

DFLAGS="--disable-high-vn --disable-mid-vn --disable-low-vn"
#DFLAGS=""
# compile
../../branches/lamont/bin/diderotc $DFLAGS --exec iso3d-$GLK.diderot

junk iso2d-$GLK.{c,o}

./iso3d-$GLK -epsilon 0.001

unu crop -i outPos.nrrd -min 0 0 -max 1 M \
 | unu jhisto  -min -1.2 -1.2 -max 1.2 1.2 -b 700 700 \
 | unu dist -th 0.5 \
 | unu quantize -b 8 -min 0 -max 2 -o pos3-final.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

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