-
Notifications
You must be signed in to change notification settings - Fork 0
/
process_scores_Tex.m
47 lines (39 loc) · 1.02 KB
/
process_scores_Tex.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
function process_scores_Tex(conf, scores, nr)
fprintf('Writing results to Tex summary...\n');
valid_id = [2 3 4 5 6 7 8 9];
fprintf('\n');
for j = 1:length(conf.desc)
if sum(valid_id==j)==0
continue;
end;
fprintf('& \\multicolumn{2}{|c|}{%s}', conf.desc{j});
end
fprintf('\\\\\n');
fprintf('image');
for j = 1:length(conf.desc)
if sum(valid_id==j)==0
continue;
end;
fprintf('& PSNR & Time');
end
fprintf('\\\\\n');
for i =1:nr
%[p, f, x] = fileparts(conf.filenames{i});
[~, f, ~] = fileparts(conf.filenames{i});
fprintf('%s',f);
for j = 1:length(conf.desc)
if sum(valid_id==j)==0
continue;
end;
fprintf(' & %.1f & %.1f', scores(i,j), conf.countedtime(j-1,i));
end
fprintf('\\\\\n');
end
fprintf('average');
for j = 1:11
if sum(valid_id==j)==0
continue;
end;
fprintf(' & %.2f & %.2f', mean(scores(:,j)), mean(conf.countedtime(j-1,:)));
end
fprintf('\\\\\n\n\n');