ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
Sam3Type.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 <array>
8#include <string>
9#include <utility>
10#include <vector>
11
12namespace reusex::vision::onnx {
13
15using BoxPrompt = std::pair<std::string, std::array<float, 4>>;
16
19 std::string text;
20 std::vector<BoxPrompt> boxes;
21 Sam3PromptUnit() = default;
22 Sam3PromptUnit(const std::string &t, const std::vector<BoxPrompt> &b = {})
23 : text(t), boxes(b) {}
24};
25
26} // namespace reusex::vision::onnx
std::pair< std::string, std::array< float, 4 > > BoxPrompt
A bounding-box prompt: label ("pos"/"neg") and [x1, y1, x2, y2].
Definition Sam3Type.hpp:15
std::vector< BoxPrompt > boxes
Definition Sam3Type.hpp:20
Sam3PromptUnit(const std::string &t, const std::vector< BoxPrompt > &b={})
Definition Sam3Type.hpp:22