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

SCM Repository

[diderot] Annotation of /benchmarks/programs/lic2d/didthis-synth.txt
ViewVC logotype

Annotation of /benchmarks/programs/lic2d/didthis-synth.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1615 - (view) (download)

1 : glk 1615
2 :     # make sure it looks right post-reshape
3 :     unu reshape -i synth-u.txt -s 2 9 9 | unu slice -a 0 -p 0 | unu save -f text
4 :     unu reshape -i synth-u.txt -s 2 9 9 | unu slice -a 0 -p 1 | unu save -f text
5 :    
6 :     unu reshape -i synth-u.txt -s 2 9 9 \
7 :     | unu axinfo -a 0 -k 2-vector \
8 :     | ~/diderot/diderot/trunk/bin/dnorm -i - -o - \
9 :     | unu pad -min 0 -3 -3 -max M M+3 M+3 -o imp-u.nrrd
10 :    
11 :     unu shuffle -i imp-u.nrrd -a 0 -p 1 0 -o imp-v.nrrd
12 :    
13 :     # upsampling with bspln3 == cubic:1,0
14 :     unu crop -i imp-u.nrrd -min 0 3 3 -max M M-3 M-3 \
15 :     | unu resample -s = 500 500 -k cubic:1,0 -c node -co \
16 :     | unu pad -min 0 0 0 -max 2 M M -b wrap -o teem.nrrd
17 :    
18 :     # upsampling with ctmr == cubic:0.0.5
19 :     unu crop -i imp-u.nrrd -min 0 3 3 -max M M-3 M-3 \
20 :     | unu resample -s = 500 500 -k cubic:0,0.5 -c node -co \
21 :     | unu pad -min 0 0 0 -max 2 M M -b wrap -o teem.nrrd
22 :    
23 :     # 1st derivative along X d/dx ( cubic:B,C) == cubicd:B,C
24 :     unu crop -i imp-u.nrrd -min 0 3 3 -max M M-3 M-3 \
25 :     | unu resample -s = 500 = -k cubicd:0,0.5 -c node -co \
26 :     | unu resample -s = = 500 -k cubic:0,0.5 -c node -co \
27 :     | unu slice -a 0 -p 0 -o tmp-dx.nrrd
28 :    
29 :     unu crop -i imp-u.nrrd -min 0 3 3 -max M M-3 M-3 \
30 :     | unu resample -s = 500 = -k cubic:0,0.5 -c node -co \
31 :     | unu resample -s = = 500 -k cubicd:0,0.5 -c node -co \
32 :     | unu slice -a 0 -p 0 -o tmp-dy.nrrd
33 :    
34 :     unu join -i tmp-d{x,y,x}.nrrd -a 0 -incr -o teem.nrrd

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