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

SCM Repository

[diderot] Annotation of /branches/charisee/ertest/tests/matrixField/matrixField.diderot
ViewVC logotype

Annotation of /branches/charisee/ertest/tests/matrixField/matrixField.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3069 - (view) (download)

1 : cchiw 3069
2 :     image(2)[2,2] Himg = image("../../../data/ddro-80-hess.nrrd");
3 :     field#1(2)[2,2] H = ctmr ⊛ Himg;
4 :    
5 :     int gridSize=10;
6 :    
7 :     strand sample (int ui, int vi) {
8 :     vec2 pos = [lerp(0.0, 1.0, -0.5, real(ui), real(gridSize)-0.5),
9 :     lerp(0.0, 1.0, -0.5, real(vi), real(gridSize)-0.5)];
10 :    
11 :     output tensor[2,2] a =[[99,99],[99,99]];
12 :     update {
13 :    
14 :     a = H(pos);
15 :    
16 :     stabilize;
17 :     }
18 :     }
19 :    
20 :     initially { sample(ui, vi) | vi in 0..(gridSize-1), ui in 0..(gridSize-1) };

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