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

SCM Repository

[diderot] Diff of /trunk/rtest/tests/mip/mip.diderot
ViewVC logotype

Diff of /trunk/rtest/tests/mip/mip.diderot

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

revision 2635, Mon May 26 14:06:39 2014 UTC revision 2636, Tue May 27 16:18:36 2014 UTC
# Line 1  Line 1 
1    /*! \file mip.diderot
2     *
3     * \author Gordon Kindlmann
4     */
5    
6    /*
7     * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
8     * All rights reserved.
9     */
10    
11    
12  // mip:  // mip:
13  //  //
14  // does maximum intensity projection  // does maximum intensity projection
15    
16  vec3 camEye = [6.65584, 13.2759, 8.55225];  vec3 camEye = [6.65584, 13.2759, 8.55225];
17  vec3 camAt = [0.0, 0.0, 0.0];  vec3 camAt = [0, 0, 0];
18  vec3 camUp = [0.0, 0.0, 1.0];  vec3 camUp = [0, 0, 1];
19  real camNear = -1.0;  real camNear = -1.0;
20  real camFar = 1.0;  real camFar = 1.0;
21  real camFOV = 6.0;  real camFOV = 6.0;
# Line 22  Line 32 
32  real camVmax = tan(camFOV*π/360.0)*camDist;  real camVmax = tan(camFOV*π/360.0)*camDist;
33  real camUmax = camVmax*real(imgResU)/real(imgResV);  real camUmax = camVmax*real(imgResU)/real(imgResV);
34    
35  field#0(3)[] F = tent ⊛ load("../../data/ring.nrrd");  field#0(3)[] F = tent ⊛ image("../../data/ring.nrrd");
36    
37  strand RayCast (int ui, int vi) {  strand RayCast (int ui, int vi) {
38      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);

Legend:
Removed from v.2635  
changed lines
  Added in v.2636

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