You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix conversion of colmap pose prior
* d
* restore the pose prior after rotation averaging
* f
* f
* f
* gravity refinement tested
* add the stratified rotation averager and CLI
* f
* d
* d
* add timer
* add options for gravity refinement
* merge gravity_io to pose_io
* add readme for the rotation averager
* f
* Update glomap/math/gravity.cc
Co-authored-by: Johannes Schönberger <joschonb@microsoft.com>
* f
* Update glomap/controllers/rotation_averager.cc
Co-authored-by: Johannes Schönberger <joschonb@microsoft.com>
* Update glomap/controllers/rotation_averager.cc
Co-authored-by: Johannes Schönberger <joschonb@microsoft.com>
* change rotation averager from class to struct
* d
* d
* add weighting and corresponding IO. Tested
* change the writing of relative pose to be sorted
* unit test for rotation averager
* inject noise to avoid local minima for error-free case
* f
* add more points in the unit test
---------
Co-authored-by: Johannes Schönberger <joschonb@microsoft.com>
If gravity directions are available, call the rotation averager (1 degree-of-freedom) via
29
+
```
30
+
glomap rotation_averager \
31
+
--relpose_path RELPOSE_PATH \
32
+
--output_path OUTPUT_PATH \
33
+
--gravity_path GRAVTIY PATH
34
+
```
35
+
It is recommended to set `--use_stratified=1` if only a subset of images have gravity direction.
36
+
If gravity measurements are subject to i.i.d. noise, they can be refined by setting `--refine_gravity=1`.
37
+
38
+
39
+
## File Formats
40
+
### Relative Pose
41
+
The relative pose file is expected to be of the following format
42
+
```
43
+
IMAGE_NAME_1 IMAGE_NAME_2 QW QX QY QZ TX TY TZ
44
+
```
45
+
Only images contained in at least one relative pose will be included in the following procedure.
46
+
The relative pose should be <sub>2</sub>R<sub>1</sub> x<sub>1</sub> + <sub>2</sub>t<sub>1</sub> = x<sub>2</sub>.
47
+
48
+
### Gravity Direction
49
+
The gravity direction file is expected to be of the following format
50
+
```
51
+
IMAGE_NAME GX GY GZ
52
+
```
53
+
The gravity direction $g$ should $[0, 1, 0]$ if the image is parallel to the ground plane, and the estimated rotation would have the property that $R_i \cdot [0, 1, 0]^\top = g$.
54
+
If is acceptable if only a subset of all images have gravity direciton.
55
+
If the specified image name does not match any known image name from relative pose, it is ignored.
56
+
57
+
### Output
58
+
The estimated global rotation will be in the following format
59
+
```
60
+
IMAGE_NAME QW QX QY QZ
61
+
```
62
+
Any images that are not within the largest connected component of the view-graph formed by the relative pose will be ignored.
0 commit comments