2017-10-21 11:15:22 +00:00
|
|
|
function [output_dir] = run_ict_experiment(rootDir, ictDir, verbose, varargin)
|
2016-04-28 19:40:36 +00:00
|
|
|
%EVALUATEICTDATABASE Summary of this function goes here
|
|
|
|
% Detailed explanation goes here
|
|
|
|
|
2017-01-04 22:32:38 +00:00
|
|
|
if(isunix)
|
|
|
|
executable = '"../../build/bin/FeatureExtraction"';
|
|
|
|
else
|
|
|
|
executable = '"../../x64/Release/FeatureExtraction.exe"';
|
|
|
|
end
|
2016-04-28 19:40:36 +00:00
|
|
|
|
2017-01-04 22:32:38 +00:00
|
|
|
output_dir = 'experiments/ict_out';
|
2016-04-28 19:40:36 +00:00
|
|
|
|
|
|
|
dbSeqDir = dir([rootDir ictDir]);
|
2017-11-14 07:46:01 +00:00
|
|
|
dbSeqDir = dbSeqDir(3:end);
|
|
|
|
|
2017-01-04 22:32:38 +00:00
|
|
|
output_dir = cat(2, output_dir, '/');
|
2016-04-28 19:40:36 +00:00
|
|
|
|
2017-11-17 07:54:22 +00:00
|
|
|
command = sprintf('%s -inroot "%s" -out_dir "%s" -fx 535 -fy 536 -cx 327 -cy 241 -pose -vis-track ', executable, rootDir, output_dir);
|
2017-11-14 07:46:01 +00:00
|
|
|
|
|
|
|
if(verbose)
|
|
|
|
command = cat(2, command, [' -tracked ' outputVideo]);
|
|
|
|
end
|
|
|
|
|
|
|
|
if(any(strcmp('model', varargin)))
|
|
|
|
command = cat(2, command, [' -mloc "', varargin{find(strcmp('model', varargin))+1}, '"']);
|
|
|
|
end
|
|
|
|
|
|
|
|
for i=1:numel(dbSeqDir)
|
|
|
|
inputFile = [ictDir dbSeqDir(i).name '/colour undist.avi'];
|
|
|
|
command = cat(2, command, [' -f "' inputFile '" -of "' dbSeqDir(i).name '" ']);
|
|
|
|
end
|
|
|
|
|
|
|
|
if(isunix)
|
|
|
|
unix(command, '-echo')
|
|
|
|
else
|
|
|
|
dos(command);
|
2016-04-28 19:40:36 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|