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 891, Wed Apr 20 14:57:20 2011 UTC
# Line 2  Line 2
2  SHORT TERM =============  (for curvature-based VR)  SHORT TERM =============  (for curvature-based VR)
3  ========================  ========================
4
5  want: warnings when D (and likely I) is declared as a  vector fields: convolution on vector images
6  variable name (now get confusing error messages now)      (image orientation not quite working)

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
7
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
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]  determinant ("det") for tensor[3,3]
52
Decide if we want to allow redefinitions of variables
(as in vr-lite-cam.diderot)

53  extend norm (|exp|) to all tensor types  extend norm (|exp|) to all tensor types
54
extend normalize to all tensor types

vector fields: convolution on vector images

55  expand trace in mid to low translation  expand trace in mid to low translation
56
57  value-numbering optimization  value-numbering optimization
# Line 64  Line 61
61      rgba = real{4}      rgba = real{4}
62
63  ==============================  ==============================
64  MEDIUM TERM ================== (needed for streamlines & tractography)  MEDIUM TERM ================== (including needed for streamlines & tractography)
65  ==============================  ==============================
66
67  ability to emit/track/record variables into dynamically re-sized  ability to emit/track/record variables into dynamically re-sized
# Line 74  Line 71
71
72  tensor fields: convolution on general tensor images  tensor fields: convolution on general tensor images
73
74    Use of Teem's "hest" command-line parser for getting
75    any input variables that are not defined in the source file
76
77    Save Diderot output to nrrd, instead of "mip.txt"
78      For grid of strands, save to similarly-shaped array
79      For list of strands, save to long 1-D (or 2-D for non-scalar output) list
80      For ragged things (like tractography output), will need to save both
81        complete list of values, as well as list of start indices and lengths
82        to index into complete list
83
84  ==============================  ==============================
85  other MEDIUM TERM ============ (needed for particles)  other MEDIUM TERM ============ (needed for particles)
86  ==============================  ==============================
# Line 89  Line 96
96
97  proper handling of stabilize method  proper handling of stabilize method
98
99  Add support for code like  test/vr-kcomp2.diderot: Add support for code like
100
101          (F1 if x else F2)@pos          (F1 if x else F2)@pos
102
# Line 100  Line 107
107  other MEDIUM TERM ============  other MEDIUM TERM ============
108  ==============================  ==============================
109
110  support fog Python interop and GUI  want: warnings when D (and likely I) is declared as a
111    variable name (now get confusing error messages now)
112
113    support for Python interop and GUI
114
115  ==============================  ==============================
116  LONG TERM ====================  LONG TERM ====================
# Line 134  Line 144
144  BUGS =================  BUGS =================
145  ======================  ======================
146
147    test/zslice-k1k2.diderot
148     If we allow "-∇F@pos" we should allow "-∇(∇F)@pos",
149     but this currently causes:
150       uncaught exception Fail [Fail: Error in compiling zslice-k1k2.diderot]
151        raised at driver/main.sml:31.39-31.76
152
153    test/zslice-k1k2.diderot (and other programs)
154      As programs are getting more complicated, the annoyance and confusion
155      caused by allowing variables to be redeclared is getting higher!
156      GLK sees no valid purpose for redeclaring a variable, even if the type is consistent.
157      In zslice-k1k2.diderot, if the green image declaration is:
158        field#0(2)[] G = imgG ⊛ tent;
159      and the geometry tensor is later declared
160        tensor[3,3] G = (P•H•P)/|g|;
161      that redeclaration causes no problems, but then usage of G the field
162        G@kk
163      causes:
164        [zslice-k1k2.diderot:52.28-32] Error: type error for binary operator "@"
165          expected:  (field#'diff0101('dim0100)'shp00FF * tensor['dim0100])
166        but found: (tensor[3,3] * vec2)
167
168  test/mip-cam.diderot:  test/mip-cam.diderot:
169      // generated C code looks like "(float)p_ui_0--0.5e0f"      // generated C code looks like "(float)p_ui_0--0.5e0f"
170      //real rayU = 2.0*camUmax*(real(ui) - -0.5)/real(imgResU) - camUmax;      //real rayU = 2.0*camUmax*(real(ui) - -0.5)/real(imgResU) - camUmax;

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