 branches/purecfg/TODO 2011/04/12 18:02:15 813
+++ branches/purecfg/TODO 2011/04/22 19:19:03 948
@@ 2,28 +2,25 @@
SHORT TERM ============= (for curvaturebased VR)
========================
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

IL support for higherorder tensor values (matrices, etc).
tensor construction [DONE]
tensor indexing [DONE]
tensor slicing
 verify that hessians work correctly
+ verify that hessians work correctly [DONE]
Outer products
 syntax [DONE]
 typechecking
 IL and codegen
+Outer products [DONE]
Add M dot v, v dot M, and M dot N [DONE]
Identity matrix [DONE up to code generation]
+Identity matrix [DONE]
+
+Zero tensor [DONE]
trace [DONE]
extend norm (exp) to tensor[3,3]
+extend norm (exp) to tensor[3,3] [DONE]
+
+Matrix addition, subtraction, and scaling [DONE]
Use ∇⊗ etc. syntax
syntax [DONE]
@@ 40,20 +37,21 @@
lerp on scalars and vectors [DONE]
+Infix "^" operator for pow() [DONE]
+
+Code generation support for 1D image data, such as RGBA transfer functions [DONE]
+
==============================
other SHORT TERM ============= (including needed for LIC)
==============================
determinant ("det") for tensor[3,3]

Decide if we want to allow redefinitions of variables
 (as in vrlitecam.diderot)
+test/uninit.diderot:
+documents need for better compiler error messages when output variables
+are not initialized; the current messages are very cryptic
extend norm (exp) to all tensor types

extend normalize to all tensor types
+determinant ("det") for tensor[3,3]
vector fields: convolution on vector images
+extend norm (exp) to all tensor types [DONE for vectors and matrices]
expand trace in mid to low translation
@@ 64,9 +62,37 @@
rgba = real{4}
==============================
MEDIUM TERM ================== (needed for streamlines & tractography)
+MEDIUM TERM ================== (including needed for streamlines & tractography)
==============================
+Want: allow X *= Y, X /= Y, X += Y, X = Y to mean what they do in C,
+provided that X*Y, X/Y, X+Y, XY are already supported.
+Nearly every Diderot program would be simplified by this.
+
+Want: ability to apply "normalize" to a field itself, e.g.
+ field#1(2)[2] V = normalize(Vimg ⊛ ctmr);
+so that V(x) = normalize((Vimg ⊛ ctmr)(x)).
+(For now, it would be okay for the differentability of V to be 0;
+later we can teach Diderot the quotient rule of derivatives.)
+Having this would simplify expression of standard LIC method, and
+would also help express other vector field expressions that arise
+in vector field feature exraction
+Related to this and possibly simpler:
+ image(2)[2] Vimg = load(...);
+ field#1(2)[] Vlen = Vimg ⊛ ctmr;
+to get a scalar field of vector length, or
+ field#1(2)[] F = Fimg ⊛ ctmr;
+ field#1(2)[] Gmag = ∇F;
+to get a scalar field of gradient magnitude, or
+ field#1(2)[] F = Fimg ⊛ ctmr;
+ field#1(2)[] Gmag = ∇F•∇F;
+to get a scalar field of squared gradient magnitude
+(which is simpler to differentiate)
+
+ability to declare a field in such a way so that probe
+positions are *always* clamped to the support of "inside";
+there are many cases where this is the sensible behavior
+
ability to emit/track/record variables into dynamically resized
runtime buffer
@@ 74,6 +100,16 @@
tensor fields: convolution on general tensor images
+Use of Teem's "hest" commandline parser for getting
+any input variables that are not defined in the source file
+
+Save Diderot output to nrrd, instead of "mip.txt"
+ For grid of strands, save to similarlyshaped array
+ For list of strands, save to long 1D (or 2D for nonscalar output) list
+ For ragged things (like tractography output), will need to save both
+ complete list of values, as well as list of start indices and lengths
+ to index into complete list
+
==============================
other MEDIUM TERM ============ (needed for particles)
==============================
@@ 89,7 +125,7 @@
proper handling of stabilize method
Add support for code like
+test/vrkcomp2.diderot: Add support for code like
(F1 if x else F2)@pos
@@ 100,16 +136,20 @@
other MEDIUM TERM ============
==============================
support fog Python interop and GUI
+want: warnings when "D" (reserved for differentiation) is declared as
+a variable name (get confusing error messages now)
+
+support for Python interop and GUI
==============================
LONG TERM ====================
==============================
Better handling of variables that determines the scope of a variable based on its actual use,
instead of where the user defined it. So, for example, we should lift strandinvariant variables
to global scope. Also prune out useless variables, which should include field variables after the
translation to midil.
+Better handling of variables that determines the scope of a variable
+based on its actual use, instead of where the user defined it. So,
+for example, we should lift strandinvariant variables to global
+scope. Also prune out useless variables, which should include field
+variables after the translation to midil.
co vs contra index distinction
@@ 128,10 +168,15 @@
"tensor comprehension" (like list comprehension)
+Python/ctypes interface to runtimez
+
======================
BUGS =================
======================
+test/fields.diderot:
+documents various bugs/questions associated with field expressions
+
test/mipcam.diderot:
// generated C code looks like "(float)p_ui_00.5e0f"
//real rayU = 2.0*camUmax*(real(ui)  0.5)/real(imgResU)  camUmax;
@@ 149,5 +194,3 @@
// uncaught exception Size [size]
// raised at ctarget/ctarget.sml:47.1547.19
//field#4(3)[] F = img ⊛ bspln5;

