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

SCM Repository

[diderot] Diff of /branches/pure-cfg/data/didthis-hue.txt
ViewVC logotype

Diff of /branches/pure-cfg/data/didthis-hue.txt

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

revision 1052, Tue May 3 17:34:57 2011 UTC revision 1053, Tue May 3 17:37:44 2011 UTC
# Line 13  Line 13 
13    
14  unu 2op atan2 x.nrrd y.nrrd \  unu 2op atan2 x.nrrd y.nrrd \
15   | unu 3op clamp -0.7854 - 2.3562 \   | unu 3op clamp -0.7854 - 2.3562 \
16   | unu rmap -min -0.7854 -max 2.3562 -m cmap.txt -o hue.nhdr   | unu rmap -min -0.7854 -max 2.3562 -m cmap.txt -o hue.nrrd
17    
18  rm -f cmap.txt  rm -f cmap.txt
19    
# Line 31  Line 31 
31   | unu 2op x - mask.nrrd -o sat.nrrd   | unu 2op x - mask.nrrd -o sat.nrrd
32    
33  unu join -i sat.nrrd sat.nrrd sat.nrrd -a 0 -incr \  unu join -i sat.nrrd sat.nrrd sat.nrrd -a 0 -incr \
34   | unu 3op lerp - 0.65 hue.nhdr -o hue.nhdr   | unu 3op lerp - 0.65 hue.nrrd -o hue.nrrd
35    
36  rm -f x.nrrd y.nrrd mask.nrrd sat.nrrd  rm -f x.nrrd y.nrrd mask.nrrd sat.nrrd
37    
38  echo "space dimension: 2" >> hue.nhdr  unu axinfo -i hue.nrrd -a 0 -k RGB \
39  echo "space origin: (-1.01,-1.01)" >> hue.nhdr   | unu axinfo -a 1 -mm -1 1 \
40  echo "space directions: none (0.0101,0.0) (0.0,0.0101)" >> hue.nhdr   | unu axinfo -a 2 -mm -1 1 \
41  echo "kinds: RGB space space" >> hue.nhdr   | ../bin/dnorm -i - -o - \
42     | unu pad -min 0 -3 -3 -max M M+3 M+3 -o hue.nrrd
 unu dice -i hue.nhdr -a 0 -o ./ -ff hue-%d.nrrd  

Legend:
Removed from v.1052  
changed lines
  Added in v.1053

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