-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_test_grid_view.py
115 lines (113 loc) · 3.13 KB
/
create_test_grid_view.py
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
from mobie.view_utils import create_grid_view # pyright: ignore
DATASET_FOLDER = "data/test_volumes"
VIEW_NAME = "test_grid_view"
SOURCES = [
["5488_5533_ch0", "5488_5533_ch1", "5488_5533_ch2"],
["5488_5534_ch0", "5488_5534_ch1", "5488_5534_ch2"],
["5810_6123_ch0", "5810_6123_ch1", "5810_6123_ch2"],
]
DISPLAY_GROUPS = {
"5488_5533_ch0": "5488_5533_ch0",
"5488_5533_ch1": "5488_5533_ch1",
"5488_5533_ch2": "5488_5533_ch2",
"5488_5534_ch0": "5488_5534_ch0",
"5488_5534_ch1": "5488_5534_ch1",
"5488_5534_ch2": "5488_5534_ch2",
"5810_6123_ch0": "5810_6123_ch0",
"5810_6123_ch1": "5810_6123_ch1",
"5810_6123_ch2": "5810_6123_ch2",
}
DISPLAY_GROUPS_SETTINGS = {
"5488_5533_ch0": {
"imageDisplay": {
"color": "white",
"contrastLimits": [84, 15004],
"name": "5488_5533_ch0",
"opacity": 1.0,
"sources": ["5488_5533_ch0"],
}
},
"5488_5533_ch1": {
"imageDisplay": {
"color": "green",
"contrastLimits": [82, 158],
"name": "5488_5533_ch1",
"opacity": 1.0,
"sources": ["5488_5533_ch1"],
}
},
"5488_5533_ch2": {
"imageDisplay": {
"color": "blue",
"contrastLimits": [369, 1127],
"name": "5488_5533_ch2",
"opacity": 1.0,
"sources": ["5488_5533_ch2"],
}
},
"5488_5534_ch0": {
"imageDisplay": {
"color": "white",
"contrastLimits": [90, 5681],
"name": "5488_5534_ch0",
"opacity": 1.0,
"sources": ["5488_5534_ch0"],
}
},
"5488_5534_ch1": {
"imageDisplay": {
"color": "green",
"contrastLimits": [89, 121],
"name": "5488_5534_ch1",
"opacity": 1.0,
"sources": ["5488_5534_ch1"],
}
},
"5488_5534_ch2": {
"imageDisplay": {
"color": "blue",
"contrastLimits": [378, 551],
"name": "5488_5534_ch2",
"opacity": 1.0,
"sources": ["5488_5534_ch2"],
}
},
"5810_6123_ch0": {
"imageDisplay": {
"color": "white",
"contrastLimits": [90, 5681],
"name": "5810_6123_ch0",
"opacity": 1.0,
"sources": ["5810_6123_ch0"],
},
},
"5810_6123_ch1": {
"imageDisplay": {
"color": "green",
"contrastLimits": [89, 121],
"name": "5810_6123_ch1",
"opacity": 1.0,
"sources": ["5810_6123_ch1"],
}
},
"5810_6123_ch2": {
"imageDisplay": {
"color": "blue",
"contrastLimits": [378, 551],
"name": "5810_6123_ch2",
"opacity": 1.0,
"sources": ["5810_6123_ch2"],
}
},
}
MENU_NAME = "test_species"
if __name__ == "__main__":
create_grid_view(
DATASET_FOLDER,
VIEW_NAME,
SOURCES,
display_groups=DISPLAY_GROUPS,
display_group_settings=DISPLAY_GROUPS_SETTINGS,
menu_name=MENU_NAME,
overwrite=True,
)