ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
segment_frame.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 Povl Filip Sonne-Frederiksen
2
//
3
// SPDX-License-Identifier: GPL-3.0-or-later
4
5
#pragma once
6
7
#include "
../global-params.hpp
"
8
9
#include <CLI/CLI.hpp>
10
11
#include <filesystem>
12
#include <string>
13
#include <vector>
14
15
struct
SubcommandSegmentFrameOptions
{
16
std::filesystem::path
net_path
;
17
int
frame_id
= -1;
18
std::vector<std::string>
texts
;
20
std::vector<std::string>
boxes
;
22
std::vector<std::string>
points
;
23
float
confidence
= 0.5f;
24
bool
use_cuda
=
false
;
25
bool
save
=
true
;
26
};
27
28
void
setup_subcommand_create_segment_frame
(CLI::App &app,
29
std::shared_ptr<RuxOptions> opt);
30
31
int
run_subcommand_create_segment_frame
(
32
const
SubcommandSegmentFrameOptions
&opt,
const
RuxOptions
&global_opt);
global-params.hpp
setup_subcommand_create_segment_frame
void setup_subcommand_create_segment_frame(CLI::App &app, std::shared_ptr< RuxOptions > opt)
run_subcommand_create_segment_frame
int run_subcommand_create_segment_frame(const SubcommandSegmentFrameOptions &opt, const RuxOptions &global_opt)
RuxOptions
Definition
global-params.hpp:44
SubcommandSegmentFrameOptions
Definition
segment_frame.hpp:15
SubcommandSegmentFrameOptions::use_cuda
bool use_cuda
Definition
segment_frame.hpp:24
SubcommandSegmentFrameOptions::save
bool save
Definition
segment_frame.hpp:25
SubcommandSegmentFrameOptions::points
std::vector< std::string > points
Each point: "x,y" (a positive click).
Definition
segment_frame.hpp:22
SubcommandSegmentFrameOptions::confidence
float confidence
Definition
segment_frame.hpp:23
SubcommandSegmentFrameOptions::boxes
std::vector< std::string > boxes
Each box: "pos:x1,y1,x2,y2" or "neg:x1,y1,x2,y2".
Definition
segment_frame.hpp:20
SubcommandSegmentFrameOptions::net_path
std::filesystem::path net_path
Definition
segment_frame.hpp:16
SubcommandSegmentFrameOptions::texts
std::vector< std::string > texts
Definition
segment_frame.hpp:18
SubcommandSegmentFrameOptions::frame_id
int frame_id
Definition
segment_frame.hpp:17
apps
rux
include
create
segment_frame.hpp
Generated by
1.18.0