-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpreprocDownsample_GetMetaParams.m
More file actions
52 lines (51 loc) · 2 KB
/
preprocDownsample_GetMetaParams.m
File metadata and controls
52 lines (51 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
function params = preprocDownsample_GetMetaParams(Arg)
% Usage: params = preprocDownsample_GetMetaParams(Arg)
%
% ML 2012.11.16
params.class = 'preprocDownsample';
switch Arg
case 1
% Simple box average, for TR=1, imhz=15
params.dsType = 'box';
params.imHz = 15; % movie / image sequence frame rate
params.sampleSec = 1; % TR
params.frameshifts = []; % empty = no shift
params.gaussParams = []; %[1,2]; % sigma,mean
case 2
% Simple box average, for TR=2, imhz=15
params.dsType = 'box';
params.imHz = 15; % movie / image sequence frame rate
params.sampleSec = 2; % TR
params.frameshifts = []; % empty = no shift
params.gaussParams = []; %[1,2]; % sigma,mean
case 3
% Gaussian downsampling, for TR=2, imhz=15
params.dsType = 'gauss';
params.imHz = 15; % movie / image sequence frame rate
params.sampleSec = 2; % TR
params.frameshifts = []; % empty = no shift
params.gaussParams = [1,2]; % mean, standard deviation
case 4
% Max downsampling, for TR=2, imhz=15
params.dsType = 'max';
params.imHz = 15; % movie / image sequence frame rate
params.sampleSec = 2; % TR
params.frameshifts = []; % empty = no shift
params.gaussParams = []; %[1,2]; % sigma,mean
case 5
% Simple box average, for TR=2, imhz=24
params.dsType = 'box';
params.imHz = 24; % movie / image sequence frame rate
params.sampleSec = 2; % TR
params.frameshifts = []; % empty = no shift
params.gaussParams = []; %[1,2]; % sigma,mean
case 6
% Simple box average, for TR=1, imhz=24
params.dsType = 'box';
params.imHz = 24; % movie / image sequence frame rate
params.sampleSec = 1; % TR
params.frameshifts = []; % empty = no shift
params.gaussParams = []; %[1,2]; % sigma,mean
otherwise
error('Unknown parameter configuration!');
end