I_S5T_regex.m 898 B

123456789101112131415161718192021222324252627
  1. % I_S5T_regex.m
  2. %
  3. % This function calls the CombineViews function for all the files in the regular
  4. % expression.
  5. %
  6. % input:
  7. % regex - regular expression to ARFF files
  8. % saccParams - file holding the saccade parameters
  9. % outDir - output directory
  10. % detectExtra - Detect blinks and OKN
  11. %
  12. % ex. I_S5T_regex('/path/to/files/*.arff', 'params_saccades_equirect.txt', '/path/to/output/', true, 10, 65)
  13. function CombineViewsRegex(regex, saccParams, outDir, detectExtra, speedLow, speedMed)
  14. filelist = glob(regex);
  15. for i=1:size(filelist,1)
  16. filename = filelist{i,1};
  17. disp(filename);
  18. [path, name, ext] = fileparts(filename);
  19. outFile = fullfile(outDir, [name ext]);
  20. I_S5T(filename, saccParams, outFile, detectExtra, speedLow, speedMed);
  21. end
  22. end