ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
densify.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
7#include <string>
8
9namespace reusex {
10class ProjectDB;
11}
12
13namespace reusex::geometry {
14
18 std::string output_name = "dense";
19
22 std::string seed_cloud_name = "cloud";
23
25 int seed_max_points = 100'000;
26
29
32 int max_resolution = 2000;
33
35 int min_resolution = 640;
36
39 int num_views = 4;
40
44 int frame_stride = 1;
45
49
58 int gpu_index = -2;
59
65 int max_threads = 0;
66
71 bool outlier_filter = true;
74
82 bool bbox_clip = true;
83 double bbox_margin = 0.25;
84
93 int chunk_size = 0;
94
98};
99
119
120} // namespace reusex::geometry
void densify_from_images(ProjectDB &db, const DensifyParams &params)
Run OpenMVS Multi-View Stereo in-process to produce a dense point cloud from the project's sensor fra...
Parameters for Multi-View Stereo dense reconstruction (OpenMVS).
Definition densify.hpp:16
int max_resolution
Upper bound on max(width, height) for any image.
Definition densify.hpp:32
bool geometric_consistency
Geometric consistency between neighboring depth maps.
Definition densify.hpp:48
int num_views
Number of neighbor views considered per image during depth-map estimation.
Definition densify.hpp:39
std::string output_name
Name to save the dense point cloud under in ProjectDB.
Definition densify.hpp:18
int chunk_size
Process at most this many frames per dense-reconstruction call, then merge the resulting point clouds...
Definition densify.hpp:93
int min_resolution
Lower bound on max(width, height). Images below this are not used.
Definition densify.hpp:35
int gpu_index
CUDA device selection for PatchMatch depth-map estimation.
Definition densify.hpp:58
int seed_max_points
Sub-sample stride when copying the seed cloud (uniform).
Definition densify.hpp:25
int max_fuse_points
Cap on the number of points kept after fusion (OPTDENSE.nMaxPointsFuse).
Definition densify.hpp:97
int resolution_level
0 = full image resolution, 1 = half, 2 = quarter, ...
Definition densify.hpp:28
int frame_stride
Per-frame stride when subsampling RTABMap frames.
Definition densify.hpp:44
bool bbox_clip
If the seed cloud (LiDAR) is present, clip the dense output to its percentile-based bounding box expa...
Definition densify.hpp:82
std::string seed_cloud_name
Source LiDAR cloud (name in ProjectDB) used to seed PatchMatch and the downstream 3D-point views.
Definition densify.hpp:22
bool outlier_filter
Apply PCL's statistical outlier removal to the merged output after fusion.
Definition densify.hpp:71
int max_threads
Maximum concurrent OpenMP threads used during depth-map estimation.
Definition densify.hpp:65