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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/rtest/tests/convo2d0-rgb/convo2d0-rgb.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/rtest/tests/convo2d0-rgb/convo2d0-rgb.diderot

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

revision 4496, Sat Sep 3 13:52:11 2016 UTC revision 4497, Sat Sep 3 14:12:36 2016 UTC
# Line 13  Line 13 
13    
14  int outSize = 200;  int outSize = 200;
15    
16  field#0(2)[3] F = tent ⊛ image("../../data/ddro-115-rgb.nrrd");  field#0(2)[3] F = tent ⊛ load_image("../../data/ddro-115-rgb.nrrd");
17    
18  strand sample (int ui, int vi) {  strand sample (int ui, int vi) {
19     real uu = lerp(0.0, 1.0, -0.5, real(ui), real(outSize)-0.5);     real uu = lerp(0.0, 1.0, -0.5, real(ui), real(outSize)-0.5);
# Line 27  Line 27 
27     }     }
28  }  }
29    
30  grid (2) { sample(ui, vi) | vi in 0..(outSize-1), ui in 0..(outSize-1) }  create_array { sample(ui, vi) | vi in 0..(outSize-1), ui in 0..(outSize-1) }

Legend:
Removed from v.4496  
changed lines
  Added in v.4497

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