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

SCM Repository

[diderot] View of /branches/charisee/ertest/tests/gradient3-x0/gradient3-x0.diderot
ViewVC logotype

View of /branches/charisee/ertest/tests/gradient3-x0/gradient3-x0.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2859 - (download) (annotate)
Thu Jan 22 07:37:46 2015 UTC (4 years, 6 months ago) by cchiw
File size: 541 byte(s)
added regression tests
field#2(3)[] s3 = load("../../../data/vfrhand-nohip.nhdr")⊛ bspln3;
field#2(3)[] t3 = bspln3 ⊛ load("../../../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(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