ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
planes.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#include <CLI/CLI.hpp>
8namespace fs = std::filesystem;
9
14
18
19 float angle_threshold = 25.0f;
20 float plane_dist_threshold = 0.07;
21 int minInliers = 1000;
22 // 2 * (1 / 0.02) * (1 / 0.02); // ca 2sqm in 2cm resolution of point cloud
23 float radius = 0.5;
24 float interval_0 = 16;
25 float interval_factor = 1.5;
26
28};
29
35
const fs::path plane_normals
const fs::path plane_centroids
const bool visualize
const fs::path cloud
const fs::path planes
const fs::path normals
int run_subcommand_segment_planes(SubcommandSegPlanesOptions const &opt)
Run the segment planes subcommand with given options.
void setup_subcommand_segment_planes(CLI::App &app)
Setup the segment planes subcommand in the CLI application.
Collection of all options for plane segmentation subcommand.
Definition planes.hpp:11
float plane_dist_threshold
Distance threshold for plane detection.
Definition planes.hpp:20
float interval_factor
Factor for interval scaling.
Definition planes.hpp:25
bool visualize
Enable visualization.
Definition planes.hpp:27
fs::path plane_normals_path_out
Output plane normals path.
Definition planes.hpp:17
fs::path normals_path_in
Input normals path.
Definition planes.hpp:13
fs::path plane_centroids_path_out
Output plane centroids path.
Definition planes.hpp:16
float angle_threshold
Angular threshold for plane detection (degrees).
Definition planes.hpp:19
float interval_0
Initial interval for multi-scale processing.
Definition planes.hpp:24
float radius
Search radius for region growing.
Definition planes.hpp:23
fs::path planes_path_out
Output planes path.
Definition planes.hpp:15
fs::path cloud_path_in
Input point cloud path.
Definition planes.hpp:12
int minInliers
Minimum number of inliers for a valid plane.
Definition planes.hpp:21