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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3069 - (download) (annotate)
Sat Mar 14 18:31:30 2015 UTC (4 years, 7 months ago) by cchiw
File size: 490 byte(s)
supported ops
image(2)[2,2] Himg = image("../../../data/ddro-80-hess.nrrd");
field#1(2)[2,2] H = ctmr ⊛ Himg;

int gridSize=10;

strand sample (int ui, int vi) {
    vec2 pos = [lerp(0.0, 1.0, -0.5, real(ui), real(gridSize)-0.5),
                lerp(0.0, 1.0, -0.5, real(vi), real(gridSize)-0.5)];

     output tensor[2,2] a =[[99,99],[99,99]]; 
    update {
      
        a = H(pos);
        
        stabilize;
    }
}

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