ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
annotate_panorama.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
#include "
../global-params.hpp
"
7
8
#include <CLI/CLI.hpp>
9
#include <filesystem>
10
#include <memory>
11
#include <string>
12
13
namespace
fs = std::filesystem;
14
15
struct
SubcommandAnnotatePanoramaOptions
{
16
17
fs::path
net_path
;
// SAM3 engine directory (required)
18
19
int
n_yaw
= 8;
// equator tiles around the sphere
20
double
fov_deg
= 90.0;
// per-tile horizontal FOV (deg)
21
int
tile
= 1008;
// tile size in px (SAM3 native input)
22
float
confidence
= 0.5f;
// detection confidence threshold
23
24
bool
skip_annotated
=
false
;
// skip panoramas already segmented (resume mode)
25
26
std::string
figures_dir
;
// if set, dump colorized segmentation figures here
27
int
figures_limit
= 6;
// cap number of panoramas figured
28
};
29
30
// Function declarations.
31
void
setup_subcommand_create_annotate_panorama
(
32
CLI::App &app, std::shared_ptr<RuxOptions> global_opt);
33
int
run_subcommand_create_annotate_panorama
(
34
SubcommandAnnotatePanoramaOptions
const
&opt,
const
RuxOptions
&global_opt);
run_subcommand_create_annotate_panorama
int run_subcommand_create_annotate_panorama(SubcommandAnnotatePanoramaOptions const &opt, const RuxOptions &global_opt)
setup_subcommand_create_annotate_panorama
void setup_subcommand_create_annotate_panorama(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandAnnotatePanoramaOptions
Definition
annotate_panorama.hpp:15
SubcommandAnnotatePanoramaOptions::fov_deg
double fov_deg
Definition
annotate_panorama.hpp:20
SubcommandAnnotatePanoramaOptions::figures_limit
int figures_limit
Definition
annotate_panorama.hpp:27
SubcommandAnnotatePanoramaOptions::net_path
fs::path net_path
Definition
annotate_panorama.hpp:17
SubcommandAnnotatePanoramaOptions::figures_dir
std::string figures_dir
Definition
annotate_panorama.hpp:26
SubcommandAnnotatePanoramaOptions::n_yaw
int n_yaw
Definition
annotate_panorama.hpp:19
SubcommandAnnotatePanoramaOptions::confidence
float confidence
Definition
annotate_panorama.hpp:22
SubcommandAnnotatePanoramaOptions::tile
int tile
Definition
annotate_panorama.hpp:21
SubcommandAnnotatePanoramaOptions::skip_annotated
bool skip_annotated
Definition
annotate_panorama.hpp:24
apps
rux
include
create
annotate_panorama.hpp
Generated by
1.17.0