A Volume Renderer
To setup to load DICOM or RAW data
- Create directory /sdcard/Download/volumes/
- Create subdirectories for each dataset
- Create a ".prop" for each data set
".prop" files are simple jave properties files which consist
of key=value pairs
- name
- The name to be desplayed on the screen
- dir
- The subdirectory containing the data
- format
- the format the data is in (raw or dicom)
- format
- The format of the pixes (only short & ushort supported)
- dim
- the X by Y by Z dimensions of the data seperated by x
- voxeldim
- The size of each voxel separated by a comma "," uniform = (1.0,1.0,1.0)
- sequence
- if it says 1file the raw data is all on one file
- looks
- The name of the supplied looks
- XXXXX.opacity
- the opacity table asociate with the XXXXX look
- XXXXX.color
- The color table asociated with the XXXXX look
Opacity table
opacity tabls consisit of nested arrays of shorts.
The first being intensity the second being opacity on a 0-255 scale.
The values for each pixel in the volume are interpolated
Color table
The color table
The values are linearly interpolated from one value to the next
- intensity
- The intensity that has this "color"
- RGB
- Hex number describing the color this number has
- diffuse
- how much difuse lighting to apply to this materal 0-100
- ambient
- how much ambient lighting does this materal reflect 0-100
- specular
- How much specular reflection materal has 0-100
Example property file
name=Back Pack
dir=backpack
format=raw
endian=little
pixels=ushort
dim=512x512x373
voxeldim=0.9766, 0.9766, 1.25
sequence=1file
looks=clean,clay,black
black.opacity = { {255, 0},{259, 255}};
black.color = {{255, 0xff0000, 10, 10, 20},{259, 0xfff5e4, 10, 10, 20}};
clay.opacity = { {27, 0}, {92, 0}, {629, 0}, {1203, 255}, {2343, 255}}
clay.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}}
clean.opacity = {{27, 0}, {92, 0}, {1433, 0}, {1691, 255}, {1734, 255}}
clean.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}}