diff --git a/.gitignore b/.gitignore index 05d549c..5167503 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ matlab_version/face_validation/vlfeat-0.9.20/ matlab_version/face_validation/trained/intermediate/ lib/local/GazeAnalyser/x64/ lib/local/Utilities/x64/ +exe/FeatureExtraction/processed/ diff --git a/matlab_runners/Head Pose Experiments/run_ict_experiment.m b/matlab_runners/Head Pose Experiments/run_ict_experiment.m index 9b95f15..1d0f8ff 100644 --- a/matlab_runners/Head Pose Experiments/run_ict_experiment.m +++ b/matlab_runners/Head Pose Experiments/run_ict_experiment.m @@ -11,43 +11,29 @@ end output_dir = 'experiments/ict_out'; dbSeqDir = dir([rootDir ictDir]); - +dbSeqDir = dbSeqDir(3:end); + output_dir = cat(2, output_dir, '/'); -numTogether = 10; +command = sprintf('%s -inroot "%s" -outroot "%s" -fx 535 -fy 536 -cx 327 -cy 241 -pose -vis-track ', executable, rootDir, output_dir); + +if(verbose) + command = cat(2, command, [' -tracked ' outputVideo]); +end -for i=3:numTogether:numel(dbSeqDir) - - command = [executable ' -fx 535 -fy 536 -cx 327 -cy 241 -pose -vis-track ']; +if(any(strcmp('model', varargin))) + command = cat(2, command, [' -mloc "', varargin{find(strcmp('model', varargin))+1}, '"']); +end - command = cat(2, command, [' -inroot ' '"' rootDir '/"']); - - % deal with edge cases - if(numTogether + i > numel(dbSeqDir)) - numTogether = numel(dbSeqDir) - i + 1; - end - - for n=0:numTogether-1 - - inputFile = [ictDir dbSeqDir(i+n).name '/colour undist.avi']; - - command = cat(2, command, [' -f "' inputFile '" -of "' output_dir '" ']); - - end - - 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 - - if(isunix) - unix(command, '-echo') - else - dos(command); - 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); end