-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimpFeatures.m
57 lines (40 loc) · 1003 Bytes
/
impFeatures.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
function [FGF] = impFeatures(impFeatureTime, labels)
for i = 1:size(impFeatureTime{1},2) % quantidade de regioes
for k = 1:size(impFeatureTime,2) % quantidade de imagens
X = (sprintf('Creating feature image: %d',k));
disp (X);
greaImportance = cell2mat(impFeatureTime{k}{1,i});
[g, gi] = max(greaImportance);% g(valor da importancia) e gi (o indice das features)
%groupF = sfeatures{1,1}(gi,:);
if gi == 1
FG(k) = 1; %Gray
end
if gi == 2
FG(k) = 2; %XCS-LBP
end
if gi == 3
FG(k) = 3; %MULTISPECTRAL
end
if gi == 4
FG(k) = 3; %MULTISPECTRAL
end
if gi == 5
FG(k) = 3; %MULTISPECTRAL
end
if gi == 6
FG(k) = 3; %MULTISPECTRAL
end
if gi == 7
FG(k) = 3; %MULTISPECTRAL
end
if gi == 8
FG(k) = 3; %MULTISPECTRAL
end
if gi == 9
FG(k) = 3; %MULTISPECTRAL
end
end
FGA(i,:) = FG;
end
[FGF] = regionToPixel(FGA, labels);
end