stable version for conference.
Christoph Budziszewski

Christoph Budziszewski commited on 2009-03-19 15:14:44
Zeige 3 geänderte Dateien mit 34 Einfügungen und 4 Löschungen.


git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@165 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... ...
@@ -1,4 +1,4 @@
1
-function extr = calculateRoiImageData(filenameList,roiImageList)
1
+function [extr xx yy zz] = calculateRoiImageData(filenameList,roiImageList)
2 2
 
3 3
 V = filenameList;
4 4
 nImage = numel(V);
... ...
@@ -23,6 +23,12 @@ for kImage=1:nImage
23 23
         end
24 24
         dat = [dat spm_sample_vol(V(kImage), x, y, z,0)];
25 25
 
26
+        if kImage == 1 % sample coordinates from first image
27
+            xx = x;
28
+            yy = y;
29
+            zz = z;
30
+        end
31
+
26 32
     end
27 33
     extr(kImage).dat = dat;
28 34
 end
... ...
@@ -74,7 +74,31 @@ switch task
74 74
         assignin('base','preprocessedData',out);
75 75
         
76 76
     case 'FBS'
77
-        disp('not implemented')
77
+        disp('FSB');
78
+        out = struct;
79
+        out.header = struct;
80
+        out.header.type = 'FBS';
81
+        out.header.timeline = timeLine;
82
+        out.header.classDef = classDef;
83
+        
84
+        fbsargs = struct;
85
+        fbsargs.subject         = subjects;
86
+        
87
+        if(size(subjects,2)>1)
88
+            display(sprintf('No BATCH Support for Searchlight!'));
89
+            return
90
+        end
91
+        
92
+        fbsargs.timeline        = timeLine;
93
+        fbsargs.classes         = classDef;
94
+        fbsargs.mask            = mask;
95
+        fbsargs.basedir         = model.baseDir;
96
+        fbsargs.sessionList     = 1:3;
97
+        fbsargs.eventList       = classDef.eventMatrix;
98
+        fbsargs.psthOpts        = psthOpts;
99
+        
100
+        out.subjectdata = runFBSImageMaskMode(fbsargs);
101
+                
78 102
 end
79 103
 end
80 104
 
... ...
@@ -95,7 +95,7 @@ DEFAULT.wd  = fullfile('d:','Analyze','Choice','24pilot');
95 95
 
96 96
     % menu
97 97
     
98
-    savemenu = uimenu(frame,'Label','Save/Load');
98
+    savemenu = uimenu(frame,'Label','Save/Load','Enable','off');
99 99
         uimenu(savemenu,'Label','Save Preprocessing Parameter','Callback',{@mcb_save,model1},'Enable','off');
100 100
         uimenu(savemenu,'Label','Load Preprocessing Parameter','Callback',{@mcb_load,model1},'Enable','off');
101 101
         uimenu(savemenu,'Label','Save Decode Parameter','Callback',{@mcb_save,model2},'Enable','off');
... ...
@@ -346,7 +346,7 @@ pSOM = uipanel(parent,'Units','normalized','Position',[0.5 0.4 0.5 0.4]);
346 346
     btnRunSOM = uicontrol(pSOM,'String','run SOM Crossvalidation',...
347 347
         'Units','normalized',...
348 348
         'Position',[0.0 0.25 1 0.25]);
349
-    set(btnRunSOM,'Enable','on');
349
+    set(btnRunSOM,'Enable','off');
350 350
 
351 351
     btnRunXSOM = uicontrol(pSOM,'String','run SOM X-Subject validation',...
352 352
         'Units','normalized',...
353 353