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
10
#include <reusex/segmentation/segment_planes.hpp>
11
12
namespace
fs = std::filesystem;
13
18
struct
SubcommandSegPlanesOptions
{
19
21
float
angle_threshold
=
22
reusex::geometry::SegmentPlanesOptions
{}.
angle_threshold
;
23
24
float
plane_dist_threshold
=
25
reusex::geometry::SegmentPlanesOptions
{}.
plane_dist_threshold
;
26
27
int
minInliers
=
reusex::geometry::SegmentPlanesOptions
{}.
min_inliers
;
28
float
radius
=
reusex::geometry::SegmentPlanesOptions
{}.
radius
;
29
float
interval_0
=
reusex::geometry::SegmentPlanesOptions
{}.
interval_0
;
30
float
interval_factor
=
31
reusex::geometry::SegmentPlanesOptions
{}.
interval_factor
;
32
33
bool
adaptive
=
true
;
34
unsigned
noise_seed
= 42;
35
bool
dist_explicit
=
false
;
36
bool
min_explicit
=
false
;
37
38
std::string
filter_expr
;
39
};
40
45
void
setup_subcommand_create_planes
(CLI::App &app,
46
std::shared_ptr<RuxOptions> global_opt);
47
53
int
run_subcommand_segment_planes
(
SubcommandSegPlanesOptions
const
&opt,
54
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:18
SubcommandSegPlanesOptions::plane_dist_threshold
float plane_dist_threshold
Distance threshold for plane detection.
Definition
planes.hpp:24
SubcommandSegPlanesOptions::interval_factor
float interval_factor
Definition
planes.hpp:30
SubcommandSegPlanesOptions::noise_seed
unsigned noise_seed
Deterministic seed for the noise estimator.
Definition
planes.hpp:34
SubcommandSegPlanesOptions::angle_threshold
float angle_threshold
Angular threshold for plane detection (degrees).
Definition
planes.hpp:21
SubcommandSegPlanesOptions::interval_0
float interval_0
Definition
planes.hpp:29
SubcommandSegPlanesOptions::min_explicit
bool min_explicit
User passed -m (pins min_inliers).
Definition
planes.hpp:36
SubcommandSegPlanesOptions::radius
float radius
Definition
planes.hpp:28
SubcommandSegPlanesOptions::filter_expr
std::string filter_expr
Filter expression to limit processing.
Definition
planes.hpp:38
SubcommandSegPlanesOptions::adaptive
bool adaptive
Derive thresholds from measured cloud noise (#214).
Definition
planes.hpp:33
SubcommandSegPlanesOptions::dist_explicit
bool dist_explicit
User passed -d (pins distance threshold).
Definition
planes.hpp:35
SubcommandSegPlanesOptions::minInliers
int minInliers
Minimum number of inliers for a valid plane.
Definition
planes.hpp:27
reusex::geometry::SegmentPlanesOptions
Definition
segment_planes.hpp:23
reusex::geometry::SegmentPlanesOptions::plane_dist_threshold
float plane_dist_threshold
Definition
segment_planes.hpp:34
reusex::geometry::SegmentPlanesOptions::interval_0
float interval_0
Definition
segment_planes.hpp:38
reusex::geometry::SegmentPlanesOptions::radius
float radius
Definition
segment_planes.hpp:37
reusex::geometry::SegmentPlanesOptions::interval_factor
float interval_factor
Definition
segment_planes.hpp:39
reusex::geometry::SegmentPlanesOptions::min_inliers
int min_inliers
Definition
segment_planes.hpp:35
reusex::geometry::SegmentPlanesOptions::angle_threshold
float angle_threshold
Definition
segment_planes.hpp:26
apps
rux
include
create
planes.hpp
Generated by
1.17.0