I_S5T_single_view_regex.m 1009 B

12345678910111213141516171819202122232425262728
  1. % I_S5T_single_view_regex.m
  2. %
  3. % This function calls the I_S5T_single_view 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. % typeOfMotion- 1 -> eye FOV, 2 -> E+H
  10. % outDir - output directory
  11. % detectExtra - Detect blinks and OKN
  12. %
  13. % ex. UseOneViewRegex('/path/to/files/*.arff', 'params_saccades_equirect.txt', 2, '/path/to/output/', true, 14, 80)
  14. function I_S5T_single_view_regex(regex, saccParams, typeOfMotion, outDir, detectExtra, speedLow, speedMed)
  15. filelist = glob(regex);
  16. for i=1:size(filelist,1)
  17. filename = filelist{i,1};
  18. disp(filename);
  19. [path, name, ext] = fileparts(filename);
  20. outFile = fullfile(outDir, [name ext]);
  21. I_S5T_single_view(filename, saccParams, typeOfMotion, outFile, detectExtra, speedLow, speedMed);
  22. end
  23. end