ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
rooms.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
SubcommandSegRoomsOptions
{
13
14
float
resolution
=
15
1.0F;
16
float
beta
= 0.01F;
17
int
max_iter
= -1;
18
19
float
grid_size
= 0.5;
20
21
std::string
filter_expr
;
22
};
23
28
void
setup_subcommand_create_rooms
(CLI::App &app,
29
std::shared_ptr<RuxOptions> global_opt);
30
36
int
run_subcommand_segment_rooms
(
SubcommandSegRoomsOptions
const
&opt,
37
const
RuxOptions
&global_opt);
global-params.hpp
setup_subcommand_create_rooms
void setup_subcommand_create_rooms(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
Setup the segment rooms subcommand in the CLI application.
run_subcommand_segment_rooms
int run_subcommand_segment_rooms(SubcommandSegRoomsOptions const &opt, const RuxOptions &global_opt)
Run the segment rooms subcommand with given options.
RuxOptions
Definition
global-params.hpp:44
SubcommandSegRoomsOptions
Collection of all options for room segmentation subcommand.
Definition
rooms.hpp:12
SubcommandSegRoomsOptions::resolution
float resolution
Leiden resolution parameter (cluster granularity).
Definition
rooms.hpp:14
SubcommandSegRoomsOptions::max_iter
int max_iter
Maximum iterations (-1 = until convergence).
Definition
rooms.hpp:17
SubcommandSegRoomsOptions::beta
float beta
Leiden beta (refinement randomness).
Definition
rooms.hpp:16
SubcommandSegRoomsOptions::filter_expr
std::string filter_expr
Filter expression to limit processing.
Definition
rooms.hpp:21
SubcommandSegRoomsOptions::grid_size
float grid_size
Definition
rooms.hpp:19
apps
rux
include
create
rooms.hpp
Generated by
1.17.0