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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/glk-tests/new/ridge2d.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/glk-tests/new/ridge2d.diderot

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

revision 4496, Sat Sep 3 13:52:11 2016 UTC revision 4497, Sat Sep 3 14:12:36 2016 UTC
# Line 1  Line 1 
1    #version 2
2    
3  // ridge2d  // ridge2d
4  //  //
5  // Process output with:  // Process output with:
6  // unu jhisto -i ridge2d.txt -b 512 512 -min 0 0 -max 1 1 | unu 2op neq - 0 | unu quantize -b 8 -o ridge2d.png  // unu jhisto -i ridge2d.txt -b 512 512 -min 0 0 -max 1 1 | unu 2op neq - 0 | unu quantize -b 8 -o ridge2d.png
7    
8  int gridSize = 200;  int gridSize = 200;
9  field#2(2)[] F = bspln3 ⊛ image("../data/ddro-80.nrrd");  field#2(2)[] F = bspln3 ⊛ load_image("../data/ddro-80.nrrd");
10  input int stepsMax ("maximum number of steps") = 20;  input int stepsMax ("maximum number of steps") = 20;
11  real epsilon = 0.0001;  real epsilon = 0.0001;
12  real travelMax = 0.1;  real travelMax = 0.1;
# Line 33  Line 35 
35                 stabilize;                 stabilize;
36              }              }
37              die;              die;
38          } // BUG: can't have:  else {          } else {
39              pos += delta;              pos += delta;
40              steps += 1;              steps += 1;
41              travel += |delta|;              travel += |delta|;
42          // BUG: can't have:    }          }
43      }      }
44  }  }
45    
46  collection { sample(ui, vi) | vi in 0..(gridSize-1), ui in 0..(gridSize-1) }  create_collection { sample(ui, vi) | vi in 0..(gridSize-1), ui in 0..(gridSize-1) }
47    

Legend:
Removed from v.4496  
changed lines
  Added in v.4497

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