I am trying to run COLMAP using data from an array of cameras that point outward. When I put my dataset into COLMAP, the bundle adjuster finds a plausible solution for the positions of the cameras, but their orientations are all backward (pointing in toward the center of the camera array, as opposed to pointing out). I am wondering if it is possible to give COLMAP a hint, since I have some prior knowledge about the position and orientation of each camera.
(1) run on the dataset, get bad inward-pointing results.
Here is the contents of my images.txt:
# Image list with two lines of data per image:
# IMAGE_ID, QW, QX, QY, QZ, TX, TY, TZ, CAMERA_ID, NAME
# POINTS2D[] as (X, Y, POINT3D_ID)
# Number of images: 17, mean observations per image: 1522.65
1 -6.12323e-17 -0.234538 0.972107 0 0 0 17.2542 1 cam0.png
0 0 0
2 0.39493 0.772972 -0.472317 -0.153171 10.5181 8.0391 11.0642 1 cam1.png
0 0 0
3 -0.201137 0.894798 -0.141933 -0.372471 10.5181 -8.0391 11.0642 1 cam2.png
0 0 0
4 0.353153 -0.0613965 0.90375 0.233984 -10.5181 -8.0391 11.0642 1 cam3.png
0 0 0
5 0.419366 0.444622 0.789282 -0.0589615 -10.5181 8.0391 11.0642 1 cam4.png
0 0 0
6 -0.320501 -0.440849 0.678292 -0.492799 0 16.4084 5.33146 1 cam5.png
0 0 0
7 0.568196 -0.782144 -0.206849 -0.15039 0 -16.4084 5.33146 1 cam6.png
0 0 0
8 0.0971143 -0.700406 -0.0971143 0.700406 17.2542 0 0 1 cam7.png
0 0 0
9 0.283254 0.647894 0.283254 0.647895 -17.2542 0 0 1 cam8.png
0 0 0
10 0.720707 0.279193 0.547298 -0.321087 -10.5181 13.0073 -4.22656 1 cam9.png
0 0 0
11 0.622873 0.140076 -0.598197 0.484323 10.5181 13.0073 -4.22656 1 cam10.png
0 0 0
12 0.547534 -0.0533124 -0.612095 -0.56807 10.5181 -13.0073 -4.22656 1 cam11.png
0 0 0
13 0.761071 -0.562678 0.246871 -0.207891 -10.5181 -13.0073 -4.22656 1 cam12.png
0 0 0
14 -0.126168 -0.0410969 -0.306426 0.942601 0 10.1422 -13.9573 1 cam13.png
0 0 0
15 -0.499188 -0.273358 0.16973 0.804536 10.5181 0 -13.6779 1 cam14.png
0 0 0
16 0.172985 -0.0563809 0.304006 0.935135 0 -10.1422 -13.9573 1 cam15.png
0 0 0
17 0.833966 0.152311 0.283468 0.448271 -10.5156 0 -13.6779 1 cam16.png
0 0 0
A second question: the format of images.txt is such that it has 2 lines per camera where the first line specifies the quaternion and translation, and the second line stores a list of 2d points. Here I hacked it by just specifying a single point (0, 0) with index 0 for each camera. Is there a better way to import a prior camera configuration without mixing that with the points (feature matches I assume)?
Thanks