5c481dda2a46829fb76340a34e881f9b868e9024
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

1) function subjectStruct  = runROIImageMaskMode(args)
Christoph Budziszewski moved things

Christoph Budziszewski authored 15 years ago

2) 
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

3) % global SVMCROSSVAL_SUBJECTSTRUCT_NAME;
Christoph Budziszewski snapshot, classification

Christoph Budziszewski authored 15 years ago

4) 
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

5) subjects = args.subjects;
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

6)    
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

7) nSubjects = numel(subjects);
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

8) sessionlist = args.sessionList;
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

9) pstopts = args.psthOpts;
10) pstopts.eventList = args.eventList;
11) pstopts.sessionList = sessionlist;
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

12) 
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

13) disp(sprintf('batch processing  %g subjects.',nSubjects));
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

14) 
15) for s = 1:nSubjects
16)     subjectStruct{s}.dir = fullfile(args.basedir,cell2mat(subjects(s)));
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

17)     d = load(fullfile(subjectStruct{s}.dir,'results','SPM.mat'));
18)     subjectStruct{s}.des = d.SPM;
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

19)     subjectStruct{s}.name = cell2mat(subjects(s));
20)     subjectStruct{s}.roiFile = ui_selectRoiImage(...
21)         sprintf('Select ROI Files for %s',subjectStruct{s}.name),...
22)         fullfile(subjectStruct{s}.dir,'results','roi'));
23) end
24) 
25) 
26) 
27) for s = 1:nSubjects
28)     % load image data
29)    
30)     disp('fetching volume definitions, please wait');
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

31)     subjectStruct{s}.volumes = spm_vol(getImageFileList(subjectStruct{s}.dir,sessionlist,args.mask));
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

32) 
33)     disp('computing volume values, please wait');
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

34)     
Christoph Budziszewski debugging

Christoph Budziszewski authored 14 years ago

35)     [extr x y z] = calculateRoiImageData(subjectStruct{s}.volumes,subjectStruct{s}.roiFile);
Christoph Budziszewski schwimmen.

Christoph Budziszewski authored 15 years ago

36)     
37)     nVoxel = size(extr(1).dat,1);
38) 
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

39)     % calculate psth
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

40)     pstopts.des = subjectStruct{s}.des;
41) 
42)     disp('computing psth');
Christoph Budziszewski schwimmen.

Christoph Budziszewski authored 15 years ago

43)     for iVoxel = 1:nVoxel
Christoph Budziszewski debugging

Christoph Budziszewski authored 14 years ago

44)         [ x(iVoxel) y(iVoxel) z(iVoxel)]
Christoph Budziszewski schwimmen.

Christoph Budziszewski authored 15 years ago

45)         rawdata = [];
46)         for iImage = 1:length(extr);
47)             tmp = extr(iImage);
48)             rawdata = [rawdata tmp.dat(iVoxel)];
49)         end
50)         subjectStruct{s}.pst{iVoxel} = calculatePST(args.timeline,pstopts,rawdata);
51)     end
Christoph Budziszewski coordTabel works for JZ006

Christoph Budziszewski authored 15 years ago

52)     disp('done');
Christoph Budziszewski moved things

Christoph Budziszewski authored 15 years ago

53) end
54) 
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

55) % assignin('base',SVMCROSSVAL_SUBJECTSTRUCT_NAME,subjectStruct);
Christoph Budziszewski roi image working

Christoph Budziszewski authored 15 years ago

56)