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

SCM Repository

[diderot] Diff of /branches/vis12/test/ridge3d/ridge3d.diderot
ViewVC logotype

Diff of /branches/vis12/test/ridge3d/ridge3d.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1902, Fri Jun 1 21:26:53 2012 UTC revision 1903, Fri Jun 1 22:21:50 2012 UTC
# Line 8  Line 8 
8   * All rights reserved.   * All rights reserved.
9   */   */
10    
11    /* possible computation and post-processing:
12    
13    foreach S ( 170 190 210 230 250 270 290 )
14      echo $S
15      ./ridge3d -gridSize 120 -strnMin $S
16      mv pos.nrrd pos-${S}.nrrd
17    end
18    
19    unu join -i pos-{170,190,210,230,250,270,290}.nrrd -a 1 \
20     | unu jhisto -min 21.6401 -175.8792 -188.0000 \
21       -max 91.6401 -75.8792 -118.0000 -b 70 140 70 -t float \
22     | unu 1op log1p \
23     | ../../bin/dnorm -i - \
24     | unu 2op gt - 3 \
25     | unu dist -th 0.5 -inv -sgn \
26     | unu 2op gt - -1 \
27     | unu quantize -b 8 \
28     | unu ccfind -c 1 -v vals.nrrd \
29     | unu ccmerge -s 2000 -c 1 -d -1 -v vals.nrrd -revalue \
30     | unu ccfind -c 1 -v vals.nrrd \
31     | unu ccmerge -s 2000 -c 1 -d -1 -v vals.nrrd -revalue \
32     | unu dist -th 128 -inv -sgn \
33     | unu pad -min -1 -1 -1 -max M+1 M+1 M+1 -b pad -v -3 \
34     | unu resample -s x2 x2 x2  -k bspln3 -o lung-vis.nrrd
35    rm -f vals.nrrd
36    
37    echo with fog
38    ~/Deft/src/Deft_iso -i lung-vis.nrrd \
39    -usecam -fr -514.784 1271.16 -1262.16 -at 61.5794 -112.78 -148.393 \
40    -up 0.570448 0.645888 0.507364 -rh -ar \
41    -dn -38.7956 -df 50 -fv 2.18834 -is 1280 960
42    
43    overrgb -i 000000.png -b 0.1 0.15 0.2 -o lung-vis.png
44    
45    */
46    
47  input int gridSize = 120;  input int gridSize = 120;
48  field#2(3)[] F = bspln3 ⊛ load("../../data/lungcrop.nrrd");  field#2(3)[] F = bspln3 ⊛ load("../../data/lungcrop.nrrd");
49  input int stepsMax = 30;  input int stepsMax = 30;

Legend:
Removed from v.1902  
changed lines
  Added in v.1903

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