ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
create_object.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 "reusex/vision/common/object.hpp"
7
8#include <string>
9#include <vector>
10
11namespace cv {
12class Mat;
13}
14
16
26DetectionBox create_box(float left, float top, float right, float bottom,
27 float score, int class_id,
28 const std::string &class_name);
29
39DetectionBox create_position_box(float left, float top, float right,
40 float bottom, float score, int class_id,
41 const std::string &class_name);
42
52DetectionBox create_track_box(float left, float top, float right, float bottom,
53 float score, int track_id,
54 const std::string &class_name);
55
57DetectionBox create_track_box(float left, float top, float right, float bottom,
58 float score, int track_id,
59 const std::string &class_name,
60 const object::Pose &pose);
61
63DetectionBox create_track_box(float left, float top, float right, float bottom,
64 float score, int track_id,
65 const std::string &class_name,
66 const object::Obb &obb);
67
69DetectionBox create_track_box(float left, float top, float right, float bottom,
70 float score, int track_id,
71 const std::string &class_name,
72 const object::Segmentation &seg);
73
86DetectionBox create_obb_box(float cx, float cy, float w, float h, float angle,
87 float score, int class_id,
88 const std::string &class_name);
89
100DetectionBox create_pose_box(float left, float top, float right, float bottom,
101 const std::vector<PosePoint> &pose_points,
102 float score, int class_id,
103 const std::string &class_name);
104
115DetectionBox create_segmentation_box(float left, float top, float right,
116 float bottom, const cv::Mat &mask,
117 float score, int class_id,
118 const std::string &class_name);
119
124DetectionBox create_depth_pro_box(const cv::Mat &depth, float fog_data);
125
130
131} // namespace reusex::vision::common::object
DetectionBox create_position_box(float left, float top, float right, float bottom, float score, int class_id, const std::string &class_name)
Create a position/region-of-interest box (type POSITION).
DetectionBox create_track_box(float left, float top, float right, float bottom, float score, int track_id, const std::string &class_name)
Create a simple tracking box without additional payload.
DetectionBox create_segmentation_box(float left, float top, float right, float bottom, const cv::Mat &mask, float score, int class_id, const std::string &class_name)
Create a segmentation detection box with an associated mask.
DetectionBox create_box(float left, float top, float right, float bottom, float score, int class_id, const std::string &class_name)
Create a standard detection box.
DetectionBox create_obb_box(float cx, float cy, float w, float h, float angle, float score, int class_id, const std::string &class_name)
Create an oriented bounding box detection.
DetectionBox create_depth_anything_box(const cv::Mat &depth)
Create a depth detection from DepthAnything output.
@ pose
Human pose estimation result.
Definition object.hpp:21
DetectionBox create_depth_pro_box(const cv::Mat &depth, float fog_data)
Create a depth detection from DepthPro output.
DetectionBox create_pose_box(float left, float top, float right, float bottom, const std::vector< PosePoint > &pose_points, float score, int class_id, const std::string &class_name)
Create a pose-estimation detection box.
Universal detection result container that holds a bounding box plus optional enriched data (pose,...
Definition object.hpp:193
Oriented bounding box (OBB) parameterized by center, size, and rotation angle.
Definition object.hpp:91
A set of keypoints representing a human or object pose.
Definition object.hpp:82
Instance segmentation result backed by an OpenCV mask.
Definition object.hpp:139