-
Notifications
You must be signed in to change notification settings - Fork 49
/
index.html
448 lines (366 loc) · 16.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<!--
/*
.----. _..._ .-'''-.
/ .--./ .---. .-'_..._''. _______ ' _ \
' ' | |.--. .' .' '.\ __.....__ \ ___ `'. / /` '. \_________ _...._
\ \ | ||__| / .' .-'' '. ,.--. ' |--.\ \ . | \ '\ |.' '-.
`.`'--. | |.--.. ' / .-''"'-. `. // \| | \ ' .-,.--.| ' | '\ .'```'. '.
`'-. `. | || || | / /________\ \\\ /| | | '| .-. \ \ / / \ | \ \
`. \ | || || | | | `'--' | | | || | | |`. ` ..' / | | | |
\ '| || |. ' \ .-------------' ,.--. | | ' .'| | | | '-...-'` | \ / .
| | || | \ '. .\ '-.____...---.// \| |___.' /' | | '- | |\`'-.-' .'
| | ||__| '. `._____.-'/ `. .' \\ /_______.'/ | | | | '-....-'`
/ /'---' `-.______ / `''-...... -' `'--'\_______|/ | | .' '.
/...-'.' ` |_| '-----------'
/--...-'
Slice:Drop - Instantly view scientific and medical imaging data in 3D.
http://slicedrop.com
Copyright (c) 2012 The Slice:Drop and X Toolkit Developers <[email protected]>
Slice:Drop is licensed under the MIT License:
http://www.opensource.org/licenses/mit-license.php
CREDITS: http://slicedrop.com/LICENSE
*/
-->
<html>
<head>
<title>Slice:Drop</title>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<meta name='viewport'
content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0' />
<meta name='description'
content='Slice:Drop - Instantly view scientific and medical imaging data in 3D.' />
<meta name='author' content='Daniel Haehn' />
<link href='css/bootstrap.css' rel='stylesheet' />
<link href='css/bootstrap-responsive.css' rel='stylesheet' />
<link type='text/css' rel='stylesheet' href='css/xtheme/jquery.ui.css' />
<link type='text/css' rel='stylesheet' href='css/jquery.miniColors.css' />
<link type='text/css' rel='stylesheet' href='css/jquery.sidebar.css' />
<link type='text/css' rel='stylesheet' href='css/frontpage.css' />
<link type='text/css' rel='stylesheet' href='css/viewer.css' />
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/jquery.ui.js'></script>
<script type='text/javascript' src='js/jquery.ui.slider.js'></script>
<script type='text/javascript' src='js/jquery.miniColors.js'></script>
<script type='text/javascript' src='js/jquery.filestyle.js'></script>
<script type='text/javascript' src='js/jquery.idTabs.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.volume.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.mesh.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.fibers.js'></script>
<script type='text/javascript' src='js/jquery.viewer.js'></script>
<script type='text/javascript' src='js/jquery.frontpage.js'></script>
<script type='text/javascript' src='js/dropbox.min.js'></script>
<script type='text/javascript' src='js/bootstrap-modal.js'></script>
<script type='text/javascript' src='js/x.controller.js'></script>
<script type='text/javascript' src='js/x.examples.js'></script>
<script type='text/javascript' src='js/x.rendering.js'></script>
<script type='text/javascript' src='js/x.scene.js'></script>
<script type='text/javascript' src='js/x.share.js'></script>
<script type='text/javascript' src='js/x.realtime.js'></script>
<script type='text/javascript' src='js/xtk.js'></script>
<!-- Brand new TRAKO support https://github.com/haehn/TRAKO! -->
<script type='text/javascript' src="js/draco/draco_decoder.js"></script>
<script type='text/javascript' src='js/xtkTrakoReader.js'></script>
<script type='text/javascript' src='js/pusher.min.js'></script>
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33092072-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl'
: 'http://www') +
'.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Google Analytics -->
</head>
<body id='body' class='webgl_enabled'>
<!-- The frontpage -->
<div id='frontpage' style=''>
<div id='content' class='container' style=''>
<img src='gfx/slicedrop.png' />
<div class='hero-unit'>
<p>Instantly view scientific and medical imaging data in 3D.</p>
<p>
<a class='btn btn-medium' data-toggle='modal' href='#learnMore'>Learn
more »</a>
</p>
</div>
<div class='well examples'>
<h3>Try the examples..</h3>
<img id='14yroldImage' src='gfx/14yrold.png' class='selectexample'
style='cursor: pointer;' /> <img id='avfImage'
src='gfx/avf_small.png' style='cursor: pointer;' /> <img
id='2yroldImage' src='gfx/2yrold_small.png'
style='cursor: pointer;' /> <img id='brainstemImage'
src='gfx/brainstem_small.png' style='cursor: pointer;' />
<div id='14yrold'>
A 14 year old healthy male brain. The patient was scanned using a
structural MRI and a diffusion MRI to highlight connecting brain
fibers. <b>Loading time: +++</b><span
class='label label-info viewexample' id='14yroldlink'>View
Example</span>
</div>
<div id='avf' style='display: none'>
A contrast enhanced 3D MR image showing an arteriovenous fistula
which is a bypass created by joining an artery and a vein, located
in an arm. <b>Loading time: +</b><span
class='label label-info viewexample' id='avflink'>View
Example</span>
</div>
<div id='2yrold' style='display: none'>
The surface of the left hemisphere of a 2 years old healthy brain.
The scalar overlay shows the bending energy based on <i>Curvedness</i>.
<b>Loading time: ++</b><span class='label label-info viewexample'
id='2yroldlink'>View Example</span>
</div>
<div id='brainstem' style='display: none'>
A region of the brainstem of a human adult including an
automatically generated segmentation as a label map colorized using
an anatomical color table. <b>Loading time: +</b> <span
class='label label-info viewexample' id='brainstemlink'>View
Example</span>
</div>
</div>
<div class='dropzone'>
<span>Drop files here or </span><input id='filebutton' type='file'
multiple onchange='selectfiles(this.files)' style='display: none;'></input><a
class='btn btn-inverse btn-large' style='vertical-align: super;'
onclick='javascript:document.getElementById("filebutton").click();'>Select
files</a><br />
<span style='font-size: 10px'> Your data stays on your
computer. No upload required!</span><br />
<br />
<ul class='thumbnails'>
<li>
<div class='thumbnail'>
<img src='gfx/fibers.png' alt='' /> Fibers<br />(.trk / .tko)<br /> <br />
</div>
</li>
<li>
<div class='thumbnail'>
<img src='gfx/dicom.png' alt='' /> Volumes<br />(.mgh / .mgz /
.nrrd / .nii <br />/ .nii.gz / DICOM)
</div>
</li>
<li>
<div class='thumbnail'>
<img src='gfx/surface.png' alt='' /> Models<br />(.obj / .vtk / .stl /
FreeSurfer)<br /> <br />
</div>
</li>
</ul>
</div>
<div class='footer'>
<div class='row' style='margin: auto'>
<div class='span2 offset8'>
<ul class='unstyled paddingated'>
<li style='line-height: 18px'><a
href='http://childrenshospital.org/FNNDSC' target='_blank'>Boston
Children's Hospital</a></li>
<li style='line-height: 18px'><a
href='https://github.com/slicedrop/slicedrop.github.com'
target='_blank'>Source Code</a></li>
<li style='line-height: 18px'><a href='mailto:[email protected]'
target='_blank'>Send Feedback</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- /container -->
</div>
<!-- Learn more -->
<div class='modal hide fade' id='learnMore'
style='display: none; width: 800px; height: 610px; margin-top: -305px; margin-left: -400px;'>
<div class='modal-header'>
<button class='close' data-dismiss='modal'>×</button>
<h3>Try it!!</h3>
</div>
<div class='modal-body' style='max-height: 600px'>
<p>
<img src='gfx/workflow.png' />
</p>
<p>
We think that the best way to render your files is without any
necessary conversions. Just drop'em on this website and they are ready
to render. <b>Slice:Drop</b> supports a variety of scientific file formats
out-of-the-box (see <a
href='https://github.com/xtk/X/wiki/X%3AFileformats'
target='_blank' style='color:cornflowerblue'>here</a> for a complete list).
</p>
<img src='gfx/multitouch.png' style='float:right'/>
<p>
<b>Slice:Drop</b> uses WebGL and HTML5 Canvas to render the data in
2D and 3D. We use our own open-source toolkit to perform the
rendering, called <a href='http://goXTK.com' target='_blank' style='color:cornflowerblue'>XTK</a>.
</p>
<p>All data stays on the client and nothing gets transferred via the internet. This is totally safe!
</p>
<p>
We are very keen on your feedback, so please <a
href='mailto:[email protected]' style='color:cornflowerblue'>email us</a>.
</p>
</div>
</div>
<!-- Drop note -->
<div id='drop-box-overlay'>
<h1>Drop files anywhere...</h1>
</div>
<!-- The viewer -->
<div id='viewer' style='display: none;'>
<ul class='navigation'>
<li id='volume' class='navigationLi'><div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs' id='volumetabs'>
<div class='caption'>VOLUME</div>
<a href='#volumeTab' class='selected'>Volume</a> <a
href='#labelmapTab' id='labelmapSwitch'
style='margin-left: 50px;'>Labelmap</a>
<div id='volumeTab' class='tabContent'>
<div id='modes' style='width: 130px; float: left;'>
<div id='volumerendering'>
<img src='gfx/3d.png' />
</div>
<div id='slicing'>
<img src='gfx/2d.png' />
</div>
</div>
<div id='colors'
style='width: 26px; margin-left: 6px; float: left;'>
<input id='fgColorVolume' type='hidden'
class='color-picker black' size='6' value='#ffffff' /> <input
id='bgColorVolume' type='hidden' class='color-picker black'
size='6' value='#000000' />
</div>
<div id='opacity-label' class='menuLabel'
style='margin-top: 4px; float: left;'>3D Opacity</div>
<div id='opacity-volume'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
<div id='windowlevel-label' class='menuLabel'
style='margin-top: 4px; float: left;'>Window/Level</div>
<div id='windowlevel-volume'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Threshold</div>
<div id='threshold-volume'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
<div id='labelmapTab' class='tabContent' style='display: none'>
<div id='visibility-labelmap' style='width: 130px; float: left;'>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Show/Hide</div>
<div id='labelmapvisibility' class='eye show-icon'
style='margin-left: 6px;'></div>
</div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Labelmap
Opacity</div>
<div id='opacity-labelmap'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
</div>
</div></li>
<li id='mesh' class='navigationLi'><div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs'>
<div class='caption'>MESH</div>
<a class='meshtabs selected'>Mesh 1</a>
<div id='mesh1' class='tabContent'>
<div id='visibility-mesh'
style='width: 140px; float: left; margin-top: 2px;'>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Show/Hide</div>
<div id='meshvisibility' class='eye show-icon'
style='margin-left: 6px;'></div>
</div>
<input type='hidden' id='meshColor' class='color-picker black'
size='6' value='#0000ff' />
<div class='menuLabel' style='margin-top: 4px; float: left;'>Opacity</div>
<div id='opacity-mesh'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
<div class='menuLabel'
style='margin-top: 4px; float: left; margin-top: 10px;'>Scalars</div>
<div id='scalars-mesh' style='width: 160px; float: left;'>
<select id='scalars-selector' style='margin-left: 6px'><option>Scalars
1</option></select> <input type='hidden' class='color-picker black'
id='scalarsMinColor' size='6' value='#00ff00' /> <input
type='hidden' id='scalarsMaxColor' class='color-picker black'
size='6' value='#ff0000' />
</div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Scalars
Threshold</div>
<div id='threshold-scalars'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
</div>
</div></li>
<li id='fibers' class='navigationLi'><div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs'>
<div class='caption'>FIBERS</div>
<a class='fiberstabs selected'>Fibers 1</a>
<div id='fibers1' class='tabContent'>
<div id='visibility-fibers'
style='width: 140px; float: left; margin-top: 2px;'>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Show/Hide</div>
<div id='fibersvisibility' class='eye show-icon'
style='margin-left: 6px;'></div>
</div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Fiber
Length Threshold</div>
<div id='threshold-fibers'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
</div>
</div></li>
</ul>
<!-- The renderers. -->
<div id='3d' class='threeDRenderer'></div>
<div id='sliceAx' class='twoDRenderer'>
<div id='blue_slider'></div>
<div id='ax_right_label' class='left_annotation'>R</div>
<div id='ax_left_label' class='right_annotation'>L</div>
<div id='ax_top_label' class='top_annotation'>A</div>
<div id='ax_bottom_label' class='bottom_annotation'>P</div>
</div>
<div id='sliceSag' class='twoDRenderer'>
<div id='red_slider'></div>
<div id='sag_right_label' class='right_annotation'>P</div>
<div id='sag_left_label' class='left_annotation'>A</div>
<div id='sag_top_label' class='top_annotation'>S</div>
<div id='sag_bottom_label' class='bottom_annotation'>I</div>
</div>
<div id='sliceCor' class='twoDRenderer'>
<div id='green_slider'></div>
<div id='cor_right_label' class='left_annotation'>R</div>
<div id='cor_left_label' class='right_annotation'>L</div>
<div id='cor_top_label' class='top_annotation'>S</div>
<div id='cor_bottom_label' class='bottom_annotation'>I</div>
</div>
<!-- Slice:Drop logo -->
<div id='blacklogo'>
<a href='http://slicedrop.com' target='_top'><img src='gfx/slicedrop_transparent.png' /></a>
</div>
<div id='share'>
<img id='sharelogo' src='gfx/dropbox.png' title='Share with Dropbox'/>
<div id='sharemsg' style='display:none'></div>
</div>
<div id='download'>
<img id='linklogo' src='gfx/link.png' title='Realtime Collaboration'/>
<img id='linkselectedlogo' style='display:none' src='gfx/link_selected.png' title='Stop Realtime Collaboration'/>
<img id='downloadlogo' src='gfx/download.png' title='Download data'/>
</div>
<div id='log'></div>
</div>
</body>
</html>