| 1 |
.. _gui: |
| 2 |
|
| 3 |
Graphical User Interface |
| 4 |
======================== |
| 5 |
|
| 6 |
The graphical user interface of COLMAP provides access to most of the available |
| 7 |
functionality and visualizes the reconstruction process in "real-time". To start |
| 8 |
the GUI, you can run the pre-built packages (Windows: ``COLMAP.bat``, Mac: |
| 9 |
``COLMAP.app``), execute ``colmap gui`` if you installed COLMAP or execute |
| 10 |
``./src/colmap/exe/colmap gui`` from the CMake build folder. The GUI application |
| 11 |
requires an attached display with at least OpenGL 3.2 support. Registered images |
| 12 |
are visualized in red and reconstructed points in their average point color |
| 13 |
extracted from the images. The viewer can also visualize dense point clouds |
| 14 |
produced from Multi-View Stereo. |
| 15 |
|
| 16 |
For lightweight, read-only inspection of binary sparse models in a web browser, |
| 17 |
see the :doc:`3D Viewer <viewer>`. It provides the same core model-view controls |
| 18 |
and visual conventions as the native viewer, but not the GUI's reconstruction, |
| 19 |
editing, dense visualization, or advanced rendering functionality. |
| 20 |
|
| 21 |
|
| 22 |
Model Viewer Controls |
| 23 |
--------------------- |
| 24 |
|
| 25 |
- **Rotate model**: Left-click and drag. |
| 26 |
- **Shift model**: Right-click or <CTRL>-click (<CMD>-click) and drag. |
| 27 |
- **Zoom model**: Scroll. |
| 28 |
- **Change point size**: <CTRL>-scroll (<CMD>-scroll). |
| 29 |
- **Change camera size**: <ALT>-scroll. |
| 30 |
- **Adjust clipping plane**: <SHIFT>-scroll. |
| 31 |
- **Select point**: Double-left-click point (change point size if too small). |
| 32 |
The green lines visualize the projections into the images that see the point. |
| 33 |
The opening window shows the projected locations of the point in all images. |
| 34 |
- **Select camera**: Double-left-click camera (change camera size if too small). |
| 35 |
The purple lines visualize images that see at least one common point with the |
| 36 |
selected image. The opening window shows a few statistics of the image. |
| 37 |
- **Reset view**: To reset all viewing settings, choose ``Render > Reset view``. |
| 38 |
|
| 39 |
|
| 40 |
Render Options |
| 41 |
-------------- |
| 42 |
|
| 43 |
The model viewer allows you to render the model with different settings, |
| 44 |
projections, colormaps, etc. Please, choose ``Render > Render options``. |
| 45 |
|
| 46 |
|
| 47 |
Create Screenshots |
| 48 |
------------------ |
| 49 |
|
| 50 |
To create screenshots of the current viewpoint (without coordinate axes), choose |
| 51 |
``Extras > Grab image`` and save the image in the format of your choice. |
| 52 |
|
| 53 |
|
| 54 |
Create Screencast |
| 55 |
----------------- |
| 56 |
|
| 57 |
To create a video screen capture of the reconstructed model, choose ``Extras > |
| 58 |
Grab movie``. This dialog allows you to set individual control viewpoints by |
| 59 |
choosing ``Add``. COLMAP generates a fixed number of frames per second between |
| 60 |
each control viewpoint by smoothly interpolating the linear trajectory, and to |
| 61 |
interpolate the configured point and the camera sizes at the time of clicking |
| 62 |
``Add``. To change the number of frames between two viewpoints or to reorder |
| 63 |
individual viewpoints, modify the time of the viewpoint by double-clicking the |
| 64 |
respective cell in the table. Note that the video capture requires to set the |
| 65 |
perspective projection model in the render options. You can review the |
| 66 |
trajectory in the viewer, which is rendered in light blue. Choose ``Assemble |
| 67 |
movie``, if you are done creating the trajectory. The output directory then |
| 68 |
contains the individual frames of the video capture, which can be assembled to a |
| 69 |
movie using `FFMPEG <https://www.ffmpeg.org/>`_ with the following command:: |
| 70 |
|
| 71 |
ffmpeg -i frame%06d.png -r 30 -vf scale=1680:1050 movie.mp4 |