Browse code

basic available ROI display

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@207 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on07/08/2009 17:45:42
Showing3 changed files
... ...
@@ -271,7 +271,7 @@ function model = createFirstStepPanel(model,parent)
271 271
         
272 272
         btnROIlist = uicontrol(pVoxel,'String','show available ROIs','Units','normalized',...
273 273
             'Position',[0 0 1 0.15]);
274
-        set(btnROIlist,'Enable','off');
274
+        set(btnROIlist,'Enable','on');
275 275
         
276 276
         %buttons
277 277
         pButtons = uipanel(parent,'Position',cell2mat(main_grid(1,4)));
... ...
@@ -287,9 +287,9 @@ function model = createFirstStepPanel(model,parent)
287 287
         
288 288
         
289 289
         set(btnRunButton1,'Callback',{@cbRunPreprocessing,model,'COORD'}); % set here, because of model.
290
-        set(btnRunButton2,'Callback',{@cbRunPreprocessing,model,'FBS'}); % set here, because of model.  
291
-        set(btnRunButton3,'Callback',{@cbRunPreprocessing,model,'ROI'}); % set here, because of model.    
292
-%         set(btnROIlist,'Callback',); % set here, because of model.  
290
+        set(btnRunButton2,'Callback',{@cbRunPreprocessing,model,'FBS'});   % set here, because of model.  
291
+        set(btnRunButton3,'Callback',{@cbRunPreprocessing,model,'ROI'});   % set here, because of model.    
292
+        set(btnROIlist,   'Callback',{@cbShowAvailableROIs,model});        % set here, because of model.  
293 293
    
294 294
 end
295 295
 
... ...
@@ -473,6 +473,10 @@ end
473 473
 
474 474
 %%%%% ui callbacks
475 475
 
476
+function cbShowAvailableROIs(src,evtl,model)
477
+    ui_showAvailableROIs(model);
478
+end
479
+
476 480
 function cbSwitchTask(src,evnt,task,taskpanel)
477 481
 set(taskpanel.preprocessing,'Visible','off');
478 482
 set(taskpanel.classification,'Visible','off');
479 483
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+function ui_showAvailableROIs(model)
2
+
3
+
4
+subjects = getSubjectCellList(model);
5
+nSubjects = numel(subjects);
6
+data =[];
7
+for s = 1:nSubjects
8
+    subjectStruct{s}.dir = fullfile(getBaseDir(model),cell2mat(subjects(s)));
9
+    map = load(fullfile(subjectStruct{s}.dir,'results','roi','coord_map.mat'));
10
+    data = [ data map.names];
11
+end
12
+
13
+availableROIs = unique(data)
14
+
15
+
16
+end
17
+
18
+function show(data)
19
+figure f;
20
+
21
+
22
+end
0 23
\ No newline at end of file
1 24
Binary files a/study/default.mat and b/study/default.mat differ