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

SCM Repository

[diderot] View of /branches/vis12/rtest2/tests/gradient3-x2/gradient3-x2.diderot
ViewVC logotype

View of /branches/vis12/rtest2/tests/gradient3-x2/gradient3-x2.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: 671 byte(s)
create a local copy of data sources for rtest2
field#2(3)[] s3 = image("../../data/vfrhand-nohip.nhdr")⊛ bspln3;
field#2(3)[] t3 = bspln3 ⊛ image("../../data/txs.nrrd");

int imgSizeX =5;
int imgSizeY = 5;
int imgSizeZ = 5;

strand tensorTest (int xi,int yi,int zi)
{
    vec3 pos3 = [xi,yi,zi];

    output tensor[3] out=[99,99,99];
    
       update
    {
        if (inside(pos3,s3))
        {
            //out=(∇(s3*t3))(pos3);//lhs
           // out=((∇s3)*t3+ (∇t3)*s3)(pos3);//rhs
           out=((∇s3(pos3))*t3(pos3))+ ((∇t3(pos3))*s3(pos3));
                   }
    stabilize;
  }
}

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

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