basic available ROI display
Christoph Budziszewski

Christoph Budziszewski commited on 2009-08-07 17:45:42
Zeige 3 geänderte Dateien mit 28 Einfügungen und 2 Löschungen.


git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@207 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... ...
@@ -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)));
... ...
@@ -289,7 +289,7 @@ function model = createFirstStepPanel(model,parent)
289 289
         set(btnRunButton1,'Callback',{@cbRunPreprocessing,model,'COORD'}); % set here, because of model.
290 290
         set(btnRunButton2,'Callback',{@cbRunPreprocessing,model,'FBS'});   % set here, because of model.  
291 291
         set(btnRunButton3,'Callback',{@cbRunPreprocessing,model,'ROI'});   % set here, because of model.    
292
-%         set(btnROIlist,'Callback',); % 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');
... ...
@@ -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