ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
colmap.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 <filesystem>
8
9namespace reusex {
10class ProjectDB;
11}
12
13namespace reusex::io {
14
20
22 std::size_t max_lidar_points = 100'000;
23
25 std::string lidar_cloud_name = "cloud";
26
30 int jpeg_quality = 95;
31
37 int pano_n_yaw = 8;
38 double pano_fov_deg = 90.0;
39 int pano_tile = 1024;
40};
41
74 const std::filesystem::path &out_dir,
75 const ColmapExportOptions &opt = {});
76
77} // namespace reusex::io
void export_colmap_scene(const ProjectDB &db, const std::filesystem::path &out_dir, const ColmapExportOptions &opt={})
Export a COLMAP sparse model directory from a ProjectDB.
Options for COLMAP sparse model export.
Definition colmap.hpp:16
double pano_fov_deg
per-slice horizontal FOV (deg)
Definition colmap.hpp:38
bool include_lidar_points
Sub-sample the LiDAR cloud into points3D to seed PatchMatch + 3DGS init.
Definition colmap.hpp:19
int jpeg_quality
JPEG quality for the on-disk image dump (1..100).
Definition colmap.hpp:30
bool include_panorama_slices
Also emit perspective slices of content-aligned 360 panoramas as extra pinhole cameras (each aligned ...
Definition colmap.hpp:36
std::size_t max_lidar_points
Approximate cap on the number of seed points (uniform stride).
Definition colmap.hpp:22
int pano_n_yaw
equator slices per panorama
Definition colmap.hpp:37
int pano_tile
slice size (px, square)
Definition colmap.hpp:39
std::string lidar_cloud_name
Name of the point cloud in ProjectDB to use as seed (typically "cloud").
Definition colmap.hpp:25