ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
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
6
#include "
../global-params.hpp
"
7
#include <CLI/CLI.hpp>
8
#include <memory>
9
namespace
fs = std::filesystem;
10
12
struct
SubcommandSegPlanesOptions
{
13
14
float
angle_threshold
=
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
30
void
setup_subcommand_create_planes
(CLI::App &app,
31
std::shared_ptr<RuxOptions> global_opt);
32
38
int
run_subcommand_segment_planes
(
SubcommandSegPlanesOptions
const
&opt,
39
const
RuxOptions
&global_opt);
global-params.hpp
run_subcommand_segment_planes
int run_subcommand_segment_planes(SubcommandSegPlanesOptions const &opt, const RuxOptions &global_opt)
Run the segment planes subcommand with given options.
setup_subcommand_create_planes
void setup_subcommand_create_planes(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
Setup the segment planes subcommand in the CLI application.
RuxOptions
Definition
global-params.hpp:44
SubcommandSegPlanesOptions
Collection of all options for plane segmentation subcommand.
Definition
planes.hpp:12
SubcommandSegPlanesOptions::plane_dist_threshold
float plane_dist_threshold
Distance threshold for plane detection.
Definition
planes.hpp:16
SubcommandSegPlanesOptions::interval_factor
float interval_factor
Factor for interval scaling.
Definition
planes.hpp:21
SubcommandSegPlanesOptions::angle_threshold
float angle_threshold
Angular threshold for plane detection (degrees).
Definition
planes.hpp:14
SubcommandSegPlanesOptions::interval_0
float interval_0
Initial interval for multi-scale processing.
Definition
planes.hpp:20
SubcommandSegPlanesOptions::radius
float radius
Search radius for region growing.
Definition
planes.hpp:19
SubcommandSegPlanesOptions::filter_expr
std::string filter_expr
Filter expression to limit processing.
Definition
planes.hpp:23
SubcommandSegPlanesOptions::minInliers
int minInliers
Minimum number of inliers for a valid plane.
Definition
planes.hpp:17
apps
rux
include
create
planes.hpp
Generated by
1.17.0