-
Notifications
You must be signed in to change notification settings - Fork 9
/
generate_figures.m
45 lines (37 loc) · 1.25 KB
/
generate_figures.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
function generate_figures(figures_to_generate)
% list here the figures to generate (specifying the function file names)
if nargin < 1
figures_to_generate = { ...
'ILSVRC2012_1000_VAL_mean_recall', ...
'ILSVRC2012_1000_VAL_mean_precision', ...
'PASCAL2007_TRAINVAL_mean_recall', ...
'PASCAL2007_TRAINVAL_mean_precision', ...
'PASCAL2007_TEST_mean_recall', ...
'PASCAL2007_TEST_mean_precision', ...
'ILSVRC2012_200rnd_VAL_mean_recall', ...
'ILSVRC2012_200rnd_VAL_mean_precision', ...
'ILSVRC2012_200rnd_v_1000_VAL_mean_recall', ...
'ILSVRC2012_200rnd_v_1000_VAL_mean_precision', ...
'ILSVRC2012_200rnd_TRAIN_mean_recall', ...
'ILSVRC2012_200rnd_TRAIN_mean_precision', ...
'ILSVRC2012_200rnd_VAL_detection_AP_GT_VS_OBFSgt', ...
};
end
path_scripts = './utils_generate_figures_paper';
close all
addpath([path_scripts '/export_fig']);
addpath(path_scripts);
for i=1:numel(figures_to_generate)
generate_figure(figures_to_generate{i});
end
end
function generate_figure(name)
fname = ['./figures/' name];
fprintf('*** Generating figure %s and saving it to %s\n', name, fname);
eval(name);
% save EPS
eval(['print2eps ' fname '.eps'])
% save FIG
%saveas(gcf, [fname '.fig']);
close(gcf);
end