Christoph Budziszewski commited on 2009-04-26 01:20:58
Zeige 3 geänderte Dateien mit 13 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@180 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... | ... |
@@ -158,6 +158,7 @@ switch task |
158 | 158 |
fbsargs.svmopts = getSvmArgs(model,1); |
159 | 159 |
header.svmrnd = getSvmRnd(model); |
160 | 160 |
fbsargs.radius = getSearchlightRadius(model); |
161 |
+ fbsargs.timeline = getSearchlightTimeline(model); |
|
161 | 162 |
runFBSImageMaskMode(header,data,fbsargs); |
162 | 163 |
|
163 | 164 |
end |
... | ... |
@@ -126,7 +128,14 @@ for s = 1:nSubjects |
126 | 128 |
display(sprintf('starting timesliceing')); |
127 | 129 |
|
128 | 130 |
nSamplePoints = ((timeLineEnd-timeLineStart)/res) +1; |
129 |
- for timeShiftIdx = 1:nSamplePoints |
|
131 |
+ |
|
132 |
+if ~isempty( fbsargs.timeline ) |
|
133 |
+ timeShiftIdx = fbsargs.timeline; |
|
134 |
+else |
|
135 |
+ timeShiftIdx = 1:nSamplePoints; |
|
136 |
+end |
|
137 |
+ |
|
138 |
+ for timeShiftIdx |
|
130 | 139 |
% center timepoint && relative shift |
131 | 140 |
frameStartIdx = floor(-globalStart+1+timeShiftIdx - 0.5*decodeDuration); |
132 | 141 |
frameEndIdx = min(ceil(frameStartIdx+decodeDuration + 0.5*decodeDuration),-globalStart+globalEnd); |
... | ... |
@@ -16,6 +16,7 @@ DEFAULT.svmoptstring = '-s 0 -t 0 -c 1'; |
16 | 16 |
DEFAULT.svmnfold = '6'; |
17 | 17 |
DEFAULT.svmrnd = 1; |
18 | 18 |
DEFAULT.searchlightradius = 3; |
19 |
+DEFAULT.searchlightTimeline = ''; |
|
19 | 20 |
|
20 | 21 |
|
21 | 22 |
DEFAULT.wd = fullfile('d:','Analyze','Choice','24pilot'); |
... | ... |
@@ -363,6 +364,9 @@ pSearchlight = uipanel(parent,'Units','normalized','Position',[0.0 0.1 1 0.3]); |
363 | 364 |
lSearchligh = createLabel(pSearchlight, [0 0.6 0.5 0.3],'Searchlight Radius'); |
364 | 365 |
model.txtSearchlightRadius = createTextField(pSearchlight,[0.5 0.6 0.5 0.3],DEFAULT.searchlightradius); |
365 | 366 |
|
367 |
+ lFBSTiming = createLabel(pSearchlight, [0 0.3 0.5 0.3],'Optional Timeline'); |
|
368 |
+ model.txtSearchlightTimeline = createTextField(pSearchlight,[0.5 0.3 0.5 0.3],DEFAULT.searchlightTimeline); |
|
369 |
+ |
|
366 | 370 |
btnRunFBS = uicontrol(pSearchlight,'String','run Spatiotemporal FB classification',... |
367 | 371 |
'Units','normalized',... |
368 | 372 |
'Position',[0.0 0.0 1 0.3]); |
369 | 373 |