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

SCM Repository

[diderot] View of /branches/vis12-cl/data/didthis-etest-data.txt
ViewVC logotype

View of /branches/vis12-cl/data/didthis-etest-data.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2402 - (download) (annotate)
Sat Jul 27 13:55:03 2013 UTC (5 years, 10 months ago) by jhr
File size: 1354 byte(s)
  Create branch for adding OpenCL to vis12 branch.  Based on r2401 of the vis12 branch.
set M=12
@ S = $M + 1

echo 1 \
 | unu convert -t double \
 | unu reshape -s 1 1 1 \
 | unu pad -min 0 0 0 -max $M $M $M \
 | unu 1op nrand -s 42 -o v.nrrd
unu crop -i v.nrrd -min 0 0 0 -max M M 0 \
 | unu pad -min 0 0 0 -max $M $M $M -b bleed -o sz.nrrd
unu swap -i sz.nrrd -a 2 0 -o sx.nrrd
unu swap -i sz.nrrd -a 2 1 -o sy.nrrd
unu crop -i v.nrrd -min 0 0 0 -max M 0 0 \
 | unu pad -min 0 0 0 -max $M $M $M -b bleed -o lz.nrrd
unu swap -i lz.nrrd -a 2 0 -o lx.nrrd
unu swap -i lz.nrrd -a 2 1 -o ly.nrrd

echo "-1 -1 -1 -1  1 1 1 1" \
 | unu convert -t double \
 | unu reshape -s 2 2 2 \
 | unu resample -s $S $S $S -k tent -c node \
 | unu 2op pow - 2 \
 | unu 2op x - 40 -o pz.nrrd
unu swap -i pz.nrrd -a 2 0 -o px.nrrd
unu swap -i pz.nrrd -a 2 1 -o py.nrrd
unu 2op + p{x,y}.nrrd -o pxy.nrrd
unu 2op + p{x,z}.nrrd -o pxz.nrrd
unu 2op + p{y,z}.nrrd -o pyz.nrrd
unu 3op + p{x,y,z}.nrrd -o pxyz.nrrd

unu 2op x pz.nrrd 0 -o z.nrrd

unu join -i {v,z,pxyz}.nrrd -a 1 -o c0.nrrd
unu join -i s{x,y,z}.nrrd -a 1 -o c1.nrrd
unu join -i l{x,y,z}.nrrd -a 1 -o c2.nrrd
unu join -i p{x,y,z}.nrrd -a 1 -o c3.nrrd
unu join -i p{xy,xz,yz}.nrrd -a 1 -o c4.nrrd

unu join -i c{0,1,2,3,4}.nrrd -a 0 \
 | unu pad -min -3 -3 0 -max M+3 M+3 M -b pad -v 0 \
 | ../bin/dnorm -i - -o etest.nrrd

rm -f {v,sx,sy,sz,lx,ly,lz,px,py,pz,pxy,pxz,pyz,pxyz,z,c0,c1,c2,c3,c4}.nrrd
 

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