ed_sensor_integration
include
ed_sensor_integration
kinect
segmodules
sam_seg_module.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <opencv2/core.hpp>
4
5
#include <
geolib/datatypes.h
>
6
#include <ros/publisher.h>
7
#include <
tue/config/configuration.h
>
8
9
#include "
ed/kinect/entity_update.h
"
10
11
#include <
string
>
12
#include <
utility
>
13
#include <
vector
>
14
19
struct
SegmentationResult
20
{
21
std::vector<cv::Mat>
masks
;
22
std::vector<cv::Rect>
boxes
;
23
std::vector<std::string>
labels
;
// YOLO class name per detection
24
std::vector<float>
confidences
;
// YOLO confidence per detection
25
};
26
34
SegmentationResult
SegmentationPipeline
(
const
cv::Mat& img,
tue::Configuration
& config);
35
42
void
overlayMasksOnImage_
(cv::Mat& rgb,
const
std::vector<cv::Mat>
& masks);
SegmentationResult
Result of the segmentation pipeline containing masks, bounding boxes, and YOLO classification info fo...
Definition:
sam_seg_module.h:19
datatypes.h
SegmentationResult::labels
std::vector< std::string > labels
Definition:
sam_seg_module.h:23
utility
vector
tue::config::ReaderWriter
SegmentationResult::masks
std::vector< cv::Mat > masks
Definition:
sam_seg_module.h:21
SegmentationResult::confidences
std::vector< float > confidences
Definition:
sam_seg_module.h:24
SegmentationResult::boxes
std::vector< cv::Rect > boxes
Definition:
sam_seg_module.h:22
configuration.h
entity_update.h
overlayMasksOnImage_
void overlayMasksOnImage_(cv::Mat &rgb, const std::vector< cv::Mat > &masks)
Overlay segmentation masks on the RGB image for visualization purposes.
Definition:
sam_seg_module.cpp:69
SegmentationPipeline
SegmentationResult SegmentationPipeline(const cv::Mat &img, tue::Configuration &config)
Segmentation pipeline that processes the input image and generates segmentation masks.
Definition:
sam_seg_module.cpp:11
string
Generated on Sun Jul 5 2026 07:41:28 for ed_sensor_integration by
1.8.17