1 | % LocalConfig configuration file for self-calibration experiments |
---|
2 | % |
---|
3 | % |
---|
4 | % config = configdata(experiment) |
---|
5 | % |
---|
6 | % experiment ... string with an experiment name |
---|
7 | |
---|
8 | function config = configdata(experiment) |
---|
9 | |
---|
10 | HOME_PATH = '/home/svoboda/Work/BlueCCal/'; |
---|
11 | |
---|
12 | % add paths |
---|
13 | addpath([HOME_PATH,'MultiCamSelfCal/FindingPoints']); |
---|
14 | addpath([HOME_PATH,'BlueCFindingPoints']); |
---|
15 | |
---|
16 | |
---|
17 | if nargin<1, |
---|
18 | display('No name of the experiment specified: >>basic<< used as default') |
---|
19 | experiment = 'basic'; |
---|
20 | end |
---|
21 | |
---|
22 | if strcmp(experiment,'basic') |
---|
23 | error; |
---|
24 | elseif strcmp(experiment,'BlueCHoengg') |
---|
25 | config.paths.data = '/local/tomas/'; |
---|
26 | config.paths.img = config.paths.data; |
---|
27 | config.files.imnames = 'arctic%d.pvi.*.'; |
---|
28 | config.files.idxcams = [1:16]; % related to the imnames |
---|
29 | config.files.imgext = 'jpg'; |
---|
30 | config.imgs.LEDsize = 7; % avg diameter of a LED in pixels |
---|
31 | config.imgs.LEDcolor = 'green'; % color of the laser pointer |
---|
32 | config.imgs.subpix = 1/5; |
---|
33 | elseif strcmp(experiment,'BlueCRZ') |
---|
34 | config.paths.data = '/local/tomas/'; |
---|
35 | config.paths.img = config.paths.data; |
---|
36 | config.files.imnames = 'atlantic%d.pvi.*.'; |
---|
37 | config.files.idxcams = [3:12,14:18]; % related to the imnames |
---|
38 | config.files.imgext = 'jpg'; |
---|
39 | config.imgs.LEDsize = 7; % avg diameter of a LED in pixels |
---|
40 | config.imgs.LEDcolor = 'green'; % color of the laser pointer |
---|
41 | config.imgs.subpix = 1/5; |
---|
42 | else |
---|
43 | error('Configdata: wrong identifier of the data set'); |
---|
44 | end |
---|
45 | |
---|
46 | |
---|
47 | % image resolution |
---|
48 | try config.imgs.res; catch, config.imgs.res = [640,480]; end; |
---|
49 | |
---|
50 | % scale for the subpixel accuracy |
---|
51 | % 1/3 is a good compromise between speed and accuracy |
---|
52 | % for high-resolution images or bigger LEDs you may try 1/1 or 1/2 |
---|
53 | try config.imgs.subpix; catch, config.imgs.subpix = 1/3; end; |
---|
54 | |
---|
55 | % data names |
---|
56 | try config.files.Pmats; catch, config.files.Pmats = [config.paths.data,'Pmatrices.dat']; end; |
---|
57 | try config.files.points; catch, config.files.points = [config.paths.data,'points.dat']; end; |
---|
58 | try config.files.IdPoints; catch, config.files.IdPoints = [config.paths.data,'IdPoints.dat']; end; |
---|
59 | try config.files.Res; catch, config.files.Res = [config.paths.data,'Res.dat']; end; |
---|
60 | try config.files.IdMat; catch, config.files.IdMat = [config.paths.data,'IdMat.dat']; end; |
---|
61 | try config.files.inidx; catch, config.files.inidx = [config.paths.data,'idxin.dat']; end; |
---|
62 | try config.files.avIM; catch, config.files.avIM = [config.paths.data,'camera%d.average.tiff']; end; |
---|
63 | try config.files.stdIM; catch, config.files.stdIM = [config.paths.data,'camera%d.std.tiff']; end; |
---|
64 | try config.files.CalPar; catch, config.files.CalPar = [config.paths.data,'camera%d.cal']; end; |
---|
65 | try config.files.CalPmat; catch, config.files.CalPmat = [config.paths.data,'camera%d.Pmat.cal']; end; |
---|
66 | try config.files.StCalPar; catch, config.files.StCalPar = [config.paths.data,'atlantic%d.ethz.ch.cal']; end; |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|