ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
createObject.hpp
Go to the documentation of this file.
1#pragma once
2#include "reusex/vision/common/object.hpp"
3
4#include <string>
5#include <vector>
6
7namespace cv {
8class Mat;
9}
10
12
22DetectionBox createBox(float left, float top, float right, float bottom,
23 float score, int class_id,
24 const std::string &class_name);
25
35DetectionBox createPositionBox(float left, float top, float right, float bottom,
36 float score, int class_id,
37 const std::string &class_name);
38
48DetectionBox createTrackBox(float left, float top, float right, float bottom,
49 float score, int track_id,
50 const std::string &class_name);
51
53DetectionBox createTrackBox(float left, float top, float right, float bottom,
54 float score, int track_id,
55 const std::string &class_name,
56 const object::Pose &pose);
57
59DetectionBox createTrackBox(float left, float top, float right, float bottom,
60 float score, int track_id,
61 const std::string &class_name,
62 const object::Obb &obb);
63
65DetectionBox createTrackBox(float left, float top, float right, float bottom,
66 float score, int track_id,
67 const std::string &class_name,
68 const object::Segmentation &seg);
69
82DetectionBox createObbBox(float cx, float cy, float w, float h, float angle,
83 float score, int class_id,
84 const std::string &class_name);
85
96DetectionBox createPoseBox(float left, float top, float right, float bottom,
97 const std::vector<PosePoint> &pose_points,
98 float score, int class_id,
99 const std::string &class_name);
100
111DetectionBox createSegmentationBox(float left, float top, float right,
112 float bottom, const cv::Mat &mask,
113 float score, int class_id,
114 const std::string &class_name);
115
120DetectionBox createDepthProBox(const cv::Mat &depth, float fog_data);
121
126
127} // namespace ReUseX::vision::common::object
DetectionBox createBox(float left, float top, float right, float bottom, float score, int class_id, const std::string &class_name)
Create a standard detection box.
DetectionBox createPositionBox(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 createPoseBox(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.
DetectionBox createSegmentationBox(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 createDepthAnythingBox(const cv::Mat &depth)
Create a depth detection from DepthAnything output.
DetectionBox createObbBox(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 createTrackBox(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 createDepthProBox(const cv::Mat &depth, float fog_data)
Create a depth detection from DepthPro output.
Universal detection result container that holds a bounding box plus optional enriched data (pose,...
Definition object.hpp:189
Oriented bounding box (OBB) parameterized by center, size, and rotation angle.
Definition object.hpp:87
A set of keypoints representing a human or object pose.
Definition object.hpp:78
Instance segmentation result backed by an OpenCV mask.
Definition object.hpp:135