ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
render_options.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <iostream>
11 
12 namespace colmap {
13 
14 struct RenderOptions {
18  };
19 
20  // Minimum track length for a point to be rendered.
21  int min_track_len = 3;
22 
23  // Maximum error for a point to be rendered.
24  double max_error = 2;
25 
26  // The rate of registered images at which to refresh.
27  int refresh_rate = 1;
28 
29  // Whether to automatically adjust the refresh rate. The bigger the
30  // reconstruction gets, the less frequently the scene is rendered.
31  bool adapt_refresh_rate = true;
32 
33  // Whether to visualize image connections.
34  bool image_connections = false;
35 
36  // The projection type of the renderer.
37  int projection_type = ProjectionType::ORTHOGRAPHIC;
38 
39  bool Check() const;
40 };
41 
42 } // namespace colmap
colmap::RenderOptions::ProjectionType
ProjectionType
Definition: render_options.h:15
colmap::RenderOptions::projection_type
int projection_type
Definition: render_options.h:37
colmap::RenderOptions::Check
bool Check() const
Definition: render_options.cc:38
render_options.h
CHECK_OPTION_GE
#define CHECK_OPTION_GE(val1, val2)
Definition: logging.h:33
colmap::RenderOptions::max_error
double max_error
Definition: render_options.h:24
CHECK_OPTION
#define CHECK_OPTION(expr)
Definition: logging.h:20
colmap::RenderOptions::adapt_refresh_rate
bool adapt_refresh_rate
Definition: render_options.h:31
colmap::RenderOptions::image_connections
bool image_connections
Definition: render_options.h:34
colmap::RenderOptions::ORTHOGRAPHIC
@ ORTHOGRAPHIC
Definition: render_options.h:17
logging.h
colmap::RenderOptions::min_track_len
int min_track_len
Definition: render_options.h:21
colmap
Definition: AutomaticReconstructionController.h:17
colmap::RenderOptions::PERSPECTIVE
@ PERSPECTIVE
Definition: render_options.h:16
CHECK_OPTION_GT
#define CHECK_OPTION_GT(val1, val2)
Definition: logging.h:34
colmap::RenderOptions::refresh_rate
int refresh_rate
Definition: render_options.h:27
colmap::RenderOptions
Definition: render_options.h:14