ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
Data.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/IData.hpp"
7
8#include <opencv2/core/mat.hpp>
9#include <opencv2/core/types.hpp>
10
12
19 cv::Mat image;
20 int target_size = 640;
21 float letterbox_scale = 1.0f;
22 cv::Size original_size;
23 cv::Mat label_image;
24 float confidence_threshold = 0.25f;
25 float iou_threshold = 0.45f;
26 int max_detections = 300;
27};
28
29} // namespace reusex::vision::libtorch
Data carrier for LibTorch YOLO inference pipeline.
Definition Data.hpp:18
cv::Mat label_image
Output: label image (CV_16U, class+1).
Definition Data.hpp:23
int target_size
Letterbox target dimension.
Definition Data.hpp:20
float letterbox_scale
Scale applied during letterbox.
Definition Data.hpp:21
float iou_threshold
NMS IoU threshold.
Definition Data.hpp:25
cv::Mat image
Input: raw image (BGR, HWC).
Definition Data.hpp:19
cv::Size original_size
Pre-letterbox dimensions.
Definition Data.hpp:22
float confidence_threshold
Detection confidence threshold.
Definition Data.hpp:24
int max_detections
Maximum detections per image.
Definition Data.hpp:26