source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/BlueCFindingPoints/localconfig.m @ 173

Last change on this file since 173 was 37, checked in by (none), 15 years ago

Added original make3d

File size: 2.8 KB
Line 
1% LocalConfig configuration file for self-calibration experiments
2%
3%
4% config = configdata(experiment)
5%
6% experiment ... string with an experiment name
7
8function config = configdata(experiment)
9
10HOME_PATH = '/home/svoboda/Work/BlueCCal/';
11
12% add paths
13addpath([HOME_PATH,'MultiCamSelfCal/FindingPoints']);
14addpath([HOME_PATH,'BlueCFindingPoints']);
15
16
17if nargin<1,
18  display('No name of the experiment specified: >>basic<< used as default')
19  experiment = 'basic';
20end
21
22if strcmp(experiment,'basic')
23  error;
24elseif 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;
33elseif 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;
42else
43  error('Configdata: wrong identifier of the data set');
44end
45
46
47% image resolution
48try 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
53try config.imgs.subpix; catch, config.imgs.subpix = 1/3; end;
54
55% data names
56try config.files.Pmats;    catch,       config.files.Pmats        = [config.paths.data,'Pmatrices.dat'];                end;
57try config.files.points;   catch,       config.files.points       = [config.paths.data,'points.dat'];           end;
58try config.files.IdPoints; catch,       config.files.IdPoints = [config.paths.data,'IdPoints.dat'];             end;
59try config.files.Res;      catch,       config.files.Res          = [config.paths.data,'Res.dat'];              end;
60try config.files.IdMat;    catch,       config.files.IdMat        = [config.paths.data,'IdMat.dat'];                    end;
61try config.files.inidx;    catch,       config.files.inidx        = [config.paths.data,'idxin.dat'];                    end;
62try config.files.avIM;     catch,       config.files.avIM         = [config.paths.data,'camera%d.average.tiff'];                end;
63try config.files.stdIM;    catch,       config.files.stdIM        = [config.paths.data,'camera%d.std.tiff'];            end;
64try config.files.CalPar;   catch,       config.files.CalPar       = [config.paths.data,'camera%d.cal'];                 end;
65try config.files.CalPmat;  catch,       config.files.CalPmat  = [config.paths.data,'camera%d.Pmat.cal'];                        end;
66try config.files.StCalPar; catch,       config.files.StCalPar = [config.paths.data,'atlantic%d.ethz.ch.cal'];   end;
67
68
69
70
71
72
73
Note: See TracBrowser for help on using the repository browser.