Skip to content

Commit d550205

Browse files
authored
PyCOLMAP API documentation (#8)
Result of colmap/colmap#2749
1 parent 889f6e5 commit d550205

28 files changed

Lines changed: 8532 additions & 6 deletions

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 931eef9d69ef24c6e22dbc546f30bf31
3+
config: 7ecbe026126241ce4cdf145a49680b0e
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/index.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ third-party tooling, and community support.
101101
datasets
102102
gui
103103
cli
104+
pycolmap/index
104105
faq
105106
changelog
106107
contribution

_sources/pycolmap/api.rst.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _pycolmap/api:
2+
3+
API
4+
============
5+
6+
.. automodule:: pycolmap
7+
:members:
8+
:undoc-members:
9+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. _pycolmap/cost_functions:
2+
3+
Cost Functions
4+
==============
5+
6+
.. automodule:: pycolmap.cost_functions
7+
:members:
8+
:undoc-members:

_sources/pycolmap/index.rst.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.. _pycolmap/index:
2+
3+
PyCOLMAP
4+
========
5+
6+
PyCOLMAP exposes to Python most capabilities of COLMAP.
7+
8+
Installation
9+
------------
10+
11+
Pre-built wheels for Linux, macOS, and Windows can be installed using pip::
12+
13+
pip install pycolmap
14+
15+
The wheels are automatically built and pushed to `PyPI <https://pypi.org/project/pycolmap/>`_ at each release. They are currently not built with CUDA support, which requires building from source. To build PyCOLMAP from source, follow these steps:
16+
17+
1. Install COLMAP from source following :ref:`installation`.
18+
2. Build PyCOLMAP:
19+
20+
* On Linux and macOS::
21+
22+
python -m pip install ./pycolmap/
23+
24+
* On Windows, after installing COLMAP via VCPKG, run in powershell::
25+
26+
python -m pip install ./pycolmap/ `
27+
--cmake.define.CMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" `
28+
--cmake.define.VCPKG_TARGET_TRIPLET="x64-windows"
29+
30+
Some features, such as cost functions, require that `PyCeres <https://github.com/cvg/pyceres>`_ is installed in the same as PyCOLMAP, so either from PyPI or from source.
31+
32+
Usage
33+
-----
34+
35+
.. toctree::
36+
:maxdepth: 2
37+
38+
api
39+
cost_functions

_static/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*Fixes https://github.com/readthedocs/sphinx_rtd_theme/issues/1301#issuecomment-1876120817 */
2+
.py.property {
3+
display: block !important;
4+
}

bibliography.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>Bibliography &mdash; COLMAP 3.11.0.dev0 documentation</title>
88
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
99
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
10+
<link rel="stylesheet" type="text/css" href="_static/custom.css?v=22544140" />
1011

1112

1213
<!--[if lt IE 9]>
@@ -55,6 +56,7 @@
5556
<li class="toctree-l1"><a class="reference internal" href="datasets.html">Datasets</a></li>
5657
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical User Interface</a></li>
5758
<li class="toctree-l1"><a class="reference internal" href="cli.html">Command-line Interface</a></li>
59+
<li class="toctree-l1"><a class="reference internal" href="pycolmap/index.html">PyCOLMAP</a></li>
5860
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li>
5961
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
6062
<li class="toctree-l1"><a class="reference internal" href="contribution.html">Contribution</a></li>

cameras.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>Camera Models &mdash; COLMAP 3.11.0.dev0 documentation</title>
88
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
99
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
10+
<link rel="stylesheet" type="text/css" href="_static/custom.css?v=22544140" />
1011

1112

1213
<!--[if lt IE 9]>
@@ -56,6 +57,7 @@
5657
<li class="toctree-l1"><a class="reference internal" href="datasets.html">Datasets</a></li>
5758
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical User Interface</a></li>
5859
<li class="toctree-l1"><a class="reference internal" href="cli.html">Command-line Interface</a></li>
60+
<li class="toctree-l1"><a class="reference internal" href="pycolmap/index.html">PyCOLMAP</a></li>
5961
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li>
6062
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
6163
<li class="toctree-l1"><a class="reference internal" href="contribution.html">Contribution</a></li>

changelog.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>Changelog &mdash; COLMAP 3.11.0.dev0 documentation</title>
88
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
99
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
10+
<link rel="stylesheet" type="text/css" href="_static/custom.css?v=22544140" />
1011

1112

1213
<!--[if lt IE 9]>
@@ -56,6 +57,7 @@
5657
<li class="toctree-l1"><a class="reference internal" href="datasets.html">Datasets</a></li>
5758
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical User Interface</a></li>
5859
<li class="toctree-l1"><a class="reference internal" href="cli.html">Command-line Interface</a></li>
60+
<li class="toctree-l1"><a class="reference internal" href="pycolmap/index.html">PyCOLMAP</a></li>
5961
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li>
6062
<li class="toctree-l1 current"><a class="current reference internal" href="#">Changelog</a><ul>
6163
<li class="toctree-l2"><a class="reference internal" href="#colmap-3-10-07-23-2024">COLMAP 3.10 (07/23/2024)</a></li>

cli.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>Command-line Interface &mdash; COLMAP 3.11.0.dev0 documentation</title>
88
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
99
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
10+
<link rel="stylesheet" type="text/css" href="_static/custom.css?v=22544140" />
1011

1112

1213
<!--[if lt IE 9]>
@@ -21,7 +22,7 @@
2122
<script src="_static/js/theme.js"></script>
2223
<link rel="index" title="Index" href="genindex.html" />
2324
<link rel="search" title="Search" href="search.html" />
24-
<link rel="next" title="Frequently Asked Questions" href="faq.html" />
25+
<link rel="next" title="PyCOLMAP" href="pycolmap/index.html" />
2526
<link rel="prev" title="Graphical User Interface" href="gui.html" />
2627
</head>
2728

@@ -62,6 +63,7 @@
6263
<li class="toctree-l2"><a class="reference internal" href="#visualization">Visualization</a></li>
6364
</ul>
6465
</li>
66+
<li class="toctree-l1"><a class="reference internal" href="pycolmap/index.html">PyCOLMAP</a></li>
6567
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li>
6668
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
6769
<li class="toctree-l1"><a class="reference internal" href="contribution.html">Contribution</a></li>
@@ -375,7 +377,7 @@ <h2>Visualization<a class="headerlink" href="#visualization" title="Link to this
375377
</div>
376378
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
377379
<a href="gui.html" class="btn btn-neutral float-left" title="Graphical User Interface" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
378-
<a href="faq.html" class="btn btn-neutral float-right" title="Frequently Asked Questions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
380+
<a href="pycolmap/index.html" class="btn btn-neutral float-right" title="PyCOLMAP" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
379381
</div>
380382

381383
<hr/>

0 commit comments

Comments
 (0)