source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/sba-1.3/demo/README.txt @ 37

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

Added original make3d

File size: 3.4 KB
Line 
1==================== GENERAL ====================
2This directory contains eucsbademo, an example of using sba for Euclidean bundle adjustment.
3Refer to ICS/FORTH TR-340 for documentation on sba. eucsbademo accepts 3 file names as arguments:
4They are the initial estimates for the camera motion parameters, the initial estimates for
5the 3D point parameters along with the 3D points image projections and the camera intrinsic
6calibration parameters. The file for the camera motion parameters has a separate line for
7every camera, each line containing 7 parameters (a 4 element quaternion for rotation and a
83 element vector for translation). The file for 3D points and image projections is made up
9of lines of the form
10
11X Y Z  NFRAMES  FRAME0 x0 y0  FRAME1 x1 y1 ...
12
13each corresponding to a single 3D point. X Y Z are the points' Euclidean 3D coordinates,
14NFRAMES the total number of images in which the points' projections are available and each
15of the NFRAMES subsequent triplets FRAME x y pecifies that the 3D point in question projects
16to pixel x y in image FRAME. For example, the line
17
18100.0 200.0 300.0 3  2 270.0 114.1 4 234.2 321.7 5 173.6 425.8
19
20specifies the 3D point (100.0, 200.0, 300.0) projecting to the 3 points (270.0, 114.1),
21(234.2, 321.7) and (173.6, 425.8) in images 2, 4 and 5 respectively. Camera and 3D point
22indices count from 0.
23
24==================== FILES ====================
25eucsbademo.c: main demo program
26readparams.c: functions to read the initial motion and structure estimates from text files
27imgproj.c:    functions to estimate the projection on a given camera of a certain 3D point. Also
28              includes code for evaluating the corresponding jacobian
29eucsbademo.h: function prototypes
30
31calib.txt:    intrinsic calibration matrix for the employed camera
32
337cams.txt:    initial motion parameters for a test case involving 7 cameras
347pts.txt:     initial structure parameters for a test case involving 7 cameras
35
369cams.txt:    initial motion parameters for a test case involving 9 cameras
379pts.txt:     initial structure parameters for a test case involving 9 cameras
38
3954cams.txt:    initial motion parameters for a test case involving 54 cameras
4054pts.txt:     initial structure parameters for a test case involving 54 cameras
41
42==================== COMPILING ====================
43The demo program should be compiled during sba's compilation
44
45==================== SAMPLE RUNS ====================
46The command
47  eucsbademo 7cams.txt 7pts.txt calib.txt
48produces the following output:
49  SBA using 465 3D pts, 7 frames and 1916 image projections
50
51  Method BA_MOTSTRUCT, expert driver, analytic jacobian
52
53  SBA returned 20 in 20 iter, reason 2, error 0.675396 [initial 19.0947]
54  Elapsed time: 0.50 seconds, 500.00 msecs
55
56
57For the 9 cameras case,
58  eucsbademo 9cams.txt 9pts.txt calib.txt
59produces
60  SBA using 559 3D pts, 9 frames and 2422 image projections
61
62  Method BA_MOTSTRUCT, expert driver, analytic jacobian
63
64  SBA returned 22 in 22 iter, reason 2, error 0.619559 [initial 8.17604]
65  Elapsed time: 0.69 seconds, 690.00 msecs
66
67
68For the 54 cameras case,
69  eucsbademo 54cams.txt 54pts.txt calib.txt
70produces
71  SBA using 5207 3D pts, 54 frames and 24609 image projections, 15999 variables
72
73  Method BA_MOTSTRUCT, expert driver, analytic jacobian
74
75  SBA returned 23 in 23 iter, reason 2, error 0.176473 [initial 2.14707]
76  Elapsed time: 13.56 seconds, 13560.00 msecs
77
78
79Send your comments/questions to lourakis@ics.forth.gr
Note: See TracBrowser for help on using the repository browser.