function datastruct = loadImageFileNamesData(loadParams)

global SVMCROSSVAL_SUBJECT_PREFIX;

RESULT_PATH = fullfile('results','SPM.mat');

for subjectCell = loadParams.subjectCellArray
    SubjectID   = cell2mat(subjectCell);
    subjectString = strcat(SVMCROSSVAL_SUBJECT_PREFIX,SubjectID); 
    
    display('loading SPM.mat ...');
    des = load(fullfile(getStudyBasePath(loadParams.StudyID),SubjectID,RESULT_PATH));
    des = des.SPM;
    display('... done.');
    
    datastruct.(subjectString).images      = getImageFileList(des,loadParams.use_smoothed_image_hack);
    
    subjectPath = fullfile(getStudyBasePath(loadParams.StudyID),SubjectID);
    
    ROIIMAGE = 1;
    if ROIIMAGE
        %load ROI Image Header
%         wd = 'C:\Dokumente und Einstellungen\Christoph\Eigene Dateien\Diplomarbeit\data';
        wd = subjectPath;
        datastruct.(subjectString).roiImages = readRoiImage(sprintf('Select ROI Images for Subject %s',SubjectID),wd);
    end
end