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

SCM Repository

[diderot] View of /branches/vis12/rtest2/tests/gradient2-x1/gradient2-x1.diderot
ViewVC logotype

View of /branches/vis12/rtest2/tests/gradient2-x1/gradient2-x1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3198 - (download) (annotate)
Thu Jun 25 11:14:38 2015 UTC (4 years ago) by jhr
File size: 590 byte(s)
create a local copy of data sources for rtest2
field#1(2)[] s2= image ("../../../data/parab2-150.nrrd") ⊛ ctmr;
field#1(2)[] t2=  image("../../data/ddro-80.nrrd") ⊛ ctmr;

int imgSizeX =5;
int imgSizeY = 5;


strand tensorTest (int xi,int yi)
{
    vec2 pos2 = [xi,yi];

    output tensor[2] out=[99,99];
    
       update
    {
        if (inside(pos2,s2))
        {
            
            //out=∇(s2+t2)(pos2);//lhs
            //  out=(∇s2+∇t2)(pos2);//rhs
            out=(∇s2(pos2))+(∇t2(pos2));//rhs
        }
    stabilize;
  }
}

initially [ tensorTest(xi, yi) |  yi in 0..(imgSizeY-1), xi in 0..(imgSizeX-1) ];

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