-
Notifications
You must be signed in to change notification settings - Fork 2
/
art_activationmap3.m
87 lines (85 loc) · 2.74 KB
/
art_activationmap3.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
function ymap = art_activationmap3(i)
% Make a 64 element colormap- hot colors > 32, cold colors < 32.
% green -> blue -> black -> red -> yellow
% Used for art_groupcheck program.
% Paul Mazaika Oct 2007. (no change for v.2).
xmap = [
0.0250 0 0
0.0500 0 0
0.0750 0 0
0.1000 0 0
0.1250 0 0
0.1500 0 0
0.1750 0 0
0.2000 0 0
0.2250 0 0
0.2500 0 0
0.2750 0 0
0.3000 0 0
0.3250 0.0192 0
0.3500 0.0385 0
0.3750 0.0577 0
0.4000 0.0769 0
0.4250 0.0962 0
0.4500 0.1154 0
0.4750 0.1346 0
0.5000 0.1538 0
0.5250 0.1731 0
0.5500 0.1923 0
0.5750 0.2115 0
0.6000 0.2308 0
0.6250 0.2500 0
0.6500 0.2692 0
0.6750 0.2885 0
0.7000 0.3077 0
0.7250 0.3269 0
0.7500 0.3462 0
0.7750 0.3654 0
0.8000 0.3846 0
0.8250 0.4038 0
0.8500 0.4231 0
0.8750 0.4423 0
0.9000 0.4615 0
0.9250 0.4808 0
0.9500 0.5000 0
0.9750 0.5192 0
1.0000 0.5385 0
1.0000 0.5577 0
1.0000 0.5769 0
1.0000 0.5962 0
1.0000 0.6154 0
1.0000 0.6346 0
1.0000 0.6538 0
1.0000 0.6731 0
1.0000 0.6923 0
1.0000 0.7115 0
1.0000 0.7308 0
1.0000 0.7500 0
1.0000 0.7692 0
1.0000 0.7885 0
1.0000 0.8077 0
1.0000 0.8269 0
1.0000 0.8462 0
1.0000 0.8654 0
1.0000 0.8846 0
1.0000 0.9038 0
1.0000 0.9231 0
1.0000 0.9423 0
1.0000 0.9615 0
1.0000 0.9808 0
1.0000 1.0000 0
];
size(xmap); % 64x3
ymap = zeros(64,3);
for i = 1:32
ymap(32+i,:) = 0.9*xmap(2*i,:)+0.1;
ymap(32+i,2) = 0.9*xmap(max(round(1.2*(2*i-12)),1),2)+0.1;
ymap(33-i,2) = 0.9*xmap(2*i,2)+0.1;
ymap(33-i,1) = 0.9*xmap(2*i,3)+0.1;
ymap(33-i,3) = 0.9*xmap(2*i,1)+0.1;
ymap(32:33,1:3) = 0; % set outside of mask to black
end
for i = 1:12 % roll off blue and warm up red to expose green color
ymap(i,3) = ymap(13-i,2);
ymap(i,1) = 0.2*(ymap(i,2) - .5);
end