##Possibilities
- Three graphics mods: x-ray, MIPS, Maximum intensity projection
- Thresholding by intensity of grayscale value
- Transfer function applying after thresholding only
- Cross-browser (Chrome, Chromium, Firefox, Safari, Seamonkey, Safary mobile version, Chrome mobile version)
- Cross-browser
- Adoptive steps changing for getting good performance
- Configurability
- Methods getConfig() and setConfig() for ability save or recover state of work
##Example of usage:
<div id="container"> </div>
vrc = new VRC.VolumeRaycaster({
"dom_container_id": "container",
"slicemaps_paths": ['data/bonsai.raw.png'],
"gray_min": 0.1,
"gray_max": 1.0,
"row_col": [16, 16],
"steps": 1024,
"render_size": [700, 700],
"absorption_mode": 1,
});
vrc.setTransferFunctionByColors(
[
{"pos": 1.0, "color": "#7F0000"},
{"pos": 0.75, "color": "#FF9400"},
{"pos": 0.5, "color": "#7CFF79"},
{"pos": 0.0, "color": "#000000"},
{"pos": 1.0, "color": "#FFFFFF"}
]
);
$ git clone https://github.com/kit-ipe/tomo_raycaster2.git
$ cd tomo_raycaster2
- Opensuse 13.2
$ sudo zypper addrepo http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_13.2/ Node.js
$ sudo zypper in npm
- Archlinux
$ sudo pacman -S npm
$ ./prepare_grunt.sh
$ grunt watch
$ cd test
$ ./upload_dependencies.sh
$ ./start_http_server.sh
9. Point your browser to localhost:10001.
10. Change files into dir src/. Save it. Change code of test app in test/. Save it. Refresh page localhost:10001 to see changes
The MIT License (MIT) Copyright (c) 2015 Aleksandr Lizin Sergeevich
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.