ReUseX  0.0.5
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>
8#include <memory>
9namespace fs = std::filesystem;
10
13
15 25.0f;
16 float plane_dist_threshold = 0.07;
17 int minInliers = 1000;
18 // 2 * (1 / 0.02) * (1 / 0.02); // ca 2sqm in 2cm resolution of point cloud
19 float radius = 0.5;
20 float interval_0 = 16;
21 float interval_factor = 1.5;
22
23 std::string filter_expr;
24};
25
30void setup_subcommand_create_planes(CLI::App &app, std::shared_ptr<RuxOptions> global_opt);
31
int run_subcommand_segment_planes(SubcommandSegPlanesOptions const &opt, const RuxOptions &global_opt)
Run the segment planes subcommand with given options.
void setup_subcommand_create_planes(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
Setup the segment planes subcommand in the CLI application.
Collection of all options for plane segmentation subcommand.
Definition planes.hpp:12
float plane_dist_threshold
Distance threshold for plane detection.
Definition planes.hpp:16
float interval_factor
Factor for interval scaling.
Definition planes.hpp:21
float angle_threshold
Angular threshold for plane detection (degrees).
Definition planes.hpp:14
float interval_0
Initial interval for multi-scale processing.
Definition planes.hpp:20
float radius
Search radius for region growing.
Definition planes.hpp:19
std::string filter_expr
Filter expression to limit processing.
Definition planes.hpp:23
int minInliers
Minimum number of inliers for a valid plane.
Definition planes.hpp:17