-
Notifications
You must be signed in to change notification settings - Fork 0
/
getPars.m
63 lines (61 loc) · 1.59 KB
/
getPars.m
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
53
54
55
56
57
58
59
60
61
62
63
function pars = getPars(time,V1Mode)
%function pars = getPars(time,V1Mode)
% This returns the appropriate parameters for different models, observers
% and presentation times.
% time is assumed to map to the 4 presentation times used in the paper:
% 19,79,500,1497 ms
% V1Mode should be either 1 or 2 for local or mean normalization
% respectively.
% If no parameters were saved for the requested observer we default to the
% 'standard' observer for 79ms presentation time and local normalization.
if ~exist('time','var') || isempty(time)
time = 79;
end
if ~exist('V1Mode','var') || isempty(V1Mode)
V1Mode = 1;
end
switch time
case {19,20}
if V1Mode == 2
load pars/pars20.mat
pars = pars20;
else
load pars/pars20.mat
pars = pars20;
end
case 79
if V1Mode == 2
load pars/pars79_local.mat
pars = pars79;
else
load pars/pars79
pars = pars79;
end
case 500
if V1Mode == 2
load pars/parsMF_local.mat
pars= parsMF;
else
load pars/parsMF
pars = parsMF;
end
case 1497
if V1Mode == 2
load pars/pars1497_local
pars = pars1497;
else
load pars/pars1497
pars = pars1497;
end
otherwise
if V1Mode == 2
load pars/pars79_local.mat
pars = pars79;
else
load pars/pars79
pars = pars79;
end
end
if ~exist('pars','var') || isempty(pars)
pars = getPars();
end