ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
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
6
#include "
../global-params.hpp
"
7
8
#include <CLI/CLI.hpp>
9
#include <memory>
10
#include <string>
11
12
struct
SubcommandCreateDenseOptions
{
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.
20
int
resolution_level
= 0;
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.
23
int
max_resolution
= 0;
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
37
void
setup_subcommand_create_dense
(CLI::App &app,
38
std::shared_ptr<RuxOptions> global_opt);
39
int
run_subcommand_create_dense
(
SubcommandCreateDenseOptions
const
&opt,
40
const
RuxOptions
&global_opt);
run_subcommand_create_dense
int run_subcommand_create_dense(SubcommandCreateDenseOptions const &opt, const RuxOptions &global_opt)
setup_subcommand_create_dense
void setup_subcommand_create_dense(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandCreateDenseOptions
Definition
dense.hpp:12
SubcommandCreateDenseOptions::no_outlier_filter
bool no_outlier_filter
Definition
dense.hpp:33
SubcommandCreateDenseOptions::max_resolution
int max_resolution
Definition
dense.hpp:23
SubcommandCreateDenseOptions::seed_max_points
int seed_max_points
Definition
dense.hpp:15
SubcommandCreateDenseOptions::output_name
std::string output_name
Definition
dense.hpp:13
SubcommandCreateDenseOptions::frame_stride
int frame_stride
Definition
dense.hpp:26
SubcommandCreateDenseOptions::no_lidar_seed
bool no_lidar_seed
Definition
dense.hpp:32
SubcommandCreateDenseOptions::max_fuse_points
int max_fuse_points
Definition
dense.hpp:30
SubcommandCreateDenseOptions::min_resolution
int min_resolution
Definition
dense.hpp:24
SubcommandCreateDenseOptions::no_geom_consistency
bool no_geom_consistency
Definition
dense.hpp:31
SubcommandCreateDenseOptions::no_bbox_clip
bool no_bbox_clip
Definition
dense.hpp:34
SubcommandCreateDenseOptions::chunk_size
int chunk_size
Definition
dense.hpp:29
SubcommandCreateDenseOptions::resolution_level
int resolution_level
Definition
dense.hpp:20
SubcommandCreateDenseOptions::seed_cloud_name
std::string seed_cloud_name
Definition
dense.hpp:14
SubcommandCreateDenseOptions::gpu_index
int gpu_index
Definition
dense.hpp:27
SubcommandCreateDenseOptions::num_views
int num_views
Definition
dense.hpp:25
SubcommandCreateDenseOptions::max_threads
int max_threads
Definition
dense.hpp:28
apps
rux
include
create
dense.hpp
Generated by
1.17.0