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

SCM Repository

[diderot] Annotation of /branches/vis15/src/tests/rtest/tests/gradient2-x2/gradient2-x2.diderot
ViewVC logotype

Annotation of /branches/vis15/src/tests/rtest/tests/gradient2-x2/gradient2-x2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4435 - (view) (download)

1 : jhr 4435 // NOTE: this is a poor test because these two images only slightly overllap
2 :     field#1(2)[] s2 = image ("../../data/parab/parab2-150.nrrd") ⊛ ctmr;
3 :     field#1(2)[] t2 = image("../../data/ddro-80.nrrd") ⊛ ctmr;
4 : jhr 4226
5 :     int imgSizeX =5;
6 :     int imgSizeY = 5;
7 :    
8 :    
9 :     strand tensorTest (int xi,int yi)
10 :     {
11 :     vec2 pos2 = [xi,yi];
12 :    
13 :     output tensor[2] out=[99,99];
14 : jhr 4435
15 :     update
16 : jhr 4226 {
17 : jhr 4435 if (inside(pos2,s2*t2))
18 : jhr 4226 {
19 :     out=(∇(s2*t2))(pos2);//lhs
20 :     //out=((∇s2)*t2+ (∇t2)*s2)(pos2);//rhs
21 :     }
22 : jhr 4435 stabilize;
23 : jhr 4226 }
24 :     }
25 :    
26 :     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