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

SCM Repository

[diderot] Diff of /examples/iso2d-demo/iso2d.diderot
ViewVC logotype

Diff of /examples/iso2d-demo/iso2d.diderot

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

revision 1920, Fri Jun 8 12:11:49 2012 UTC revision 2079, Mon Nov 5 12:50:51 2012 UTC
# Line 8  Line 8 
8  // unu jhisto -i iso2d.txt -b 512 512 -min 0 0 -max 1 1 | unu 2op neq - 0 | unu quantize -b 8  -o iso2d.png  // unu jhisto -i iso2d.txt -b 512 512 -min 0 0 -max 1 1 | unu 2op neq - 0 | unu quantize -b 8  -o iso2d.png
9    
10  int gridSize = 300;  int gridSize = 300;
11  image(2)[] diderot = load("data/ddro-80.nrrd");  image(2)[] diderot = image("data/ddro-80.nrrd");
12  field#1(2)[] F = ctmr ⊛ diderot;  field#1(2)[] F = ctmr ⊛ diderot;
13  int stepsMax = 10;  input int stepsMax = 50;
14    input real stepScale = 1.0;
15  real epsilon = 0.0001;  real epsilon = 0.0001;
16    
17  strand sample (int ui, int vi) {  strand sample (int ui, int vi) {
# Line 36  Line 37 
37          if (|delta| < epsilon) {    // we've converged if step is small enough          if (|delta| < epsilon) {    // we've converged if step is small enough
38              stabilize;              stabilize;
39          }          }
40          pos += delta;          pos += stepScale * delta;
41          steps += 1;          steps += 1;
42      }      }
43  }  }

Legend:
Removed from v.1920  
changed lines
  Added in v.2079

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