2017-10-21 13:15:22 +02:00
|
|
|
function [output_dir] = run_biwi_experiment(rootDir, biwiDir, verbose, varargin)
|
2016-04-28 21:40:36 +02:00
|
|
|
% Biwi dataset experiment
|
|
|
|
|
2017-01-04 23:32:38 +01:00
|
|
|
if(isunix)
|
|
|
|
executable = '"../../build/bin/FeatureExtraction"';
|
|
|
|
else
|
|
|
|
executable = '"../../x64/Release/FeatureExtraction.exe"';
|
|
|
|
end
|
2016-04-28 21:40:36 +02:00
|
|
|
|
2017-01-04 23:32:38 +01:00
|
|
|
output_dir = 'experiments/biwi_out';
|
2016-04-28 21:40:36 +02:00
|
|
|
|
|
|
|
dbSeqDir = dir([rootDir biwiDir]);
|
2017-11-10 21:40:59 +01:00
|
|
|
dbSeqDir = dbSeqDir(3:end);
|
2016-04-28 21:40:36 +02:00
|
|
|
|
2017-11-10 21:40:59 +01:00
|
|
|
output_dir = cat(2, output_dir, '/');
|
2016-04-28 21:40:36 +02:00
|
|
|
|
2017-11-17 08:54:22 +01:00
|
|
|
command = sprintf('%s -inroot "%s" -out_dir "%s" -fx 505 -fy 505 -cx 320 -cy 240 -pose -vis-track ', executable, rootDir, output_dir);
|
2016-04-28 21:40:36 +02:00
|
|
|
|
2017-11-10 21:40:59 +01:00
|
|
|
if(verbose)
|
|
|
|
command = cat(2, command, [' -tracked ' outputVideo]);
|
|
|
|
end
|
2016-04-28 21:40:36 +02:00
|
|
|
|
2017-11-10 21:40:59 +01:00
|
|
|
if(any(strcmp('model', varargin)))
|
|
|
|
command = cat(2, command, [' -mloc "', varargin{find(strcmp('model', varargin))+1}, '"']);
|
|
|
|
end
|
2017-11-07 22:21:14 +01:00
|
|
|
|
2017-11-10 21:40:59 +01:00
|
|
|
for i=1:numel(dbSeqDir)
|
|
|
|
inputFile = [biwiDir dbSeqDir(i).name '/colour.avi'];
|
2017-11-12 22:40:30 +01:00
|
|
|
command = sprintf('%s -f "%s" -of "%s" ', command, inputFile, dbSeqDir(i).name);
|
2016-04-28 21:40:36 +02:00
|
|
|
end
|
2017-11-10 21:40:59 +01:00
|
|
|
|
|
|
|
if(isunix)
|
|
|
|
unix(command, '-echo')
|
|
|
|
else
|
|
|
|
dos(command);
|
|
|
|
end
|