-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsurface-viewer-demo.config.js
executable file
·115 lines (105 loc) · 3.32 KB
/
surface-viewer-demo.config.js
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
/*
* BrainBrowser: Web-based Neurological Visualization Tools
* (https://brainbrowser.cbrain.mcgill.ca)
*
* Copyright (C) 2011
* The Royal Institution for the Advancement of Learning
* McGill University
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Author: Tarek Sherif <[email protected]> (http://tareksherif.ca/)
*/
(function() {
"use strict";
// REQUIRED
BrainBrowser.config.set("worker_dir", "js/brainbrowser/workers/");
// Custom configuration for the Surface Viewer demo app.
BrainBrowser.config.set("model_types.freesurferasc.format_hint", 'You can use <a href="http://surfer.nmr.mgh.harvard.edu/fswiki/mris_convert" target="_blank">mris_convert</a> to convert your binary surface files into .asc format.');
BrainBrowser.config.set("intensity_data_types.freesurferasc.format_hint", 'You can use <a href="http://surfer.nmr.mgh.harvard.edu/fswiki/mris_convert" target="_blank">mris_convert</a> to convert your binary surface files into .asc format.');
BrainBrowser.config.set("color_maps_surf", [
{
name: "Plasma",
url: "color-maps/plasma.txt",
cursor_color: "#FF0000"
},
{
name: "Viridis",
url: "color-maps/viridis.txt",
cursor_color: "#FF0000"
},
{
name: "Cividis",
url: "color-maps/cividis.txt",
cursor_color: "#FF0000"
},
{
name: "Spectral",
url: "color-maps/spectral-brainview.txt",
cursor_color: "#FFFFFF"
},
{
name: "Thermal",
url: "color-maps/thermal.txt",
cursor_color: "#FFFFFF"
},
]);
BrainBrowser.config.set("color_maps_vol", [
{
name: "Cividis",
url: "color-maps/cividis.txt",
cursor_color: "#FFFFFF"
},
{
name: "Plasma",
url: "color-maps/plasma.txt",
cursor_color: "#FF0000"
},
{
name: "Viridis",
url: "color-maps/viridis.txt",
cursor_color: "#FF0000"
},
{
name: "Spectral",
url: "color-maps/spectral-brainview.txt",
cursor_color: "#FFFFFF"
},
{
name: "Thermal",
url: "color-maps/thermal.txt",
cursor_color: "#FFFFFF"
},
{
name: "Gray",
url: "color-maps/gray-scale.txt",
cursor_color: "#FF0000"
},
]);
BrainBrowser.config.set("parcellation",
{
BN_Atlas:{min:-1,max:210},
HCPMMP:{min:0,max:360},
Parcel_L:{min:0,max:999},
Parcel_R:{min:0,max:999}
});
BrainBrowser.config.set("loading_con",
{
"0":{surfweight:true,surfparcel:true,volweight:true},
"1":{surfweight:true,surfparcel:true,volweight:false},
"2":{surfweight:false,surfparcel:false,volweight:true},
"3":{surfweight:true,surfparcel:false,volweight:true},
"4":{surfweight:true,surfparcel:true,volweight:true}
});
})();