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

SCM Repository

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

Diff of /branches/pure-cfg/TODO

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 813, Tue Apr 12 18:02:15 2011 UTC revision 964, Mon Apr 25 15:01:00 2011 UTC
# Line 1  Line 1 
1    NOTE: GLK's approximate ranking of 6 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    
 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  Outer products [DONE]
     syntax [DONE]  
     typechecking  
     IL and codegen  
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    are not initialized; the current messages are very cryptic
54    
55  Decide if we want to allow redefinitions of variables  determinant ("det") for tensor[3,3]
   (as in vr-lite-cam.diderot)  
   
 extend norm (|exp|) to all tensor types  
   
 extend normalize to all tensor types  
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:3] evals & evecs for symmetric tensor[3,3] (requires sequences)
72    
73    [GLK:4] 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:5] 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:6] 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:
97      image(2)[2] Vimg = load(...);
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
179    
180  ======================  ======================
181  BUGS =================  BUGS =================
182  ======================  ======================
183    
184  test/mip-cam.diderot:  [GLK:1] test/derivs2.diderot:
185      // generated C code looks like "(float)p_ui_0--0.5e0f"  test/derivs3.diderot:
186      //real rayU = 2.0*camUmax*(real(ui) - -0.5)/real(imgResU) - camUmax;  gradients & Hessians are not being transformed from index-to-world,
187    these test programs should produce black images when that is working
188    
189    [GLK:2] test/fields.diderot:
190    documents various bugs/questions associated with simple field expressions
191    (negation, addition, scalar multiplication)
192    
193    test/read2vecs.diderot:
194    // HEY (BUG?) shouldn't it be a type error to load this 2-D array of
195    // 2-vectors into a 2-D *scalar* field?  Instead, get:
196    //   uncaught exception Fail [Fail: Error in compiling lic.diderot]
197    //     raised at driver/main.sml:31.39-31.76
198    image(2)[] Vimg = load("../data/vorttest.nrrd");
199    
200    test/iso2d.diderot: not able to use "nan".
201              // HEY (BUG) not able to use NaN as in "pos = [nan,nan]"
202              // generated C code "vec2f(nanf, nanf)" causes problems:
203              // iso2d.c: In function ‘sample_update’:
204              // iso2d.c:86: error: incompatible type for argument 1 of ‘vec2f’
205              // iso2d.c:86: error: incompatible type for argument 2 of ‘vec2f’
206              // uncaught exception Fail [Fail: error compiling/linking]
207              //   raised at c-target/c-target.sml:323.14-323.44
208              pos = [∞,∞];  // should be: pos = [nan,nan];
209    
210  test/vr-kcomp.diderot:  test/vr-kcomp.diderot:
211      // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...      // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...
# Line 149  Line 220 
220  //  uncaught exception Size [size]  //  uncaught exception Size [size]
221  //    raised at c-target/c-target.sml:47.15-47.19  //    raised at c-target/c-target.sml:47.15-47.19
222  //field#4(3)[] F = img ⊛ bspln5;  //field#4(3)[] F = img ⊛ bspln5;
   
   

Legend:
Removed from v.813  
changed lines
  Added in v.964

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