2016-06-03 15:33:04 +02:00
|
|
|
% Biwi dataset experiment
|
|
|
|
|
2018-02-08 20:44:51 +01:00
|
|
|
if(isunix)
|
|
|
|
features_exe = '"../../../build/bin/FeatureExtraction"';
|
2016-06-03 15:33:04 +02:00
|
|
|
else
|
2018-02-08 20:44:51 +01:00
|
|
|
features_exe = '"../../../x64/Release/FeatureExtraction.exe"';
|
2016-06-03 15:33:04 +02:00
|
|
|
end
|
|
|
|
|
2018-02-08 20:44:51 +01:00
|
|
|
find_DISFA;
|
2016-06-03 15:33:04 +02:00
|
|
|
|
2018-02-08 20:44:51 +01:00
|
|
|
output_dir = 'E:\datasets\face_datasets_processed\disfa';
|
2016-06-03 15:33:04 +02:00
|
|
|
|
2018-02-08 20:44:51 +01:00
|
|
|
DISFA_loc_1 = [DISFA_dir, 'Videos_LeftCamera/'];
|
|
|
|
DISFA_loc_2 = [DISFA_dir, 'Video_RightCamera/'];
|
2016-06-03 15:33:04 +02:00
|
|
|
|
|
|
|
disfa_loc_1_files = dir([DISFA_loc_1, '/*.avi']);
|
|
|
|
disfa_loc_2_files = dir([DISFA_loc_2, '/*.avi']);
|
|
|
|
|
|
|
|
%%
|
|
|
|
parfor i=1:numel(disfa_loc_1_files)
|
|
|
|
|
|
|
|
input_file = [DISFA_loc_1 disfa_loc_1_files(i).name];
|
2018-02-08 20:44:51 +01:00
|
|
|
command = sprintf('%s -f "%s" -out_dir "%s" -hogalign -pdmparams', features_exe, input_file, output_dir );
|
|
|
|
|
2016-06-03 15:33:04 +02:00
|
|
|
dos(command);
|
|
|
|
end
|
|
|
|
|
|
|
|
%%
|
|
|
|
parfor i=1:numel(disfa_loc_2_files)
|
|
|
|
|
2018-02-08 20:44:51 +01:00
|
|
|
input_file = [DISFA_loc_2 disfa_loc_1_files(i).name];
|
|
|
|
command = sprintf('%s -f "%s" -out_dir "%s" -hogalign -pdmparams', features_exe, input_file, output_dir );
|
2016-06-03 15:33:04 +02:00
|
|
|
|
2018-02-08 20:44:51 +01:00
|
|
|
end
|