1<h1>A Volume Renderer</h1> 2<h2>To setup to load DICOM or RAW data</h2> 3<p> 4<ol> 5 <li>Create directory <b>/sdcard/Download/volumes/</b></li> 6 <li>Create subdirectories for each dataset</li> 7 <li>Create a ".prop" for each data set</li> 8</ol> 9 10".prop" files are simple jave properties files which consist 11of key=value pairs 12 13<dl> 14 <dt>name</dt> 15 <dd>The name to be desplayed on the screen</dd> 16 <dt>dir</dt> 17 <dd>The subdirectory containing the data</dd> 18 <dt>format</dt> 19 <dd>the format the data is in (raw or dicom)</dd> 20 <dt>format</dt> 21 <dd>The format of the pixes (only short & ushort supported)</dd> 22 <dt>dim</dt> 23 <dd>the X by Y by Z dimensions of the data seperated by x</dd> 24 <dt>voxeldim</dt> 25 <dd>The size of each voxel separated by a comma "," uniform = (1.0,1.0,1.0)</dd> 26 <dt>sequence</dt> 27 <dd>if it says 1file the raw data is all on one file</dd> 28 <dt>looks</dt> 29 <dd>The name of the supplied looks</dd> 30 <dt>XXXXX.opacity</dt> 31 <dd>the opacity table asociate with the XXXXX look</dd> 32 <dt>XXXXX.color</dt> 33 <dd>The color table asociated with the XXXXX look</dd> 34</dl> 35</p> 36<h3>Opacity table</h3> 37opacity tabls consisit of nested arrays of shorts. 38The first being intensity the second being opacity on a 0-255 scale. 39The values for each pixel in the volume are interpolated 40<p></p> 41<h3>Color table</h3> 42The color table 43The values are linearly interpolated from one value to the next 44 45<dl> 46 <dt>intensity</dt> 47 <dd>The intensity that has this "color"</dd> 48 <dt>RGB</dt> 49 <dd>Hex number describing the color this number has</dd> 50 <dt>diffuse</dt> 51 <dd>how much difuse lighting to apply to this materal 0-100</dd> 52 <dt>ambient</dt> 53 <dd>how much ambient lighting does this materal reflect 0-100</dd> 54 <dt>specular</dt> 55 <dd>How much specular reflection materal has 0-100</dd> 56</dl> 57<p></p> 58<h3>Example property file</h3> 59<p> 60<PRE> 61name=Back Pack 62dir=backpack 63format=raw 64endian=little 65pixels=ushort 66dim=512x512x373 67voxeldim=0.9766, 0.9766, 1.25 68sequence=1file 69looks=clean,clay,black 70black.opacity = { {255, 0},{259, 255}}; 71black.color = {{255, 0xff0000, 10, 10, 20},{259, 0xfff5e4, 10, 10, 20}}; 72clay.opacity = { {27, 0}, {92, 0}, {629, 0}, {1203, 255}, {2343, 255}} 73clay.color = {{27, 0xe1ac96, 30, 70, 20}, {92, 0xbc703a, 30, 70, 20}, {629, 0xe29c9d, 30, 70, 20}, {1203, 0xe1af97, 30, 34, 20}, {2343, 0xdebd9d, 30, 38, 20}} 74clean.opacity = {{27, 0}, {92, 0}, {1433, 0}, {1691, 255}, {1734, 255}} 75clean.color = {{27, 0xe1ac96, 30, 70, 20}, {92, 0xe1ac96, 30, 70, 20}, {629, 0xed1904, 30, 70, 0}, {1611, 0xaeb3c9, 19, 42, 44}, {1826, 0xe7e7ea, 19, 44, 41}} 76</PRE> 77 78 79 </p> 80 81