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

SCM Repository

[diderot] Annotation of /branches/vis12/bugs/open/bug032.diderot
ViewVC logotype

Annotation of /branches/vis12/bugs/open/bug032.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2647 - (view) (download)

1 : jhr 2647 // This program compiles w/o error as a library, but when the "--exec" option is
2 :     // given, it produces the following error:
3 :     //
4 :     // <jhr@aeneas> ../../bin/diderotc --exec bug032.diderot
5 :     // uncaught exception Fail [Fail: CTyTranslate.initC(image(IMAGE2D<float>)) not supported yet]
6 :     // raised at common/phase-timer.sml:76.50-76.52
7 :     // raised at common/phase-timer.sml:76.50-76.52
8 :     // raised at c-util/gen-inputs.sml:107.16-107.90
9 :    
10 :     int gridSize = 200;
11 :     input image(2)[] img = image("../data/ddro.nrrd");
12 :    
13 :     field#1(2)[] F = ctmr ⊛ img;
14 :    
15 :     strand sample (vec2 pos0) {
16 :     vec2 pos = pos0;
17 :     output real value = 0.0;
18 :     update {
19 :     value = F(pos);
20 :     stabilize;
21 :     }
22 :     }
23 :    
24 :     initially { sample([lerp(0.0, 1.0, -0.5, real(ui), real(gridSize)-0.5),
25 :     lerp(0.0, 1.0, -0.5, real(vi), real(gridSize)-0.5)])
26 :     | vi in 0..(gridSize-1), ui in 0..(gridSize-1) };

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