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

SCM Repository

[diderot] Diff of /branches/charisee/test/vr-MIP.diderot
ViewVC logotype

Diff of /branches/charisee/test/vr-MIP.diderot

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

revision 214, Tue Aug 3 18:56:42 2010 UTC revision 249, Fri Aug 6 21:37:04 2010 UTC
# Line 10  Line 10 
10                                  // e.g. txs: (25,15,10)                                  // e.g. txs: (25,15,10)
11                                  //      vox1,x: (-8,2,2)                                  //      vox1,x: (-8,2,2)
12                                  //      vox1,y: (2,-8,2)                                  //      vox1,y: (2,-8,2)
13                                  //      vox1,z: (2,2-8)                                  //      vox1,z: (2,2,-8)
14  input vec3 orig;                // location of pixel (0,0)  input vec3 orig;                // location of pixel (0,0)
15                                  // e.g. txs: (8.83877,2.5911,7.65275)                                  // e.g. txs: (8.83877,2.5911,7.65275)
16                                  //      vox1,x: (0,3.4036,3.4036)                                  //      vox1,x: (0,3.4036,3.4036)
# Line 30  Line 30 
30  image(3)[] img = load (dataFile);  image(3)[] img = load (dataFile);
31    
32  //field#1(3)[] F = convolve (bspln3, img);  //field#1(3)[] F = convolve (bspln3, img);
33  field#2(3)[] F = convolve (bspln3, img);  field#2(3)[] F = img ⊛ bspln3;
34    
35  actor RayCast (int row, int col)  actor RayCast (int row, int col)
36  {  {
37      vec3 pos = orig + real(row)*rVec + real(col)*cVec;      vec3 pos = orig + real(row)*rVec + real(col)*cVec;
38      vec3 dir = (pos - eye)/|pos - eye|;      vec3 dir = (pos - eye)/|pos - eye|;
39      real t = 0.0;      real t = 0.0;
40      output real maxval = -inf;      output real maxval = -∞;
41    
42      update      update
43      {      {

Legend:
Removed from v.214  
changed lines
  Added in v.249

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