Update examples
[phoros.git] / examples / calibration-storage.sh
blob40e3af88c540ce0ce632ecf8907fad9f42452eca
1 #! /bin/bash
3 CAMERA_HARDWARE_ID=`./phoros --store-camera-hardware \
4 --sensor-width-pix=1700 \
5 --sensor-height-pix=1500 \
6 --pix-size=0.007397 \
7 --channels=3 \
8 --pix-depth=255 \
9 --color-raiser=1.2,1,1 \
10 --bayer-pattern=#00ff00,#ff0000 \
11 --serial-number='bogus-pulnix-front-left' \
12 --description='JAI TMC4200 (Position: front left)'`
14 LENS_ID=`./phoros --store-lens \
15 --c=10 \
16 --serial-number='bogus-skr-cinegon-10-front-left' \
17 --description='Schneider Kreuznach SKR KMP CINEGON 10/1,9-M62,0'`
19 GENERIC_DEVICE_ID=`./phoros --store-generic-device \
20 --camera-hardware-id=$CAMERA_HARDWARE_ID \
21 --lens-id=$LENS_ID`
23 DEVICE_STAGE_OF_LIFE_ID=`./phoros --store-device-stage-of-life \
24 --recorded-device-id=21 \
25 --event-number=1 \
26 --generic-device-id=$GENERIC_DEVICE_ID \
27 --vehicle-name='UNO' \
28 --casing-name='front left' \
29 --computer-name='' \
30 --computer-interface-name='' \
31 --mounting-date=2009-04-01`
33 ./phoros --store-device-stage-of-life-end \
34 --device-stage-of-life-id=$DEVICE_STAGE_OF_LIFE_ID \
35 --unmounting-date=2010-01-01
37 ./phoros --store-camera-calibration \
38 --device-stage-of-life-id=$DEVICE_STAGE_OF_LIFE_ID \
39 --date=2009-05-25 \
40 --person=Scheller \
41 --main-description '' \
42 --debug=no \
43 --usable=yes \
44 --photogrammetry-version=0 \
45 --mounting-angle=0 \
46 --inner-orientation-description='calibration field' \
47 --c=-10.18083 \
48 --xh=-0.08149 \
49 --yh=0.19289 \
50 --a1=-9.13833e-004 \
51 --a2=1.04652e-005 \
52 --a3=0 \
53 --b1=-5.35737e-005 \
54 --b2=9.49128e-005 \
55 --c1=-1.33724e-004 \
56 --c2=2.11705e-004 \
57 --r0=4.715882 \
58 --outer-orientation-description='' \
59 --dx=0 \
60 --dy=0 \
61 --dz=0 \
62 --omega=0 \
63 --phi=0 \
64 --kappa=0 \
65 --boresight-description='' \
66 --b-dx=-1.458119959 \
67 --b-dy=1.72479135 \
68 --b-dz=1.912406042 \
69 --b-ddx=0 \
70 --b-ddy=0 \
71 --b-ddz=0 \
72 --b-rotx=-1.390264206 \
73 --b-roty=0.0138192676 \
74 --b-rotz=0.1022317722 \
75 --b-drotx=0 \
76 --b-droty=0 \
77 --b-drotz=0 \
78 --nx=-0.00278 \
79 --ny=0.02638 \
80 --nz=-0.99965 \
81 --d=0.20855
83 ######################################################################
85 CAMERA_HARDWARE_ID=`./phoros --store-camera-hardware \
86 --sensor-width-pix=1700 \
87 --sensor-height-pix=1500 \
88 --pix-size=0.0074 \
89 --channels=3 \
90 --pix-depth=255 \
91 --color-raiser=1.2,1,1 \
92 --bayer-pattern=#00ff00,#ff0000 \
93 --serial-number='bogus-pulnix-front-left' \
94 --description='JAI TMC4200 (Position: front left)'`
96 LENS_ID=`./phoros --store-lens \
97 --c=10 \
98 --serial-number='bogus-skr-cinegon-10-front-left' \
99 --description='Schneider Kreuznach SKR KMP CINEGON 10/1,9-M62,0'`
101 GENERIC_DEVICE_ID=`./phoros --store-generic-device \
102 --camera-hardware-id=$CAMERA_HARDWARE_ID \
103 --lens-id=$LENS_ID`
105 DEVICE_STAGE_OF_LIFE_ID=`./phoros --store-device-stage-of-life \
106 --recorded-device-id=21 \
107 --event-number=1 \
108 --generic-device-id=$GENERIC_DEVICE_ID \
109 --vehicle-name='UNO' \
110 --casing-name='front left' \
111 --computer-name='' \
112 --computer-interface-name='' \
113 --mounting-date=2010-01-01`
115 # ./phoros --store-device-stage-of-life-end \
116 # --device-stage-of-life-id=$DEVICE_STAGE_OF_LIFE_ID \
117 # --unmounting-date=1900-01-01
119 ./phoros --store-camera-calibration \
120 --device-stage-of-life-id=$DEVICE_STAGE_OF_LIFE_ID \
121 --date=2010-05-07 \
122 --person=Scheller \
123 --main-description '' \
124 --debug=no \
125 --usable=yes \
126 --photogrammetry-version=0 \
127 --mounting-angle=0 \
128 --inner-orientation-description='calibration field, software Aicon' \
129 --c=-10.1902 \
130 --xh=-0.0630953 \
131 --yh=0.186176 \
132 --a1=-0.000915845 \
133 --a2=1.07966e-005 \
134 --a3=0 \
135 --b1=2.14923e-005 \
136 --b2=4.47203e-005 \
137 --c1=-0.000554607 \
138 --c2=0.000409916 \
139 --r0=4.715882 \
140 --outer-orientation-description='calibration field, software Aicon' \
141 --dx=0 \
142 --dy=0 \
143 --dz=0 \
144 --omega=0 \
145 --phi=0 \
146 --kappa=0 \
147 --boresight-description='RWS' \
148 --b-dx=-1.344490161 \
149 --b-dy=1.53705857 \
150 --b-dz=1.536669766 \
151 --b-ddx=0 \
152 --b-ddy=0 \
153 --b-ddz=0 \
154 --b-rotx=1.450069961 \
155 --b-roty=-0.1025556399 \
156 --b-rotz=-0.00653031875 \
157 --b-drotx=0 \
158 --b-droty=0 \
159 --b-drotz=0 \
160 --nx=-0.00278 \
161 --ny=0.02638 \
162 --nz=-0.99965 \
163 --d=0.20855