|
1 | 1 | % (C) Copyright 2020 CPP_PTB developers |
2 | 2 |
|
3 | 3 | function cfg = initFixation(cfg) |
4 | | - % cfg = initFixation(cfg) |
5 | 4 | % |
6 | | - % prepare details for fixation "cross" |
| 5 | + % Prepare the details for fixation "cross". |
| 6 | + % |
| 7 | + % USAGE:: |
| 8 | + % |
| 9 | + % cfg = initFixation(cfg) |
7 | 10 | % |
8 | 11 | % the fixation has a width defined by |
9 | | - % cfg.fixation.width : in degrees of visual |
| 12 | + % ``cfg.fixation.width`` : in degrees of visual |
10 | 13 | % |
11 | 14 | % The horizontal and vertical offset (in degrees of visual) with respect to the center of the |
12 | | - % screen is defined by |
13 | | - % cfg.fixation.xDisplacement |
14 | | - % cfg.fixation.yDisplacement |
| 15 | + % screen is defined by: |
| 16 | + % |
| 17 | + % - cfg.fixation.xDisplacement |
| 18 | + % - cfg.fixation.yDisplacement |
15 | 19 | % |
16 | | - % for cfg.fixation.type == 'bestFixation' |
17 | | - % Code adapted from: |
18 | | - % "What is the best fixation target?" |
| 20 | + % For cfg.fixation.type == 'bestFixation' |
| 21 | + % |
| 22 | + % Code adapted from: "What is the best fixation target?" |
19 | 23 | % DOI 10.1016/j.visres.2012.10.012 |
20 | 24 | % |
21 | 25 | % Contains a fixation cross and a dot |
|
39 | 43 |
|
40 | 44 | case 'bestFixation' |
41 | 45 |
|
42 | | - % Code adapted from: |
43 | | - % What is the best fixation target? |
44 | | - % DOI 10.1016/j.visres.2012.10.012 |
45 | | - |
46 | 46 | cfg.fixation.outerOval = [ ... |
47 | 47 | cfg.screen.center(1) - cfg.fixation.widthPix / 2, ... |
48 | 48 | cfg.screen.center(2) - cfg.fixation.widthPix / 2, ... |
|
0 commit comments