@@ -10,7 +10,7 @@ Binary File Format
1010Note that all binary data is stored using little endian byte ordering. All x86
1111processors are little endian and thus no special care has to be taken when
1212reading COLMAP binary data on most platforms. The data can be most conveniently
13- parsed using the C++ reconstruction API under `src/colmap/scene/reconstruction_io.h `
13+ parsed using the C++ reconstruction API under `` src/colmap/scene/reconstruction_io.h ` `
1414or using the Python API provided by pycolmap.
1515
1616
@@ -22,10 +22,10 @@ Any variable name ending with ``*_idx`` should be considered as an ordered,
2222contiguous zero-based index. In general, any variable name ending with ``*_id ``
2323should be considered as an unordered, non-contiguous identifier.
2424
25- For example, the unique identifiers of cameras (`CAMERA_ID `), images
26- (`IMAGE_ID `), and 3D points (`POINT3D_ID `) are unordered and are most likely not
27- contiguous. This also means that the maximum `POINT3D_ID ` does not necessarily
28- correspond to the number 3D points, since some `POINT3D_ID `'s are missing due to
25+ For example, the unique identifiers of cameras (`` CAMERA_ID ` `), images
26+ (`` IMAGE_ID `` ), and 3D points (`` POINT3D_ID ` `) are unordered and are most likely not
27+ contiguous. This also means that the maximum `` POINT3D_ID ` ` does not necessarily
28+ correspond to the number 3D points, since some `` POINT3D_ID ` `'s are missing due to
2929filtering during the reconstruction, etc.
3030
3131
@@ -36,18 +36,18 @@ Sparse Reconstruction
3636By default, COLMAP uses a binary file format (machine-readable, fast) for
3737storing sparse models. In addition, COLMAP provides the option to store the
3838sparse models as text files (human-readable, slow). In both cases, the
39- information is split into multiples files for the information about `rigs `,
40- `cameras `, `frames `, `images `, and `points `. Any directory containing these
39+ information is split into multiples files for the information about `` rigs ` `,
40+ `` cameras `` , `` frames `` , `` images `` , and `` points ` `. Any directory containing these
4141files constitutes a sparse model. The binary files have the file extension
42- `.bin ` and the text files the file extension `.txt `. Note that when loading a
42+ `` .bin `` and the text files the file extension `` .txt ` `. Note that when loading a
4343model from a directory which contains both binary and text files, COLMAP prefers
4444the binary format.
4545
46- Note that older versions of COLMAP had no rig support and thus the `rigs ` and
47- `frames ` files may be missing. The reconstruction I/O routines in COLMAP are
46+ Note that older versions of COLMAP had no rig support and thus the `` rigs ` ` and
47+ `` frames ` ` files may be missing. The reconstruction I/O routines in COLMAP are
4848fully backwards compatible in that models without these files can be read and
4949trivial rigs and frames will be automatically initialized. Furthermore, newer
50- output reconstructions' `cameras ` and `images ` files are fully compatible with
50+ output reconstructions' `` cameras `` and `` images ` ` files are fully compatible with
5151old outputs.
5252
5353To export the currently selected model in the GUI, choose ``File > Export
@@ -56,7 +56,7 @@ model``. To export all reconstructed models in the current dataset, choose
5656for convenience, the current project configuration for importing the model to
5757COLMAP. To import the exported models, e.g., for visualization or to resume the
5858reconstruction, choose ``File > Import model `` and select the folder containing
59- the `cameras `, `images `, and `points3D ` files.
59+ the `` cameras `` , `` images `` , and `` points3D ` ` files.
6060
6161To convert between the binary and text format in the GUI, you can load the model
6262using ``File > Import model `` and then export the model in the desired output
@@ -76,7 +76,7 @@ Text Format
7676-----------
7777
7878COLMAP exports the following three text files for every reconstructed model:
79- `rigs.txt `, `cameras.txt `, `frames.txt `, `images.txt `, and `points3D.txt `.
79+ `` rigs.txt `` , `` cameras.txt `` , `` frames.txt `` , `` images.txt `` , and `` points3D.txt ` `.
8080Comments start with a leading "#" character and are ignored. The first comment
8181lines briefly describe the format of the text files, as described in more
8282detailed on this page.
@@ -114,9 +114,9 @@ Here, the dataset contains 3 cameras based using different distortion models
114114with the same sensor dimensions (width: 3072, height: 2304). The length of
115115parameters is variable and depends on the camera model. For the first camera,
116116there are 3 parameters with a single focal length of 2559.81 pixels and a
117- principal point at pixel location `(1536, 1152) `. The intrinsic parameters of a
117+ principal point at pixel location `` (1536, 1152) ` `. The intrinsic parameters of a
118118camera can be shared by multiple images, which refer to cameras using the unique
119- identifier `CAMERA_ID `.
119+ identifier `` CAMERA_ID ` `.
120120
121121
122122frames.txt
@@ -152,8 +152,8 @@ dataset using two lines per image, e.g.::
152152
153153Here, the first two lines define the information of the first image, and so on.
154154The reconstructed pose of an image is specified as the projection from world to
155- the camera coordinate system of an image using a quaternion `(QW, QX, QY, QZ) `
156- and a translation vector `(TX, TY, TZ) `. The quaternion is defined using the
155+ the camera coordinate system of an image using a quaternion `` (QW, QX, QY, QZ) ` `
156+ and a translation vector `` (TX, TY, TZ) ` `. The quaternion is defined using the
157157Hamilton convention, which is, for example, also used by the Eigen library. The
158158coordinates of the projection/camera center are given by ``-R^t * T ``, where
159159``R^t `` is the inverse/transpose of the 3x3 rotation matrix composed from the
@@ -162,7 +162,7 @@ system of an image is defined in a way that the X axis points to the right, the
162162Y axis to the bottom, and the Z axis to the front as seen from the image.
163163
164164Both images in the example above use the same camera model and share intrinsics
165- (`CAMERA_ID = 1 `). The image name is relative to the selected base image folder
165+ (`` CAMERA_ID = 1 ` `). The image name is relative to the selected base image folder
166166of the project. The first image has 3 keypoints and the second image has 2
167167keypoints, while the location of the keypoints is specified in pixel
168168coordinates. Both images observe 2 3D points and note that the last keypoint of
@@ -183,8 +183,8 @@ dataset using one line per point, e.g.::
183183 63376 2.01848 0.108877 -0.0260841 102 209 250 1.73449 16 6519 15 7322 14 7212 8 3991
184184 63371 1.71102 0.28566 0.53475 245 251 249 0.612829 118 4140 117 4473
185185
186- Here, there are three reconstructed 3D points, where `POINT2D_IDX ` defines the
187- zero-based index of the keypoint in the `images.txt ` file. The error is given in
186+ Here, there are three reconstructed 3D points, where `` POINT2D_IDX ` ` defines the
187+ zero-based index of the keypoint in the `` images.txt ` ` file. The error is given in
188188pixels of reprojection error and is only updated after global bundle adjustment.
189189
190190
@@ -223,11 +223,11 @@ COLMAP uses the following workspace folder structure::
223223 +── run-colmap-geometric.sh
224224 +── run-colmap-photometric.sh
225225
226- Here, the `images ` folder contains the undistorted images, the `sparse ` folder
227- contains the sparse reconstruction with undistorted cameras, the `stereo ` folder
228- contains the stereo reconstruction results, `point-cloud.ply ` and `mesh.ply ` are
229- the results of the fusion and meshing procedure, and `run-colmap-geometric.sh `
230- and `run-colmap-photometric.sh ` contain example command-line usage to perform
226+ Here, the `` images `` folder contains the undistorted images, the `` sparse ` ` folder
227+ contains the sparse reconstruction with undistorted cameras, the `` stereo ` ` folder
228+ contains the stereo reconstruction results, `` point-cloud.ply `` and `` mesh.ply ` ` are
229+ the results of the fusion and meshing procedure, and `` run-colmap-geometric.sh ` `
230+ and `` run-colmap-photometric.sh ` ` contain example command-line usage to perform
231231the dense reconstruction.
232232
233233
@@ -237,7 +237,7 @@ Depth and Normal Maps
237237
238238The depth maps are stored as mixed text and binary files. The text header
239239defines the dimensions of the image in the format ``with&height&channels& ``
240- followed by row-major `float32 ` binary data. For depth maps ``channels=1 `` and
240+ followed by row-major `` float32 ` ` binary data. For depth maps ``channels=1 `` and
241241for normal maps ``channels=3 ``. The depth and normal maps can be conveniently
242242read with Python using the functions in ``scripts/python/read_dense.py `` and
243243with Matlab using the functions in ``scripts/matlab/read_depth_map.m `` and
@@ -251,7 +251,7 @@ Consistency Graphs
251251The consistency graph defines, for all pixels in an image, the source images a
252252pixel is consistent with. The graph is stored as a mixed text and binary file,
253253while the text part is equivalent to the depth and normal maps and the binary
254- part is a continuous list of `int32 ` values in the format
254+ part is a continuous list of `` int32 ` ` values in the format
255255``<row><col><N><image_idx1>...<image_idxN> ``. Here, ``(row, col) `` defines the
256256location of the pixel in the image followed by a list of ``N `` image indices.
257257The indices are specified w.r.t. the ordering in the ``images.txt `` file.
0 commit comments