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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/zslice1.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/zslice1.diderot

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

revision 595, Fri Mar 11 05:36:30 2011 UTC revision 599, Fri Mar 11 15:31:42 2011 UTC
# Line 1  Line 1 
1  // vr-MIP-test.diderot  // zslice1.diderot
2  //  //
3  // test version of maximum intensity projection in Diderot  // test version of maximum intensity projection in Diderot
4  //  //
5    
6  string dataFile = "../data/zimg.nrrd";  string dataFile = "../data/zimg.nrrd";
7  int dataSize = 9;  int dataSize = 9;
8  int imgSize = 150; // HEY why doesn't this change size away fom 200x200?  int imgSize = 200;
9  vec3 orig = [0.0, 0.0, 4.0];  vec3 orig = [0.0, 0.0, 4.0];
10  vec3 cVec = [0.0, 1.0, 0.0];  vec3 cVec = [0.0, 1.0, 0.0];
11  vec3 rVec = [1.0, 0.0, 0.0];  vec3 rVec = [1.0, 0.0, 0.0];
# Line 14  Line 14 
14    
15  strand RayCast (int row, int col)  strand RayCast (int row, int col)
16  {  {
17      real rr = real(dataSize)*(real(row)+0.5)/real(imgSize) - 0.5;      real rr = real(dataSize)*(real(row)+0.5)/real(imgSize);
18      real cc = real(dataSize)*(real(col)+0.5)/real(imgSize) - 0.5;      real cc = real(dataSize)*(real(col)+0.5)/real(imgSize);
19      vec3 pos = orig + rr*rVec + cc*cVec;      vec3 pos = orig + rr*rVec + cc*cVec;
20      output real maxval = -∞;      output real maxval = -∞;
21    
# Line 23  Line 23 
23      {      {
24         // HEY region for this should be exactly centered in the image         // HEY region for this should be exactly centered in the image
25          if (inside (pos,F)) {          if (inside (pos,F)) {
26            maxval = rr;            maxval = 1.0;
27          }          }
28          if (1 > 0)          if (1 > 0)
29            stabilize;            stabilize;

Legend:
Removed from v.595  
changed lines
  Added in v.599

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