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

SCM Repository

[diderot] View of /trunk/data/txs-dvr-miter.csh
ViewVC logotype

View of /trunk/data/txs-dvr-miter.csh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 253 - (download) (as text) (annotate)
Sat Aug 7 19:05:15 2010 UTC (8 years, 11 months ago) by glk
File size: 702 byte(s)
new dvr examples
#!/bin/csh

echo "0 1" \
 | unu reshape -s 1 2 \
 | unu resample -s = 500 -k tent \
 | unu save -f text -o ramp.txt

echo "0.0 0.0   0.15 0.0    0.35 1.0    1.0 1.0" \
 | unu reshape -s 2 4 \
 | unu imap -i ramp.txt -r -m - \
 | unu axinfo -a 0 -l "A" \
 | unu axinfo -a 1 -l "gage(scalar:v)" -mm 0.0 1.0 -o txf.nrrd

foreach K ( tent bspln3 bspln5 )

  miter -i txs.nrrd -k00 ${K} -k11 ${K}d -step 0.02  -txf txf.nrrd \
    -fr 25 15 10 -at 3 3 3 -up 0 0 1 -rh -ar \
    -dn -6 -di -6 -df 4 -fv 18 -is 400 400 \
    -ld 0 0 -1 -ads 0 1 0  -ss "phong:gage(scalar:n)" -ref 1 -o - \
   | unu crop -min 0 0 0 -max 3 M M \
   | overrgb -i - -b 0.2 0.3 0.4 -o txs-dvr-${K}.png

end

rm -f ramp.txt txf.nrrd

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