Home My Page Projects Code Snippets Project Openings diderot

SCM Repository

[diderot] Diff of /branches/pure-cfg/TODO
 [diderot] / branches / pure-cfg / TODO

Diff of /branches/pure-cfg/TODO

revision 821, Wed Apr 13 23:17:35 2011 UTC revision 1001, Wed Apr 27 20:43:30 2011 UTC
# Line 1  Line 1
1    NOTE: GLK's approximate ranking of 5 most imporant tagged with
2    [GLK:1], [GLK:2], ...
3
4  ========================  ========================
5  SHORT TERM =============  (for curvature-based VR)  SHORT TERM =============  (for curvature-based VR)
6  ========================  ========================
7
want: warnings when D (and likely I) is declared as a
variable name (now get confusing error messages now)

For RGB color output of 2D transfer function (indexed by
kappa1,kappa2), or for a 1D transfer function, will need
something akin to convolution on vector images

8  IL support for higher-order tensor values (matrices, etc).  IL support for higher-order tensor values (matrices, etc).
9      tensor construction [DONE]      tensor construction [DONE]
10      tensor indexing [DONE]      tensor indexing [DONE]
11      tensor slicing      tensor slicing
12      verify that hessians work correctly      verify that hessians work correctly [DONE]
13
14  Outer products [DONE]  Outer products [DONE]
15
16  Add M dot v, v dot M, and M dot N [DONE]  Add M dot v, v dot M, and M dot N [DONE]
17
18  Identity matrix [DONE up to code generation]  Identity matrix [DONE]
19
20    Zero tensor [DONE]
21
22  trace [DONE]  trace [DONE]
23
24  extend norm (|exp|) to tensor[3,3]  extend norm (|exp|) to tensor[3,3] [DONE]
25
26    Matrix addition, subtraction, and scaling  [DONE]
27
28  Use ∇⊗ etc. syntax  Use ∇⊗ etc. syntax
29      syntax [DONE]      syntax [DONE]
# Line 40  Line 40
40
41  lerp on scalars and vectors [DONE]  lerp on scalars and vectors [DONE]
42
43    Infix "^" operator for pow() [DONE]
44
45    Code generation support for 1D image data, such as RGBA transfer functions [DONE]
46
47  ==============================  ==============================
48  other SHORT TERM =============  (including needed for LIC)  other SHORT TERM =============  (including needed for LIC)
49  ==============================  ==============================
50
51  determinant ("det") for tensor[3,3]  test/uninit.diderot:
52    documents need for better compiler error messages when output variables
53  Decide if we want to allow redefinitions of variables  are not initialized; the current messages are very cryptic
(as in vr-lite-cam.diderot)

extend norm (|exp|) to all tensor types
54
55  extend normalize to all tensor types  determinant ("det") for tensor[3,3]
56
57  vector fields: convolution on vector images  extend norm (|exp|) to all tensor types [DONE for vectors and matrices]
58
59  expand trace in mid to low translation  expand trace in mid to low translation
60
# Line 64  Line 65
65      rgba = real{4}      rgba = real{4}
66
67  ==============================  ==============================
68  MEDIUM TERM ================== (needed for streamlines & tractography)  MEDIUM TERM ================== (including needed for streamlines & tractography)
69  ==============================  ==============================
70
71    [GLK:2] evals & evecs for symmetric tensor[3,3] (requires sequences)
72
73    [GLK:3] Save Diderot output to nrrd, instead of "mip.txt"
74      For grid of strands, save to similarly-shaped array
75      For list of strands, save to long 1-D (or 2-D for non-scalar output) list
76      For ragged things (like tractography output), will need to save both
77        complete list of values, as well as list of start indices and lengths
78        to index into complete list
79
80    [GLK:4] Use of Teem's "hest" command-line parser for getting
81    any input variables that are not defined in the source file
82
83    [GLK:5] ability to declare a field in such a way so that probe
84    positions are *always* clamped to the support of "inside";
85    there are many cases where this is the sensible behavior.
86    (More generally, we could also have "repeat" declaration,
87    copying action of GL_REPEAT in texturing)
88
89  ability to emit/track/record variables into dynamically re-sized  ability to emit/track/record variables into dynamically re-sized
90  runtime buffer  runtime buffer
91
92  evals & evecs for symmetric tensor[3,3]  Want: allow X *= Y, X /= Y, X += Y, X -= Y to mean what they do in C,
93    provided that X*Y, X/Y, X+Y, X-Y are already supported.
94    Nearly every Diderot program would be simplified by this.
95
96    Want: non-trivial field expressions & functions:
98      field#0(2)[] Vlen = |Vimg ⊛ bspln3|;
99    to get a scalar field of vector length, or
100      field#2(2)[] F = Fimg ⊛ bspln3;
101      field#0(2)[] Gmag = |∇F|;
102    to get a scalar field of gradient magnitude, or
103      field#2(2)[] F = Fimg ⊛ bspln3;
104      field#0(2)[] Gmsq = ∇F•∇F;
105    to get a scalar field of squared gradient magnitude, which is simpler
106    to differentiate.  However, there is value in having these, even if
107    the differentiation of them is not supported (hence the indication
108    of "field#0" for these above)
109
110    Want: ability to apply "normalize" to a field itself, e.g.
111      field#0(2)[2] V = normalize(Vimg ⊛ ctmr);
112    so that V(x) = normalize((Vimg ⊛ ctmr)(x)).
113    Having this would simplify expression of standard LIC method, and
114    would also help express other vector field expressions that arise
115    in vector field feature exraction.
116
117  tensor fields: convolution on general tensor images  tensor fields: convolution on general tensor images
118
# Line 89  Line 131
131
132  proper handling of stabilize method  proper handling of stabilize method
133
134  Add support for code like  test/vr-kcomp2.diderot: Add support for code like
135
136          (F1 if x else F2)@pos          (F1 if x else F2)@pos
137
138  This will require duplication of the continuation of the conditional (but we should only  This will require duplication of the continuation of the conditional
139  duplicate over the live-range of the result of the conditional.  (but we should only duplicate over the live-range of the result of the
140    conditional.
141
142  ==============================  ==============================
143  other MEDIUM TERM ============  other MEDIUM TERM ============
144  ==============================  ==============================
145
146  support fog Python interop and GUI  want: warnings when "D" (reserved for differentiation) is declared as
147    a variable name (get confusing error messages now)
148
149    support for Python interop and GUI
150
151  ==============================  ==============================
152  LONG TERM ====================  LONG TERM ====================
153  ==============================  ==============================
154
155  Better handling of variables that determines the scope of a variable based on its actual use,  Better handling of variables that determines the scope of a variable
156  instead of where the user defined it.  So, for example, we should lift strand-invariant variables  based on its actual use, instead of where the user defined it.  So,
157  to global scope.  Also prune out useless variables, which should include field variables after the  for example, we should lift strand-invariant variables to global
158  translation to mid-il.  scope.  Also prune out useless variables, which should include field
159    variables after the translation to mid-il.
160
161  co- vs contra- index distinction  co- vs contra- index distinction
162
# Line 128  Line 175
175
176  "tensor comprehension" (like list comprehension)  "tensor comprehension" (like list comprehension)
177
178  Python/ctypes interface to run-timez  Python/ctypes interface to run-time
179
180  ======================  ======================
181  BUGS =================  BUGS =================
182  ======================  ======================
183
184  test/mip-cam.diderot:  [GLK:1] test/fields.diderot:
185      // generated C code looks like "(float)p_ui_0--0.5e0f"  documents various bugs/questions associated with simple field expressions
186      //real rayU = 2.0*camUmax*(real(ui) - -0.5)/real(imgResU) - camUmax;  (negation, addition, scalar multiplication)
187
189    // HEY (BUG?) shouldn't it be a type error to load this 2-D array of
190    // 2-vectors into a 2-D *scalar* field?  Instead, get:
191    //   uncaught exception Fail [Fail: Error in compiling lic.diderot]
192    //     raised at driver/main.sml:31.39-31.76
194
195  test/vr-kcomp.diderot:  test/vr-kcomp.diderot:
196      // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...      // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...
# Line 151  Line 205
205  //  uncaught exception Size [size]  //  uncaught exception Size [size]
206  //    raised at c-target/c-target.sml:47.15-47.19  //    raised at c-target/c-target.sml:47.15-47.19
207  //field#4(3)[] F = img ⊛ bspln5;  //field#4(3)[] F = img ⊛ bspln5;

Legend:
 Removed from v.821 changed lines Added in v.1001