-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathO_load_colors.m
338 lines (272 loc) · 14 KB
/
O_load_colors.m
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
function color = O_load_colors(hostname)
%% STANDARD COLORS
% =========================================================================
% color.black = [0 0 0] ./ 255;
% color.white = [255 255 255] ./ 255;
% color.grey = [128 128 128] ./ 255;
% color.red = [255 0 0] ./ 255;
% color.green = [0 220 0] ./ 255;
% color.blue = [0 0 255] ./ 255;
color.black = [0 0 0] ;
color.white = [255 255 255] ;
color.grey = [128 128 128] ;
color.red = [255 0 0] ;
color.green = [0 220 0] ;
color.blue = [0 0 255] ;
%% LUMINANCE MATCHED COLORS
% =========================================================================
% Calibration was done with Monaco Opti xr 2005. After creating a monitor
% profile and loading it with DisplayCal, Colors have been manually adjusted to
% closely match the luminance of [128 128 128] grey.
% Luminance values were obtained with Monaco Opti xr 2005 DTB 94 in free
% measurement mode in DisplayCal. A higher precision is not possible
% with this measurement device.
switch hostname
case 'PRISME-F007'
color.calibration.user = 'AW';
color.calibration.date = '2017-03-06';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 26.41;
color.luminance.blue = 26.45;
color.luminance.pink = 26.27;
color.luminance.orange = 26.72;
color.luminance.green = 26.84;
color.luminance.red = 26.37;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 118 255] ./ 255; % blue
color.lum_matched.pink = [241 0 180] ./ 255; % pink
color.lum_matched.orange = [204 105 0] ./ 255; % orange
color.lum_matched.green = [0 152 0] ./ 255; % green
color.lum_matched.red = [255 54 0] ./ 255; % red
case 'PRISME-F008'
color.calibration.user = 'AW';
color.calibration.date = '2017-03-06';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 26.23;
color.luminance.blue = 26.09;
color.luminance.pink = 26.29;
color.luminance.orange = 26.24;
color.luminance.green = 26.41;
color.luminance.red = 26.33;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 119 255] ./ 255; % blue
color.lum_matched.pink = [243 0 180] ./ 255; % pink
color.lum_matched.orange = [203 105 0] ./ 255; % orange
color.lum_matched.green = [0 153 0] ./ 255; % green
color.lum_matched.red = [255 49 0] ./ 255; % red
case 'PRISME-F010'
color.calibration.user = 'AW';
color.calibration.date = '2017-02-16';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 22.89;
color.luminance.blue = 22.64;
color.luminance.pink = 22.41;
color.luminance.orange = 22.83;
color.luminance.green = 22.98;
color.luminance.red = 22.72;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 113 255] ./ 255; % blue
color.lum_matched.pink = [233 0 174] ./ 255; % pink
color.lum_matched.orange = [200 97 0] ./ 255; % orange
color.lum_matched.green = [0 148 0] ./ 255; % green
color.lum_matched.red = [249 0 0] ./ 255; % red
case 'PRISME-F011'
color.calibration.user = 'AW';
color.calibration.date = '2017-02-20';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 24.67;
color.luminance.blue = 24.73;
color.luminance.pink = 24.63;
color.luminance.orange = 24.57;
color.luminance.green = 24.77;
color.luminance.red = 24.79;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 113 255] ./ 255; % blue
color.lum_matched.pink = [239 0 180] ./ 255; % pink
color.lum_matched.orange = [205 100 0] ./ 255; % orange
color.lum_matched.green = [0 152 0] ./ 255; % green
color.lum_matched.red = [255 35 0] ./ 255; % red
case 'PRISME-F012'
color.calibration.user = 'AW';
color.calibration.date = '2017-03-06';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 24.71;
color.luminance.blue = 24.69;
color.luminance.pink = 24.71;
color.luminance.orange = 24.73;
color.luminance.green = 24.75;
color.luminance.red = 24.69;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 117 255] ./ 255; % blue
color.lum_matched.pink = [239 0 177] ./ 255; % pink
color.lum_matched.orange = [205 102 0] ./ 255; % orange
color.lum_matched.green = [0 151 0] ./ 255; % green
color.lum_matched.red = [255 25 0] ./ 255; % red
case 'PRISME-F013'
color.calibration.user = 'AW';
color.calibration.date = '2017-03-09';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 18.77;
color.luminance.blue = 18.79;
color.luminance.pink = 18.77;
color.luminance.orange = 18.80;
color.luminance.green = 18.72;
color.luminance.red = 18.71;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 118 255] ./ 255; % blue
color.lum_matched.pink = [243 0 177] ./ 255; % pink
color.lum_matched.orange = [203 107 0] ./ 255; % orange
color.lum_matched.green = [0 151 0] ./ 255; % green
color.lum_matched.red = [255 46 0] ./ 255; % red
case 'PRISME-F014'
color.calibration.user = 'AW';
color.calibration.date = '2017-03-06';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 24.70;
color.luminance.blue = 24.62;
color.luminance.pink = 24.74;
color.luminance.orange = 24.66;
color.luminance.green = 24.64;
color.luminance.red = 24.75;
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 117 255] ./ 255; % blue
color.lum_matched.pink = [239 0 180] ./ 255; % pink
color.lum_matched.orange = [205 102 0] ./ 255; % orange
color.lum_matched.green = [0 152 0] ./ 255; % green
color.lum_matched.red = [255 45 0] ./ 255; % red
case 'DELLFBA7' % CENIR PROJECTOR
color.calibration.user = 'AW';
color.calibration.date = '2017-05-19';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 100.57;
color.luminance.blue = 100.63;
color.luminance.pink = 99.65;
color.luminance.orange = 100.05;
color.luminance.green = 99.74;
color.luminance.red = 99.82;
% color.lum_matched.grey = [128 128 128] ./ 255; % grey
% color.lum_matched.blue = [0 121 255] ./ 255; % blue
% color.lum_matched.pink = [255 32 255] ./ 255; % pink
% color.lum_matched.orange = [205 103 0] ./ 255; % orange
% color.lum_matched.green = [0 138 0] ./ 255; % green
% color.lum_matched.red = [255 74 47] ./ 255; % red
color.lum_matched.grey = [128 128 128]; % grey
color.lum_matched.blue = [0 121 255] ; % blue
color.lum_matched.pink = [255 32 255] ; % pink
color.lum_matched.orange = [205 103 0] ; % orange
color.lum_matched.green = [0 138 0] ; % green
color.lum_matched.red = [255 74 47] ; % red
case 'gursky' % SONY screen at CENIR
color.calibration.user = 'AW';
color.calibration.date = '2017-06-09';
color.calibration.device = 'DTP94';
color.luminance.unit = 'cd/m^2';
color.luminance.grey = 34.90;
color.luminance.blue = 35.11;
color.luminance.pink = 34.90;
color.luminance.orange = 35.35;
color.luminance.green = 34.86;
color.luminance.red = 35.08;
% color.lum_matched.grey = [128 128 128] ./ 255; % grey
% color.lum_matched.blue = [0 121 255] ./ 255; % blue
% color.lum_matched.pink = [220 0 160] ./ 255; % pink
% color.lum_matched.orange = [205 90 0] ./ 255; % orange
% color.lum_matched.green = [0 152 0] ./ 255; % green
% color.lum_matched.red = [233 0 0] ./ 255; % red
color.lum_matched.grey = [128 128 128] ; % grey
color.lum_matched.blue = [0 121 255] ; % blue
color.lum_matched.pink = [220 0 160] ; % pink
color.lum_matched.orange = [205 90 0] ; % orange
color.lum_matched.green = [0 152 0] ; % green
color.lum_matched.red = [233 0 0] ; % red
% behav box at CENIR
case 'upmc-683b7ab6a7' % !!! NOT CALIBRATED, ONLY FOR DEBUG
color.calibration.user = [];
color.calibration.date = [];
color.calibration.device = [];
color.luminance.unit = [];
color.luminance.grey = [];
color.luminance.blue = [];
color.luminance.pink = [];
color.luminance.orange = [];
color.luminance.green = [];
color.luminance.red = [];
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 113 255] ./ 255; % blue
color.lum_matched.pink = [233 0 174] ./ 255; % pink
color.lum_matched.orange = [200 97 0] ./ 255; % orange
color.lum_matched.green = [0 148 0] ./ 255; % green
color.lum_matched.red = [249 0 0] ./ 255; % red
case 'bansky' % !!! NOT CALIBRATED, ONLY FOR DEBUG
color.calibration.user = [];
color.calibration.date = [];
color.calibration.device = [];
color.luminance.unit = [];
color.luminance.grey = [];
color.luminance.blue = [];
color.luminance.pink = [];
color.luminance.orange = [];
color.luminance.green = [];
color.luminance.red = [];
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 113 255] ./ 255; % blue
color.lum_matched.pink = [233 0 174] ./ 255; % pink
color.lum_matched.orange = [200 97 0] ./ 255; % orange
color.lum_matched.green = [0 148 0] ./ 255; % green
color.lum_matched.red = [249 0 0] ./ 255; % red
case 'MBB03' % !!! NOT CALIBRATED, ONLY FOR DEBUG
color.calibration.user = [];
color.calibration.date = [];
color.calibration.device = [];
color.luminance.unit = [];
color.luminance.grey = [];
color.luminance.blue = [];
color.luminance.pink = [];
color.luminance.orange = [];
color.luminance.green = [];
color.luminance.red = [];
color.lum_matched.grey = [128 128 128] ./ 255; % grey
color.lum_matched.blue = [0 113 255] ./ 255; % blue
color.lum_matched.pink = [233 0 174] ./ 255; % pink
color.lum_matched.orange = [200 97 0] ./ 255; % orange
color.lum_matched.green = [0 148 0] ./ 255; % green
color.lum_matched.red = [249 0 0] ./ 255; % red
otherwise
color.calibration.user = [];
color.calibration.date = [];
color.calibration.device = [];
color.luminance.unit = [];
color.luminance.grey = [];
color.luminance.blue = [];
color.luminance.pink = [];
color.luminance.orange = [];
color.luminance.green = [];
color.luminance.red = [];
% !!! NOT CALIBRATED, ONLY FOR DEBUG
%color.lum_matched.grey = [128 128 128] ./ 255; % grey
%color.lum_matched.blue = [0 113 255] ./ 255; % blue
%color.lum_matched.pink = [239 0 180] ./ 255; % pink
%color.lum_matched.orange = [205 100 0] ./ 255; % orange
%color.lum_matched.green = [0 152 0] ./ 255; % green
%color.lum_matched.red = [255 35 0] ./ 255; % red
color.lum_matched.grey = [128 128 128] ; % grey
color.lum_matched.blue = [0 113 255] ; % blue
color.lum_matched.pink = [239 0 180] ; % pink
color.lum_matched.orange = [205 100 0] ; % orange
color.lum_matched.green = [0 152 0] ; % green
color.lum_matched.red = [255 35 0] ; % red
end % switch hostname
color.text = color.white;
color.highlight = color.red;
%color.background = color.grey;
%Exceptionally for Deepclimate, we show the background in black.
color.background = color.black;
end % end function