Browse code

moved helpercode to private

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

Christoph Budziszewski authored on07/01/2009 09:24:55
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,20 +0,0 @@
1
-function voxellist = generateVoxelList(center, radius)
2
-%     cx = ROICenter(1);
3
-%     cy = ROICenter(2);
4
-%     cz = ROICenter(3);
5
-    
6
-    voxellist = [];
7
-    
8
-    cx = center(1);
9
-    cy = center(2);
10
-    cz = center(3);
11
-
12
-    for z=cz-radius+1:cz+radius-1
13
-        for y=(cy-radius+1):(cy+radius-1)
14
-            for x=(cx-radius+1):(cx+radius-1)
15
-                voxellist = [voxellist [x;y;z]];
16
-            end
17
-        end
18
-    end
19
-
20
-end
21 0
\ No newline at end of file
Browse code

SVMCrossVal toolbox init

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

Christoph Budziszewski authored on17/12/2008 13:45:29
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
1
+function voxellist = generateVoxelList(center, radius)
2
+%     cx = ROICenter(1);
3
+%     cy = ROICenter(2);
4
+%     cz = ROICenter(3);
5
+    
6
+    voxellist = [];
7
+    
8
+    cx = center(1);
9
+    cy = center(2);
10
+    cz = center(3);
11
+
12
+    for z=cz-radius+1:cz+radius-1
13
+        for y=(cy-radius+1):(cy+radius-1)
14
+            for x=(cx-radius+1):(cx+radius-1)
15
+                voxellist = [voxellist [x;y;z]];
16
+            end
17
+        end
18
+    end
19
+
20
+end
0 21
\ No newline at end of file