12345678910111213141516171819202122232425262728 |
- % I_S5T_single_view_regex.m
- %
- % This function calls the I_S5T_single_view function for all the files in the regular
- % expression.
- %
- % input:
- % regex - regular expression to ARFF files
- % saccParams - file holding the saccade parameters
- % typeOfMotion- 1 -> eye FOV, 2 -> E+H
- % outDir - output directory
- % detectExtra - Detect blinks and OKN
- %
- % ex. UseOneViewRegex('/path/to/files/*.arff', 'params_saccades_equirect.txt', 2, '/path/to/output/', true, 14, 80)
-
- function I_S5T_single_view_regex(regex, saccParams, typeOfMotion, outDir, detectExtra, speedLow, speedMed)
- filelist = glob(regex);
- for i=1:size(filelist,1)
- filename = filelist{i,1};
- disp(filename);
- [path, name, ext] = fileparts(filename);
- outFile = fullfile(outDir, [name ext]);
-
- I_S5T_single_view(filename, saccParams, typeOfMotion, outFile, detectExtra, speedLow, speedMed);
- end
- end
|