Browse code

radius frontend enabled, fixed backend problems. radius working

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

Christoph Budziszewski authored on18/03/2009 14:50:47
Showing1 changed files
... ...
@@ -2,16 +2,23 @@ function voxelList = parseCoordinateTextField(model)
2 2
 s = get(model.txtVoxelDef,'String');
3 3
 rows = size(s,1);
4 4
 voxelList = [];
5
-    for i = 1:rows 
6
-        if all(isspace(s(i,:)))
7
-            continue;
8
-        end
9
-        line = s(i,:);
5
+for i = 1:rows
6
+    if all(isspace(s(i,:)))
7
+        continue;
8
+    end
9
+    line = s(i,:);
10
+    if (strfind(line,'+'))
11
+        % has radius
10 12
         [roi rem] = strtok(line,'+');
11
-        roimod = eval(str2mat(rem(2:end)));
12
-        coord.name = roi;
13
-        coord.mod = roimod;
14
-        voxelList = [voxelList; coord];
15
-
13
+        rad = eval(str2mat(rem(2:end)));
14
+    else
15
+        % radius set to 0
16
+        roi = line;
17
+        rad = 0;
16 18
     end
19
+    coord.name = roi;
20
+    coord.rad = rad;
21
+    voxelList = [voxelList; coord];
22
+
23
+end
17 24
 end
18 25
\ No newline at end of file
Browse code

coordTabel works for JZ006

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

Christoph Budziszewski authored on25/02/2009 15:49:55
Showing1 changed files
... ...
@@ -1,5 +1,5 @@
1
-function voxelList = parseCoordinateTextField(txtFieldHandel)
2
-s = get(txtFieldHandel,'String');
1
+function voxelList = parseCoordinateTextField(model)
2
+s = get(model.txtVoxelDef,'String');
3 3
 rows = size(s,1);
4 4
 voxelList = [];
5 5
     for i = 1:rows 
Browse code

new parseVoxelTxtField getImageFileList reads files according to gui-settings voxel to subject coordinate mapping missing.

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

Christoph Budziszewski authored on16/02/2009 17:32:42
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+function voxelList = parseCoordinateTextField(txtFieldHandel)
2
+s = get(txtFieldHandel,'String');
3
+rows = size(s,1);
4
+voxelList = [];
5
+    for i = 1:rows 
6
+        if all(isspace(s(i,:)))
7
+            continue;
8
+        end
9
+        line = s(i,:);
10
+        [roi rem] = strtok(line,'+');
11
+        roimod = eval(str2mat(rem(2:end)));
12
+        coord.name = roi;
13
+        coord.mod = roimod;
14
+        voxelList = [voxelList; coord];
15
+
16
+    end
17
+end
0 18
\ No newline at end of file