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 607, Fri Mar 11 20:35:17 2011 UTC revision 608, Fri Mar 11 22:38:23 2011 UTC
# Line 1  Line 1 
1  // zslice1.diderot  // zslice1.diderot
 //  
 // test version of maximum intensity projection in Diderot  
 //  
2    
3  string dataFile = "../data/zimg.nrrd";  string dataFile = "../data/zimg.nrrd";
4  int dataSize = 9;  int dataSize = 9;
# Line 14  Line 11 
11    
12  strand RayCast (int row, int col)  strand RayCast (int row, int col)
13  {  {
14      real rr = real(dataSize)*(real(row)+0.5)/real(imgSize);      real rr = real(dataSize)*(real(row)+0.5)/real(imgSize) - 0.5;
15      real cc = real(dataSize)*(real(col)+0.5)/real(imgSize);      real cc = real(dataSize)*(real(col)+0.5)/real(imgSize) - 0.5;
16      vec3 pos = orig + rr*rVec + cc*cVec;      vec3 pos = orig + rr*rVec + cc*cVec;
17      output real maxval = -∞;      output real maxval = -∞;
18    

Legend:
Removed from v.607  
changed lines
  Added in v.608

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