ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
dense.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
7
8#include <CLI/CLI.hpp>
9#include <memory>
10#include <string>
11
13 std::string output_name = "dense";
14 std::string seed_cloud_name = "cloud";
15 int seed_max_points = 100'000;
16 // 0 = full resolution (no downsample). With the spdmon RAM leak fixed
17 // the depth-map and fusion stages are bounded by upstream OPTDENSE
18 // defaults, so full-res is the right default — bump --resolution-level
19 // only if you actually want faster/coarser output.
21 // 0 = no upper bound on max(width,height). Override if input frames
22 // are unusually large and a single depth-map worker would OOM.
24 int min_resolution = 320;
25 int num_views = 4;
26 int frame_stride = 1;
27 int gpu_index = -2; // -2 = CPU, -1 = best GPU, >=0 = specific device
28 int max_threads = 0; // 0 = all CPU threads; lower to bound RAM use
29 int chunk_size = 0; // 0 = whole-scene fusion; >0 = N frames per chunk
30 int max_fuse_points = 0; // 0 = unlimited
31 bool no_geom_consistency = false;
32 bool no_lidar_seed = false;
33 bool no_outlier_filter = false;
34 bool no_bbox_clip = false;
35};
36
38 std::shared_ptr<RuxOptions> global_opt);
40 const RuxOptions &global_opt);
int run_subcommand_create_dense(SubcommandCreateDenseOptions const &opt, const RuxOptions &global_opt)
void setup_subcommand_create_dense(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
std::string seed_cloud_name
Definition dense.hpp:14