Commit 0bb7fdd8 authored by Vaanathi Sundaresan's avatar Vaanathi Sundaresan
Browse files

Pre-existing feature loading changes in LOCATE_training.m

parent 1846b1bd
......@@ -80,6 +80,12 @@ for subj = 1:numel(xdir)
end
xsplit = regexp(xdir(subj).name,'_BIANCA_LPM','split');
does_file_exist = exist(sprintf('%s/LOCATE_features_%s.mat',results_directory,xsplit{1}),'file');
if does_file_exist == 2
load(sprintf('%s/LOCATE_features_%s.mat',results_directory,xsplit{1}))
else
xfeats = dir(sprintf('%s/%s_feature_*',root_data_directory,xsplit{1}));
flairimage = cell(numel(xfeats),1);
% Loading the image files
......@@ -136,6 +142,7 @@ for subj = 1:numel(xdir)
if verbose
fprintf('LOCATE features extracted! \n')
end
end
% Storing the features in a cell array
imgfeatmats{subj} = flairintfeats;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment