123456789101112131415161718192021222324252627 |
- % I_S5T_regex.m
- %
- % This function calls the CombineViews function for all the files in the regular
- % expression.
- %
- % input:
- % regex - regular expression to ARFF files
- % saccParams - file holding the saccade parameters
- % outDir - output directory
- % detectExtra - Detect blinks and OKN
- %
- % ex. I_S5T_regex('/path/to/files/*.arff', 'params_saccades_equirect.txt', '/path/to/output/', true, 10, 65)
-
- function CombineViewsRegex(regex, saccParams, 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(filename, saccParams, outFile, detectExtra, speedLow, speedMed);
- end
- end
|