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

SCM Repository

[diderot] View of /tests/vis15-bugs/halftone-bug2_sh.in
ViewVC logotype

View of /tests/vis15-bugs/halftone-bug2_sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4780 - (download) (annotate)
Tue Oct 18 23:10:28 2016 UTC (2 years, 9 months ago) by jhr
File size: 849 byte(s)
  restore use of aliases
#!/bin/bash
set -o errexit
set -o nounset
shopt -s expand_aliases
JUNK=""
function junk {
  JUNK="$JUNK $@"
}
function cleanup {
  rm -rf $JUNK
}
trap cleanup err exit int term

export NRRD_STATE_VERBOSE_IO=0

PROG=halftone-bug2

alias diderotc=@DIDEROTC@
alias unu=@TEEM_BIN@/unu

echo "@DIDEROTC@ --snapshot --exec $PROG.diderot"
diderotc --snapshot --exec $PROG.diderot

rm -f jh-*.pgm posn-*.nrrd

#valgrind \
./$PROG -s 1 -l 8 -radmm 0.03 0.3 -eps 0.011 -pcp 2 -hhInit 0.005 ||:

SZ=200
OV=1
for PIIN in posn-????.nrrd; do # for PIIN in pos-????.nrrd; do
    IIN=${PIIN#*-}
    II=${IIN%.*}
    echo $II
    unu dice -i $PIIN -a 0 -o ./
    unu jhisto -i 0.nrrd 1.nrrd -w 2.nrrd -min -1.0 1.0 -max 1.0 -1.0 -b $[OV*SZ] $[SZ*OV] -t float |
    unu resample -s x3 x3 -k box | unu quantize -b 8 -min 0 -max 10 -o jh-$II.pgm
done
junk {0,1,2}.nrrd

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